/* ==========================================================================
   STILE DEL SITO — design system + componenti
   Il colore principale si cambia da config.js (colorePrimario)
   ========================================================================== */

/* ---------- Variabili ---------- */
:root {
  --primary: #1d4ed8;
  --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: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-dark: #0b1220;
  --bg-dark-2: #111a2e;

  --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: 1240px;
  --gutter: 20px;
  --header-h: 72px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Plus Jakarta Sans', var(--font);
}

/* ---------- 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; flex: none; }
[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: #93c5fd; }

.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: 200; background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity .25s; }
.mobile-menu.is-open { opacity: 1; }
.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: var(--bg-dark); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 13, 26, .92) 0%, rgba(8, 13, 26, .72) 45%, rgba(8, 13, 26, .25) 100%), linear-gradient(0deg, rgba(8, 13, 26, .6), transparent 40%); }
.hero-inner { padding: 88px 0 64px; max-width: 1040px; }
.hero h1 { color: #fff; margin-bottom: 16px; max-width: 760px; }
.hero h1 span { color: #93c5fd; }
.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; }
.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; }
.photo-count { position: absolute; bottom: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(15, 23, 42, .66); 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: 2;
  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; }
.status-ribbon {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px; text-align: center; color: #fff; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem;
}
.status-ribbon.is-sold { background: rgba(220, 38, 38, .92); }
.status-ribbon.is-reserved { background: rgba(217, 119, 6, .94); }
.car-card.is-venduta .car-media img { filter: grayscale(.85); opacity: .8; }

.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: #0b1220; 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-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%, #0b1220)); 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; }

.visit-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: start; }
.visit-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.visit-card .contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.visit-card .contact-line .icon { color: var(--primary); margin-top: 2px; }
.hours { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.hours li.is-today { font-weight: 800; color: var(--primary); }

/* ---------- 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 ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; }
.compare-table th, .compare-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .93rem; }
.compare-table thead th { vertical-align: top; background: #fff; }
.compare-table .cmp-head { position: relative; min-width: 210px; }
.compare-table tbody th { position: sticky; left: 0; z-index: 1; width: 190px; background: var(--bg-soft); color: var(--ink-2); font-weight: 700; font-size: .85rem; }
.compare-table thead th:first-child { position: sticky; left: 0; z-index: 2; background: #fff; }
.compare-table .cmp-head img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.compare-table .cmp-head strong { display: block; font-size: 1.05rem; }
.compare-table .cmp-head small { display: block; color: var(--muted); margin-bottom: 10px; }
.compare-table .cmp-head .btn { margin-top: 6px; }
.compare-table .cmp-remove { position: absolute; top: 20px; right: 24px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); }
.compare-table .cmp-remove .icon { width: 15px; height: 15px; }
.compare-table td.is-best { color: var(--green); font-weight: 800; }
.compare-table td.is-best::after { content: ' ★'; font-size: .8em; }
.compare-table .yes { color: var(--green); }
.compare-table .no { color: var(--line-2); }
.compare-table .group-row th, .compare-table .group-row td { background: var(--ink); color: #fff; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- 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; }
  .topbar { display: none; }
  .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%, #0b1220)); }
.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; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 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; }
