/* =============================================
   DriveSolutions® — Shared Stylesheet
   Design: Premium responsive, parallax, SEO
   Brand: Navy blue #0a1f5c + Orange #e8520a
   ============================================= */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --primary:       #0a1f5c;
  --primary-dark:  #060e36;
  --primary-mid:   #162d78;
  --accent:        #e8520a;
  --accent-light:  #ff6b1a;
  --accent-dark:   #c24008;
  --white:         #ffffff;
  --light:         #f4f7fb;
  --grey:          #e8edf5;
  --grey-dark:     #c5cfe0;
  --text:          #1a1a2e;
  --text-muted:    #5a6a8a;
  --text-light:    #8a9ab5;
  --shadow-sm:     0 2px 8px rgba(10,31,92,0.08);
  --shadow-md:     0 8px 24px rgba(10,31,92,0.12);
  --shadow-lg:     0 20px 60px rgba(10,31,92,0.18);
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    0.3s cubic-bezier(0.4,0,0.2,1);
  --nav-h:         80px;
  --topbar-h:      36px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-muted); line-height: 1.7; }

/* ── Container ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* ── Section Spacing ── */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-title {
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 52px;
}
.section-label {
  display: inline-block;
  background: rgba(232,82,10,0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: var(--topbar-h); left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: var(--primary-dark);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.navbar.page-nav {
  background: var(--primary-dark);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}
.nav-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}
.nav-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--accent); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a,
.nav-menu > li > button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > button:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.nav-menu > li > a.active {
  color: var(--accent-light);
}
.nav-chevron {
  width: 14px; height: 14px;
  transition: transform var(--transition);
}
.nav-menu > li:hover .nav-chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  /* Il ritardo vale SOLO in chiusura: aprire dev'essere immediato,
     chiudere no. Senza questi 0,35 s basta uscire di un pixel dalla
     voce — o passare sopra la voce accanto mentre si scende — e il
     menù sparisce prima che si riesca a cliccare. */
  transition: opacity var(--transition), transform var(--transition), visibility 0s linear .35s;
  transition-delay: .35s;
}
/* Il menù si apre 8px più in basso della voce: quello spazio vuoto è
   fuori dall'area sensibile, e attraversandolo il mouse "esce" dalla
   voce chiudendo tutto. Questo ponte invisibile lo copre. */
.nav-menu > li > .nav-dropdown::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -10px;
  height: 10px;
}
.nav-menu > li:hover .nav-dropdown,
.nav-menu > li:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
  /* In apertura nessun ritardo: il menù compare subito. */
  transition-delay: 0s;
  transition: opacity var(--transition), transform var(--transition), visibility 0s;
}
.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown a:hover {
  background: var(--light);
  color: var(--primary);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Admin button in navbar */
.btn-admin-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.15);
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.btn-admin-nav:hover {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.btn-admin-nav svg { display: block; }
.nav-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
}
.nav-tel svg { width: 14px; height: 14px; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: calc(var(--nav-h) + var(--topbar-h));
  left: 0; right: 0;
  background: var(--primary-dark);
  padding: 16px 24px 24px;
  z-index: 999;
  max-height: calc(100vh - var(--nav-h) - var(--topbar-h));
  overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile.open { display: block; }
.nav-mobile-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile-item > a,
.nav-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
  text-align: left;
}
.nav-mobile-sub {
  display: none;
  padding-bottom: 8px;
}
.nav-mobile-sub.open { display: block; }
.nav-mobile-sub a {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  border-radius: 6px;
}
.nav-mobile-sub a:hover { color: var(--accent-light); }
.nav-mobile-cta {
  margin-top: 16px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232,82,10,0.3);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,82,10,0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-dark {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-dark:hover {
  background: var(--primary-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-ghost:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }
.btn-lg { padding: 18px 36px; font-size: 1rem; }
.btn-icon { padding: 12px; border-radius: 10px; }

/* ============================================
   HERO — Homepage (Video + Parallax)
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  max-height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background: var(--primary-dark); /* fallback scuro se nessuna img */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,14,54,0.85) 0%,
    rgba(10,31,92,0.6) 50%,
    rgba(232,82,10,0.15) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  /* Evita overlap con topbar+navbar fissi */
  padding-top: calc(var(--nav-h) + var(--topbar-h) + 8px);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,82,10,0.2);
  border: 1px solid rgba(232,82,10,0.4);
  color: #ffaa80;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-title {
  color: var(--white);
  margin-bottom: 20px;
  max-width: 700px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: normal;
  color: var(--accent-light);
}
.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-num em {
  font-style: normal;
  color: var(--accent-light);
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-content { padding-bottom: 76px; }  /* spazio riservato all'indicatore "Scorri" */
.hero-scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }

/* ============================================
   HERO — Inner Pages
   ============================================ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + var(--topbar-h) + 60px) 0 80px;
  background: var(--primary-dark);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--page-hero-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.18;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(6,14,54,0.92) 0%, rgba(10,31,92,0.7) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  max-width: 580px;
  margin-bottom: 28px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.82rem;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.breadcrumb span { color: rgba(255,255,255,0.3); }
.breadcrumb strong { color: rgba(255,255,255,0.85); font-weight: 500; }

/* ============================================
   OFFER CARDS
   ============================================ */
.offers-section { background: var(--light); }
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.offer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.offer-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 1;
}
.offer-card-badge.privati  { background: #2563eb; }
.offer-card-badge.aziende  { background: #059669; }
.offer-card-badge.promo    { background: var(--accent); }
.offer-card-img {
  background: linear-gradient(160deg, #f0f4ff 0%, #e8edf8 100%);
  padding: 20px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  overflow: hidden;
}
.offer-card-img img {
  max-height: 140px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.offer-card:hover .offer-card-img img { transform: scale(1.06); }
.offer-card-body { padding: 20px; }
.offer-card-make {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.offer-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.3;
}
.offer-card-specs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.offer-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.offer-spec svg { width: 13px; height: 13px; color: var(--accent); flex-shrink: 0; }
.offer-card-divider {
  height: 1px;
  background: var(--grey);
  margin-bottom: 16px;
}
.offer-card-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.offer-price-label {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 2px;
}
.offer-price-amount {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.offer-price-amount em {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.offer-anticipo {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ============================================
   SOLUTIONS CARDS
   ============================================ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.solution-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.solution-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.solution-card:hover::before { transform: scaleX(1); }
.solution-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.solution-icon.blue   { background: rgba(10,31,92,0.08); color: var(--primary); }
.solution-icon.orange { background: rgba(232,82,10,0.08); color: var(--accent); }
.solution-icon.green  { background: rgba(5,150,105,0.08); color: #059669; }
.solution-icon.purple { background: rgba(124,58,237,0.08); color: #7c3aed; }
.solution-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.solution-card p  { font-size: 0.88rem; margin-bottom: 20px; line-height: 1.6; }
.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}
.solution-link:hover { gap: 10px; }
.solution-link svg { width: 16px; height: 16px; }

/* ============================================
   PARALLAX BANNER
   ============================================ */
.parallax-banner {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  background: var(--primary-dark);
}
.parallax-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.25;
}
.parallax-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,14,54,0.9) 0%, rgba(232,82,10,0.2) 100%);
}
.parallax-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.parallax-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.parallax-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-section { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.service-item {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius);
  background: var(--light);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.service-item:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-color: var(--grey);
  transform: translateY(-3px);
}
.service-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 12px;
}
.service-item span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
  display: block;
}

/* ============================================
   SIMULATOR
   ============================================ */
.simulator-section { background: var(--light); }
.simulator-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.simulator-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  padding: 32px 40px;
  color: var(--white);
}
.simulator-header h2 { color: var(--white); margin-bottom: 6px; }
.simulator-header p  { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.simulator-body { padding: 40px; }
.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .sim-grid { grid-template-columns: 1fr; } }
.sim-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.sim-field input,
.sim-field select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--grey);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--light);
  transition: border-color var(--transition);
  appearance: none;
}
.sim-field input:focus,
.sim-field select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.sim-range input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--grey);
  outline: none;
  margin-top: 8px;
  border: none;
  padding: 0;
}
.sim-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(10,31,92,0.3);
}
.sim-range-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 6px;
}
.simulator-result {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.sim-result-label { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-bottom: 6px; }
.sim-result-price {
  color: var(--white);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}
.sim-result-price em {
  font-style: normal;
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.7;
}
.sim-result-note { color: rgba(255,255,255,0.5); font-size: 0.75rem; margin-top: 6px; }
.sim-result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sim-breakdown-item {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.82rem;
}
.sim-breakdown-item span:first-child { color: rgba(255,255,255,0.55); }
.sim-breakdown-item span:last-child  { color: rgba(255,255,255,0.9); font-weight: 600; }

/* ============================================
   LOCATIONS
   ============================================ */
.locations-section { background: var(--white); }
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.location-card {
  border: 1px solid var(--grey);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.location-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.location-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}
.location-badge {
  display: inline-block;
  background: rgba(232,82,10,0.1);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.location-card h3 { font-size: 1.1rem; margin-bottom: 14px; color: var(--primary); }
.location-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.location-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.location-row svg {
  width: 16px; height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.location-row a { color: var(--primary); font-weight: 500; }
.location-row a:hover { color: var(--accent); }

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  border: 1px solid var(--grey);
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 160px;
}
.filter-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.filter-field select,
.filter-field input {
  padding: 10px 14px;
  border: 2px solid var(--grey);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--light);
  transition: border-color var(--transition);
  appearance: none;
}
.filter-field select:focus,
.filter-field input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.filter-reset {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 2px solid var(--grey);
  background: transparent;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.filter-reset:hover { border-color: var(--primary); color: var(--primary); }
.filter-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 10px 0;
}
.filter-count strong { color: var(--primary); }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section { background: var(--light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { margin-bottom: 14px; }
.contact-info p  { margin-bottom: 28px; }
.contact-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey);
}
.contact-highlight-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(10,31,92,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-highlight-icon svg { width: 20px; height: 20px; color: var(--primary); }
.contact-highlight-text strong { display: block; font-size: 0.88rem; color: var(--primary); margin-bottom: 2px; }
.contact-highlight-text a,
.contact-highlight-text span { font-size: 0.82rem; color: var(--text-muted); }
.form-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-box h3 { margin-bottom: 6px; }
.form-box > p { margin-bottom: 28px; font-size: 0.9rem; }
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 16px;
  border: 2px solid var(--grey);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--light);
  transition: all var(--transition);
  appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(10,31,92,0.06);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-required { color: var(--accent); }
.form-privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.form-privacy label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.form-privacy input[type="checkbox"] {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
  padding: 0;
  border: none;
  background: none;
}
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}
.form-success-icon {
  width: 64px; height: 64px;
  background: rgba(5,150,105,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.form-success-icon svg { width: 32px; height: 32px; color: #059669; }

/* ============================================
   BENEFITS / VANTAGGI
   ============================================ */
.benefits-section { background: var(--primary-dark); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.benefit-item { text-align: center; }
.benefit-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.benefit-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* ============================================
   TABS
   ============================================ */
.tabs-nav {
  display: flex;
  gap: 4px;
  background: var(--light);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tab-btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}
.tab-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.tab-btn:hover:not(.active) { color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section { background: var(--light); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey);
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  color: #f59e0b;
  font-size: 1rem;
}
.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 2px;
}
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-section { background: var(--white); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
}
.step-card {
  text-align: center;
  padding: 36px 24px;
  position: relative;
}
.step-num {
  width: 52px; height: 52px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 20px;
}
.step-card h3 { margin-bottom: 10px; font-size: 1rem; }
.step-card p  { font-size: 0.85rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-brand img {
  height: 40px; width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand-name span { color: var(--accent); }
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.footer-contact-item svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.8); }
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-left { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom-right {
  display: flex;
  gap: 20px;
}
.footer-bottom-right a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-bottom-right a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  z-index: 1001;
  background: var(--primary);
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
}
.topbar-item svg { width: 13px; height: 13px; }
.topbar-item a { color: rgba(255,255,255,0.9); }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar-right a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.topbar-right a:hover { color: var(--white); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Animazioni SOLO se il JS è attivo (html.js impostato da inline script).
   Senza JS il contenuto è sempre visibile — mai pagina bianca. */
.animate-fade-up {
  opacity: 1;
  transform: none;
}
html.js .animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sezione con sfondo alternato */
.section-alt { background: var(--light); }

/* Griglie a 2 colonne → 1 colonna su mobile */
@media (max-width: 768px) {
  .two-col-grid { grid-template-columns: 1fr !important; }
}
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted  { color: var(--text-muted) !important; }
.bg-light    { background: var(--light); }
.bg-primary  { background: var(--primary-dark); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0 !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none; }

/* ── CTA Strip ── */
.cta-strip {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 60px 0;
}
.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-strip h2 { color: var(--white); margin-bottom: 8px; }
.cta-strip p  { color: rgba(255,255,255,0.8); }
.cta-strip .btn-outline:hover { background: rgba(255,255,255,0.2); }

/* ── Chips ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}
.chip-primary { background: rgba(10,31,92,0.08); color: var(--primary); }
.chip-accent  { background: rgba(232,82,10,0.1); color: var(--accent); }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--grey);
  margin: 0;
}

/* ── Loading skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--grey) 25%, var(--light) 50%, var(--grey) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Scroll to top ── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px; height: 46px;
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  z-index: 500;
  border: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.scroll-top:hover { background: var(--accent); transform: translateY(-3px); }
.scroll-top svg { width: 20px; height: 20px; }

/* ── Offer slider nav ── */
.slider-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grey-dark);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.slider-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root { --nav-h: 70px; }
  .nav-menu, .nav-tel { display: none; }
  .nav-hamburger { display: flex; flex-shrink: 0; }
  .nav-inner { gap: 12px; }
}
@media (max-width: 768px) {
  /* Su mobile: nascondi il bottone Preventivo dalla navbar
     (è già presente come CTA nel menu mobile) — evita overflow
     che spingeva l'hamburger fuori dallo schermo */
  .nav-actions .btn-primary { display: none; }
  .nav-actions { gap: 8px; }
  .section { padding: 64px 0; }
  .hero { max-height: 100svh; }
  /* Su mobile topbar è nascosta → solo nav-h */
  .hero-content { padding-top: calc(var(--nav-h) + 16px); padding-bottom: 0; }
  .hero-stats { gap: 24px; margin-top: 36px; padding-top: 24px; }
  .hero-stat-num { font-size: 1.6rem; }
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .simulator-body { padding: 24px; }
  .form-box { padding: 24px; }
  .filter-bar { padding: 16px; }
  .topbar { display: none; }
  .navbar { top: 0; }
  .nav-mobile { top: var(--nav-h); max-height: calc(100vh - var(--nav-h)); }
  .page-hero { padding: calc(var(--nav-h) + 60px) 0 70px; }
  .simulator-result { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .cta-strip-inner { text-align: center; justify-content: center; }
}

/* ══════════════════════════════════════════
   Tassonomia estesa offerte: allestimento + etichette
══════════════════════════════════════════ */
.offer-card-trim {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.offer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.offer-chip {
  display: inline-flex;
  align-items: center;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(232,82,10,.1);
  color: var(--accent);
  white-space: nowrap;
}
.offer-chip.green { background: rgba(5,150,105,.1);  color: #059669; }
.offer-chip.blue  { background: rgba(10,31,92,.08);  color: var(--primary); }

/* ══════════════════════════════════════════
   Foto veicoli su sfondo trasparente
   I PNG con alpha si integrano da soli. Per le foto vecchie
   (JPEG con riquadro bianco) mix-blend-mode fonde il bianco
   con lo sfondo chiaro della card, eliminando il rettangolo.
══════════════════════════════════════════ */
.offer-card-img img,
.trova-img img {            /* 02/10/2026: anche le tre proposte di «Trova la tua auto» in home */
  mix-blend-mode: multiply;
  background: transparent;
}
/* I PNG hanno già trasparenza reale: nessuna fusione, colori fedeli */
.offer-card-img img[src$=".png"],
.offer-card-img img[src*=".png?"],
.trova-img img[src$=".png"],
.trova-img img[src*=".png?"] {
  mix-blend-mode: normal;
}
/* Anteprime nel pannello admin: scacchiera per vedere la trasparenza */
.promo-item-img img,
#preview-home, #preview-privati, #preview-piva, #edit-modal-preview {
  background-image:
    linear-gradient(45deg, #eef1f6 25%, transparent 25%),
    linear-gradient(-45deg, #eef1f6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef1f6 75%),
    linear-gradient(-45deg, transparent 75%, #eef1f6 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0px;
}


/* ══════════════════════════════════════════
   Indicatore "Scorri": solo su desktop.
   Su tablet e telefono le statistiche vanno a capo e occupano
   il fondo dell'hero: l'indicatore si sovrapporrebbe.
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-scroll { display: none; }
  .hero-content { padding-bottom: 0; }
}
/* Schermi bassi (portatili 13\", finestre ridotte): stesso problema */
@media (max-height: 760px) {
  .hero-scroll { display: none; }
  .hero-content { padding-bottom: 0; }
}

/* ── Accesso area riservata nella topbar ───────────────────
   Il consulente che ha ricevuto un codice deve trovare la porta
   d'ingresso da qualsiasi pagina, senza cercarla dentro il sito. */
.topbar-accesso {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92) !important;
  font-weight: 600; white-space: nowrap;
  transition: background .18s, border-color .18s;
}
.topbar-accesso:hover {
  background: var(--accent); border-color: var(--accent); color: #fff !important;
}
.topbar-accesso svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Sotto i 640px la topbar è già stretta: restano solo telefono e accesso */
@media (max-width: 640px) {
  .topbar-right a:not(.topbar-accesso) { display: none; }
}

/* ── Tendina «Area riservata» nella barra in alto ─────────────
   Prima c'erano due porte scollegate: un link ai consulenti nella
   topbar e un'icona admin persa nella navbar. Il backoffice non
   aveva nessun ingresso dal sito. Ora è tutto sotto un pulsante. */
.accesso-menu { position: relative; }
.accesso-menu > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font: 600 inherit; font-size: 0.78rem; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: background .18s, border-color .18s;
}
.accesso-menu > button:hover,
.accesso-menu.aperto > button {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.accesso-menu > button svg { width: 12px; height: 12px; flex-shrink: 0; }
.accesso-menu > button .frecc { transition: transform .2s; }
.accesso-menu.aperto > button .frecc { transform: rotate(180deg); }

.accesso-tendina {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 200;
  background: var(--white); border-radius: 14px; width: 290px;
  box-shadow: 0 14px 44px rgba(10,31,92,0.24);
  border: 1px solid var(--grey);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  overflow: hidden;
}
.accesso-menu.aperto .accesso-tendina {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.accesso-tendina .voce {
  display: block; padding: 13px 17px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--grey);
}
.accesso-tendina .voce:last-child { border-bottom: none; }
.accesso-tendina .voce:hover { background: var(--light); }
.accesso-tendina .voce strong {
  display: block; color: var(--primary); font-size: 0.9rem; font-weight: 700;
  margin-bottom: 2px;
}
.accesso-tendina .voce span {
  display: block; color: var(--text-muted); font-size: 0.78rem; line-height: 1.5;
}
.accesso-tendina .intestazione {
  padding: 11px 17px 9px; background: var(--light);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-light);
  border-bottom: 1px solid var(--grey);
}
@media (max-width: 640px) {
  .accesso-tendina { width: 260px; right: -8px; }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITÀ (02/10/2026) — WCAG 2.2 livello AA
   ───────────────────────────────────────────────────────────────
   Un blocco solo, in fondo, che vale per tutte le pagine. Chi
   naviga col mouse e vede bene non nota quasi niente; serve a chi
   usa la tastiera, il lettore di schermo, lo zoom, o chi vede poco.

   COLORI: il contrasto minimo fra testo e sfondo è 4,5 (WCAG 1.4.3).
   L'arancione del marchio (#e8520a) arriva a 3,7 sul bianco: va bene
   per icone, bordi e sfondi senza scritte, che restano com'erano;
   per le SCRITTE piccole e i pulsanti con scritta bianca si usa
   l'arancione scuro #c24008 (5,2), che il sito ha già come
   --accent-dark. Valori calcolati il 02/10/2026.
═══════════════════════════════════════════════════════════════ */
:root {
  --text-light: #5c6b85;        /* era #8a9ab5 (2,8): ora 5,4 sul bianco, 4,6 sul grigio chiaro */
  --accent-testo: #c24008;      /* arancione per scritte e pulsanti */
  --accent-etichetta: #b03a06;  /* arancione per scritte su fondo arancio chiaro */
  --accent-marchio: #e8520a;    /* l'arancione vivo di sempre, per logo e decorazioni */
  /* L'arancione «di base» diventa quello scuro: le pagine lo usano
     come colore di scritte in più di 80 punti, e così ogni scritta
     arancione presente e futura è leggibile. Quello vivo torna qui
     sotto dove è solo decorazione. */
  --accent: #c24008;
}
/* Dove l'arancione è decorazione (o testo grande, a cui basta 3:1), resta vivo */
.nav-logo-text span,
.footer-brand-name span,
.offer-spec svg,
.location-row svg,
.footer-contact-item svg { color: var(--accent-marchio); }
.solution-icon.orange { color: var(--accent-marchio); }

/* Pulsanti e bollini con la scritta bianca su fondo arancione */
.btn-primary,
.offer-card-badge,
.offer-card-badge.promo { background: var(--accent-testo); }
.btn-primary:hover { background: #a83806; }
.offer-card-badge.aziende { background: #047857; }
.btn-admin-nav:hover,
.footer-social a:hover,
.topbar-accesso:hover,
.accesso-menu > button:hover,
.accesso-menu.aperto > button { background: var(--accent-testo); border-color: var(--accent-testo); }
html #ds-cookie-bar .cb-accept { background: var(--accent-testo); }

/* Scritte arancioni */
.solution-link,
.form-required,
.text-accent { color: var(--accent-testo) !important; }
.section-label,
.location-badge,
.chip-accent,
.offer-chip { color: var(--accent-etichetta); }
.offer-chip.green,
.solution-icon.green { color: #047857; }

/* Piede della pagina e briciole di pane: il grigio su blu scuro era 2,3-3,7 */
.footer-col h4,
.footer-bottom-left,
.footer-bottom-right a { color: rgba(255,255,255,0.6); }
.footer-bottom-left a { opacity: 1 !important; text-decoration: underline !important; text-underline-offset: 2px; }
.breadcrumb span { color: rgba(255,255,255,0.7); }

/* Colori scritti dentro singole pagine (trovati col controllo del 02/10/2026) */
body .perc-strum { color: var(--accent-etichetta) !important; }             /* affiliati */
body .mod-tag.gs { color: #047857 !important; }                            /* affiliati */
body .settore-card li.ecc { color: var(--text-light) !important; opacity: 1 !important; }  /* beni-strumentali */
body .btn-consent-accept { background: var(--accent-testo) !important; }   /* cookie-policy */
body #r-ivadet, body #r-imposte { color: #047857 !important; }            /* deducibilita-fiscale */
body .risparmio .et { color: #065f46 !important; }                         /* deducibilita-fiscale */
body .novita .tag { background: #b45309; }                                 /* deducibilita-fiscale: «In discussione» */
body .contatto.wa { background: #15803d; border-color: #15803d; }          /* nlt-suite-pro: WhatsApp */
body .contatto.wa:hover { background: #166534; border-color: #166534; }
/* nlt-suite-pro: «Scrivi all'autore» era bianco su fondo chiaro, quasi invisibile */
section[aria-labelledby="fine-title"] .btn-outline { color: var(--primary); border-color: var(--primary); }
section[aria-labelledby="fine-title"] .btn-outline:hover { background: rgba(10,31,92,0.08); }
/* Link nelle frasi di consenso dei moduli (es. «accetto la Privacy Policy») */
label a:not([class*="btn"]), .form-check a { text-decoration: underline; text-underline-offset: 2px; }

/* Link dentro un testo: si riconoscono anche senza vedere il colore
   (WCAG 1.4.1). I pulsanti restano come sono. */
p a:not([class*="btn"]):not(.ds-salta),
.privacy-content a:not([class*="btn"]),
.legal-content a:not([class*="btn"]) { text-decoration: underline; text-underline-offset: 2px; }

/* ── Dove sono con la tastiera (WCAG 2.4.7 e 2.4.11) ──
   Un anello in due colori: blu scuro all'interno e giallo all'esterno,
   così si vede sia sulle parti bianche sia su quelle blu e arancioni.
   Solo con la tastiera (:focus-visible): il clic del mouse non lo mostra. */
:focus-visible {
  outline: 3px solid #ffd166 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #0a1f5c !important;
}
/* I riquadri che ricevono il fuoco solo per farsi leggere (avvisi,
   inizio del contenuto) non hanno bisogno dell'anello. */
[tabindex="-1"]:focus-visible { outline: none !important; box-shadow: none !important; }

/* ── «Salta al contenuto» (WCAG 2.4.1) ──
   Invisibile finché non lo raggiunge il tasto Tab: è la prima cosa
   della pagina, e porta oltre il menu. */
.ds-salta {
  position: absolute; left: 12px; top: -80px; z-index: 100000;
  background: #0a1f5c; color: #fff !important; font-weight: 700;
  padding: 12px 20px; border-radius: 10px; text-decoration: none;
}
.ds-salta:focus { top: 12px; }

/* Testo per il lettore di schermo, invisibile a schermo */
.ds-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Pulsante per fermare il video della home (WCAG 2.2.2) */
.ds-pausa-video {
  position: absolute; right: 16px; bottom: 16px; z-index: 5;
  background: rgba(6,14,54,0.75); color: #fff; border: 1px solid rgba(255,255,255,0.5);
  border-radius: 100px; padding: 8px 14px; font: 600 0.8rem/1 inherit; font-family: inherit;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
}
.ds-pausa-video:hover { background: rgba(6,14,54,0.95); }
/* In basso il pulsante finiva sotto il riquadro «Trova la tua auto»
   (computer, telefono in «versione desktop») o sopra «H24 Soccorso
   stradale» (telefono). Misurato il 02/10/2026 da 360 a 1280 px: in
   alto a destra, subito sotto il menu, è sempre libero e non tocca
   nessuna scritta. L'altezza esatta la calcola ds-script.php. */
.ds-pausa-video { bottom: auto; top: var(--ds-pausa-top, 130px); }
/* Discreto (richiesta di Gerry, 02/10/2026): solo l'icona ⏸/▶ in un
   cerchio da 40 px, semitrasparente; si accende al passaggio del mouse
   o col fuoco. La scritta resta per il lettore di schermo. */
.ds-pausa-video { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%;
                  justify-content: center; font-size: 0.95rem; opacity: 0.75; }
.ds-pausa-video:hover, .ds-pausa-video:focus-visible { opacity: 1; }
.ds-pausa-testo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Sul telefono (sotto i 660 px) non c'è un angolo sempre libero: il
   pulsante sta nel testo della pagina, a destra sotto «Trova la tua
   auto / Simula il canone», e occupa il suo spazio (lo sposta ds-script.php). */
.ds-pausa-video.in-linea { position: static; display: flex; margin: 12px 0 0 auto; }

/* Bersagli da toccare almeno 24×24 px (WCAG 2.5.8) */
#trovaReset { min-height: 32px; padding: 6px 10px; }

/* ── Meno movimento (WCAG 2.3.3) ──
   Chi ha chiesto al telefono o al computer di ridurre le animazioni
   (vertigini, emicrania, difficoltà di concentrazione) vede il sito
   fermo: niente scivolamenti, niente video che gira, niente pulsazioni.
   Il contenuto è comunque tutto visibile. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .hero-video { display: none !important; }
  .ds-pausa-video { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   BARRA IN ALTO: EFFETTO VETRO E TENDINA «LE SEDI» (20/10/2026)
   ───────────────────────────────────────────────────────────────
   Richiesta del team DriveSolutions: la barra con orari e canali
   «a vetro trasparente», e al posto del numero di telefono le sedi.
   Il vetro è scuro al 72%: anche quando sotto passa una parte bianca
   della pagina, il testo bianco resta leggibile (contrasto ≥ 4,5).
   Senza backdrop-filter (browser vecchi) resta un blu semitrasparente.
═══════════════════════════════════════════════════════════════ */
.topbar {
  background: rgba(6, 14, 54, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
/* La tendina delle sedi si apre verso destra (sta a sinistra della barra) */
.sedi-tendina { left: 0; right: auto; width: 340px; }
.sedi-tendina .voce-sede {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 17px; border-bottom: 1px solid var(--grey);
}
.sedi-tendina .voce-sede:hover { background: var(--light); }
.sedi-tendina .voce-sede > a:first-child { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.sedi-tendina .voce-sede strong { display: block; color: var(--primary); font-size: 0.9rem; font-weight: 700; }
.sedi-tendina .voce-sede span { display: block; color: var(--text-muted); font-size: 0.78rem; line-height: 1.45; }
.sedi-tendina .voce-sede > a.tel {
  flex-shrink: 0; white-space: nowrap; font-size: 0.8rem; font-weight: 700;
  color: var(--accent-testo); text-decoration: none;
  padding: 5px 10px; border: 1px solid var(--grey); border-radius: 100px;
}
.sedi-tendina .voce-sede > a.tel:hover { background: var(--accent-testo); border-color: var(--accent-testo); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   BARRA IN ALTO: PIÙ LEGGIBILE E ICONE DEI SOCIAL (28/10/2026)
   ───────────────────────────────────────────────────────────────
   1) Sopra le parti bianche della pagina i link a Telegram, Facebook
      e Instagram (bianco al 60%) scendevano sotto il contrasto minimo.
      Vetro un po' più scuro (78%) e link quasi bianchi: ≥ 7:1.
   2) Accanto al nome ogni social ha la sua icona, disegnata qui con
      una maschera: le pagine non cambiano. Tra 641 e 1100 px resta
      solo l'icona (il nome lo legge ancora il lettore di schermo).
═══════════════════════════════════════════════════════════════ */
.topbar { background: rgba(6, 14, 54, 0.78); color: rgba(255,255,255,0.9); }
.topbar-right a { color: rgba(255,255,255,0.92); }
.topbar-right a[href*="t.me/"],
.topbar-right a[href*="facebook.com/"],
.topbar-right a[href*="instagram.com/"] {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 24px; padding: 2px 4px; border-radius: 6px;
}
.topbar-right a[href*="t.me/"]::before,
.topbar-right a[href*="facebook.com/"]::before,
.topbar-right a[href*="instagram.com/"]::before {
  content: ""; flex-shrink: 0; width: 15px; height: 15px;
  background: currentColor;
  -webkit-mask: var(--icona-social) center / contain no-repeat;
  mask: var(--icona-social) center / contain no-repeat;
}
.topbar-right a[href*="t.me/"] {
  --icona-social: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 3 1.8 10.9c-.8.3-.8 1.5 0 1.8l5 1.7 1.9 5.9c.2.7 1.1.9 1.6.4l2.8-2.6 5.1 3.8c.6.5 1.5.1 1.7-.7L23.3 4.2c.2-.8-.6-1.5-1.3-1.2zM9.4 14.1l9-7.7-7.4 9-.4 3.1z'/%3E%3C/svg%3E");
}
.topbar-right a[href*="facebook.com/"] {
  --icona-social: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.6 22v-8.4h2.9l.4-3.4h-3.3V8.1c0-1 .3-1.6 1.7-1.6H17V3.4c-.3 0-1.4-.1-2.6-.1-2.6 0-4.3 1.6-4.3 4.4v2.5H7.2v3.4h2.9V22z'/%3E%3C/svg%3E");
}
.topbar-right a[href*="instagram.com/"] {
  --icona-social: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.4' cy='6.6' r='.6' fill='black'/%3E%3C/svg%3E");
}
.topbar-right a[href*="t.me/"]:hover,
.topbar-right a[href*="facebook.com/"]:hover,
.topbar-right a[href*="instagram.com/"]:hover { background: rgba(255,255,255,0.12); }
@media (min-width: 641px) and (max-width: 1100px) {
  .topbar-right a[href*="t.me/"],
  .topbar-right a[href*="facebook.com/"],
  .topbar-right a[href*="instagram.com/"] {
    font-size: 0; gap: 0; min-width: 26px; justify-content: center;
  }
  .topbar-right a[href*="t.me/"]::before,
  .topbar-right a[href*="facebook.com/"]::before,
  .topbar-right a[href*="instagram.com/"]::before { width: 16px; height: 16px; }
}