/* ========================================
   Carlo De Andreis Bessone — ImmoSanremo
   Design System — carlodeandreisbessone.it
   ======================================== */

/* ----------------------------------------
   Design Tokens
   ---------------------------------------- */
:root {
    /* Brand palette — ImmoSanremo */
    --blue:          #007BC7;   /* Blu acceso */
    --blue-dark:     #005B89;   /* Blu istituzionale */
    --blue-deeper:   #003F5F;   /* Blu scuro profondo */
    --azure:         #00AEEF;   /* Azzurro */
    --gold:          #FFC400;   /* Giallo principale */
    --brand-yellow:  #FFC400;   /* Giallo brand unificato */
    --gold-dark:     #FFB300;   /* Giallo hover */
    --gold-pale:     #FFF8D6;

    /* Neutrals */
    --white:         #FFFFFF;
    --gray-light:    #F4F7F9;
    --gray-mid:      #E8EFF4;
    --border:        #DDE5EC;
    --text:          #1F2933;
    --text-mid:      #4A5563;
    --text-soft:     #7A8898;
    --footer-dark:   #202020;

    /* Status */
    --success:       #287A4A;
    --error:         #B3261E;

    /* Typography */
    --font-display:  'Fraunces', Georgia, serif;
    --font-body:     'Manrope', -apple-system, 'Segoe UI', sans-serif;

    /* Spacing — 8px grid */
    --s1:  0.5rem;
    --s2:  1rem;
    --s3:  1.5rem;
    --s4:  2rem;
    --s5:  2.5rem;
    --s6:  3rem;
    --s8:  4rem;
    --s10: 5rem;
    --s12: 6rem;
    --s16: 8rem;

    /* Layout */
    --max-width:   1200px;
    --max-narrow:  760px;
    --topbar-h:    44px;
    --header-h:    112px;
    --header-h-sm: 76px;

    /* Radius */
    --r-sm:  4px;
    --r-md:  8px;
    --r-lg:  14px;
    --r-xl:  20px;

    /* Shadows */
    --shadow-xs: 0 1px 4px rgba(0,50,90,.06);
    --shadow-sm: 0 2px 12px rgba(0,50,90,.08);
    --shadow-md: 0 8px 32px rgba(0,50,90,.12);
    --shadow-lg: 0 20px 60px rgba(0,50,90,.16);
    --shadow-gold: 0 6px 20px rgba(255,196,0,.35);

    /* Transitions */
    --t-fast:  0.18s ease;
    --t-base:  0.28s ease;
    --t-slow:  0.46s ease;
}

/* ----------------------------------------
   Reset
   ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--blue-dark); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
p { margin-bottom: 0; }
p + p { margin-top: var(--s2); }

/* ----------------------------------------
   Accessibility
   ---------------------------------------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--blue-dark);
    color: var(--white);
    padding: 10px 20px;
    z-index: 10000;
    font-weight: 600;
    font-size: .875rem;
    transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--blue-deeper);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.625rem, 3.2vw, 2.375rem); line-height: 1.15; }
h3 { font-size: clamp(1.0625rem, 2vw, 1.25rem); }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }

/* ----------------------------------------
   Layout
   ---------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--s3);
}

@media (max-width: 767px) {
    .container { padding: 0 var(--s2); }
}

@media (max-width: 430px) {
    .hero h1 { font-size: 1.875rem; }
    .hero-subtitle { font-size: 1.0625rem; }
    .btn-large { padding: 1rem 1.75rem; }
    .hero-cta { flex-direction: column; gap: .75rem; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .days-stat-num { font-size: 2.75rem; }
    .section-eyebrow { font-size: .75rem; }
}

@media (max-width: 360px) {
    .container { padding: 0 .75rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero-subtitle { font-size: 1rem; }
    .btn-large { padding: 1rem 1.5rem; font-size: .9375rem; }
    .hero-cta { flex-direction: column; gap: .75rem; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .days-stat-num { font-size: 2.5rem; }
    .section-title { font-size: 1.5rem; }
    .section-eyebrow { font-size: .6875rem; }
    .nav { width: 88%; }
    .nav-link { font-size: 1rem; padding: 1rem var(--s2); }
    .nav-whatsapp-mobile { font-size: .9375rem; padding: .875rem 1.25rem; }
}

.section { padding: var(--s12) 0; }
@media (max-width: 767px) { .section { padding: var(--s8) 0; } }

/* Backgrounds */
.bg-white     { background: var(--white); }
.bg-light     { background: var(--gray-light); }
.bg-blue      { background: var(--blue-deeper); color: var(--white); }
.bg-dark      { background: var(--footer-dark); color: var(--white); }

/* Section header */
.section-header {
    text-align: center;
    max-width: var(--max-narrow);
    margin: 0 auto var(--s10);
}
.section-header h2 { margin-bottom: var(--s2); }
.section-header p {
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.7;
}
.section-header--light h2 { color: var(--white); }
.section-header--light p  { color: rgba(255,255,255,.72); }

.section-eyebrow {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--brand-yellow);
    margin-bottom: var(--s2);
}
.section-header--light .section-eyebrow { color: var(--brand-yellow); }
.section-eyebrow::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--brand-yellow);
    border-radius: 2px;
    margin: .5rem auto 0;
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .875rem 1.75rem;
    font-family: var(--font-body);
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1;
    border-radius: var(--r-md);
    letter-spacing: .01em;
    transition: all var(--t-base);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--blue-dark);
    color: var(--white);
    border-color: var(--blue-dark);
}
.btn-primary:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,91,137,.28);
}

.btn-secondary {
    background: transparent;
    color: var(--blue-dark);
    border-color: var(--blue-dark);
}
.btn-secondary:hover {
    background: var(--blue-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold);
    color: var(--blue-deeper);
    border-color: var(--gold);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(255,196,0,.25);
}
.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--blue-deeper);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,196,0,.4);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.55);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--blue-dark);
    border-color: var(--white);
}

.btn-large  { padding: 1.125rem 2.5rem; font-size: 1rem; }
.btn-small  { padding: .5625rem 1.25rem; font-size: .875rem; }
.btn-full   { width: 100%; justify-content: center; }
.btn-header { padding: .75rem 1.625rem; font-size: .9375rem; font-weight: 700; }

/* ----------------------------------------
   Top Bar
   ---------------------------------------- */
.topbar {
    background: var(--blue-deeper);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: height var(--t-base), opacity var(--t-base);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .01em;
}

.topbar-address {
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.topbar-contacts {
    display: flex;
    align-items: center;
    gap: var(--s4);
}

.topbar-contacts a {
    color: rgba(255,255,255,.9);
    display: flex;
    align-items: center;
    gap: .375rem;
    transition: color var(--t-fast);
}
.topbar-contacts a:hover { color: var(--gold); }

.topbar-icon {
    width: 13px; height: 13px;
    fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}

/* ----------------------------------------
   Header & Navigation
   ---------------------------------------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--white);
    transition: box-shadow var(--t-base);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(0,50,90,.04);
}

.header.scrolled {
    box-shadow: 0 4px 24px rgba(0,50,90,.12);
}

.header.scrolled .topbar {
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.header-main {
    height: calc(var(--header-h) - var(--topbar-h));
    display: flex;
    align-items: center;
    transition: height var(--t-base);
}

.header.scrolled .header-main { height: var(--header-h-sm); }

.header-main .container {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: var(--s3);
}

/* Logo */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 56px;
    width: auto;
    transition: height var(--t-base);
}

.header.scrolled .logo-img { height: 46px; }

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--s3);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-mid);
    padding: .5rem .875rem;
    border-radius: var(--r-sm);
    position: relative;
    transition: color var(--t-fast);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: .875rem;
    right: .875rem;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform var(--t-base);
    transform-origin: center;
}

.nav-link:hover { color: var(--blue-dark); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--blue-deeper); font-weight: 700; }
.nav-link.active::after { transform: scaleX(1); }

/* ---- Dropdown ---- */
.nav-has-dropdown { position: relative; }

.nav-dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: .25rem;
    cursor: pointer;
}

.nav-caret {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform var(--t-fast);
}

.nav-has-dropdown:hover .nav-caret,
.nav-has-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
    list-style: none;
    position: absolute;
    top: calc(100% + .375rem);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 240px;
    background: var(--white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: .375rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--t-fast), visibility var(--t-fast), transform var(--t-fast);
    z-index: 4000;
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: .5625rem 1.25rem;
    font-family: var(--font-body);
    font-size: .9375rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    transition: color var(--t-fast), background var(--t-fast);
}

.nav-dropdown-link:hover { color: var(--blue-dark); background: var(--gray-light); }
.nav-dropdown-link.active { color: var(--blue-deeper); font-weight: 600; }

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border-radius: var(--r-md);
    transition: background var(--t-fast);
    flex-shrink: 0;
}

.nav-toggle:hover { background: var(--gray-light); }

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--blue-dark);
    border-radius: 2px;
    transition: all var(--t-base);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Responsive nav */
@media (max-width: 1079px) {
    .nav {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: 85%; max-width: 380px; height: 100%;
        z-index: 2000;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0 0 var(--s6);
        background: var(--blue-deeper);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        transition: transform var(--t-base);
        box-shadow: -8px 0 40px rgba(0,0,0,.3);
        gap: 0;
    }

    .nav.active { transform: translateX(0); }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: var(--s4) var(--s3) 0;
    }

    .nav-link {
        display: block;
        padding: 1.125rem var(--s3);
        border-bottom: 1px solid rgba(255,255,255,.08);
        border-radius: 0;
        font-size: 1.125rem;
        font-weight: 600;
        color: rgba(255,255,255,.9);
        transition: color var(--t-fast), background var(--t-fast);
    }

    .nav-link::after { display: none; }
    .nav-link:hover, .nav-link:active {
        color: var(--brand-yellow);
        background: rgba(255,255,255,.05);
    }
    .nav-link.active { color: var(--brand-yellow); }

    .nav-toggle { display: flex; }
    .nav-toggle span { background: var(--blue-deeper); }

    .header-inner { position: relative; z-index: 3000; }

    .btn-header { display: none !important; }

    .nav .btn-header {
        display: flex !important;
        justify-content: center;
        width: calc(100% - var(--s6));
        margin: var(--s4) var(--s3) 0;
        font-size: 1rem;
        padding: 1.0625rem;
        border-radius: var(--r-md);
    }

    .nav-whatsapp-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .625rem;
        width: calc(100% - var(--s6));
        margin: .75rem var(--s3) 0;
        padding: 1rem 1.5rem;
        border: 2px solid #25D366;
        border-radius: var(--r-md);
        color: #25D366;
        font-size: 1rem;
        font-weight: 700;
        text-decoration: none;
        transition: background var(--t-fast), color var(--t-fast);
    }
    .nav-whatsapp-mobile:hover {
        background: #25D366;
        color: var(--white);
    }
    .nav-whatsapp-mobile svg {
        width: 22px; height: 22px;
        flex-shrink: 0;
    }

    /* ---- Dropdown mobile ---- */
    .nav-has-dropdown { position: static; }

    .nav-dropdown-toggle { border-bottom: 1px solid rgba(255,255,255,.08); }
    .nav-dropdown-toggle::after { display: none; }
    .nav-caret { margin-left: auto; stroke: rgba(255,255,255,.7); }

    .nav-dropdown {
        position: static;
        transform: none;
        min-width: unset;
        background: rgba(0,0,0,.25);
        border-radius: 0;
        box-shadow: none;
        border: none;
        padding: 0;
        opacity: 1;
        visibility: hidden;
        pointer-events: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--t-base), visibility var(--t-base);
    }

    .nav-has-dropdown.open .nav-dropdown {
        visibility: visible;
        pointer-events: auto;
        max-height: 420px;
        transform: none;
        left: auto;
        top: auto;
    }

    .nav-dropdown-link {
        display: block;
        padding: .875rem var(--s3) .875rem 2.5rem;
        font-size: 1rem;
        color: rgba(255,255,255,.75);
        border-bottom: 1px solid rgba(255,255,255,.05);
        white-space: normal;
        background: transparent;
    }

    .nav-dropdown-link:hover {
        color: var(--brand-yellow);
        background: rgba(255,255,255,.05);
    }

    .nav-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,31,47,.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--t-base), visibility var(--t-base);
    }
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* page offset so content is below fixed header */
.page-offset {
    padding-top: var(--header-h);
}

/* ----------------------------------------
   Hero — Home
   ---------------------------------------- */

/*
 * Both columns are identical height on desktop because .hero has an
 * explicit height. Grid children stretch by default, so .hero-visual
 * always has a concrete height for the abs-positioned image to fill.
 */
.hero {
    display: grid;
    grid-template-columns: 55fr 45fr;
    /* grow to at least fill the viewport, but never exceed 900px;
       if the text content is taller the hero will expand naturally */
    min-height: max(100vh, 680px);
    max-height: 900px;
    padding-top: var(--header-h);
    background: var(--white);
    /* no overflow:hidden here — clipping is handled per-column */
}

/* Left column — text */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s4) var(--s5) var(--s4)
             max(var(--s5), calc((100vw - var(--max-width)) / 2 + var(--s5)));
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--blue-deeper);
    background: var(--gold-pale);
    border: 1.5px solid var(--gold);
    padding: .35rem 1rem;
    border-radius: 100px;
    margin-bottom: var(--s2);
    width: fit-content;
    box-shadow: 0 2px 8px rgba(255,196,0,.2);
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 7px; height: 7px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero h1 {
    color: var(--blue-deeper);
    margin-bottom: var(--s2);
    max-width: 560px;
    line-height: 1.12;
    font-size: clamp(1.625rem, 2.1vw, 2.625rem);
}

/* force clean break on desktop, hide on stacked layout */
.hero-br { display: block; }

.hero-h1sub {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
    color: var(--text-mid);
    margin-top: -.125rem;
    margin-bottom: var(--s3);
    max-width: 560px;
    line-height: 1.25;
}

.hero h1 em {
    font-style: italic;
    color: var(--blue-deeper);
    background: linear-gradient(180deg, transparent 62%, rgba(255,196,0,.35) 62%);
    padding: 0 .15em;
}

.hero-subtitle {
    font-size: clamp(.9375rem, 1.1vw, 1.0625rem);
    color: var(--text-mid);
    line-height: 1.65;
    margin-bottom: var(--s1);
    max-width: 500px;
}

.hero-micro {
    font-size: .9rem;
    color: var(--text-soft);
    font-style: italic;
    margin-bottom: var(--s3);
    max-width: 460px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
    margin-bottom: var(--s3);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: var(--s2);
    padding-top: var(--s2);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--text-mid);
    font-weight: 500;
}

.hero-trust-item svg {
    width: 16px; height: 16px;
    stroke: var(--brand-yellow); fill: none;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}

/* Right column — photo panel */
.hero-visual {
    position: relative;
    background: #0a1e30;
    overflow: hidden;
    /* height comes from the grid — no explicit height needed */
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* center the figure horizontally, anchor top so face shows first */
    object-position: center 15%;
    display: block;
}

.hero-visual-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(5,25,50,.85) 0%, transparent 50%);
    padding: var(--s4) var(--s3) var(--s3);
}

.hero-card {
    display: inline-block;
    background: rgba(5,18,40,.55);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--r-md);
    padding: var(--s3) var(--s4);
    backdrop-filter: blur(12px);
    color: var(--white);
}

.hero-card-name {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    display: block;
    margin-bottom: .3rem;
    letter-spacing: .01em;
}

.hero-card-role {
    font-size: 1rem;
    opacity: .8;
    display: block;
}

/* ---- Large desktop (≥ 1400px) ---- */
@media (min-width: 1400px) {
    .hero-content { padding-right: var(--s8); }
    .hero h1 { font-size: 2.625rem; }
}

/* ---- Compact desktop (992px–1200px) ---- */
@media (min-width: 992px) and (max-width: 1200px) {
    .hero { grid-template-columns: 58fr 42fr; }
    .hero h1 { font-size: clamp(1.5rem, 2.1vw, 2.25rem); }
    .hero-content {
        padding-left: var(--s4);
        padding-right: var(--s4);
    }
}

/* ---- Tablet (≤ 991px): stacked layout ---- */
@media (max-width: 991px) {
    .hero {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
        min-height: auto;
        padding-top: var(--header-h);
    }

    .hero-visual {
        height: 460px;
        order: -1;
    }

    .hero-photo { object-position: center 15%; }

    .hero-content {
        padding: var(--s6) var(--s4) var(--s7);
        text-align: center;
    }

    .hero-eyebrow { margin: 0 auto var(--s3); }
    .hero-br      { display: none; }
    .hero h1      { max-width: 100%; font-size: clamp(1.5rem, 4vw, 2rem); }
    .hero-subtitle { max-width: 100%; }
    .hero-micro    { max-width: 100%; }
    .hero-cta      { justify-content: center; }
    .hero-trust    { justify-content: center; }
}

/* ---- Phone (≤ 576px) ---- */
@media (max-width: 576px) {
    .hero-visual { height: 390px; }
    .hero-photo  { object-position: center 12%; }
    .hero-content { padding: var(--s5) var(--s3) var(--s6); }
}

/* ---- Small phone (≤ 390px) ---- */
/* ---- Small phone (≤ 390px) ---- */
@media (max-width: 390px) {
    .hero-visual   { height: 330px; }
    .hero-photo    { object-position: center 10%; }
    .hero-content  { padding: var(--s4) var(--s2) var(--s5); }
    .hero-subtitle { font-size: .9375rem; }
}

/* ----------------------------------------
   Section — Problem
   ---------------------------------------- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s3);
}

.problem-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s5) var(--s4);
    position: relative;
    transition: box-shadow var(--t-base), transform var(--t-base);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
}

.problem-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.problem-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, rgba(0,63,95,.05) 0%, rgba(0,123,199,.07) 100%);
    border: 1.5px solid rgba(0,91,137,.14);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--s3);
    flex-shrink: 0;
}

.problem-icon svg {
    width: 22px; height: 22px;
    stroke: var(--blue-dark);
    flex-shrink: 0;
}

.problem-card h3 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: var(--s1);
}

.problem-card p {
    font-size: .875rem;
    color: var(--text-mid);
    line-height: 1.65;
}

@media (max-width: 991px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px)  { .problem-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------
   Section — Method Cards
   ---------------------------------------- */
.method-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s3);
}

.method-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s5) var(--s4);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--t-base), transform var(--t-base);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--blue) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
}

.method-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.method-card:hover::before { transform: scaleX(1); }

.method-card-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, rgba(255,196,0,.08) 0%, rgba(255,179,0,.12) 100%);
    border: 1.5px solid rgba(255,196,0,.28);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--s3);
    flex-shrink: 0;
}

.method-card-icon svg {
    width: 24px; height: 24px;
    stroke: var(--blue-dark);
    flex-shrink: 0;
}

.method-card h3 {
    font-size: 1.0625rem;
    color: var(--blue-deeper);
    margin-bottom: var(--s2);
    font-weight: 700;
}

.method-card p {
    font-size: .9rem;
    color: var(--text-mid);
    line-height: 1.65;
    margin-bottom: var(--s3);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-size: .875rem;
    font-weight: 700;
    color: var(--blue);
    transition: gap var(--t-fast), color var(--t-fast);
}

.link-arrow::after { content: '\2192'; }
.link-arrow:hover { gap: .625rem; color: var(--blue-dark); }

@media (max-width: 991px) { .method-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px)  { .method-cards-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------
   Section — 100 Giorni / Stats
   ---------------------------------------- */
.days-section {
    background: var(--blue-deeper);
    padding: var(--s12) 0;
    position: relative;
    overflow: hidden;
}

.days-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(0,174,239,.12) 0%, transparent 60%);
}

.days-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s10);
    align-items: center;
}

.days-content h2 { color: var(--white); margin-bottom: var(--s3); }

.days-content p {
    color: rgba(255,255,255,.75);
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: var(--s3);
}

.days-note {
    font-size: .875rem;
    color: rgba(255,255,255,.5);
    font-style: italic;
    border-left: 2px solid rgba(255,196,0,.4);
    padding-left: var(--s2);
}

.days-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s3);
}

.days-stat {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--r-lg);
    padding: var(--s5) var(--s4);
    text-align: center;
    transition: box-shadow var(--t-base), transform var(--t-base);
}

.days-stat:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.2);
    transform: translateY(-3px);
}

.days-stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: var(--s1);
    text-shadow: 0 2px 12px rgba(255,196,0,.2);
}

.days-stat-label {
    font-size: .875rem;
    color: rgba(255,255,255,.7);
    font-weight: 600;
    letter-spacing: .02em;
}

@media (max-width: 767px) {
    .days-inner { grid-template-columns: 1fr; gap: var(--s6); }
    .days-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ----------------------------------------
   Section — Valutazione Feature
   ---------------------------------------- */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s10);
    align-items: center;
}

.feature-split--reverse { direction: rtl; }
.feature-split--reverse > * { direction: ltr; }

.feature-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--brand-yellow);
    margin-bottom: var(--s2);
}

.feature-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

.feature-text h2 { margin-bottom: var(--s3); }

.feature-text p {
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: var(--s3);
}

.feature-list { margin-bottom: var(--s4); }

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--s2);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .62em;
    width: 9px;
    height: 9px;
    background: var(--gold);
    border-radius: 50%;
}

.feature-visual {
    border-radius: var(--r-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--gray-mid);
    position: relative;
    box-shadow: var(--shadow-md);
}

.feature-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .feature-split, .feature-split--reverse {
        grid-template-columns: 1fr;
        gap: var(--s6);
        direction: ltr;
    }
}

/* ----------------------------------------
   Section — Chi Sono / Profile
   ---------------------------------------- */
.profile-split {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: var(--s10);
    align-items: start;
}

.profile-photo-wrap {
    position: relative;
}

.profile-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center 20%;
    border-radius: var(--r-xl);
    display: block;
    box-shadow: var(--shadow-md);
}

.profile-photo-card {
    position: absolute;
    bottom: var(--s3);
    right: calc(-1 * var(--s3));
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s3);
    box-shadow: var(--shadow-md);
    min-width: 180px;
}

.profile-card-stat {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-deeper);
    line-height: 1;
}

.profile-card-label {
    font-size: .8125rem;
    color: var(--text-soft);
    font-weight: 500;
    margin-top: .25rem;
}

.profile-text > h2 { margin-bottom: var(--s3); }

.profile-text p {
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: var(--s3);
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s1);
    margin: var(--s4) 0;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .5rem 1.125rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--blue-deeper);
    box-shadow: var(--shadow-xs);
}

@media (max-width: 991px) {
    .profile-split {
        grid-template-columns: 1fr;
        gap: var(--s6);
    }

    .profile-photo-wrap {
        max-width: 340px;
        margin: 0 auto;
    }

    .profile-photo-card {
        right: 0;
    }
}

/* ----------------------------------------
   Section — CTA Final
   ---------------------------------------- */
.cta-final {
    background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue-dark) 50%, var(--blue) 100%);
    position: relative;
    overflow: hidden;
    padding: var(--s12) 0;
}

.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,196,0,.10) 0%, transparent 55%);
}

.cta-inner {
    position: relative;
    text-align: left;
    max-width: 680px;
    margin: 0 auto;
}

.cta-inner h2 { color: var(--white); margin-bottom: var(--s3); }

.cta-inner p {
    color: rgba(255,255,255,.72);
    font-size: 1.0625rem;
    margin-bottom: var(--s5);
    line-height: 1.75;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: var(--s2);
}

/* ----------------------------------------
   Testimonials
   ---------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s3);
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s5) var(--s4);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--t-base), transform var(--t-base);
    box-shadow: var(--shadow-xs);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: var(--s3);
    color: var(--gold);
    font-size: 1rem;
}

.testimonial-card blockquote {
    font-size: .9375rem;
    color: var(--text-mid);
    line-height: 1.75;
    flex: 1;
    font-style: italic;
    margin-bottom: var(--s3);
}

.testimonial-divider {
    width: 28px; height: 2px;
    background: var(--gold);
    border-radius: 1px;
    margin-bottom: var(--s3);
}

.author-name   { font-weight: 700; color: var(--blue-deeper); font-size: .9375rem; }
.author-detail { font-size: .8125rem; color: var(--text-soft); margin-top: 2px; }

@media (max-width: 991px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; }
}
@media (max-width: 640px) {
    .testimonials-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
}

/* ----------------------------------------
   FAQ
   ---------------------------------------- */
.faq-list {
    max-width: var(--max-narrow);
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--s3) 0;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    gap: var(--s2);
    transition: color var(--t-fast);
    background: none;
    border: none;
    cursor: pointer;
}

.faq-question:hover { color: var(--blue-dark); }

.faq-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    transition: background var(--t-fast), transform var(--t-base);
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background: var(--blue-dark);
    border-radius: 1px;
    transition: transform var(--t-base), opacity var(--t-base);
}

.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after  { width: 2px; height: 12px; }

.faq-item.active .faq-icon {
    background: var(--gold-pale);
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding-bottom: var(--s3);
    padding-right: var(--s5);
}

.faq-answer p {
    font-size: .9375rem;
    color: var(--text-mid);
    line-height: 1.75;
}

.faq-item.active .faq-answer { display: block; }

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
    background: var(--footer-dark);
    color: rgba(255,255,255,.65);
}

.footer-top {
    padding: var(--s12) 0 var(--s8);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
    gap: var(--s8);
}

.footer-logo-img {
    height: 48px;
    width: auto;
    margin-bottom: var(--s3);
    filter: brightness(0) invert(1);
    opacity: .82;
}

.footer-brand p {
    font-size: .9375rem;
    line-height: 1.75;
    color: rgba(255,255,255,.55);
    max-width: 280px;
}

.footer-col-title {
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.38);
    margin-bottom: var(--s3);
}

.footer ul li { margin-bottom: var(--s2); }

.footer ul a {
    font-size: .9375rem;
    color: rgba(255,255,255,.58);
    transition: color var(--t-fast);
}

.footer ul a:hover { color: var(--gold); }

.footer-contact p {
    font-size: .9375rem;
    margin-bottom: var(--s2);
    color: rgba(255,255,255,.58);
}

.footer-contact a {
    color: rgba(255,255,255,.82);
    transition: color var(--t-fast);
}

.footer-contact a:hover { color: var(--gold); }

.footer-social {
    display: flex;
    gap: var(--s2);
    margin-top: var(--s3);
}

.footer-social a {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    color: rgba(255,255,255,.65);
    transition: all var(--t-fast);
}

.footer-social a svg {
    width: 16px; height: 16px;
    fill: currentColor;
    display: block;
}

.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--blue-dark);
}

.footer-bottom {
    padding: var(--s3) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s3);
    font-size: .5625rem;
    color: rgba(255,255,255,.50);
    border-top: 1px solid rgba(255,255,255,.12);
}

.footer-legal {
    display: flex;
    gap: var(--s3);
}

.footer-legal a {
    color: rgba(255,255,255,.32);
    font-size: .8125rem;
    transition: color var(--t-fast);
}

.footer-legal a:hover { color: rgba(255,255,255,.65); }

/* ----------------------------------------
   WhatsApp floating button
   ---------------------------------------- */
.wa-float {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(37,211,102,.45);
    z-index: 998;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    text-decoration: none;
}

.wa-float svg {
    width: 28px; height: 28px;
    fill: #fff;
    display: block;
    flex-shrink: 0;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 26px rgba(37,211,102,.6);
}

.wa-float::after {
    content: "Scrivici su WhatsApp";
    position: absolute;
    right: calc(100% + .75rem);
    white-space: nowrap;
    background: #1a1a1a;
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .35rem .75rem;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity var(--t-fast), transform var(--t-fast);
}

.wa-float:hover::after {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 576px) {
    .wa-float { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; }
    .wa-float svg { width: 24px; height: 24px; }
    .wa-float::after { display: none; }
}

@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .footer-bottom { flex-direction: row; flex-wrap: nowrap; gap: var(--s2); font-size: .5rem; }
    .footer-bottom > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
    .footer-legal { flex-shrink: 0; flex-wrap: nowrap; gap: var(--s2); }
}

/* ----------------------------------------
   WhatsApp Float — premium
   ---------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: var(--s4);
    right: var(--s4);
    display: flex;
    align-items: center;
    gap: .625rem;
    background: #25D366;
    color: var(--white);
    border-radius: 100px;
    padding: .75rem 1.25rem .75rem 1rem;
    box-shadow: 0 4px 20px rgba(37,211,102,.35), 0 2px 8px rgba(0,0,0,.12);
    z-index: 900;
    font-family: var(--font-body);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    text-decoration: none;
    transition: transform var(--t-base), box-shadow var(--t-base), padding var(--t-base);
    border: 1.5px solid rgba(255,255,255,.2);
    overflow: hidden;
    max-width: 210px;
}

.whatsapp-float-label {
    font-size: .8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(37,211,102,.5), 0 4px 12px rgba(0,0,0,.14);
}

.whatsapp-float svg {
    width: 22px; height: 22px;
    fill: var(--white);
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 52px; height: 52px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        max-width: 52px;
    }
    .whatsapp-float-label { display: none; }
    .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ----------------------------------------
   Cookie Banner
   ---------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--blue-deeper, #004470);
    color: rgba(255,255,255,.85);
    padding: var(--s3);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform var(--t-base);
    border-top: 2px solid var(--gold);
}

.cookie-banner.active { transform: translateY(0); }

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s4);
}

.cookie-content p { font-size: .9375rem; line-height: 1.6; flex: 1; }
.cookie-content a { color: var(--gold); text-decoration: underline; }

.cookie-buttons { display: flex; gap: var(--s2); flex-shrink: 0; }

@media (max-width: 767px) {
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-buttons { width: 100%; justify-content: center; }
}

/* ----------------------------------------
   Page Hero — internal pages
   ---------------------------------------- */
.page-hero {
    padding: calc(var(--header-h) + var(--s12)) 0 var(--s10);
    text-align: center;
    background: linear-gradient(180deg, var(--gray-light) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,196,0,.07) 0%, transparent 60%);
}

.page-hero-inner {
    position: relative;
    max-width: var(--max-narrow);
    margin: 0 auto;
}

.page-hero h1 { margin-bottom: var(--s3); }

.page-hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-mid);
    line-height: 1.75;
}

.page-hero-blue {
    background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 60%);
}

.page-hero-blue::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(255,196,0,.15) 0%, transparent 55%);
}

.page-hero-blue h1 { color: var(--white); }
.page-hero-blue .page-hero-subtitle { color: rgba(255,255,255,.75); }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    color: rgba(255,255,255,.6);
    justify-content: center;
    margin-bottom: var(--s3);
}

.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { opacity: .4; }

/* ----------------------------------------
   Method / Metodo page
   ---------------------------------------- */
.method-intro {
    max-width: var(--max-narrow);
    margin: 0 auto;
    text-align: center;
}

.method-intro h2 { margin-bottom: var(--s4); }
.method-intro p {
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.8;
}

/* Timeline vertical */
.method-timeline {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    padding-left: 76px;
}

.method-timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--blue) 100%);
    border-radius: 1px;
}

.method-step {
    position: relative;
    padding: var(--s5) 0;
    border-bottom: 1px solid var(--border);
}

.method-step:last-child { border-bottom: none; }

.method-step-num {
    position: absolute;
    left: -76px;
    top: var(--s5);
    width: 56px; height: 56px;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--blue-dark);
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.method-step h3 {
    font-size: 1.25rem;
    color: var(--blue-dark);
    margin-bottom: var(--s2);
}

.method-step p {
    font-size: .9375rem;
    color: var(--text-mid);
    line-height: 1.75;
}

.method-step-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--blue-dark);
    background: var(--gold-pale);
    border: 1px solid #FFE566;
    padding: .25rem .75rem;
    border-radius: 100px;
    margin-bottom: var(--s2);
}

@media (max-width: 576px) {
    .method-timeline { padding-left: 0; }
    .method-timeline::before { display: none; }
    .method-step-num { position: static; margin-bottom: var(--s2); }
}

/* Method steps on blue background (card style) */
.method-steps-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s3);
}

.method-step-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--r-lg);
    padding: var(--s4);
    color: rgba(255,255,255,.88);
    transition: background var(--t-fast);
}

.method-step-card:hover { background: rgba(255,255,255,.12); }

.method-step-card-num {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: var(--s2);
}

.method-step-card h3 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: var(--s1);
}

.method-step-card p {
    font-size: .875rem;
    color: rgba(255,255,255,.65);
    line-height: 1.65;
}

@media (max-width: 576px) { .method-steps-cards { grid-template-columns: 1fr; } }

/* ----------------------------------------
   Valutazione / Estimate page
   ---------------------------------------- */
.value-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s3);
    margin: var(--s5) 0;
}

.value-point {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s4) var(--s4) var(--s4) var(--s5);
    position: relative;
    transition: box-shadow var(--t-base);
}

.value-point::before {
    content: '';
    position: absolute;
    left: 0; top: var(--s3); bottom: var(--s3);
    width: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.value-point:hover { box-shadow: var(--shadow-sm); }

.value-point h3 { font-size: 1rem; margin-bottom: var(--s1); color: var(--blue-dark); }
.value-point p  { font-size: .875rem; color: var(--text-mid); line-height: 1.65; }

.value-point-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--gold);
    color: var(--blue-deeper);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--s2);
    flex-shrink: 0;
}

.value-point-content { flex: 1; }

@media (max-width: 767px) { .value-points { grid-template-columns: 1fr; } }

/* Feature cards grid (3-col) */
.features-grid {
    display: grid;
    gap: var(--s3);
}

.features-3col { grid-template-columns: repeat(3, 1fr); }

.feature-card {
    background: var(--white);
    border: 1px solid rgba(0,50,90,.1);
    border-radius: var(--r-lg);
    padding: var(--s5) var(--s4);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--t-base), transform var(--t-base);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--blue) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, rgba(255,196,0,.08) 0%, rgba(255,179,0,.12) 100%);
    border: 1.5px solid rgba(255,196,0,.28);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--s3);
    flex-shrink: 0;
}

.feature-card-icon svg {
    width: 22px; height: 22px;
    stroke: var(--blue-dark);
}

.feature-card h3 {
    font-size: 1.0625rem;
    color: var(--blue-deeper);
    margin-bottom: var(--s2);
    font-weight: 700;
}

.feature-card p {
    font-size: .9rem;
    color: var(--text-mid);
    line-height: 1.65;
}

@media (max-width: 991px) { .features-3col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .features-3col { grid-template-columns: 1fr; } }

/* ----------------------------------------
   Contact Page
   ---------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--s10);
}

.contact-form { display: flex; flex-direction: column; gap: var(--s3); }

.form-group { display: flex; flex-direction: column; gap: .375rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s3);
}

.form-group label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: .01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: .875rem var(--s2);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-size: .9375rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%234A5563' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-dark);
    box-shadow: 0 0 0 3px rgba(0,91,137,.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(0,0,0,.3); }

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error);
}

.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--s2);
}

.form-checkbox input[type="checkbox"] {
    width: 20px; height: 20px;
    min-width: 20px;
    margin-top: 1px;
    accent-color: var(--blue-dark);
    border-radius: var(--r-sm);
}

.form-checkbox label {
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-mid);
}

.form-checkbox label a { color: var(--blue-dark); text-decoration: underline; }

.form-note { font-size: .8125rem; color: var(--text-soft); text-align: center; }

.form-success {
    padding: var(--s4);
    background: rgba(40,122,74,.08);
    border: 1px solid rgba(40,122,74,.2);
    border-radius: var(--r-lg);
    color: var(--success);
    text-align: center;
    font-weight: 600;
}

.contact-info-wrapper { display: flex; flex-direction: column; gap: var(--s3); }

.contact-info-card {
    background: var(--gray-light);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s4);
}

.contact-info-card h3 { font-size: 1rem; margin-bottom: var(--s3); color: var(--blue-dark); }

.contact-method { margin-bottom: var(--s2); }
.contact-label  { display: block; font-size: .75rem; color: var(--text-soft); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }
.contact-value  { font-size: 1rem; font-weight: 600; color: var(--text); }
.contact-address { font-style: normal; }
.contact-address p { font-size: .9375rem; margin-bottom: var(--s1); color: var(--text-mid); }

#map-container { min-height: 200px; }

#map-consent {
    padding: var(--s4);
    text-align: center;
    color: var(--text-soft);
    font-size: .875rem;
    line-height: 1.7;
    background: var(--gray-light);
    border-radius: var(--r-md);
}

@media (max-width: 991px) {
    .contact-grid { grid-template-columns: 1fr; gap: var(--s6); }
    .form-row { grid-template-columns: 1fr; gap: var(--s3); }
}

/* ----------------------------------------
   Affida — Multi-step form
   ---------------------------------------- */
.affida-page {
    min-height: 100vh;
    background: var(--gray-light);
    padding-top: var(--header-h);
}

.affida-hero {
    position: relative;
    padding: var(--s16) var(--s3) var(--s12);
    text-align: center;
    background: linear-gradient(160deg, var(--blue-deeper) 0%, var(--blue-dark) 70%);
    overflow: hidden;
}

.affida-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(255,196,0,.16) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 90%, rgba(0,174,239,.12) 0%, transparent 45%);
}

.affida-hero-inner {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.affida-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--gold);
    margin-bottom: var(--s4);
}

.affida-eyebrow::before, .affida-eyebrow::after {
    content: '';
    display: block;
    width: 28px; height: 1px;
    background: rgba(255,196,0,.5);
}

.affida-hero h1 {
    color: var(--white);
    font-size: clamp(1.875rem, 4.5vw, 3rem);
    margin-bottom: var(--s3);
}

.affida-hero-subtitle {
    font-size: 1.0625rem;
    color: rgba(255,255,255,.7);
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto;
}

/* Form card overlaps hero */
.affida-form-section {
    padding: var(--s8) var(--s3) var(--s12);
    background: var(--gray-light);
    position: relative;
}

.affida-card {
    max-width: 660px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--r-xl);
    box-shadow: 0 12px 48px rgba(0,50,90,.14), 0 2px 8px rgba(0,50,90,.06);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Progress */
.form-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
    background: var(--gray-light);
}

.progress-step {
    padding: var(--s2) var(--s1);
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-soft);
    position: relative;
    transition: color var(--t-base);
}

.progress-step::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--t-base);
}

.progress-step.active { color: var(--blue-deeper); }
.progress-step.active::after { transform: scaleX(1); }
.progress-step.done { color: var(--text-mid); }
.progress-step.done::after { transform: scaleX(1); background: var(--blue); }

.progress-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 50%;
    font-size: .6875rem;
    font-weight: 700;
    color: var(--text-soft);
    margin: 0 auto var(--s1);
    transition: all var(--t-base);
}

.progress-step.active .progress-num {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--blue-deeper);
}

.progress-step.done .progress-num {
    background: var(--blue-deeper);
    border-color: var(--blue-deeper);
    color: var(--white);
}

/* Step body */
.form-body { padding: var(--s5); }

@media (max-width: 576px) { .form-body { padding: var(--s4) var(--s3); } }

.form-step {
    display: none;
    animation: stepIn .26s ease;
}

.form-step.active { display: block; }

@keyframes stepIn {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: translateX(0); }
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-deeper);
    margin-bottom: .375rem;
}

.step-subtitle {
    font-size: .9375rem;
    color: var(--text-soft);
    margin-bottom: var(--s4);
    line-height: 1.6;
}

/* Chips */
.chip-label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--s2);
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s1);
    margin-bottom: var(--s3);
}

.chip {
    padding: .5625rem 1.125rem;
    font-size: .875rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text-mid);
    background: var(--gray-light);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--t-fast);
    white-space: nowrap;
    user-select: none;
}

.chip:hover { border-color: var(--blue-dark); color: var(--blue-dark); background: rgba(0,91,137,.05); }

.chip.selected {
    background: var(--blue-deeper);
    border-color: var(--blue-deeper);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0,63,95,.2);
}

.chip.selected:hover { background: var(--blue); border-color: var(--blue); }

/* Form fields in steps */
.affida-form .form-group { margin-bottom: var(--s3); }

.affida-form input,
.affida-form select,
.affida-form textarea {
    width: 100%;
    padding: .9375rem var(--s2);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-size: .9375rem;
    color: var(--text);
    background: var(--white);
    font-family: var(--font-body);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    appearance: none;
    -webkit-appearance: none;
}

.affida-form input:focus,
.affida-form select:focus,
.affida-form textarea:focus {
    outline: none;
    border-color: var(--blue-dark);
    box-shadow: 0 0 0 3px rgba(0,91,137,.1);
}

.affida-form input::placeholder,
.affida-form textarea::placeholder { color: rgba(0,0,0,.28); }

.affida-form input.field-error,
.affida-form select.field-error,
.affida-form textarea.field-error {
    border-color: var(--error);
}

.affida-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s2);
}

@media (max-width: 576px) { .affida-form .form-row { grid-template-columns: 1fr; } }

.affida-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%234A5563' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.affida-form textarea { resize: vertical; min-height: 100px; }

/* Form nav buttons */
.step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--s5);
    gap: var(--s2);
    border-top: 1px solid var(--border);
    padding-top: var(--s4);
}

.btn-back {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--text-soft);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .375rem;
    padding: .5rem 0;
    font-family: var(--font-body);
    transition: color var(--t-fast);
}

.btn-back::before { content: '\2190'; }
.btn-back:hover { color: var(--blue-dark); }

/* Privacy check in affida */
.affida-form .check-row {
    display: flex;
    align-items: flex-start;
    gap: var(--s2);
    margin-top: var(--s3);
}

.affida-form .check-row input[type="checkbox"] {
    width: 20px; height: 20px;
    min-width: 20px;
    margin-top: 1px;
    accent-color: var(--blue-dark);
    padding: 0; border: none; box-shadow: none;
}

.affida-form .check-row label {
    font-size: .875rem;
    color: var(--text-mid);
    line-height: 1.6;
    font-weight: 400;
}

.affida-form .check-row a { color: var(--blue-dark); text-decoration: underline; }

/* Field error hint */
.field-hint { font-size: .8rem; color: var(--error); margin-top: .25rem; display: none; }
.field-hint.show { display: block; }
.chips-error-msg { font-size: .8rem; color: var(--error); margin-top: .25rem; display: none; }
.chips-error-msg.show { display: block; }

/* Success */
.affida-success {
    display: none;
    padding: var(--s8) var(--s5);
    text-align: center;
}

.affida-success.active { display: block; }

.success-icon {
    width: 64px; height: 64px;
    background: rgba(40,122,74,.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto var(--s4);
}

.success-icon svg {
    width: 32px; height: 32px;
    stroke: var(--success);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.affida-success h2 { color: var(--blue-deeper); margin-bottom: var(--s2); }

.affida-success p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.75;
    max-width: 420px;
    margin: 0 auto;
}

/* Trust strip */
.affida-trust {
    max-width: 660px;
    margin: var(--s4) auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s4);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    color: var(--text-soft);
    font-weight: 500;
}

.trust-item svg {
    width: 15px; height: 15px;
    stroke: var(--blue-dark); fill: none;
    stroke-width: 2; stroke-linecap: round;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .affida-hero { padding-top: var(--s10); padding-bottom: var(--s16); }
    .affida-form-section { margin-top: calc(-1 * var(--s12)); padding: 0 var(--s2) var(--s10); }
    .progress-label { display: none; }
    .progress-step { padding: var(--s2) var(--s1); }
}

/* ----------------------------------------
   Locations / Map
   ---------------------------------------- */
.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
}

.location-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-lg);
    padding: var(--s5);
    color: rgba(255,255,255,.82);
}

.location-card h3 { color: var(--gold); font-size: 1.125rem; margin-bottom: var(--s3); }

.location-card address {
    font-style: normal;
    margin-bottom: var(--s3);
}

.location-card address p { font-size: .9375rem; margin-bottom: var(--s1); line-height: 1.6; }

.location-card address a {
    color: rgba(255,255,255,.9);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,.28);
}

.location-card address a:hover { color: var(--gold); }

@media (max-width: 767px) { .locations-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------
   Reveal animations
   ---------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------------------
   Utility
   ---------------------------------------- */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-blue   { color: var(--blue-dark); }
.text-white  { color: var(--white); }
.mt-2 { margin-top: var(--s2); }
.mt-4 { margin-top: var(--s4); }
.mt-6 { margin-top: var(--s6); }
.mt-8 { margin-top: var(--s8); }
.mb-2 { margin-bottom: var(--s2); }
.mb-4 { margin-bottom: var(--s4); }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* section CTA centrata */
.section-cta { text-align: center; margin-top: var(--s8); }

/* Form step counter */
.step-counter {
    font-size: .8125rem;
    color: var(--text-soft);
    font-weight: 500;
}

/* ----------------------------------------
   Premium refinements
   ---------------------------------------- */

/* Cards: stronger border */
.problem-card,
.method-card,
.testimonial-card {
    border-color: rgba(0,50,90,.1);
}

.method-card {
    background: linear-gradient(160deg, var(--white) 0%, rgba(244,247,249,.6) 100%);
}

/* Valutazione feature-visual: zoom on hover */
.feature-visual img {
    transition: transform var(--t-slow);
}

.feature-visual:hover img {
    transform: scale(1.025);
}

/* Profile section: vertically centered */
.profile-split {
    align-items: center;
}

/* Profile badges: cleaner */
.profile-badge {
    background: var(--gray-light);
    border-color: var(--border);
    font-size: .8rem;
}

/* Section-eyebrow line: left-align when inside text column */
.feature-text .section-eyebrow::after,
.profile-text .section-eyebrow::after,
.days-content .section-eyebrow::after {
    margin: .5rem 0 0;
}

/* Hero card: more opaque for readability */
.hero-card {
    background: rgba(0,20,40,.55);
    border-color: rgba(255,255,255,.18);
}

.hero-card-role {
    color: rgba(255,255,255,.72);
}

/* Testimonials: top-bar accent on hover */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--blue) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

/* Section header: tighter bottom margin */
.section-header {
    margin-bottom: var(--s8);
}

/* Feature list dots: gold glow */
.feature-list li::before {
    width: 8px; height: 8px;
    box-shadow: 0 1px 4px rgba(255,196,0,.3);
}

/* Link arrow: push to bottom of card */
.link-arrow {
    font-size: .8125rem;
    color: var(--blue-dark);
    margin-top: auto;
}

/* Mobile tweaks */
@media (max-width: 576px) {
    .hero-cta .btn { width: 100%; justify-content: center; }
    .cta-inner { text-align: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 340px; justify-content: center; }
}

/* ----------------------------------------
   Sezione Consulenza — componenti specifici
   ---------------------------------------- */

/* cta-section alias per cta-final */
.cta-section {
    background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue-dark) 50%, var(--blue) 100%);
    position: relative;
    overflow: hidden;
    padding: var(--s12) 0;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,196,0,.10) 0%, transparent 55%);
}

/* Benefit cards (3-col) */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s3);
}

.benefit-card {
    background: var(--white);
    border: 1px solid rgba(0,50,90,.1);
    border-radius: var(--r-lg);
    padding: var(--s5) var(--s4);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--t-base), transform var(--t-base);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
}

.benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.benefit-card:hover::before { transform: scaleX(1); }

.benefit-card h3 {
    font-size: 1.0625rem;
    color: var(--blue-deeper);
    margin-bottom: var(--s2);
    font-weight: 700;
}

.benefit-card p {
    font-size: .9rem;
    color: var(--text-mid);
    line-height: 1.65;
}

/* Related link cards (3-col) */
.related-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s3);
}

.related-link-card {
    display: block;
    background: var(--white);
    border: 1px solid rgba(0,50,90,.1);
    border-radius: var(--r-lg);
    padding: var(--s4) var(--s3);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow var(--t-base), transform var(--t-base);
}

.related-link-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
}

.related-link-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.related-link-card:hover::before { transform: scaleX(1); }

.related-link-card h3 {
    font-size: 1.0625rem;
    color: var(--blue-deeper);
    margin-bottom: var(--s2);
    font-weight: 700;
}

.related-link-card p {
    font-size: .9rem;
    color: var(--text-mid);
    line-height: 1.65;
}

/* Responsive */
@media (max-width: 991px) {
    .benefit-grid        { grid-template-columns: repeat(2, 1fr); }
    .related-links-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .benefit-grid        { grid-template-columns: 1fr; }
    .related-links-grid  { grid-template-columns: 1fr; }
}

/* Cards grid (pagine 4-6 consulenza) */
.cards-grid {
    display: grid;
    gap: var(--s3);
}

.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--white);
    border: 1px solid rgba(0,50,90,.1);
    border-radius: var(--r-lg);
    padding: var(--s5) var(--s4);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--t-base), transform var(--t-base);
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
}

.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card:hover::before { transform: scaleX(1); }

.card h3 {
    font-size: 1.0625rem;
    color: var(--blue-deeper);
    margin-bottom: var(--s2);
    font-weight: 700;
}

.card p {
    font-size: .9rem;
    color: var(--text-mid);
    line-height: 1.65;
}

.card--link h3 a {
    color: var(--blue-deeper);
    text-decoration: none;
    transition: color var(--t-fast);
}

.card--link:hover h3 a { color: var(--blue-dark); }

@media (max-width: 991px) { .cards-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px)  { .cards-grid--3 { grid-template-columns: 1fr; } }



@media (max-width: 767px) {
    .topbar          { background: var(--blue-deeper) !important; }
    .topbar-inner    { justify-content: center; }
    .topbar-contacts { display: none !important; }
    .topbar-address {
        justify-content: center;
        white-space: nowrap;
        font-size: .75rem;
    }
}

/* ============================================================
   FIX #1 — Overflow orizzontale mobile
   ============================================================ */

/* Guard: su iOS Safari body{overflow-x:hidden} non clippa in modo
   affidabile (la pagina resta pannabile). 'clip' non crea uno scroll
   container, quindi position:fixed dell'header resta valido. */
html { overflow-x: clip; }

@media (max-width: 767px) {

    /* --- index.html: .btn ha white-space:nowrap globale (riga 245).
           Le CTA lunghe sforano il container. --- */
    .btn {
        white-space: normal;
        max-width: 100%;
        line-height: 1.25;
        text-align: center;
    }

    .section-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* --- contatti.html: griglia inline 1.5fr 1fr che non collassa --- */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: var(--s5) !important;
    }

    .form-row-2 {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   FIX #2 — Stacking del menu mobile
   ============================================================ */

/* .header è position:fixed + z-index:1000 -> crea uno stacking context:
   tutto il menu (nav 2000, overlay 1500) resta confinato a quota 1000
   rispetto alla pagina. Il cookie banner (z-index:1001 in root) ci
   passava sopra. Alzo l'header oltre 1001.
   Nessun rischio di sovrapposizione: header in alto, banner in basso. */
.header { z-index: 1100; }

@media (max-width: 1079px) {

    /* .nav (2000) e .nav-overlay (1500) sono figli di .header-inner e
       coprono logo e hamburger, che sono statici. Sollevo il toggle
       sopra il pannello: senza questo la X non è cliccabile. */
    .nav-toggle {
        position: relative;
        z-index: 2100;
    }

    /* A menu aperto la X sta sul pannello blu (--blue-deeper) ed è
       dello stesso colore: invisibile. La porto a bianco. */
    .nav-toggle.active span {
        background: var(--white);
    }

    /* Tap target: 42px -> 44px (minimo WCAG 2.5.5 / HIG) */
    .nav-toggle {
        width: 44px;
        height: 44px;
    }
}
