/* Evoluzione Meccatronica: stile professionale.
   Fondo chiaro, blu notte istituzionale, arancio solo per le azioni, foto grandi. */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #0e1a2b;
  --navy-2: #172a42;
  --on-navy: #f1f4f8;
  --on-navy-2: #b4c0d0;
  --accent: #c2410c;
  --accent-hover: #a6370a;
  --accent-soft: #fff1e9;
  --wa: #128c4a;
  --wa-hover: #0e7a40;
  --bg: #ffffff;
  --bg-2: #f4f6f9;
  --line: #e2e7ee;
  --line-2: #cfd7e2;
  --ink: #111c2b;
  --ink-2: #4a5768;
  --ink-3: #657183;
  --red: #b42318;
  --red-soft: #fdecea;
  --green: #127a45;
  --green-soft: #e3f4ea;

  --f: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1200px;
  --pad: clamp(18px, 4vw, 32px);
  --r: 14px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 10px 30px -12px rgba(14, 26, 43, .22);
  --shadow-lg: 0 2px 4px rgba(14, 26, 43, .08), 0 30px 60px -24px rgba(14, 26, 43, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; font-family: var(--f); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; caret-color: var(--accent); scrollbar-color: var(--line-2) var(--bg-2);
}
::selection { background: var(--navy); color: #fff; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.15; color: var(--ink); text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.lead { font-size: 1.15rem; color: var(--ink); }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 14px 22px; border-radius: 10px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px rgba(194, 65, 12, .7); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn.sm { padding: 9px 14px; font-size: .9rem; border-radius: 8px; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.link, .more { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; text-decoration: none; }
.link:hover, .more:hover { text-decoration: underline; }
.more .ico, .btn .ico { transition: transform .2s var(--ease); }
.more:hover .ico { transform: translateX(2px); }

/* ---------- testata ---------- */
.topbar { background: var(--navy); color: var(--on-navy-2); font-size: .85rem; }
.topbar-in { max-width: 1280px; margin: 0 auto; padding: 7px var(--pad); display: flex; justify-content: space-between; gap: 16px; }
.topbar a { color: var(--on-navy-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar-hours { display: inline-flex; align-items: center; gap: 6px; }
.open-state.is-open { color: #7ee2a8; }
.open-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #9aa6b5; margin-right: 8px; }
.open-dot.is-open { background: #34c77b; box-shadow: 0 0 0 4px rgba(52, 199, 123, .25); }

.bar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1280px; margin: 0 auto; padding: 12px var(--pad); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.brand-mark { width: 44px; height: 44px; }
.lm-text { font-family: var(--f); font-weight: 800; font-size: 19px; letter-spacing: -.5px; }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.brand-sub { font-size: .78rem; color: var(--ink-3); font-weight: 500; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: block; white-space: nowrap; padding: 9px 11px; border-radius: 8px; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; }
.nav a:hover { background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; }
.bar-phone { padding: 11px 16px; flex: none; }

@media (max-width: 1220px) {
  .bar-in { gap: 12px; }
  .bar-phone { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; font-size: .95rem; background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 9px 14px; color: var(--ink); cursor: pointer; }
  .nav ul { display: none; }
  .nav.is-open ul { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--pad) 16px; }
  .nav.is-open a { padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}
@media (max-width: 600px) { .topbar-in > a { display: none; } .topbar-in { justify-content: center; } .brand-name { font-size: .98rem; } .brand-mark { width: 40px; height: 40px; } .nav-toggle span { display: none; } .nav-toggle { padding: 10px; } }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--on-navy); background: var(--navy); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14, 26, 43, .94) 0%, rgba(14, 26, 43, .84) 45%, rgba(14, 26, 43, .5) 100%); }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero-status { display: inline-flex; align-items: center; font-size: .9rem; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--on-navy-2); margin: 18px 0 28px; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ico { color: #ff9a5c; stroke-width: 3; }

.book-card { background: #fff; color: var(--ink); border-radius: 18px; padding: clamp(22px, 2.6vw, 30px); box-shadow: var(--shadow-lg); }
.book-card h2 { font-size: 1.5rem; }
.book-sub { color: var(--ink-2); font-size: .95rem; margin: 6px 0 18px; }
.book-sub strong { color: var(--ink); }
.book-step { margin-bottom: 16px; }
.book-label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.book-more { display: block; text-align: center; margin-top: 12px; font-size: .92rem; font-weight: 600; }
.book-card .btn-primary { margin-top: 6px; }

.days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.register .days { display: flex; flex-wrap: wrap; }
.register .day { width: 66px; }
.day { position: relative; display: grid; justify-items: center; padding: 8px 0; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; line-height: 1.1; transition: border-color .15s, background .15s; }
.day input, .slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.day-w, .day-m { font-size: .7rem; font-weight: 600; text-transform: uppercase; color: var(--ink-3); }
.day-n { font-size: 1.3rem; font-weight: 800; margin: 2px 0; }
.day:hover, .slot:hover { border-color: var(--navy); }
.day:has(input:checked), .slot:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.day:has(input:checked) .day-n, .day:has(input:checked) span, .slot:has(input:checked) { color: var(--accent); }
.day:has(input:focus-visible), .slot:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.day.is-full { opacity: .4; cursor: not-allowed; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { position: relative; display: inline-grid; place-items: center; min-width: 64px; padding: 9px 10px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; font-weight: 700; cursor: pointer; }
.slot.is-taken { color: var(--line-2); text-decoration: line-through; cursor: not-allowed; }
.slots-empty { margin: 4px 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- punti di forza ---------- */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust-in { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust li { display: flex; align-items: center; gap: 14px; padding: 24px 18px; }
.trust li + li { border-left: 1px solid var(--line); }
.trust li > .ico { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.trust strong { display: block; font-size: 1rem; }
.trust span { font-size: .88rem; color: var(--ink-2); }

/* ---------- sezioni ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-2); font-size: 1.1rem; margin: 12px 0 0; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.two h2 { margin-bottom: 18px; }
.voice { font-size: 1.12rem; }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s var(--ease); }
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.service-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.service-body p { color: var(--ink-2); margin: 8px 0 0; }
.service .models { color: var(--accent); font-weight: 700; font-size: .88rem; margin-top: 4px; }
.service .when { font-size: .93rem; margin-top: 10px; }
.service .when strong { color: var(--ink); }
.service .more { margin-top: auto; padding-top: 18px; }
.service:target { outline: 3px solid var(--accent); }
.service-cta { background: var(--navy); border-color: var(--navy); justify-content: center; }
.service-cta h3 { color: #fff; font-size: 1.4rem; }
.service-cta p { color: var(--on-navy-2); margin-bottom: 22px; }
.service-cta .btn { align-self: flex-start; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-img img { width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.split h2 { margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.checks li { display: flex; gap: 12px; }
.checks .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--accent); color: #fff; stroke-width: 3; margin-top: 2px; }
.checks strong { display: block; line-height: 1.3; }
.checks span { font-size: .92rem; color: var(--ink-2); }

.band { background: var(--navy); color: var(--on-navy); padding: clamp(44px, 6vw, 72px) 0; }
.band-in { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.band h2 { color: #fff; }
.band p { margin: 10px 0 0; color: var(--on-navy-2); font-size: 1.08rem; }

.fields { margin: 0; }
.fields > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.fields dt { font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.fields dd { margin: 0; font-weight: 600; }
.fields dd a { color: var(--ink); }
.fields.compact > div { padding: 9px 0; grid-template-columns: 120px 1fr; }

/* auto */
.cars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.car a { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.car a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.car-img { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); }
.car-img img { width: 100%; height: 100%; object-fit: cover; }
.car-noimg { height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--ink-3); font-size: .9rem; }
.car-noimg .ico { width: 44px; height: 44px; stroke-width: 1.4; }
.car-noimg.big { aspect-ratio: 4 / 3; background: var(--bg-2); border-radius: var(--r); }
.car-body { padding: 16px 18px 20px; }
.car-body h3 { font-size: 1.15rem; }
.car-ver { font-weight: 500; color: var(--ink-2); }
.car-specs { margin: 6px 0 12px; color: var(--ink-2); font-size: .92rem; }
.car-price { margin: 0; font-size: 1.4rem; font-weight: 800; }
.tag-fin, .tag-sold { position: absolute; top: 12px; left: 12px; font-weight: 700; font-size: .78rem; padding: 5px 10px; border-radius: 999px; background: var(--green); color: #fff; }
.tag-sold { background: var(--red); left: auto; right: 12px; }
.cd-fin .tag-fin { position: static; display: inline-block; margin-right: 8px; }
.empty { border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: clamp(22px, 3vw, 32px); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.empty p { margin: 4px 0 0; color: var(--ink-2); }
.count { color: var(--ink-2); font-size: .92rem; margin: 18px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: end; padding: 18px; background: var(--bg-2); border-radius: var(--r); }
.filters label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.filters label.chk { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; font-size: .95rem; color: var(--ink); }
.filters select { min-width: 160px; }
.js .filters[data-autosubmit] button { display: none; }
.fin-note { margin-top: 40px; color: var(--ink-2); font-size: .95rem; }
.crumbs { margin: 0 0 18px; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.cd-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.g-main { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.g-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.g-thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.g-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; width: 100%; }
.g-thumbs button[aria-current="true"] { border-color: var(--accent); }
.g-thumbs img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.cd-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.cd-price { font-size: 2rem; font-weight: 800; margin: 12px 0; }
.cd-fin { color: var(--ink-2); }
.cd-info .fields { margin: 20px 0 26px; }
.cd-desc { margin-top: 48px; max-width: 72ch; }
.cd-desc h2 { font-size: 1.4rem; margin-bottom: 12px; }
.cta-stack { display: grid; gap: 12px; max-width: 420px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* dove siamo */
.hours { width: 100%; border-collapse: collapse; margin-top: 28px; }
.hours caption { text-align: left; font-weight: 800; font-size: 1.1rem; padding-bottom: 8px; }
.hours th, .hours td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours th { font-weight: 600; }
.map { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--bg-2); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-ph { height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 24px; }
.map-ph p { margin: 0; }
.map-pin { width: 44px; height: 44px; color: var(--accent); }
.map-note { font-size: .8rem; color: var(--ink-3); max-width: 30ch; }

/* pagine interne */
.page-head { background: var(--navy); color: var(--on-navy); padding: clamp(44px, 6vw, 80px) 0; }
.page-head h1 { color: #fff; }
.page-head .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--on-navy-2); margin: 14px 0 0; max-width: 60ch; }

/* moduli */
.register { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.reg-head { margin-bottom: 18px; }
.reg-head h1, .reg-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.reg-head p { margin: 6px 0 0; color: var(--ink-2); }
fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
legend { font-weight: 800; font-size: 1.1rem; padding: 0 0 10px; width: 100%; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.reg-row, .f-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 0; align-items: start; }
.reg-label, .f-label { font-size: .92rem; font-weight: 600; color: var(--ink); padding-top: 11px; }
.reg-val.big { font-size: 1.3rem; font-weight: 700; }
.done .reg-row { border-bottom: 1px solid var(--line); padding: 10px 0; }
.done .reg-label { padding-top: 2px; color: var(--ink-3); }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%; font: inherit; font-size: 16.5px; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 100px; }
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='%234a5768' 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: 0; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(14, 26, 43, .12); }
::placeholder { color: #7d8898; opacity: 1; }
input.plate { text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.plate { letter-spacing: .05em; font-weight: 600; }
.f-hint { margin: 6px 0 0; font-size: .86rem; color: var(--ink-3); }
.f-err { margin: 6px 0 0; font-size: .9rem; color: var(--red); font-weight: 600; display: block; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--red); }
.has-error > .f-label, .has-error > .reg-label { color: var(--red); }
.form-alert { background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 12px 14px; font-weight: 600; margin-bottom: 18px; }
.f-check { margin: 4px 0 0; }
.f-check label { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.f-check input, .filters input[type="checkbox"], .cf-flags input { accent-color: var(--accent); width: 20px; height: 20px; flex: none; margin-top: 2px; }
.form-submit { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-submit .btn { min-width: 260px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1.5px dashed var(--line-2); border-radius: 10px; background: var(--bg-2); cursor: pointer; font-weight: 600; }
.upload-btn:hover { border-color: var(--navy); }
.upload:has(input:focus-visible) .upload-btn { outline: 3px solid var(--accent); outline-offset: 2px; }
.upload-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.upload-list li { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.upload-list img { width: 100%; height: 100%; object-fit: cover; }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 28px 0 0; color: var(--ink-2); }
.contact-line a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-line a .ico { color: var(--accent); }
.steps { list-style: none; counter-reset: s; margin: 0 0 24px; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; padding: 14px 0; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; grid-row: span 2; }
.steps p { margin: 4px 0 0; color: var(--ink-2); }
.notice { background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; }
.prose h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }

.success { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 18px; }
.success .ico { width: 34px; height: 34px; stroke-width: 3; }
.js .success[data-success] { animation: pop .6s var(--ease) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.after { margin-top: 28px; }
.after p { color: var(--ink-2); }

/* piè di pagina e contatti fissi */
.foot { background: var(--navy); color: var(--on-navy-2); padding: 60px 0 110px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-mark { width: 52px; height: 52px; flex: none; }
.foot-mark rect:first-child, .adm-bar .brand-mark rect:first-child { fill: #fff; }
.foot-mark text, .adm-bar .brand-mark text { fill: var(--navy); }
.foot strong { color: #fff; }
.foot p { margin: 0; line-height: 1.7; }
.foot-hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.foot-hours dt { color: var(--on-navy-2); font-weight: 600; }
.foot-hours dd { margin: 0; color: #fff; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

.dock { position: fixed; z-index: 50; right: 20px; bottom: 20px; display: flex; gap: 10px; }
.dock a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; box-shadow: 0 12px 24px -10px rgba(14, 26, 43, .55); transition: transform .2s var(--ease); }
.dock a:hover { transform: translateY(-2px); }
.dock-call { background: var(--accent); }
.dock-wa { background: var(--wa); }

@media (max-width: 960px) {
  .hero::before { background: linear-gradient(180deg, rgba(14, 26, 43, .9), rgba(14, 26, 43, .82)); }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: none; }
  .trust-in { grid-template-columns: 1fr 1fr; }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .services { grid-template-columns: 1fr 1fr; }
  .two, .split, .cd-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: 1fr; }
  .dock { left: 0; right: 0; bottom: 0; gap: 0; padding: 0 0 env(safe-area-inset-bottom); background: var(--navy); }
  .dock a { flex: 1; justify-content: center; border-radius: 0; padding: 16px 10px; box-shadow: none; }
  .dock a:hover { transform: none; }
  .dock .long { display: none; }
  body { padding-bottom: 58px; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .trust li { padding: 18px 8px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .trust li > .ico { width: 38px; height: 38px; padding: 9px; }
  .services { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .reg-row, .f-row { grid-template-columns: 1fr; gap: 6px; padding: 10px 0; }
  .reg-label, .f-label { padding-top: 0; }
  .register .day { width: calc((100% - 5 * 6px) / 6); min-width: 46px; }
  .days { gap: 5px; }
  .day-n { font-size: 1.15rem; }
  .slot { min-width: 0; flex: 1 0 calc(25% - 6px); }
  .form-submit .btn { width: 100%; min-width: 0; }
  .fields > div, .fields.compact > div { grid-template-columns: 1fr; gap: 2px; }
  .band-in { display: grid; }
}

/* ---------- pannello officina ---------- */
.adm { background: var(--bg-2); padding-bottom: 40px; }
.adm-bar { position: sticky; top: 0; z-index: 40; background: var(--navy); color: var(--on-navy); display: flex; align-items: center; gap: 20px; padding: 8px var(--pad); flex-wrap: wrap; }
.adm-bar .brand { color: #fff; }
.adm-bar .brand-mark { width: 38px; height: 38px; }
.adm-bar .brand-name { font-size: .9rem; line-height: 1.1; }
.adm-bar nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.adm-bar nav a { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px; color: var(--on-navy); text-decoration: none; font-weight: 600; }
.adm-bar nav a:hover { background: var(--navy-2); }
.adm-bar nav a[aria-current="page"] { background: #fff; color: var(--navy); }
.badge { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .78rem; line-height: 1.5; }
.adm-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.adm-right a, .adm-right .linkbtn { color: var(--on-navy); }
.linkbtn { background: none; border: 0; font: inherit; color: var(--accent); cursor: pointer; padding: 4px 0; display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-underline-offset: .2em; }
.linkbtn.danger { color: var(--red); }
.adm-main { max-width: 1100px; margin: 0 auto; padding: 28px var(--pad); }
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.adm-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.adm-h2 { font-size: 1.1rem; margin: 24px 0 10px; }
.seg { display: flex; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.seg a { padding: 8px 14px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.seg a + a { border-left: 1px solid var(--line-2); }
.seg a[aria-current="page"] { background: var(--navy); color: #fff; }
.flash { background: var(--green-soft); color: var(--green); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.adm-empty { color: var(--ink-2); background: #fff; border: 1px dashed var(--line-2); border-radius: 12px; padding: 22px; }
.day-group { margin-bottom: 28px; }
.day-group h2 { font-size: 1.05rem; margin-bottom: 8px; }
.adm-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.adm-list > li + li { border-top: 1px solid var(--line); }
.adm-list summary, .adm-list > li > a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; color: var(--ink); text-decoration: none; list-style: none; }
.adm-list summary::-webkit-details-marker { display: none; }
.adm-list > li > a:hover, .adm-list summary:hover { background: var(--bg-2); }
.bk-time { font-size: 1.3rem; font-weight: 800; min-width: 60px; }
.bk-main { min-width: 0; }
.bk-body { padding: 4px 16px 18px; }
.bk-contact { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.bk-contact a { font-weight: 650; display: inline-flex; gap: 6px; align-items: center; }
.bk-contact.col { flex-direction: column; align-items: stretch; }
.bk-notes { background: var(--bg-2); border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; }
.bk-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 12px 0; }
.bk-form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.bk-form label.wide { flex: 1 1 260px; }
.bk-form.col { flex-direction: column; align-items: stretch; }
.bk-form input, .bk-form select, .bk-form textarea { font-size: 16px; padding: 9px 10px; }
.adm-add { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.adm-add summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; font-size: .78rem; font-weight: 700; }
.pill.st-nuova { background: var(--accent-soft); color: var(--accent); }
.pill.st-confermata { background: var(--green-soft); color: var(--green); }
.pill.st-annullata { background: var(--red-soft); color: var(--red); }
.pill.st-risposta { background: #e6eef8; color: #1d4e89; }
.pill.kind { background: transparent; border: 1px solid var(--line-2); }
.rq-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.adm-list > li.rq > a { grid-template-columns: 110px 1fr auto; }
.adm-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 32px; align-items: start; }
.adm-side { position: sticky; top: 90px; display: grid; gap: 16px; }
.adm-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.adm-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.ph-tools { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 4px; font-size: .85rem; }
.ph-tools input { width: 16px; height: 16px; accent-color: var(--red); }
.car-row .cr-img { width: 84px; height: 63px; border-radius: 6px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; color: var(--ink-3); }
.car-row .cr-img img { width: 100%; height: 100%; object-fit: cover; }
.car-form { display: grid; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.cf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cf-grid label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.cf-grid label.wide { grid-column: 1 / -1; }
.cf-flags { display: flex; gap: 24px; flex-wrap: wrap; }
.cf-flags label { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.cf-actions { padding-top: 12px; border-top: 1px solid var(--line); }
.cf-delete { margin-top: 30px; }
.closures li { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.adm-login { display: grid; place-items: center; min-height: 100vh; background: var(--navy); }
.login-card { background: #fff; border-radius: 18px; padding: 32px; width: min(380px, 92vw); display: grid; gap: 14px; justify-items: center; box-shadow: var(--shadow-lg); }
.login-mark { width: 64px; height: 64px; }
.login-card h1 { font-size: 1.5rem; }
.login-card form { display: grid; gap: 10px; width: 100%; }
.login-card label { font-weight: 600; font-size: .9rem; }
@media (max-width: 760px) {
  .adm-bar nav { order: 3; width: 100%; }
  .adm-bar nav ul { display: grid; grid-template-columns: repeat(4, 1fr); }
  .adm-bar nav a { flex-direction: column; gap: 2px; padding: 8px 4px; font-size: .78rem; position: relative; }
  .adm-bar nav .badge { position: absolute; top: 2px; right: 12%; }
  .adm-two { grid-template-columns: 1fr; }
  .adm-side { position: static; }
  .cf-grid { grid-template-columns: 1fr 1fr; }
  .adm-list > li.rq > a { grid-template-columns: 1fr; }
  .rq-side { flex-direction: row; align-items: center; }
}

/* ---------- La nostra storia ---------- */
.story { max-width: 820px; }
.story > h2 { margin-bottom: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line, #e2e7ee); }
.tl-item { position: relative; padding: 0 0 48px 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px #fff1e9; }
.tl-year { margin: 0 0 4px; font-weight: 800; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.tl-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 0 0 14px; }
.tl-body p { margin: 0 0 14px; }
.tl-quote { margin: 22px 0 0; padding: 20px 24px; background: var(--navy); color: #fff; border-radius: 14px; border-left: 5px solid var(--accent); }
.tl-quote blockquote { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 800; line-height: 1.35; }
.tl-quote figcaption { margin-top: 8px; font-size: .92rem; color: var(--on-navy-2, #c5cfdc); }
.path { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.path li { background: #fff; border: 1px solid #e2e7ee; border-radius: 14px; padding: 16px 18px; font-weight: 600; line-height: 1.35; }
.path li span { display: block; color: var(--accent); font-weight: 800; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.story-end { margin: 28px 0; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; line-height: 1.3; color: var(--ink); }
@media (max-width: 600px) {
  .path { grid-template-columns: 1fr; }
  .tl-item { padding-left: 36px; }
}
