/* ============================================================
   GDC AUTO — Design System
   Genzaga & Di Curzio · Foligno / Gualdo Tadino
   Cinematic automotive · dark chrome · brand red
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Superfici — derivate dal marrone-nero storico #281d19 */
  --ink-900: #070605;
  --ink-850: #0c0a09;
  --ink-800: #110e0c;
  --ink-700: #171310;
  --ink-600: #201a16;
  --ink-500: #2b231d;
  --ink-400: #3a302a;

  /* Rosso di marca — campionato dal logo cromato */
  --red-900: #5c000e;
  --red-800: #7a0011;
  --red-700: #9c0017;
  --red: #b0001a;
  --red-500: #cf0620;
  --red-400: #e8112d;
  --red-text: #ff4d5e; /* rosso schiarito per testo piccolo: AA >=4.5:1 su superfici scure */
  --red-glow: rgba(207, 6, 32, 0.45);

  /* Cromo */
  --chrome-1: #ffffff;
  --chrome-2: #dfe1e4;
  --chrome-3: #a7abb0;
  --chrome-4: #74797f;

  /* Testo */
  --txt: #f2efec;
  --txt-2: #c8c2bc;
  --txt-3: #8f8880;
  --txt-inv: #14100d;

  /* Sezioni chiare */
  --sand: #f6f3ef;
  --sand-2: #ebe6df;

  /* Bordi & vetro */
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(20, 16, 13, 0.12);
  --glass: rgba(23, 19, 16, 0.72);

  /* Tipografia */
  --f-head: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Scala fluida */
  --t-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --t-sm: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --t-lg: clamp(1.13rem, 1.05rem + 0.4vw, 1.32rem);
  --t-xl: clamp(1.35rem, 1.2rem + 0.75vw, 1.75rem);
  --t-2xl: clamp(1.7rem, 1.4rem + 1.5vw, 2.6rem);
  --t-3xl: clamp(2.2rem, 1.6rem + 3vw, 4rem);
  --t-4xl: clamp(2.8rem, 1.7rem + 5.4vw, 6.5rem);
  --t-5xl: clamp(3.4rem, 1.6rem + 8vw, 9rem);

  /* Spazio */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;
  --sp-9: 6rem; --sp-10: 8rem;
  --section-y: clamp(4rem, 8vw, 9rem);

  /* Layout */
  --wrap: 1240px;
  --wrap-wide: 1560px;
  --gut: clamp(1.15rem, 4vw, 3rem);
  --nav-h: 74px;
  --radius: 4px;
  --radius-lg: 10px;

  /* Ombre */
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.3);
  --sh-2: 0 6px 24px -8px rgba(0, 0, 0, 0.6);
  --sh-3: 0 24px 70px -22px rgba(0, 0, 0, 0.85);
  --sh-red: 0 12px 40px -12px var(--red-glow);

  /* Motion */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --e-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --d-1: 160ms;
  --d-2: 260ms;
  --d-3: 480ms;
  --d-4: 900ms;

  /* Z-scale */
  --z-base: 1; --z-raise: 10; --z-nav: 60; --z-overlay: 80; --z-modal: 100;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  overflow-x: clip;
}
body {
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--txt);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }

/* L'attributo hidden vale "display: none", ma è una regola debolissima: basta
   un display dichiarato altrove (.car è flex) e l'elemento resta in pagina.
   È così che i filtri del catalogo contavano giusto senza nascondere niente. */
[hidden] { display: none !important; }

/* Le icone hanno solo il viewBox: senza una misura il browser le disegna
   300x150. Questa è la misura di riserva, la vince qualsiasi regola mirata
   (hanno la stessa specificità e vengono tutte più sotto nel file). */
svg:not([width]) { width: 1.15em; height: 1.15em; flex: none; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
:focus-visible {
  outline: 2px solid var(--red-400);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--red); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-850); }
::-webkit-scrollbar-thumb { background: var(--ink-500); border-radius: 99px; border: 2px solid var(--ink-850); }
::-webkit-scrollbar-thumb:hover { background: var(--red-800); }

/* ---------- 3. UTILITY ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-wide { width: 100%; max-width: var(--wrap-wide); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 5rem); }
.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: 0; left: 50%; transform: translate(-50%, -110%);
  z-index: var(--z-modal); background: var(--red); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 0 0 6px 6px; font-weight: 600;
  transition: transform var(--d-2) var(--e-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

.stack > * + * { margin-top: var(--flow, 1rem); }
.text-center { text-align: center; }
.muted { color: var(--txt-3); }
.nowrap { white-space: nowrap; }

/* ---------- 4. TIPOGRAFIA DI MARCA ---------- */
.eyebrow {
  font-family: var(--f-head);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--txt-3);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 30px; height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.eyebrow--center::before { display: none; }
.eyebrow--red { color: var(--red-text); }

.display {
  font-family: var(--f-head);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-transform: uppercase;
}
.h-xl { font-size: var(--t-4xl); }
.h-lg { font-size: var(--t-3xl); }
.h-md { font-size: var(--t-2xl); }
.h-sm { font-size: var(--t-xl); }

.lead {
  font-size: var(--t-lg);
  color: var(--txt-2);
  line-height: 1.6;
  max-width: 62ch;
}

/* Testo cromato — riprende il lettering del logo */
.chrome {
  background: linear-gradient(
    176deg,
    #ffffff 0%, #e8eaec 18%, #9fa4a9 40%, #f4f5f6 52%,
    #6f757b 62%, #cdd1d5 78%, #ffffff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.5));
}
.chrome-red {
  background: linear-gradient(
    176deg,
    #ff6274 0%, #e8112d 22%, #7a0011 46%, #ff3d55 56%,
    #5c000e 70%, #cf0620 86%, #ff8593 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55));
}

/* Riga di testo con sweep luminoso */
.shine { position: relative; overflow: hidden; }
.shine::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 48%, transparent 58%);
  transform: translateX(-120%);
  animation: shine 6s var(--e-in-out) 1.2s infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}
@keyframes shine { 0%, 62% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ---------- 5. TEXTURE DI FONDO ---------- */
.grain::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.mesh {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 45% at 15% 0%, rgba(176, 0, 26, 0.16), transparent 70%),
    radial-gradient(50% 40% at 95% 10%, rgba(120, 130, 140, 0.1), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(176, 0, 26, 0.08), transparent 70%);
}
.hairline {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 30%, var(--line-2) 70%, transparent);
}
.hairline--top { top: 0; }
.hairline--bottom { bottom: 0; }

/* ---------- 6. BOTTONI ---------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  min-height: 48px;
  font-family: var(--f-head);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--d-2) var(--e-out), box-shadow var(--d-2) var(--e-out),
              transform var(--d-2) var(--e-out), border-color var(--d-2) var(--e-out);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--d-2) var(--e-out); }
.btn::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--red-400), var(--red-700));
  transform: translateY(101%);
  transition: transform var(--d-3) var(--e-out);
}
.btn:hover { box-shadow: var(--sh-red); transform: translateY(-2px); }
.btn:hover::before { transform: translateY(0); }
.btn:hover svg:last-child { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.985); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--txt);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { --btn-fg: #fff; border-color: transparent; }

.btn--chrome {
  --btn-fg: var(--txt-inv);
  background: linear-gradient(176deg, #fff, #cdd1d5 55%, #9aa0a6);
}
.btn--chrome::before { background: linear-gradient(176deg, #fff, #fff 55%, #dfe1e4); }
.btn--chrome:hover { --btn-fg: var(--txt-inv); box-shadow: 0 12px 40px -12px rgba(255, 255, 255, 0.3); }

.btn--sm { padding: 0.65rem 1.1rem; min-height: 42px; font-size: var(--t-xs); }
.btn--lg { padding: 1.15rem 2.2rem; min-height: 58px; }
.btn--block { display: flex; width: 100%; }

/* Link freccia */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-head); font-weight: 600; font-size: var(--t-sm);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--txt); position: relative; padding-block: 0.35rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--d-2) var(--e-out); }
.link-arrow::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--d-3) var(--e-out);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- 7. NAVBAR ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: height var(--d-3) var(--e-out), background var(--d-3) var(--e-out),
              box-shadow var(--d-3) var(--e-out), border-color var(--d-3) var(--e-out);
  border-bottom: 1px solid transparent;
}
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 6, 5, 0.85), rgba(7, 6, 5, 0));
  transition: opacity var(--d-3) var(--e-out);
}
.nav[data-scrolled='true'] {
  height: 62px;
  background: rgba(9, 7, 6, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.9);
}
.nav[data-scrolled='true']::before { opacity: 0; }
.nav[data-hidden='true'] { transform: translateY(-100%); }
.nav { transition-property: height, background, box-shadow, border-color, transform; }

.nav__inner {
  width: 100%; max-width: var(--wrap-wide); margin-inline: auto;
  padding-inline: var(--gut);
  display: flex; align-items: center; gap: var(--sp-5);
}
.nav__logo { display: flex; align-items: center; flex: none; }
.nav__logo img {
  height: 40px; width: auto;
  transition: height var(--d-3) var(--e-out), filter var(--d-2) var(--e-out);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}
.nav[data-scrolled='true'] .nav__logo img { height: 32px; }
.nav__logo:hover img { filter: drop-shadow(0 2px 14px var(--red-glow)); }

.nav__menu { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
.nav__link {
  position: relative;
  padding: 0.6rem 0.72rem;
  font-family: var(--f-head);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--txt-2);
  white-space: nowrap;
  transition: color var(--d-2) var(--e-out);
}
.nav__link::after {
  content: ''; position: absolute; left: 0.72rem; right: 0.72rem; bottom: 0.25rem;
  height: 1.5px; background: var(--red-400);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--d-3) var(--e-out);
}
.nav__link:hover, .nav__link[aria-current='page'] { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.nav__cta { flex: none; margin-left: 0.5rem; }
.nav__burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--txt);
}
.nav__burger svg { width: 22px; height: 22px; }

/* Drawer mobile */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: var(--ink-900);
  display: grid; grid-template-rows: auto 1fr auto;
  transform: translateY(-100%);
  transition: transform var(--d-4) var(--e-out);
  overscroll-behavior: contain;
}
.drawer[data-open='true'] { transform: translateY(0); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem var(--gut); border-bottom: 1px solid var(--line); }
.drawer__top img { height: 34px; }
.drawer__close { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); }
.drawer__close svg { width: 20px; height: 20px; }
.drawer__nav { padding: var(--sp-5) var(--gut); overflow-y: auto; align-content: start; }
.drawer__link {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.85rem 0;
  font-family: var(--f-head); font-weight: 700; font-stretch: 108%;
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  text-transform: uppercase; letter-spacing: -0.02em;
  color: var(--txt-2);
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px);
  transition: color var(--d-2) var(--e-out);
}
.drawer[data-open='true'] .drawer__link { animation: drawerIn var(--d-3) var(--e-out) forwards; }
.drawer__link span { font-family: var(--f-body); font-size: 0.7rem; color: var(--txt-3); letter-spacing: 0.1em; }
.drawer__link:hover, .drawer__link[aria-current='page'] { color: var(--red-400); }
@keyframes drawerIn { to { opacity: 1; transform: translateY(0); } }
.drawer__foot { padding: var(--sp-5) var(--gut); border-top: 1px solid var(--line); display: grid; gap: 0.75rem; }
.drawer__foot a { display: flex; align-items: center; gap: 0.65rem; color: var(--txt-2); font-size: var(--t-sm); }
.drawer__foot svg { width: 18px; height: 18px; color: var(--red-400); }

/* Progress bar di lettura */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: calc(var(--z-nav) + 1);
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--red-800), var(--red-400), var(--chrome-2));
}

/* ---------- 8. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  animation: kenburns 22s var(--e-in-out) infinite alternate;
}
@keyframes kenburns {
  0% { transform: scale(1.12) translate3d(0, 0, 0); }
  100% { transform: scale(1.24) translate3d(-2%, -1.5%, 0); }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.86) 0%, rgba(7, 6, 5, 0.28) 32%, rgba(7, 6, 5, 0.72) 72%, var(--ink-900) 100%),
    radial-gradient(90% 70% at 20% 80%, rgba(176, 0, 26, 0.22), transparent 65%);
}
.hero__inner { position: relative; z-index: 1; padding-block: calc(var(--nav-h) + 3rem) clamp(3.5rem, 8vh, 7rem); }
.hero__title { font-size: var(--t-5xl); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__sub { margin-top: 1.4rem; max-width: 54ch; font-size: var(--t-lg); color: var(--txt-2); }
.hero__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.95rem 0.5rem 0.6rem;
  border: 1px solid var(--line-2); border-radius: 99px;
  background: rgba(23, 19, 16, 0.55); backdrop-filter: blur(10px);
  font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--f-head); font-weight: 600; color: var(--txt-2);
  margin-bottom: 1.6rem;
}
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 99px; background: var(--red-400);
  box-shadow: 0 0 0 0 var(--red-glow);
  animation: pulse 2.4s var(--e-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--red-glow); }
  70% { box-shadow: 0 0 0 9px rgba(207, 6, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(207, 6, 32, 0); }
}

.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: grid; justify-items: center; gap: 0.6rem;
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--txt-3);
  font-family: var(--f-head);
}
.hero__scroll .rail { width: 1px; height: 46px; background: linear-gradient(180deg, var(--line-2), transparent); position: relative; overflow: hidden; }
.hero__scroll .rail::after {
  content: ''; position: absolute; inset-inline: 0; height: 40%;
  background: linear-gradient(180deg, var(--red-400), transparent);
  animation: railDown 2.2s var(--e-in-out) infinite;
}
@keyframes railDown { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* Hero interno (pagine secondarie) */
.phero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: calc(var(--nav-h) + clamp(4rem, 9vw, 8rem)) clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}
.phero__media { position: absolute; inset: 0; z-index: -2; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.phero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 6, 5, 0.9), rgba(7, 6, 5, 0.72) 50%, var(--ink-900));
}
.phero__scrim--flat { background: linear-gradient(180deg, var(--ink-800), var(--ink-900)); }
.phero--vehicle { padding-block: calc(var(--nav-h) + 2.4rem) 2.4rem; border-bottom: 0; }
/* I titoli interni variano molto in lunghezza: scalano sul numero di caratteri
   invece di far esplodere quelli lunghi su quattro righe. */
.phero__title { font-size: var(--t-3xl); margin-top: 1rem; max-width: 22ch; }
.phero__title--long { font-size: var(--t-2xl); max-width: 28ch; }
.phero__sub { margin-top: 1.2rem; }

.crumbs { display: flex; align-items: center; gap: 0.5rem; font-size: var(--t-xs); color: var(--txt-3); letter-spacing: 0.06em; }
.crumbs a:hover { color: var(--red-text); }
.crumbs svg { width: 12px; height: 12px; opacity: 0.5; }

/* ---------- 9. MARQUEE MARCHE ---------- */
.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-850);
  padding-block: 1.15rem;
  --gap: clamp(2rem, 4vw, 4rem);
}
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 14%; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink-850), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--ink-850), transparent); }
.marquee__track { display: flex; gap: var(--gap); width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--f-head); font-weight: 700; font-stretch: 105%;
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--txt-3);
  display: flex; align-items: center; gap: var(--gap);
  transition: color var(--d-2) var(--e-out);
  white-space: nowrap;
}
.marquee__item::after { content: ''; width: 4px; height: 4px; border-radius: 99px; background: var(--red-800); flex: none; }
.marquee__item:hover { color: var(--txt); }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* ---------- 10. SEZIONI ---------- */
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.2rem, 4vw, 3.6rem); }
.section-head--split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: 1.5rem 2rem;
}
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
/* Il testo è centrato dentro il paragrafo, ma il paragrafo ha un max-width:
   senza questo restava appoggiato a sinistra con tutta l'aria a destra. */
.section-head--center .lead { margin-inline: auto; }

.section--light {
  background: var(--sand);
  color: var(--txt-inv);
}
.section--light .lead { color: #4a423b; }
.section--light .eyebrow { color: #7a6f66; }
.section--light .muted { color: #6a6058; }
.section--light .chrome {
  background: linear-gradient(176deg, #3c332c, #171310 40%, #6b625a 55%, #14100d 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: none;
}

/* ---------- 11. GRIGLIE ---------- */
.grid { display: grid; gap: clamp(1rem, 1.6vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }

/* ---------- 12. CARD AUTO ---------- */
.car {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--d-3) var(--e-out), border-color var(--d-3) var(--e-out),
              box-shadow var(--d-3) var(--e-out);
  will-change: transform;
}
.car::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.07), transparent 60%);
  opacity: 0; transition: opacity var(--d-3) var(--e-out);
}
.car:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--sh-3); }
.car:hover::after { opacity: 1; }

.car__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--ink-600); }
.car__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--d-4) var(--e-out), filter var(--d-3) var(--e-out);
  filter: saturate(0.94);
}
.car:hover .car__media img { transform: scale(1.07); filter: saturate(1.05); }
.car__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 6, 5, 0.75));
}
.car__fallback {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 0.5rem;
  color: var(--txt-3); background: repeating-linear-gradient(45deg, var(--ink-700) 0 12px, var(--ink-600) 12px 24px);
}
.car__fallback svg { width: 44px; height: 44px; opacity: 0.35; }

.car__tags { position: absolute; top: 0.85rem; left: 0.85rem; z-index: 2; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  font-family: var(--f-head); font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 3px;
  background: rgba(7, 6, 5, 0.7); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); color: var(--txt-2);
}
.tag--red { background: var(--red); border-color: transparent; color: #fff; }
.tag--chrome { background: linear-gradient(176deg, #fff, #b9bcc0); color: var(--txt-inv); border-color: transparent; }
.tag--sold { background: rgba(7, 6, 5, 0.85); color: var(--txt-2); border-color: var(--line-2); }
.tag svg { width: 12px; height: 12px; }

/* Sconto: percentuale in alto a destra, l'angolo libero della foto. */
.car__off {
  position: absolute; top: 0.85rem; right: 0.85rem; z-index: 2;
  font-family: var(--f-head); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.01em;
  color: #fff; background: var(--red);
  padding: 0.32rem 0.6rem; border-radius: 6px;
  box-shadow: 0 8px 22px -8px rgba(176, 0, 26, 0.9);
}

/* Un'auto venduta resta in vetrina — è una vendita fatta, non un errore —
   ma smette di gridare: foto in grigio e prezzo spento. */
.car[data-venduta='true'] .car__media img { filter: grayscale(1); opacity: 0.5; }
.car[data-venduta='true']:hover .car__media img { transform: none; }
.car[data-venduta='true'] .car__now { color: var(--txt-3); }

/* ---------- Striscia delle offerte nell'hero ---------- */

/* Lo scarto sotto la navbar lo dà già `scroll-padding-top` su <html>:
   aggiungerne un altro qui raddoppierebbe il salto. */
.hero-off { margin-top: clamp(1.8rem, 4vw, 2.8rem); max-width: 100%; }

.hero-off__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.8rem;
}
.hero-off__k {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-head); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--txt-2);
}
.hero-off__k svg { width: 15px; height: 15px; color: var(--red-text); }

.hero-off__nav { display: flex; gap: 0.4rem; }
.hero-off__arrow {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(7, 6, 5, 0.5); color: var(--txt-2);
  transition: color var(--d-2) var(--e-out), border-color var(--d-2) var(--e-out), background var(--d-2) var(--e-out);
}
.hero-off__arrow:hover { color: #fff; border-color: var(--red-500); background: var(--red-900); }
.hero-off__arrow svg { width: 16px; height: 16px; }

.hero-off__track {
  display: flex; gap: 0.7rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.4rem;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.hero-off__track::-webkit-scrollbar { display: none; }

.ocard {
  scroll-snap-align: start;
  flex: 0 0 clamp(210px, 24vw, 260px);
  display: flex; gap: 0.7rem; align-items: center;
  padding: 0.5rem; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none; color: inherit;
  transition: border-color var(--d-2) var(--e-out), transform var(--d-2) var(--e-out), background var(--d-2) var(--e-out);
}
.ocard:hover { border-color: var(--red-500); transform: translateY(-3px); background: rgba(23, 19, 16, 0.85); }

.ocard__media {
  position: relative; flex: none; width: 76px; aspect-ratio: 4 / 3;
  border-radius: 7px; overflow: hidden; background: var(--ink-600);
}
.ocard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ocard__nofoto { display: grid; place-items: center; height: 100%; color: var(--txt-3); }
.ocard__nofoto svg { width: 20px; height: 20px; }
.ocard__off {
  position: absolute; left: 0; bottom: 0;
  background: var(--red); color: #fff;
  font-family: var(--f-head); font-weight: 800; font-size: 0.62rem;
  padding: 0.12rem 0.3rem; border-top-right-radius: 5px;
}

.ocard__body { display: grid; gap: 0.15rem; min-width: 0; }
.ocard__brand {
  font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--txt-3);
}
.ocard__title {
  font-family: var(--f-head); font-size: 0.78rem; font-weight: 600; line-height: 1.25; color: var(--txt);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ocard__price {
  display: flex; align-items: baseline; gap: 0.35rem; flex-wrap: wrap;
  font-family: var(--f-head); font-weight: 800; font-size: 0.92rem; color: #fff; margin-top: 0.1rem;
}
.ocard__price s { font-size: 0.7rem; font-weight: 500; color: var(--txt-3); }

@media (max-width: 700px) {
  .hero-off__nav { display: none; } /* sul telefono si scorre col dito */
  .ocard { flex-basis: 78%; }
}

.car__photos {
  position: absolute; bottom: 0.85rem; right: 0.85rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.68rem; color: var(--txt-2);
  background: rgba(7, 6, 5, 0.6); backdrop-filter: blur(6px);
  padding: 0.25rem 0.5rem; border-radius: 3px; border: 1px solid var(--line);
}
.car__photos svg { width: 13px; height: 13px; }

.car__body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; gap: 0.9rem; }
.car__brand { font-family: var(--f-head); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red-text); }
.car__title {
  font-family: var(--f-head); font-weight: 700; font-size: 1.02rem; line-height: 1.22;
  letter-spacing: -0.015em; color: var(--txt);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.5em;
}
.car__specs {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem;
  font-size: 0.76rem; color: var(--txt-3);
  padding-block: 0.75rem; border-block: 1px solid var(--line);
}
.car__specs li { display: inline-flex; align-items: center; gap: 0.35rem; }
.car__specs svg { width: 14px; height: 14px; opacity: 0.75; }
.car__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.car__price {
  display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
  font-family: var(--f-head); font-weight: 800; font-stretch: 106%; font-size: 1.42rem;
  letter-spacing: -0.02em; color: #fff; line-height: 1;
}
.car__was {
  font-size: 0.85rem; font-weight: 500; color: var(--txt-3);
  text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.car__price small { flex: 1 0 100%; font-family: var(--f-body); font-size: 0.66rem; font-weight: 400; letter-spacing: 0.06em; color: var(--txt-3); margin-top: 0.3rem; text-transform: uppercase; }
.car__go {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--txt);
  transition: background var(--d-2) var(--e-out), border-color var(--d-2) var(--e-out), transform var(--d-2) var(--e-out);
}
.car__go svg { width: 17px; height: 17px; transition: transform var(--d-2) var(--e-out); }
.car:hover .car__go { background: var(--red); border-color: transparent; }
.car:hover .car__go svg { transform: translate(2px, -2px); }
.car__link { position: absolute; inset: 0; z-index: 4; }
.car__link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 13. FILTRI ---------- */
/* ---------- Catalogo: filtri a colonna, risultati a destra ---------- */

.catalog {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  align-items: start;
}

.catalog__side { position: sticky; top: calc(var(--nav-h) + 12px); }

.catalog__bar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: 0.9rem; margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.field--inline { grid-auto-flow: column; align-items: center; gap: 0.6rem; }
.field--inline > label { padding: 0; }
.field--inline .input { min-height: 40px; padding-block: 0.45rem; font-size: 0.82rem; }

/* Bottone dei filtri: serve solo quando la colonna si chiude, sul telefono. */
.catalog__toggle { display: none; }

.filters {
  display: grid;
  gap: 0.85rem;
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(0.9rem, 2vw, 1.25rem);
}
.filters__title {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-head); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--txt-3);
  padding-bottom: 0.8rem; border-bottom: 1px solid var(--line);
}
.filters__title svg { width: 15px; height: 15px; color: var(--red-text); }

.field__lab {
  font-family: var(--f-head); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--txt-3);
  padding-left: 0.15rem;
}
.field__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.field { display: grid; gap: 0.35rem; }
.field > label {
  font-family: var(--f-head); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--txt-3);
  padding-left: 0.15rem;
}
.control {
  position: relative; display: flex; align-items: center;
}
.control > svg {
  position: absolute; right: 0.7rem; width: 15px; height: 15px; color: var(--txt-3); pointer-events: none;
  transition: transform var(--d-2) var(--e-out);
}
select.input, input.input, textarea.input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--txt);
  font-size: 0.88rem;
  min-height: 46px;
  transition: border-color var(--d-2) var(--e-out), background var(--d-2) var(--e-out), box-shadow var(--d-2) var(--e-out);
}
select.input { appearance: none; padding-right: 2.2rem; cursor: pointer; }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.6; }
.input::placeholder { color: var(--txt-3); }
.input:hover { border-color: var(--line-2); }
.input:focus { outline: none; border-color: var(--red-500); box-shadow: 0 0 0 3px rgba(207, 6, 32, 0.18); background: var(--ink-700); }
.control:has(select:focus) > svg { transform: rotate(180deg); }

.count { font-family: var(--f-head); font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.05em; color: var(--txt-2); }
.count b { color: var(--red-text); font-size: 1.05em; }
.reset {
  justify-self: start; margin-top: 0.3rem; padding-top: 0.85rem;
  font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt-3);
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-top: 1px solid var(--line); width: 100%;
}
.reset:hover { color: var(--red-text); }
.reset svg { width: 14px; height: 14px; }

/* Sotto i 900px la colonna diventa un pannello che si apre dal bottone. */
@media (max-width: 900px) {
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .catalog__side { position: static; }
  .catalog__toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.15rem; border-radius: 99px;
    border: 1px solid var(--line-2); background: var(--ink-800); color: var(--txt);
    font-family: var(--f-head); font-size: 0.74rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    justify-self: start;
  }
  .catalog__toggle svg { width: 15px; height: 15px; }
  .catalog__toggle em {
    font-style: normal; min-width: 20px; height: 20px; padding: 0 0.35rem;
    display: grid; place-items: center; border-radius: 99px;
    background: var(--red); color: #fff; font-size: 0.68rem;
  }
  .catalog:not([data-filtri-aperti='true']) .catalog__side { display: none; }
}

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  padding: 0.5rem 0.9rem; border-radius: 99px;
  border: 1px solid var(--line); background: var(--ink-800);
  font-family: var(--f-head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--txt-2);
  cursor: pointer; min-height: 40px; display: inline-flex; align-items: center;
  transition: all var(--d-2) var(--e-out);
}
.chip:hover { border-color: var(--line-2); color: #fff; }
.chip[aria-pressed='true'] { background: var(--red); border-color: transparent; color: #fff; }

.empty {
  grid-column: 1 / -1; text-align: center; padding: clamp(3rem, 8vw, 6rem) 1rem;
  border: 1px dashed var(--line-2); border-radius: var(--radius-lg); color: var(--txt-3);
}
.empty svg { width: 48px; height: 48px; margin: 0 auto 1rem; opacity: 0.4; }

/* Paginazione / load more */
.loadmore { display: grid; justify-items: center; gap: 1rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
.loadmore__meta { font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--txt-3); }

/* ---------- 13b. PORTALE INCORPORATO ---------- */
.portal {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-800);
  box-shadow: var(--sh-3);
}
.portal__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
}
.portal__dot {
  width: 8px; height: 8px; flex: none; border-radius: 99px;
  background: var(--red-400);
  box-shadow: 0 0 0 0 var(--red-glow);
  animation: pulse 2.4s var(--e-out) infinite;
}
.portal__label {
  font-family: var(--f-head); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--txt-3);
}
.portal__out {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--f-head); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt-2);
  padding: 0.45rem 0.7rem; border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: color var(--d-2) var(--e-out), border-color var(--d-2) var(--e-out), background var(--d-2) var(--e-out);
  white-space: nowrap;
}
.portal__out svg { width: 13px; height: 13px; }
.portal__out:hover { color: #fff; background: var(--red); border-color: transparent; }
.portal__frame {
  display: block;
  width: 100%;
  height: clamp(620px, 82vh, 1180px);
  border: 0;
  background: #fff;
}
.portal__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--txt-3);
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
}
.portal__note svg { width: 14px; height: 14px; color: var(--red-text); }
.portal__note a { color: var(--red-text); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) {
  .portal__bar { flex-wrap: wrap; }
  .portal__out { margin-left: 0; }
  .portal__frame { height: 78vh; }
}

/* ---------- 14. SCHEDA VEICOLO ---------- */
.vhero { display: grid; gap: clamp(1.5rem, 3vw, 3rem); grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
.gallery { display: grid; gap: 0.6rem; }
.gallery__main {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--ink-700);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav {
  position: absolute; inset-inline: 0.7rem; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: space-between; pointer-events: none;
}
.gallery__nav button {
  pointer-events: auto; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 99px; background: rgba(7, 6, 5, 0.62); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); color: #fff;
  transition: background var(--d-2) var(--e-out), transform var(--d-2) var(--e-out);
}
.gallery__nav button:hover { background: var(--red); transform: scale(1.06); }
.gallery__nav svg { width: 18px; height: 18px; }
.gallery__count {
  position: absolute; bottom: 0.8rem; right: 0.8rem;
  background: rgba(7, 6, 5, 0.65); backdrop-filter: blur(6px);
  padding: 0.3rem 0.6rem; border-radius: 3px; border: 1px solid var(--line);
  font-size: 0.72rem; color: var(--txt-2); font-variant-numeric: tabular-nums;
}
.gallery__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78px, 1fr); gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: thin; }
.gallery__thumbs button {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); opacity: 0.55;
  transition: opacity var(--d-2) var(--e-out), border-color var(--d-2) var(--e-out);
}
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover { opacity: 0.85; }
.gallery__thumbs button[aria-current='true'] { opacity: 1; border-color: var(--red-400); }

.vpanel {
  position: sticky; top: calc(var(--nav-h) + 1.5rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  padding: clamp(1.25rem, 2vw, 1.85rem);
  box-shadow: var(--sh-2);
}
.vpanel__price { font-family: var(--f-head); font-weight: 800; font-stretch: 108%; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; }
.vpanel__price small { display: block; font-family: var(--f-body); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--txt-3); margin-top: 0.5rem; }
.vpanel__actions { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.vpanel ul svg { width: 17px; height: 17px; flex: none; color: var(--red-text); }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.specs li { background: var(--ink-800); padding: 1rem 1.05rem; display: grid; gap: 0.3rem; }
.specs .k { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--txt-3); }
.specs .k svg { width: 14px; height: 14px; color: var(--red-400); }
.specs .v { font-family: var(--f-head); font-weight: 700; font-size: 0.98rem; color: var(--txt); letter-spacing: -0.01em; }

.features { columns: 2; column-gap: 2rem; }
.features li { break-inside: avoid; padding: 0.5rem 0 0.5rem 1.6rem; position: relative; font-size: 0.9rem; color: var(--txt-2); border-bottom: 1px solid var(--line); }
.features li::before {
  content: ''; position: absolute; left: 0; top: 1.05rem;
  width: 8px; height: 8px; border-radius: 1px; background: var(--red-800);
  transform: rotate(45deg);
}

/* ---------- 15. FEATURE CARD / SERVIZI ---------- */
.fcard {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  display: grid; gap: 0.9rem; align-content: start;
  transition: transform var(--d-3) var(--e-out), border-color var(--d-3) var(--e-out), box-shadow var(--d-3) var(--e-out);
}
.fcard::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(150deg, rgba(176, 0, 26, 0.14), transparent 55%);
  opacity: 0; transition: opacity var(--d-3) var(--e-out);
}
.fcard:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--sh-3); }
.fcard:hover::before { opacity: 1; }
.fcard__ico {
  width: 50px; height: 50px; display: grid; place-items: center;
  border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--ink-600); color: var(--red-400);
  transition: background var(--d-3) var(--e-out), color var(--d-3) var(--e-out), transform var(--d-3) var(--e-spring);
}
.fcard__ico svg { width: 23px; height: 23px; }
.fcard:hover .fcard__ico { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.06); }
.fcard h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
.fcard p { font-size: 0.92rem; color: var(--txt-3); line-height: 1.62; }

/* Due sedi, due numeri: città in evidenza e numero che non va mai a capo
   a metà. In riga unica "339 674 3503 — Foligno" il trattino restava
   orfano e si leggeva male. */
.recapiti { display: grid; gap: 0.35rem; }
.recapiti span { display: flex; flex-wrap: wrap; gap: 0 0.5rem; align-items: baseline; }
.recapiti b {
  font-family: var(--f-head); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt-2);
}
.recapiti a { color: inherit; white-space: nowrap; }

/* Un indirizzo email lungo non ha spazi dove spezzarsi: senza questo
   sbordava dalla scheda e veniva tagliato. */
.fcard .lunga { overflow-wrap: anywhere; }
.fcard__n {
  position: absolute; top: 1rem; right: 1.2rem;
  font-family: var(--f-head); font-weight: 800; font-size: 3.4rem; line-height: 1;
  color: rgba(255, 255, 255, 0.035); letter-spacing: -0.05em;
  transition: color var(--d-3) var(--e-out);
}
.fcard:hover .fcard__n { color: rgba(207, 6, 32, 0.14); }

.section--light .fcard {
  background: #fff;
  border-color: var(--line-dark);
  box-shadow: 0 1px 2px rgba(20, 16, 13, 0.05);
}
.section--light .fcard h3 { color: var(--txt-inv); }
.section--light .fcard p { color: #6a6058; }
.section--light .fcard__ico { background: var(--sand-2); border-color: var(--line-dark); color: var(--red); }
.section--light .fcard__n { color: rgba(20, 16, 13, 0.05); }
.section--light .fcard:hover { box-shadow: 0 24px 60px -28px rgba(20, 16, 13, 0.4); }

/* ---------- 16. SPLIT / MEDIA ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse > *:first-child { order: 2; }
.media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-3);
}
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--d-4) var(--e-out); }
.media-frame:hover img { transform: scale(1.04); }
.media-frame--tall img { aspect-ratio: 3 / 4; }
.media-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 6, 5, 0.5));
}
.media-frame__cap {
  position: absolute; left: 1.1rem; bottom: 1rem; z-index: 2;
  font-family: var(--f-head); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
}

/* ---------- 16b. BANDA MG ---------- */
.mg-band {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
}
.mg-badge {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 70% at 50% 40%, rgba(176, 0, 26, 0.28), transparent 70%),
    linear-gradient(180deg, var(--ink-700), var(--ink-850));
  box-shadow: var(--sh-3);
  overflow: hidden;
  isolation: isolate;
}
.mg-badge::before {
  /* alone rosso pulsante dietro al marchio */
  content: '';
  position: absolute;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 99px;
  background: radial-gradient(circle, var(--red-glow), transparent 68%);
  filter: blur(22px);
  animation: mgGlow 6s var(--e-in-out) infinite alternate;
}
.mg-badge img {
  position: relative;
  width: min(46%, 260px);
  height: auto;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.7));
  transition: transform var(--d-4) var(--e-out);
}
.mg-badge:hover img { transform: scale(1.05) rotate(-2deg); }
@keyframes mgGlow {
  from { opacity: 0.55; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .mg-badge::before { animation: none; }
}

/* ---------- 17. STATISTICHE ---------- */
/* Lo slogan resta su rosso pieno: alla sua dimensione il gradiente cromato
   attraversa una banda quasi nera che ne penalizzerebbe la leggibilità. */
.stats__slogan {
  text-align: center;
  font-size: var(--t-xl);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--txt-2);
}
.stats__slogan em { font-style: normal; color: var(--red-text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat--red { background: linear-gradient(180deg, rgba(176, 0, 26, 0.16), transparent 70%), var(--ink-900); }
.stat--red .stat__l { color: var(--red-text); }
.stat { background: var(--ink-900); padding: clamp(1.6rem, 3vw, 2.6rem) 1.2rem; text-align: center; }
.stat__n {
  font-family: var(--f-head); font-weight: 800; font-stretch: 110%;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat__l { margin-top: 0.7rem; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--txt-3); }
.section--light .stats { background: var(--line-dark); border-color: var(--line-dark); }
.section--light .stat { background: var(--sand); }
.section--light .stat__l { color: #7a6f66; }

/* ---------- 18. ACCORDION ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0; text-align: left;
  font-family: var(--f-head); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.22rem);
  letter-spacing: -0.01em; color: var(--txt);
  transition: color var(--d-2) var(--e-out);
}
.acc__btn:hover { color: var(--red-text); }
.acc__ico {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 99px; color: var(--txt-2);
  transition: transform var(--d-3) var(--e-out), background var(--d-2) var(--e-out), color var(--d-2) var(--e-out);
}
.acc__ico svg { width: 15px; height: 15px; }
.acc__btn[aria-expanded='true'] .acc__ico { transform: rotate(45deg); background: var(--red); border-color: transparent; color: #fff; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-3) var(--e-out); }
.acc__panel[data-open='true'] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p, .acc__panel ul { padding-bottom: 1.4rem; color: var(--txt-3); max-width: 78ch; }
.acc__panel ul li { padding: 0.3rem 0 0.3rem 1.3rem; position: relative; }
.acc__panel ul li::before { content: ''; position: absolute; left: 0; top: 0.85rem; width: 6px; height: 1px; background: var(--red-400); }
.section--light .acc, .section--light .acc__item { border-color: var(--line-dark); }
.section--light .acc__btn { color: var(--txt-inv); }
.section--light .acc__ico { border-color: var(--line-dark); color: #6a6058; }
.section--light .acc__panel p, .section--light .acc__panel ul { color: #5b524b; }

/* ---------- 19. TEAM ---------- */
.person {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  display: grid; gap: 1.1rem; justify-items: start;
  transition: transform var(--d-3) var(--e-out), border-color var(--d-3) var(--e-out);
}
.person:hover { transform: translateY(-4px); border-color: var(--line-2); }
.person__mono {
  width: 72px; height: 72px; display: grid; place-items: center;
  border-radius: 99px; border: 1px solid var(--line-2);
  background: radial-gradient(circle at 30% 25%, var(--ink-500), var(--ink-800));
  font-family: var(--f-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em;
  color: var(--txt);
  position: relative;
}
.person__mono::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  background: conic-gradient(from 200deg, transparent 0 65%, var(--red-400) 78%, transparent 88%);
  opacity: 0; transition: opacity var(--d-3) var(--e-out);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 1px;
}
.person:hover .person__mono::after { opacity: 1; }
.person h3 { font-size: 1.22rem; }
.person__role { font-family: var(--f-head); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-text); }

/* ---------- 20. LISTE INCLUSIONI ---------- */
.incl { display: grid; gap: 0.75rem; }
.incl li { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--txt-2); }
.incl svg { width: 19px; height: 19px; color: var(--red-400); flex: none; margin-top: 0.15rem; }

/* ---------- 21. CTA BANNER ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  padding: clamp(2.2rem, 5vw, 4.5rem);
  text-align: center;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900) 60%);
}
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 100% at 50% 130%, rgba(207, 6, 32, 0.4), transparent 65%),
    radial-gradient(50% 80% at 15% -20%, rgba(255, 255, 255, 0.07), transparent 60%);
}
.cta__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* Banda a tutta larghezza con testo gigante */
.bigtype {
  font-family: var(--f-head); font-weight: 800; font-stretch: 118%;
  font-size: clamp(3rem, 13vw, 12rem); line-height: 0.85; letter-spacing: -0.05em;
  text-transform: uppercase; text-align: center;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  transition: -webkit-text-stroke-color var(--d-3) var(--e-out);
  user-select: none;
}

/* ---------- 22. CONTATTI ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
/* Consenso privacy: casella nativa ridisegnata, così resta focalizzabile
   e il browser può mostrarci sopra l'avviso quando manca la spunta. */
.consenso { display: flex; align-items: flex-start; gap: 0.7rem; cursor: pointer; }
.consenso__in {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 20px; height: 20px; margin: 0.1rem 0 0;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 5px;
  background: var(--ink-800); cursor: pointer;
  transition: background var(--d-2) var(--e-out), border-color var(--d-2) var(--e-out);
}
.consenso__in::after {
  content: ''; width: 11px; height: 11px; background: #fff; transform: scale(0);
  transition: transform var(--d-2) var(--e-out);
  clip-path: polygon(14% 47%, 0 61%, 40% 100%, 100% 22%, 85% 10%, 38% 71%);
}
.consenso__in:hover { border-color: var(--chrome-4); }
.consenso__in:checked { background: var(--red); border-color: var(--red); }
.consenso__in:checked::after { transform: scale(1); }
.consenso__in:focus-visible { outline: 2px solid var(--red-500); outline-offset: 2px; }
.consenso__txt { font-size: 0.82rem; line-height: 1.6; color: var(--txt-2); }
.consenso__txt a { color: var(--red-text); text-decoration: underline; text-underline-offset: 2px; }

/* Campo esca per i robot: invisibile e fuori dal percorso di navigazione. */
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.form__note { font-size: 0.78rem; color: var(--txt-3); line-height: 1.6; }
.form__note a { color: var(--red-text); text-decoration: underline; text-underline-offset: 2px; }
.form__status { font-size: 0.85rem; padding: 0.85rem 1rem; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--ink-800); display: none; }
.form__status[data-show='true'] { display: block; }
.form__status[data-kind='ok'] { border-color: rgba(70, 180, 110, 0.5); color: #9be0b5; }
.form__status[data-kind='err'] { border-color: var(--red-700); color: #ffb2bd; }

.info-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  padding: clamp(1.3rem, 2.2vw, 1.9rem);
  display: grid; gap: 1.4rem;
}
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-row__ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--ink-600); color: var(--red-400); }
.info-row__ico svg { width: 18px; height: 18px; }
.info-row__k { font-family: var(--f-head); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--txt-3); }
.info-row__v { margin-top: 0.25rem; font-size: 0.98rem; color: var(--txt); line-height: 1.5; }
.info-row__v a:hover { color: var(--red-text); }

.hours { display: grid; gap: 0.5rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.hours .d { color: var(--txt-2); }
.hours .h { color: var(--txt); text-align: right; font-variant-numeric: tabular-nums; }
.hours li[data-closed='true'] .h { color: var(--red-400); }

.map {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 21 / 9; background: var(--ink-700);
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.86) hue-rotate(180deg); }
.map:hover iframe { filter: grayscale(0.4) invert(0.9) contrast(0.9) hue-rotate(180deg); }
.map iframe { transition: filter var(--d-4) var(--e-out); }

/* ---------- 23. FOOTER ---------- */
.footer { position: relative; background: var(--ink-850); border-top: 1px solid var(--line); overflow: hidden; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.footer__logo img { height: 46px; width: auto; margin-bottom: 1.2rem; }
.footer__about { font-size: 0.9rem; color: var(--txt-3); max-width: 34ch; line-height: 1.7; }
.footer h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--txt-3); margin-bottom: 1.2rem; }
.footer__links { display: grid; gap: 0.6rem; }
.footer__links a { font-size: 0.9rem; color: var(--txt-2); transition: color var(--d-2) var(--e-out), transform var(--d-2) var(--e-out); display: inline-block; }
.footer__links a:hover { color: var(--red-text); transform: translateX(3px); }
.footer__contact { display: grid; gap: 0.9rem; }
.footer__contact a, .footer__contact div { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--txt-2); }
.footer__contact svg { width: 17px; height: 17px; color: var(--red-400); flex: none; margin-top: 0.18rem; }
.footer__contact small { font-size: 0.72rem; color: var(--txt-3); letter-spacing: 0.08em; text-transform: uppercase; }
.footer__contact a:hover { color: #fff; }
.footer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.4rem; border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--txt-3);
}
.footer__bar a:hover { color: var(--red-text); }
.footer__legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer__watermark {
  position: absolute; left: 50%; bottom: -3.2vw; transform: translateX(-50%);
  font-family: var(--f-head); font-weight: 800; font-stretch: 120%;
  font-size: 17vw; line-height: 0.8; letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.017); pointer-events: none; user-select: none; white-space: nowrap;
}

/* ---------- 24. FAB / WHATSAPP ---------- */
.fabs {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: var(--z-overlay);
  display: grid; gap: 0.6rem;
}
.fab {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 99px; color: #fff;
  box-shadow: var(--sh-2);
  transition: transform var(--d-2) var(--e-spring), box-shadow var(--d-2) var(--e-out);
  border: 1px solid var(--line-2);
}
.fab svg { width: 24px; height: 24px; }
.fab:hover { transform: scale(1.08) translateY(-2px); }
.fab--wa { background: #25d366; border-color: transparent; color: #06301a; }
.fab--tel { background: var(--red); border-color: transparent; }
.fab--top { background: var(--ink-700); opacity: 0; pointer-events: none; }
.fab--top[data-show='true'] { opacity: 1; pointer-events: auto; }
.fab--top svg { transform: rotate(-90deg); }

/* ---------- 25. ANIMAZIONI REVEAL ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 800ms var(--e-out), transform 800ms var(--e-out);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal='fade'] { transform: none; }
[data-reveal='left'] { transform: translateX(-30px); }
[data-reveal='right'] { transform: translateX(30px); }
[data-reveal='scale'] { transform: scale(0.94); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Sotto i 900px lo scorrimento laterale del reveal creerebbe overflow
   orizzontale finché l'elemento non entra in viewport: si sale, non si scivola. */
@media (max-width: 900px) {
  [data-reveal='left'], [data-reveal='right'] { transform: translateY(26px); }
}

/* Slide-up per righe di titolo */
.line > span { display: block; transform: translateY(110%); transition: transform 1000ms var(--e-out); transition-delay: var(--delay, 0ms); }
.is-in .line > span, .line.is-in > span { transform: translateY(0); }

/* Barra che cresce */
.growline { height: 1px; background: var(--line-2); transform: scaleX(0); transform-origin: left; transition: transform 1200ms var(--e-out); }
.growline.is-in { transform: scaleX(1); }

/* Spotlight cursore (solo desktop, hover fine) */
.spotlight {
  position: fixed; inset: 0; z-index: var(--z-base); pointer-events: none;
  opacity: 0; transition: opacity 600ms var(--e-out);
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(207, 6, 32, 0.055), transparent 65%);
  mix-blend-mode: screen;
}
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  body[data-spot='true'] .spotlight { opacity: 1; }
}

/* Parallax leggero */
[data-parallax] { will-change: transform; }

/* ---------- 26. VIEW TRANSITIONS ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut 260ms var(--e-in-out) both; }
::view-transition-new(root) { animation: vtIn 380ms var(--e-out) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 27. RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .nav__link { padding-inline: 0.55rem; font-size: 0.75rem; }
}
@media (max-width: 1080px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .vhero { grid-template-columns: 1fr; }
  .vpanel { position: static; }
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--reverse > *:first-child { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .features { columns: 1; }
  .hero { min-height: 92svh; }
  .filters { position: static; }
  .map { aspect-ratio: 4 / 3; }
  .btn { width: 100%; }
  .hero__actions .btn, .cta__actions .btn { width: auto; flex: 1 1 auto; min-width: 220px; }
}

/* ---------- 28. PRINT ---------- */
@media print {
  .nav, .drawer, .fabs, .progress, .spotlight, .marquee, .hero__scroll { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- 29. MOTION SAFETY ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .line > span { transform: none !important; }
  .growline { transform: scaleX(1) !important; }
  .hero__media img { animation: none; transform: scale(1.02); }
  .marquee__track { animation: none; }
  .spotlight { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Stato del veicolo e prezzo di listino nel pannello della scheda */
.vpanel__stato {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.1rem; padding: 0.7rem 0.9rem;
  border-radius: var(--radius); font-size: 0.83rem; font-weight: 500;
}
.vpanel__stato svg { width: 16px; height: 16px; flex: none; }
.vpanel__stato--venduta { background: var(--ink-700); border: 1px solid var(--line-2); color: var(--txt-3); }
.vpanel__stato--offerta { background: rgba(176, 0, 26, 0.14); border: 1px solid rgba(232, 17, 45, 0.4); color: var(--red-text); }
.vpanel__was {
  display: block; margin-top: 0.5rem;
  font-family: var(--f-body); font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0; color: var(--txt-3); -webkit-text-fill-color: var(--txt-3);
}
.vpanel__was s { text-decoration-thickness: 1.5px; }
.vpanel__was b { color: var(--red-text); -webkit-text-fill-color: var(--red-text); font-weight: 700; }

/* ---------- Lightbox delle foto veicolo ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(7, 6, 5, 0.94);
  backdrop-filter: blur(8px);
  animation: lb-entra 0.2s var(--e-out, ease-out);
}
.lightbox[hidden] { display: none; }
@keyframes lb-entra { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } }

.lightbox__palco { grid-column: 2; margin: 0; display: grid; place-items: center; height: 100%; }
.lightbox__palco img {
  max-width: 100%; max-height: calc(100vh - 8rem);
  object-fit: contain; border-radius: var(--radius);
}

.lightbox__chiudi,
.lightbox__freccia {
  display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(23, 19, 16, 0.8); color: var(--txt);
  cursor: pointer; line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.lightbox__chiudi:hover,
.lightbox__freccia:hover { background: var(--red); border-color: var(--red); transform: scale(1.06); }

.lightbox__freccia { width: clamp(42px, 7vw, 56px); aspect-ratio: 1; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lightbox__freccia--prec { grid-column: 1; }
.lightbox__freccia--succ { grid-column: 3; }

.lightbox__chiudi {
  position: absolute; top: clamp(0.8rem, 2vw, 1.6rem); right: clamp(0.8rem, 2vw, 1.6rem);
  width: 42px; height: 42px; font-size: 1.6rem;
}

.lightbox__conta {
  position: absolute; bottom: clamp(0.8rem, 2vw, 1.6rem); left: 50%; transform: translateX(-50%);
  font-family: var(--f-head); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--txt-2);
  background: rgba(23, 19, 16, 0.8); padding: 0.35rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--line);
}

@media (max-width: 640px) {
  .lightbox { grid-template-columns: minmax(0, 1fr); padding: 1rem 0.6rem 3.5rem; }
  .lightbox__palco { grid-column: 1; }
  .lightbox__freccia { position: absolute; bottom: 1rem; }
  .lightbox__freccia--prec { left: 1rem; }
  .lightbox__freccia--succ { right: 1rem; }
  .lightbox__conta { bottom: 1.6rem; }
}

/* ---------- Venditori in fondo alla scheda auto ---------- */

.venditori {
  display: grid;
  /* Il massimo tiene la scheda un ritratto anche quando i venditori sono due:
     senza, si allargherebbero a metà pagina l'una. */
  grid-template-columns: repeat(auto-fit, minmax(170px, 230px));
  justify-content: center;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
}

.vend {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--ink-800); overflow: hidden;
  transition: transform var(--d-3) var(--e-out), border-color var(--d-3) var(--e-out), box-shadow var(--d-3) var(--e-out);
}
.vend:hover { transform: translateY(-4px); border-color: var(--red-800); box-shadow: var(--sh-2); }

.vend__foto { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-600); }
.vend__foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }

.vend__corpo { padding: 0.9rem 1rem 1.1rem; display: grid; gap: 0.2rem; }
.vend__nome { font-family: var(--f-head); font-size: 0.98rem; line-height: 1.25; }
.vend__ruolo { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--txt-3); }
/* Impilati, non affiancati: il numero di telefono cambia lunghezza da una
   scheda all'altra e in riga il tasto WhatsApp finiva ora accanto ora sotto. */
.vend__azioni { display: grid; gap: 0.45rem; margin-top: 0.7rem; }
.vend__azioni .btn { width: 100%; justify-content: center; }

.vend__wa {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; min-height: 40px; padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: var(--f-head); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: #25d366;
  transition: background var(--d-2) var(--e-out), border-color var(--d-2) var(--e-out);
}
.vend__wa:hover { background: rgba(37, 211, 102, 0.14); border-color: #25d366; }
.vend__wa svg { width: 18px; height: 18px; }

/* La riga del ruolo c'è sempre, anche vuota: senza, le schede senza ruolo
   alzavano i pulsanti e la griglia si disallineava. */
.vend__corpo { align-content: start; }
