/* Light Automotive — palette: bianco / slate-50, testi navy notte, CTA #f97316 */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --navy: #0c1929;
  --navy2: #132337;
  --muted: #64748b;
  --border: #e2e8f0;
  --cta: #f97316;
  --cta-hover: #ea580c;
  --cta-ring: rgba(249, 115, 22, 0.35);
  --orange: #f97316;
  --orange2: #ea580c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body.light-site {
  font-family: 'Inter', 'Montserrat', system-ui, sans-serif;
  background: var(--bg);
  color: var(--navy);
  overflow-x: hidden;
  line-height: 1.6;
}
/* Scala il root rem: aumenta tutto il testo (Tailwind incluso) senza schiacciare gli h1 */
html.a11y-large-text { font-size: 118.75%; }
/* Grayscale via overlay: non rompe position:fixed di banner e widget */
body.light-site.a11y-grayscale::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  backdrop-filter: grayscale(100%);
  -webkit-backdrop-filter: grayscale(100%);
  z-index: 550;
}
body.light-site.a11y-contrast {
  --bg: #ffffff;
  --surface: #ffffff;
  --navy: #000000;
  --muted: #1a1a1a;
  --border: #000000;
}
body.light-site.a11y-contrast .vcard,
body.light-site.a11y-contrast .gal-main,
body.light-site.a11y-contrast .rounded-xl {
  border: 2px solid #000 !important;
  box-shadow: none !important;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Hero */
.hero-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  overflow: hidden;
}
.hero-above-fold {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.88) 45%, rgba(248, 250, 252, 0.65) 100%),
    linear-gradient(to top, rgba(248, 250, 252, 1) 0%, transparent 38%),
    url('../img/hero-truck.jpg') center 40% / cover no-repeat;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 40px, rgba(12, 25, 41, 0.03) 40px, rgba(12, 25, 41, 0.03) 41px
  );
}
.hero-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cta), #fb923c, transparent);
}
.hero-deco {
  position: absolute;
  right: -2%;
  bottom: -4%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(200px, 28vw, 380px);
  line-height: 1;
  color: rgba(12, 25, 41, 0.04);
  pointer-events: none;
  user-select: none;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--cta);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 16px 6px 10px;
  border-radius: 4px;
  box-shadow: 0 4px 14px var(--cta-ring);
}
.hero-chip::before { content: '▶'; font-size: 8px; }
.hero-h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(52px, 9vw, 120px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  font-weight: 800;
}
.hero-h1 .solid { color: var(--navy); display: block; }
.hero-h1 .outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--cta);
  text-stroke: 2px var(--cta);
}
.hero-tagline {
  border-left: 4px solid var(--cta);
  padding-left: 16px;
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--muted);
  font-weight: 400;
  line-height: 1.75;
  max-width: 480px;
}
.counter-block {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--cta);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}
.counter-block:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.counter-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  line-height: 1;
  color: var(--cta);
  font-weight: 800;
}
.counter-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Buttons — contrasto elevato */
.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cta);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px var(--cta-ring);
}
.btn-orange:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--cta-ring);
}
.btn-orange:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 2px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--navy2);
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--cta); color: var(--cta); }
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--navy);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid #fff;
  transition: transform 0.2s;
}
.btn-white:hover { transform: translateY(-1px); }
.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--navy);
}
.btn-navy:hover { background: var(--navy2); border-color: var(--navy2); }

/* Quick filter */
.qf-bar {
  position: relative;
  z-index: 10;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}
.qf-field { display: flex; flex-direction: column; gap: 6px; }
.qf-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.qf-control {
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--navy);
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.qf-control:focus {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px var(--cta-ring);
}
.qf-search {
  background: var(--cta);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--cta);
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: background 0.15s;
}
.qf-search:hover { background: var(--cta-hover); border-color: var(--cta-hover); }

/* Marquee */
.marquee-outer {
  overflow: hidden;
  background: var(--navy);
  border-top: 3px solid var(--cta);
}
.marquee-inner {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.marquee-inner:hover { animation-play-state: paused; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.brand-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 36px;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-txt {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  transition: color 0.3s;
}
.brand-pill:hover .brand-txt { color: var(--cta); }
.brand-gem {
  width: 5px;
  height: 5px;
  background: var(--cta);
  opacity: 0.7;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Cards veicolo */
.vcard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}
.vcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  border-color: rgba(249, 115, 22, 0.35);
}
.vcard-img-wrap {
  position: relative;
  height: 216px;
  overflow: hidden;
  background: var(--surface);
}
.vcard-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s;
}
.vcard:hover .vcard-img-wrap img { transform: scale(1.02); }
.vcard-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 25, 41, 0.2), transparent 50%);
  pointer-events: none;
}
.vcard-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.vcard-brand {
  font-size: 10px;
  font-weight: 800;
  color: var(--cta);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.vcard-model {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1.15;
}
.vcard-km { font-size: 13px; color: var(--muted); }
.vcard-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--cta);
  line-height: 1;
}
.vcard-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--cta-hover);
  border: 1px solid rgba(249, 115, 22, 0.25);
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.vcard:hover .vcard-cta {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
}

.sbadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
}
.sb-green { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.sb-amber { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.sb-gray { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.sb-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.sb-green .sb-dot { animation: blink 2.2s ease-in-out infinite; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cta);
}
.sec-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--cta);
}
.sec-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--navy);
  font-weight: 800;
}

.cs-photo { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; position: relative; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08); border: 1px solid var(--border); }
.cs-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.cs-photo::after { display: none; }
.feat-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--cta);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.feat-ico {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 40px 32px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}
.cta-dark {
  background: var(--navy);
  border: 1px solid var(--navy2);
  color: #fff;
}
.cta-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 100% 0%, rgba(249, 115, 22, 0.15), transparent);
  pointer-events: none;
}
.cta-light {
  background: var(--cta);
  border: 1px solid var(--cta-hover);
  color: #fff;
}
.cta-deco {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 56px;
  opacity: 0.12;
  pointer-events: none;
  line-height: 1;
}
.cta-chip {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}
.cta-ttl {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.cta-desc {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 20px;
  font-weight: 400;
  opacity: 0.88;
}

.cinfo {
  padding: 28px 22px;
  border-top: 3px solid transparent;
  transition: all 0.2s;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
}
.cinfo:hover {
  border-top-color: var(--cta);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.fl {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  transition: color 0.15s;
}
.fl:hover { color: var(--cta); }

.wa-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}
.wa-btn:hover { transform: scale(1.08); }
.wa-tip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.wa-btn:hover .wa-tip { opacity: 1; }

.notify-popup {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 600;
  width: min(340px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.notify-popup.show { transform: translateY(0); opacity: 1; }
.notify-popup.hide { transform: translateY(130%); opacity: 0; }
.popup-icon-box {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--cta);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.popup-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.popup-msg { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.popup-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--cta);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.popup-x {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

.gal-main {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gal-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.g-th {
  width: 72px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
  flex-shrink: 0;
  background: var(--surface);
}
.g-th img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.g-th.act, .g-th:hover { border-color: var(--cta); }

/* Footer — icone social (non dipendono da Tailwind) */
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e293b;
  color: #e2e8f0;
  transition: background 0.2s, color 0.2s;
}
.footer-social__link:hover {
  background: var(--cta);
  color: #ffffff;
}
.footer-social__link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}
.srow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.srow:nth-child(even) { background: var(--surface); }
.bc a { color: var(--muted); }
.bc a:hover { color: var(--navy); }
.bc-sep { color: var(--border); }

/* Overlay widget (cookie + a11y) — spostati su <html> via JS */
#site-overlays {
  pointer-events: none;
}
#site-overlays > * {
  pointer-events: auto;
}

/* A11y floating toggle */
#a11y-fab {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 700;
  width: 44px;
  height: 52px;
  border-radius: 8px 0 0 8px;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy2);
  border-right: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: -4px 4px 16px rgba(0, 0, 0, 0.12);
}
#a11y-fab:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }
#a11y-panel {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translate(100%, -50%);
  z-index: 701;
  width: min(300px, 92vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px 0 0 12px;
  padding: 16px;
  box-shadow: -8px 8px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}
#a11y-panel.open { transform: translate(0, -50%); }
.a11y-panel-head,
.ck-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
#a11y-title,
#ck-modal-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin: 0;
}
.a11y-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: var(--surface);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.a11y-close:hover { background: var(--border); }
.a11y-close:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }
.a11y-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
}
.a11y-opt:last-of-type { border-bottom: none; }
.a11y-opt input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cta);
  cursor: pointer;
}
.a11y-hint {
  font-size: 12px;
  color: var(--muted);
  margin: -4px 0 8px;
}
.a11y-reset {
  margin-top: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.a11y-reset:hover { background: var(--surface); }
.a11y-reset:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }
.a11y-live {
  min-height: 1.25rem;
  margin-top: 8px;
  font-size: 12px;
  color: var(--cta-hover);
  font-weight: 600;
}

/* Cookie bar + floating icon */
.ck-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 650;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
  padding: 16px;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.ck-bar.is-entering { animation: cookie-up 0.35s ease; }
.ck-bar.is-leaving {
  transform: translateY(100%);
  opacity: 0;
}
.ck-bar-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
@media (min-width: 640px) {
  .ck-bar-inner {
    flex-direction: row;
    align-items: center;
  }
}
.ck-bar-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.ck-bar-text strong { color: var(--navy); }
.ck-bar-text a {
  color: var(--cta);
  text-decoration: underline;
  font-weight: 600;
}
.ck-bar-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.ck-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
}
.ck-btn:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }
.ck-btn-primary {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
}
.ck-btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.ck-btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--border);
}
.ck-btn-secondary:hover { background: var(--surface); }
.ck-btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  font-weight: 600;
  text-decoration: underline;
  padding-left: 0;
  padding-right: 0;
}
.ck-btn-ghost:hover { color: var(--navy); }

#ck-shield {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 652;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform 0.2s ease;
}
#ck-shield.is-visible:hover { transform: scale(1.06); }
#ck-shield:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }

#ck-modal[hidden],
#ck-bar[hidden],
#ck-shield[hidden],
#a11y-panel[hidden] {
  display: none !important;
}

#ck-modal {
  position: fixed;
  inset: 0;
  z-index: 660;
  background: rgba(12, 25, 41, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#ck-modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
.ck-modal-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 8px;
}
.ck-modal-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
}
.ck-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ck-modal-link {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.ck-modal-link a {
  color: var(--cta);
  text-decoration: underline;
  font-weight: 600;
}

@keyframes cookie-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  .hero-deco { display: none; }
  #a11y-fab { top: auto; bottom: 6.5rem; transform: none; border-radius: 8px 0 0 8px; }
  #a11y-panel { top: auto; bottom: 0; right: 0; left: 0; transform: translateY(100%); width: 100%; border-radius: 16px 16px 0 0; }
  #a11y-panel.open { transform: translateY(0); }
  #ck-shield { bottom: 1rem; left: 1rem; }
}

/* Parco veicoli — sidebar filtri (mobile collassabile) */
@media (max-width: 1023px) {
  .parco-filter-wrap { display: none; }
  .parco-filter-wrap.is-open { display: block; }
}
@media (min-width: 1024px) {
  .parco-filter-wrap { display: block !important; }
}

/* Moduli pubblici Light — checkbox privacy */
.light-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.55;
}
.light-check input[type='checkbox'] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  margin-top: 2px;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  flex-shrink: 0;
}
.light-check input[type='checkbox']:checked {
  background: var(--cta);
  border-color: var(--cta);
}
.light-check input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.light-check a {
  color: var(--cta);
  text-decoration: underline;
  font-weight: 600;
}
.light-check .req-star {
  color: var(--cta);
}

/* Banner admin — modalità manutenzione attiva */
:root {
  --maint-banner-h: 0px;
}
body.has-maint-banner {
  --maint-banner-h: 42px;
}
body.has-maint-banner #main-header {
  top: var(--maint-banner-h);
}
.maint-admin-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  min-height: var(--maint-banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 16px;
  background: #fff7ed;
  border-bottom: 2px solid #fdba74;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.12);
}
.maint-admin-banner__icon { flex-shrink: 0; }
.maint-admin-banner__text strong { color: #c2410c; }
.maint-admin-banner__link {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--cta);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.maint-admin-banner__link:hover {
  background: #ea580c;
}
