/* ============================================================
   Pitstop — Stile base (tema personalizzabile per cliente)
   Colori di default: nero / rosso #D4000D / bianco. Font: Bank (logo) + Inter.
   ============================================================ */

/* Carattere del logo: di default Oswald (Google, licenza libera OFL), caricato a runtime.
   Offline ripiega su font di sistema (Impact/Arial Narrow). */
/* Inter: font leggibile "da app" per tutti i contenuti */
@font-face { font-family: "Inter"; src: url("assets/font/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/font/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/font/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --red: #D4000D;
  --red-dark: #a80009;
  --black: #111111;
  --black-soft: #1c1c1c;
  --yellow: #f2c200;
  --ink: #20242a;
  --muted: #6b7178;
  --line: #e4e6e9;
  --bg: #f4f5f6;
  --card: #ffffff;
  --danger: #d9534f;
  --ok: #2e9e4f;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,.07);
  --font-logo: "Outfit", "Inter", system-ui, sans-serif;  /* SOLO per il logo */
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---- Tema scuro (attivabile per cliente: brand.theme = 'dark') ---- */
[data-theme="dark"] {
  --ink: #e8eaed; --muted: #9aa3b2; --line: #2a3038; --bg: #0f1216; --card: #171c22;
  --shadow: 0 2px 14px rgba(0,0,0,.45);
  color-scheme: dark;
}
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { background: #0f1216 !important; color: var(--ink) !important; border-color: var(--line) !important; }
[data-theme="dark"] input[type="color"] { padding: 4px !important; }
[data-theme="dark"] input::placeholder, [data-theme="dark"] textarea::placeholder { color: #717a86; }
[data-theme="dark"] table.data { background: var(--card) !important; color: var(--ink); }
[data-theme="dark"] table.data th { background: #0c0f13 !important; color: #fff; }
[data-theme="dark"] table.data td { border-color: var(--line) !important; }
[data-theme="dark"] table.data tr:hover td { background: #232a33 !important; }
[data-theme="dark"] .modal-card { background: var(--card) !important; color: var(--ink); }
[data-theme="dark"] .btn-outline { color: var(--ink); }
[data-theme="dark"] .day, [data-theme="dark"] .slot { background: var(--card) !important; color: var(--ink); }
[data-theme="dark"] .card { background: var(--card); }
[data-theme="dark"] .about { background: var(--card) !important; }
[data-theme="dark"] .about-grid p { color: var(--muted); }
[data-theme="dark"] .contact-card { background: var(--card); }
/* Calendario/slot in tema scuro (stati leggibili) */
[data-theme="dark"] .day.avail { background: #11271c !important; border-color: #1f5135 !important; }
[data-theme="dark"] .day.few { background: #2a2410 !important; border-color: #5b4a16 !important; }
[data-theme="dark"] .day.closed, [data-theme="dark"] .day.disabled { background: #0c0f13 !important; color: #6b7178 !important; }
[data-theme="dark"] .day.selected { background: var(--red) !important; border-color: var(--red) !important; color: #fff; }
[data-theme="dark"] .sw.avail { background: #11271c; border-color: #1f5135; }
[data-theme="dark"] .sw.few { background: #2a2410; border-color: #5b4a16; }
[data-theme="dark"] .sw.closed { background: #0c0f13; }
[data-theme="dark"] .slot.booked { background: #241516 !important; color: #9a6b6b; border-color: #3a2528; }
[data-theme="dark"] .slot:hover:not(.booked) { background: #11233a !important; }
[data-theme="dark"] .bk-row { background: var(--card); }
[data-theme="dark"] .news-item { background: var(--card); }
[data-theme="dark"] .bottomnav { background: var(--card); }
[data-theme="dark"] .nav-btn { background: var(--card); color: var(--ink); }
[data-theme="dark"] .btn-outline, [data-theme="dark"] .btn-danger { background: transparent; }
[data-theme="dark"] .auth-tabs button { background: var(--card); }
[data-theme="dark"] .veh-card { background: var(--card); }
[data-theme="dark"] .admin-tabs button { background: var(--card); color: var(--ink); }
[data-theme="dark"] .modal { background: rgba(0,0,0,.66); }
[data-theme="dark"] .btn-outline, [data-theme="dark"] .btn-danger { color: var(--ink); }
[data-theme="dark"] .btn-danger { color: #ff8a8a; }
[data-theme="dark"] .form-panel, [data-theme="dark"] .calendar-panel { background: var(--card); }
[data-theme="dark"] .checkin { background: #1a1f27; border-color: var(--line); }
[data-theme="dark"] .reminder-banner { background: #2a2410; border-color: #5b4a16; color: #f0e2b8; }
[data-theme="dark"] .badge.annullato { background: #241516; }
[data-theme="dark"] .field input[readonly] { background: #0f1216 !important; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); line-height: 1.5;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------- Header / topbar ---------------- */
.topbar {
  display: flex; align-items: center; gap: 18px;
  background: var(--black); color: #fff; padding: 12px 24px; flex-wrap: wrap;
}
.brand { display: flex; flex-direction: row; align-items: center; gap: 12px; color: #fff; text-decoration: none; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand-shield { height: 56px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 0; line-height: 1; }
.brand-row { display: flex; align-items: baseline; gap: 5px; }
.brand .td { font-family: var(--font-logo); font-weight: 800; font-size: 40px; color: var(--red); letter-spacing: -0.5px; }
.brand .gomme { font-family: var(--font-logo); font-weight: 800; font-size: 40px; color: #fff; letter-spacing: -0.5px; }
.brand .tag {
  font-family: var(--font-head); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: #b9bdc2; margin-top: 2px; font-weight: 600;
}
.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: #e8eaec; font-size: 15px; padding: 6px 2px; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.active { color: #fff; border-bottom: 2px solid var(--red); }
.nav-user { color: #b9bdc2; font-size: 14px; }
.nav-btn-solid { background: var(--red); color: #fff !important; padding: 8px 16px !important; border-radius: 6px; }
.nav-btn-solid:hover { background: var(--red-dark); }
.nav-btn-outline { border: 1px solid #555; padding: 7px 14px !important; border-radius: 6px; color: #e8eaec !important; }
.nav-btn-outline:hover { border-color: var(--red); }
.nav-toggle { display: none; background: none; border: 1px solid #444; color: #fff; font-size: 20px; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
/* Barra di navigazione inferiore (solo mobile) */
.bottomnav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 14px rgba(0,0,0,.1); }
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 2px 6px; color: var(--muted); font-size: 11px; text-decoration: none; }
.bottomnav a:hover { text-decoration: none; }
.bottomnav a.active { color: var(--red); }
.bottomnav svg { width: 24px; height: 24px; }
.bottomnav a span { line-height: 1; }
.topbar-logout { display: none; color: #e8eaec !important; border: 1px solid #555; padding: 6px 12px; border-radius: 6px; font-size: 14px; }

/* ---------------- Layout pagina ---------------- */
.page { max-width: 1100px; margin: 0 auto; padding: 26px 20px 70px; }
.page-title { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.3px; font-size: 30px; margin: 0 0 4px; }
.page-subtitle { margin: 0 0 22px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }

/* Banner promemoria */
.reminder-banner {
  background: #fff7e0; border: 1px solid #f0d68a; color: #6b550c;
  padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px;
}

/* ---------------- Booking ---------------- */
.booking { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.calendar-panel, .form-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }

.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.month-label { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 18px; text-transform: capitalize; }
.nav-btn { border: 1px solid var(--line); background: #fff; width: 36px; height: 36px; border-radius: 8px; font-size: 20px; cursor: pointer; color: var(--ink); }
.nav-btn:hover { background: var(--bg); border-color: var(--red); }
.nav-btn:disabled { opacity: .35; cursor: not-allowed; }

.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.weekdays { margin-bottom: 6px; }
.weekdays span { text-align: center; font-size: 12px; font-weight: bold; color: var(--muted); }

.day { border: 1px solid var(--line); border-radius: 8px; min-height: 56px; min-width: 0; padding: 6px; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; background: #fff; overflow: hidden; }
.day:hover:not(.disabled):not(.closed) { border-color: var(--red); transform: translateY(-1px); }
.day .num { font-weight: bold; font-size: 14px; }
.day .info { font-size: 11px; color: var(--muted); }
.day.empty { border: none; background: transparent; cursor: default; }
.day.disabled { background: var(--bg); color: #bcc1c6; cursor: not-allowed; }
.day.closed { background: var(--bg); cursor: not-allowed; }
.day.avail { background: #eafaef; border-color: #bce6c8; }
.day.few { background: #fff7e6; border-color: #f0d18a; }
.day.selected { background: var(--black); border-color: var(--black); color: #fff; }
.day.selected .info { color: #cdd1d6; }

.legend { display: flex; gap: 16px; margin: 12px 2px 4px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--line); }
.sw.avail { background: #eafaef; } .sw.few { background: #fff7e6; border-color: #f0d18a; } .sw.closed { background: var(--bg); }

.slots-section { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.slots-title { margin: 0 0 12px; font-size: 15px; }
.slots-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 9px 4px; text-align: center; cursor: pointer; font-weight: bold; font-size: 14px; }
.slot:hover:not(.booked) { border-color: var(--red); background: #fff0f1; }
.slot.booked { background: #f6e9e9; color: #c08c8c; border-color: #ead2d2; cursor: not-allowed; text-decoration: line-through; }
.slot.selected { background: var(--red); color: #fff; border-color: var(--red); }
.slot small { display: block; font-weight: normal; font-size: 10px; opacity: .85; }

/* ---------------- Form ---------------- */
.form-section-title { font-family: var(--font-head); letter-spacing: .5px; margin: 18px 0 12px; font-size: 16px; }
.checkin { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; background: #fdecec; border: 1px solid #f3c9cb; border-radius: 8px; }
.field { display: flex; flex-direction: column; margin-bottom: 12px; min-width: 0; }
.field label { font-size: 13px; font-weight: bold; margin-bottom: 5px; }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); width: 100%; max-width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(212,0,13,.13); }
.field input[readonly] { background: #fff; font-weight: bold; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2 > .field { min-width: 0; }
.checks { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.invalid { border-color: var(--danger) !important; }

.btn { display: inline-block; border: none; border-radius: 8px; padding: 12px 18px; font-size: 15px; font-weight: bold; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--black); color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--red); }
.btn-danger { background: #fff; border: 1px solid #ecc4c4; color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.submit-btn { width: 100%; background: var(--red); color: #fff; border: none; padding: 13px; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; font-family: inherit; }
.submit-btn:hover { background: var(--red-dark); }
.form-error { color: var(--danger); font-size: 13px; margin: 10px 0 0; }
.form-hint { color: var(--muted); font-size: 13px; }

/* Selettore auto dal garage */
.garage-pick { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.garage-pick .veh { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.garage-pick .veh:hover { border-color: var(--red); }
.veh-targa { font-weight: bold; background: #111; color: #fff; border-radius: 4px; padding: 2px 8px; font-size: 13px; letter-spacing: 1px; }

/* ---------------- Modale ---------------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 14px; padding: 28px; max-width: 440px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-check { width: 60px; height: 60px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.modal-card h2 { font-family: var(--font-head); letter-spacing: .5px; margin: 0 0 6px; }
.modal-sub { color: var(--muted); margin: 0 0 18px; }
.summary { text-align: left; background: var(--bg); border-radius: 10px; padding: 14px; margin-bottom: 18px; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.summary div:last-child { border-bottom: none; }
.summary span:first-child { color: var(--muted); }
.summary span:last-child { font-weight: bold; text-align: right; }

/* ---------------- Auth ---------------- */
.auth-wrap { max-width: 440px; margin: 40px auto; }
.auth-tabs { display: flex; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.auth-tabs button { flex: 1; padding: 12px; border: none; background: #fff; cursor: pointer; font-weight: bold; font-family: inherit; font-size: 15px; color: var(--muted); }
.auth-tabs button.active { background: var(--red); color: #fff; }
.demo-note { background: #f0f7ff; border: 1px solid #cfe2f5; color: #2c5a86; font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-top: 14px; }
.link-btn { background: none; border: none; color: var(--red); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- Garage / profilo ---------------- */
.section { margin-bottom: 28px; }
/* Profilo: layout a due colonne (desktop) */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.profile-grid > * { min-width: 0; }
.profile-grid .section { margin-bottom: 0; }
.pg-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (max-width: 820px) { .profile-grid { grid-template-columns: 1fr; } }
.section h2 { font-family: var(--font-head); letter-spacing: .5px; font-size: 20px; margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.veh-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; box-shadow: var(--shadow); }
.veh-card .veh-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.veh-card .model { font-weight: bold; font-size: 16px; }
.veh-card .meta { color: var(--muted); font-size: 13px; }
.veh-card .actions { margin-top: 12px; display: flex; gap: 8px; }
.veh-card .actions .btn { flex: 1 1 0; text-align: center; }
.veh-card .veh-book { display: block; width: 100%; margin-top: 8px; text-align: center; }
.empty-state { color: var(--muted); padding: 18px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }

/* Liste prenotazioni */
.bk-list { display: flex; flex-direction: column; gap: 10px; }
.bk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #fff; flex-wrap: wrap; }
.bk-row > div:first-child { min-width: 0; }
.bk-when { font-weight: bold; }
.bk-meta { color: var(--muted); font-size: 13px; }
.badge { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: bold; }
.badge.confermato { background: #e6f6ec; color: var(--ok); }
.badge.annullato { background: #f6e9e9; color: var(--danger); }
.badge.completato { background: #eef0f2; color: var(--muted); }

/* ---------------- News ---------------- */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item { border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 8px; padding: 16px; background: #fff; box-shadow: var(--shadow); }
.news-item .date { color: var(--muted); font-size: 12px; }
.news-item h3 { font-family: var(--font-head); letter-spacing: .3px; margin: 4px 0 8px; }

/* ---------------- Admin ---------------- */
.admin-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tabs button { padding: 10px 16px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; font-weight: bold; font-family: inherit; }
.admin-tabs button.active { background: var(--black); color: #fff; border-color: var(--black); }
.tabpane { display: none; } .tabpane.active { display: block; }
.hero-logo-img { display: block; margin: 0 auto 8px; width: auto; max-width: min(460px, 82vw); max-height: 160px; object-fit: contain; }
/* Servizi prenotabili: tasti Modifica/Rimuovi sempre su una riga, testo con ellissi */
#svcList .bk-row { flex-wrap: nowrap; }
#svcList .bk-row > div:first-child { flex: 1; min-width: 0; }
#svcList .bk-row > div:last-child { flex: 0 0 auto; }
#svcList .bk-when, #svcList .bk-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-price { color: var(--red); font-weight: 700; margin-top: 8px; }
.svc-price span { color: var(--muted); font-weight: 400; font-size: 12px; }
.bg-chooser { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.bg-opt { position: relative; height: 72px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; overflow: hidden; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: #fff; }
.bg-opt:hover { border-color: var(--red); }
.bg-opt.sel { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.bg-opt .lbl { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; text-align: center; padding: 2px; }
.bg-opt.upload { background: var(--bg); color: var(--muted); border-style: dashed; font-size: 13px; }

table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
table.data th, table.data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.data th { background: var(--black); color: #fff; font-weight: bold; }
table.data tr:hover td { background: #fafbfc; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.toolbar input, .toolbar select { width: auto; }

/* KPI dashboard */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.kpi .num { font-size: 30px; font-weight: 700; line-height: 1; }
.kpi .lbl { font-size: 13px; color: var(--muted); margin-top: 6px; }
.kpi.accent .num { color: var(--red); }
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.bar-row .bar-track { display: block; background: var(--bg); border-radius: 6px; height: 18px; overflow: hidden; }
.bar-row .bar-fill { display: block; background: var(--red); height: 100%; border-radius: 6px; min-width: 2px; }
.bar-row .bar-val { text-align: right; font-weight: 700; color: var(--muted); }
.bar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Pulsante installa PWA */
#installBtn { position: fixed; right: 18px; bottom: 18px; z-index: 40; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* Cookie banner */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--black); color: #fff;
  display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; padding: 12px 18px; font-size: 14px; }
.cookie-bar a { color: #fff; text-decoration: underline; }

/* Footer */
.site-footer { text-align: center; padding: 22px; color: var(--muted); font-size: 13px; }

/* ---------------- Home page ---------------- */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: 70px 20px 80px;
  background: linear-gradient(rgba(10,10,10,.60), rgba(10,10,10,.82)), url("assets/img/hero-tire.jpg") center/cover no-repeat;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.hero-logo { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 22px; line-height: 1; }
.hero-logo .td { font-family: var(--font-logo); font-weight: 800; font-size: 92px; color: var(--red); letter-spacing: -2px; }
.hero-logo .gomme { font-family: var(--font-logo); font-weight: 800; font-size: 92px; color: #fff; letter-spacing: -2px; }
.hero-tag { font-size: 14px; letter-spacing: 4px; text-transform: uppercase; color: #c9cdd2; margin-top: -10px; margin-bottom: 30px; }
.hero h1 { font-size: 40px; font-weight: 700; line-height: 1.15; margin: 0 auto 14px; max-width: 760px; letter-spacing: -0.5px; }
.hero h1 .accent { color: var(--red); }
.hero p.lead { font-size: 18px; color: #d7dadf; max-width: 640px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 15px 28px; font-size: 17px; border-radius: 10px; }
.btn-ghost { background: transparent; border: 1px solid #555; color: #fff; }
.btn-ghost:hover { border-color: var(--red); }

.home-section { max-width: 1080px; margin: 0 auto; padding: 56px 20px; }
.home-section h2 { font-size: 28px; font-weight: 700; text-align: center; margin: 0 0 6px; letter-spacing: -0.3px; }
.home-section .sub { text-align: center; color: var(--muted); margin: 0 auto 34px; max-width: 600px; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; text-align: center; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.svc-card .ico { font-size: 34px; }
.svc-card h3 { font-size: 17px; font-weight: 700; margin: 12px 0 6px; }
.svc-card p { color: var(--muted); font-size: 14px; margin: 0; }

.about { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.about-grid p { font-size: 16px; color: #404650; margin: 0 0 14px; }
.veh-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.veh-chip { background: var(--bg); border: 1px solid var(--line); border-radius: 30px; padding: 8px 16px; font-weight: 600; font-size: 14px; }
.about-card { background: var(--black); color: #fff; border-radius: 16px; padding: 30px; text-align: center; }
.about-card .big { font-size: 52px; font-weight: 700; color: var(--red); line-height: 1; }
.about-card .big-label { font-size: 15px; color: #c9cdd2; margin-top: 6px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.contact-card .ico { font-size: 26px; }
.contact-card h3 { font-size: 15px; margin: 8px 0 4px; font-weight: 700; }
.contact-card a, .contact-card span { color: var(--ink); font-size: 15px; }
.home-cta-band { background: var(--red); color: #fff; text-align: center; padding: 46px 20px; }
.home-cta-band h2 { font-size: 26px; font-weight: 700; margin: 0 0 8px; }
.home-cta-band p { margin: 0 0 22px; opacity: .95; }
.home-cta-band .btn { background: #fff; color: var(--red); }

/* ---------------- Responsive ---------------- */
@media (max-width: 820px) {
  .booking { grid-template-columns: 1fr; }
  /* su mobile: nav in alto nascosta, navigazione nella bottom bar */
  .nav { display: none; }
  .bottomnav { display: flex; }
  .topbar-logout { display: inline-block; margin-left: auto; }
  body { padding-bottom: 66px; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .brand { gap: 8px; flex: 1 1 auto; min-width: 0; }
  .brand-text { min-width: 0; overflow: hidden; }
  .brand-shield { flex: 0 0 auto; height: 36px; }
  .brand .td, .brand .gomme { font-size: 26px; }
  .brand .gomme { letter-spacing: -0.5px; }
  .brand .tag { display: none; }
  .cookie-bar { bottom: 66px; }
  #installBtn { bottom: 78px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats-row { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 30px; }
  .hero-logo .td, .hero-logo .gomme { font-size: 60px; }
  .hero-logo .gomme { letter-spacing: -1px; }

  /* Admin responsive */
  .admin-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .admin-tabs button { flex: 0 0 auto; white-space: nowrap; }
  table.data { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .toolbar { gap: 8px; }
  .toolbar input, .toolbar select { min-width: 0; }
}
@media (max-width: 540px) {
  .svc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .page { padding: 18px 12px 60px; }
  .brand .td, .brand .gomme { font-size: 23px; }
  .brand-shield { height: 32px; }
  .hero { padding: 50px 14px 56px; }
  .hero-logo .td, .hero-logo .gomme { font-size: 48px; }
  .hero-logo .gomme { letter-spacing: -1px; }
  .hero h1 { font-size: 25px; }
  .calendar-panel, .form-panel { padding: 12px; }
  .calendar-grid, .weekdays { gap: 3px; }
  .day { min-height: 50px; padding: 4px; }
  .day .num { font-size: 13px; }
  .day .info { font-size: 9px; line-height: 1.1; }
  .month-label { font-size: 16px; }
  .checkin { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .slots-list { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
}
