/* =========================================================
   AUTOPIVA — style.css v3
   Tema CHIARO: fondo bianco, blu (struttura) + rosso (conversione)
   I nomi delle classi restano invariati rispetto alla v2:
   le pagine continuano a funzionare durante il restyling.
   ========================================================= */

:root {
    /* ---- Brand: blu ---- */
    --blu-900: #08194a;
    --blu-800: #0b2c6f;
    --blu-600: #12408f;
    --blu-500: #1560d4;
    --blu-400: #3b82f6;
    --blu-050: #eef4ff;

    /* ---- Brand: rosso ---- */
    --rosso-700: #9e1116;
    --rosso-600: #c4161c;
    --rosso-500: #e01b24;
    --rosso-050: #fff1f1;

    /* ---- Neutri ---- */
    --testo: #101828;
    --testo-2: #475467;
    --muted: #667085;
    --bg: #ffffff;
    --bg-alt: #f7f9fc;
    --bordo: #e4e7ec;
    --bordo-2: #d3d8e0;

    /* ---- Superfici ---- */
    --card: #ffffff;
    --card-2: #f9fafb;

    --radius: 18px;
    --radius-sm: 12px;
    --ombra: 0 2px 8px rgba(16, 24, 40, .05);
    --ombra-md: 0 6px 20px rgba(16, 24, 40, .08);
    --ombra-lg: 0 16px 40px rgba(16, 24, 40, .13);
    --glow: rgba(224, 27, 36, .3);

    /* Accento usato sopra i fondi blu scuri (contrasto ≥ 4.5:1) */
    --accento-su-blu: #ff6b72;
    --vetro: rgba(255,255,255,.10);

    --grad: linear-gradient(135deg, #e01b24 0%, #b0141a 100%);
    --grad-blu: linear-gradient(135deg, #1560d4 0%, #0b2c6f 100%);
    --grad-brand: linear-gradient(90deg, #e01b24 0%, #1560d4 100%);

    --max: 1220px;
    --font-head: 'Plus Jakarta Sans', 'Oswald', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* ---- Alias retrocompatibili (v2) ---- */
    --ink: var(--testo);
    --heading: var(--testo);
    --accent: var(--rosso-500);
    --accent-dark: var(--rosso-600);
    --accent-soft: var(--rosso-050);
    --primary: var(--blu-800);
    --primary-2: var(--blu-800);
    --primary-3: var(--blu-600);
    --blue: var(--blu-500);
    --shadow: var(--ombra-md);
    --shadow-lg: var(--ombra-lg);
    --border: var(--bordo);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    color: var(--testo);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; display: block; }

a { color: var(--blu-500); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blu-800); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--testo);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.03em;
    text-wrap: balance;
}

/* Focus visibile e coerente su tutta l'interfaccia (accessibilità) */
:focus-visible {
    outline: 3px solid var(--blu-500);
    outline-offset: 2px;
    border-radius: 4px;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 3000;
    background: var(--blu-800); color: #fff; padding: 12px 18px;
    border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* Solo per screen reader */
.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;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-head); font-weight: 700; font-size: 14.5px; letter-spacing: .1px;
    padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: .22s cubic-bezier(.16,1,.3,1); white-space: nowrap;
    position: relative; overflow: hidden; text-align: center;
}
/* Freccia che accompagna i pulsanti principali */
.btn-accent::after, .btn-blu::after, .btn-light::after {
    content: '→'; font-family: var(--font-body); font-weight: 700;
    display: inline-block; transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.btn-accent:hover::after, .btn-blu:hover::after, .btn-light:hover::after { transform: translateX(4px); }
.btn-accent { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(196, 22, 28, .28); }
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(196, 22, 28, .36); color: #fff; }
.btn-accent:active { transform: translateY(-1px); }

.btn-blu { background: var(--grad-blu); color: #fff; box-shadow: 0 8px 22px rgba(21, 96, 212, .26); }
.btn-blu:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 16px 30px rgba(21, 96, 212, .32); }

.btn-outline { background: #fff; color: var(--testo); border-color: var(--bordo-2); }
.btn-outline:hover { border-color: var(--blu-500); color: var(--blu-600); background: var(--blu-050); transform: translateY(-2px); }

.btn-outline-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-outline-light:hover { background: #fff; color: var(--blu-800); border-color: #fff; }

.btn-light { background: #fff; color: var(--blu-800); }
.btn-light:hover { background: var(--blu-050); color: var(--blu-800); }

.btn-ghost { background: transparent; color: var(--blu-600); border-color: transparent; padding-left: 12px; padding-right: 12px; }
.btn-ghost:hover { background: var(--blu-050); color: var(--blu-800); }

.btn-sm { padding: 10px 18px; font-size: 13px; border-radius: 999px; }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1fb958; color: #fff; transform: translateY(-3px); }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--blu-900); color: rgba(255,255,255,.86);
    font-size: 13px; padding: 9px 0;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar a { color: rgba(255,255,255,.86); }
.topbar a:hover { color: #fff; }
.topbar-list { display: flex; gap: 22px; list-style: none; }
.topbar-list li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-right a { white-space: nowrap; }
@media (max-width: 1200px) { .topbar-sede { display: none; } }

/* ---------- Banner immagine header (modificabile da config) ---------- */
.header-banner { display: block; background: var(--blu-050); }
.header-banner img { width: 100%; height: auto; }
.header-banner:hover { opacity: .96; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    /* Niente backdrop-filter: creerebbe un containing block per il menu mobile fixed */
    background: #ffffff;
    border-bottom: 1px solid var(--bordo);
    transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(16,24,40,.08); }
.site-header::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
    background: var(--grad-brand); opacity: .9; pointer-events: none;
}
.header-inner { display: flex; align-items: center; gap: 20px; padding: 12px 0; transition: padding .25s; }
.site-header.is-scrolled .header-inner { padding: 8px 0; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--testo); position: relative; z-index: 1001; }
.brand-mark {
    width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px;
    background: var(--grad-blu); color: #fff; font-family: var(--font-head);
    font-weight: 800; font-size: 24px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 14px rgba(21, 96, 212, .28);
}
.brand-logo { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 21px; letter-spacing: .5px; color: var(--blu-900); }
.brand-text small { font-size: 11.5px; color: var(--muted); font-weight: 500; }

.site-nav { margin: 0 auto; }
.site-nav > ul { display: flex; gap: 2px; list-style: none; }
.site-nav a {
    display: block; padding: 10px 12px; border-radius: 8px; color: var(--testo);
    font-weight: 600; font-size: 14px; position: relative; white-space: nowrap;
}
.site-nav a::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2.5px;
    background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s;
    border-radius: 2px;
}
.site-nav a:hover { color: var(--rosso-600); }
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--rosso-600); font-weight: 700; }

/* ---------- Sottomenu di navigazione ---------- */
.site-nav li { position: relative; }
.nav-padre {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 12px; border: 0; background: none; cursor: pointer;
    font-family: var(--font-body); font-weight: 600; font-size: 14px;
    color: var(--testo); border-radius: 8px; white-space: nowrap;
}
.nav-padre:hover { color: var(--rosso-600); }
.nav-padre.is-active { color: var(--rosso-600); font-weight: 700; }
.nav-caret { font-size: 9px; line-height: 1; transition: transform .2s; }
.nav-padre[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.submenu {
    display: block; position: absolute; top: calc(100% + 4px); left: 0; min-width: 236px;
    list-style: none; margin: 0; padding: 8px;
    background: #fff; border: 1px solid var(--bordo); border-radius: 12px;
    box-shadow: var(--ombra-lg); z-index: 1200;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.submenu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.submenu a::after { display: none; }
.submenu a:hover { background: var(--blu-050); color: var(--blu-800); }

@media (min-width: 1141px) {
    /* Su desktop il sottomenu si apre passando il mouse o da tastiera */
    .site-nav li.has-figli:hover > .submenu,
    .site-nav li.has-figli:focus-within > .submenu,
    .site-nav li.has-figli.is-open > .submenu {
        opacity: 1; visibility: visible; transform: none;
    }
}

.header-actions { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1001; }
.header-phone { display: flex; align-items: center; gap: 8px; color: var(--blu-800); font-weight: 700; font-size: 14px; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; fill: currentColor; }

.nav-toggle {
    display: none; background: var(--bg-alt); border: 1px solid var(--bordo);
    cursor: pointer; width: 44px; height: 42px; border-radius: 10px; position: relative;
}
.nav-toggle span {
    position: absolute; left: 11px; width: 22px; height: 2.5px; background: var(--blu-900);
    border-radius: 3px; transition: .25s;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; padding: 88px 0 112px; overflow: hidden;
    background:
        radial-gradient(58% 78% at 88% 10%, rgba(59,130,246,.55) 0%, rgba(59,130,246,0) 62%),
        radial-gradient(48% 66% at 8% 92%, rgba(224,27,36,.34) 0%, rgba(224,27,36,0) 62%),
        linear-gradient(150deg, #12408f 0%, #0b2c6f 46%, #071a42 100%);
}
/* Alone morbido dietro l'illustrazione */
.hero::before {
    content: ''; position: absolute; z-index: 1; pointer-events: none;
    right: 10%; top: 22%; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.09) 0%, rgba(255,255,255,0) 68%);
}
/* Trama puntinata appena percettibile, sfumata verso il centro */
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(75% 70% at 18% 35%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(75% 70% at 18% 35%, #000 0%, transparent 72%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy { max-width: 620px; }
.hero-kicker {
    display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 600; font-size: 12.5px;
    letter-spacing: 1.2px; text-transform: uppercase; padding: 8px 16px; border-radius: 999px;
    backdrop-filter: blur(6px); margin-bottom: 20px;
}
.hero-kicker::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rosso-500);
    box-shadow: 0 0 0 4px rgba(224,27,36,.25);
}
.hero h1 { color: #fff; font-size: clamp(36px, 6vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.hero h1 .accent { color: var(--accento-su-blu); text-shadow: 0 0 36px rgba(255,107,114,.34); }
.hero p { margin-top: 20px; font-size: 18px; color: rgba(255,255,255,.88); max-width: 540px; }
.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-notes { margin-top: 26px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.85); align-items: center; }
.hero-notes span { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes strong { color: #fff; }

/* Carosello modelli nell'hero: scorre da solo, si ferma quando l'utente interagisce */
.hero-slider { position: relative; }
.slider-vista { position: relative; height: 344px; }
.slide {
    position: absolute; inset: 0; margin: 0; padding: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(.97);
    transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1), visibility .8s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.slide-glow {
    position: absolute; top: 46%; left: 50%; width: 84%; aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,.20), rgba(255,255,255,0) 66%);
}
.slide img {
    position: relative; width: 100%; max-width: 430px; height: auto;
    filter: drop-shadow(0 20px 32px rgba(0,0,0,.42));
}
.slide-didascalia { position: relative; margin-top: 18px; text-align: center; }
.slide-didascalia strong {
    display: block; font-family: var(--font-head); font-size: 21px;
    font-weight: 800; color: #fff; letter-spacing: -.01em;
}
.slide-didascalia span { font-size: 13.5px; color: rgba(255,255,255,.78); }

.slider-punti { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 18px; }
.punto {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px;
    background: rgba(255,255,255,.32); cursor: pointer; transition: .3s;
}
.punto:hover { background: rgba(255,255,255,.6); }
.punto.is-active { width: 26px; background: #fff; }

/* Barra di ricerca a cavallo fra hero e contenuto */
.hero-search { position: relative; z-index: 5; margin-top: -54px; }

/* Intestazione di sezione con link/azione laterale */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 38px; }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
.section.bg { background: var(--bg-alt); }
.section.blu { background: var(--blu-900); color: #fff; }
.section.blu h2, .section.blu h3 { color: #fff; }
.section-head { max-width: 740px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
    display: inline-flex; align-items: center; gap: 10px; color: var(--rosso-600);
    font-family: var(--font-head); font-weight: 700; letter-spacing: 1.6px;
    text-transform: uppercase; font-size: 12.5px; margin-bottom: 12px;
}
.section-kicker::before { content: ''; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head.center .section-kicker::before { display: none; }
.section-head h2 { font-size: clamp(27px, 3.8vw, 42px); font-weight: 800; letter-spacing: -.035em; }
.section-head p { margin-top: 12px; color: var(--testo-2); font-size: 17px; }
.section.blu .section-head p { color: rgba(255,255,255,.8); }

/* ---------- Nastro dei modelli ---------- */
.marquee {
    background: var(--blu-800); color: #fff; overflow: hidden;
    padding: 15px 0; position: relative;
}
.marquee-track {
    display: flex; width: max-content;
    animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
    display: inline-flex; align-items: center; gap: 16px; padding: 0 24px;
    font-family: var(--font-head); font-weight: 700; font-size: 15px;
    letter-spacing: .5px; text-transform: uppercase; white-space: nowrap;
    color: rgba(255,255,255,.92);
}
.marquee-item::after { content: '•'; color: var(--accento-su-blu); font-size: 18px; line-height: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Griglia servizi ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bento .card:first-child { grid-column: span 2; }
/* Specificità doppia: la regola base .card è definita più sotto nel foglio */
.card.card-featured { background: var(--grad-blu); border-color: transparent; }
.card.card-featured .card-body h3 { color: #fff; font-size: 23px; }
.card.card-featured .card-body p { color: rgba(255,255,255,.86); font-size: 16px; }
.card.card-featured .card-ico { background: rgba(255,255,255,.18); }
.card.card-featured .card-body .card-link a { color: #fff; }
.card.card-featured:hover { border-color: transparent; box-shadow: 0 22px 46px rgba(11,44,111,.34); }

/* ---------- Barra azioni rapide (solo mobile) ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
    .action-bar {
        display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 2100;
        background: #fff; border-top: 1px solid var(--bordo);
        box-shadow: 0 -6px 22px rgba(16,24,40,.10);
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    }
    .action-bar a {
        display: flex; flex-direction: column; align-items: center; gap: 3px;
        font-family: var(--font-head); font-size: 11.5px; font-weight: 700;
        color: var(--blu-800); padding: 7px 4px; border-radius: 12px;
    }
    .action-bar a:active { background: var(--bg-alt); }
    .action-bar svg { width: 21px; height: 21px; fill: currentColor; }
    .action-bar .ab-primario { background: var(--grad); color: #fff; }
    body { padding-bottom: 76px; }
    .whatsapp-float { bottom: 88px; width: 52px; height: 52px; }
    .whatsapp-float svg { width: 26px; height: 26px; }
    .whatsapp-tip { display: none; }
}

/* ---------- Reveal ---------- */
[data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
    transition-delay: var(--rd, 0s); will-change: opacity, transform;
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Trust / stats ---------- */
.trust-bar { background: var(--blu-800); color: #fff; padding: 26px 0; position: relative; overflow: hidden; }
.trust-bar::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 130% at 85% 0%, rgba(59,130,246,.35), transparent 60%); }
.trust-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 1; }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 18px; position: relative; }
.trust-item:not(:first-child)::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 44px; background: rgba(255,255,255,.18); }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 800; line-height: 1; }
.trust-item strong .sp { font-size: 20px; color: #ff8b91; }
.trust-item small { color: rgba(255,255,255,.8); font-size: 13.5px; font-weight: 500; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 24px; }
/* Gli elementi di griglia non devono mai sfondare per larghezza minima intrinseca
   (es. il campo di caricamento file ha una larghezza nativa molto generosa) */
.grid > *, .steps > *, .form-grid > *, .info-cards > *, .gamma-grid > *,
.promo-strip > *, .search-box form > *, .calc-grid > *, .reviews-wrap > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--card); border: 1px solid var(--bordo); border-radius: var(--radius);
    overflow: hidden; transition: .3s cubic-bezier(.16,1,.3,1);
    display: flex; flex-direction: column; position: relative;
}
.card-top { display: block; height: 4px; background: var(--grad-brand); opacity: 0; transition: opacity .3s; }
.card:hover { box-shadow: var(--ombra-lg); transform: translateY(-5px); border-color: var(--bordo-2); }
.card:hover .card-top { opacity: 1; }
.card-body { padding: 26px 24px; display: flex; flex-direction: column; flex: 1; }
.card-ico {
    width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 22px; background: var(--blu-050); margin-bottom: 16px;
}
.card-body h3 { font-size: 19px; margin-bottom: 8px; }
.card-body p { color: var(--testo-2); font-size: 15px; }
.card-body .card-link { margin-top: auto; padding-top: 18px; }
.card-body .card-link a {
    font-family: var(--font-head); font-size: 13.5px; display: inline-flex; align-items: center;
    gap: 8px; color: var(--rosso-600); font-weight: 700;
}
.card-body .card-link a::after { content: '→'; transition: transform .25s; }
.card-body .card-link a:hover::after { transform: translateX(5px); }

/* ---------- Vehicle card ---------- */
.vehicle-card {
    background: var(--card); border: 1px solid var(--bordo); border-radius: var(--radius);
    overflow: hidden; transition: .3s cubic-bezier(.16,1,.3,1); display: flex; flex-direction: column;
}
.vehicle-card:hover { box-shadow: var(--ombra-lg); transform: translateY(-5px); border-color: var(--bordo-2); }
.vehicle-img { height: 200px; width: 100%; object-fit: cover; background: var(--bg-alt); transition: transform .5s; }
.vehicle-card:hover .vehicle-img { transform: scale(1.05); }
.vehicle-ph {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; text-align: center; padding: 20px;
    background: linear-gradient(135deg, var(--blu-600) 0%, var(--blu-900) 100%);
}
.vehicle-ph span { font-family: var(--font-head); font-size: 25px; font-weight: 800; letter-spacing: .5px; }
.vehicle-ph small { color: rgba(255,255,255,.78); margin-top: 6px; font-size: 13px; }
.vehicle-badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px 0; }
.badge { font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }
.badge-tipo { background: var(--rosso-500); color: #fff; }
.badge-alim { background: var(--blu-050); color: var(--blu-800); border: 1px solid #d6e4ff; }
.vehicle-body { padding: 14px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.vehicle-title { font-size: 20px; }
.vehicle-sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
.vehicle-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bordo); font-size: 13.5px; color: var(--testo-2); }
.vehicle-meta span { display: inline-flex; align-items: center; gap: 6px; }
.vehicle-footer { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vehicle-price { font-family: var(--font-head); font-size: 23px; color: var(--blu-800); font-weight: 800; line-height: 1; }
.vehicle-price small { display: block; font-size: 11px; color: var(--muted); font-family: var(--font-body); font-weight: 400; margin-top: 3px; }

/* ---------- Fascia promo Suzuki ---------- */
.promo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo-card {
    position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--bordo);
    background: var(--card); display: flex; flex-direction: column; transition: .3s cubic-bezier(.16,1,.3,1);
}
.promo-card:hover { box-shadow: var(--ombra-lg); transform: translateY(-5px); }
.promo-card img { width: 100%; height: 180px; object-fit: cover; }
.promo-card .promo-ph { width: 100%; height: 170px; background: var(--grad-blu); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 18px; text-align: center; padding: 16px; }
.promo-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.promo-card-body h3 { font-size: 16.5px; margin-bottom: 10px; }
.promo-card-body .promo-link { margin-top: auto; font-size: 13.5px; font-weight: 700; color: var(--rosso-600); display: inline-flex; align-items: center; gap: 6px; }
.promo-card-body .promo-link::after { content: '→'; transition: transform .25s; }
.promo-card:hover .promo-link::after { transform: translateX(4px); }
.promo-tag {
    position: absolute; top: 12px; left: 12px; background: var(--rosso-500); color: #fff;
    font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
    padding: 5px 10px; border-radius: 999px; z-index: 2;
}

/* ---------- Gamma Suzuki ---------- */
.gamma-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.gamma-card {
    background: var(--card); border: 1px solid var(--bordo); border-radius: var(--radius);
    padding: 18px; text-align: center; display: flex; flex-direction: column;
    transition: .3s cubic-bezier(.16,1,.3,1);
}
.gamma-card:hover { box-shadow: var(--ombra-lg); transform: translateY(-5px); border-color: #d6e4ff; }
.gamma-card img { height: 70px; width: 100%; object-fit: contain; margin-bottom: 12px; }
.gamma-card h3 { font-size: 14.5px; min-height: 38px; display: flex; align-items: center; justify-content: center; }
.gamma-card .gamma-price { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--blu-800); margin: 6px 0 2px; }
.gamma-card .gamma-da { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.gamma-card .gamma-actions { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.gamma-card .gamma-actions .btn { width: 100%; }
.gamma-card .gamma-actions .gamma-link { font-size: 12.5px; font-weight: 600; color: var(--blu-600); }
.gamma-card .gamma-actions .gamma-link:hover { color: var(--rosso-600); text-decoration: underline; }

/* ---------- Barra ricerca ---------- */
.search-box {
    background: var(--card); border: 1px solid var(--bordo); border-radius: var(--radius);
    box-shadow: var(--ombra-md); padding: 22px;
}
.search-box form { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 14px; align-items: end; }

/* ---------- Filters ---------- */
.filters { background: var(--card); border: 1px solid var(--bordo); border-radius: var(--radius); padding: 20px; margin-bottom: 28px; box-shadow: var(--ombra); }
.filters-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }

/* ---------- Fields ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--testo); }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.field select, .field input, .field textarea {
    padding: 12px 14px; border: 1px solid var(--bordo-2); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 15px; background: #fff; min-width: 180px;
    color: var(--testo); transition: border .2s, box-shadow .2s;
}
.field textarea { resize: vertical; width: 100%; }
.field select:focus, .field input:focus, .field textarea:focus {
    outline: none; border-color: var(--blu-500); box-shadow: 0 0 0 4px rgba(21,96,212,.14);
}
/* Errore mostrato solo dopo che l'utente ha interagito col campo */
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid {
    border-color: var(--rosso-500); background: #fffafa;
}

/* ---------- Detail / spec ---------- */
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.detail-photo { border-radius: var(--radius); overflow: hidden; height: 380px; position: relative; }
.detail-photo.vehicle-img { height: 380px; }
.spec-list { list-style: none; border: 1px solid var(--bordo); border-radius: var(--radius); overflow: hidden; background: #fff; }
.spec-list li { display: flex; justify-content: space-between; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--bordo); font-size: 14.5px; }
.spec-list li:nth-child(odd) { background: var(--bg-alt); }
.spec-list li:last-child { border-bottom: 0; }
.spec-list .lbl { color: var(--muted); }
.spec-list .val { font-weight: 700; color: var(--testo); text-align: right; }
.detail-price-bar {
    margin-top: 24px; background: var(--blu-050); border: 1px solid #d6e4ff;
    border-radius: var(--radius); padding: 22px; display: flex; align-items: center;
    justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.detail-price-bar .lbl, .detail-price-bar .small { color: var(--testo-2); }
.detail-price-bar .price { font-family: var(--font-head); font-size: 34px; color: var(--rosso-600); font-weight: 800; line-height: 1; }

/* ---------- Reviews ---------- */
.reviews-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.rating-summary {
    background: var(--card); border: 1px solid var(--bordo); border-radius: var(--radius);
    padding: 30px; text-align: center; position: sticky; top: 100px;
    box-shadow: var(--ombra-md); overflow: hidden;
}
.rating-summary::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-brand); }
.rating-big { font-family: var(--font-head); font-size: 62px; color: var(--blu-800); line-height: 1; font-weight: 800; }
.rating-big span { font-size: 24px; color: var(--rosso-500); }
.rating-stars { color: #f5a623; font-size: 21px; letter-spacing: 4px; margin: 12px 0 6px; }
.rating-summary p { color: var(--testo-2); font-size: 14px; }
.rating-summary .btn { margin-top: 18px; width: 100%; }
.reviews-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review-card { background: var(--card); border: 1px solid var(--bordo); border-radius: var(--radius); padding: 28px; transition: .3s; position: relative; }
.review-card:hover { box-shadow: var(--ombra-lg); transform: translateY(-4px); border-color: var(--bordo-2); }
.review-card .quote-mark { font-family: Georgia, serif; font-size: 50px; color: #f0c3c5; line-height: 1; height: 22px; }
.stars { color: #f5a623; font-size: 16px; letter-spacing: 3px; margin: 10px 0 12px; }
.review-card blockquote { font-size: 15.5px; color: var(--testo-2); }
.review-card .review-author { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.review-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--grad-blu); color: #fff;
    display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800;
}
.review-author strong { display: block; color: var(--testo); }
.review-author small { color: var(--muted); font-size: 13px; }

/* ---------- Banner ---------- */
.banner {
    border-radius: var(--radius); overflow: hidden; background: var(--grad-blu); color: #fff;
    padding: 32px; display: flex; align-items: center; justify-content: space-between;
    gap: 22px; flex-wrap: wrap; position: relative; box-shadow: var(--ombra-md);
}
.banner::before { content: ''; position: absolute; right: -50px; top: -50px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%); }
.banner::after { content: ''; position: absolute; left: -40px; bottom: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(224,27,36,.35), transparent 60%); }
.banner h3 { color: #fff; font-size: 23px; position: relative; }
.banner p { color: rgba(255,255,255,.85); position: relative; }
.banner > * { position: relative; }
.banner-tag { display: inline-block; background: var(--rosso-500); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- Forms ---------- */
.form { background: var(--card); border: 1px solid var(--bordo); border-radius: var(--radius); padding: 30px; box-shadow: var(--ombra-md); }
.form-title { font-size: 20px; margin-bottom: 6px; }
.form-sub { color: var(--testo-2); font-size: 14.5px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: span 2; }
.form-grid .field label { display: block; }
.form-section-title {
    grid-column: span 2; font-family: var(--font-head); font-weight: 800; font-size: 14px;
    text-transform: uppercase; letter-spacing: 1px; color: var(--blu-800);
    padding-top: 8px; border-top: 1px solid var(--bordo); margin-top: 4px;
}
.form-section-title:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 13.5px; color: var(--testo-2); }
.form-consent input { margin-top: 3px; accent-color: var(--blu-500); width: 17px; height: 17px; flex: 0 0 auto; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 18px; border: 1px solid; }
.alert-ok { background: #ecfdf3; border-color: #a6f4c5; color: #054f31; }
.alert-err { background: var(--rosso-050); border-color: #fecdca; color: #912018; }
.alert-err strong { display: block; margin-bottom: 6px; }
.alert-list { margin: 0; padding-left: 18px; }
.alert-list li { margin: 3px 0; }

/* ---------- Form in sezioni ---------- */
.form-section { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.form-section > legend {
    width: 100%; padding: 0 0 12px; margin-bottom: 16px;
    border-bottom: 1px solid var(--bordo);
    font-family: var(--font-head); font-weight: 800; font-size: 13.5px;
    text-transform: uppercase; letter-spacing: .9px; color: var(--blu-800);
    display: flex; align-items: center; gap: 9px;
}
.form-section > legend .num {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--blu-050); color: var(--blu-600); font-size: 12px;
}
.form-section > legend .legend-opt {
    font-family: var(--font-body); font-weight: 500; font-size: 11.5px;
    text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: auto;
}
.form .req { color: var(--rosso-500); font-weight: 700; }

.form-actions { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions .form-note { margin-top: 0; flex: 1 1 220px; }

/* ---------- Caricamento foto ---------- */
.upload-box {
    border: 2px dashed var(--bordo-2); background: var(--bg-alt);
    border-radius: var(--radius-sm); padding: 20px; text-align: center; transition: .2s;
}
.upload-box:hover, .upload-box:focus-within { border-color: var(--blu-500); background: var(--blu-050); }
.upload-label { display: block; cursor: pointer; margin-bottom: 12px; }
.upload-label strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--blu-800); }
.upload-label span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.upload-box input[type="file"] { display: block; width: 100%; min-width: 0; margin: 0 auto; font-size: 13.5px; font-family: var(--font-body); color: var(--testo-2); }
.upload-nomi { font-size: 12.5px; color: var(--blu-600); font-weight: 600; margin-top: 10px; min-height: 18px; word-break: break-word; }

/* ---------- Chip vantaggi ---------- */
.vantaggi { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
    border-radius: 999px; font-size: 13.5px; font-weight: 600;
    background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.26); color: #fff;
}
.chip-luce { background: var(--blu-050); border-color: #d6e4ff; color: var(--blu-800); }

/* ---------- Pagina Vendi la tua auto ---------- */
.vendi-layout { align-items: start; }
.vendi-aside { position: sticky; top: 100px; }
.vendi-form .form { padding: 32px; }
@media (max-width: 1020px) {
    .vendi-aside { position: static; }
}

/* ---------- Riferimento veicolo nel form ---------- */
.form-rif {
    background: var(--blu-050); border: 1px solid #d6e4ff; border-radius: var(--radius-sm);
    padding: 10px 14px; font-size: 13.5px; color: var(--blu-800); margin-bottom: 20px;
}

/* ---------- Filtri attivi ---------- */
.filtri-attivi {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--bordo);
}
.filtri-attivi .small { color: var(--testo-2); font-weight: 600; }
.filtri-attivi .chip-luce { font-size: 13px; padding: 6px 13px; }

/* ---------- Stato vuoto ---------- */
.empty-state {
    background: var(--bg-alt); border: 1px dashed var(--bordo-2);
    border-radius: var(--radius); padding: 44px 28px; text-align: center;
}
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { max-width: 560px; margin: 0 auto; }

/* ---------- Liste con spunta ---------- */
.lista-check { list-style: none; display: grid; gap: 11px; }
.lista-check li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--testo-2); }
.lista-check li::before {
    content: '✓'; position: absolute; left: 0; top: -1px;
    color: var(--blu-500); font-weight: 800; font-size: 16px;
}
.lista-check li strong { color: var(--testo); }
.lista-check.su-due { grid-template-columns: repeat(2, 1fr); gap: 11px 30px; }
@media (max-width: 760px) { .lista-check.su-due { grid-template-columns: 1fr; } }

/* ---------- Galleria consegne ---------- */
.galleria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.galleria figure {
    position: relative; margin: 0; border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--bordo); background: var(--blu-050);
}
.galleria img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform .5s; }
.galleria figure:hover img { transform: scale(1.05); }
.galleria figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px;
    color: #fff; font-size: 13.5px; font-weight: 600;
    background: linear-gradient(transparent, rgba(8,25,74,.85));
}
@media (max-width: 900px) { .galleria { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .galleria { grid-template-columns: 1fr; } }

/* ---------- Tour virtuale ---------- */
.tour-block {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--bordo); box-shadow: var(--ombra-md); background: var(--blu-900);
}
.tour-block iframe { width: 100%; height: 62vh; min-height: 380px; max-height: 640px; border: 0; display: block; }
.tour-poster {
    display: block; position: relative; width: 100%; padding: 0;
    border: 0; background: none; font: inherit; text-align: center;
}
button.tour-poster { cursor: pointer; }
.tour-poster img { width: 100%; height: auto; display: block; }
.tour-cta {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px; padding: 24px;
    color: #fff; background: linear-gradient(180deg, rgba(8,25,74,.28), rgba(8,25,74,.78));
}
.tour-cta strong { font-family: var(--font-head); font-size: clamp(18px, 2.6vw, 26px); font-weight: 800; }
.tour-cta small { font-size: 13.5px; color: rgba(255,255,255,.9); max-width: 440px; }
.tour-play {
    width: 66px; height: 66px; border-radius: 50%; padding-left: 5px;
    background: rgba(255,255,255,.94); color: var(--blu-800);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
    box-shadow: 0 10px 26px rgba(0,0,0,.3); transition: transform .2s;
}
button.tour-poster:hover .tour-play { transform: scale(1.08); }
button.tour-poster:focus-visible .tour-play { transform: scale(1.08); }

/* ---------- Contact / map ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.map-embed { border-radius: var(--radius); overflow: hidden; min-height: 380px; border: 1px solid var(--bordo); box-shadow: var(--ombra-md); background: var(--bg-alt); }
.map-embed iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.info-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.info-card { background: var(--card-2); border: 1px solid var(--bordo); border-radius: var(--radius-sm); padding: 20px; transition: .25s; }
.info-card:hover { border-color: #d6e4ff; background: #fff; box-shadow: var(--ombra); transform: translateY(-2px); }
.info-card h4 { font-size: 15px; margin-bottom: 8px; color: var(--blu-800); }
.info-card p, .info-card li { font-size: 14px; color: var(--testo-2); }
.info-card ul { list-style: none; }
.info-card li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--bordo); padding: 6px 0; font-size: 13.5px; }
.info-card li:last-child { border-bottom: 0; }
.info-card li em { font-style: normal; color: var(--testo); text-align: right; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--bordo); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; transition: .3s; }
.step:hover { box-shadow: var(--ombra-lg); transform: translateY(-4px); }
.step-num {
    width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff;
    font-family: var(--font-head); font-weight: 800; font-size: 19px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
    box-shadow: 0 6px 14px rgba(196,22,28,.26);
}
.step h3 { font-size: 17px; margin-bottom: 6px; }

/* ---------- Page hero ---------- */
.page-hero {
    background: radial-gradient(120% 140% at 10% 0%, #164a9e 0%, #0b2c6f 50%, #08194a 100%);
    color: #fff; padding: 54px 0; position: relative; overflow: hidden;
}
.page-hero::after {
    content: ''; position: absolute; inset: 0; opacity: .05;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="70" height="70"><path d="M0 0 L70 70 M70 0 L0 70" stroke="%23fff"/></svg>');
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .crumbs { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 12px; }
.page-hero .crumbs a { color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; }
.page-hero p { max-width: 660px; margin-top: 12px; color: rgba(255,255,255,.88); font-size: 17px; }
.page-hero .hero-cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blu-900); color: #b8c4d9; margin-top: 72px; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; top: -80px; left: -60px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(21,96,212,.28), transparent 60%); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 34px; padding: 56px 22px 40px; position: relative; z-index: 1; }
.site-footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.site-footer a { color: #b8c4d9; }
.site-footer a:hover { color: #fff; }
.brand-footer { color: #fff; margin-bottom: 14px; }
.brand-footer .brand-text strong { color: #fff; }
.footer-brand p { font-size: 14px; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.09); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; transition: .25s; }
.socials a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.footer-links, .footer-contact, .footer-hours { list-style: none; }
.footer-links li, .footer-contact li, .footer-hours li { margin-bottom: 9px; }
.footer-hours li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.footer-hours em { color: #fff; font-style: normal; text-align: right; }
.footer-contact strong { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; position: relative; z-index: 1; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #8fa0b8; }
.footer-legal { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: #8fa0b8; }

/* ---------- Helpers ---------- */
.mt-10 { margin-top: 10px; } .mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; } .mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; } .mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }
.small { font-size: 13.5px; color: var(--muted); }
.divider { height: 1px; background: var(--bordo); margin: 40px 0; }
.lead { font-size: 17.5px; color: var(--testo-2); }

/* ---------- WhatsApp flottante ---------- */
.whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 2000; width: 58px; height: 58px;
    border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center;
    justify-content: center; box-shadow: 0 10px 26px rgba(37,211,102,.42); transition: transform .25s;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); color: #fff; }
.whatsapp-float svg { width: 29px; height: 29px; fill: #fff; }
.whatsapp-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(37,211,102,.4); animation: waPulse 2.4s ease-out infinite; z-index: -1; }
.whatsapp-tip {
    position: fixed; right: 92px; bottom: 34px; background: #fff; color: var(--testo);
    font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 10px;
    box-shadow: var(--ombra-md); z-index: 2000; opacity: 0; transform: translateX(10px);
    transition: .25s; pointer-events: none; white-space: nowrap;
}
.whatsapp-float:hover + .whatsapp-tip, .whatsapp-float:focus + .whatsapp-tip { opacity: 1; transform: translateX(0); }

/* ---------- Torna su: auto con i fari ---------- */
.scroll-top {
    position: fixed; right: 22px; bottom: 90px; z-index: 1900;
    width: 54px; height: 46px; border: 1px solid var(--bordo); background: #fff;
    border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--ombra-md); opacity: 0; visibility: hidden; transition: .3s; padding: 0;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); border-color: var(--blu-500); box-shadow: var(--ombra-lg); }
.scroll-top svg { width: 40px; height: auto; }

/* ---------- Calcolatore finanziamento ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.calc-card { background: var(--card); border: 1px solid var(--bordo); border-radius: var(--radius); padding: 28px; box-shadow: var(--ombra-md); }
.calc-field { margin-bottom: 20px; }
.calc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.calc-head label { font-size: 12.5px; font-weight: 700; color: var(--testo); }
.calc-head .val { font-family: var(--font-head); font-size: 17px; color: var(--rosso-600); font-weight: 800; }
.calc-range { width: 100%; accent-color: var(--blu-500); cursor: pointer; }
.calc-result { margin-top: 6px; background: var(--bg-alt); border: 1px solid var(--bordo); border-radius: var(--radius-sm); padding: 22px; text-align: center; }
.calc-result .small { color: var(--muted); }
.calc-monthly { font-family: var(--font-head); font-size: 42px; color: var(--blu-800); line-height: 1.1; font-weight: 800; margin: 6px 0; }
.calc-monthly span { color: var(--rosso-500); }
.calc-total { font-size: 13px; color: var(--muted); }

/* ---------- Carousel veicoli ---------- */
.carousel { position: relative; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 300px; scroll-snap-align: start; }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
    border-radius: 50%; background: #fff; color: var(--blu-800); border: 1px solid var(--bordo);
    font-size: 24px; line-height: 1; cursor: pointer; z-index: 2;
    box-shadow: var(--ombra-md); transition: .2s;
    display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: var(--blu-800); color: #fff; border-color: transparent; }
.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--bordo); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item.open { border-color: #d6e4ff; box-shadow: var(--ombra); }
.faq-q {
    width: 100%; text-align: left; background: none; border: 0; color: var(--testo);
    font-family: var(--font-head); font-size: 16.5px; font-weight: 700; padding: 18px 20px;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::after { content: '+'; font-size: 24px; color: var(--rosso-500); font-weight: 400; transition: transform .3s; flex: 0 0 auto; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 20px 20px; color: var(--testo-2); }

/* ---------- Embed (Autoscout24 / tour virtuale) ---------- */
.embed-block { border: 1px solid var(--bordo); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--ombra); }
.embed-block iframe { width: 100%; border: 0; display: block; background: #fff; }
.embed-block.auto-list iframe { min-height: 720px; }
.embed-placeholder { padding: 46px 26px; text-align: center; color: var(--testo-2); background: var(--bg-alt); }
.embed-placeholder strong { display: block; font-family: var(--font-head); font-size: 17px; color: var(--testo); margin-bottom: 8px; }

/* ---------- Keyframes ---------- */
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: fadeUp .8s cubic-bezier(.16,1,.3,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .1s; }
.hero-copy > *:nth-child(3) { animation-delay: .2s; }
.hero-copy > *:nth-child(4) { animation-delay: .3s; }
.hero-copy > *:nth-child(5) { animation-delay: .4s; }

/* ---------- Accessibilità: riduzione del movimento ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .hero-copy > * { animation: none !important; }
    /* Il nastro dei modelli resta fermo e leggibile */
    .marquee-track { animation: none !important; }
    .slide { transition: none !important; }
}

/* ============ Responsive ============ */

@media (max-width: 1150px) {
    .header-phone span { display: none; }
}

@media (max-width: 1140px) {
    .nav-toggle { display: flex; }
    .site-nav {
        /* Pannello ancorato sotto l'header: si muove con lo sticky, nessun overlay a schermo intero */
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-top: 1px solid var(--bordo);
        box-shadow: var(--ombra-lg);
        margin: 0; padding: 8px 22px 20px;
        max-height: 72vh; overflow-y: auto;
        z-index: 999;
    }
    .site-nav.is-open { display: block; }
    .site-nav > ul { flex-direction: column; gap: 0; }
    .site-nav a { padding: 15px 4px; font-size: 16.5px; border-bottom: 1px solid var(--bordo); border-radius: 0; }
    .site-nav a::after { display: none; }
    .site-nav li:last-child a { border-bottom: 0; }
    /* Su mobile il sottomenu diventa un elenco a fisarmonica */
    .nav-padre {
        width: 100%; justify-content: space-between; padding: 15px 4px;
        font-size: 16.5px; border-bottom: 1px solid var(--bordo); border-radius: 0;
    }
    .submenu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; border-radius: 0; min-width: 0;
        padding: 0 0 6px 16px; display: none;
    }
    .site-nav li.has-figli.is-open > .submenu { display: block; }
    .submenu a { border-bottom: 1px solid var(--bordo); }
    .gamma-grid { grid-template-columns: repeat(3, 1fr); }
    .promo-strip { grid-template-columns: repeat(2, 1fr); }
    .search-box form { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; }
    /* width esplicita: senza, i margini automatici annullano lo stretch di griglia */
    .hero-slider { width: 100%; max-width: 470px; margin: 30px auto 0; }
    .slider-vista { height: 300px; }
}

@media (max-width: 1020px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento .card:first-child { grid-column: span 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .detail-grid, .contact-grid { grid-template-columns: 1fr; }
    .reviews-wrap { grid-template-columns: 1fr; }
    .rating-summary { position: static; }
    .reviews-cards { grid-template-columns: repeat(2, 1fr); }
    .calc-grid { grid-template-columns: 1fr; }
    .hero { padding: 62px 0 88px; }
    .topbar-list { gap: 14px; }
}

@media (max-width: 760px) {
    .grid-3, .grid-4, .grid-2, .reviews-cards, .steps, .form-grid,
    .contact-grid, .info-cards, .promo-strip, .search-box form { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .bento .card:first-child { grid-column: span 1; }
    .form-grid .full, .form-section-title { grid-column: span 1; }
    .trust-bar .container { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
    .trust-item:nth-child(3)::before { display: none; }
    .gamma-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 52px 0; }
    .hero { padding: 46px 0 74px; }
    .hero-search { margin-top: -36px; }
    .vehicle-img, .detail-photo.vehicle-img { height: 210px; }
    .footer-grid { grid-template-columns: 1fr; }
    .form { padding: 22px; }
    .vendi-form .form { padding: 22px; }
    .topbar-inner { justify-content: center; }
    .topbar-right { display: none; }
    /* Il banner è 8:1: su mobile si ritaglia a sinistra per restare leggibile */
    .header-banner img { height: 94px; object-fit: cover; object-position: left center; }
    .scroll-top { display: none; }
    .carousel-btn.prev { left: -6px; }
    .carousel-btn.next { right: -6px; }
}

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

@media (max-width: 640px) {
    /* Gli orari non entrano nella barra su schermi stretti:
       restano visibili nel footer e nella pagina Contatti.
       Il selettore completo serve a battere la specificità di .topbar-list li */
    .topbar-list li.topbar-orari { display: none; }
}

/* ---------- Stampa ---------- */
@media print {
    .site-header, .site-footer, .whatsapp-float, .whatsapp-tip, .scroll-top, .topbar, .header-banner { display: none !important; }
    body { color: #000; background: #fff; }
}
