/* ============================================================
   GV LINE SPEDIZIONI — direzione "impatto"
   Font: Clash Display (titoli) + Switzer (testi) via Fontshare
   Palette: navy profondo, bianco, un solo accento azzurro
   ============================================================ */

:root{
  --bg:        #030F22;   /* navy quasi nero */
  --bg-2:      #041831;   /* navy scuro per sezioni alternate */
  --navy:      #022D69;   /* brand primario */
  --accent:    #3E8BE0;   /* azzurro derivato dal blu livrea #00489A */
  --white:     #F5F8FC;
  --muted:     #8FA3BF;   /* grigio-blu per i testi secondari */
  --grey:      #8A8A8B;   /* grigio brand, micro-etichette */
  --line:      rgba(245, 248, 252, 0.09);
  --font-display: 'Clash Display', 'Arial Narrow', sans-serif;
  --font-body:    'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --radius: 2px;          /* angoli netti, niente pillole ovunque */
  --mx: 50vw;
  --my: 40vh;
  --torch-r: clamp(220px, 30vw, 430px);
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: var(--white); text-decoration: none; }
ul, ol{ list-style: none; }

.container{ width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.only-desktop{ display: inline; }

/* ---------- tipografia ---------- */
.eyebrow{
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 20px;
}
.section-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.accent{ color: var(--accent); }

/* ---------- header ---------- */
.header{
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(24px, 4vw, 56px);
  transition: background 0.35s ease, padding 0.35s ease;
}
.header.scrolled{
  background: rgba(3, 15, 34, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
/* logo piatto vettoriale, versione bianca (derivata dal master in ~/Desktop/GV LINE): niente più filtro sul PNG 3D.
   Le altezze sono tarate per lasciare il marchio grande com'era (il PNG aveva un bordo trasparente). */
.brand-logo{ height: 44px; width: auto; }
.nav{ display: flex; align-items: center; gap: 28px; }
.nav-links{ display: flex; align-items: center; gap: 26px; }
.nav-toggle{ display: none; }
.nav a{
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}
.nav a:hover{ color: var(--white); }
.nav-cta{
  color: var(--white) !important;
  border: 1px solid rgba(245, 248, 252, 0.35);
  padding: 10px 22px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav-cta:hover{ border-color: var(--accent); background: rgba(62, 139, 224, 0.12); }
/* selettore lingua (IT/EN): globo + codice, in fondo a destra dopo la CTA su desktop,
   voce in coda al pannello su mobile (due elementi, uno visibile per volta) */
.nav-lang{ display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 7px 10px; border-radius: 2px; font-size: 11px; }
.nav-lang svg{ flex: none; opacity: 0.8; }
.nav-lang:hover{ border-color: var(--accent); }
.nav-lang--menu{ display: none; }

/* ---------- bottoni ---------- */
.btn{
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 18px 34px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-solid{ background: var(--white); color: var(--bg); }
.btn-solid:hover{ background: var(--accent); color: var(--white); }
.btn-ghost{ border-color: rgba(245, 248, 252, 0.35); color: var(--white); }
.btn-ghost:hover{ border-color: var(--white); }
.btn-magnetic{ will-change: transform; border: none; }
.btn-magnetic span{ display: inline-block; will-change: transform; }

/* ---------- hero + torcia ---------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-layer{
  position: absolute; inset: 0;
  background: url('assets/van-notte.jpg') center 55% / cover no-repeat;
}
.hero-layer--dark{ filter: brightness(0.42) saturate(0.8); }
@media (max-width: 760px){
  /* variante leggera per mobile: stessa foto, 85 KB invece di 280 */
  .hero-layer{ background-image: url('assets/van-notte-mobile.jpg'); }
}
.hero-layer--lit{
  filter: brightness(1) saturate(1.05);
  -webkit-mask-image: radial-gradient(circle var(--torch-r) at var(--mx) var(--my),
    #000 0%, rgba(0, 0, 0, 0.65) 45%, transparent 72%);
  mask-image: radial-gradient(circle var(--torch-r) at var(--mx) var(--my),
    #000 0%, rgba(0, 0, 0, 0.65) 45%, transparent 72%);
}
.hero.no-torch .hero-layer--lit{
  -webkit-mask-image: none; mask-image: none;
  filter: brightness(0.62) saturate(0.95);
}
.hero::after{ /* velo ai bordi per far respirare il testo */
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3, 15, 34, 0.55) 0%, rgba(3, 15, 34, 0.1) 40%, rgba(3, 15, 34, 0.75) 100%);
  pointer-events: none;
}
.hero-inner{
  position: relative; z-index: 2;
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  padding-top: 90px;
}
.hero-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-title, .hero-sub, .hero-cta, .hero .eyebrow{
  animation: rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero-sub{ animation-delay: 0.15s; }
.hero-cta{ animation-delay: 0.3s; }
@keyframes rise{
  from{ opacity: 0; transform: translateY(26px); }
  to{ opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce){
  .hero-title, .hero-sub, .hero-cta, .hero .eyebrow{ animation: none; }
}
.hero-sub{
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-cta{ display: flex; gap: 18px; flex-wrap: wrap; }
.hero-hint{
  position: absolute; z-index: 2;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--grey);
  animation: hint-fade 1.2s ease 2.2s both;
}
@keyframes hint-fade{ from{ opacity: 0; } to{ opacity: 1; } }
.hero.no-torch .hero-hint{ display: none; }

/* ---------- marquee ---------- */
.marquee{
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 22px;
  background: var(--bg);
}
.marquee-track{
  display: flex; gap: 42px; align-items: center;
  width: max-content;
  animation: marquee 70s linear infinite;   /* 14 settori: nastro lungo, velocità costante */
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track .dot{ color: var(--accent); }
@keyframes marquee{ to{ transform: translateX(-50%); } }

/* ---------- onda / divider ---------- */
.wave{ display: block; width: 100%; height: clamp(60px, 8vw, 120px); }
.wave path{ fill: none; stroke-linecap: round; }
.wave-grey{ stroke: var(--grey); stroke-width: 2.5; opacity: 0.4; }
.wave-blue{ stroke: var(--accent); stroke-width: 5; }
.reveal-wave path{
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  transition: stroke-dashoffset 1.6s ease;
}
.reveal-wave.in path{ stroke-dashoffset: 0; }
.reveal-wave.in .wave-grey{ transition-delay: 0.25s; }

/* ---------- manifesto + logo 3D (sezione brand, sfondo aurora) ---------- */
.brand{
  position: relative;
  padding: clamp(80px, 12vh, 150px) 0;
  overflow: hidden;
}
.brand .wave, .brand .container{ position: relative; z-index: 2; }
.brand-grid{
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 56px; align-items: center;
  padding-top: clamp(30px, 5vh, 60px);
}
.manifesto-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.06;
  margin-bottom: 28px;
}
.manifesto-title em{ font-style: normal; color: var(--accent); }
.manifesto-text{ max-width: 620px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }

/* ---------- servizi ---------- */
.services{ padding: clamp(70px, 10vh, 130px) 0; background: var(--bg-2); }
.svc-grid{
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px; margin-top: 48px;
}
.svc{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  min-height: 340px;
  outline: none;
}
.svc-body{ padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.svc-num{
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.svc h3{
  font-family: var(--font-display);
  font-weight: 600; font-size: 28px; line-height: 1.15;
}
.svc p{ color: var(--muted); font-size: 15.5px; }
.svc-overlay{
  position: absolute; inset: 0;
  background: var(--navy);
  padding: 40px;
  display: flex; align-items: center;
  transform: translateY(101%);
}
.svc-overlay.animate{ transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1); }
.svc-overlay.show{ transform: translate(0, 0) !important; }
.svc-overlay ul{ display: flex; flex-direction: column; gap: 14px; }
.svc-overlay li{
  font-size: 16px; font-weight: 500;
  padding-left: 26px; position: relative;
}
.svc-overlay li::before{
  content: '';
  position: absolute; left: 0; top: 0.62em;
  width: 14px; height: 2px;
  background: var(--accent);
}
.svc-minor{
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 24px;
}
.svc-minor span{
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 10px 18px;
}
.svc-note{
  color: var(--grey); font-size: 12.5px;
  margin-top: 22px; max-width: 62ch;
}

/* ---------- come funziona ---------- */
.steps{ padding: clamp(70px, 10vh, 130px) 0; }
.steps-list{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px; margin-top: 48px;
  counter-reset: step;
}
.steps-list li{ border-top: 1px solid var(--line); padding-top: 26px; }
.step-num{
  font-family: var(--font-display);
  font-size: 48px; font-weight: 600;
  color: var(--accent);
  display: block; margin-bottom: 14px;
  line-height: 1;
}
.steps-list h3{
  font-family: var(--font-display);
  font-weight: 600; font-size: 22px;
  margin-bottom: 10px;
}
.steps-list p{ color: var(--muted); font-size: 15.5px; }

/* ---------- numeri ---------- */
.numbers{ padding: clamp(60px, 9vh, 110px) 0 30px; background: var(--bg-2); }
.numbers-grid{
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.num{ border-left: 1px solid var(--line); padding-left: 28px; }
.num-value{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 6vw, 84px);
  line-height: 1;
  display: block; margin-bottom: 10px;
}
.num-value sup{ font-size: 0.35em; color: var(--accent); }
.num-label{ color: var(--muted); font-size: 15px; }
.num-note{
  color: var(--grey); font-size: 12.5px;
  padding-block: 26px 40px;
}

/* ---------- copertura ---------- */
.coverage{ padding: clamp(70px, 10vh, 130px) 0; }
.coverage-grid{
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: center;
}
.coverage-text{ color: var(--muted); max-width: 480px; }
.coverage-stat{
  display: flex; align-items: center; gap: 18px;
  margin-top: 34px;
}
.coverage-num{
  font-family: var(--font-display);
  font-weight: 600; font-size: clamp(64px, 7vw, 96px); line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.coverage-num-label{ color: var(--muted); font-size: 14px; line-height: 1.4; }
.coverage-chips{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; max-width: 480px; }
.coverage-chips li{
  font-size: 13px; font-weight: 500;
  color: var(--white);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* mappa a punti + rotte vive: l'img porta i punti, l'svg sopra anima le tratte */
.coverage-map{ position: relative; overflow: hidden; }   /* gli aerei escono dal riquadro e spariscono */
.coverage-map img{ width: 100%; height: auto; opacity: 0.95; }
.map-routes{ position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.city{ fill: rgba(245, 248, 252, 0.5); }
.rl-route{ fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.rl-head{ fill: var(--white); filter: drop-shadow(0 0 6px rgba(245, 248, 252, 1)); }
.rl-air{ stroke: rgba(245, 248, 252, 0.7); stroke-width: 1.6; }
.rl-plane{ fill: var(--white); filter: drop-shadow(0 0 5px rgba(245, 248, 252, 0.9)); }
.rl-ring{
  fill: none; stroke: var(--white); stroke-width: 2;
  transform-box: fill-box; transform-origin: center;
  animation: rl-ring 0.45s ease-out forwards;
}
@keyframes rl-ring{ from{ transform: scale(0.3); opacity: 1; } to{ transform: scale(3.4); opacity: 0; } }
.rl-flash{
  fill: var(--accent);
  transform-box: fill-box; transform-origin: center;
  animation: rl-flash 0.3s ease-out forwards;
}
@keyframes rl-flash{ from{ transform: scale(1); opacity: 0.9; } to{ transform: scale(4); opacity: 0; } }

/* ---------- preventivo ---------- */
.quote{ background: var(--bg-2); padding-bottom: clamp(70px, 10vh, 120px); }
.quote .wave{ margin-bottom: clamp(40px, 6vh, 70px); }
.quote-grid{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.quote-grid > *{ min-width: 0; }   /* l'email lunga non deve allargare la colonna oltre lo schermo */
.quote-copy p{ color: var(--muted); max-width: 460px; }
.quote-contacts{
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 30px;
  font-size: 15px; color: var(--grey);
}
.quote-contacts a, .footer-contacts a{ overflow-wrap: anywhere; }
.quote-form{ display: flex; flex-direction: column; gap: 14px; }
.form-row{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.quote-form input:not([type="checkbox"]):not([type="hidden"]),
.quote-form textarea{
  width: 100%;
  background: transparent;
  border: 1px solid rgba(245, 248, 252, 0.18);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 16px;   /* mai sotto 16px: iOS altrimenti zooma da solo quando tocchi il campo */
  color: var(--white);
  transition: border-color 0.25s ease;
}
.quote-form input::placeholder,
.quote-form textarea::placeholder{ color: var(--grey); }
.quote-form input:focus,
.quote-form textarea:focus{ outline: none; border-color: var(--accent); }
.quote-form .btn{ margin-top: 8px; }
.form-note{ font-size: 12.5px; color: var(--grey); }
.form-ok{ font-size: 14px; color: var(--accent); }

/* ---------- form ActiveCampaign: adattamento allo stile del sito ---------- */
.quote-form ._form-content{ display: flex; flex-direction: column; gap: 14px; }
.quote-form ._form_element,
.quote-form ._field-wrapper{ position: relative; }
.quote-form ._form-label{
  /* etichette solo per gli screen reader: in pagina parlano i placeholder */
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); border: 0;
}
.quote-form textarea{ min-height: 96px; resize: vertical; }
.quote-form .form-consent ._checkbox-radio{ display: flex; align-items: flex-start; gap: 10px; }
.quote-form .form-consent input[type="checkbox"]{
  width: 16px; height: 16px; margin-top: 3px;
  accent-color: var(--accent); flex: none;
}
.quote-form .form-consent label{ font-size: 12.5px; color: var(--grey); line-height: 1.5; cursor: pointer; }
.quote-form .form-consent input[type="checkbox"]{ cursor: pointer; }
.quote-form .form-consent a{ color: var(--muted); text-decoration: underline; }
.quote-form .form-consent + .form-consent{ margin-top: -6px; }
.quote-form ._button-wrapper{ margin-top: 8px; }
.quote-form ._submit[disabled]{ opacity: 0.55; cursor: wait; }
/* messaggio di ringraziamento dopo l'invio (testo impostato in ActiveCampaign):
   grande come un sottotitolo, un gradino sotto l'h2 della sezione */
.quote-form ._form-thank-you{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #01B0F0;            /* azzurro scelto da Roberta il 18/9 */
  padding: 8px 0 8px 22px;
  border-left: 3px solid #01B0F0;
  margin: 12px 0;
}
/* bolle d'errore della validazione */
.quote-form ._error{ position: absolute; display: block; z-index: 10; right: 0; }
.quote-form ._error._above{ bottom: calc(100% + 5px); }
.quote-form ._error._below{ top: calc(100% + 5px); }
.quote-form ._error-arrow{ display: none; }
.quote-form ._error-inner{
  display: block;
  padding: 8px 12px;
  background: #F8D8D8; color: #7A1420;
  font-size: 13px; font-weight: 500;
  border-radius: 3px;
}
.quote-form ._error-inner._no_arrow{ position: static; margin-bottom: 8px; }
.quote-form ._error-inner._form_error{ position: static; margin-bottom: 10px; text-align: left; }
.quote-form ._show_be_error{ width: 100%; }

/* ---------- footer ---------- */
.footer{ border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer-grid{
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
}
.footer-logo{ height: 49px; width: auto; margin-bottom: 16px; }
.footer-grid p{ color: var(--muted); font-size: 15px; max-width: 320px; }
.footer-nav, .footer-contacts{ display: flex; flex-direction: column; gap: 12px; }
.footer-nav a{ color: var(--muted); font-size: 15px; transition: color 0.25s ease; }
.footer-nav a:hover{ color: var(--white); }
.footer-contacts span{ color: var(--muted); font-size: 15px; }
.footer-legal{
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 12.5px; color: var(--grey);
}
.footer-legal a{ color: inherit; text-decoration: underline; text-decoration-color: rgba(138,138,139,0.45); text-underline-offset: 3px; }
.footer-legal a:hover{ color: var(--white); text-decoration-color: var(--accent); }

/* ---------- reveal allo scroll (sobrio: solo opacità + 14px) ---------- */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in{ opacity: 1; transform: none; }

/* ---------- riduzione movimento ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .marquee-track{ animation: none; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  .reveal-wave path{ stroke-dashoffset: 0; transition: none; }
  .hero-hint{ display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .svc-grid, .steps-list,
  .coverage-grid, .quote-grid, .footer-grid{ grid-template-columns: 1fr; }
  .numbers-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .coverage-grid, .quote-grid{ gap: 40px; }
  .nav{ gap: 14px; }
  /* hamburger: due linee che diventano una X */
  .nav-toggle{
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 10px;
    background: none; border: 1px solid rgba(245, 248, 252, 0.35);
    border-radius: var(--radius); cursor: pointer;
    position: relative; z-index: 60;
  }
  .nav-toggle span{
    display: block; height: 2px; background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .menu-open .nav-toggle span:first-child{ transform: translateY(4px) rotate(45deg); }
  .menu-open .nav-toggle span:last-child{ transform: translateY(-4px) rotate(-45deg); }
  /* pannello a tutto schermo con tutte le voci */
  .nav-links{
    position: fixed; inset: 0; z-index: 55;
    background: var(--bg);   /* opaco: le voci devono staccarsi sempre dalla pagina */
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 0; padding: 90px clamp(24px, 8vw, 56px) 40px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .menu-open .nav-links{ opacity: 1; visibility: visible; pointer-events: auto; }
  /* il backdrop-filter dell'header scrollato diventa "containing block" del pannello fixed:
     il pannello si riduceva all'altezza dell'header e le voci finivano sopra la pagina */
  .menu-open .header{ -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; }
  .nav-links a{
    font-family: var(--font-display);
    font-size: clamp(30px, 8vw, 44px); font-weight: 600;
    letter-spacing: -0.01em; text-transform: none;
    color: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    transform: translateY(12px); opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }
  .menu-open .nav-links a{ transform: none; opacity: 1; }
  .menu-open .nav-links a:nth-child(2){ transition-delay: 0.04s; }
  .menu-open .nav-links a:nth-child(3){ transition-delay: 0.08s; }
  .menu-open .nav-links a:nth-child(4){ transition-delay: 0.12s; }
  .menu-open .nav-links a:nth-child(5){ transition-delay: 0.16s; }
  .menu-open .nav-links a:nth-child(6){ transition-delay: 0.20s; }
  .menu-open .nav-links a:nth-child(7){ transition-delay: 0.24s; }
  .menu-open .nav-links a:nth-child(8){ transition-delay: 0.28s; }
  .nav-lang--bar{ display: none; }
  /* nel pannello mobile il selettore lingua resta piccolo, sotto le voci */
  .nav-links .nav-lang{ display: inline-flex;
    font-family: var(--font-body); font-size: 14px; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
    width: auto; border-bottom: 0; border: 1px solid var(--line); border-radius: 2px;
    padding: 8px 14px; margin-top: 22px;
  }
  .menu-open{ overflow: hidden; }
  .brand-link{ position: relative; z-index: 60; }   /* il logo resta visibile sopra il pannello */
  .only-desktop{ display: none; }
  .num{ border-left: none; border-top: 1px solid var(--line); padding: 22px 0 0; }
}
@media (max-width: 560px){
  body{ font-size: 16px; }
  .brand-logo{ height: 36px; }
  .numbers-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .hero-cta .btn{ width: 100%; text-align: center; }
}
/* telefoni stretti (Galaxy S6, iPhone SE): header più compatto, altrimenti logo + Preventivo + hamburger sforano */
@media (max-width: 380px){
  .hero-title{ font-size: clamp(38px, 12.5vw, 46px); }   /* "ASPETTARE." deve stare su una riga anche a 320px */
  .header{ padding-inline: 16px; }
  .nav{ gap: 10px; }
  .nav-cta{ padding: 9px 14px; }
}

/* ============================================================
   EFFETTI AGGIUNTIVI — aurora, logo 3D, velocity, pin, cursore
   ============================================================ */

/* ---------- aurora: tre cerchi sfocati nei blu del brand ---------- */
.aurora{
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  width: 46vw; height: 46vw;
  max-width: 640px; max-height: 640px;
  opacity: 0.55;
}
.b1{ background: #00489A; top: -12%; left: -8%;  animation: f1 13s ease-in-out infinite; }
.b2{ background: #1F6F8B; top: 24%;  right: -14%; animation: f2 16s ease-in-out infinite; }
.b3{ background: #14346B; bottom: -20%; left: 28%; animation: f3 11s ease-in-out infinite; }
@keyframes f1{
  0%   { transform: translate(0, 0)        scale(1);    opacity: 0.55 }
  25%  { transform: translate(16vw, 8vh)   scale(1.25); opacity: 0.42 }
  50%  { transform: translate(9vw, 20vh)   scale(0.95); opacity: 0.6 }
  75%  { transform: translate(-4vw, 10vh)  scale(1.15); opacity: 0.46 }
  100% { transform: translate(0, 0)        scale(1);    opacity: 0.55 }
}
@keyframes f2{
  0%   { transform: translate(0, 0)        scale(1);    opacity: 0.4 }
  25%  { transform: translate(-10vw, -6vh) scale(1.2);  opacity: 0.5 }
  50%  { transform: translate(-16vw, 6vh)  scale(0.9);  opacity: 0.34 }
  75%  { transform: translate(-5vw, 12vh)  scale(1.1);  opacity: 0.48 }
  100% { transform: translate(0, 0)        scale(1);    opacity: 0.4 }
}
@keyframes f3{
  0%   { transform: translate(0, 0)        scale(1);    opacity: 0.5 }
  25%  { transform: translate(8vw, -10vh)  scale(1.18); opacity: 0.38 }
  50%  { transform: translate(-8vw, -16vh) scale(1.02); opacity: 0.55 }
  75%  { transform: translate(-12vw, -4vh) scale(0.92); opacity: 0.42 }
  100% { transform: translate(0, 0)        scale(1);    opacity: 0.5 }
}

/* ---------- logo 3D: fluttua, si inclina col mouse, alone di luce ---------- */
.logo3d-wrap{
  position: relative;
  display: flex; align-items: center; justify-content: center;
  perspective: 900px;
  min-height: 320px;
}
.logo3d-glow{
  position: absolute;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 139, 224, 0.35) 0%, rgba(62, 139, 224, 0) 65%);
  filter: blur(20px);
}
.logo3d-float{ animation: float3d 6.5s ease-in-out infinite; will-change: transform; }
@keyframes float3d{
  0%, 100%{ transform: translateY(0); }
  50%     { transform: translateY(-16px); }
}
.logo3d{
  width: min(420px, 80%);
  height: auto;   /* gli attributi width/height nell'HTML danno solo le proporzioni */
  margin-inline: auto;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.5));
  will-change: transform;
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

/* ---------- scritta gigante piegata dalla velocità ---------- */
.velo{
  overflow: hidden;
  padding: clamp(30px, 6vh, 70px) 0 0;
  background: var(--bg);
}
.velo-inner{ will-change: transform; }
.velo-track{
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(70px, 11vw, 170px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(143, 163, 191, 0.32);
}
.velo-track span{ display: inline-block; }

/* ---------- come funziona ---------- */
.steps-head{ padding-bottom: 20px; }
.steps-stage{ width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.steps-stage .steps-list{ margin-top: 24px; }
/* linea di avanzamento della scena pinnata "come funziona":
   traccia sottile, il riempimento è scalato via JS con lo scroll */
.steps-progress{
  height: 2px;
  background: var(--line);
  margin-top: 40px;
  display: none;
}
.steps-progress span{
  display: block; height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}
@media (min-width: 761px){
  body.gsap-on .steps-progress{ display: block; }
}

/* ---------- scena filmica: mezzo che ruota con lo scroll ---------- */
.drive{ display: none; }
@media (min-width: 761px){
  body.gsap-on .drive{
    display: block;
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: var(--bg);
  }
}
.drive-canvas{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.drive-final{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform-origin: 50% 50%;   /* lo zoom finale lo guida lo script, in sincrono col canvas */
  will-change: transform, opacity;
}
.drive-caption{
  position: absolute; left: 50%; top: 45%;
  transform: translate(-50%, -50%);
  width: min(1100px, 90%);
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.8vw, 68px);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
}
.drive-caption .w{ opacity: 0.14; }
/* onda-tragitto: stessa curva dei divider, si disegna sotto la frase */
.drive-caption .drive-route{
  height: 42px;
  margin-top: 10px;
  overflow: visible;
  /* niente drop-shadow: un filtro su un path che si ridisegna a ogni tick
     costa una ri-rasterizzazione continua e fa scattare lo scrub */
}
.drive-logo{
  position: absolute; left: 50%; top: 50%;
  width: min(292px, 27vw);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
/* logo bianco + azzurro (stesso file della testata). Sul muso chiaro del van si legge grazie a un
   velo scuro morbido dietro, non a un'ombra spostata ("effetto PowerPoint", bocciata il 9/9). */
.drive-logo img{ position: relative; width: 100%; display: block; filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.5)); }
.drive-veil{
  position: absolute; left: 50%; top: 50%;
  width: 230%; height: 200%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(3, 15, 34, 0.72) 0%, rgba(3, 15, 34, 0.45) 40%, rgba(3, 15, 34, 0) 70%);
}
.drive-bokeh{
  /* pioggia sfocata in primo piano: texture su nero in blend screen
     (il nero sparisce, i cerchi brillano), deriva lenta con lo scroll */
  position: absolute; inset: -5%;
  background: url('assets/bokeh.jpg') center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
  will-change: transform;
}
.drive-flare{
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 58%,
    rgba(255, 246, 225, 0.95) 0%,
    rgba(255, 240, 205, 0.5) 30%,
    rgba(255, 236, 190, 0.18) 55%,
    rgba(255, 236, 190, 0) 75%);
  mix-blend-mode: screen;
}
.drive-fade{
  position: absolute; left: 0; right: 0; height: 18vh;
  pointer-events: none;
}
.drive-fade--top{ top: 0; background: linear-gradient(to bottom, var(--bg), transparent); }
.drive-fade--bottom{ bottom: 0; background: linear-gradient(to top, var(--bg), transparent); }

/* ---------- parola per parola (manifesto) ---------- */
.manifesto-text .w{ opacity: 1; transition: none; }
body.gsap-on .manifesto-text .w{ opacity: 0.18; }

/* ---------- back to top ---------- */
.to-top{
  position: fixed; right: 22px; bottom: 22px;
  z-index: 90;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(4, 24, 49, 0.55);   /* --bg-2 con trasparenza */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--muted);
  cursor: pointer;
  opacity: 0; transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease,
              color 0.2s ease, border-color 0.2s ease;
}
.to-top.show{ opacity: 0.8; transform: none; pointer-events: auto; }
.to-top:hover{ opacity: 1; color: var(--accent); border-color: var(--accent); }
@media (max-width: 760px){
  .to-top{ right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

/* ---------- cursore custom ---------- */
.cursor{ pointer-events: none; }
.cursor-dot, .cursor-ring{
  position: fixed; top: 0; left: 0;
  z-index: 200;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
.cursor-dot{
  width: 6px; height: 6px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.cursor-ring{
  width: 38px; height: 38px;
  border: 1.5px solid rgba(62, 139, 224, 0.55);
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring{ opacity: 1; transition: opacity 0.2s ease; }
body.cursor-on .cursor-ring{ transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.2s ease; }
/* sopra campi e spunte del form il cursore custom sparisce: resta solo quello nativo */
body.cursor-on .cursor-dot.hide, body.cursor-on .cursor-ring.hide{ opacity: 0; }
body.cursor-on .cursor-ring.grow{
  width: 64px; height: 64px;
  border-color: rgba(62, 139, 224, 0.9);
}

/* ---------- riduzione movimento: spegne anche i nuovi effetti ---------- */
@media (prefers-reduced-motion: reduce){
  .blob{ animation: none; }
  .logo3d-float{ animation: none; }
  .velo-track{ animation: none; }
  .cursor{ display: none; }
  .logo3d{ transition: none; }
}

/* ---------- responsive per le nuove sezioni ---------- */
@media (max-width: 980px){
  .brand-grid{ grid-template-columns: 1fr; gap: 40px; }
  .logo3d-wrap{ min-height: 0; }
  .logo3d{ width: min(320px, 70%); }
}

/* ---------- testimonianze ---------- */
.reviews{ padding: clamp(70px, 10vh, 120px) 0; background: var(--bg-2); }
.reviews-note{ font-size: 13px; color: var(--grey); margin-bottom: 40px; }
.reviews-grid{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.review{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  margin: 0;
}
.stars{ display: flex; gap: 4px; }
.stars::before{
  content: '';
  width: 96px; height: 16px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19'%3E%3Cpath d='M10 0l2.9 6.2 6.6.8-4.9 4.6 1.3 6.6L10 15l-5.9 3.2 1.3-6.6L.5 7l6.6-.8z'/%3E%3C/svg%3E") repeat-x left center / 19.2px 16px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19'%3E%3Cpath d='M10 0l2.9 6.2 6.6.8-4.9 4.6 1.3 6.6L10 15l-5.9 3.2 1.3-6.6L.5 7l6.6-.8z'/%3E%3C/svg%3E") repeat-x left center / 19.2px 16px;
}
.review blockquote{
  font-size: 15px; line-height: 1.6; color: var(--white);
  margin: 0; flex-grow: 1;
}
.review figcaption{ display: flex; align-items: center; gap: 12px; }
.review figcaption strong{ display: block; font-size: 14px; font-weight: 600; color: var(--white); }
.review figcaption em{ display: block; font-style: normal; font-size: 12.5px; color: var(--grey); }

/* ---------- loghi clienti ---------- */
.clients{ padding: 56px 0 70px; background: var(--bg-2); border-top: 1px solid var(--line); }
.clients-title{
  text-align: center;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 28px;
}
.clients-grid{
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.client-slot{
  border: 1px dashed rgba(143, 163, 191, 0.35);
  border-radius: 8px;
  min-height: 74px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--grey);
  letter-spacing: 0.04em;
}

/* ---------- FAQ accordion ---------- */
.faq-sec{ padding: clamp(70px, 10vh, 120px) 0; }
.faq-wrap{
  display: grid; grid-template-columns: 0.9fr 1.4fr;
  gap: 64px; align-items: start;
}
.faq-note{ color: var(--muted); font-size: 15px; }
.faq-list{ display: flex; flex-direction: column; }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item:first-child{ border-top: 1px solid var(--line); }
.faq-q{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: none; cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500;
  color: var(--white);
  padding: 22px 4px;
  transition: color 0.25s ease;
}
.faq-q:hover{ color: var(--accent); }
.faq-q svg{ flex-shrink: 0; color: var(--accent); transition: transform 0.35s ease; }
.faq-item.open .faq-q svg{ transform: rotate(180deg); }
.faq-a{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-item.open .faq-a{ grid-template-rows: 1fr; }
.faq-a-inner{
  overflow: hidden;
  font-size: 15px; color: var(--muted); line-height: 1.65;
}
.faq-item.open .faq-a-inner{ padding-bottom: 22px; }
.faq-a-inner{ transition: padding 0.35s ease; }

@media (prefers-reduced-motion: reduce){
  .faq-a, .faq-q svg, .faq-a-inner{ transition: none; }
}
@media (max-width: 980px){
  .reviews-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-wrap{ grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px){
  .reviews-grid{ grid-template-columns: 1fr; }
}

/* ---------- nastro loghi clienti: striscia chiara illuminata ---------- */
.clients-strip{
  position: relative;
  overflow: hidden;
  /* bianco caldo, come una superficie colpita dai fari */
  background: #FBF8F1;
  border-block: 1px solid var(--line);
  padding-block: 26px;
}
.clients-track{
  display: flex; align-items: center;
  gap: clamp(48px, 6vw, 88px);
  width: max-content;
  will-change: transform;
  touch-action: pan-y;   /* orizzontale al nastro, verticale alla pagina */
}
/* 5-6 loghi in vista su desktop: piu' grandi e leggibili */
.clients-track img{ height: 96px; width: auto; }
@media (max-width: 760px){
  .clients-track img{ height: 64px; }
  .clients-track{ gap: 36px; }
}
.clients-arrow{
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(245, 248, 252, 0.25);
  background: rgba(3, 15, 34, 0.82);
  color: var(--white);
  font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.clients-arrow:hover{ background: var(--accent); border-color: var(--accent); }
.clients-arrow--prev{ left: 16px; }
.clients-arrow--next{ right: 16px; }
@media (prefers-reduced-motion: reduce){
  .clients-track{
    flex-wrap: wrap; width: auto;
    justify-content: center; row-gap: 18px; padding-inline: 24px;
  }
  .clients-arrow{ display: none; }
}
@media (max-width: 560px){
  .clients-track img{ height: 76px; }   /* leggibili anche da telefono */
  .clients-track{ gap: 30px; }
  .clients-strip{ padding-block: 20px; }
  .clients-arrow{ width: 34px; height: 34px; }
  .clients-arrow--prev{ left: 8px; }
  .clients-arrow--next{ right: 8px; }
}

/* ============================================================
   SEZIONI 07/09: intro, garanzia, mezzi, gruppi FAQ, contatti
   ============================================================ */

/* riga introduttiva sotto i titoli di sezione */
.section-intro{ color: var(--muted); max-width: 640px; font-size: clamp(16px, 1.4vw, 18px); }

/* etichetta sopra le pastiglie dei servizi accessori */
.svc-minor-title{
  margin-top: 44px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey);
}
.svc-minor{ margin-top: 14px; }

/* ---------- garanzia di puntualità ---------- */
.guarantee{ padding-bottom: clamp(70px, 10vh, 130px); background: var(--bg); }
.guarantee .wave{ margin-bottom: clamp(40px, 6vh, 70px); }
.guarantee-grid{
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 64px; align-items: center;
}
.guarantee .section-title em{ font-style: normal; }
.guarantee-text{ color: var(--white); max-width: 540px; font-size: clamp(16px, 1.5vw, 19px); }
.guarantee-text + .guarantee-text{ margin-top: 14px; }
.guarantee-cta{
  margin-top: 34px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.cta-hint{ color: var(--muted); font-size: 14.5px; max-width: 260px; line-height: 1.45; }

/* ---------- inviti secondari: una riga con la freccia che scappa ---------- */
.link-arrow{
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 20px); font-weight: 500;
  color: var(--white);
  margin-top: 28px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s ease;
}
.link-arrow span{ color: var(--accent); transition: transform 0.3s ease; }
.link-arrow:hover{ border-color: var(--accent); }
.link-arrow:hover span{ transform: translateX(8px); }
.faq-cta{ margin-top: 34px; }

/* ---------- barra mobile: Chiama + Preventivo sempre a portata di pollice ---------- */
.mobile-bar{ display: none; }
@media (max-width: 760px){
  .mobile-bar{
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: flex;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
    background: rgba(3, 15, 34, 0.82);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 0.35s ease;
  }
  .mobile-bar.show{ transform: none; }
  .menu-open .mobile-bar{ transform: translateY(110%); }
  .mobile-bar a{
    flex: 1;
    text-align: center;
    font-family: var(--font-body);
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 14px 10px;
    border-radius: var(--radius);
  }
  .mobile-bar-quote{ background: var(--white); color: var(--bg); }
  /* il "torna su" sale sopra la barra quando c'è */
  .mobile-bar.show ~ .to-top{ bottom: 78px; }
}
.guarantee-note{ color: var(--grey); font-size: 13.5px; margin-top: 18px; max-width: 540px; }
.guarantee-points{ display: flex; flex-direction: column; }
.guarantee-points li{
  padding: 22px 0 22px 24px;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 4px 0 0 var(--accent);
  display: flex; flex-direction: column; gap: 6px;
}
.guarantee-points li:first-child{ border-top: 1px solid var(--line); }
.guarantee-points li:last-child{ border-bottom: none; }

/* bordo luminoso: una scia di luce percorre il perimetro del pannello */
@property --beam-a{ syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.beam{
  position: relative;
  padding: 1px;
  border-radius: 6px;
  background: var(--line);
  isolation: isolate;
}
.beam::before{
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--beam-a),
    transparent 0 70%, rgba(62, 139, 224, 0.35) 80%, var(--accent) 88%, transparent 100%);
  animation: beam-spin 7s linear infinite;
}
.beam-inner{
  position: relative;
  background: var(--bg-2);
  border-radius: 5px;
  padding: 30px 28px 6px;
}
@keyframes beam-spin{ to{ --beam-a: 360deg; } }

/* numeri che impazziscono e si bloccano con un colpo, frase a raffica sotto */
.slam{
  position: relative; overflow: hidden;
  text-align: center;
  padding: 26px 8px 30px;
  margin-bottom: 18px;
}
.slam-rule{
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}
.slam-rule.go{ animation: slam-rule 0.35s cubic-bezier(0.7, 0, 0.2, 1) forwards; }
@keyframes slam-rule{ to{ transform: scaleX(1); } }
.slam-big{
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 6.4vw, 104px); line-height: 0.9; letter-spacing: -0.03em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.slam-big.lock{ color: var(--accent); animation: slam-lock 0.18s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes slam-lock{ from{ transform: scale(1.35); } to{ transform: none; } }
.slam-line{
  margin-top: 14px;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(15px, 1.35vw, 19px); letter-spacing: 0.06em; line-height: 1.3;
  color: var(--white); min-height: 2.6em;
}
.slam-line span{ display: inline-block; opacity: 0; transform: translateY(0.4em); }
.slam-line span.on{ opacity: 1; transform: none; transition: opacity 0.06s linear, transform 0.08s ease-out; }
.slam-flash{ position: absolute; inset: 0; background: var(--accent); opacity: 0; pointer-events: none; }
.slam-flash.go{ animation: slam-flash 0.22s linear; }
@keyframes slam-flash{ from{ opacity: 0.5; } to{ opacity: 0; } }
@media (prefers-reduced-motion: reduce){
  .beam::before{ animation: none; }
}
.guarantee-points strong{
  font-family: var(--font-display);
  font-weight: 600; font-size: clamp(20px, 2vw, 24px); line-height: 1.15;
}
.guarantee-points span{ color: var(--muted); font-size: 15px; }

/* ---------- i nostri mezzi: una scheda per furgone ---------- */
.fleet{ padding: clamp(70px, 10vh, 130px) 0; background: var(--bg-2); }
.fleet-grid{
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; margin-top: 44px;
}
.van{
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 32px 28px 30px;
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
/* all'hover la scheda si accende: bordo e alone azzurri, testi più chiari */
@media (hover: hover){
  .van:hover{
    border-color: rgba(62, 139, 224, 0.6);
    background: #061F42;
    box-shadow: 0 0 0 1px rgba(62, 139, 224, 0.25), 0 18px 50px rgba(62, 139, 224, 0.18);
    transform: translateY(-4px);
  }
  .van:hover .van-note, .van:hover .van-specs dt, .van:hover .van-ep small{ color: var(--white); }
}
.van h3{
  font-family: var(--font-display);
  font-weight: 600; font-size: 24px; line-height: 1.15;
  min-height: 2.3em;   /* due righe per tutti: i blocchi sotto restano allineati tra le schede */
}
.van-ep{ display: flex; flex-direction: column; gap: 6px; line-height: 1; }
.van-ep span{
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(48px, 4vw, 64px);
  color: var(--white);
  white-space: nowrap;
}
.van-ep small{ font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color 0.3s ease; }
/* posti pallet: un quadratino per europallet, tutti pieni */
.ep-dots{ display: flex; flex-wrap: wrap; gap: 5px; min-height: 10px; }
.ep-dots i{
  width: 14px; height: 10px;
  background: var(--accent);
  border-radius: 1px;
}
.van-specs{ display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.van-specs dt{ font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; transition: color 0.3s ease; }
.van-specs dd{ font-size: 16.5px; color: var(--white); }
.van-specs em{ font-style: normal; font-size: 14px; color: var(--muted); }
.van-note{ color: var(--muted); font-size: 15.5px; flex-grow: 1; transition: color 0.3s ease; }
.van-tags{ display: flex; flex-wrap: wrap; gap: 8px; }
.van-tags li{
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(62, 139, 224, 0.4);
  padding: 7px 11px;
}
/* foto del mezzo come fantasma: dietro il testo, in basso a destra, esce dal bordo
   della scheda; viraggio navy fatto in export (fondo trasparente) */
.van{ position: relative; overflow: hidden; isolation: isolate; }
.van > *:not(.van-img){ position: relative; z-index: 1; }
.van-img{
  position: absolute; z-index: 0;
  right: -22%; bottom: -4%;
  width: 118%; height: auto; max-width: none;
  margin: 0;
  opacity: 0.26;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 95%);
  mask-image: linear-gradient(to left, #000 35%, transparent 95%);
  transition: opacity 0.5s ease, transform 0.6s ease;
}
@media (hover: hover){
  .van:hover .van-img{ opacity: 0.5; transform: translateX(-3%); }
}

/* l'autotreno: stessa scheda dei furgoni, ma bassa e a tutta larghezza sotto di loro */
.van--heavy{
  margin-top: 20px;
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 40px; align-items: start;
}
.van--heavy > div{ display: flex; flex-direction: column; gap: 14px; }
.van--heavy .van-img{
  right: -6%; bottom: -12%;
  width: 62%;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(to left, #000 50%, transparent 100%);
  mask-image: linear-gradient(to left, #000 50%, transparent 100%);
}
.van-kicker{ font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.van--heavy h3{ font-size: 26px; min-height: 0; }
.van--heavy .van-ep span{ font-size: 48px; }
/* 38 posti: due file uguali da 19, come motrice e rimorchio */
.van--heavy .ep-dots{ display: grid; grid-template-columns: repeat(19, 11px); gap: 5px; }
.van--heavy .ep-dots i{ width: 11px; height: 8px; }
.van--heavy .van-specs{ flex-direction: row; flex-wrap: wrap; gap: 8px 28px; }
.fleet-note{ color: var(--grey); font-size: 13.5px; margin-top: 26px; max-width: 78ch; }

/* ---------- FAQ: indice dei gruppi fisso a sinistra ---------- */
.faq-side{ position: sticky; top: 96px; }
.faq-wrap > *{ min-width: 0; }   /* l'indice scorrevole non deve allargare la colonna */
.faq-nav{ display: flex; flex-direction: column; margin-top: 34px; border-top: 1px solid var(--line); }
.faq-nav a{
  font-family: var(--font-display);
  font-weight: 500; font-size: 17px;
  color: var(--muted);
  padding: 13px 0 13px 18px;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 0 0 var(--accent);
  transition: color 0.25s ease, box-shadow 0.25s ease, padding-left 0.25s ease;
}
.faq-nav a:hover{ color: var(--white); }
.faq-nav a.active{ color: var(--white); box-shadow: inset 4px 0 0 var(--accent); padding-left: 24px; }
.faq-group{ scroll-margin-top: 96px; }

/* ---------- FAQ: titoli di gruppo ---------- */
.faq-group{
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  padding: 34px 4px 10px;
}
.faq-group:first-child{ padding-top: 0; }
.faq-group + .faq-item{ border-top: 1px solid var(--line); }
.faq-list > .faq-item:first-child{ border-top: 1px solid var(--line); }
.faq-a-inner a{ color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- contatti cliccabili (preventivo e footer) ---------- */
.quote-contacts a, .footer-contacts a{
  color: var(--white); font-size: inherit;
  transition: color 0.25s ease;
}
.quote-contacts a{ font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.quote-contacts a:hover, .footer-contacts a:hover{ color: var(--accent); }
.footer-contacts a{ color: var(--muted); }

@media (max-width: 980px){
  .guarantee-grid{ grid-template-columns: 1fr; gap: 40px; }
  /* furgoni: due schede per riga su tablet, una sotto l'altra su telefono
     (il nastro orizzontale nascondeva le schede fuori schermo) */
  .fleet-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .van--heavy{ grid-template-columns: 1fr; gap: 18px; }
  /* FAQ: l'indice diventa una riga di pastiglie sopra le domande */
  .faq-side{ position: static; }
  .faq-nav{
    flex-direction: row; gap: 8px;
    overflow-x: auto; scrollbar-width: none;
    border-top: none; margin-top: 22px; padding-bottom: 4px;
  }
  .faq-nav::-webkit-scrollbar{ display: none; }
  .faq-nav a{
    flex: none;
    font-family: var(--font-body);
    font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 9px 14px; border: 1px solid var(--line);
    box-shadow: none;
  }
  .faq-nav a.active{ padding-left: 14px; box-shadow: none; border-color: var(--accent); color: var(--white); }
  .faq-group{ scroll-margin-top: 80px; }
}

@media (max-width: 560px){
  .fleet-grid{ grid-template-columns: 1fr; }   /* telefono: una scheda sotto l'altra */
  .van{ padding: 26px 20px 24px; }
  /* autotreno: le due file da 19 quadratini erano a larghezza fissa (299px) e spingevano
     tutto il testo fuori dalla scheda; ora si adattano alla larghezza disponibile */
  .van--heavy > div{ min-width: 0; }
  .van--heavy .ep-dots{ grid-template-columns: repeat(19, minmax(0, 1fr)); gap: 4px; }
  .van--heavy .ep-dots i{ width: auto; }
  .quote-contacts a{ font-size: 18px; }
}

@media (max-width: 980px){
  /* autotreno: la scheda è alta e stretta, il fantasma copre tutta la larghezza in basso */
  .van--heavy .van-img{
    width: 104%; right: -4%; bottom: 1%; opacity: 0.3;
    -webkit-mask-image: linear-gradient(to top, #000 55%, transparent 100%);
    mask-image: linear-gradient(to top, #000 55%, transparent 100%);
  }
}

/* ---------- hero SEO (30/9/26): frase grande come testo, H1 descrittivo sotto, badge ---------- */
.hero-h1{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--white);
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
  margin: -8px 0 18px;
  animation: rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: 0.08s;
}
.hero-h1 .sep{ color: var(--accent); }
.hero-cta-main{ display: flex; flex-direction: column; gap: 8px; }
.hero-cta-note{
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grey); padding-left: 2px;
}
.hero-badges{
  list-style: none; margin: 34px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
  animation: rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: 0.45s;
}
.hero-badges li{
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 15, 34, 0.42);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hero-badges li::before{
  content: ''; display: inline-block; width: 6px; height: 6px;
  background: var(--accent); margin-right: 9px; vertical-align: 2px;
}
@media (prefers-reduced-motion: reduce){ .hero-h1, .hero-badges{ animation: none; } }
@media (max-width: 560px){
  .hero-inner{ padding-top: 72px; }
  .hero-title{ margin-bottom: 20px; }
  .hero-sub{ margin-bottom: 28px; }
  .hero-cta-main{ width: 100%; }
  .hero-badges{ margin-top: 24px; gap: 8px; }
  .hero-badges li{ font-size: 11px; padding: 7px 10px; }
  /* tre frasi impilate, senza puntini orfani a fine riga */
  .hero-h1{ font-size: 15px; flex-direction: column; gap: 2px; margin-bottom: 14px; }
  .hero-h1 .sep{ display: none; }
}

/* ---------- cosa trasportiamo (30/9/26) ---------- */
.carry{ padding: clamp(56px, 8vh, 96px) 0; background: var(--bg); border-top: 1px solid var(--line); }
.carry-grid{ display: grid; grid-template-columns: 1fr 1.7fr; gap: 40px; align-items: start; }
.carry-title{
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06;
}
.carry-text{ color: var(--white); font-size: clamp(17px, 1.55vw, 21px); line-height: 1.5; max-width: 700px; }
.carry-text strong{ color: var(--accent); font-weight: 600; }
.carry-more{ margin-top: 18px; color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); }
.carry-more a{ color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.carry-more a:hover{ color: var(--accent); }
@media (max-width: 980px){ .carry-grid{ grid-template-columns: 1fr; gap: 18px; } }

/* titoli delle card servizi collegati alle landing (1/10/26) */
.svc h3 a{ color: inherit; text-decoration: none; border-bottom: 1px solid rgba(62, 139, 224, 0.5); }
.svc h3 a:hover{ color: var(--accent); border-bottom-color: var(--accent); }
