/* ==========================================================================
   EVOLUTE MOTORS — foglio di stile del sito
   Direzione: "showroom notturno". Fondo grafite, testo argento, nessun colore
   d'accento: il colore arriva solo dalle auto. Il taglio a 53° del logo
   (rapporto 3:4) è il dettaglio geometrico ricorrente su bottoni e foto.
   ========================================================================== */

/* ---------- Font self-hosted (niente Google Fonts esterni: meglio per il GDPR) ---------- */
@font-face { font-family: 'Archivo Expanded'; src: url('../fonts/archivo-expanded-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo Expanded'; src: url('../fonts/archivo-expanded-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-regular-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-regular-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-regular-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/plexmono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/plexmono-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* grafite: profondità per toni, non per ombre */
  --bg: #0B0C0D;
  --bg-1: #0F1012;
  --bg-2: #131416;
  --bg-3: #1A1C1F;
  --bg-4: #23262A;
  /* argento */
  --ink: #ECEBE8;
  --ink-2: #A9ACB1;
  --ink-3: #75797F;
  --ink-4: #4B4E53;
  --line: rgba(236, 235, 232, .09);
  --line-2: rgba(236, 235, 232, .16);
  --line-3: rgba(236, 235, 232, .3);
  /* sezioni chiare */
  --paper: #E6E5E1;
  --paper-2: #D9D8D3;
  --paper-ink: #0E0F11;
  --paper-ink-2: #4E5156;
  --paper-ink-3: #7A7D82;
  --paper-line: rgba(14, 15, 17, .13);
  /* solo per stati funzionali dei moduli */
  --error: #E8A091;

  /* cromo: un riflesso, non una decorazione */
  --chrome: linear-gradient(180deg, #F7F8F9 0%, #CBD0D5 36%, #7D838A 50%, #9AA0A7 53%, #E2E5E8 72%, #8F959C 100%);

  --f-display: 'Archivo Expanded', 'Archivo', system-ui, sans-serif;
  --f-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --gutter: clamp(16px, 3.4vw, 56px);
  --maxw: 1560px;
  --header-h: 76px;

  --ease: cubic-bezier(.77, 0, .175, 1);      /* curva della casa: ingressi */
  --ease-out: cubic-bezier(.19, 1, .22, 1);   /* assestamento lungo */
  --ease-ui: cubic-bezier(.22, 1, .36, 1);    /* micro-interazioni */
  --ease-roll: cubic-bezier(.76, 0, .24, 1);  /* rotolamento etichette */

  --cut: 14px;                                /* taglio a 53°: orizzontale = cut, verticale = cut × 4/3 */
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 560'%3E%3Cpath d='M202.42 14.09A277 277 0 0 0 172 535.08L172 464.75A214 214 0 0 1 68.33 311.5L202.44 311.5L202.44 248.5L68.33 248.5A214 214 0 0 1 208.5 78.3L208.5 177L271.5 177L271.5 106.2ZM280 89.2L220.24 9.52A277 277 0 0 1 339.76 9.52ZM280 470.8L339.76 550.48A277 277 0 0 1 220.24 550.48ZM288.5 106.2L351.5 22.2L351.5 425.67L487 245L458 165L458 67.76A277 277 0 0 1 557 280L357.57 545.9L288.5 453.8Z'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.section--paper :focus-visible { outline-color: var(--paper-ink); }
[hidden] { display: none !important; }

.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; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300; padding: 12px 16px;
  background: var(--ink); color: var(--bg); font-weight: 600;
  transform: translateY(-160%); transition: transform .3s var(--ease-ui);
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(96px, 11vw, 176px); position: relative; }
.section--tight { padding-block: clamp(72px, 7vw, 112px); }
.section--paper { background: var(--paper); color: var(--paper-ink); }

/* ---------- Tipografia ---------- */
.display-xl, .display-l, .h2, .h3 {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0; font-kerning: normal;
}
.display-xl { font-size: 94px; line-height: .9; }
.display-l { font-size: 76px; line-height: .92; }
.h2 { font-size: 56px; line-height: .94; }
.h3 { font-size: 24px; line-height: 1.04; }
.t-grey { color: var(--ink-3); }
.section--paper .t-grey { color: var(--paper-ink-3); }

.lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 520px; }
.section--paper .lead { color: var(--paper-ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; line-height: 1.3;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
/* il cuneo del logo, puntato verso il basso, come segnaposto */
.eyebrow::before {
  content: ''; flex: none; width: 9px; height: 6px; background: currentColor;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.section--paper .eyebrow { color: var(--paper-ink-3); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Taglio a 53° (3:4) — dal logo ---------- */
.cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% calc(var(--cut) * 1.3333), 100% 100%, 0 100%); }
.cut--lg { --cut: 28px; }

/* ---------- Etichetta che rotola (hover dei link/bottoni) ---------- */
.roll { display: inline-block; overflow: hidden; vertical-align: top; height: 1.3em; line-height: 1.3; }
.roll > span { display: block; transition: transform .45s var(--ease-roll); }
a:hover .roll > span, button:hover .roll > span,
a:focus-visible .roll > span, button:focus-visible .roll > span { transform: translateY(-100%); }

/* ---------- Bottoni ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: var(--h); padding: 0 24px; white-space: nowrap;
  font-family: var(--f-display); font-size: 12.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  transition: background-color .35s var(--ease-ui), color .35s var(--ease-ui), box-shadow .35s var(--ease-ui);
}
.btn--sm { --h: 42px; padding: 0 18px; font-size: 11.5px; gap: 10px; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--ink); color: var(--bg);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 16px, 100% 100%, 0 100%);
}
.btn--primary:hover { background: #FFFFFF; }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.section--paper .btn--primary { background: var(--paper-ink); color: var(--paper); }
.section--paper .btn--primary:hover { background: #000; }
.section--paper .btn--ghost { color: var(--paper-ink); box-shadow: inset 0 0 0 1px rgba(14, 15, 17, .35); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .arrow { transition: transform .45s var(--ease-roll); }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: 12px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .45s var(--ease-roll); }
.link-arrow:hover svg { transform: translateX(5px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--ink-2);
  transition: color .3s var(--ease-ui);
}
.icon-btn:hover { color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color .45s var(--ease-ui), box-shadow .45s var(--ease-ui);
}
.site-header.is-scrolled {
  background: rgba(11, 12, 13, .74);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 -1px 0 var(--line);
}
.site-header__bar { height: 100%; display: flex; align-items: center; gap: 40px; }
/* sul computer, scorrendo, la barra diventa una lastra di vetro sospesa */
@media (min-width: 1025px) {
  .site-header.is-scrolled { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .site-header__bar { position: relative; }
  .site-header__bar::before {
    content: ''; position: absolute; z-index: -1; inset: 10px calc(var(--gutter) - 20px);
    background: rgba(17, 18, 20, .72); -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
    box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05);
    opacity: 0; transform: translate3d(0, -8px, 0);
    transition: opacity .45s var(--ease-ui), transform .7s var(--ease-out);
  }
  .site-header.is-scrolled .site-header__bar::before { opacity: 1; transform: none; }
}

.brand { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.brand__mark {
  position: relative; width: 36px; height: 36px; flex: none; overflow: hidden;
  background: var(--chrome);
  -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat;
}
/* un riflesso attraversa il cromo al passaggio del mouse */
.brand__mark::after {
  content: ''; position: absolute; inset: -20%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%);
  transform: translateX(-110%); transition: transform 1s var(--ease);
}
.brand:hover .brand__mark::after { transform: translateX(110%); }
.brand__word {
  font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; line-height: 1;
}
.brand__word span { color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: 30px; margin-right: auto; }
.nav__link { font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .3s var(--ease-ui); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"] .roll > span:first-child::after {
  content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 8px; vertical-align: middle;
  background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.header-phone { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-2); transition: color .3s var(--ease-ui); }
.header-phone:hover { color: var(--ink); }

.menu-btn {
  display: none; align-items: center; gap: 10px; height: 42px; padding: 0 2px;
  font-family: var(--f-display); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
.menu-btn__icon { position: relative; width: 20px; height: 8px; }
.menu-btn__icon::before, .menu-btn__icon::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after { top: 6.5px; }
.menu-open .menu-btn__icon::before { top: 3.25px; transform: rotate(45deg); }
.menu-open .menu-btn__icon::after { top: 3.25px; transform: rotate(-45deg); }

/* ---------- Menu mobile: indice numerato a tutto schermo ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; padding: calc(var(--header-h) + 24px) var(--gutter) 28px;
  visibility: hidden; opacity: 0; transition: opacity .45s var(--ease-ui), visibility 0s linear .45s;
  overflow-y: auto;
}
.menu-open .mobile-menu { visibility: visible; opacity: 1; transition: opacity .35s var(--ease-ui); }
.mobile-menu__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: 30px; font-weight: 600; text-transform: uppercase; line-height: 1;
}
.mobile-menu__list a small { font-family: var(--f-mono); font-size: 11px; font-weight: 400; color: var(--ink-3); letter-spacing: .06em; }
.mobile-menu__list li { overflow: hidden; }
.mobile-menu__list li > a { transform: translateY(105%); transition: transform .8s var(--ease); }
.menu-open .mobile-menu__list li > a { transform: none; }
.menu-open .mobile-menu__list li:nth-child(2) > a { transition-delay: .05s; }
.menu-open .mobile-menu__list li:nth-child(3) > a { transition-delay: .1s; }
.menu-open .mobile-menu__list li:nth-child(4) > a { transition-delay: .15s; }
.menu-open .mobile-menu__list li:nth-child(5) > a { transition-delay: .2s; }
.mobile-menu__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 10px; }
.mobile-menu__contacts { display: grid; gap: 6px; margin-bottom: 14px; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); }

/* ---------- Ingressi (stato nascosto scritto nel CSS, attivato solo se c'è JS) ---------- */
.js [data-reveal] {
  opacity: .001; transform: translateY(var(--ry, 28px));
  transition: opacity .9s linear, transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.line { display: block; overflow: hidden; padding: .06em 0 .1em; margin: -.06em 0 -.1em; }
.line__in { display: block; }
.js [data-lines] .line__in { transform: translateY(112%); transition: transform 1.05s var(--ease); }
.js [data-lines] .line:nth-child(2) .line__in { transition-delay: .09s; }
.js [data-lines] .line:nth-child(3) .line__in { transition-delay: .18s; }
.js [data-lines].is-in .line__in { transform: none; }

/* ==========================================================================
   HERO 3D: la X6 in vetrina
   Sul computer la sezione è alta due schermate: la scena resta ferma (sticky)
   mentre l'auto gira sulla pedana. hero3d.js scrive --p (avanzamento 0 → 1)
   e --load (caricamento del modello 0 → 1). --car-x, --car-y e --car-fill
   dicono al 3D dove mettere l'auto e quanto farla grande.
   ========================================================================== */
.hero3d {
  --car-x: .66; --car-y: .58; --car-fill: .6;
  --ground: calc(var(--car-y) * 100% + var(--car-fill) * 13.9vw);   /* dove le ruote toccano terra */
  position: relative; height: 200svh;
}
.hero3d__sticky {
  position: sticky; top: 0; height: 100svh; min-height: 640px;
  display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
}
.hero3d__stage { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); }
/* la pedana: una pozza di luce sul pavimento e un alone dall'alto */
.hero3d__floor {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 36% 16% at calc(var(--car-x) * 100%) var(--ground), rgba(236, 235, 232, .09), rgba(236, 235, 232, 0) 72%),
    radial-gradient(ellipse 60% 55% at calc(var(--car-x) * 100%) -12%, rgba(236, 235, 232, .07), rgba(236, 235, 232, 0) 72%);
}
/* la scritta sulla parete dello showroom, dietro l'auto */
.hero3d__word {
  position: absolute; left: 50%; top: calc(var(--car-y) * 100%);
  font-family: var(--f-display); font-size: 18.5vw; font-weight: 600; line-height: .8; letter-spacing: -.02em;
  text-transform: uppercase; white-space: nowrap; user-select: none; pointer-events: none;
  background: linear-gradient(180deg, rgba(236, 235, 232, .11) 0%, rgba(236, 235, 232, .04) 52%, rgba(236, 235, 232, 0) 82%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translate(-50%, -64%);
}
.hero3d__fallback { position: absolute; inset: 0; opacity: 0; background: #050506 50% 62% / cover no-repeat; transition: opacity 1s linear; }
/* la foto si scarica solo se serve: senza JavaScript o se il 3D non parte */
html:not(.js) .hero3d__fallback, .hero3d.is-3d-failed .hero3d__fallback { opacity: 1; background-image: var(--img); }
.hero3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s linear; }
.hero3d.is-3d-ready .hero3d__canvas { opacity: 1; }
/* caricamento: una linea di luce sul pavimento che si riempie */
.hero3d__load {
  position: absolute; left: calc(var(--car-x) * 100% - 13vw); top: var(--ground);
  width: 26vw; height: 1px; background: var(--line); overflow: hidden; transition: opacity .8s linear;
}
.hero3d__load::after {
  content: ''; position: absolute; inset: 0; background: var(--ink-2);
  transform-origin: 0 50%; transform: scaleX(var(--load, 0)); transition: transform .5s var(--ease-ui);
}
.hero3d.is-3d-ready .hero3d__load, .hero3d.is-3d-failed .hero3d__load, html:not(.js) .hero3d__load { opacity: 0; }

/* vignetta: il buio dello studio chiude la scena ai bordi */
.hero3d__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 85% 75% at 58% 52%, rgba(11, 12, 13, 0) 55%, rgba(11, 12, 13, .55) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 12, 13, 0) 14%);
}
html:not(.js) .hero3d__shade, .hero3d.is-3d-failed .hero3d__shade {
  background:
    linear-gradient(90deg, rgba(11, 12, 13, .94) 0%, rgba(11, 12, 13, .7) 30%, rgba(11, 12, 13, .08) 58%, rgba(11, 12, 13, 0) 70%),
    linear-gradient(0deg, rgba(11, 12, 13, .96) 0%, rgba(11, 12, 13, .5) 24%, rgba(11, 12, 13, 0) 46%),
    linear-gradient(180deg, rgba(11, 12, 13, .6) 0%, rgba(11, 12, 13, 0) 18%);
}

.hero3d__inner {
  position: relative; flex: 1; display: grid; grid-template-rows: auto 1fr auto;
  padding-top: calc(var(--header-h) + clamp(28px, 6.5vh, 76px)); padding-bottom: clamp(24px, 4vh, 44px);
}
.hero3d__content { display: grid; gap: 26px; justify-items: start; align-content: start; }
.hero3d__lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 440px; }
.hero3d__lead strong { color: var(--ink); font-weight: 600; }
.hero3d__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero3d__actions .btn--ghost { background: rgba(11, 12, 13, .7); }

/* l'auto in vetrina: una barra di dati sul fondo, come in un configuratore */
.hud {
  grid-row: 3; display: grid; align-items: end; gap: 8px clamp(28px, 3.4vw, 64px);
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "k price link" "car terms link";
  padding-top: 22px; box-shadow: inset 0 1px 0 var(--line-2);
}
.hud__k { grid-area: k; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hud__car { grid-area: car; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.1; text-transform: uppercase; }
.hud__car span { font-family: var(--f-body); font-size: 14px; font-weight: 400; text-transform: none; color: var(--ink-2); }
.hud__price { grid-area: price; font-family: var(--f-display); font-size: 30px; font-weight: 500; line-height: .9; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud__price small { font-family: var(--f-body); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); margin-left: 4px; }
.hud__terms { grid-area: terms; display: flex; flex-wrap: wrap; gap: 2px 14px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .05em; line-height: 1.6; text-transform: uppercase; color: var(--ink-3); }
.hud .link-arrow { grid-area: link; justify-self: end; padding-bottom: 2px; }

/* colori della carrozzeria: sotto l'auto, compaiono solo col modello 3D */
.hero3d__paint {
  position: absolute; right: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); bottom: calc(clamp(24px, 4vh, 44px) + 32px);
  display: flex; gap: 6px; visibility: hidden;
}
.hero3d.is-3d-ready .hero3d__paint { visibility: visible; animation: hero-fade-in .8s linear 1.2s backwards; }
@keyframes hero-fade-in { from { opacity: 0; } }
.hero3d__paint button {
  display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 12px 0 9px;
  font-size: 13px; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2);
  background: rgba(11, 12, 13, .5);
  transition: color .3s var(--ease-ui), box-shadow .3s var(--ease-ui);
}
.hero3d__paint button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.hero3d__paint button[aria-checked="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* campione di vernice: il colore con un riflesso, tagliato a 53° come il logo */
.hero3d__paint i {
  width: 14px; height: 14px; flex: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .35)), var(--c);
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 5.33px, 100% 100%, 0 100%);
}

/* credito dell'autore del modello, in verticale sul bordo destro come una didascalia */
.hero3d__credit {
  position: absolute; right: 12px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4);
}
.hero3d__credit a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.hero3d__credit a:hover { color: var(--ink); }
html:not(.js) .hero3d__credit, .hero3d.is-3d-failed .hero3d__credit { display: none; }

/* senza 3D la sezione non resta ferma: è una normale apertura con foto */
html:not(.js) .hero3d, .hero3d.is-3d-failed { height: auto; }

/* elementi che entrano nel giro d'apertura */
.js .hero3d [data-appear] { opacity: .001; transform: translateY(18px); transition: opacity .8s linear, transform 1s var(--ease-out); }
.js .hero3d.is-in [data-appear] { opacity: 1; transform: none; }
.js .hero3d.is-in [data-appear="1"] { transition-delay: .55s; }
.js .hero3d.is-in [data-appear="2"] { transition-delay: .7s; }
.js .hero3d.is-in [data-appear="3"] { transition-delay: .82s; }
.js .hero3d.is-in [data-appear="4"] { transition-delay: 1s; }
.js .hero3d__title.is-in .line__in { transition-delay: .25s; }
.js .hero3d__title.is-in .line:nth-child(2) .line__in { transition-delay: .36s; }
/* il menu arriva per ultimo: prima i contenuti */
.js .site-header--intro { opacity: 0; transform: translateY(-12px); }
.js .site-header--intro.is-in { opacity: 1; transform: none; transition: opacity .7s linear .95s, transform 1s var(--ease-out) .95s, background-color .45s var(--ease-ui); }

/* scorrendo (computer e tablet, dove la scena resta ferma): i testi lasciano la scena all'auto */
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference), (min-width: 769px) and (orientation: landscape) and (prefers-reduced-motion: no-preference) {
  .js .hero3d:not(.is-3d-failed) .hero3d__inner { opacity: calc(1 - var(--p, 0) * 2.4); transform: translate3d(0, calc(var(--p, 0) * -6vh), 0); }
  .js .hero3d.is-3d-ready .hero3d__paint { opacity: calc(1 - var(--p, 0) * 2.4); }
  .js .hero3d.is-away .hero3d__inner, .js .hero3d.is-away .hero3d__paint { visibility: hidden; }
  .js .hero3d__word { transform: translate(-50%, -64%) translate3d(calc(var(--p, 0) * -12vw), 0, 0); }
}

/* ==========================================================================
   MARCHE: un nastro che scorre (si ferma col mouse sopra)
   ========================================================================== */
.brands { padding-block: clamp(26px, 3vw, 40px); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; flex: none; }
.marquee__list li {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--f-display); font-size: clamp(17px, 1.55vw, 23px); font-weight: 500; letter-spacing: .02em; line-height: 1;
  text-transform: uppercase; color: var(--ink-3); transition: color .3s var(--ease-ui);
}
.marquee__list li:hover { color: var(--ink); }
/* il cuneo del logo fa da separatore */
.marquee__list li::after {
  content: ''; width: 9px; height: 6px; margin-inline: clamp(26px, 3.2vw, 52px);
  background: var(--ink-4); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Finder (ricerca rapida della rata) ---------- */
.finder {
  display: grid; grid-template-columns: minmax(260px, 1.15fr) minmax(0, 2fr) auto; align-items: stretch;
  background: rgba(15, 16, 18, .7); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.finder__cell { padding: 20px 24px 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.finder__cell + .finder__cell { box-shadow: inset 1px 0 0 var(--line); }
.finder__label { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px; }
.finder__value { font-family: var(--f-display); font-size: 22px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.finder__value small { font-family: var(--f-body); font-size: 13px; color: var(--ink-3); font-weight: 400; margin-right: 6px; text-transform: none; }
.finder__go { align-content: center; padding-right: 20px; }
/* la legenda di un fieldset si comporta come testo normale */
.finder__cats legend, .ctl > legend, .field > legend { float: left; width: 100%; margin-bottom: 10px; }
.finder__cats .chips, .ctl > .chips { clear: both; }
.finder__go .btn { min-width: 210px; }

/* range */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--ink) var(--p), var(--line-2) var(--p)); }
.range::-moz-range-track { height: 2px; background: linear-gradient(90deg, var(--ink) var(--p), var(--line-2) var(--p)); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; background: var(--ink); border: 0; border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(236, 235, 232, .08); transition: box-shadow .3s var(--ease-ui);
}
.range::-moz-range-thumb { width: 16px; height: 16px; background: var(--ink); border: 0; border-radius: 50%; box-shadow: 0 0 0 6px rgba(236, 235, 232, .08); }
.range:hover::-webkit-slider-thumb, .range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 9px rgba(236, 235, 232, .14); }
.range:focus-visible { outline: none; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 34px; padding: 0 13px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color .3s var(--ease-ui), color .3s var(--ease-ui), box-shadow .3s var(--ease-ui);
}
.chip:hover span { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.chip input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }

/* ==========================================================================
   STRUMENTAZIONE (riga di dati sotto l'hero)
   ========================================================================== */
.gauges-wrap { padding-top: clamp(56px, 6vw, 96px); }
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.gauge { padding: 40px 28px 36px 0; display: grid; gap: 14px; align-content: start; }
.gauge + .gauge { padding-left: 28px; box-shadow: inset 1px 0 0 var(--line); }
.gauge__value { font-family: var(--f-display); font-size: 56px; font-weight: 500; line-height: .9; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.gauge__value small { font-size: .42em; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.gauge__label { font-size: 14.5px; color: var(--ink-2); max-width: 240px; line-height: 1.45; }
/* fascia sotto l'apertura: ricerca su un pannello pieno, poi i numeri */
.finder-band__title { margin-bottom: 22px; }
.finder-band .finder { background: var(--bg-1); -webkit-backdrop-filter: none; backdrop-filter: none; }
.finder-band .gauges { margin-top: clamp(56px, 6vw, 96px); }

/* ==========================================================================
   INTESTAZIONI DI SEZIONE (grande a sinistra, piccolo a destra)
   ========================================================================== */
.sec-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 5vw, 80px); }
.sec-head__title { display: grid; gap: 22px; }
.sec-head__side { display: grid; gap: 22px; justify-items: start; padding-bottom: 6px; }
.sec-head__side .lead { font-size: 16.5px; }
/* variante: titolo e testo uno sotto l'altro, il testo spostato a destra (si legge in diagonale) */
.sec-head--stack { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.sec-head--stack > .lead { max-width: 500px; margin-left: 50%; }

/* ---------- Selettore tipo cliente (prezzi IVA inclusa/esclusa) ---------- */
.seg { display: inline-flex; box-shadow: inset 0 0 0 1px var(--line-2); padding: 3px; gap: 3px; }
.seg button, .seg label { position: relative; }
.seg button, .seg label span {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background-color .3s var(--ease-ui), color .3s var(--ease-ui);
}
.seg small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; color: inherit; opacity: .7; }
.seg button:hover, .seg label:hover span { color: var(--ink); }
.seg button[aria-checked="true"], .seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }

/* ==========================================================================
   SCHEDA AUTO (tile editoriale, senza box)
   ========================================================================== */
.car { position: relative; min-width: 0; }
.car__link { display: grid; gap: 22px; }
.car__media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); overflow: hidden; --cut: 22px; }
.car__media img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(.92);
  transition: transform .7s var(--ease-ui), filter .7s var(--ease-ui);
}
.car__link:hover .car__media img, .car__link:focus-visible .car__media img { transform: scale(.975); filter: saturate(1); }
.car__media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(0deg, rgba(11, 12, 13, .55), rgba(11, 12, 13, 0)); pointer-events: none; }
/* una luce segue il puntatore sulla foto (site.js scrive --mx e --my) */
.car__media::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 62%);
  transition: opacity .5s var(--ease-ui);
}
.car__link:hover .car__media::before { opacity: 1; }
.car__tags { position: absolute; left: 14px; top: 14px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  background: rgba(11, 12, 13, .72); color: var(--ink);
}
.car__badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.car__badge::before { content: ''; width: 6px; height: 6px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.car__body { display: grid; gap: 0; }
.car__brand { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.car__model { font-family: var(--f-display); font-size: 26px; font-weight: 600; text-transform: uppercase; line-height: 1; margin-top: 8px; }
.car__version { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car__price { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 2px 14px; margin-top: 20px; padding-top: 18px; box-shadow: inset 0 1px 0 var(--line); }
.car__from { grid-row: 1; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 6px; }
.car__amount { grid-row: 1; font-family: var(--f-display); font-size: 40px; font-weight: 500; line-height: .9; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.car__amount small { font-family: var(--f-body); font-size: 14px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; margin-left: 4px; }
.car__terms { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.car__cta { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.car__cta svg { width: 15px; height: 15px; transition: transform .45s var(--ease-roll); }
.car__link:hover .car__cta svg { transform: translateX(5px); }

/* ---------- Binario orizzontale delle offerte (esce dal bordo destro) ---------- */
.rail-wrap { position: relative; }
.rail {
  --card-w: clamp(290px, 29vw, 460px);
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-w); gap: clamp(16px, 2vw, 32px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  padding-right: var(--gutter);
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging a { pointer-events: none; }
.rail-controls { display: flex; align-items: center; gap: 24px; margin-top: 40px; }
.rail-count { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 64px; }
.rail-count b { color: var(--ink); font-weight: 500; }
.rail-bar { flex: 1; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.rail-bar span { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(.2); transition: transform .5s var(--ease-ui); }
.rail-arrows { display: flex; gap: 8px; }
.rail-arrows button { width: 46px; height: 46px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .3s var(--ease-ui), opacity .3s; }
.rail-arrows button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.rail-arrows button[disabled] { opacity: .3; pointer-events: none; }
.rail-arrows svg { width: 16px; height: 16px; }

/* ==========================================================================
   TUTTO INCLUSO (sezione chiara)
   ========================================================================== */
.included { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 48px clamp(48px, 7vw, 120px); align-items: start; }
.included__intro { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 26px; }
.included__note { font-size: 14px; color: var(--paper-ink-3); max-width: 380px; }
.incl-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.incl-item { display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; padding: 22px 0 24px; box-shadow: inset 0 -1px 0 var(--paper-line); transition: opacity .4s var(--ease-ui); }
.incl-list:hover .incl-item { opacity: .42; }
.incl-list:hover .incl-item:hover { opacity: 1; }
.incl-item__n { font-family: var(--f-mono); font-size: 12px; color: var(--paper-ink-3); padding-top: 3px; }
.incl-item__t { font-family: var(--f-display); font-size: 15.5px; font-weight: 600; text-transform: uppercase; line-height: 1.2; letter-spacing: .01em; }
.incl-item__d { grid-column: 2; font-size: 14.5px; color: var(--paper-ink-2); line-height: 1.5; }
.incl-extra { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 14.5px; color: var(--paper-ink-2); }
.incl-extra b { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-ink); }

/* ==========================================================================
   COME FUNZIONA
   ========================================================================== */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 44px; }
.steps__rail { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); }
.steps__rail span { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 2.4s var(--ease); }
.steps.is-in .steps__rail span { transform: scaleX(1); }
.step { position: relative; display: grid; gap: 16px; align-content: start; padding-right: 12px; }
.step::before {
  content: ''; position: absolute; top: -50px; left: 0; width: 12px; height: 8px; background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.step__n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-3); }
.step__t { font-family: var(--f-display); font-size: 22px; font-weight: 600; text-transform: uppercase; line-height: 1.05; }
.step__d { font-size: 15.5px; color: var(--ink-2); max-width: 300px; }

/* ==========================================================================
   PER CHI: pannelli che si allargano (computer) e schede apribili (telefono)
   ========================================================================== */
.acc-panels { display: flex; gap: clamp(8px, 1vw, 16px); height: clamp(500px, 42vw, 640px); }
.acc-panel {
  --cut: 22px;
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--bg-2);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% calc(var(--cut) * 1.3333), 100% 100%, 0 100%);
  transition: flex-grow .9s var(--ease);
}
.acc-panel[data-open] { flex-grow: 3.6; }
.acc-panel__media { position: absolute; inset: 0; }
.acc-panel__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.7) brightness(.5); transform: scale(1.05);
  transition: filter .9s var(--ease-ui), transform 1.4s var(--ease-out);
}
.acc-panel[data-open] .acc-panel__media img { filter: saturate(.9) brightness(.8); transform: none; }
.acc-panel__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 12, 13, .94) 0%, rgba(11, 12, 13, .4) 46%, rgba(11, 12, 13, .1) 78%, rgba(11, 12, 13, .5) 100%); }
.acc-panel__head {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: 24px; text-align: left; color: var(--ink);
}
.acc-panel__head:focus-visible { outline-offset: -8px; }
.acc-panel__n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-2); }
.acc-panel__label {
  font-family: var(--f-display); font-size: 20px; font-weight: 600; line-height: 1; text-transform: uppercase; white-space: nowrap;
  writing-mode: vertical-rl; transform: rotate(180deg); transition: opacity .4s var(--ease-ui);
}
.acc-panel[data-open] .acc-panel__label { opacity: 0; }
.acc-panel__body {
  position: absolute; left: 0; bottom: 0; z-index: 3; width: min(520px, 100vw - 2 * var(--gutter));
  padding: 0 28px 30px; display: grid; gap: 18px; justify-items: start;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s linear, transform .5s var(--ease-out), visibility 0s linear .3s;
}
.acc-panel[data-open] .acc-panel__body { opacity: 1; visibility: visible; transform: none; transition: opacity .6s linear .35s, transform .9s var(--ease-out) .3s, visibility 0s; }
.acc-panel__t { font-family: var(--f-display); font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; line-height: 1.02; text-transform: uppercase; }
.acc-panel__list { display: grid; width: 100%; }
.acc-panel__list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 11px 0; font-size: 15px; color: var(--ink-2); box-shadow: inset 0 -1px 0 var(--line-2); }
.acc-panel__list li::before { content: ''; width: 8px; height: 5px; margin-top: 9px; background: var(--ink-3); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 40px; max-width: 760px; }

/* ==========================================================================
   FAQ (accordion)
   ========================================================================== */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 48px clamp(48px, 7vw, 120px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 26px; justify-items: start; }
.acc { box-shadow: inset 0 1px 0 var(--paper-line); }
.acc__item { box-shadow: inset 0 -1px 0 var(--paper-line); }
.acc__q {
  width: 100%; display: grid; grid-template-columns: 1fr 24px; gap: 24px; align-items: center; text-align: left;
  padding: 26px 0; font-size: 18.5px; font-weight: 500; line-height: 1.35; color: var(--paper-ink);
}
.acc__icon { position: relative; width: 18px; height: 18px; justify-self: end; }
.acc__icon::before, .acc__icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .45s var(--ease-ui), opacity .35s var(--ease-ui), filter .35s var(--ease-ui); }
.acc__icon::after { transform: rotate(90deg); }
.acc__item[data-open="true"] .acc__icon::after { transform: rotate(90deg) scaleX(.2); opacity: 0; filter: blur(1px); }
.acc__a { height: 0; overflow: hidden; }
.acc__a > div { padding: 0 48px 28px 0; font-size: 16px; color: var(--paper-ink-2); display: grid; gap: 12px; max-width: 680px; }
/* le stesse domande su fondo scuro */
.section--line { box-shadow: inset 0 1px 0 var(--line); }
.section--line .acc { box-shadow: inset 0 1px 0 var(--line-2); }
.section--line .acc__item { box-shadow: inset 0 -1px 0 var(--line-2); }
.section--line .acc__q { color: var(--ink); }
.section--line .acc__a > div { color: var(--ink-2); }

/* ==========================================================================
   FASCIA CTA FOTOGRAFICA
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(120px, 14vw, 220px); }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 66%; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 12, 13, .9) 0%, rgba(11, 12, 13, .62) 42%, rgba(11, 12, 13, .08) 100%), linear-gradient(0deg, rgba(11, 12, 13, .55), rgba(11, 12, 13, 0) 40%); }
.cta-band__inner { display: grid; gap: 30px; justify-items: start; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #08090A; padding-top: clamp(80px, 8vw, 128px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 72px; }
.footer-brand { display: grid; gap: 22px; align-content: start; }
.footer-brand p { color: var(--ink-3); font-size: 15px; max-width: 320px; }
.footer-col h2 { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: 15px; color: var(--ink-2); transition: color .3s var(--ease-ui), opacity .4s var(--ease-ui); }
.footer-col a:hover { color: var(--ink); }
.footer-col ul:hover a { opacity: .45; }
.footer-col ul:hover a:hover { opacity: 1; }
.footer-word {
  display: block; width: 100%; white-space: nowrap; user-select: none;
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; line-height: .74; letter-spacing: -.012em;
  font-size: 19vw; margin-bottom: -.035em;
  /* cromo che cattura la luce: il riflesso segue il puntatore */
  background:
    radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, 0) 18%),
    linear-gradient(180deg, #DDE0E3 0%, #9DA3AA 38%, #43474C 54%, #5F646A 60%, #A8AEB4 82%, #61666C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-word span { display: inline-block; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 22px; box-shadow: inset 0 1px 0 var(--line); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-4); }
.footer-legal a:hover { color: var(--ink-2); }
.footer-legal nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ==========================================================================
   PAGINE INTERNE — intestazione
   ========================================================================== */
.page-head { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 120px)); padding-bottom: clamp(40px, 4vw, 64px); }
.page-head__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.page-head__grid > .sec-head__side { justify-self: end; max-width: 460px; }
.page-head__title { display: grid; gap: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.crumbs { display: flex; gap: 10px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }

/* ==========================================================================
   CATALOGO + FILTRI
   ========================================================================== */
.filters { position: sticky; top: var(--header-h); z-index: 40; background: rgba(11, 12, 13, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 -1px 0 var(--line), inset 0 1px 0 var(--line); }
.filters__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-block: 14px; }
.search-field { position: relative; flex: 1 1 280px; max-width: 420px; }
.search-field svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; color: var(--ink-3); pointer-events: none; }
.search-field input { width: 100%; height: 44px; padding: 0 14px 0 42px; background: var(--bg-2); border: 0; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; transition: box-shadow .3s var(--ease-ui); }
.search-field input::placeholder { color: var(--ink-3); }
.search-field input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink-2); }
.filters__toggle { display: none; }
.filters__count { margin-left: auto; font-family: var(--f-mono); font-size: 12px; letter-spacing: .05em; color: var(--ink-3); }
.filters__count b { color: var(--ink); font-weight: 500; }
.filters__sort .select select { height: 44px; min-width: 176px; }
.filters__panel { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 22px; padding-bottom: 16px; }
.ctl { display: grid; gap: 7px; }
.ctl__label { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; justify-content: space-between; gap: 10px; }
.ctl__label output { color: var(--ink); }
.select { position: relative; }
.select select {
  -webkit-appearance: none; appearance: none; height: 38px; padding: 0 36px 0 12px; min-width: 150px;
  background: var(--bg-2); border: 0; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; cursor: pointer;
}
.select select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink-2); }
.select::after { content: ''; position: absolute; right: 13px; top: 50%; width: 8px; height: 5px; margin-top: -2px; background: var(--ink-3); clip-path: polygon(0 0, 100% 0, 50% 100%); pointer-events: none; }
.select option { background: var(--bg-2); color: var(--ink); }
.ctl--range { min-width: 220px; }
.ctl--range .range { height: 38px; }
.filters__reset { height: 38px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-decoration: underline; text-underline-offset: 4px; }
.filters__reset:hover { color: var(--ink); }

.catalog { padding-block: 56px clamp(96px, 10vw, 160px); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px clamp(16px, 2vw, 32px); }
.empty { padding: 72px 0; display: grid; gap: 22px; justify-items: start; max-width: 620px; }

/* ==========================================================================
   PAGINA AUTO + CONFIGURATORE
   ========================================================================== */
.vehicle { padding-top: calc(var(--header-h) + 32px); }
.vehicle__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.vehicle__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); gap: 48px clamp(32px, 4vw, 72px); align-items: start; }
.vehicle__media { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--bg-2); --cut: 34px; }
.vehicle__media img { width: 100%; height: 100%; object-fit: cover; }
.vehicle__media .car__tags { left: 20px; top: 20px; }
.vehicle__head { display: grid; gap: 12px; margin-top: 40px; }
.vehicle__brand { font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.vehicle__version { font-size: 18px; color: var(--ink-2); }
.specs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 40px; border-block: 1px solid var(--line); }
.specs > div { padding: 20px 16px 20px 0; display: grid; gap: 8px; }
.specs > div + div { padding-left: 16px; box-shadow: inset 1px 0 0 var(--line); }
.specs dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.specs dd { font-family: var(--f-display); font-size: 15px; font-weight: 500; text-transform: uppercase; }
.vblock { margin-top: 56px; display: grid; gap: 22px; }
.vblock__t { font-family: var(--f-display); font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.equip { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.equip li, .incl-mini li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 12px 0; font-size: 15px; color: var(--ink-2); box-shadow: inset 0 -1px 0 var(--line); }
.equip li::before, .incl-mini li::before { content: ''; width: 8px; height: 5px; margin-top: 9px; background: var(--ink-3); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.incl-mini { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 32px; }

.config {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  padding: 30px 30px 26px; display: grid; gap: 24px;
}
.config__title { font-family: var(--f-display); font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.config__group { display: grid; gap: 10px; }
.config__label { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.config .seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
.config .seg button, .config .seg label span { width: 100%; padding: 0 6px; font-size: 13px; height: 40px; }
.config__result { padding: 24px 0 4px; box-shadow: inset 0 1px 0 var(--line); display: grid; gap: 6px; }
.config__price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.config__per { font-size: 15px; color: var(--ink-2); }
.config__iva { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.config__sum { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 18px; }
.config__sum div { display: grid; gap: 4px; }
.config__sum dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.config__sum dd { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.config__actions { display: grid; gap: 10px; }
.config__note { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* contatore a rulli: le cifre scorrono come in un contachilometri */
.roller { display: inline-flex; font-family: var(--f-display); font-size: 64px; font-weight: 500; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.roller__sym { margin-right: .06em; }
.roller__d { display: inline-block; height: 1em; overflow: hidden; }
.roller__strip { display: flex; flex-direction: column; transition: transform .75s var(--ease); }
.roller__strip span { height: 1em; display: block; text-align: center; }

.request { padding-block: clamp(88px, 9vw, 140px) 0; scroll-margin-top: var(--header-h); }
.request__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.request__intro { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 40px); }
.request__summary { margin-top: 8px; padding: 20px 22px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; }
.request__summary p { font-size: 14.5px; color: var(--ink-2); }
.request__summary strong { font-family: var(--f-display); font-size: 14px; font-weight: 600; text-transform: uppercase; color: var(--ink); }

/* ==========================================================================
   MODULI
   ========================================================================== */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field__label { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.field__label i { font-style: normal; color: var(--ink-4); }
.input, .textarea, .field select {
  width: 100%; height: 52px; padding: 0 16px; background: var(--bg-1); border: 0; border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16px; color: var(--ink);
  transition: box-shadow .3s var(--ease-ui), background-color .3s var(--ease-ui);
  -webkit-appearance: none; appearance: none;
}
.textarea { height: auto; min-height: 132px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:hover, .textarea:hover, .field select:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.input:focus, .textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink); background: var(--bg-2); }
.field.is-invalid .input, .field.is-invalid .textarea, .field.is-invalid select { box-shadow: inset 0 0 0 1px var(--error); }
.field__error { font-size: 13px; color: var(--error); }
.field .select select { height: 52px; width: 100%; font-size: 16px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-2); }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 1px 0 0; box-shadow: inset 0 0 0 1px var(--line-3); background: var(--bg-1); cursor: pointer; display: grid; place-items: center; }
.check input::after { content: ''; width: 10px; height: 6px; border-left: 1.5px solid var(--bg); border-bottom: 1.5px solid var(--bg); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--ink); box-shadow: none; }
.check input:checked::after { opacity: 1; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.check.is-invalid input { box-shadow: inset 0 0 0 1px var(--error); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.form__hint { font-size: 13px; color: var(--ink-3); max-width: 360px; }
.form-done { display: grid; gap: 18px; justify-items: start; padding: 36px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.form-done__t { font-family: var(--f-display); font-size: 26px; font-weight: 600; text-transform: uppercase; line-height: 1.05; }
.form-done p { color: var(--ink-2); max-width: 520px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ==========================================================================
   CONTATTI / CHI SIAMO / TESTI
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px clamp(40px, 6vw, 112px); align-items: start; }
.channels { display: grid; box-shadow: inset 0 1px 0 var(--line); }
.channel { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; padding: 24px 0; box-shadow: inset 0 -1px 0 var(--line); transition: opacity .4s var(--ease-ui); }
.channels:hover .channel { opacity: .45; }
.channels:hover .channel:hover { opacity: 1; }
.channel__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.channel__v { grid-column: 1; font-family: var(--f-display); font-size: 21px; font-weight: 500; line-height: 1.15; word-break: break-word; }
.channel__go { grid-row: 1 / span 2; grid-column: 2; width: 44px; height: 44px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .3s var(--ease-ui); }
.channel:hover .channel__go { box-shadow: inset 0 0 0 1px var(--ink); }
.channel__go svg { width: 16px; height: 16px; }
.channel--static .channel__v { font-size: 17px; font-family: var(--f-body); font-weight: 500; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.value { padding: 36px 28px 40px 0; display: grid; gap: 14px; align-content: start; }
.value + .value { padding-left: 28px; box-shadow: inset 1px 0 0 var(--line); }
.value__n { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); letter-spacing: .06em; }
.value__t { font-family: var(--f-display); font-size: 19px; font-weight: 600; text-transform: uppercase; line-height: 1.1; }
.value__d { font-size: 15px; color: var(--ink-2); }
.statement { font-family: var(--f-display); font-size: clamp(30px, 3.7vw, 58px); font-weight: 500; line-height: 1.08; text-transform: uppercase; max-width: 1240px; }
.statement .t-grey { color: var(--ink-4); }
.split-media { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 96px); align-items: center; }
.split-media figure { aspect-ratio: 5 / 4; overflow: hidden; --cut: 30px; background: var(--bg-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.prose { display: grid; gap: 18px; color: var(--ink-2); font-size: 16.5px; max-width: 620px; }
.prose strong { color: var(--ink); font-weight: 600; }
.legal { max-width: 820px; display: grid; gap: 18px; color: var(--ink-2); font-size: 16px; }
.legal h2 { font-family: var(--f-display); font-size: 17px; font-weight: 600; text-transform: uppercase; color: var(--ink); margin-top: 26px; letter-spacing: .02em; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal ul { display: grid; gap: 6px; padding-left: 18px; list-style: square; }
.todo { font-family: var(--f-mono); font-size: 12.5px; background: var(--bg-3); color: var(--ink); padding: 1px 6px; }

/* ==========================================================================
   RICERCA RAPIDA (Ctrl+K)
   ========================================================================== */
.search-panel {
  position: fixed; inset: 0; z-index: 200; background: rgba(8, 9, 10, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; grid-template-rows: auto 1fr; visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease-ui), visibility 0s linear .35s;
}
.search-open .search-panel { visibility: visible; opacity: 1; transition: opacity .3s var(--ease-ui); }
.search-panel__top { padding-top: clamp(24px, 6vh, 72px); }
.search-panel__row { display: flex; align-items: center; gap: 16px; box-shadow: inset 0 -1px 0 var(--line-2); }
.search-panel__input { flex: 1; height: 84px; background: transparent; border: 0; font-family: var(--f-display); font-size: clamp(24px, 3.4vw, 46px); font-weight: 500; text-transform: uppercase; color: var(--ink); }
.search-panel__input::placeholder { color: var(--ink-4); }
.search-panel__input:focus { outline: none; }
.search-panel__close { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); height: 40px; padding: 0 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
.search-panel__close:hover { color: var(--ink); }
.search-panel__results { overflow-y: auto; padding-block: 18px 48px; }
.sr-item { display: grid; grid-template-columns: 112px 1fr auto; gap: 20px; align-items: center; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--line); transition: opacity .3s var(--ease-ui); }
.search-panel__list:hover .sr-item { opacity: .5; }
.search-panel__list:hover .sr-item:hover, .sr-item:focus-visible { opacity: 1; }
.sr-item img { width: 112px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-2); }
.sr-item__name { font-family: var(--f-display); font-size: 18px; font-weight: 600; text-transform: uppercase; line-height: 1.1; }
.sr-item__ver { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.sr-item__price { font-family: var(--f-display); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.sr-item__price small { display: block; font-family: var(--f-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.search-panel__empty { color: var(--ink-3); padding: 24px 0; }
.search-panel__hint { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); padding: 16px 0; }

/* ---------- Grana: una pellicola leggerissima su tutta la pagina, come una foto stampata ---------- */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 500; pointer-events: none; opacity: .06;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 180px 180px;
}

/* bottone WhatsApp fluttuante su mobile */
.wa-float { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1280px) {
  .display-xl { font-size: 76px; }
  .display-l { font-size: 64px; }
  .h2 { font-size: 48px; }
  .nav { gap: 22px; }
  .header-phone { display: none; }
  .finder { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr) auto; }
  .finder__go .btn { min-width: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specs > div:nth-child(4) { padding-left: 0; box-shadow: inset 0 1px 0 var(--line); }
  .specs > div:nth-child(5) { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
  .incl-mini { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 66px; }
  .nav, .header-actions .btn, .header-actions .icon-btn--desk { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header__bar { gap: 16px; }
  .finder { grid-template-columns: 1fr 1fr; }
  .finder__cats { grid-column: 1 / -1; grid-row: 2; box-shadow: inset 0 1px 0 var(--line) !important; }
  .finder__go { padding: 20px 24px; }
  .gauges { grid-template-columns: 1fr 1fr; }
  .gauge:nth-child(3) { padding-left: 0; box-shadow: inset 0 1px 0 var(--line); }
  .gauge:nth-child(4) { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
  .sec-head, .page-head__grid { grid-template-columns: minmax(0, 1fr); }
  .included, .faq, .request__grid, .contact-grid, .split-media { grid-template-columns: minmax(0, 1fr); }
  .included__intro, .faq__intro, .request__intro { position: static; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 72px; }
  .steps__rail { display: none; }
  .step { padding-top: 22px; box-shadow: inset 0 1px 0 var(--line-2); }
  .step::before { top: -4px; }
  .sec-head--stack > .lead { margin-left: 0; }
  .vehicle__grid { grid-template-columns: minmax(0, 1fr); }
  .config { position: static; }
  .values { grid-template-columns: 1fr 1fr; }
  .value:nth-child(3) { padding-left: 0; box-shadow: inset 0 1px 0 var(--line); }
  .value:nth-child(4) { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .filters__toggle { display: inline-flex; }
  .filters__panel { display: none; padding-top: 4px; }
  .filters.is-open .filters__panel { display: flex; }
}

/* hero: schermi bassi (portatili 1366×768, 1280×720) e tablet in orizzontale: auto più in basso e a destra */
@media (min-width: 1025px) and (max-height: 820px) {
  .hero3d { --car-x: .7; --car-y: .64; --car-fill: .52; }
}
/* tablet in verticale: il titolo resta su due righe */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  .hero3d__title { font-size: 8.2vw; }
}
@media (max-width: 1024px) and (orientation: landscape) {
  .hero3d { --car-x: .7; --car-y: .64; --car-fill: .5; }
}

/* per chi: sotto i 900px i pannelli diventano schede in colonna (una aperta alla volta) */
@media (max-width: 900px) {
  .acc-panels { flex-direction: column; height: auto; gap: 10px; }
  .acc-panel { flex: none; display: grid; grid-template-rows: 104px auto; transition: none; }
  .acc-panel[data-open] { grid-template-rows: clamp(200px, 52vw, 340px) auto; }
  .acc-panel__media, .acc-panel__head { position: relative; inset: auto; grid-area: 1 / 1; }
  .acc-panel__head { flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 14px; padding: 18px 20px; }
  .acc-panel__label { writing-mode: horizontal-tb; transform: none; font-size: 19px; }
  .acc-panel[data-open] .acc-panel__label { opacity: 1; }
  .acc-panel__body { position: static; grid-row: 2; width: auto; padding: 22px 20px 26px; display: none; transform: none; }
  .acc-panel[data-open] .acc-panel__body { display: grid; }
}

@media (max-width: 768px) {
  .display-xl { font-size: 54px; line-height: .93; }
  .display-l { font-size: 44px; }
  .h2 { font-size: 38px; }
  .lead, .hero3d__lead { font-size: 16.5px; }
  .finder { grid-template-columns: 1fr; background: rgba(19, 20, 22, .92); }
  .finder__cell + .finder__cell { box-shadow: inset 0 1px 0 var(--line); }
  .finder__cats { grid-row: auto; }
  .finder__go .btn { width: 100%; }
  .gauge { padding: 28px 16px 26px 0; }
  .gauge + .gauge { padding-left: 16px; }
  .gauge:nth-child(3) { padding-left: 0; }
  .gauge__value { font-size: 32px; white-space: nowrap; }
  .gauge__label { font-size: 13.5px; }
  .incl-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 48px; }
  .grid { grid-template-columns: 1fr; gap: 56px; }
  .rail { --card-w: 84vw; }
  .rail-controls { margin-top: 28px; flex-wrap: wrap; row-gap: 22px; }
  .rail-controls .link-arrow { flex-basis: 100%; }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs > div:nth-child(n) { padding: 16px 12px 16px 0; box-shadow: inset 0 1px 0 var(--line); }
  .specs > div:nth-child(even) { padding-left: 16px; box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
  .specs > div:nth-child(-n+2) { box-shadow: none; }
  .specs > div:nth-child(2) { box-shadow: inset 1px 0 0 var(--line); }
  .equip, .incl-mini { grid-template-columns: 1fr; }
  .config { padding: 24px 18px 20px; }
  .roller { font-size: 54px; }
  .form { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 28px 0; box-shadow: inset 0 1px 0 var(--line) !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-word { font-size: 21vw; }
  .sr-item { grid-template-columns: 72px 1fr; }
  .sr-item img { width: 72px; }
  .sr-item__price { grid-column: 2; text-align: left; font-size: 17px; }
  .wa-float {
    display: grid; place-items: center; position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 54px; height: 54px;
    background: var(--ink); color: var(--bg); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 13px, 100% 100%, 0 100%);
    transition: transform .5s var(--ease-out), opacity .4s;
  }
  .wa-float svg { width: 24px; height: 24px; }
  .menu-open .wa-float, .search-open .wa-float { opacity: 0; pointer-events: none; }
  .mobile-menu__list a { font-size: 26px; }
}

/* hero su telefono e tablet in verticale: l'auto in alto e il testo sotto; niente pin,
   l'auto gira mentre esce dallo schermo e i colori stanno subito sotto di lei */
@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
  .hero3d { --car-x: .5; --car-y: .56; --car-fill: 1.02; --stage-h: clamp(340px, 58svh, 560px); height: auto; }
  .hero3d__sticky { position: relative; height: auto; min-height: 0; }
  .hero3d__stage { position: relative; inset: auto; z-index: 0; height: var(--stage-h); }
  html:not(.js) .hero3d__stage::after, .hero3d.is-3d-failed .hero3d__stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 12, 13, .55) 0%, rgba(11, 12, 13, 0) 22%, rgba(11, 12, 13, 0) 58%, var(--bg) 100%); }
  .hero3d__shade { display: none; }
  .hero3d__inner { grid-template-rows: none; row-gap: 44px; padding-top: 6px; padding-bottom: 36px; }
  .hero3d__paint { top: calc(var(--stage-h) - 56px); bottom: auto; left: 50%; right: auto; translate: -50% 0; }
  .hud { grid-row: auto; grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "car" "price" "terms" "link"; align-items: start; row-gap: 10px; }
  .hud__price { margin-top: 8px; }
  .hud .link-arrow { justify-self: start; margin-top: 8px; }
  .hero3d__credit { position: static; writing-mode: horizontal-tb; transform: none; padding: 0 var(--gutter) 22px; }
}

@media (max-width: 420px) {
  .display-xl { font-size: 44px; }
  .display-l { font-size: 38px; }
  .h2 { font-size: 33px; }
  .brand { gap: 10px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__word { font-size: 11px; letter-spacing: .13em; }
  .header-actions { gap: 2px; }
  .site-header__bar { gap: 10px; }
  .chip span { height: 32px; padding: 0 11px; font-size: 13px; }
  .btn { padding: 0 18px; font-size: 11.5px; letter-spacing: .05em; gap: 10px; }
  .config .seg button { font-size: 12.5px; padding: 0 2px; }
  .vehicle__top .crumbs { display: none; }
  .roller { font-size: 46px; }
  .car__amount { font-size: 34px; }
}

/* ---------- Movimento ridotto: niente spostamenti, solo dissolvenze brevi ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .hero3d [data-appear], .js .site-header--intro { transform: none !important; }
  .js [data-lines] .line__in { transform: none !important; }
  .hero3d { height: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; }
  .marquee__list { flex: 1; flex-wrap: wrap; justify-content: center; row-gap: 14px; }
  .marquee__list[aria-hidden] { display: none; }
  .acc-panel, .acc-panel__media img { transition-duration: .01s !important; }
  .roller__strip, .rail-bar span, .steps__rail span { transition-duration: .01s !important; }
  .mobile-menu__list li > a { transform: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Stampa ---------- */
@media print {
  .site-header, .site-footer, .wa-float, .search-panel, .mobile-menu, .filters, body::after { display: none !important; }
  body { background: #fff; color: #000; }
}
