/* ==========================================================
   NOLEGGIO MALPENSA — tema chiaro (blu e nero del logo)
   Mobile first: gli stili base sono per smartphone,
   i breakpoint (min-width) aggiungono tablet e desktop.
   ========================================================== */

/* ---------- font Montserrat ospitato sul sito (niente Google Fonts) ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f4f7fa;              /* sfondo pagina */
  --bg-soft: #e4ebf2;         /* riquadri immagine */
  --bg-deep: #ffffff;         /* header, menu mobile, footer */
  --line: rgba(15, 35, 60, .16);
  --text: #141414;            /* nero della scritta del logo */
  --muted: #5d6877;
  --accent: #1c75bc;          /* blu del logo: bottoni, link, dettagli */
  --accent-dark: #124a80;     /* blu scuro del logo */
  --on-accent: #ffffff;       /* testo sopra il blu */

  --font: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --pad: 20px;
  --max: 1180px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
svg { width: 20px; height: 20px; fill: currentColor; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

/* ---------- elementi comuni ---------- */
.title {
  font-size: clamp(1.15rem, 4.6vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.title--lg { font-size: clamp(1.4rem, 5.8vw, 2.1rem); line-height: 1.2; }

/* etichetta piccola sopra i titoli */
.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* intestazione di sezione: etichetta + titolo + testo */
.section-head p {
  max-width: 52ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--sm { min-height: 40px; padding: 0 20px; }
.btn--outline { border: 1px solid var(--line); }
.btn--outline:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--solid { background: var(--accent); color: var(--on-accent); }
.btn--solid:hover { background: var(--accent-dark); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.link-arrow svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  transition: transform .35s var(--ease);
}
.link-arrow:hover svg { transform: translateX(6px); }

.arrow {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  color: var(--text);
  transition: color .3s, opacity .3s, transform .3s var(--ease);
}
.arrow svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.arrow:hover { color: var(--accent); }
.arrow:active { transform: scale(.9); }
.arrow:disabled { opacity: .25; cursor: default; }

/* scritta gigante sullo sfondo delle sezioni */
.ghost {
  position: absolute;
  left: 50%;
  top: 34%;
  margin-left: -50vw;
  width: 100vw;
  text-align: center;
  font-size: clamp(5.5rem, 27vw, 21rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(18, 74, 128, .055);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

/* segnaposto finché le immagini non vengono caricate */
.no-img {
  background:
    repeating-linear-gradient(135deg, rgba(18,74,128,.06) 0 14px, transparent 14px 28px),
    var(--bg-soft);
}
.no-img img { visibility: hidden; }
.no-img::after {
  content: attr(data-src);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(15, 35, 60, .45);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--bg-deep);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .4s var(--ease);
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 35, 60, .1); }

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: var(--max);
  height: 64px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* logo (img/logo.png) */
.logo {
  position: relative;
  z-index: 3;
  flex: none;
  margin-right: auto;
}
.logo img { width: auto; height: 36px; }

/* se il file del logo manca, mostra il nome in testo */
.logo.no-img,
.footer__logo.no-img { background: none; }
.logo.no-img img,
.footer__logo.no-img img { display: none; }
.logo.no-img::after,
.footer__logo.no-img::after {
  content: 'Noleggio Malpensa';
  position: static;
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .02em;
}

.header__phone {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: background .3s;
}
.header__phone svg { width: 14px; height: 14px; }
.header__phone:hover { background: var(--accent-dark); }

/* schermi molto stretti: del telefono resta solo l'icona */
@media (max-width: 379px) {
  .header__phone { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .header__phone span { display: none; }
  .header__phone svg { width: 18px; height: 18px; }
}

.burger {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0 10px;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  transform-origin: center;
  transition: transform .4s var(--ease), opacity .3s, width .4s var(--ease);
}
.burger span:nth-child(2) { width: 65%; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* menu a tutto schermo (mobile) */
.nav {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  height: 100vh;
  height: 100dvh;
  padding: 110px var(--pad) 40px calc(var(--pad) + 4px);
  background: var(--bg-deep);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.menu-open .nav {
  clip-path: inset(0);
  visibility: visible;
  transition: clip-path .6s var(--ease), visibility 0s;
}

.nav__link {
  position: relative;
  padding: 8px 0;
  font-size: clamp(1.5rem, 8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.nav__link.is-active { color: var(--accent); }
.menu-open .nav__link { opacity: 1; transform: none; }
.menu-open .nav__link:nth-child(1) { transition-delay: .15s; }
.menu-open .nav__link:nth-child(2) { transition-delay: .21s; }
.menu-open .nav__link:nth-child(3) { transition-delay: .27s; }
.menu-open .nav__link:nth-child(4) { transition-delay: .33s; }
.menu-open .nav__link:nth-child(5) { transition-delay: .39s; }
.menu-open .nav__link:nth-child(6) { transition-delay: .45s; }

.nav__social {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted);
}
.nav__social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  transition: color .3s, border-color .3s;
}
.nav__social a:hover { color: var(--accent); border-color: var(--accent); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  padding-top: 64px;                 /* altezza dell'header */
  padding-bottom: 56px;
}

.hero__media {
  position: relative;
  height: 62vh;
  height: 62svh;
  min-height: 340px;
  max-height: 560px;
  overflow: hidden;
  background: var(--bg-soft);
}
.hero__media::after {                /* sfumatura chiara per leggere il titolo */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(244,247,250,1) 0%, rgba(244,247,250,.75) 18%, transparent 46%);
  pointer-events: none;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  transition: transform 7s linear;
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide.is-active img { transform: scale(1); }

.hero__controls {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--accent-dark);
}
.hero__controls .arrow { color: var(--on-accent); }
.hero__controls .arrow:hover { color: var(--on-accent); opacity: .7; }
.hero__count {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .65);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
}
.hero__count b { color: var(--on-accent); }
.hero__count i { width: 22px; height: 1px; background: rgba(255, 255, 255, .35); }

.hero__social { display: none; }

.hero__content {
  position: relative;
  z-index: 2;
  margin-top: -84px;
  padding: 0 var(--pad);
}

.hero__eyebrow { margin-bottom: 10px; }

.hero__title {
  font-size: clamp(1.5rem, 7.4vw, 3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: block; }
.hero__title .accent { color: var(--accent); }

.hero__lead {
  max-width: 40ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* ---------- animazione d'ingresso (solo con JS attivo) ---------- */
.js .logo { opacity: 0; transform: translateY(-12px); }
.js .header__phone, .js .burger { opacity: 0; transform: translateY(-12px); }
.js .hero__media { clip-path: inset(0 0 0 100%); }
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__eyebrow, .js .hero__lead, .js .hero__cta, .js .hero__social { opacity: 0; transform: translateY(18px); }

.js .is-loaded .logo { opacity: 1; transform: none; transition: opacity .7s .1s, transform .7s var(--ease) .1s; }
.js .is-loaded .header__phone,
.js .is-loaded .burger { opacity: 1; transform: none; transition: opacity .6s .5s, transform .6s var(--ease) .5s, background .3s; }
.js .is-loaded .hero__media { clip-path: inset(0); transition: clip-path 1.2s var(--ease) .15s; }
.js .is-loaded .hero__title .line > span { transform: none; transition: transform .9s var(--ease); }
.js .is-loaded .hero__title .line:nth-child(1) > span { transition-delay: .45s; }
.js .is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .57s; }
.js .is-loaded .hero__title .line:nth-child(3) > span { transition-delay: .69s; }
.js .is-loaded .hero__eyebrow { opacity: 1; transform: none; animation: fadeUp .7s var(--ease) .35s backwards; }
.js .is-loaded .hero__lead { opacity: 1; transform: none; animation: fadeUp .7s var(--ease) .95s backwards; }
.js .is-loaded .hero__cta { opacity: 1; transform: none; animation: fadeUp .7s var(--ease) 1.1s backwards; }
.js .is-loaded .hero__social { opacity: 1; transform: none; animation: fadeUp .7s var(--ease) 1.2s backwards; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================
   COMPARSA ALLO SCROLL
   ========================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.js [data-reveal="left"] { transform: translateX(40px); }
.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0); }

/* ==========================================================
   TRANSFER (fascia blu)
   ========================================================== */
.transfer {
  padding: 54px 0 40px;
  background: var(--accent-dark);
  color: var(--on-accent);
}
.transfer .eyebrow { color: rgba(255, 255, 255, .7); }
.transfer .section-head p { color: rgba(255, 255, 255, .78); }

.transfer__grid {
  display: grid;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.place {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.place svg {
  flex: none;
  width: 28px; height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
.place h3 {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.place p {
  margin-top: 4px;
  color: rgba(255, 255, 255, .75);
  font-size: 11.5px;
  line-height: 1.7;
}

/* ==========================================================
   SERVIZI
   ========================================================== */
.services {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
}
.services .container { position: relative; z-index: 1; }

.services__grid {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.service {
  position: relative;
  padding: 28px 24px 30px;
  background: var(--bg-deep);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}
.service::before {                   /* riga blu che scorre al passaggio */
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.service:hover::before { transform: scaleX(1); }

.service__num {
  position: absolute;
  right: 20px;
  top: 16px;
  color: rgba(18, 74, 128, .13);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
}
.service svg {
  width: 36px; height: 36px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  transition: transform .5s var(--ease);
}
.service:hover svg { transform: translateY(-4px); }
.service h3 {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.service p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.services__cta { margin-top: 30px; }

/* ==========================================================
   FLOTTA
   ========================================================== */
.fleet {
  position: relative;
  padding: 44px 0 64px;
  overflow: hidden;
}
.fleet .container { position: relative; z-index: 1; }

.fleet__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fleet__tools {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.filters {
  display: flex;
  gap: 4px;
  max-width: calc(100vw - var(--pad));
  margin-left: -10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.filter {
  position: relative;
  flex: none;
  min-height: 40px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .3s;
}
.filter::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  margin-right: 0;
  vertical-align: middle;
  background: var(--accent);
  transition: width .4s var(--ease), margin .4s var(--ease);
}
.filter:hover { color: var(--text); }
.filter.is-active { color: var(--text); }
.filter.is-active::before { width: 16px; margin-right: 8px; }

/* carosello a scorrimento: 1 auto e un po' della successiva su mobile */
.fleet__track {
  display: flex;
  gap: 16px;
  margin: 34px calc(var(--pad) * -1) 0;
  padding: 0 var(--pad);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--pad);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.fleet__track::-webkit-scrollbar { display: none; }

.car {
  flex: 0 0 78%;
  scroll-snap-align: start;
  text-align: center;
}
.car.is-hidden { display: none; }

/* tutti i veicoli stanno in una schermata: schede centrate, niente scorrimento */
.fleet__track.is-static { justify-content: center; }
.car.is-pop { animation: fadeUp .6s var(--ease) var(--d, 0s) backwards; }

.car__img {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
}
.car__img::before {                  /* ombra a terra sotto l'auto */
  content: '';
  position: absolute;
  left: 12%; right: 12%; bottom: 8%;
  height: 14px;
  border-radius: 50%;
  background: rgba(15, 35, 60, .28);
  filter: blur(10px);
  transition: transform .6s var(--ease), opacity .6s;
}
.car__img img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .7s var(--ease);
}
.car:hover .car__img img { transform: translateX(10px) scale(1.04); }
.car:hover .car__img::before { transform: scaleX(1.08); opacity: .8; }

.car__cat {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.car__name {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.car__desc {
  max-width: 34ch;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}
.car .link-arrow { margin-top: 14px; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.pager b { color: var(--text); }
.pager__bar {
  position: relative;
  width: 90px;
  height: 1px;
  background: var(--line);
}
.pager__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  background: var(--accent);
  transition: width .5s var(--ease);
}

/* ==========================================================
   CHI SIAMO
   ========================================================== */
.about { padding: 20px 0 70px; }

.about__grid {
  display: grid;
  gap: 44px;
}

.about__main { position: relative; margin: 0 calc(var(--pad) * -1) 0; padding-right: 44px; }

.about__photo,
.about__side {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.about__photo { aspect-ratio: 16 / 10; }
.about__side { aspect-ratio: 4 / 3; margin-left: 44px; margin-right: calc(var(--pad) * -1); }

.about__photo img,
.about__side img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
}

/* blocco blu sovrapposto alla foto */
.about__tag {
  position: absolute;
  right: 0;
  bottom: -24px;
  z-index: 1;
  width: 172px;
  padding: 20px 14px 18px 20px;
}
.about__tag::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
}
.about__tag h3 {
  margin-bottom: 12px;
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.about__tag .link-arrow { color: var(--on-accent); }

.about__text p {
  max-width: 46ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
  margin-top: 28px;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.checks svg {
  flex: none;
  width: 22px; height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent);
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 2.4;
}

.about__cta { margin-top: 30px; }

/* ==========================================================
   FOOTER / CONTATTI
   ========================================================== */
.footer {
  position: relative;
  padding: 60px 0 0;
  overflow: hidden;
  background: var(--bg-deep);
}
.footer .container { position: relative; z-index: 1; }

.ghost--footer { top: 10%; color: rgba(18, 74, 128, .045); }

.footer__grid {
  display: grid;
  gap: 34px;
}

.footer__logo {
  position: relative;
  display: block;
  width: 180px;
  transition: opacity .3s;
}
.footer__logo img { width: 100%; height: auto; }
.footer__logo:hover { opacity: .75; }

.footer__info { font-size: 12px; }
.footer__info p { margin-bottom: 8px; }
.footer__info b { font-weight: 700; }
.footer__info a { transition: color .3s; }
.footer__info a:hover { color: var(--accent); }

.footer__social {
  display: flex;
  gap: 2px;
  margin: 6px 0 0 -12px;
  color: var(--muted);
}
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; }
.footer__social svg { width: 18px; height: 18px; }

.form { display: grid; gap: 18px; }
.form__col { display: flex; flex-direction: column; gap: 18px; }

.field { position: relative; display: block; }
.field span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .3s;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;                   /* evita lo zoom automatico su iOS */
  resize: none;
  transition: border-color .3s;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.field:focus-within span { color: var(--accent); }
.field--area { flex: 1; }

.form .btn { width: 100%; }

.footer__bottom {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  margin-top: 50px;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.footer__bottom a:hover { color: var(--accent); }

/* ==========================================================
   PAGINA PRIVACY (privacy.html)
   ========================================================== */
.legal { padding: 110px 0 70px; }
.legal__inner { max-width: 820px; }
.legal__date { margin-top: 10px; color: var(--muted); font-size: 12px; }
.legal h2 {
  margin: 40px 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legal p { margin-bottom: 12px; }
.legal a { color: var(--accent); overflow-wrap: anywhere; }
.legal a:hover { text-decoration: underline; }
.legal b { font-weight: 700; }
.legal__list { margin-bottom: 12px; }
.legal__list li { position: relative; margin-bottom: 8px; padding-left: 18px; }
.legal__list li::before {
  content: '';
  position: absolute;
  left: 0; top: .75em;
  width: 6px; height: 2px;
  background: var(--accent);
}
.legal + .footer { padding-top: 0; }
.legal + .footer .footer__bottom { margin-top: 0; }

/* ==========================================================
   TABLET  (>= 600px)
   ========================================================== */
@media (min-width: 600px) {
  :root { --pad: 32px; }

  .car { flex-basis: calc((100% - 16px) / 2); }

  .transfer__grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .fleet__tools { flex-direction: row; align-items: center; justify-content: space-between; }

  .form { grid-template-columns: 1fr 1fr; gap: 28px; }

  .footer__grid { grid-template-columns: auto 1fr; align-items: start; }
  .form { grid-column: 1 / -1; }

  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ==========================================================
   DESKTOP  (>= 960px)
   ========================================================== */
@media (min-width: 960px) {
  body { font-size: 15px; }

  /* ----- header ----- */
  .header__inner { height: 84px; justify-content: flex-start; }

  .logo { margin-right: 0; }
  .logo img { height: 50px; }
  .logo.no-img::after { font-size: 16px; }

  .burger { display: none; }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: clamp(18px, 2.4vw, 40px);
    height: auto;
    margin-left: clamp(28px, 4vw, 56px);
    padding: 0;
    background: none;
    clip-path: none;
    visibility: visible;
  }
  .nav__link {
    padding: 10px 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    white-space: nowrap;
    opacity: 1;
    transform: none;
  }
  .nav__link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s var(--ease);
  }
  .nav__link:hover::after,
  .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
  .nav__link.is-active { color: var(--text); }
  .nav__social { display: none; }

  .js .nav { opacity: 0; }
  .js .is-loaded .nav { opacity: 1; transition: opacity .8s .4s; }

  .header__phone { height: 40px; margin-left: auto; padding: 0 18px; font-size: 11px; }

  /* ----- hero ----- */
  .hero {
    display: flex;
    align-items: center;
    min-height: min(100vh, 780px);
    padding: 150px 0 90px;
  }

  .hero__media {
    position: absolute;
    top: 84px;
    right: max(0px, calc((100vw - var(--max)) / 2));
    width: min(62vw, 730px);
    height: calc(100% - 134px);
    min-height: 0;
    max-height: none;
    margin: 0;
  }
  .hero__media::after {
    background:
      linear-gradient(to right, rgba(244,247,250,.92) 0%, rgba(244,247,250,.6) 22%, transparent 50%);
  }

  .hero__controls { top: auto; right: 0; bottom: 0; }

  .hero__social {
    position: absolute;
    left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad) + 14px));
    top: 54%;
    z-index: 3;                 /* sopra .hero__content, che altrimenti copre le icone e blocca i clic */
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--muted);
    translate: 0 -50%;
  }
  .hero__social a { display: grid; place-items: center; width: 44px; height: 44px; transition: color .3s, transform .3s var(--ease); }
  .hero__social a:hover { color: var(--accent); transform: translateX(4px); }
  .hero__social svg { width: 17px; height: 17px; }

  .hero__content {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad) 0 calc(var(--pad) + 140px);
  }
  .hero__eyebrow { margin-bottom: 18px; }
  .hero__title { font-size: clamp(2.4rem, 4.3vw, 3.6rem); }
  .hero__lead { max-width: 34ch; margin-top: 30px; font-size: 13.5px; }
  .hero__cta { margin-top: 40px; }

  /* ----- transfer ----- */
  .transfer { padding: 84px 0 76px; }
  .transfer .container,
  .services .container { padding-left: calc(var(--pad) + 140px); }

  .transfer__grid { grid-template-columns: repeat(4, 1fr); column-gap: 0; margin-top: 50px; }
  .place {
    flex-direction: column;
    gap: 18px;
    padding: 30px 24px 6px;
    border-bottom: 0;
    border-left: 1px solid rgba(255, 255, 255, .2);
  }
  .place:first-child { padding-left: 0; border-left: 0; }
  .place h3 { font-size: 13px; }
  .place p { font-size: 12px; }

  /* ----- servizi ----- */
  .services { padding: 100px 0 110px; }
  .section-head p { font-size: 13px; }
  .services__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
  .service { padding: 34px 24px 38px; }
  .service h3 { margin-top: 28px; }
  .services__cta { margin-top: 44px; }

  /* ----- flotta ----- */
  .fleet { padding: 60px 0 120px; }
  .fleet .container { padding-left: calc(var(--pad) + 140px); padding-right: calc(var(--pad) + 60px); }

  .fleet__head { flex-direction: row; align-items: center; justify-content: space-between; }
  .fleet__tools { gap: 34px; }
  .filters { margin-left: 0; }

  .fleet__track { gap: 40px; margin: 90px 0 0; padding: 0; scroll-padding: 0; }
  .car { flex-basis: calc((100% - 80px) / 3); }
  /* con uno o due veicoli le schede sono più grandi */
  .fleet__track[data-count="1"] .car,
  .fleet__track[data-count="2"] .car { flex-basis: calc((100% - 40px) / 2); }
  .car__name { font-size: 15px; }
  .car__desc { font-size: 12px; }

  .pager { margin-top: 56px; }
  .pager__bar { width: 130px; }

  /* ----- chi siamo ----- */
  .about { padding: 20px 0 130px; }

  .about__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px;
    row-gap: 0;
  }

  .about__main { grid-column: 1 / 8; grid-row: 1; margin: 0; padding: 0; }
  .about__photo { aspect-ratio: 16 / 9; }

  .about__tag {
    top: 22%;
    right: -120px;
    bottom: auto;
    width: 240px;
    padding: 38px 30px 34px 36px;
  }
  .about__tag h3 { font-size: 15px; margin-bottom: 22px; }

  .about__side {
    grid-column: 8 / 13;
    grid-row: 2;
    margin: -70px 0 0;
    aspect-ratio: 5 / 4;
  }

  .about__text {
    grid-column: 2 / 8;
    grid-row: 2;
    padding: 70px 40px 0 44px;
  }
  .about__text p { margin-top: 26px; font-size: 13px; }
  .checks { margin-top: 40px; gap: 18px 24px; }
  .checks li { font-size: 10px; }
  .about__cta { margin-top: 40px; }

  /* ----- footer ----- */
  .footer { padding-top: 110px; }
  .ghost--footer { top: 4%; }

  .footer__grid {
    grid-template-columns: auto 1fr 1.9fr;
    gap: 60px;
    padding-left: calc(var(--pad) + 140px);
  }
  .form { grid-column: auto; gap: 40px; }
  .form .btn { align-self: flex-end; width: 100%; }

  .footer__bottom { margin-top: 90px; }
}

/* ==========================================================
   ACCESSIBILITÀ: movimento ridotto
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .hero__slide img, .about__photo img, .about__side img { transform: none; }
}
