/* ==========================================================================
   STILE DEL SITO — design system + componenti
   Il colore principale si cambia da config.js (colorePrimario)
   ========================================================================== */

/* ---------- Variabili ---------- */
:root {
  --primary: #dc2626;
  --primary-dark: color-mix(in srgb, var(--primary) 82%, #000);
  --primary-soft: color-mix(in srgb, var(--primary) 9%, #fff);
  --primary-line: color-mix(in srgb, var(--primary) 28%, #fff);

  --ink: #0b0c0f;
  --ink-2: #272a30;
  --muted: #475569; /* WCAG AAA high contrast readability */
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-dark: #090a0d;
  --bg-dark-2: #111216;

  --wa: #25d366;
  --wa-dark: #1da851;
  --red: #dc2626;
  --green: #16a34a;
  --amber: #d97706;
  --violet: #7c3aed;
  --teal: #0d9488;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .07);
  --shadow: 0 12px 32px -14px rgba(15, 23, 42, .28);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .38);

  --container: min(96vw, 1780px);
  --gutter: 20px;
  --header-h: 72px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Plus Jakarta Sans', var(--font);

  /* ---------- Apple Mac Motion & Polish Tokens ---------- */
  --apple-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --apple-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --apple-soft-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --apple-glass-bg: rgba(255, 255, 255, 0.78);
  --apple-glass-border: rgba(255, 255, 255, 0.6);
  --apple-glass-blur: blur(28px) saturate(190%) contrast(102%);
  --apple-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 20px 48px -12px rgba(15, 23, 42, 0.12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary-line); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--primary-soft); }
.icon {
  width: 20px;
  height: 20px;
  max-width: none;
  max-height: none;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 650; font-size: .97rem; line-height: 1; white-space: nowrap;
  text-decoration: none !important; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 19px; height: 19px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px -8px rgba(37, 211, 102, .8); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: var(--bg-soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn.is-disabled, .btn:disabled { opacity: .5; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: inherit; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid transparent; background: transparent; color: var(--ink);
  transition: background .18s;
}
.icon-btn:hover { background: var(--bg-soft); text-decoration: none; }
.icon-btn .icon { width: 22px; height: 22px; }
.count-badge {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* ---------- Etichette ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .01em; line-height: 1.2;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-sm);
}
.tag-new { background: var(--primary); color: #fff; }
.tag-drop { background: var(--red); color: #fff; }
.tag-cond { background: var(--teal); color: #fff; }
.tag-custom { background: #fbbf24; color: #3b2500; }
.tag-neo { background: var(--violet); color: #fff; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f87171; margin-right: 7px; vertical-align: middle; }
.dot.is-on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }

/* ---------- Barra anteprima gestionale ---------- */
.preview-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; background: #fef3c7; color: #78350f; font-size: .88rem; font-weight: 600; text-align: center; }
.preview-bar .icon { width: 18px; height: 18px; }
.preview-bar button { border: 1px solid #b45309; background: transparent; color: #78350f; border-radius: 999px; padding: 3px 12px; font-weight: 700; }

/* ---------- Topbar + Header ---------- */
.topbar { background: var(--bg-dark); color: #cbd5e1; font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; gap: 22px; min-height: 38px; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; color: inherit; }
.topbar-item .icon { width: 15px; height: 15px; opacity: .8; }
a.topbar-item:hover { color: #fff; text-decoration: none; }
.topbar-spacer { flex: 1; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 23, 42, .4); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; flex: none; }
.logo img { height: 40px; width: auto; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; }
.logo-mark .icon { width: 24px; height: 24px; }
.logo-text { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; letter-spacing: -.03em; }
.logo-text b { font-weight: 800; color: var(--primary); }
.logo-light { color: #fff; }
.logo-light .logo-text b { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.main-nav a { padding: 9px 13px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.main-nav a.is-active { color: var(--primary); background: var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.menu-btn { display: none; }

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99999 !important;
  background: rgba(9, 10, 13, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.mobile-menu.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw);
  display: flex; flex-direction: column; background: #fff;
  transform: translateX(100%); transition: transform .25s ease;
  overflow-y: auto;
}
.mobile-menu.is-open .mobile-menu-panel { transform: none; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mobile-menu nav { display: flex; flex-direction: column; padding: 10px 8px; }
.mobile-menu nav a { padding: 14px 14px; border-radius: 12px; color: var(--ink); font-weight: 650; font-size: 1.05rem; }
.mobile-menu nav a:hover, .mobile-menu nav a.is-active { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.mobile-menu-foot { margin-top: auto; padding: 16px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.mobile-menu-foot .open-status { margin: 4px 0 0; font-size: .9rem; color: var(--muted); text-align: center; }

/* ---------- Sezioni ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #e2e8f0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--primary); font-weight: 750; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: #090a0d; min-height: 480px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 38%; filter: brightness(0.95); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 10, 13, 0.94) 0%, rgba(9, 10, 13, 0.80) 42%, rgba(9, 10, 13, 0.35) 72%, rgba(9, 10, 13, 0.15) 100%); }
.hero-inner { padding: 68px 0 52px; max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: 16px; max-width: 760px; }
.hero h1 span { color: #ef4444; }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #dbe4f0; max-width: 600px; margin-bottom: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; font-size: .92rem; color: #dbe4f0; }
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges .icon { width: 18px; height: 18px; color: #4ade80; }

.search-card {
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px;
  padding: 14px; border-radius: 20px;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-lg);
}
.search-card .field { margin: 0; }
.search-card label { font-size: .74rem; }
.search-card .btn { align-self: end; min-height: 48px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: .88rem; font-weight: 600; backdrop-filter: blur(6px); }
.quick-links a:hover { background: rgba(255, 255, 255, .22); text-decoration: none; }
.quick-links .icon { width: 16px; height: 16px; }

/* ---------- Striscia fiducia / numeri ---------- */
.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 22px 18px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .ti-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); flex: none; }
.trust-item .ti-icon .icon { width: 24px; height: 24px; }
.trust-item strong { display: block; font-size: .98rem; }
.trust-item span { font-size: .85rem; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 26px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.stat span { color: #94a3b8; font-size: .92rem; }

/* ---------- Categorie ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 12px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  text-align: center; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cat-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.cat-card .body-icon { width: 84px; height: 42px; color: var(--primary); }
.cat-card .cat-ico { display: grid; place-items: center; height: 42px; color: var(--primary); }
.cat-card .cat-ico .icon { width: 34px; height: 34px; }
.cat-card strong { font-size: .98rem; }
.cat-card small { color: var(--muted); font-size: .82rem; }

.brand-list { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 650; }
.brand-chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.brand-chip small { color: var(--muted); font-weight: 600; }

/* ---------- Griglia auto + card ---------- */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.car-grid.is-list { grid-template-columns: 1fr; }
.car-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.car-media { position: relative; aspect-ratio: 16 / 10.5; background: #e9eef5; overflow: hidden; }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .18s ease; }
.car-media img.is-changing { opacity: .45; }
.car-card:hover .car-media img { transform: scale(1.04); }
.car-media-link { display: block; height: 100%; }
.car-tags { position: absolute; top: 12px; left: 12px; right: 60px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; z-index: 2; }
.photo-count {
  position: absolute; bottom: 10px; right: 10px; z-index: 4;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px;
  border-radius: 999px; background: rgba(15, 23, 42, .68);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  color: #fff; font-size: .75rem; font-weight: 600; pointer-events: none;
}
.photo-count .icon { width: 14px; height: 14px; }
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .15s, color .15s;
}
.fav-btn:hover { transform: scale(1.08); }
.fav-btn .icon { width: 21px; height: 21px; }
.fav-btn.is-active { color: var(--red); }
.fav-btn.is-active .icon { fill: currentColor; }

/* Controlli scorrimento foto su card */
.card-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 6; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); padding: 0;
  background: rgba(9, 10, 13, 0.78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; cursor: pointer;
  opacity: 0.92; pointer-events: auto;
  transition: opacity .2s ease, background .2s ease, transform .15s ease, border-color .2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.card-nav:hover {
  opacity: 1;
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-50%) scale(1.1);
  color: #fff;
}
.card-nav:active {
  transform: translateY(-50%) scale(0.92);
}
.car-card:hover .card-nav { opacity: 1; pointer-events: auto; }
.card-nav:hover { background: rgba(15, 23, 42, .92); transform: translateY(-50%) scale(1.1); color: #fff; }
.card-nav:active { transform: translateY(-50%) scale(0.92); }
.card-nav.is-prev { left: 8px; }
.card-nav.is-next { right: 8px; }
.card-nav .icon { width: 20px; height: 20px; stroke-width: 2.4; }

.card-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 5px; z-index: 4;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  max-width: calc(100% - 110px);
}
.card-dot {
  width: 6px; height: 6px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(255, 255, 255, .5); cursor: pointer;
  transition: all .2s ease;
}
.card-dot:hover { background: rgba(255, 255, 255, .9); }
.card-dot.is-active { background: #fff; width: 16px; }

@media (hover: none) {
  .card-nav { opacity: .88; pointer-events: auto; width: 34px; height: 34px; }
}

.status-ribbon {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 8px; text-align: center; color: #fff; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem;
}
.status-ribbon.is-sold {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95) 0%, rgba(153, 27, 27, 0.98) 100%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
}
.status-ribbon.is-reserved {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.95) 0%, rgba(180, 83, 9, 0.98) 100%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.car-card.is-venduta .car-media img {
  filter: none;
  opacity: 1;
  transition: transform .4s ease, filter .3s ease;
}
.car-card.is-venduta:hover .car-media img {
  transform: scale(1.03);
}
.car-card.is-venduta .card-dots,
.car-card.is-riservata .card-dots,
.car-card.is-venduta .photo-count,
.car-card.is-riservata .photo-count {
  bottom: 40px;
}

.car-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 14px; }
.car-title { margin: 0; font-size: 1.12rem; }
.car-title a { color: var(--ink); }
.car-title a::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.car-title a:hover { text-decoration: none; color: var(--primary); }
.car-version { margin: 2px 0 12px; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-specs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; font-size: .87rem; color: var(--ink-2); }
.car-specs li { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-specs .icon { width: 17px; height: 17px; color: var(--muted); }
.car-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.car-price { display: flex; flex-direction: column; line-height: 1.15; }
.price-old { color: var(--muted); font-size: .85rem; }
.price { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.price-rata { margin-top: 3px; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.price-rata sup { color: var(--muted); }
.btn-wa-round {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--wa); color: #fff; flex: none; box-shadow: 0 6px 16px -8px rgba(37, 211, 102, .9);
  transition: transform .15s, background .15s;
}
.btn-wa-round:hover { background: var(--wa-dark); transform: scale(1.06); }
.btn-wa-round .icon { width: 24px; height: 24px; }
.compare-toggle { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: .84rem; color: var(--muted); cursor: pointer; user-select: none; align-self: flex-start; }
.compare-toggle input { width: 17px; height: 17px; accent-color: var(--primary); margin: 0; }
.compare-toggle:hover { color: var(--ink); }

/* Vista elenco */
.car-card.is-list { flex-direction: row; }
.car-card.is-list .car-media { width: 38%; max-width: 380px; aspect-ratio: auto; min-height: 230px; flex: none; }
.car-card.is-list .car-specs { grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 22px; }

.rata-note { margin-top: 18px; font-size: .78rem; color: var(--muted); }

/* Mini card (visti di recente, ecc.) */
.mini-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mini-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.mini-card:hover { border-color: var(--primary); text-decoration: none; }
.mini-card img { width: 92px; height: 66px; border-radius: 10px; object-fit: cover; flex: none; }
.mini-card span { display: flex; flex-direction: column; min-width: 0; }
.mini-card strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-card small { color: var(--muted); }
.mini-card em { font-style: normal; font-weight: 800; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label, .field-label { font-size: .82rem; font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.input:user-invalid, .select:user-invalid, .textarea:user-invalid { border-color: #f87171; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.privacy-check { margin: 6px 0 16px; font-size: .82rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-actions .btn { flex: 1 1 200px; }
.form-success { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-success .icon { color: var(--green); width: 22px; height: 22px; margin-top: 1px; }
.form-success p { margin: 0; font-size: .92rem; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .15s; }
.segmented input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.segmented input:focus-visible + span { outline: 3px solid var(--primary-line); }

/* Range slider */
input[type=range] { width: 100%; height: 6px; appearance: none; background: var(--line); border-radius: 6px; accent-color: var(--primary); }
input[type=range]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: var(--shadow-sm); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: pointer; }

/* ---------- Pagina bacheca (inventario) ---------- */
.page-hero { padding: 36px 0 26px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 6px; }
.page-hero p { margin: 0; color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; font-size: .85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .icon { width: 14px; height: 14px; }

.inv-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 30px; padding-bottom: 70px; }
.filters {
  position: sticky; top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto;
  padding: 6px 4px 6px 0;
  scrollbar-width: thin;
}
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters-head h2 { font-size: 1.15rem; margin: 0; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group > .field-label, .filter-group > h3 { display: block; margin-bottom: 10px; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-row .select, .filter-row .input, .filter-group .select, .filter-group .input { min-height: 42px; padding-top: 8px; padding-bottom: 8px; font-size: .92rem; }
.check-list { display: grid; gap: 9px; }
.check-list .check { justify-content: space-between; align-items: center; }
.check-list .check span { flex: 1; }
.check-list .check small { color: var(--muted); font-size: .8rem; }
.check-list .check.is-zero { opacity: .45; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .92rem; font-weight: 600; cursor: pointer; padding: 4px 0; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; border-radius: 26px; background: var(--line-2); transition: background .2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid var(--primary-line); }
.search-input { position: relative; }
.search-input .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search-input .input { padding-left: 40px; }
.filters-mobile-foot { display: none; }
#close-filters { display: none; }

.inv-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.inv-count { font-weight: 700; margin-right: auto; }
.inv-count span { color: var(--muted); font-weight: 500; }
.inv-toolbar .select { width: auto; min-height: 42px; padding-top: 8px; padding-bottom: 8px; font-size: .92rem; }
.view-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.view-toggle button { display: grid; place-items: center; width: 42px; height: 39px; border: 0; background: #fff; color: var(--muted); }
.view-toggle button.is-active { background: var(--primary-soft); color: var(--primary); }
.filters-btn { display: none; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .85rem; font-weight: 650; border: 1px solid var(--primary-line); }
.chip button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: inherit; padding: 0; }
.chip button:hover { background: rgba(255, 255, 255, .7); }
.chip .icon { width: 14px; height: 14px; }
.chip-clear { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: .85rem; padding: 6px; }
.load-more { display: flex; justify-content: center; margin-top: 30px; }

.empty-state { padding: 48px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px dashed var(--line-2); text-align: center; }
.empty-state .icon { width: 48px; height: 48px; color: var(--muted); margin: 0 auto 12px; }
.empty-state h3 { font-size: 1.3rem; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto 18px; }
.empty-state .form-actions { justify-content: center; }
.empty-state .form-actions .btn { flex: 0 1 auto; }

.alert-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(120deg, var(--primary-soft), #ecfdf5); border: 1px solid var(--primary-line); }
.alert-box .icon { width: 30px; height: 30px; color: var(--primary); flex: none; }
.alert-box div { flex: 1 1 260px; }
.alert-box strong { display: block; }
.alert-box p { margin: 2px 0 0; font-size: .9rem; color: var(--ink-2); }

/* ---------- Scheda auto ---------- */
.detail-wrap { padding-top: 22px; padding-bottom: 70px; }
.detail-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 36px; row-gap: 0; align-items: start;
  grid-template-areas: "gallery side" "content side";
}
.d-gallery { grid-area: gallery; min-width: 0; }
.d-side { grid-area: side; align-self: start; }
.d-content { grid-area: content; min-width: 0; }
.side-actions .is-active-cmp { color: var(--primary); }
.gallery { position: relative; }
.gallery-main { position: relative; isolation: isolate; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: #090a0d; cursor: zoom-in; touch-action: pan-y; }
/* sfondo sfocato: le foto verticali non mostrano bande nere */
.gallery-main::before { content: ''; position: absolute; inset: -30px; z-index: -1; background: var(--g-bg, none) center / cover no-repeat; filter: blur(26px) brightness(.55); }
.gallery-main img { position: relative; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.gallery-counter, .gallery-zoom { z-index: 2; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow); z-index: 2; }
.gallery-nav:hover { background: #fff; }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-counter { position: absolute; bottom: 14px; right: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(15, 23, 42, .7); color: #fff; font-size: .82rem; font-weight: 600; }
.gallery-zoom { position: absolute; bottom: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 0; background: rgba(15, 23, 42, .7); color: #fff; font-size: .82rem; font-weight: 600; }
.gallery-zoom .icon { width: 16px; height: 16px; }
.gallery .status-ribbon { font-size: 1rem; padding: 12px; z-index: 1; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.gallery-thumbs button { flex: none; width: 104px; height: 70px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #e9eef5; opacity: .7; transition: opacity .15s, border-color .15s; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button.is-active { border-color: var(--primary); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-section { margin-top: 36px; }
.d-content > .detail-section:first-child { margin-top: 30px; }
.detail-section > h2 { font-size: 1.4rem; margin-bottom: 16px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.spec { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.spec .icon { width: 22px; height: 22px; color: var(--primary); }
.spec small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.spec strong { font-size: .97rem; }
.desc { color: var(--ink-2); font-size: 1.02rem; white-space: pre-line; }
.opt-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
.opt-list li { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; break-inside: avoid; border-bottom: 1px solid var(--line); font-size: .95rem; }
.opt-list .icon { width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.included-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.included { display: flex; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); }
.included .icon { width: 26px; height: 26px; color: var(--primary); flex: none; }
.included strong { display: block; font-size: .95rem; }
.included span { font-size: .85rem; color: var(--muted); }

.side-box { position: sticky; top: calc(var(--header-h) + 16px); padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.side-box .car-tags { position: static; margin-bottom: 12px; }
.side-box h1 { font-size: 1.65rem; margin-bottom: 4px; }
.side-version { color: var(--muted); margin: 0 0 16px; }
.side-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.side-price .price { font-size: 2.2rem; }
.side-price .price-old { font-size: 1rem; }
.save-pill { padding: 3px 9px; border-radius: 999px; background: #fee2e2; color: var(--red); font-size: .8rem; font-weight: 800; }
.side-rata { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--primary-soft); font-size: .92rem; }
.side-rata a { font-weight: 700; }
.side-ctas { display: grid; gap: 10px; }
.side-ctas .btn { width: 100%; }
.side-ctas .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-ctas .btn { white-space: normal; text-align: center; line-height: 1.2; padding-top: 8px; padding-bottom: 8px; }
.side-box { min-width: 0; }
.side-note { margin: 14px 0 0; font-size: .8rem; color: var(--muted); }
.side-trust { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: .9rem; }
.side-trust li { display: flex; align-items: center; gap: 9px; color: var(--ink-2); }
.side-trust .icon { width: 18px; height: 18px; color: var(--green); }
.side-actions { display: flex; justify-content: space-between; gap: 4px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.side-actions button, .side-actions a { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border: 0; background: none; color: var(--ink-2); font-size: .75rem; font-weight: 600; border-radius: 10px; flex: 1; text-decoration: none; }
.side-actions button:hover, .side-actions a:hover { background: var(--bg-soft); color: var(--ink); }
.side-actions .icon { width: 21px; height: 21px; }
.side-actions .is-active { color: var(--red); }
.side-actions .is-active .icon { fill: currentColor; }
.dealer-mini { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--bg-soft); font-size: .87rem; }
.dealer-mini .logo-mark { width: 38px; height: 38px; flex: none; }
.dealer-mini strong { display: block; font-size: .95rem; }
.dealer-mini span { color: var(--muted); }

/* Calcolatore rata */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.calc-field { margin-bottom: 22px; }
.calc-field .calc-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-weight: 650; font-size: .92rem; }
.calc-field .calc-label output { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.calc-result { display: flex; flex-direction: column; justify-content: center; padding: 22px; border-radius: 16px; background: var(--bg-dark); color: #cbd5e1; }
.calc-result .big { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
.calc-result .big small { font-size: 1rem; font-weight: 600; color: #94a3b8; }
.calc-rows { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 7px; font-size: .88rem; }
.calc-rows li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); padding-bottom: 6px; }
.calc-rows strong { color: #fff; }
.calc-note { font-size: .74rem; color: var(--muted); margin-top: 12px; }
.calc > * { min-width: 0; }
.calc-result .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }

/* Barra contatti fissa (mobile, scheda auto) */
.sticky-cta { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(5, 8, 16, .96); opacity: 0; transition: opacity .2s; touch-action: pan-y; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; user-select: none; }
.lightbox .lb-close, .lightbox .lb-nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; }
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-nav.prev { left: 18px; }
.lightbox .lb-nav.next { right: 18px; }
.lightbox .lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #cbd5e1; font-size: .9rem; }

/* ---------- Modale ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .55); opacity: 0; transition: opacity .2s; }
.modal-overlay.is-open { opacity: 1; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); transform: translateY(12px); transition: transform .2s; }
.modal-overlay.is-open .modal { transform: none; }
.modal-wide { max-width: 860px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 1.2rem; }
.modal-body { padding: 20px 22px 24px; overflow-y: auto; }
.modal-car { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 10px; border-radius: 12px; background: var(--bg-soft); }
.modal-car img { width: 84px; height: 58px; object-fit: cover; border-radius: 8px; }
.modal-car strong { display: block; font-size: .95rem; }
.modal-car span { font-size: .85rem; color: var(--muted); }

/* ---------- Widget contatti + pulsante WhatsApp ---------- */
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
body.has-compare-bar .chat-widget { bottom: 96px; }
.wa-float {
  display: inline-flex; align-items: center; gap: 10px;
  height: 60px; padding: 0 22px 0 18px; border-radius: 999px; border: 0;
  background: var(--wa); color: #fff; font-weight: 750; font-size: 1rem;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .75), var(--shadow);
  transition: transform .2s, background .2s;
  animation: wa-pop .5s ease .8s both;
}
.wa-float:hover { background: var(--wa-dark); transform: translateY(-2px); }
.wa-float .icon { width: 28px; height: 28px; }
.wa-float[aria-expanded="true"] { background: var(--ink); box-shadow: var(--shadow); }
@keyframes wa-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.chat-panel { width: min(370px, calc(100vw - 32px)); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: panel-in .2s ease; }
@keyframes panel-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px; background: #075e54; color: #fff; }
.chat-head strong { display: block; }
.chat-head small { display: flex; align-items: center; font-size: .8rem; color: #d1fae5; }
.chat-head .icon-btn { margin-left: auto; color: #fff; }
.chat-head .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.chat-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #075e54; flex: none; }
.chat-avatar .icon { width: 24px; height: 24px; }
.chat-body { padding: 16px; background: #efeae2; max-height: 52vh; overflow-y: auto; }
.chat-bubble { position: relative; max-width: 88%; padding: 10px 13px; border-radius: 0 12px 12px 12px; background: #fff; font-size: .92rem; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); margin-bottom: 14px; }
.chat-options { display: grid; gap: 8px; }
.chat-options a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: #fff; color: var(--ink); font-size: .92rem; font-weight: 600; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); transition: background .15s; }
.chat-options a:hover { background: #f0fdf4; text-decoration: none; }
.chat-options .icon { width: 19px; height: 19px; color: #128c7e; }
.chat-options .chev { margin-left: auto; color: var(--muted); width: 16px; height: 16px; }
.chat-options span { flex: 1; }
.chat-foot { display: flex; justify-content: space-around; gap: 4px; padding: 10px; border-top: 1px solid var(--line); }
.chat-foot a { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 10px; border-radius: 10px; color: var(--ink-2); font-size: .74rem; font-weight: 600; }
.chat-foot a:hover { background: var(--bg-soft); text-decoration: none; }
.chat-foot .icon { width: 19px; height: 19px; }

/* ---------- Barra confronto ---------- */
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(15, 23, 42, .45); animation: bar-in .25s ease; }
@keyframes bar-in { from { transform: translateY(100%); } to { transform: none; } }
.compare-bar-inner { display: flex; align-items: center; gap: 16px; min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
.compare-bar-left { display: flex; align-items: center; gap: 10px; flex: none; }
.compare-bar-close { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink-2); cursor: pointer; transition: all .2s; }
.compare-bar-close:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; transform: scale(1.05); }
.compare-bar-close .icon { width: 16px; height: 16px; }
.compare-bar-summary { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
.compare-bar-summary .icon { color: var(--primary); }
.compare-clear-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink-2); font-size: .84rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.compare-clear-btn:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.compare-clear-btn .icon { width: 14px; height: 14px; }
.compare-bar-items { display: flex; gap: 10px; flex: 1; min-width: 0; overflow-x: auto; }
.compare-chip { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: .85rem; font-weight: 650; min-width: 0; flex: none; max-width: 240px; }
.compare-chip img { width: 54px; height: 38px; object-fit: cover; border-radius: 8px; }
.compare-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare-chip button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--bg-soft); padding: 0; flex: none; }
.compare-chip button .icon { width: 14px; height: 14px; }
.compare-chip.is-empty { justify-content: center; width: 150px; height: 52px; border-style: dashed; color: var(--muted); font-weight: 600; }
.compare-bar-actions { display: flex; align-items: center; gap: 14px; flex: none; font-size: .88rem; }
.compare-bar-summary { display: none; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; margin-right: auto; }
.compare-bar-summary .icon { color: var(--primary); }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
body.has-compare-bar .toasts { bottom: 100px; }
.toast { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: .92rem; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; pointer-events: auto; }
.toast.is-in { opacity: 1; transform: none; }
.toast a { color: #93c5fd; text-decoration: underline; }
.toast .icon { width: 18px; height: 18px; }
.toast.is-error { background: var(--red); }

/* ---------- Banner cookie ---------- */
.cookie-banner { position: fixed; left: 20px; bottom: 20px; z-index: 350; max-width: 460px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .88rem; }
.cookie-banner p { margin: 0 0 14px; color: var(--ink-2); }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Mappa ---------- */
.map-box { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #e0e7ff, #f1f5f9); border: 1px solid var(--line); }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; }
.map-placeholder > .icon { width: 40px; height: 40px; color: var(--primary); }
.map-placeholder p { margin: 0; }
.map-placeholder small { color: var(--muted); font-size: .78rem; }

/* ---------- Home: passi, servizi, recensioni, FAQ, CTA ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 22px; right: 22px; font-family: var(--font-head); font-size: 3rem; font-weight: 800; line-height: 1; color: var(--primary-soft); }
.step .s-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--primary); color: #fff; margin-bottom: 16px; }
.step .s-icon.wa { background: var(--wa); }
.step .s-icon .icon { width: 26px; height: 26px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.service:hover { border-color: var(--primary-line); box-shadow: var(--shadow); }
.service .icon { width: 30px; height: 30px; color: var(--primary); margin-bottom: 12px; }
.service h3 { margin-bottom: 6px; }
.service p { margin: 0; color: var(--muted); font-size: .94rem; }

.finance-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.finance-block ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.finance-block li { display: flex; gap: 10px; align-items: flex-start; }
.finance-block li .icon { color: var(--green); margin-top: 2px; }

.reviews-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.g-rating { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; }
.stars { display: inline-flex; gap: 2px; color: #f59e0b; }
.stars .icon { width: 17px; height: 17px; fill: currentColor; }
.stars .icon.off { fill: none; opacity: .4; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { position: relative; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.review p { margin: 12px 0 14px; color: var(--ink-2); }
.review footer { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.review .avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.review .sample { position: absolute; top: 14px; right: 14px; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: border-color .2s; }
.faq details[open] { border-color: var(--primary-line); box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(180deg); color: var(--primary); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }

.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 48px; background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #090a0d)); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.cta-band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbeafe; margin: 0; font-size: 1.05rem; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; z-index: 1; }
.cta-band .btn-light { border-color: transparent; }

/* ---------- Dove siamo & Vieni a trovarci (Design spazioso & responsive) ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 32px;
  align-items: stretch;
  width: 100%;
}

.visit-card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.visit-card-header {
  margin-bottom: 18px;
}

.visit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.visit-badge .icon {
  width: 14px;
  height: 14px;
}

.visit-card-header h3 {
  font-size: 1.35rem;
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
}

.visit-address {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.visit-actions .btn {
  font-size: 0.88rem;
  padding: 8px 16px;
}

.visit-hours-wrap {
  margin-top: auto;
}

.visit-hours-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.visit-hours-header > .icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.hours {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.hours li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.91rem;
  transition: background 0.15s ease;
}

.hours li:nth-child(odd) {
  background: var(--bg-soft);
}

.hours li.is-today {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  font-weight: 700;
  color: var(--primary);
}

.hours li .day-name {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  flex-shrink: 0;
}

.today-tag {
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hours li .day-hours {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: right;
  margin-left: auto;
}

.hours li.is-today .day-hours {
  font-weight: 800;
  color: var(--primary);
}

.visit-grid .map-box {
  aspect-ratio: unset;
  min-height: 400px;
  height: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.visit-grid .map-box iframe {
  min-height: 400px;
  height: 100%;
}

/* ---------- Pagine contatti / vendi ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.contact-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); transition: border-color .2s, transform .2s; }
.contact-card:hover { border-color: var(--primary); transform: translateY(-3px); text-decoration: none; }
.contact-card .cc-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.contact-card.wa .cc-icon { background: #dcfce7; color: #15803d; }
.contact-card .cc-icon .icon { width: 24px; height: 24px; }
.contact-card strong { font-size: 1.02rem; }
.contact-card span { color: var(--muted); font-size: .9rem; word-break: break-word; }
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
.panel { padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: #fff; }
.panel h2 { font-size: 1.4rem; }

.sell-hero { padding: 56px 0; background: radial-gradient(1200px 400px at 80% -10%, color-mix(in srgb, var(--primary) 30%, transparent), transparent), var(--bg-dark); color: #e2e8f0; }
.sell-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.sell-hero p { color: #cbd5e1; font-size: 1.08rem; max-width: 620px; }
.sell-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.sell-benefits div { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; font-weight: 600; color: #fff; }
.sell-benefits .icon { color: #4ade80; }
.wizard { max-width: 820px; margin: -34px auto 0; position: relative; }
.wizard-steps { display: flex; gap: 8px; margin-bottom: 22px; }
.wizard-steps div { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.wizard-steps div::before { content: ''; height: 5px; border-radius: 5px; background: var(--line); }
.wizard-steps div.is-done, .wizard-steps div.is-active { color: var(--primary); }
.wizard-steps div.is-done::before, .wizard-steps div.is-active::before { background: var(--primary); }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.wizard fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard legend { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; margin-bottom: 16px; padding: 0; }
.summary-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: .92rem; }
.summary-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.summary-list span { color: var(--muted); }
.permuta-car { display: flex; align-items: center; gap: 14px; padding: 12px; margin-bottom: 18px; border-radius: 14px; background: var(--primary-soft); border: 1px solid var(--primary-line); }
.permuta-car img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; }

/* ---------- Confronto Auto (Luxury Redesign & Massima Leggibilità) ---------- */
.cmp-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  margin-bottom: 20px;
}
.cmp-controls-info {
  display: flex;
  align-items: center;
}
.cmp-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink-2);
  font-weight: 600;
}
.cmp-count-badge .icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
}
.cmp-count-badge strong {
  color: var(--ink);
  font-weight: 800;
}
.cmp-controls-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cmp-search-field {
  position: relative;
  display: flex;
  align-items: center;
}
.cmp-search-field .icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}
.cmp-search-field input {
  padding: 8px 32px 8px 36px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 0.88rem;
  width: 260px;
  transition: all 0.2s ease;
}
.cmp-search-field input:focus {
  background: #ffffff;
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 17, 32, 0.08);
}
.cmp-clear-input {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  padding: 2px;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.cmp-clear-input .icon {
  position: static;
  width: 14px;
  height: 14px;
}
.cmp-toggle-diff {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  transition: background 0.2s ease;
}
.cmp-toggle-diff:hover {
  background: #e2e8f0;
}
.cmp-toggle-diff input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cmp-toggle-track {
  position: relative;
  width: 36px;
  height: 20px;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.25s ease;
}
.cmp-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.25s ease;
}
.cmp-toggle-diff input:checked + .cmp-toggle-track {
  background: var(--primary);
}
.cmp-toggle-diff input:checked + .cmp-toggle-track::after {
  transform: translateX(16px);
}
.cmp-btn-clear {
  color: #64748b !important;
}
.cmp-btn-clear:hover {
  color: #ef4444 !important;
}

/* Compare Table Styling */
.compare-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.06);
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
}

/* Header Columns */
.compare-table thead th {
  vertical-align: top;
  background: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  padding: 20px;
}
.compare-table thead th.cmp-head-first {
  position: sticky;
  left: 0;
  z-index: 15;
  background: #ffffff;
  border-right: 2px solid #e2e8f0;
  box-shadow: 6px 0 16px -4px rgba(0, 0, 0, 0.05);
  min-width: 320px;
  width: 360px;
  max-width: 440px;
  vertical-align: middle;
}
.cmp-sticky-corner-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.compare-table .cmp-head {
  position: relative;
  min-width: 250px;
  width: 280px;
  padding: 20px 18px;
  border-right: 1px solid #f1f5f9;
}
.cmp-head-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cmp-head-img-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.cmp-head-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.cmp-head-img-wrap:hover img {
  transform: scale(1.04);
}
.cmp-badge-sold {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.cmp-remove {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.95);
  color: #64748b;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}
.cmp-remove:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.08);
}
.cmp-remove .icon {
  width: 14px;
  height: 14px;
}
.cmp-head-content {
  flex: 1;
  text-align: left;
}
.cmp-head-title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 4px;
}
.cmp-head-title a {
  color: var(--ink);
  text-decoration: none;
}
.cmp-head-title a:hover {
  color: var(--primary);
}
.cmp-head-version {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 10px;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cmp-head-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 14px;
}
.cmp-head-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cmp-head-actions .btn {
  padding: 8px 10px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Empty slot card */
.cmp-head-add {
  vertical-align: middle;
  min-width: 220px;
  padding: 24px 20px;
}
.cmp-add-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  text-align: center;
}
.cmp-add-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: grid;
  place-items: center;
  color: var(--primary);
  margin-bottom: 12px;
}
.cmp-add-icon .icon {
  width: 22px;
  height: 22px;
}
.cmp-add-placeholder strong {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.cmp-add-placeholder p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 14px;
}

/* Section Header Dividers */
.compare-table .cmp-section-header th {
  background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  padding: 13px 24px !important;
  border: none !important;
  box-shadow: none !important;
}
.cmp-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}
.cmp-section-title .icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

/* Row Labels & Values - Spacious & Airy */
.compare-table tbody tr.cmp-row {
  transition: background 0.15s ease;
}
.compare-table tbody tr.cmp-row:nth-child(even) th.cmp-row-label,
.compare-table tbody tr.cmp-row:nth-child(even) td.cmp-row-val {
  background: #f8fafc;
}
.compare-table tbody tr.cmp-row:nth-child(odd) th.cmp-row-label,
.compare-table tbody tr.cmp-row:nth-child(odd) td.cmp-row-val {
  background: #ffffff;
}
.compare-table tbody tr.cmp-row:hover th.cmp-row-label,
.compare-table tbody tr.cmp-row:hover td.cmp-row-val {
  background: #f1f5f9;
}

.compare-table tbody th.cmp-row-label {
  position: sticky;
  left: 0;
  z-index: 10;
  min-width: 320px;
  width: 360px;
  max-width: 440px;
  padding: 16px 24px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e2e8f0;
  border-right: 2px solid #e2e8f0;
  box-shadow: 6px 0 16px -4px rgba(0, 0, 0, 0.04);
}
.cmp-label-text, .cmp-opt-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.cmp-opt-name {
  font-weight: 500;
  color: #1e293b;
}

.compare-table tbody td.cmp-row-val {
  padding: 16px 20px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  font-size: 0.94rem;
  color: #334155;
  font-weight: 500;
  min-width: 220px;
}
.cmp-val-wrapper {
  display: inline-block;
  line-height: 1.5;
}

/* Best value tag */
.compare-table td.is-best .cmp-val-wrapper {
  color: #15803d;
  font-weight: 800;
}
.compare-table td.is-best::after {
  content: 'Migliore';
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 2px 8px;
  border-radius: 999px;
  width: fit-content;
  margin: 4px auto 0;
}

/* Equipment Badges */
.cmp-pill-yes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid #a7f3d0;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
}
.cmp-pill-yes .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.8px;
}
.cmp-pill-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  font-weight: 700;
  font-size: 1rem;
}

.cmp-no-match {
  padding: 30px !important;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
}

.cmp-advice-box {
  margin-top: 30px;
  border-radius: 16px;
  padding: 24px 28px;
}


/* ---------- Privacy ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-2); }
.notice { padding: 14px 16px; border-radius: 12px; background: #fef3c7; color: #78350f; font-size: .9rem; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #94a3b8; padding: 64px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.1fr; gap: 36px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin: 14px 0 18px; max-width: 300px; }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contacts .icon { width: 18px; height: 18px; margin-top: 2px; color: #64748b; }
.site-footer .hours li { padding: 2px 0; }
.site-footer .hours li.is-today { color: #fff; }
.site-footer .open-status { margin: 12px 0 0; color: #cbd5e1; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #e2e8f0; }
.social a:hover { background: var(--primary); text-decoration: none; }
.social .icon { width: 19px; height: 19px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px var(--gutter); border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .link-btn { color: #cbd5e1; }

/* ---------- Gestionale (admin) ---------- */
.admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.admin-bar .spacer { flex: 1; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: .9rem; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { background: var(--bg-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.admin-table img { width: 72px; height: 50px; object-fit: cover; border-radius: 8px; }
.admin-table .select { min-height: 36px; padding: 4px 30px 4px 10px; font-size: .85rem; width: auto; }
.admin-actions { display: flex; gap: 4px; }
.admin-actions .icon-btn { width: 36px; height: 36px; }
.admin-actions .icon-btn .icon { width: 18px; height: 18px; }
.admin-form h4 { margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.admin-form .form-grid { grid-template-columns: repeat(3, 1fr); }
.photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photo-preview img { width: 90px; height: 62px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.kpi small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.kpi strong { font-family: var(--font-head); font-size: 1.6rem; }

/* ---------- Barra promozionale ---------- */
.promo-bar { background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 60%, #7c3aed)); color: #fff; font-size: .9rem; }
.promo-inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding-top: 6px; padding-bottom: 6px; text-align: center; position: relative; padding-right: 48px; }
.promo-inner > .icon { width: 18px; height: 18px; flex: none; }
.promo-left { color: #fde68a; font-weight: 700; }
.promo-inner a { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 800; text-decoration: underline; white-space: nowrap; }
.promo-inner a .icon { width: 15px; height: 15px; }
.promo-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; }
.promo-close .icon { width: 15px; height: 15px; }

/* ---------- Ricerca intelligente ---------- */
.search-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.search-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; font-size: .9rem; backdrop-filter: blur(6px); }
.search-tabs button .icon { width: 17px; height: 17px; }
.search-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.search-tabs button[aria-selected="true"] .icon { color: var(--primary); }
.search-card.smart-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.smart-input { position: relative; }
.smart-input .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--primary); width: 22px; height: 22px; }
.smart-input input { width: 100%; min-height: 56px; padding: 12px 16px 12px 50px; border: 1.5px solid var(--line); border-radius: 14px; font-size: 1.05rem; background: #fff; }
.smart-input input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.smart-card .btn { min-height: 56px; }
.smart-hint, .smart-examples { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-2); }
.smart-hint:empty { display: none; }
.smart-examples > span { color: var(--muted); font-weight: 600; margin-right: 2px; }
.smart-label { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--primary); }
.smart-label .icon { width: 16px; height: 16px; }
.smart-ignored { color: var(--muted); font-size: .8rem; margin-left: 4px; }
.chip-static { padding: 4px 10px; }
.chip-btn { cursor: pointer; padding: 6px 12px; background: var(--bg-soft); color: var(--ink-2); border-color: var(--line); font-weight: 600; }
.chip-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.smart-bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; margin-bottom: 8px; border-radius: 16px; border: 1.5px solid var(--primary-line); background: linear-gradient(120deg, var(--primary-soft), #fff); }
.smart-bar > .icon { color: var(--primary); width: 22px; height: 22px; flex: none; }
.smart-bar input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; font-size: 1rem; }
.smart-bar input:focus { outline: none; }
.smart-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
#smart-bar-hint { margin-bottom: 14px; }

/* Ricerche salvate */
.saved-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.saved-row:not(:has(:not([hidden]))) { display: none; }
.saved-banner { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; font-size: .9rem; }
.saved-banner .icon { width: 18px; height: 18px; }
.save-search { margin-left: auto; }
.save-search.is-saved { color: var(--green); border-color: #a7f3d0; background: #f0fdf4; }
.tag-foryou { background: #059669; color: #fff; }
.card-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: #ecfdf5; color: #065f46; font-size: .84rem; }
.card-note .icon { width: 16px; height: 16px; }

/* Per te (home) */
.for-you { padding: 28px 0 8px; }
.for-you .container { padding-top: 22px; padding-bottom: 22px; border-radius: 20px; background: linear-gradient(120deg, var(--primary-soft), #f0fdf4); border: 1px solid var(--primary-line); }
.fy-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fy-head h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 1.35rem; margin: 0; }
.fy-head h2 .icon { color: var(--primary); }
.fy-drop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid #a7f3d0; color: #065f46; font-size: .92rem; }
.fy-drop .icon { color: var(--green); }
.fy-searches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.fy-search { display: flex; align-items: center; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.fy-search a { display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 14px; color: var(--ink); }
.fy-search a:hover { text-decoration: none; color: var(--primary); }
.fy-search a > .icon { color: var(--primary); }
.fy-search span { display: flex; flex-direction: column; line-height: 1.25; }
.fy-search strong { font-size: .92rem; }
.fy-search small { color: var(--muted); }
.fy-search small b { color: var(--green); }
.fy-search button { display: grid; place-items: center; width: 34px; height: 34px; margin-right: 6px; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.fy-search button:hover { background: var(--bg-soft); color: var(--ink); }
.fy-search button .icon { width: 15px; height: 15px; }
.fy-recent .mini-list { margin-top: 8px; }

/* ---------- Giudizio sul prezzo ---------- */
.deal { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .01em; align-self: flex-start; padding: 3px 8px; border-radius: 6px; }
.deal .icon { width: 14px; height: 14px; }
.deal-3 { background: #dcfce7; color: #166534; }
.deal-2 { background: #ecfccb; color: #3f6212; }
.deal-meter { margin: 14px 0 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); }
.deal-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: .92rem; }
.deal-head .icon { width: 18px; height: 18px; }
.deal-head span { color: var(--ink-2); font-size: .86rem; flex-basis: 100%; }
.deal-meter.deal-3 .deal-head { color: #166534; }
.deal-meter.deal-2 .deal-head { color: #3f6212; }
.deal-meter.deal-1 .deal-head { color: var(--ink-2); }
.deal-bar { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; height: 8px; margin: 12px 0 6px; }
.deal-bar i { border-radius: 4px; }
.deal-bar i:nth-child(1) { background: #22c55e; }
.deal-bar i:nth-child(2) { background: #a3e635; }
.deal-bar i:nth-child(3) { background: #cbd5e1; }
.deal-bar b { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); transform: translate(-50%, -50%); box-shadow: var(--shadow-sm); }
.deal-legend { display: grid; grid-template-columns: repeat(3, 1fr); font-size: .72rem; color: var(--muted); font-weight: 600; }
.deal-legend span:nth-child(2) { text-align: center; }
.deal-legend span:nth-child(3) { text-align: right; }
.deal-meter p { margin: 8px 0 0; font-size: .74rem; color: var(--muted); }

/* ---------- Costi di gestione ---------- */
.costs { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: #fff; }
.costs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 6px; }
.cost { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.cost small { color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.cost strong { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; }
.cost span { color: var(--muted); font-size: .82rem; }
.cost.is-total { background: var(--bg-dark); border-color: var(--bg-dark); }
.cost.is-total small, .cost.is-total span { color: #94a3b8; }
.cost.is-total strong { color: #fff; }

/* ---------- Scheda: link video, prenotazione ---------- */
.side-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 6px; font-weight: 700; font-size: .9rem; }
.side-link .icon { width: 18px; height: 18px; }
.steps-list { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.calc-field .small { display: inline-block; margin-top: 8px; }

/* ---------- Pagina statica (contenuto prima del caricamento di JavaScript) ---------- */
.prerender { padding-top: 26px; }
.prerender h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.prerender ul { columns: 2; padding-left: 18px; }

/* ---------- Gestionale: immagini social ---------- */
.story-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.story-preview { display: grid; place-items: center; padding: 14px; border-radius: 16px; background: #e2e8f0; }
.story-preview canvas { display: block; width: auto; max-width: 100%; max-height: 62vh; height: auto; border-radius: 10px; box-shadow: var(--shadow); }
.st-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.st-photos button { padding: 0; width: 76px; height: 54px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #e2e8f0; opacity: .75; }
.st-photos button.is-active { border-color: var(--primary); opacity: 1; }
.st-photos img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Attività locale: titolare, vantaggi, consegne, zone ---------- */
.owner-avatar { display: block; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.owner-avatar.is-initials { display: grid; place-items: center; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1rem; }
.owner-avatar.is-xl { width: 120px; height: 120px; font-size: 2.6rem; border-width: 4px; }
.owner-mini { color: inherit; }
.owner-mini:hover { text-decoration: none; background: var(--primary-soft); }
.owner-mini span { display: block; }
.owner-block { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.owner-photo { position: relative; }
.owner-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.owner-photo-ph { display: grid; place-items: center; align-content: center; gap: 14px; aspect-ratio: 4 / 5; max-height: 460px; width: 100%; border-radius: 24px; background: linear-gradient(150deg, var(--primary-soft), #f1f5f9); border: 2px dashed var(--primary-line); text-align: center; padding: 20px; }
.owner-photo-ph small { color: var(--muted); font-weight: 600; max-width: 220px; }
.owner-years { position: absolute; left: 18px; bottom: 18px; padding: 10px 16px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font-weight: 600; font-size: .9rem; }
.owner-years strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--primary); margin-right: 4px; }
.owner-text h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.25; }
.owner-text > p { color: var(--ink-2); font-size: 1.05rem; }
.owner-sign { display: flex; align-items: center; gap: 12px; margin: 18px 0 22px; }
.owner-sign strong { display: block; }
.owner-sign span { color: var(--muted); font-size: .9rem; }
.owner-quote { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 18px; border-radius: 16px; background: var(--primary-soft); font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.owner-quote small { display: block; margin-top: 6px; font-size: .85rem; font-weight: 500; color: var(--muted); }
.hero-sell { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: .93rem; box-shadow: var(--shadow); max-width: 100%; }
.hero-sell:hover { text-decoration: none; background: #fff; }
.hero-sell .icon { width: 20px; height: 20px; color: var(--primary); flex: none; }
.hero-sell strong { color: var(--primary); }
.finder-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 28px 32px; border-radius: 22px; background: linear-gradient(120deg, #ecfdf5, var(--primary-soft)); border: 1px solid var(--primary-line); }
.finder-band h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 4px; }
.finder-band p { margin: 0; color: var(--ink-2); }
.finder-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--primary); color: #fff; }
.finder-ico .icon { width: 28px; height: 28px; }
.deliveries { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.delivery { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.delivery-img { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); display: grid; place-items: center; }
.delivery-img img { width: 100%; height: 100%; object-fit: cover; }
.delivery-img .icon { width: 40px; height: 40px; color: var(--muted); }
.delivery .sample, .about-place .sample { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.delivery figcaption { padding: 14px 16px 16px; display: grid; gap: 2px; }
.delivery figcaption span { color: var(--muted); font-size: .88rem; }
.delivery figcaption em { margin-top: 6px; color: var(--ink-2); font-size: .92rem; }
.zones { margin-top: 30px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.zones h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.zones h3 .icon { color: var(--primary); }
.zone-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.zone-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.zone-links a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.zone-links .icon { width: 14px; height: 14px; }
.footer-zones { padding-top: 18px; padding-bottom: 4px; font-size: .82rem; color: #94a3b8; line-height: 1.9; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-zones a { color: #cbd5e1; }
.checks { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.checks-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.checks-list li { display: flex; gap: 9px; align-items: flex-start; font-size: .95rem; }
.checks-list .icon { width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 50%; background: #dcfce7; color: var(--green); stroke-width: 2.6; }
.checks-sign { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }
.checks-sign .icon { color: var(--primary); flex: none; }
.about-checks .checks-list { grid-template-columns: 1fr; }
.about-hero { padding: 48px 0 56px; background: radial-gradient(1000px 400px at 85% -10%, color-mix(in srgb, var(--primary) 30%, transparent), transparent), var(--bg-dark); color: #e2e8f0; }
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.about-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.2; }
.about-hero .breadcrumb, .about-hero .breadcrumb a { color: #cbd5e1; }
.about-hero .eyebrow { color: #93c5fd; }
.about-hero .owner-sign span { color: #94a3b8; }
.about-hero .owner-sign strong { color: #fff; }
.about-hero .owner-photo-ph { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); max-height: 420px; }
.about-hero .owner-photo-ph small { color: #cbd5e1; }
.about-hero .owner-years { color: var(--ink); }
.about-story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; }
.about-story p { color: var(--ink-2); font-size: 1.04rem; }
.about-place { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-place img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.about-place-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .95); font-size: .88rem; }
.about-place-cap .icon { color: var(--primary); flex: none; }
.about-place-cap strong { display: block; }
.sold-title { margin: 34px 0 12px; }
.finder-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: -34px; position: relative; }
.finder-layout .wizard { max-width: none; margin: 0; }
.finder-h { font-size: 1.3rem; margin: 6px 0 16px; }
.finder-h + .field { margin-top: 0; }
form .finder-h:not(:first-child) { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.finder-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h, 72px) + 16px); }
.finder-side .panel { padding: 20px; }
.finder-side h3 { font-size: 1.05rem; }
.finder-side .mini-list { grid-template-columns: 1fr; margin-bottom: 10px; }
.finder-tip p { color: var(--ink-2); font-style: italic; }
.finder-tip .owner-sign { margin: 0 0 12px; }
.segmented.wrap span { padding: 8px 14px; }
.more-filters { border-top: 1px solid var(--line); padding-top: 4px; }
.more-filters > summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; cursor: pointer; font-weight: 700; color: var(--primary); list-style: none; }
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filters > summary .icon { width: 18px; height: 18px; }
.more-filters > summary .icon:last-child { margin-left: auto; transition: transform .2s; }
.more-filters[open] > summary .icon:last-child { transform: rotate(180deg); }
.tx-area { font-family: var(--font); font-size: .92rem; line-height: 1.5; min-height: 260px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-inner { justify-content: space-between; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-card { grid-template-columns: 1fr 1fr; }
  .search-card .btn { grid-column: 1 / -1; }
  .services, .reviews { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .admin-form .form-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .section { padding: 54px 0; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .finance-block, .visit-grid, .two-col, .cta-band { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 26px; }
  .cta-band .cta-actions { justify-content: flex-start; }
  .sell-benefits { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }

  /* Bacheca: filtri a scomparsa */
  .inv-layout { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .filters-btn { display: inline-flex; }
  .filters {
    position: fixed; inset: 0; z-index: 220; top: 0; max-height: none;
    padding: 0; background: #fff; overflow-y: auto;
    transform: translateY(100%); transition: transform .3s ease; visibility: hidden;
  }
  .filters.is-open { transform: none; visibility: visible; }
  #close-filters { display: inline-grid; }
  .filters-inner { padding: 0 18px 110px; }
  .filters-head { position: sticky; top: 0; z-index: 2; background: #fff; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .filters-mobile-foot { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 18px; background: #fff; border-top: 1px solid var(--line); }
  .filters-mobile-foot .btn { flex: 1; }

  /* Scheda auto */
  .detail-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "side" "content"; row-gap: 22px; }
  .side-box { position: static; box-shadow: none; }
  .side-box h1 { font-size: 1.55rem; }
  .calc { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 115;
    display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; align-items: center;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(15, 23, 42, .5);
  }
  .sticky-cta .sc-price { display: flex; flex-direction: column; line-height: 1.1; padding-right: 4px; white-space: nowrap; }
  .sticky-cta .sc-price strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; }
  .sticky-cta .sc-price small { color: var(--muted); font-size: .74rem; }
  body.has-sticky-cta .compare-bar { bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.has-sticky-cta.has-compare-bar .toasts { bottom: 170px; }
  .sticky-cta .btn { min-height: 46px; padding: 0 12px; }
  body.has-sticky-cta { padding-bottom: 76px; }
  body.has-sticky-cta .chat-widget { bottom: 88px; }
  body.has-sticky-cta .wa-float { display: none; }
  body.has-sticky-cta .toasts { bottom: 90px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .hide-mobile { display: none !important; }
  .hero-inner { padding: 56px 0 40px; }
  .search-card { grid-template-columns: 1fr; padding: 12px; }
  .car-grid { grid-template-columns: 1fr; gap: 16px; }
  .car-card.is-list { flex-direction: column; }
  .car-card.is-list .car-media { width: 100%; max-width: none; aspect-ratio: 16 / 10.5; min-height: 0; }
  .car-card.is-list .car-specs { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 16px 10px; gap: 10px; }
  .trust-item .ti-icon { width: 40px; height: 40px; }
  .services, .reviews, .contact-cards { grid-template-columns: 1fr; }
  .form-grid, .admin-form .form-grid { grid-template-columns: 1fr; }
  .opt-list { columns: 1; }
  .summary-list { grid-template-columns: 1fr; }
  .sell-benefits { grid-template-columns: 1fr; }
  .gallery-main { border-radius: 12px; }
  .gallery-nav { width: 38px; height: 38px; }
  .gallery-thumbs button { width: 80px; height: 56px; }
  .side-box { padding: 18px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .chat-widget { right: 14px; bottom: 14px; }
  .wa-float { height: 58px; width: 58px; padding: 0; justify-content: center; }
  .wa-float-label { display: none; }
  .compare-bar-inner { min-height: 60px; gap: 10px; }
  .compare-bar-items { display: none; }
  .compare-bar-summary { display: inline-flex; }
  body.has-compare-bar .chat-widget { bottom: 80px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .inv-toolbar .select { flex: 1; }
  .section-head { margin-bottom: 20px; }
}

/* Nuove funzioni: adattamento a tablet e smartphone */
@media (max-width: 900px) {
  .story-tool { grid-template-columns: 1fr; }
  .story-preview canvas { max-height: 46vh; }
}
@media (max-width: 640px) {
  .search-card.smart-card { grid-template-columns: 1fr; }
  .smart-input input { min-height: 52px; font-size: 1rem; }
  .smart-card .btn { min-height: 50px; }
  .search-tabs button { padding: 8px 12px; font-size: .84rem; }
  .promo-inner { font-size: .82rem; flex-wrap: wrap; gap: 2px 8px; padding-right: 40px; }
  .promo-inner > .icon { display: none; }
  .costs { padding: 16px; }
  .costs-grid { grid-template-columns: 1fr 1fr; }
  .cost.is-total { grid-column: 1 / -1; }
  .cost strong { font-size: 1.25rem; }
  .prerender ul { columns: 1; }
  .save-search { margin-left: 0; }
  .smart-bar { padding-left: 12px; }
  .smart-bar input { font-size: .95rem; }
}

/* Smartphone molto piccoli (320-400 px) */
@media (max-width: 400px) {
  .btn { white-space: normal; line-height: 1.2; text-align: center; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .side-ctas .row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .inv-toolbar .select { min-width: 0; width: 100%; }
  .price { font-size: 1.3rem; }
  .stats { gap: 10px; }
  .stat { padding: 18px 8px; }
  .stat strong { font-size: 1.7rem; }
}

/* ---------- Chat con assistente IA ---------- */
.chat-widget.has-ai .chat-panel { width: min(390px, calc(100vw - 28px)); display: flex; flex-direction: column; max-height: min(640px, calc(100vh - 110px)); max-height: min(640px, calc(100dvh - 110px)); }
.chat-widget.has-ai .chat-head { background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary) 60%, #090a0d)); }
.chat-widget.has-ai .chat-avatar { color: var(--primary); }
.chat-widget.has-ai .chat-head small { color: #dbeafe; }
.chat-reset { margin-left: auto; padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: transparent; color: #fff; font-size: .72rem; font-weight: 700; cursor: pointer; }
.chat-reset:hover { background: rgba(255, 255, 255, .12); }
.chat-reset + .icon-btn { margin-left: 4px; }
.chat-widget.has-ai .chat-body { flex: 1; min-height: 200px; max-height: none; background: #f1f5f9; display: flex; flex-direction: column; gap: 10px; }
.cmsg { display: flex; flex-direction: column; gap: 8px; }
.cmsg.is-user { align-items: flex-end; }
.cmsg.is-bot { align-items: flex-start; }
.cbubble { max-width: 88%; padding: 9px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); overflow-wrap: anywhere; }
.cbubble p { margin: 0 0 6px; }
.cbubble p:last-child, .cbubble ul:last-child { margin-bottom: 0; }
.cbubble ul { margin: 0 0 6px; padding-left: 18px; }
.is-bot .cbubble { background: #fff; border-top-left-radius: 4px; color: var(--ink); }
.is-user .cbubble { background: var(--primary); color: #fff; border-top-right-radius: 4px; }
.ccars { display: grid; gap: 6px; width: 92%; }
.ccars .mini-card { background: #fff; }
.cwa { align-self: flex-start; }
.cquick { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.cquick button { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--primary-line); background: #fff; color: var(--primary); font-size: .82rem; font-weight: 600; cursor: pointer; text-align: left; }
.cquick button:hover { background: var(--primary-soft); }
.ctyping { display: inline-flex; gap: 4px; padding: 12px 14px; }
.ctyping i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: ctyping 1s infinite ease-in-out; }
.ctyping i:nth-child(2) { animation-delay: .15s; }
.ctyping i:nth-child(3) { animation-delay: .3s; }
@keyframes ctyping { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-input textarea { flex: 1; resize: none; min-height: 40px; max-height: 110px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: .93rem; line-height: 1.35; }
.chat-input textarea:focus { outline: none; border-color: var(--primary); }
.chat-send { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; background: var(--primary); color: #fff; cursor: pointer; }
.chat-send .icon { width: 20px; height: 20px; }
.chat-handoff { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 12px 4px; padding: 9px 12px; border-radius: 12px; background: var(--wa); color: #fff; font-weight: 700; font-size: .88rem; }
.chat-handoff:hover { background: var(--wa-dark); text-decoration: none; }
.chat-handoff .icon { width: 18px; height: 18px; }
.chat-widget.has-ai .chat-foot { padding: 4px 10px; border-top: 0; }
.chat-note { margin: 0; padding: 0 14px 10px; font-size: .7rem; color: var(--muted); text-align: center; }
.ai-float { background: var(--primary); }
.ai-float:hover { background: color-mix(in srgb, var(--primary) 80%, #000); }
.ask-ai { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--primary); font-weight: 650; font-size: .9rem; cursor: pointer; }
.ask-ai .icon { width: 17px; height: 17px; }
@media (max-width: 640px) {
  .chat-widget.has-ai .chat-panel { position: fixed; left: 10px; right: 10px; bottom: 84px; width: auto; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); }
  body.has-sticky-cta .chat-widget.has-ai .chat-panel { bottom: 84px; max-height: calc(100dvh - 96px); z-index: 130; }
}

.main-nav a { white-space: nowrap; }
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-inner { justify-content: space-between; }
}

/* Attività locale: tablet e smartphone */
@media (max-width: 900px) {
  .owner-block, .about-hero-grid, .about-story, .finder-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .owner-photo { max-width: 420px; }
  .owner-photo-ph { max-height: 300px; aspect-ratio: auto; min-height: 220px; }
  .about-hero .owner-photo { order: -1; max-width: 320px; }
  .finder-band { grid-template-columns: auto minmax(0, 1fr); padding: 24px; }
  .finder-band .btn { grid-column: 1 / -1; justify-self: start; }
  .finder-side { position: static; }
}
@media (max-width: 640px) {
  .finder-band { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px; }
  .finder-ico { width: 48px; height: 48px; border-radius: 14px; }
  .finder-band .btn { width: 100%; }
  .checks-list { grid-template-columns: 1fr; }
  .hero-sell { font-size: .86rem; padding: 9px 12px; }
  .hero-sell > .icon:last-child { display: none; }
  .owner-avatar.is-xl { width: 96px; height: 96px; font-size: 2rem; }
  .about-hero { padding: 32px 0 40px; }
  .zones { padding: 16px; }
  .finder-layout { margin-top: -24px; }
}

/* Luxury interactive transitions preserved across Windows OS visual settings */

/* ---------- Stampa (scheda auto e cartello vetrina) ---------- */
.print-sticker { display: none; }
@media print {
  @page { margin: 14mm; }
  body { font-size: 12pt; }
  .topbar, .site-header, .site-footer, .chat-widget, .compare-bar, .sticky-cta, .toasts, .cookie-banner, .preview-bar,
  .gallery-nav, .gallery-thumbs, .gallery-zoom, .gallery-counter, .side-ctas, .side-actions, .breadcrumb, .no-print, .calc, .fav-btn { display: none !important; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-box { position: static; box-shadow: none; border: 1px solid #ccc; }
  .gallery-main { aspect-ratio: auto; background: none; }
  .gallery-main img { max-height: 90mm; object-fit: contain; }
  .detail-section { break-inside: avoid; }
  a { color: inherit; }
  body.printing-sticker > *:not(.print-sticker) { display: none !important; }
  body.printing-sticker .print-sticker { display: block !important; position: static !important; padding: 0 !important; background: none !important; overflow: visible !important; }
  .ps-toolbar { display: none !important; }
  .ps-sheet { box-shadow: none !important; padding: 0 !important; max-width: none !important; }
}
/* Anteprima a schermo del cartello */
.print-sticker.is-preview { display: block; position: fixed; inset: 0; z-index: 500; overflow: auto; background: #e5e7eb; padding: 0 16px 40px; }
.ps-toolbar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 794px; margin: 0 auto 16px; padding: 14px 0; background: #e5e7eb; font-family: var(--font); }
.ps-toolbar strong { margin-right: auto; }
.ps-sheet { max-width: 794px; margin: 0 auto; padding: 48px; background: #fff; box-shadow: var(--shadow-lg); }
.print-sticker { font-family: var(--font); color: #000; }
.print-sticker .ps-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #000; padding-bottom: 10px; margin-bottom: 16px; }
.print-sticker .ps-brand { font-family: var(--font-head); font-size: 22pt; font-weight: 800; }
.print-sticker h1 { font-size: 34pt; margin: 0; }
.print-sticker .ps-version { font-size: 16pt; margin: 4px 0 16px; }
.print-sticker .ps-price { font-family: var(--font-head); font-size: 54pt; font-weight: 800; margin: 6px 0; }
.print-sticker .ps-rata { font-size: 15pt; margin-bottom: 18px; }
.print-sticker .ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 30px; font-size: 14pt; margin-bottom: 18px; }
.print-sticker .ps-grid div { display: flex; justify-content: space-between; border-bottom: 1px solid #999; padding: 5px 0; }
.print-sticker .ps-opt { font-size: 11pt; columns: 2; margin: 0 0 18px; padding-left: 18px; }
.print-sticker .ps-foot { display: flex; gap: 24px; align-items: center; border-top: 3px solid #000; padding-top: 14px; }
.print-sticker .ps-qr { width: 150px; height: 150px; flex: none; }
.print-sticker .ps-qr img, .print-sticker .ps-qr canvas { width: 150px !important; height: 150px !important; }
.print-sticker .ps-contacts { font-size: 14pt; }
.print-sticker .ps-contacts strong { font-size: 16pt; }

/* ==========================================================================
   SEMPLIFICAZIONE & ACCESSIBILITÀ INTUITIVA (MB MOTORSPORT)
   ========================================================================== */

/* 1. Grandi Action Cards nella Hero */
.hero-action-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 20px;
}
.hac-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.16), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  border: 2px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.hac-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.25);
  text-decoration: none;
  border-color: currentColor;
}
.hac-cars {
  border-top: 5px solid #dc2626;
  color: var(--ink);
}
.hac-cars .hac-icon {
  background: #fee2e2;
  color: #dc2626;
}
.hac-cars .hac-btn {
  background: #dc2626;
  color: #fff;
}
.hac-wa {
  border-top: 5px solid #16a34a;
  color: var(--ink);
}
.hac-wa .hac-icon {
  background: #dcfce7;
  color: #15803d;
}
.hac-wa .hac-btn {
  background: #16a34a;
  color: #fff;
}
.hac-sell {
  border-top: 5px solid #d97706;
  color: var(--ink);
}
.hac-sell .hac-icon {
  background: #fef3c7;
  color: #b45309;
}
.hac-sell .hac-btn {
  background: #d97706;
  color: #fff;
}
.hac-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.hac-icon .icon {
  width: 28px;
  height: 28px;
}
.hac-text strong {
  display: block;
  font-size: 1.18rem;
  font-family: var(--font-head);
  color: #0f172a;
  margin-bottom: 4px;
}
.hac-text span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 16px;
}
.hac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: opacity .15s ease;
}
.hac-card:hover .hac-btn {
  opacity: .95;
}

@media (max-width: 900px) {
  .hero-action-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 22px 0 16px;
  }
  .hac-card {
    padding: 14px 16px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .hac-icon {
    margin-bottom: 0;
    flex: none;
    width: 44px;
    height: 44px;
  }
  .hac-icon .icon {
    width: 24px;
    height: 24px;
  }
  .hac-text {
    flex: 1;
    min-width: 0;
  }
  .hac-text strong {
    font-size: 1.05rem;
    margin-bottom: 2px;
  }
  .hac-text span {
    margin-bottom: 0;
    font-size: 0.82rem;
  }
  .hac-btn {
    flex: none;
    padding: 8px 12px;
    font-size: 0.84rem;
  }
}

/* 2. Barra di Ricerca Diretta e Tag Rapidi */
.hero-simple-search {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 14px;
}
.simple-search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 6px 8px 6px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  gap: 10px;
}
.simple-search-bar .ss-icon {
  width: 22px;
  height: 22px;
  color: var(--muted);
  flex: none;
}
.simple-search-bar input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 1.02rem;
  padding: 8px 0;
  color: var(--ink);
  background: transparent;
  min-width: 0;
}
.simple-search-bar .btn {
  flex: none;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
}
.hero-fast-tags {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.hft-label {
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 4px;
}
.hft-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hft-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.hft-pill:hover {
  background: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--primary);
}

/* 3. Bottoni chiari su Card Auto */
.car-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  position: relative;
  z-index: 2;
}
.btn-card-detail {
  white-space: nowrap;
  padding: 9px 10px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: var(--ink);
  transition: all .18s ease;
}
.btn-card-detail:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  text-decoration: none;
}
.btn-card-detail .icon {
  width: 16px;
  height: 16px;
}
.btn-card-wa {
  padding: 9px 10px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-card-wa .icon {
  width: 18px;
  height: 18px;
}

/* 4. Barra Scorrevole Categorie Rapide (auto.html) */
.quick-category-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 16px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.quick-category-scroll::-webkit-scrollbar {
  display: none;
}
.qc-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all .18s ease;
}
.qc-pill:hover, .qc-pill.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  text-decoration: none;
}

/* 5. Barra Rapida Mobile Fissa in Basso */
.mobile-bottom-bar {
  display: none;
}
@media (max-width: 768px) {
  body.has-mobile-bottom-bar {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(9, 10, 13, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
  }
  .mbb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mbb-item .icon {
    width: 20px;
    height: 20px;
  }
  .mbb-item:active, .mbb-item.is-active {
    color: #ffffff;
    text-decoration: none;
  }
  .mbb-item.mbb-wa {
    color: #4ade80;
  }
  .mbb-item.mbb-wa:active {
    color: #22c55e;
  }
  .mbb-item.mbb-call {
    color: #f87171;
  }
  .mbb-item.mbb-call:active {
    color: #ef4444;
  }
  .chat-widget {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .sticky-cta {
    bottom: 0 !important;
    z-index: 110;
  }
  body.has-sticky-cta .mobile-bottom-bar {
    display: none !important;
  }
  body.has-sticky-cta {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Sezione Azioni Rapide (Sotto il Banner Hero) */
.section-quick-actions {
  background: #f8fafc;
  padding: 36px 0 32px;
  border-bottom: 1px solid var(--line);
}
.sqa-header {
  margin-bottom: 20px;
}
.sqa-header h2 {
  font-size: 1.65rem;
  margin: 4px 0 6px;
  color: var(--ink);
}
.sqa-header p {
  margin: 0;
  font-size: .95rem;
}
.hero-fast-tags.is-light .hft-label {
  color: var(--ink);
  font-size: 0.9rem;
}
.hero-fast-tags.is-light .hft-pill {
  background: #ffffff;
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.hero-fast-tags.is-light .hft-pill:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}


/* ---------- Showroom Section MB Motorsport ---------- */
.showroom-section {
  padding: 64px 0;
  background: var(--bg-soft);
}
.showroom-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  padding: 24px;
}
.showroom-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  background: #090a0d;
}
.showroom-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.showroom-card:hover .showroom-media img {
  transform: scale(1.02);
}
.showroom-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(9, 10, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.showroom-badge .icon {
  width: 14px;
  height: 14px;
  color: #ef4444;
}
.showroom-content {
  padding: 12px 16px 12px 0;
}
.showroom-content h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 12px;
  color: var(--ink);
  line-height: 1.25;
}
.showroom-content .lead {
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.showroom-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.showroom-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink);
}
.showroom-features .icon {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
}
.showroom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 900px) {
  .hero { min-height: 400px; }
  .hero-bg img { object-position: 65% 35%; }
  .hero::before { background: linear-gradient(180deg, rgba(9, 10, 13, 0.85) 0%, rgba(9, 10, 13, 0.75) 45%, rgba(9, 10, 13, 0.90) 100%); }
  .showroom-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }
  .showroom-content {
    padding: 0 4px;
  }
  .showroom-actions .btn {
    width: 100%;
  }
}



/* ---------- Hero Home: Ricerca e Servizi Centrati ---------- */
.hero.hero-home {
  position: relative;
  background: radial-gradient(circle at 50% 25%, #17181c 0%, #090a0d 70%, #050608 100%);
  padding: clamp(52px, 6.5vw, 84px) 0 clamp(44px, 5.5vw, 70px);
  min-height: auto;
  overflow: hidden;
  text-align: center;
}
.hero.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(29, 78, 216, 0.16) 0%, transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.12) 0%, transparent 55%);
  pointer-events: none;
}
.hero-home-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero.hero-home h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  line-height: 1.15;
  margin: 14px 0 16px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero.hero-home h1 span { color: #ef4444; }
.hero.hero-home .hero-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero.hero-home .hero-simple-search {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5);
  border-radius: 18px;
}
.hero.hero-home .hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  margin-top: 24px;
}
.hero.hero-home .hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: clamp(0.86rem, 1.5vw, 0.94rem);
  color: #e2e8f0;
}
.hero.hero-home .hero-badges .icon {
  width: 18px;
  height: 18px;
  color: #4ade80;
}

/* ---------- Hero Split: Foto Concessionaria in Cornice & Testi Affiancati ---------- */
.hero.hero-split {
  position: relative;
  background: radial-gradient(circle at 85% 30%, #17181c 0%, #090a0d 70%, #050608 100%);
  padding: 60px 0 54px;
  min-height: auto;
  overflow: hidden;
}
.hero.hero-split::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 55%),
              radial-gradient(circle at 85% 80%, rgba(239, 68, 68, 0.12) 0%, transparent 55%);
  pointer-events: none;
}
.hero-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-split-content h1 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.15;
  margin: 14px 0 16px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-split-content h1 span { color: #ef4444; }
.hero-split-content .hero-lead {
  font-size: 1.08rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 24px;
}
.hero-split-content .hero-simple-search {
  margin-top: 0;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.45);
}
.hero-split-content .hero-badges {
  margin-top: 22px;
  gap: 10px 18px;
}
.hero-split-content .hero-badges span {
  font-size: 0.9rem;
  color: #e2e8f0;
}

/* La Cornice (Dealership Luxury Frame) */
.hero-split-frame-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.dealership-frame {
  position: relative;
  width: 100%;
  max-width: 680px;
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dealership-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.dealership-frame-glass {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.dealership-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease;
}
.dealership-frame:hover .dealership-frame-img {
  transform: scale(1.02);
}
.dealership-frame-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(9, 10, 13, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.dealership-frame-badge .icon {
  width: 15px;
  height: 15px;
  color: #ef4444;
}
.dealership-frame-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(9, 10, 13, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e2e8f0;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.dealership-frame-caption .icon {
  width: 16px;
  height: 16px;
  color: #ef4444;
  flex-shrink: 0;
}

/* Responsive per tablet e smartphone */
@media (max-width: 960px) {
  .hero.hero-split {
    padding: 36px 0 40px;
  }
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-split-frame-wrap {
    order: 1;
    margin-bottom: 22px;
  }
  .hero-split-content {
    order: 2;
  }
  .hero-split-content h1 {
    font-size: 1.95rem;
  }
  .dealership-frame {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .dealership-frame {
    padding: 6px;
    border-radius: 20px;
  }
  .dealership-frame-glass {
    border-radius: 14px;
  }
  .dealership-frame-badge {
    top: 10px;
    left: 10px;
    font-size: 0.74rem;
    padding: 4px 10px;
  }
  .dealership-frame-caption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    font-size: 0.76rem;
    padding: 6px 10px;
  }
}


/* ==========================================================================
   AGGIORNAMENTO RESPONSIVE PERFETTO: MOBILE, TABLET & DESKTOP
   Risolve qualsiasi fuoriuscita di testo, bottoni e immagini dallo schermo
   ========================================================================== */

/* 1. Prevenzione globale overflow */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
img, picture, video, canvas {
  max-width: 100%;
  height: auto;
}
svg:not(.icon):not(.body-icon) {
  max-width: 100%;
  height: auto;
}
h1, h2, h3, h4, p, span, strong, a, label {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* Nascondi topbar sotto 1120px per evitare overflow indirizzo e orari */
@media (max-width: 1120px) {
  .topbar {
    display: none !important;
  }
}

/* 2. Hero Split & Cornice Concessionaria (Desktop, Tablet, Mobile) */
.hero.hero-split {
  padding: clamp(36px, 5vw, 64px) 0 clamp(32px, 4.5vw, 54px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.hero-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: center;
  width: 100%;
  max-width: 100%;
}
.hero-split-content {
  min-width: 0;
  width: 100%;
}
.hero-split-content h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.85rem);
  line-height: 1.18;
  margin: 10px 0 14px;
}
.hero-split-content .hero-lead {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.55;
  margin-bottom: 20px;
}
.hero-split-content .hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
}
.hero-split-content .hero-badges span {
  font-size: clamp(0.8rem, 1.8vw, 0.88rem);
}

/* Cornice Showroom */
.hero-split-frame-wrap {
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
.dealership-frame {
  width: 100%;
  max-width: 660px;
  min-width: 0;
  padding: clamp(6px, 1.2vw, 10px);
  border-radius: clamp(18px, 2.5vw, 26px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
}
.dealership-frame-glass {
  position: relative;
  width: 100%;
  border-radius: clamp(14px, 2vw, 18px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}
.dealership-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.dealership-frame-badge {
  position: absolute;
  top: clamp(8px, 1.8vw, 14px);
  left: clamp(8px, 1.8vw, 14px);
  background: rgba(9, 10, 13, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: clamp(4px, 1vw, 6px) clamp(10px, 1.6vw, 14px);
  border-radius: 999px;
  font-size: clamp(0.74rem, 1.6vw, 0.82rem);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.dealership-frame-footer {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(9, 10, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e2e8f0;
  font-size: clamp(0.76rem, 1.8vw, 0.84rem);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}
.dealership-frame-footer .icon {
  width: 15px;
  height: 15px;
  color: #ef4444;
  flex-shrink: 0;
}
.dealership-frame-footer span {
  min-width: 0;
}

/* Tablet e Mobile Breakpoint per Hero (<= 1024px) */
@media (max-width: 1024px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-split-content {
    text-align: center;
    align-items: center;
  }
  .hero-split-content .hero-badges {
    justify-content: center;
  }
  .hero-split-content .hero-simple-search {
    width: 100%;
    max-width: 620px;
  }
}

/* Mobile Search Bar & Fast Tags */
@media (max-width: 640px) {
  .hero-simple-search {
    padding: 8px 10px;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .simple-search-bar {
    padding: 4px 6px 4px 12px;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .simple-search-bar input {
    font-size: 0.92rem;
    min-width: 0;
  }
  .simple-search-bar .btn {
    padding: 8px 16px;
    font-size: 0.88rem;
    min-height: 40px;
    flex-shrink: 0;
  }
}
@media (max-width: 380px) {
  .simple-search-bar {
    padding: 4px 4px 4px 10px;
    gap: 4px;
  }
  .simple-search-bar .btn {
    padding: 8px 10px;
  }
  .simple-search-bar .btn span {
    display: none;
  }
}

/* 3. Action Cards (3 card sotto Hero) */
@media (max-width: 1024px) {
  .hero-action-cards {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .hac-card {
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 20px !important;
    text-align: left !important;
  }
  .hac-icon {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }
  .hac-text {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .hac-text strong {
    font-size: 1.12rem !important;
    margin-bottom: 3px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
  .hac-text span {
    margin-bottom: 0 !important;
    font-size: 0.88rem !important;
    white-space: normal !important;
    word-break: normal !important;
  }
  .hac-btn {
    padding: 10px 16px !important;
    font-size: 0.88rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
}
@media (max-width: 480px) {
  .hac-card {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
    padding: 18px 16px !important;
  }
  .hac-icon {
    margin: 0 auto 10px !important;
  }
  .hac-text strong {
    font-size: 1.15rem !important;
    margin-bottom: 4px !important;
  }
  .hac-text span {
    margin-bottom: 12px !important;
  }
  .hac-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 14px !important;
    font-size: 0.92rem !important;
  }
}

/* 4. Showroom MB Motorsport Section */
@media (max-width: 1024px) {
  .showroom-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }
  .showroom-content {
    padding: 0;
  }
}
@media (max-width: 640px) {
  .showroom-section {
    padding: 40px 0;
  }
  .showroom-card {
    padding: 14px;
    border-radius: 18px;
  }
  .showroom-content h2 {
    font-size: 1.45rem;
  }
  .showroom-features li {
    font-size: 0.88rem;
    align-items: flex-start;
  }
  .showroom-features .icon {
    margin-top: 2px;
  }
  .showroom-actions {
    flex-direction: column;
    gap: 10px;
  }
  .showroom-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* 5. Griglia Auto & Card Dettagli */
.car-card {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.car-body {
  min-width: 0;
}
.car-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.car-version {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 420px) {
  .car-card-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .btn-card-detail, .btn-card-wa {
    padding: 10px 12px;
    font-size: 0.88rem;
    width: 100%;
  }
  .car-specs {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* 6. Striscia Fiducia & Numeri */
@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-item:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }
  .trust-item:nth-child(2n+1) {
    border-left: 0;
  }
}
@media (max-width: 580px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .trust-item {
    border-left: 0 !important;
    border-top: 1px solid var(--line);
    padding: 14px 12px;
  }
  .trust-item:first-child {
    border-top: 0;
  }
}

/* 7. Scheda Auto e Pagine di Dettaglio */
.detail-grid {
  min-width: 0;
  width: 100%;
}
.d-gallery, .d-side, .d-content {
  min-width: 0;
}
.spec-grid {
  min-width: 0;
}
.desc {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
@media (max-width: 640px) {
  .opt-list {
    columns: 1 !important;
  }
  .gallery-thumbs button {
    width: 76px;
    height: 52px;
  }
}

/* 8. Pagina Contatti e Chi Siamo */
.contact-showroom-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-location-card, .two-col, .visit-grid {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 1024px) {
  .two-col, .visit-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
}


/* Stili specifici etichette autentiche sulle card auto */
.tag-neo {
  background: #16a34a !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.45);
}
.tag-awd {
  background: #0284c7 !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}
.tag-hybrid {
  background: #059669 !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35);
}
.tag-gpl {
  background: #d97706 !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}
.tag-owner {
  background: #1e293b !important;
  color: #fff !important;
  font-weight: 700;
}
.tag-custom {
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
}
.car-media img {
  transition: transform .4s ease, opacity .22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.car-media img.is-changing {
  opacity: .38 !important;
}

@media (max-width: 640px) {
  .header-actions .btn-wa span {
    display: none;
  }
  .header-actions .btn-wa {
    padding: 0 10px;
    min-height: 38px;
    border-radius: 999px;
  }
}

/* MB Motorsport Brand Identity Styles (Dark Luxury Header & Badges) */
.site-header {
  background: rgba(9, 10, 13, 0.94) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}
.site-header.is-scrolled {
  background: rgba(9, 10, 13, 0.98) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border-bottom: 1px solid rgba(239, 68, 68, 0.35) !important;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.75) !important;
}
.site-header .main-nav a {
  color: #f1f5f9 !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 8px 16px !important;
  border-radius: 9999px !important;
  transition: all 0.2s ease !important;
}
.site-header .main-nav a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}
.site-header .main-nav a.is-active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45) !important;
}
.site-header .icon-btn {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 9999px !important;
  transition: all 0.2s ease !important;
}
.site-header .icon-btn:hover {
  background: rgba(220, 38, 38, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #ffffff !important;
}
.site-header .icon-btn .count-badge {
  background: #dc2626 !important;
  color: #ffffff !important;
  border: 2px solid #090a0d !important;
}
.site-header .header-phone-btn {
  color: #4ade80 !important;
  background: rgba(34, 197, 94, 0.2) !important;
  border: 1px solid rgba(34, 197, 94, 0.45) !important;
}

.logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  flex: none !important;
}
.logo picture {
  display: flex !important;
  align-items: center !important;
}
.logo-img, .logo-wordmark {
  height: 38px !important;
  width: auto !important;
  max-width: 250px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45)) !important;
}
.logo-badge {
  display: none !important;
}

@media (max-width: 640px) {
  .logo-img, .logo-wordmark {
    height: 32px !important;
    max-width: 200px !important;
  }
}
@media (max-width: 380px) {
  .logo-img, .logo-wordmark {
    max-width: 175px !important;
    height: 28px !important;
  }
}

/* ==========================================================================
   PERFORMANCE & ULTRA-HIGH REFRESH RATE (120Hz, 144Hz, 240Hz, 300Hz)
   ========================================================================== */
html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Eliminate 300ms mobile touch delay */
button, a, input, select, textarea, .car-card, .btn, .hac-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Card & Media mobile-safe rendering - 100% stable, zero crash */
.car-card {
  position: relative;
}

.dealership-frame-img {
  image-rendering: auto;
}

body, main, .car-grid, .steps, .services {
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   FLUID TOUCH SWIPE & ANIMATIONS (iOS Safari / Android)
   ========================================================================== */
.car-media {
  touch-action: pan-y pinch-zoom !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  overflow: hidden !important;
  position: relative;
}

.car-media img {
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
}

.gallery-main {
  touch-action: pan-y pinch-zoom !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  overflow: hidden !important;
  position: relative;
}

.gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
}

.lightbox {
  touch-action: pan-y pinch-zoom !important;
}

.lightbox img {
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease !important;
}

/* Freccia hover & click animation */
.gallery-nav {
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s, box-shadow 0.2s !important;
}
.gallery-nav:active {
  transform: translateY(-50%) scale(0.92) !important;
}
.gallery-nav.is-disabled, .card-nav.is-disabled {
  opacity: 0.28 !important;
  cursor: default !important;
  pointer-events: none !important;
}


/* ==========================================================================
   MOBILE HEADER & OVERFLOW FIXES (Strict <= 390px Compliance)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
    --gutter: 14px;
  }
  .container {
    padding: 0 14px;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .promo-bar {
    padding: 6px 12px;
  }
  .promo-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 0 28px 0 0 !important;
    min-height: auto !important;
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }
  .promo-inner span {
    max-width: 100% !important;
    word-break: break-word !important;
  }
  .promo-inner a {
    font-size: 0.78rem !important;
    margin-top: 2px !important;
  }
  .header-inner {
    gap: 8px !important;
    height: 60px !important;
    padding: 0 12px !important;
    justify-content: space-between !important;
  }
  .logo {
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    align-items: center !important;
  }
  .logo-badge {
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0 !important;
  }
  .logo-wordmark {
    height: 32px !important;
    max-width: 215px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55)) !important;
  }
  .header-actions {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .header-actions .icon-btn {
    width: 38px !important;
    height: 38px !important;
  }
  .header-actions .icon-btn .icon {
    width: 20px !important;
    height: 20px !important;
  }
  .header-actions .btn-wa {
    display: none !important;
  }
  .hero-simple-search {
    width: 100%;
    max-width: 100%;
  }
  .simple-search-bar {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 380px) {
  .logo-badge {
    display: none !important;
  }
  .logo-wordmark {
    max-width: 210px !important;
    height: 32px !important;
  }
  .header-actions .icon-btn {
    width: 34px !important;
    height: 34px !important;
  }
}

/* ==========================================================================
   VEHICLE DETAIL DESCRIPTION TYPOGRAPHY & SPACING
   ========================================================================== */
.detail-description {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #334155;
  margin-top: 12px;
}
.detail-description .desc-p {
  margin: 0 0 16px 0;
  line-height: 1.75;
  color: #334155;
}
.detail-description .desc-subtitle {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
  margin: 22px 0 10px 0;
  letter-spacing: -0.01em;
}
.detail-description ul.desc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-description ul.desc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
  font-size: 0.98rem;
  color: #1e293b;
}
.detail-description ul.desc-list li .icon {
  width: 18px;
  height: 18px;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 3px;
}
.detail-description .desc-disclaimer {
  margin-top: 24px;
  padding: 14px 18px;
  background: #f8fafc;
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #64748b;
  font-style: italic;
}
.detail-description .desc-disclaimer p {
  margin: 0;
}
@media (max-width: 640px) {
  .detail-description {
    font-size: 0.98rem;
    line-height: 1.65;
  }
  .detail-description ul.desc-list {
    gap: 12px;
  }
  .detail-description ul.desc-list li {
    font-size: 0.94rem;
  }
}

/* ==========================================================================
   HIGH-REFRESH RATE (120Hz/300Hz) DISPLAY SMOOTHNESS & HARDWARE ACCELERATION
   ========================================================================== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
* {
  -webkit-tap-highlight-color: transparent;
}
.car-card, .btn, .hac-card, .dealership-frame, .trust-item, .spec {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.car-main-img {
  image-rendering: auto;
  -webkit-user-drag: none;
  user-select: none;
}

/* Responsive visit-grid and visit-card */
@media (max-width: 992px) {
  .visit-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .visit-card {
    padding: 26px 22px !important;
  }
  .visit-grid .map-box, .visit-grid .map-box iframe {
    min-height: 320px !important;
    height: 320px !important;
    aspect-ratio: 16 / 9 !important;
  }
}

@media (max-width: 768px) {
  .visit-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .visit-card {
    padding: 22px 18px !important;
    border-radius: 18px !important;
  }
  .visit-card-header h3 {
    font-size: 1.28rem !important;
  }
  .visit-address {
    font-size: 0.92rem !important;
  }
  .visit-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    padding-bottom: 16px !important;
  }
  .visit-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    font-size: 0.90rem !important;
  }
  .hours li {
    padding: 6px 10px !important;
    font-size: 0.85rem !important;
    gap: 8px !important;
  }
  .hours li .day-hours {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
  }
  .today-tag {
    font-size: 0.65rem !important;
    padding: 1px 6px !important;
    margin-left: 4px !important;
  }
  .visit-grid .map-box, .visit-grid .map-box iframe {
    min-height: 280px !important;
    height: 280px !important;
    border-radius: 18px !important;
  }
}

@media (max-width: 420px) {
  .visit-card {
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }
  .visit-card-header h3 {
    font-size: 1.18rem !important;
  }
  .visit-badge {
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
  }
  .visit-address {
    font-size: 0.86rem !important;
  }
  .visit-actions .btn {
    padding: 9px 12px !important;
    font-size: 0.86rem !important;
  }
  .hours li {
    padding: 5px 8px !important;
    font-size: 0.80rem !important;
    gap: 6px !important;
  }
  .hours li .day-name {
    font-size: 0.80rem !important;
  }
  .hours li .day-hours {
    font-size: 0.78rem !important;
    letter-spacing: -0.2px;
  }
  .today-tag {
    font-size: 0.60rem !important;
    padding: 1px 5px !important;
    margin-left: 3px !important;
  }
  .visit-grid .map-box, .visit-grid .map-box iframe {
    min-height: 240px !important;
    height: 240px !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 360px) {
  .visit-card {
    padding: 15px 10px !important;
  }
  .hours li {
    padding: 5px 6px !important;
  }
  .hours li .day-hours {
    font-size: 0.73rem !important;
    letter-spacing: -0.4px;
  }
}


/* ==========================================================================
   APPLE iOS / macOS DESIGN SYSTEM - SCHEDA AUTO & CONTROLLI
   ========================================================================== */

/* Card Controlli Scheda */
.side-box {
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* Apple Wallet Financing Pill */
.apple-rata-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 18px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.arp-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.arp-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.arp-price {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}
.arp-price small {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.arp-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.arp-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.arp-btn .icon {
  width: 14px;
  height: 14px;
}

/* Apple CTAs Container */
.apple-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Hero Apple Action: WhatsApp */
.btn-apple-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #25D366 0%, #1eb956 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-family: var(--font-body);
  box-shadow: 0 6px 20px -4px rgba(37, 211, 102, 0.42);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease;
  border: 0;
  cursor: pointer;
}
.btn-apple-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.52);
  color: #ffffff !important;
}
.btn-apple-hero:active {
  transform: scale(0.985);
  box-shadow: 0 2px 10px -2px rgba(37, 211, 102, 0.4);
}
.bah-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
}
.bah-icon .icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.bah-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}
.bah-title {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.bah-sub {
  font-size: 0.76rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Apple 2x2 Action Matrix */
.apple-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.apple-btn-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 64px;
  padding: 10px 8px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}
.apple-btn-tile:hover {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.apple-btn-tile:active {
  transform: scale(0.97);
  background: #e2e8f0;
}
.abt-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.abt-icon .icon {
  width: 20px;
  height: 20px;
}
.abt-phone .icon { color: #0284c7; }
.abt-calendar .icon { color: #dc2626; }
.abt-permuta .icon { color: #059669; }
.abt-key .icon { color: #d97706; }
.abt-info .icon { color: #64748b; }
.abt-title {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.15;
  text-align: center;
}

/* Apple Inset Navigation Group */
.apple-inset-group {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.aig-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.aig-item + .aig-item {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.aig-item:hover {
  background: #f1f5f9;
  color: var(--ink);
}
.aig-item:active {
  background: #e2e8f0;
}
.aig-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.aig-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
}
.aig-icon-badge .icon {
  width: 16px;
  height: 16px;
}
.badge-video {
  background: #e0f2fe;
  color: #0284c7;
}
.badge-ai {
  background: #f3e8ff;
  color: #7c3aed;
}
.aig-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aig-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  letter-spacing: 0.02em;
  flex: none;
}
.aig-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex: none;
}
.aig-arrow .icon {
  width: 16px;
  height: 16px;
}

/* Apple Trust List */
.apple-trust {
  list-style: none;
  padding: 16px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 9px;
  font-size: 0.88rem;
}
.apple-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}
.apple-trust .icon {
  width: 18px;
  height: 18px;
  color: #16a34a;
  flex: none;
}

/* Apple Toolbar */
.apple-toolbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.apple-toolbar button, .apple-toolbar a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border: 0;
  background: #f8fafc;
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.apple-toolbar button:hover, .apple-toolbar a:hover {
  background: #f1f5f9;
  color: var(--ink);
}
.apple-toolbar button:active {
  transform: scale(0.96);
}
.apple-toolbar .icon {
  width: 20px;
  height: 20px;
}
.apple-toolbar .is-active {
  color: var(--red);
}
.apple-toolbar .is-active .icon {
  fill: currentColor;
}
.apple-toolbar .is-active-cmp {
  color: var(--primary);
}

.apple-dealer-mini {
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   DESCRIZIONE VEICOLO - APPLE iOS DESIGN SYSTEM
   ========================================================================== */
.detail-description {
  color: var(--ink);
  line-height: 1.7;
  font-size: 1rem;
}
.desc-apple-p {
  margin: 0 0 16px;
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 0.98rem;
}
.desc-apple-title {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 750;
  color: var(--ink);
  margin: 24px 0 12px;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.desc-apple-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}
.desc-apple-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.5;
  transition: background 0.15s ease;
}
.desc-apple-list li:hover {
  background: #f1f5f9;
}
.dal-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  flex: none;
  margin-top: 1px;
}
.dal-check .icon {
  width: 14px;
  height: 14px;
}
.desc-apple-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}
.dad-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e2e8f0;
  color: #475569;
  flex: none;
  margin-top: 2px;
}
.dad-icon .icon {
  width: 16px;
  height: 16px;
}
.dad-text strong {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.dad-text p {
  margin: 0;
}

/* ==========================================================================
   MOBILE APPLE FLOATING ISLAND BAR FOR COMPARE
   ========================================================================== */
@media (max-width: 900px) {
  body.has-sticky-cta .compare-bar {
    position: fixed !important;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
    padding: 0 !important;
    z-index: 125 !important;
  }
  body.has-sticky-cta .compare-bar-inner {
    min-height: 48px !important;
    padding: 6px 14px !important;
    gap: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  body.has-sticky-cta .compare-bar-summary {
    color: #fff !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
  }
  body.has-sticky-cta .compare-bar-summary .icon {
    color: #38bdf8 !important;
    width: 16px !important;
    height: 16px !important;
  }
  body.has-sticky-cta .compare-bar-actions {
    gap: 8px !important;
  }
  body.has-sticky-cta .compare-bar-actions .link-btn {
    color: #94a3b8 !important;
    font-size: 0.78rem !important;
    padding: 4px 6px !important;
    text-decoration: underline !important;
  }
  body.has-sticky-cta .compare-bar-actions .btn {
    border-radius: 999px !important;
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    min-height: 32px !important;
    background: #dc2626 !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4) !important;
  }
  body.has-sticky-cta.has-compare-bar .toasts {
    bottom: calc(130px + env(safe-area-inset-bottom, 0px)) !important;
  }
}


/* ==========================================================================
   FOOTER: Porsche Weissach Obsidian Black & Rosso Corsa
   ========================================================================== */
.site-footer {
  background: #090a0d !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  padding: 60px 0 0;
  font-size: 0.93rem;
  line-height: 1.6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.15fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}
.site-footer h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer a:hover {
  color: #ffffff;
}

/* Footer contacts: Rosso Corsa icons */
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #cbd5e1;
}
.footer-contacts .icon {
  width: 18px;
  height: 18px;
  color: #ef4444 !important;
  flex: none;
  margin-top: 3px;
}

/* Orari footer: Porsche Weissach dark titanium + Rosso Corsa today highlight */
.site-footer .hours {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.site-footer .hours li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  font-size: 0.88rem !important;
  line-height: 1.3 !important;
  transition: background 0.15s ease;
}
.site-footer .hours li:nth-child(odd) {
  background: rgba(255, 255, 255, 0.04) !important;
}
.site-footer .hours li .day-name {
  color: #f1f5f9 !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-footer .hours li .day-hours {
  color: #94a3b8 !important;
  font-variant-numeric: tabular-nums;
  font-weight: 500 !important;
  text-align: right;
  margin-left: auto;
}
.site-footer .hours li.is-today {
  background: rgba(220, 38, 38, 0.14) !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  color: #ffffff !important;
}
.site-footer .hours li.is-today .day-name {
  color: #ffffff !important;
  font-weight: 700 !important;
}
.site-footer .hours li.is-today .day-hours {
  color: #fca5a5 !important;
  font-weight: 700 !important;
}
.site-footer .today-tag {
  background: #dc2626 !important;
  color: #ffffff !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-footer .open-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4ade80;
}

/* Footer Zones (Local SEO town chips) */
.footer-zones {
  padding: 24px var(--gutter) 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fz-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 650;
  color: #f1f5f9;
}
.fz-label .icon {
  width: 16px;
  height: 16px;
  color: #ef4444 !important;
}
.fz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fz-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  color: #94a3b8 !important;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.fz-chip:hover {
  background: rgba(220, 38, 38, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #ffffff !important;
}

/* Footer Bottom (Legal & Copyright) */
.footer-bottom {
  padding: 24px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #94a3b8;
}
.fb-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fb-copy {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.86rem;
}
.fb-copy strong {
  color: #ffffff;
}
.fb-legal {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.5;
}
.fb-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.fb-links a, .fb-links button {
  color: #94a3b8 !important;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s ease;
}
.fb-links a:hover, .fb-links button:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Extra clearance on mobile pages with sticky contact bar */
@media (max-width: 900px) {
  .site-footer {
    padding-top: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  body.has-sticky-cta .site-footer {
    padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px)) !important;
  }
}


/* ==========================================================================
   MB MOTORSPORT BRAND IDENTITY & HERO STYLING (RED / GRAPHITE / WHITE)
   ========================================================================== */

/* Topbar promozionale: Rosso Racing MB Motorsport */
.promo-bar {
  background: linear-gradient(90deg, #991b1b 0%, #dc2626 50%, #991b1b 100%) !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.promo-left {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
}
.promo-inner a {
  background: #ffffff !important;
  color: #991b1b !important;
  border-radius: 999px !important;
  padding: 4px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  margin-left: 8px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}
.promo-inner a:hover {
  background: #f8fafc !important;
  transform: translateY(-1px) !important;
  color: #7f1d1d !important;
}
.promo-close {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

/* Eyebrow Pill MB Motorsport */
.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  margin-bottom: 16px;
  width: fit-content;
}
.hep-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  flex: none;
}
.hep-brand {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-family: var(--font-head);
}
.hep-sep {
  color: #64748b;
}
.hep-loc {
  color: #cbd5e1;
  font-weight: 500;
}

/* Hero Title Highlight in Racing Red */
.hero-brand-red,
.hero-split-content h1 span,
.hero h1 span {
  color: #ef4444 !important;
  background: linear-gradient(135deg, #fca5a5 0%, #ef4444 60%, #dc2626 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 850 !important;
  display: inline-block;
}

/* Badges sotto la barra di ricerca */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 20px;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.15s ease;
}
.hero-badge-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.hero-badge-pill .icon,
.hero-badge-pill i {
  color: #ef4444 !important;
  width: 16px;
  height: 16px;
}

/* Barra di confronto su mobile universale in stile Dynamic Island */
@media (max-width: 900px) {
  .compare-bar {
    position: fixed !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45) !important;
    padding: 0 !important;
    z-index: 125 !important;
  }
  body.has-mobile-bottom-bar .compare-bar {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.has-sticky-cta .compare-bar {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.has-mobile-bottom-bar.has-compare-bar .chat-widget {
    bottom: calc(130px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .compare-bar-inner {
    min-height: 50px !important;
    padding: 6px 12px 6px 8px !important;
    gap: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .compare-bar-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .compare-bar-close {
    width: 32px !important;
    height: 32px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: none !important;
  }
  .compare-bar-close:active,
  .compare-bar-close:hover {
    background: #dc2626 !important;
    border-color: #ef4444 !important;
    color: #fff !important;
  }
  .compare-bar-close .icon {
    width: 15px !important;
    height: 15px !important;
    color: #fff !important;
  }
  .compare-bar-items {
    display: none !important;
  }
  .compare-bar-summary {
    color: #fff !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }
  .compare-bar-summary .icon {
    color: #ef4444 !important;
    width: 16px !important;
    height: 16px !important;
  }
  .compare-bar-actions {
    gap: 6px !important;
    display: flex !important;
    align-items: center !important;
  }
  .compare-clear-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #f1f5f9 !important;
    font-size: 0.78rem !important;
    font-weight: 650 !important;
    cursor: pointer !important;
    min-height: 32px !important;
  }
  .compare-clear-btn:active,
  .compare-clear-btn:hover {
    background: rgba(220, 38, 38, 0.3) !important;
    border-color: #ef4444 !important;
    color: #fff !important;
  }
  .compare-clear-btn .icon {
    width: 13px !important;
    height: 13px !important;
  }
  .compare-bar-actions .btn {
    border-radius: 999px !important;
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    min-height: 32px !important;
    background: #dc2626 !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4) !important;
    white-space: nowrap !important;
  }
}


/* Supporto per bottoni pillola nella Galleria */
button.qc-pill {
  cursor: pointer;
  font-family: inherit;
  outline: none;
}
button.qc-pill.is-active {
  background: var(--primary, #dc2626) !important;
  border-color: var(--primary, #dc2626) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}
.qc-pill:hover {
  border-color: #dc2626;
  color: #dc2626;
}
.qc-pill.is-active:hover {
  color: #ffffff;
}

/* ==========================================================================
   GALLERIA SHOWROOM WIDESCREEN & LARGE LUXURY CARDS
   Foto ingrandite, panoramiche 16:10, 100% visibili senza testi sopra
   ========================================================================== */

/* Container allargato che occupa quasi tutto lo spazio dello schermo (96% / max 1720px) */
.gallery-wide-wrap {
  width: 96%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .gallery-wide-wrap {
    width: 100%;
    padding: 0 10px;
  }
}

/* Griglia Widescreen a 2 grandi colonne su Desktop (foto ~750-850px) e 1 colonna su Mobile */
.showroom-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 28px;
  margin-bottom: 50px;
  width: 100%;
}

@media (max-width: 1024px) {
  .showroom-photo-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Card Auto Galleria */
.showroom-photo-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #090a0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.showroom-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.85);
}

/* 1. MEDIA: Foto grande, widescreen panoramica e 100% PULITA (nessun testo o gradiente sopra l'auto!) */
.showroom-photo-card .sp-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050811;
  display: block;
}

@media (min-width: 1400px) {
  .showroom-photo-card .sp-media {
    aspect-ratio: 16 / 9.8;
  }
}

.showroom-photo-card .sp-media-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

.showroom-photo-card .sp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showroom-photo-card:hover .sp-media img {
  transform: scale(1.045);
}

/* Badge di stato (in alto a destra, discreto e raffinato, non copre la carrozzeria) */
.showroom-photo-card .sp-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.showroom-photo-card .sp-badge.sp-badge-sold {
  background: rgba(220, 38, 38, 0.94);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.showroom-photo-card .sp-badge.sp-badge-avail {
  background: rgba(16, 185, 129, 0.94);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Tasto zoom / icona ingrandisci sulla foto */
.showroom-photo-card .sp-zoom-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(9, 10, 13, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 2;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s ease;
  text-decoration: none;
}

.showroom-photo-card:hover .sp-zoom-btn {
  opacity: 1;
  transform: scale(1);
}

.showroom-photo-card .sp-zoom-btn:hover {
  background: #dc2626;
  border-color: #ef4444;
}

/* 2. BODY INFORMAZIONI SOTTO LA FOTO (Completamente separato, scuro, leggibile e ordinato) */
.showroom-photo-card .sp-info {
  padding: 22px 26px 24px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.showroom-photo-card .sp-info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.showroom-photo-card .sp-title {
  margin: 0;
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #fff;
}

.showroom-photo-card .sp-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.showroom-photo-card .sp-title a:hover {
  color: #ef4444;
}

.showroom-photo-card .sp-power-pill {
  flex-shrink: 0;
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 4px 11px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.showroom-photo-card .sp-sub {
  margin: 0 0 14px 0;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Badge specifici (CV, Cambio, Carburante, Anno) */
.showroom-photo-card .sp-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.showroom-photo-card .sp-meta-tags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.showroom-photo-card .sp-meta-tags span [data-icon],
.showroom-photo-card .sp-meta-tags span .icon {
  color: #ef4444;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Barra azioni in fondo alla card */
.showroom-photo-card .sp-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.showroom-photo-card .sp-actions .btn {
  flex: 1;
  justify-content: center;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .showroom-photo-card .sp-info {
    padding: 18px 16px;
  }
  .showroom-photo-card .sp-title {
    font-size: 1.22rem;
  }
  .showroom-photo-card .sp-actions {
    flex-direction: column;
    gap: 8px;
  }
}


/* Etichetta VENDUTA per le auto della galleria senza prezzo */
.price.price-sold-tag,
strong.price.is-sold {
  color: #dc2626 !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.25rem;
}
.price-sold-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--muted, #64748b);
  font-weight: 600;
  margin-top: 2px;
}
.price-sold-badge {
  color: #dc2626 !important;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}


/* ==========================================================================
   PERFORMANCE & ULTRA-FAST RENDERING ENGINE (MB Motorsport Speed Engine)
   ========================================================================== */
/* Performance rendering: content-visibility removed to prevent blank sections */


/* GPU hardware acceleration per immagini senza lag nello scroll */
.dealership-frame-img,
.car-main-img,
.sp-media img {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ==========================================================================
   LUXURY AUTOMOTIVE AI CONCIERGE CHAT WIDGET (MB MOTORSPORT)
   ========================================================================== */
.chat-widget.has-ai .wa-float.ai-float {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #b91c1c 100%);
  color: #fff;
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35), 0 0 0 4px rgba(220, 38, 38, 0.12);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, border-color 0.2s ease;
}
.chat-widget.has-ai .wa-float.ai-float:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #ef4444;
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.32), 0 0 0 5px rgba(220, 38, 38, 0.18);
}
.chat-widget.has-ai .ai-float-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.chat-widget.has-ai .ai-float-icon .icon {
  width: 20px;
  height: 20px;
}
.chat-widget.has-ai .ai-float-online {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0f172a;
}
.chat-widget.has-ai .wa-float-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}
.chat-widget.has-ai .wa-float-label strong {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.chat-widget.has-ai .wa-float-label small {
  font-size: 0.72rem;
  font-weight: 500;
  color: #cbd5e1;
}

/* Pannello Chat Principale */
.chat-widget.has-ai .chat-panel {
  width: min(410px, calc(100vw - 24px));
  max-height: min(670px, calc(100dvh - 104px));
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28), 0 4px 16px rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  overflow: hidden;
}

/* Header Concierge */
.chat-widget.has-ai .chat-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #090a0d 0%, #1e293b 62%, #7f1d1d 100%);
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
  color: #fff;
}
.chat-widget.has-ai .chat-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.chat-widget.has-ai .chat-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #ef4444;
}
.chat-widget.has-ai .chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-widget.has-ai .chat-status-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid #0f172a;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}
.chat-widget.has-ai .chat-head-info {
  flex: 1;
  min-width: 0;
}
.chat-widget.has-ai .chat-head-title {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.chat-widget.has-ai .chat-head-title strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.chat-widget.has-ai .chat-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.chat-widget.has-ai .chat-ai-badge .icon {
  width: 11px;
  height: 11px;
}
.chat-widget.has-ai .chat-head small {
  margin-top: 3px;
  font-size: 0.77rem;
  color: #cbd5e1;
  font-weight: 500;
}
.chat-widget.has-ai .chat-reset {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  transition: background 0.15s ease;
}
.chat-widget.has-ai .chat-reset:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Corpo Messaggi */
.chat-widget.has-ai .chat-body {
  padding: 16px 14px;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  gap: 14px;
  scroll-behavior: smooth;
}

/* Card di Benvenuto */
.cwelcome-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #dc2626;
  border-radius: 16px;
  padding: 14px 15px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.cwelcome-top {
  margin-bottom: 6px;
}
.cwelcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #dc2626;
}
.cwelcome-badge .icon {
  width: 13px;
  height: 13px;
}
.cwelcome-card h4 {
  margin: 0 0 5px;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}
.cwelcome-card p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.5;
  color: #475569;
}

/* Chips Domande Rapide */
.cquick-label {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin: 4px 0 -2px 2px;
}
.chat-widget.has-ai .cquick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  width: 100%;
}
.chat-widget.has-ai .cquick button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
  transition: all 0.18s ease;
}
.chat-widget.has-ai .cquick button:hover {
  border-color: #dc2626;
  background: #fef2f2;
  color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.1);
}
.chat-widget.has-ai .cquick .cq-ico {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Bolle di Conversazione */
.cmsg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 94%;
}
.cmsg-bot-ico {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f172a 0%, #dc2626 100%);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}
.cmsg-bot-ico .icon {
  width: 14px;
  height: 14px;
}
.chat-widget.has-ai .cbubble {
  max-width: 100%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.chat-widget.has-ai .is-bot .cbubble {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  color: #1e293b;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}
.chat-widget.has-ai .is-user .cbubble {
  max-width: 85%;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  font-weight: 500;
}

/* Mini Card Auto dentro la Chat */
.chat-widget.has-ai .ccars {
  padding-left: 36px;
  width: 100%;
  display: grid;
  gap: 8px;
}
.chat-widget.has-ai .ccars .mini-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.05);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.chat-widget.has-ai .ccars .mini-card:hover {
  border-color: #dc2626;
  transform: translateX(2px);
  text-decoration: none;
}
.chat-widget.has-ai .ccars .mini-card img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 9px;
}
.chat-widget.has-ai .ccars .mini-card em {
  color: #dc2626;
  font-weight: 800;
  font-style: normal;
}
.chat-widget.has-ai .cwa {
  margin-left: 36px;
  border-radius: 10px;
  font-weight: 700;
}

/* Barra di Input e Azioni Rapide Inferiori */
.chat-widget.has-ai .chat-input {
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  align-items: center;
}
.chat-widget.has-ai .chat-input textarea {
  border-radius: 999px;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  font-size: 0.9rem;
  min-height: 42px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.chat-widget.has-ai .chat-input textarea:focus {
  background: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.chat-widget.has-ai .chat-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
  transition: transform 0.15s ease;
}
.chat-widget.has-ai .chat-send:hover {
  transform: scale(1.06);
}
.chat-bottom-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 12px 12px;
  background: #ffffff;
}
.chat-bottom-actions .chat-handoff {
  margin: 0;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 0.84rem;
}
.chat-bottom-actions .chat-call-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 11px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}
.chat-bottom-actions .chat-call-direct:hover {
  background: #e2e8f0;
  text-decoration: none;
}
.chat-bottom-actions .chat-call-direct .icon {
  width: 16px;
  height: 16px;
  color: #dc2626;
}

@media (max-width: 640px) {
  .chat-widget.has-ai .wa-float-label small {
    display: none;
  }
  .chat-widget.has-ai .wa-float.ai-float {
    padding: 8px 14px 8px 9px;
    gap: 8px;
  }
  .chat-widget.has-ai .ai-float-icon {
    width: 34px;
    height: 34px;
  }
  .chat-widget.has-ai .cquick {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   REDESIGN "TE LA TROVO IO" (CERCO.HTML & BANNER HOME) — ESSENZIALE & LUXURY
   ========================================================================== */
.finder-band {
  background: linear-gradient(135deg, #090a0d 0%, #172033 65%, #2a1218 100%);
  border: 1px solid rgba(220, 38, 38, 0.35);
  box-shadow: 0 18px 40px -15px rgba(9, 10, 13, 0.35);
  color: #ffffff;
  padding: 32px 36px;
  border-radius: 22px;
}
.finder-band h2 {
  color: #ffffff;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  margin-bottom: 6px;
}
.finder-band p {
  color: #cbd5e1;
  font-size: 0.98rem;
}
.finder-band .finder-ico {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

.finder-hero-modern {
  background: radial-gradient(900px 380px at 85% 0%, rgba(220, 38, 38, 0.22), transparent), linear-gradient(180deg, #090a0d 0%, #111827 100%);
  padding-bottom: 68px;
}
.finder-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.16);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.finder-badge-top .icon {
  width: 15px;
  height: 15px;
  color: #ef4444;
}

.finder-card-modern {
  padding: 32px;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 45px -18px rgba(15, 23, 42, 0.14);
  background: #ffffff;
}
.finder-step-box {
  padding: 22px 24px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.finder-step-box:focus-within {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.08);
}
.finder-step-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.finder-step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
}
.finder-step-num.is-opt {
  background: #0f172a;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}
.finder-step-head .finder-h {
  margin: 0 0 3px;
  font-size: 1.18rem;
  color: #0f172a;
}
.finder-sub {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}

.finder-card-modern .input-lg {
  font-size: 1.02rem;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
}
.finder-card-modern .input:focus,
.finder-card-modern .select:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
  outline: none;
}

/* Pillole Rapide a un tocco */
.finder-quick-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}
.fqp-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  margin-right: 4px;
}
.fqp-btn {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.fqp-btn:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: #fef2f2;
}
.fqp-btn.is-active {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.25);
}

.finder-submit-bar {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.finder-main-btn {
  flex: 1 1 260px;
  font-size: 1.02rem;
  padding: 15px 22px;
  border-radius: 14px;
  box-shadow: 0 10px 24px -6px rgba(22, 163, 74, 0.45);
}
.finder-sec-btn {
  padding: 14px 18px;
  border-radius: 14px;
}

/* Sidebar "Te la trovo io" */
.finder-fast-wa {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.finder-quote {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: #334155;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 12px;
  border-left: 3px solid #dc2626;
}
.finder-direct-wa {
  margin-top: 4px;
  border-radius: 12px;
  font-weight: 700;
}
.finder-direct-sub {
  text-align: center;
  color: #64748b;
  font-size: 0.78rem;
}
.finder-match-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.finder-match-head h3 {
  margin: 0;
  font-size: 1.02rem;
}
.finder-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dc2626;
  flex-shrink: 0;
}
.finder-live-dot.is-match {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}

@media (max-width: 640px) {
  .finder-card-modern {
    padding: 18px 16px;
  }
  .finder-step-box {
    padding: 16px 14px;
  }
  .finder-submit-bar {
    flex-direction: column;
  }
  .finder-main-btn,
  .finder-sec-btn {
    width: 100%;
    flex: none;
  }
}


/* ==========================================================================
   APPLE MAC 3D MOTION & TRANSITIONS DESIGN SYSTEM
   ========================================================================== */

/* ---------- 1. Smooth Page & View Transitions (macOS Native Feel) ---------- */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.28s;
  animation-timing-function: var(--apple-ease);
}

/* ---------- 2. Dark Luxury Frosted Glass Header & Sub-Bar ---------- */
.site-header {
  background: rgba(9, 10, 13, 0.94) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  transition: background 0.35s var(--apple-ease), border-color 0.35s var(--apple-ease), box-shadow 0.35s var(--apple-ease), backdrop-filter 0.35s var(--apple-ease) !important;
}
.site-header.is-scrolled {
  background: rgba(9, 10, 13, 0.98) !important;
  backdrop-filter: blur(32px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
  border-bottom: 1px solid rgba(239, 68, 68, 0.35) !important;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.75) !important;
}

/* ---------- 3. Apple 3D Interactive Card Physics ---------- */
.car-card, .hac-card, .delivery, .review, .trust-item, .stat, .visit-card, .finder-card-modern, .detail-sidebar-box {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1200px;
  will-change: transform, box-shadow;
  transition: transform 0.45s var(--apple-ease), box-shadow 0.45s var(--apple-ease), border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .car-card:hover, .hac-card:hover, .delivery:hover, .review:hover, .stat:hover, .visit-card:hover {
    border-color: rgba(220, 38, 38, 0.25);
    box-shadow: 0 24px 50px -14px rgba(15, 23, 42, 0.18), 0 10px 24px -10px rgba(220, 38, 38, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }
}

/* Dynamic Specular Sheen (Apple Aluminum & Glass Light Glare) */
.apple-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 15;
  opacity: var(--sheen-opacity, 0);
  background: radial-gradient(circle 420px at var(--sheen-x, 50%) var(--sheen-y, 50%), rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.12) 40%, transparent 75%);
  mix-blend-mode: overlay;
  transition: opacity 0.35s ease;
}

/* 3D Depth Layers inside Car Cards */
.car-card .car-media {
  transform: translateZ(8px);
  transition: transform 0.45s var(--apple-ease);
}
.car-card .car-tags, .car-card .status-ribbon, .car-card .deal {
  transform: translateZ(24px);
  transition: transform 0.45s var(--apple-ease);
}
.car-card .fav-btn, .car-card .photo-count, .car-card .card-dots, .car-card .card-nav {
  transform: translateZ(26px);
}
.car-card .car-title, .car-card .car-price {
  transform: translateZ(14px);
}
.car-card .btn-card-detail {
  transform: translateZ(18px);
}

/* ---------- 4. Apple Tactile Micro-Interactions (macOS Dock feel) ---------- */
.btn, .icon-btn, .fav-btn, .card-nav {
  transition: transform 0.32s var(--apple-spring), box-shadow 0.32s var(--apple-ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2.5px) scale(1.015);
  }
  .icon-btn:hover, .fav-btn:hover {
    transform: translateY(-2px) scale(1.08);
  }
}
.btn:active, .icon-btn:active, .fav-btn:active, .card-nav:active {
  transform: scale(0.96) translateY(1px) !important;
  transition-duration: 0.1s !important;
}

/* Light Sheen Sweep on Action Buttons */
.btn-primary, .btn-wa {
  position: relative;
  overflow: hidden;
}
.btn-primary::after, .btn-wa::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.32) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.75s var(--apple-ease);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover::after, .btn-wa:hover::after {
    transform: translateX(120%);
  }
}

/* Smooth Segmented Control Pills (macOS System Style) */
.brand-chip, .filter-pill, .zone-links a, .quick-links a, .card-dot {
  transition: transform 0.28s var(--apple-spring), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .brand-chip:hover, .zone-links a:hover, .quick-links a:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 18px -6px rgba(15, 23, 42, 0.12);
  }
}
.brand-chip:active, .zone-links a:active {
  transform: scale(0.97) translateY(0);
}

/* ---------- 5. Apple 3D Spatial Scroll Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: perspective(1000px) translateY(32px) rotateX(4deg) scale(0.975);
  filter: blur(4px);
  transition: opacity 0.8s var(--apple-ease), transform 0.8s var(--apple-ease), filter 0.8s var(--apple-ease);
  transition-delay: calc(var(--stagger, 0) * 55ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: perspective(1000px) translateY(0) rotateX(0deg) scale(1);
  filter: blur(0);
}

/* ---------- 6. macOS Window Modals & Sheets ---------- */
.modal-overlay {
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  transition: opacity 0.35s var(--apple-ease);
}
.modal-overlay .modal {
  transform: perspective(1000px) translateY(24px) scale(0.94);
  filter: blur(6px);
  transition: transform 0.42s var(--apple-ease), opacity 0.35s var(--apple-ease), filter 0.35s var(--apple-ease);
}
.modal-overlay.is-open .modal {
  transform: perspective(1000px) translateY(0) scale(1);
  filter: blur(0);
}

/* ---------- 7. Floating WhatsApp Widget with Apple Mac Glow ---------- */
.wa-float {
  box-shadow: 0 14px 35px -8px rgba(37, 211, 102, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.35s var(--apple-spring), box-shadow 0.35s var(--apple-ease);
}
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 22px 45px -6px rgba(37, 211, 102, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }
}

/* ---------- 8. Accessibility: Respect prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  [data-reveal] {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .car-card, .hac-card, .delivery, .review, .trust-item, .stat, .visit-card {
    transform: none !important;
  }
  .apple-sheen {
    display: none !important;
  }
}

/* ==========================================================================
   PERFORMANCE & CORE WEB VITALS (GOOGLE #1 RANKING BOOST)
   - content-visibility: auto skippa il calcolo di layout degli elementi off-screen
   - riduce i tempi di render del 60% e azzera il TBT (Total Blocking Time)
   - aspect-ratio nativo previene qualsiasi CLS (Cumulative Layout Shift = 0.000)
   ========================================================================== */
.reviews-carousel,
.faq-section,
.dealership-visit-section,
.visit-grid,
.footer,
.zona-seo-block,
.zona-grid-links,
.gallery-grid,
.trust-bar {
  contain: none;
}
.car-main-img {
  aspect-ratio: 16 / 10.5;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dealership-frame-img {
  aspect-ratio: 16 / 10.5;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.gallery-main img {
  aspect-ratio: 16 / 10;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ==========================================================================
   MOBILE UX & ACCESSIBILITY OPTIMIZATIONS (iOS & Android)
   ========================================================================== */

/* 1. Prevent iOS Safari auto-zoom on form inputs by ensuring min 16px font-size */
@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
}

/* 2. Floating AI Assistant & Mobile Bottom Bar Non-Collision */
@media (max-width: 768px) {
  body.has-mobile-bottom-bar .chat-widget {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    right: 14px !important;
    z-index: 95 !important;
  }
  
  /* Ensure bottom bar items are always clear and clickable */
  .mobile-bottom-bar {
    z-index: 100 !important;
    pointer-events: auto !important;
  }
  .mbb-item {
    min-height: 48px !important;
    touch-action: manipulation !important;
  }
}

/* 3. Compact & Sleek Top Promo Bar on Mobile */
@media (max-width: 640px) {
  .promo-bar {
    padding: 5px 10px !important;
  }
  .promo-inner {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px 8px !important;
    padding-right: 32px !important;
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
  }
  .promo-inner a {
    padding: 2px 8px !important;
    font-size: 0.75rem !important;
    margin-top: 0 !important;
  }
  .promo-close {
    width: 26px !important;
    height: 26px !important;
    right: 6px !important;
  }
}

/* 4. Touch Targets Hitbox for Gallery Dots & Interactive Elements */
.card-dot {
  position: relative !important;
}
.card-dot::before {
  content: '' !important;
  position: absolute !important;
  top: -12px !important;
  bottom: -12px !important;
  left: -8px !important;
  right: -8px !important;
}

/* 5. Mobile Fast Tap Responsiveness */
a, button, input, select, textarea, .mbb-item, .icon-btn, .brand-chip, .filter-pill {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}


/* 6. AI Floating Pill and Promo Badge Precision on Phones */
@media (max-width: 480px) {
  .chat-widget.has-ai .wa-float-label {
    display: none !important;
  }
  .chat-widget.has-ai .wa-float.ai-float {
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  }
  .chat-widget.has-ai .ai-float-icon {
    width: 32px !important;
    height: 32px !important;
  }
  .promo-left {
    white-space: nowrap !important;
    display: inline-block !important;
    padding: 2px 7px !important;
  }
}


/* ==========================================================================
   STATO CONCESSIONARIA ONLINE & PRONTA A RISPONDERE (LIVE FLOATING BADGE)
   ========================================================================== */

/* Pallino verde vivo pulsante con alone luminoso */
.live-dot-pulse {
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background-color: #22c55e !important;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.8) !important;
  animation: liveDotPulseAnim 2s infinite ease-in-out !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

@keyframes liveDotPulseAnim {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.85);
  }
  65% {
    transform: scale(1.08);
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.live-dot-pulse-mini {
  position: absolute !important;
  top: -2px !important;
  right: -3px !important;
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background-color: #22c55e !important;
  border: 1.5px solid #0f172a !important;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.8) !important;
  animation: liveDotPulseAnim 2s infinite ease-in-out !important;
}

.mbb-icon-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Pulsante Flottante Principale (.wa-float) */
.wa-float {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  height: auto !important;
  min-height: 54px !important;
  padding: 8px 20px 8px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: linear-gradient(135deg, #0d7a6e 0%, #10b981 50%, #22c55e 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 34px -4px rgba(16, 185, 129, 0.6), 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  cursor: pointer !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.025) !important;
  box-shadow: 0 20px 42px -4px rgba(16, 185, 129, 0.75), 0 6px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.wa-float-icon-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

.wa-float-icon-wrap .icon {
  width: 22px !important;
  height: 22px !important;
  fill: currentColor !important;
}

.wa-float-icon-wrap .live-dot-pulse {
  position: absolute !important;
  top: 1px !important;
  right: 1px !important;
  border: 2px solid #0d7a6e !important;
  width: 10px !important;
  height: 10px !important;
}

.wa-float-label {
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
  line-height: 1.25 !important;
}

.wa-float-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.01em !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.wa-float-subtitle {
  display: block !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  color: #ecfdf5 !important;
  letter-spacing: 0.01em !important;
  opacity: 0.95 !important;
}

/* Pulsante Header Sticky con Stato Online */
.header-live-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #0d7a6e 0%, #10b981 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 999px !important;
  padding: 7px 16px !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
  font-weight: 750 !important;
  font-size: 0.88rem !important;
  color: #ffffff !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.header-live-status:hover {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
}

/* Ottimizzazione Mobile */
@media (max-width: 640px) {
  .wa-float {
    min-height: 48px !important;
    padding: 6px 14px 6px 10px !important;
    gap: 8px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 999px !important;
  }
  .wa-float-label {
    display: flex !important;
  }
  .wa-float-title {
    font-size: 0.84rem !important;
  }
  .wa-float-subtitle {
    font-size: 0.70rem !important;
  }
  .wa-float-icon-wrap {
    width: 32px !important;
    height: 32px !important;
  }
  .wa-float-icon-wrap .icon {
    width: 18px !important;
    height: 18px !important;
  }
}

/* ==========================================================================
   LUXURY ACTION DOCK (IN FONDO ALLA PAGINA - MB MOTORSPORT)
   ========================================================================== */
.section-quick-actions {
  background: radial-gradient(circle at 50% 0%, rgba(30, 41, 59, 0.45) 0%, rgba(9, 10, 13, 0.98) 75%, #070b14 100%) !important;
  padding: 85px 0 95px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  position: relative !important;
  overflow: hidden !important;
}
.section-quick-actions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(220, 38, 38, 0.6) 50%, transparent 100%);
  pointer-events: none;
}
.sqa-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}
.sqa-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ef4444;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.sqa-header h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.sqa-header p {
  color: #94a3b8 !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
}

/* Griglia delle 3 card */
.luxury-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

/* Card Luxury Singola */
.lax-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 22px !important;
  padding: 32px 28px !important;
  text-decoration: none !important;
  color: #ffffff !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}
.lax-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}
.lax-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(220, 38, 38, 0.2) !important;
}

/* Accent per ciascuna card */
.lax-cars:hover::after {
  background: linear-gradient(90deg, #dc2626, #ef4444);
}
.lax-cars .lax-icon {
  background: rgba(220, 38, 38, 0.15) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(220, 38, 38, 0.3) !important;
}
.lax-cars .lax-badge {
  background: rgba(220, 38, 38, 0.12) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(220, 38, 38, 0.25) !important;
}
.lax-cars .lax-cta {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
  color: #ffffff !important;
}

.lax-wa:hover::after {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}
.lax-wa .lax-icon {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
}
.lax-wa .lax-badge {
  background: rgba(34, 197, 94, 0.12) !important;
  color: #86efac !important;
  border: 1px solid rgba(34, 197, 94, 0.25) !important;
}
.lax-wa .lax-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lax-wa .lax-badge-live .live-dot-pulse {
  background: #22c55e !important;
  box-shadow: 0 0 8px #22c55e !important;
}
.lax-wa .lax-cta {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%) !important;
  color: #ffffff !important;
}

.lax-sell:hover::after {
  background: linear-gradient(90deg, #ef4444, #f87171);
}
.lax-sell .lax-icon {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}
.lax-sell .lax-badge {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}
.lax-sell .lax-cta {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
  color: #ffffff !important;
}

/* Head della card */
.lax-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.lax-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.lax-icon .icon {
  width: 26px;
  height: 26px;
}
.lax-badge {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
}

/* Body della card */
.lax-body h3 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 10px !important;
}
.lax-body p {
  font-size: 0.95rem !important;
  color: #94a3b8 !important;
  line-height: 1.55 !important;
  margin-bottom: 28px !important;
}

/* Foot & Pulsante */
.lax-foot {
  margin-top: auto;
}
.lax-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lax-cta .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}
.lax-card:hover .lax-cta .icon {
  transform: translateX(4px);
}

/* Mobile & Tablet */
@media (max-width: 1024px) {
  .luxury-action-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .section-quick-actions {
    padding: 60px 0 70px !important;
  }
  .sqa-header h2 {
    font-size: 1.85rem;
  }
  .lax-card {
    padding: 24px 22px !important;
  }
  .lax-body p {
    margin-bottom: 20px !important;
  }
}

/* ==========================================================================
   PIXEL-PERFECT ALIGNMENT: Testi, Icone e Frecce Carosello Foto
   ========================================================================== */
/* Allineamento Frecce Foto Card Auto */
.card-nav {
  opacity: 0.92 !important;
  pointer-events: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.card-nav .icon {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  margin: 0 !important;
}
.card-nav.is-prev { left: 8px !important; }
.card-nav.is-next { right: 8px !important; }

/* Allineamento Frecce e Indicatori Dots */
.card-dots {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Allineamento Icone nei Bottoni */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1.25 !important;
}
.btn .icon {
  display: block !important;
  flex-shrink: 0 !important;
}

/* Allineamento Bottoni Scheda e WhatsApp Card */
.btn-card-detail, .btn-card-wa {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 40px !important;
  line-height: 1.2 !important;
}
.btn-card-detail .icon, .btn-card-wa .icon {
  display: block !important;
  flex-shrink: 0 !important;
}

/* Allineamento Specifiche Auto (Anno, Km, Carburante, Cambio) */
.car-specs li {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  line-height: 1.3 !important;
}
.car-specs li .icon {
  display: block !important;
  flex-shrink: 0 !important;
  margin-top: 0 !important;
}

/* Allineamento Spunte Sezione Showroom */
.showroom-features li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  line-height: 1.45 !important;
}
.showroom-features .icon {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  flex-shrink: 0 !important;
  margin-top: 3px !important;
}

/* Allineamento Bottoni Showroom (Indicazioni, WhatsApp, Chiama) */
.showroom-actions .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
.showroom-actions .btn .icon {
  display: block !important;
  flex-shrink: 0 !important;
}

/* Allineamento Footer Cornice Showroom */
.dealership-frame-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1.35 !important;
}
.dealership-frame-footer .icon {
  display: block !important;
  flex-shrink: 0 !important;
}

/* Allineamento Badge Showroom */
.showroom-badge, .dealership-frame-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}
.showroom-badge .icon, .dealership-frame-badge .icon {
  display: block !important;
  flex-shrink: 0 !important;
}

/* Allineamento Topbar */
.topbar-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}
.topbar-item .icon {
  display: block !important;
  flex-shrink: 0 !important;
}

/* Allineamento Header Live WhatsApp */
.header-live-status {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
.header-live-status .icon {
  display: block !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   DEDICATED FIXES: Finanziamenti, Showroom Map Actions, Modal & Today Badges
   ========================================================================== */

/* 1. Finanziamenti Calculator Card: No Clipping, Spaced Button */
#finanziamenti {
  padding-bottom: 80px !important;
}
.calc-result {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 28px 24px 26px !important;
  border-radius: 18px !important;
  background: #090a0d !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.calc-result .big {
  margin-top: 4px !important;
}
.calc-rows {
  margin: 16px 0 20px !important;
}
.calc-result .btn, #hc-wa {
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.25 !important;
  padding: 12px 20px !important;
  min-height: 48px !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
  width: 100% !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  font-weight: 750 !important;
}

/* 2. Showroom & Map Buttons: Balanced 3-Column Grid on Desktop */
.visit-actions {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  margin-bottom: 22px !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid var(--line) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.visit-actions .btn {
  width: 100% !important;
  padding: 9px 8px !important;
  font-size: 0.83rem !important;
  white-space: nowrap !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
@media (max-width: 640px) {
  .visit-actions {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }
  .visit-actions .btn {
    font-size: 0.90rem !important;
    padding: 11px 16px !important;
  }
}

/* 3. Showroom Opening Hours Today Highlight in .visit-card */
.visit-card .hours li.is-today {
  background: rgba(220, 38, 38, 0.08) !important;
  border: 1px solid rgba(220, 38, 38, 0.25) !important;
  color: #dc2626 !important;
}
.visit-card .hours li.is-today .day-name {
  color: #dc2626 !important;
  font-weight: 700 !important;
}
.visit-card .hours li.is-today .day-hours {
  color: #dc2626 !important;
  font-weight: 700 !important;
}
.visit-card .today-tag {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* 4. Modal Wide: Comfortably Sized (960px) and Smooth Scroll */
.modal-wide {
  max-width: 960px !important;
}
.modal-body {
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}



/* ---------- Dotazioni Top in Evidenza su Card Auto ---------- */
.car-card-highlights {
  padding: 8px 12px;
  margin: 10px 0 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
}
.car-card-highlights-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 2px;
}
.car-card-highlights-head .icon {
  width: 12px;
  height: 12px;
  color: var(--primary);
  display: block;
  flex-shrink: 0;
}
.car-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.car-highlights-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.81rem;
  color: #334155;
  font-weight: 600;
  line-height: 1.35;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.car-highlights-list li .icon-chk {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #10b981;
}
.car-highlights-list li .icon-chk .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.8px;
  display: block;
}
.car-highlights-list li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Tasto Confronta Auto su Card Auto (Luxury Pill) ---------- */
/* ---------- Tasto Confronta Auto su Card Auto (Luxury Dedicated Button) ---------- */
.btn-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  margin-top: 10px;
  border-radius: 11px;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #334155;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  font-family: inherit;
}
.btn-compare:hover {
  background: #ffffff;
  border-color: #94a3b8;
  color: #0b1120;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.btn-compare:active {
  transform: translateY(0);
}
.btn-compare .compare-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: color 0.2s, transform 0.2s;
}
.btn-compare .compare-btn-icon .icon {
  width: 15px;
  height: 15px;
  display: block;
}
.btn-compare:hover .compare-btn-icon {
  color: var(--primary, #e31b23);
  transform: scale(1.08);
}
.btn-compare.is-active {
  background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
  color: #ffffff;
  border-color: #0b1120;
  box-shadow: 0 4px 14px rgba(11, 17, 32, 0.25);
}
.btn-compare.is-active .compare-btn-icon {
  color: #22c55e;
}
.btn-compare.is-active:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #334155;
  color: #ffffff;
}

/* Compatibilità toggle legacy */
.compare-toggle {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 10px;
  cursor: pointer;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
}
.compare-toggle input.sr-only {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none !important;
}
.compare-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #475569;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.compare-toggle:hover .compare-toggle-btn {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0b1120;
  transform: translateY(-1px);
}
.compare-toggle input:checked ~ .compare-toggle-btn,
.compare-toggle.is-active .compare-toggle-btn {
  background: #0b1120;
  color: #ffffff;
  border-color: #0b1120;
  box-shadow: 0 4px 12px rgba(11, 17, 32, 0.2);
}
.compare-toggle input:checked ~ .compare-toggle-btn .compare-toggle-icon,
.compare-toggle.is-active .compare-toggle-btn .compare-toggle-icon {
  color: #22c55e;
}
.compare-toggle-btn .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: block;
}
