/* -----------------------------------------------------------
   GLOBAL STYLE – Bastione.cloud
   Elegante, moderno, ispirato a Cookiebot
----------------------------------------------------------- */

/* Font smoothing */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* -----------------------------------------------------------
   BRAND COLORS
----------------------------------------------------------- */

:root {
    --brand: #2563eb;
    --brand-dark: #1e4fc7;
    --brand-light: #dbeafe;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-light: #f1f5f9;
}

/* -----------------------------------------------------------
   HEADINGS
----------------------------------------------------------- */

h1, h2, h3 {
    font-weight: 700 !important;
    color: var(--text-dark) !important;
}

h1 {
    line-height: 1.2;
}

p {
    color: var(--text-light) !important;
    line-height: 1.7 !important;
}

/* -----------------------------------------------------------
   BUTTONS
----------------------------------------------------------- */

.btn-primary {
    background: var(--brand) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.btn-primary:hover {
    background: var(--brand-dark) !important;
    transform: translateY(-2px) !important;
}

.btn-secondary {
    background: white !important;
    border: 2px solid var(--brand-light) !important;
    color: var(--brand) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.btn-secondary:hover {
    background: var(--brand-light) !important;
    transform: translateY(-2px) !important;
}

/* -----------------------------------------------------------
   CARDS
----------------------------------------------------------- */

.card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

/* -----------------------------------------------------------
   ANIMAZIONI
----------------------------------------------------------- */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay utilities */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* -----------------------------------------------------------
   HERO
----------------------------------------------------------- */

.hero {
    padding: 6rem 0;
}

.hero-title {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    color: var(--text-dark) !important;
    line-height: 1.2 !important;
}

.hero-sub {
    font-size: 1.2rem !important;
    margin-top: 1rem !important;
    color: var(--text-light) !important;
}

/* -----------------------------------------------------------
   IMMAGINI
----------------------------------------------------------- */

.img-rounded {
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */

.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 3rem 0;
}

.footer a {
    color: #cbd5e1;
    transition: 0.2s;
}

.footer a:hover {
    color: white;
}

/* -----------------------------------------------------------
   MOBILE MENU
----------------------------------------------------------- */

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 500px;
}

/* -----------------------------------------------------------
   ACCORDION
----------------------------------------------------------- */

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.accordion-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.25s ease;
}

.accordion-header:hover {
    color: var(--brand);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    opacity: 0;
}

.accordion-content.open {
    opacity: 1;
    padding-top: 0.75rem;
}
