/* ── Font Ayvens: Chillax (display/titoli) ──────────────── */
@font-face {
  font-family: 'Chillax';
  src: url('../fonts/chillax/Chillax-Extralight.woff2') format('woff2'),
       url('../fonts/chillax/Chillax-Extralight.woff') format('woff'),
       url('../fonts/chillax/Chillax-Extralight.ttf') format('truetype');
  font-weight: 200;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Chillax';
  src: url('../fonts/chillax/Chillax-Light.woff2') format('woff2'),
       url('../fonts/chillax/Chillax-Light.woff') format('woff'),
       url('../fonts/chillax/Chillax-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Chillax';
  src: url('../fonts/chillax/Chillax-Regular.woff2') format('woff2'),
       url('../fonts/chillax/Chillax-Regular.woff') format('woff'),
       url('../fonts/chillax/Chillax-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Chillax';
  src: url('../fonts/chillax/Chillax-Medium.woff2') format('woff2'),
       url('../fonts/chillax/Chillax-Medium.woff') format('woff'),
       url('../fonts/chillax/Chillax-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Chillax';
  src: url('../fonts/chillax/Chillax-Semibold.woff2') format('woff2'),
       url('../fonts/chillax/Chillax-Semibold.woff') format('woff'),
       url('../fonts/chillax/Chillax-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Chillax';
  src: url('../fonts/chillax/Chillax-Bold.woff2') format('woff2'),
       url('../fonts/chillax/Chillax-Bold.woff') format('woff'),
       url('../fonts/chillax/Chillax-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

/* ── Font Ayvens: Source Sans Pro (body/UI) ─────────────── */
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/source-sans-pro/SourceSansPro-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/source-sans-pro/SourceSansPro-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/source-sans-pro/SourceSansPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/source-sans-pro/SourceSansPro-Italic.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/source-sans-pro/SourceSansPro-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/source-sans-pro/SourceSansPro-SemiboldItalic.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/source-sans-pro/SourceSansPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/source-sans-pro/SourceSansPro-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
  font-style: italic;
}

/* ── Variabili e reset ─────────────────────────────────── */

:root {
  /* Palette Ayvens */
  --turquoise: #73D2D2;        /* Sustainable Turquoise */
  --turquoise-dark: #52BDBD;   /* Turquoise scuro per hover */
  --turquoise-light: #E3F8F8;  /* Turquoise chiarissimo per sfondi */
  --serene-blue: #0F3549;      /* Serene Blue */
  --yellow: #FFDC46;           /* Optimistic Yellow */

  /* Mapping funzionale */
  --primary: #73D2D2;
  --primary-dark: #52BDBD;
  --primary-light: #E3F8F8;
  --navy: #0F3549;
  --navy-light: #174a63;
  --navy-mid: #123f58;
  --accent: #FFDC46;
  --green: #16a34a;
  --text: #0F3549;
  --text-muted: #4a6070;
  --text-light: #7a9aac;
  --bg: #ffffff;
  --bg-alt: #f4fafa;
  --bg-dark: #e8f5f5;
  --border: #c8e8e8;
  --border-light: #e3f8f8;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(15,53,73,.06);
  --shadow: 0 4px 24px rgba(15,53,73,.08);
  --shadow-md: 0 8px 32px rgba(15,53,73,.10);
  --shadow-lg: 0 20px 60px rgba(15,53,73,.13);
  --shadow-primary: 0 8px 32px rgba(115,210,210,.35);
  --transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.5s cubic-bezier(0.4,0,0.2,1);
  --font: 'Source Sans Pro', system-ui, -apple-system, sans-serif;
  --font-display: 'Chillax', system-ui, -apple-system, sans-serif;
  --max-w: 1280px;
  --topbar-h: 70px;
  --navbar-h: 62px;
}
@media (max-width: 1023px) {
  :root { --topbar-h: 60px; --navbar-h: 58px; }
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* Chillax per tutti i titoli (brand Ayvens) */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

/* ── Utility ───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) { .container { padding: 0 40px; } }

.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
@media (max-width: 768px) { .section { padding: 56px 0; } .section-sm { padding: 40px 0; } }

.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Bottoni ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: 0 12px 40px rgba(15,53,73,.4); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--turquoise); color: var(--navy); background: var(--turquoise-light); }

.btn-ghost { color: var(--navy); }
.btn-ghost:hover { background: var(--turquoise-light); border-radius: var(--radius); }

.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: .8rem; }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,211,102,.3);
}
.btn-whatsapp:hover { background: #1ebe59; transform: translateY(-1px); }

/* ── Topbar logo ────────────────────────────────────────── */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  height: var(--topbar-h);
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1024px) { .topbar-inner { padding: 0 40px; } }

.topbar-ayvens-logo {
  height: 32px;
  width: auto;
  display: block;
  opacity: .85;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  gap: 1px;
  text-decoration: none;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--navy);
  line-height: 1.1;
}
.nav-logo-accent { color: var(--turquoise-dark); }
.nav-logo-tag {
  font-family: var(--font);
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Navbar ────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: var(--topbar-h); left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  padding: 0;
}
/* Mantenuto per compatibilità JS — entrambi gli stati restano navy */
#navbar.nav-transparent { background: var(--navy); }
#navbar.nav-solid       { background: var(--navy); box-shadow: 0 2px 16px rgba(0,0,0,.25); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}
@media (min-width: 1024px) { .nav-inner { padding: 0 40px; justify-content: center; } }

/* Nav links — testo semplice con separatore | */
.nav-links {
  display: none;
  align-items: center;
  list-style: none;
  margin-left: 0;
  gap: 0;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links li { display: flex; align-items: center; }

/* Separatore | tra i link */
.nav-links li + li::before {
  content: '|';
  color: rgba(255,255,255,.25);
  font-size: .85rem;
  padding: 0 4px;
  pointer-events: none;
  user-select: none;
}

.nav-links a {
  padding: 6px 14px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,.75);
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }

/* Ultimi 2 link in turquoise (Contatti, Collabora) */
.nav-links li.nav-accent a { color: var(--turquoise); }
.nav-links li.nav-accent a:hover { color: var(--turquoise-dark); }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
@media (min-width: 1024px) { .nav-hamburger { display: none; } }

.nav-hamburger span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: calc(var(--topbar-h) + var(--navbar-h)); left: 0; right: 0;
  background: var(--navy-mid);
  padding: 16px 24px 24px;
  z-index: 999;
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile ul li a {
  display: block;
  padding: 13px 0;
  font-size: .95rem;
  font-weight: 400;
  color: rgba(255,255,255,.75);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s;
}
.nav-mobile ul li:last-child a { border-bottom: none; }
.nav-mobile ul li a:hover,
.nav-mobile ul li a.active { color: #fff; }
.nav-mobile .nav-mobile-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.nav-mobile .btn { justify-content: center; }

/* ── Hero Slider ──────────────────────────────────────── */
.hero {
  position: relative;
  height: min(680px, 100svh);
  min-height: 520px;
  overflow: hidden;
  background: var(--navy);
}

.slider-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: none;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none; /* slide inattive non intercettano i click */
  transition: opacity 0.9s ease;
}
.slide.active { opacity: 1; pointer-events: auto; }

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover; /* default; sovrascrivibile con classe fit-contain */
  background-position: center;
  transform: scale(1.04);
  transition: transform 6s ease;
}
.slide-bg.fit-contain {
  background-size: contain;
  background-repeat: no-repeat;
}
.slide.active .slide-bg { transform: scale(1); }

/* Overlay rimosso: visibilità immagine piena, testo leggibile con text-shadow */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none; /* non intercetta click sui link CTA */
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center; /* default: centro; override via data-pos */
  padding: 0 24px;
}
@media (min-width: 1024px) { .slide-content { padding: 0 40px; } }

.slide-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding-top: calc(var(--topbar-h) + var(--navbar-h));
}

/* ── Posizionamento contenuto (data-pos) ───────────────── */
.slide[data-pos="sx"]     .slide-inner   { margin-left: 0; margin-right: auto; max-width: 640px; }
.slide[data-pos="dx"]     .slide-inner   { margin-left: auto; margin-right: 0; max-width: 640px; }
.slide[data-pos="centro"] .slide-inner   { margin: 0 auto; text-align: center; }
.slide[data-pos="centro"] .slide-actions { justify-content: center; }

/* ── Colore accento (data-color) ───────────────────────── */
/* turquoise — default */
/* yellow */
.slide[data-color="yellow"] .slide-tag {
  background: rgba(255,220,70,.15); border-color: rgba(255,220,70,.5); color: #FFDC46;
}
.slide[data-color="yellow"] .btn-primary {
  background: #FFDC46; color: #0F3549;
  box-shadow: 0 8px 30px rgba(255,220,70,.4);
}
.slide[data-color="yellow"] .btn-primary:hover { background: #f5d200; }
.slide[data-color="yellow"] .btn-outline  { border-color: rgba(255,220,70,.6); color: #FFDC46; }
.slide[data-color="yellow"] .btn-outline:hover { background: rgba(255,220,70,.12); border-color: #FFDC46; }
/* navy */
.slide[data-color="navy"] .slide-tag {
  background: rgba(15,53,73,.35); border-color: rgba(15,53,73,.7); color: #fff;
}
.slide[data-color="navy"] .btn-primary { background: #0F3549; }
/* white */
.slide[data-color="white"] .slide-tag {
  background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); color: #fff;
}
.slide[data-color="white"] .btn-primary {
  background: #fff; color: #0F3549;
  box-shadow: 0 8px 30px rgba(255,255,255,.25);
}
.slide[data-color="white"] .btn-primary:hover { background: rgba(255,255,255,.88); }
.slide[data-color="white"] .btn-outline  { border-color: rgba(255,255,255,.6); }

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(115,210,210,.2);
  border: 1px solid rgba(115,210,210,.5);
  color: var(--turquoise);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s .2s ease, transform .6s .2s ease;
}
.slide.active .slide-tag { opacity: 1; transform: translateY(0); }

.slide-title {
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  color: #fff;
  max-width: 680px;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s .35s ease, transform .6s .35s ease;
}
.slide.active .slide-title { opacity: 1; transform: translateY(0); }

.slide-sub {
  font-size: clamp(.9rem, 2vw, 1.1rem);
  color: rgba(255,255,255,.9);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s .5s ease, transform .6s .5s ease;
}
.slide.active .slide-sub { opacity: 1; transform: translateY(0); }

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s .65s ease, transform .6s .65s ease;
}
.slide.active .slide-actions { opacity: 1; transform: translateY(0); }

/* ── Slide veicolo ─────────────────────────────────────── */
.slide-veicolo .slide-bg {
  filter: brightness(.08) blur(0px);
  transform: scale(1);
}

.slide-overlay-veicolo {
  position: absolute;
  inset: 0;
  background: #ffffff;
  pointer-events: none;
}

/* Striscia gialla verticale sul bordo sinistro */
.slide-veicolo::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 8px;
  background: #FFD600;
  z-index: 2;
}

/* Allunga il .slide-content a tutta altezza per la foto */
.slide-veicolo .slide-content {
  align-items: stretch;
  padding: 0;
}

.slide-inner-veicolo {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 100%;
  margin: 0;
  width: 100%;
  padding-top: calc(var(--topbar-h) + var(--navbar-h));
}

.vslide-photo {
  flex: 0 0 55%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 24px 0 48px;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s .2s ease, transform .7s .2s ease;
  overflow: visible;
}
.slide-veicolo.active .vslide-photo { opacity: 1; transform: translateX(0); }
.vslide-photo img {
  width: 100%;
  height: calc(100svh - var(--topbar-h) - var(--navbar-h));
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.18));
}

.vslide-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 64px 48px 0;
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .7s .35s ease, transform .7s .35s ease;
}
.slide-veicolo.active .vslide-info { opacity: 1; transform: translateX(0); }

/* Linea gialla sopra la marca */
.vslide-info::before {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: #FFD600;
  border-radius: 2px;
  margin-bottom: 20px;
}

.vslide-marca {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-bottom: 6px;
}
.vslide-modello {
  font-size: clamp(.95rem, 1.6vw, 1.2rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.vslide-versione {
  font-weight: 400;
  font-size: .9em;
  color: #6b7f8a;
}
.vslide-modello { margin-bottom: 32px; }

.vslide-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.vslide-from {
  font-size: 1rem;
  color: #4a6070;
  font-weight: 500;
}
.vslide-amount {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 900;
  color: #FFD600;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0,0,0,.08);
}
.vslide-month {
  font-size: 1.1rem;
  color: #4a6070;
  font-weight: 500;
}
.vslide-terms {
  font-size: .8rem;
  color: #6b7f8a;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vslide-terms::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: #FFD600;
  border-radius: 1px;
}

/* Bottone slide veicolo */
.slide-veicolo .btn-primary {
  background: var(--navy);
  color: #fff;
  border: none;
}
.slide-veicolo .btn-primary:hover {
  background: #FFD600;
  color: var(--navy);
}

/* Mobile: stack verticale */
@media (max-width: 767px) {
  .slide-veicolo .slide-content { align-items: center; padding: 0 20px; }
  .slide-inner-veicolo {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: calc(var(--topbar-h) + var(--navbar-h) + 16px);
  }
  .vslide-photo {
    flex: 0 0 auto;
    width: 100%;
    padding: 0 16px;
    align-items: center;
  }
  .vslide-photo img {
    height: 200px;
    width: 100%;
  }
  .vslide-info {
    padding: 16px 0 32px;
    text-align: center;
    align-items: center;
  }
  .vslide-info::before { margin: 0 auto 16px; }
  .vslide-price { justify-content: center; }
  .vslide-terms { justify-content: center; }
  .slide-actions { justify-content: center; }
}

/* Slider controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  cursor: pointer;
}
.slider-arrow:hover { background: rgba(255,255,255,.28); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }
.slider-arrow svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .slider-arrow { display: none; } }

/* Frecce adattate allo sfondo bianco della slide veicolo */
.slide-veicolo ~ .slider-arrow,
.hero:has(.slide-veicolo.active) .slider-arrow {
  background: rgba(15,53,73,.1);
  border-color: rgba(15,53,73,.2);
  color: var(--navy);
}
.hero:has(.slide-veicolo.active) .slider-arrow:hover {
  background: #FFD600;
  border-color: #FFD600;
  color: var(--navy);
}

.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active { width: 28px; background: #fff; }

/* Scroll indicator */
.slider-scroll {
  position: absolute;
  bottom: 28px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.5);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.slider-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollLine 1.8s ease infinite;
}
@keyframes scrollLine {
  0%,100% { opacity: .3; transform: scaleY(.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}
@media (max-width: 768px) { .slider-scroll { display: none; } }

/* ── Stats bar ─────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-item {
  background: var(--navy);
  padding: 20px 16px;
  text-align: center;
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-num span { color: var(--turquoise); }
.stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Card veicolo ──────────────────────────────────────── */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .vehicle-grid { grid-template-columns: 1fr; }
}

.vehicle-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--turquoise);
}

.vehicle-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vehicle-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .4s ease;
  padding: 8px;
}
.vehicle-card:hover .vehicle-card-img img { transform: scale(1.05); }

.badge-offerta {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--navy);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-fast {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--green);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-neopatentati {
  position: absolute;
  top: 44px; right: 12px;
  background: #7b1fa2;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
/* Etichette personalizzate sovrapposte sull'immagine card */
.badge-etichetta-sx,
.badge-etichetta-dx {
  position: absolute;
  bottom: 10px;
  background: var(--navy);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 3px 10px;
  border-radius: 4px;
  max-width: 48%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge-etichetta-sx { left: 10px; }
.badge-etichetta-dx { right: 10px; }
/* Tag evidenziati (tag_principale / tag_secondario) */
.tag-primary {
  background: var(--turquoise-light);
  border: 1px solid var(--turquoise);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.tag-secondary {
  background: #fff3e0;
  border: 1px solid #ffb74d;
  color: #e65100;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.vehicle-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vehicle-card-provider {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
  margin-bottom: 4px;
}
.vehicle-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 4px;
}
.vehicle-card-sub {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vehicle-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .72rem;
  padding: 3px 8px;
  border-radius: 6px;
}
.vehicle-card-price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.price-from { font-size: .75rem; color: var(--text-muted); }
.price-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.price-unit { font-size: .75rem; color: var(--text-muted); font-weight: 400; }
.vehicle-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--turquoise-light);
  color: var(--navy);
  border-radius: 50%;
  transition: var(--transition);
  flex-shrink: 0;
}
.vehicle-card:hover .vehicle-card-cta {
  background: var(--turquoise);
  color: var(--navy);
}
.vehicle-card-cta svg { width: 16px; height: 16px; }


/* ── Choices.js override ───────────────────────────────── */
.choices { width: 100%; margin: 0; }
.choices__inner {
  min-height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 0 36px 0 12px;
  font-size: .9rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(115,210,210,.18);
}
.choices__list--single { padding: 0; display: flex; align-items: center; height: 100%; }
.choices__list--single .choices__item { font-size: .9rem; font-weight: 600; color: var(--navy); font-family: inherit; line-height: 1; }
.choices[data-type*=select-one]::after {
  border-color: #666 transparent transparent;
  right: 14px;
}
.choices[data-type*=select-one].is-open::after {
  border-color: transparent transparent var(--turquoise);
}
.choices__list--dropdown,
.choices__list[aria-expanded] {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  margin-top: 4px;
  font-size: .875rem;
  overflow: hidden;
}
.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
  padding: 9px 14px;
  font-size: .875rem;
  font-family: inherit;
  color: var(--text);
}
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background: var(--turquoise-light);
  color: var(--navy);
}
.choices__input {
  font-size: .875rem;
  background: transparent;
  margin: 0;
  padding: 4px 0;
}
.choices__list--dropdown .choices__input,
.choices__list[aria-expanded] .choices__input {
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  font-size: .875rem;
}

/* ── Filtri ────────────────────────────────────────────── */
.filters-bar {
  background: var(--navy);
  border-radius: 20px;
  padding: 24px 28px 28px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 36px;
  position: relative;
}
.filters-bar-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.filters-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-width: 120px;
}
.filter-group label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--turquoise);
}
.filter-input,
.filter-select {
  width: 100%;
  height: 48px;
  border: 1.5px solid rgba(115,210,210,.25);
  border-radius: 10px;
  padding: 0 14px;
  font-size: .9rem;
  font-family: inherit;
  color: #fff;
  background: rgba(255,255,255,.08);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.filter-input::placeholder { color: rgba(255,255,255,.35); }
.filter-select option { background: var(--navy); color: #fff; }
.filter-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2373D2D2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.filter-input {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2373D2D2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.filter-input:focus,
.filter-select:focus {
  border-color: var(--turquoise);
  background: rgba(115,210,210,.12);
  box-shadow: 0 0 0 3px rgba(115,210,210,.2);
}
.filters-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}
.filters-bar-actions .btn { height: 48px; }
.filters-bar-actions .btn-primary {
  background: var(--turquoise);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(115,210,210,.35);
}
.filters-bar-actions .btn-primary:hover {
  background: var(--turquoise-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(115,210,210,.45);
}
.filters-bar-actions .btn-secondary {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.15);
}
.filters-bar-actions .btn-secondary:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.filter-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* ── Perché NLT ────────────────────────────────────────── */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.benefit-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.benefit-icon {
  width: 52px; height: 52px;
  background: var(--turquoise-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.benefit-icon svg { width: 24px; height: 24px; color: var(--turquoise-dark); }
.benefit-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.benefit-text { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* ── Servizi ───────────────────────────────────────────── */
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.servizio-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 18px 16px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.servizio-item:hover { border-color: var(--turquoise); box-shadow: var(--shadow-sm); }
.servizio-icon {
  width: 40px; height: 40px;
  background: var(--turquoise-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.servizio-icon svg { width: 18px; height: 18px; color: var(--turquoise-dark); }
.servizio-name { font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.servizio-desc { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }

/* ── CTA Banner ────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #0d3348 100%);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(115,210,210,.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.7); font-size: 1rem; margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 768px) { .cta-banner { padding: 40px 24px; } }
@media (max-width: 768px) {
  .filters-bar-grid { grid-template-columns: 1fr 1fr; }
  .filters-bar-row  { flex-direction: column; align-items: stretch; }
  .filters-bar-actions { margin-left: 0; justify-content: flex-end; }
  .filter-group { max-width: none !important; }
}
@media (max-width: 480px) {
  .filters-bar-grid { grid-template-columns: 1fr; }
}

/* ── Scheda veicolo ────────────────────────────────────── */
.scheda-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 1024px) { .scheda-grid { grid-template-columns: 1fr 400px; align-items: start; } }

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 16/9;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumb {
  flex-shrink: 0;
  width: 76px; height: 54px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--turquoise); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.scheda-sticky {
  position: sticky;
  top: 88px;
}
.scheda-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.scheda-card-head {
  background: var(--navy);
  padding: 22px 24px;
  color: #fff;
  border-top: 4px solid var(--turquoise);
}
.scheda-card-head .brand { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.scheda-card-head .model { font-size: 1.4rem; font-weight: 800; line-height: 1.2; }
.scheda-card-head .version { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: 4px; }

.configuratore { padding: 20px 24px; }
.config-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.config-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}
.config-pill {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-alt);
}
.config-pill:hover { border-color: var(--turquoise); color: var(--navy); background: var(--turquoise-light); }
.config-pill.active { border-color: var(--turquoise); background: var(--turquoise); color: var(--navy); font-weight: 600; }
.config-pill.unavailable { opacity: .3; cursor: not-allowed; pointer-events: none; }

.price-display {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin: 16px 0;
  border: 1px solid var(--border);
}
.price-display .from { font-size: .8rem; color: var(--text-muted); margin-bottom: 2px; }
.price-display .amount { font-size: 2.4rem; font-weight: 900; color: var(--navy); line-height: 1; }
.price-display .amount sup { font-size: 1rem; vertical-align: super; }
.price-display .month { font-size: .9rem; color: var(--text-muted); }
.price-display .anticipo { font-size: .78rem; color: var(--text-muted); margin-top: 6px; }

.scheda-actions { padding: 0 24px 20px; display: flex; flex-direction: column; gap: 8px; }
.scheda-share { padding: 12px 24px 20px; border-top: 1px solid var(--border-light); }
.share-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 10px; }
.share-btns { display: flex; gap: 10px; }
.share-btn {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  border: none;
  color: #fff;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.share-btn.whatsapp { background: #25d366; color: #fff; }
.share-btn.facebook { background: #1877f2; color: #fff; }
.share-btn.copy { background: var(--navy); color: #fff; }
.share-btn svg { width: 22px; height: 22px; }
.share-btn.whatsapp svg,
.share-btn.facebook svg { fill: #fff; }
.share-btn.copy svg { stroke: #fff; fill: none; }

/* ── Specs grid ────────────────────────────────────────── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .specs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .specs-grid { grid-template-columns: repeat(4, 1fr); } }

.spec-item {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid var(--border-light);
}
.spec-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); margin-bottom: 4px; }
.spec-val { font-size: .95rem; font-weight: 700; color: var(--navy); }

/* ── Tabella prezzi ────────────────────────────────────── */
.price-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.price-table thead th {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 10px 14px;
  text-align: left;
  border: none;
}
.price-table tbody tr { border-bottom: 1px solid var(--border-light); transition: var(--transition); }
.price-table tbody tr:hover { background: var(--turquoise-light); cursor: pointer; }
.price-table tbody tr.selected { background: var(--turquoise-light); font-weight: 600; color: var(--navy); }
.price-table tbody td { padding: 9px 14px; border: none; }

/* ── Form ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label span { color: var(--turquoise-dark); }
.form-control {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: .9rem;
  color: var(--text);
  background: var(--bg-alt);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(115,210,210,.2); background: #fff; }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; column-gap: 16px; } }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.form-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--turquoise-dark); }
.form-check label { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.form-check label a { color: var(--navy); }
.form-success {
  display: none;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: #15803d;
}
.form-success.show { display: block; }
.form-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 12px 16px;
  color: #dc2626;
  font-size: .85rem;
  margin-bottom: 16px;
  display: none;
}
.form-error.show { display: block; }

/* Feedback AJAX (usato da initForms via div#*-feedback) */
.form-feedback {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.form-feedback--success {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.form-feedback--error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

/* ── Page hero (inner pages) ───────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  padding: calc(var(--topbar-h) + var(--navbar-h) + 48px) 0 60px;
  color: #fff;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  justify-content: center;
  margin-top: 20px;
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ── Team / Azienda ────────────────────────────────────── */
.azienda-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) { .azienda-grid { grid-template-columns: 1fr 1fr; } }
.azienda-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}
.azienda-img img { width: 100%; height: 100%; object-fit: cover; }
.azienda-text h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.azienda-text p { color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.checklist { list-style: none; margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text); }
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--turquoise-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230F3549'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 1px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.value-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.value-card:hover { border-color: var(--turquoise); box-shadow: var(--shadow-sm); }
.value-num { font-size: 2rem; font-weight: 900; color: var(--turquoise-dark); line-height: 1; margin-bottom: 6px; }
.value-lbl { font-size: .85rem; font-weight: 600; color: var(--navy); }

/* ── Collabora section ─────────────────────────────────── */
.collabora-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: #fff;
  border-top: 4px solid var(--turquoise);
}
.collabora-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.collabora-card p { color: rgba(255,255,255,.7); line-height: 1.7; }
@media (max-width: 640px) { .collabora-card { padding: 28px 20px; } }

/* ── Cookie banner ─────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(15,30,60,.97);
  backdrop-filter: blur(12px);
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform .4s ease;
  border-top: 1px solid rgba(255,255,255,.08);
}
#cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 260px; }
.cookie-text p { font-size: .85rem; color: rgba(255,255,255,.75); line-height: 1.6; margin: 0; }
.cookie-text a { color: var(--turquoise); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-accept {
  background: var(--turquoise);
  color: var(--navy);
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  transition: var(--transition);
}
.cookie-accept:hover { background: var(--turquoise-dark); }
.cookie-reject {
  background: transparent;
  color: rgba(255,255,255,.6);
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: .85rem;
  border: 1px solid rgba(255,255,255,.2);
  transition: var(--transition);
}
.cookie-reject:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* ── Footer ────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
}
.footer-top {
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand { }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-icon svg { width: 18px; height: 18px; color: #fff; }
.footer-logo-name { font-size: 1rem; font-weight: 800; color: #fff; }
.footer-desc { font-size: .85rem; line-height: 1.7; margin-bottom: 20px; color: rgba(255,255,255,.5); }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  transition: var(--transition);
}
.footer-social:hover { background: var(--turquoise); border-color: var(--turquoise); color: var(--navy); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.9); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: .82rem; }
.footer-contact-item svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--turquoise); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { color: rgba(255,255,255,.35); transition: var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 900;
  width: 54px; height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: var(--transition);
  color: #fff;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.5); }
.whatsapp-fab svg { width: 26px; height: 26px; }

/* ── Scroll animation ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── Loader ────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Paginazione ───────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; }
.page-btn {
  min-width: 38px; height: 38px;
  padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  background: var(--bg);
}
.page-btn:hover { border-color: var(--turquoise); color: var(--navy); background: var(--turquoise-light); }
.page-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.page-btn[disabled] { opacity: .35; pointer-events: none; }

/* ── Responsive tweaks ─────────────────────────────────── */
@media (max-width: 640px) {
  .scheda-grid { grid-template-columns: 1fr; }
  .scheda-sticky { position: static; }
  .cta-banner { padding: 36px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
