/* Stile del nuovo layout (design/nuovo-layout.html, approvato il 4/12/2026).
   Blu scuro per ciò che si tocca, rosso solo per l'urgente; viola = prenotazioni, verde acqua = ordini.
   Mobile first: si parte da 390 px, tutto funziona da 320 px. Tocco minimo 44 px. */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --surface-3: #e9ecf1;
  --line: #e3e6eb;
  --line-strong: #cfd4dc;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #5b6577;
  --accent: #1d4064;
  --accent-hover: #163252;
  --accent-ink: #ffffff;
  --accent-soft: #eaf0f6;
  --bk: #4b3fae;
  --bk-soft: #edebfa;
  --or: #0b6b6b;
  --or-soft: #e2f3f2;
  --ok: #15803d;
  --ok-soft: #e8f5ec;
  --warn: #a15c07;
  --warn-soft: #fdf3e3;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --info: #285a8c;
  --info-soft: #eaf1f8;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 5%);
  --shadow: 0 1px 2px rgb(15 23 42 / 4%), 0 4px 16px rgb(15 23 42 / 6%);
  --shadow-lg: 0 12px 40px rgb(15 23 42 / 18%);
  --radius: 14px;
  --radius-sm: 10px;
  --tap: 44px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

/* Scuro: lo sceglie theme.js (browser la prima volta, poi la scelta in "Altro"). */
:root[data-theme="dark"] {
  --bg: #0b0d10;
  --surface: #14171c;
  --surface-2: #1b1f26;
  --surface-3: #232831;
  --line: #252a32;
  --line-strong: #353c47;
  --text: #e8eaee;
  --text-2: #c5cad3;
  --muted: #98a1b0;
  --accent: #a9c7e8;
  --accent-hover: #c2d8f0;
  --accent-ink: #0d1b2a;
  --accent-soft: #1b2836;
  --bk: #b4aaf6;
  --bk-soft: #221f3d;
  --or: #70cfc8;
  --or-soft: #102f2e;
  --ok: #5cc98b;
  --ok-soft: #13261b;
  --warn: #e9b04f;
  --warn-soft: #2b2112;
  --danger: #f2877c;
  --danger-soft: #33191a;
  --info: #8db6e6;
  --info-soft: #152234;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
  --shadow: 0 1px 2px rgb(0 0 0 / 35%), 0 6px 20px rgb(0 0 0 / 25%);
  --shadow-lg: 0 16px 48px rgb(0 0 0 / 55%);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
/* Niente "tira per ricaricare" di Android: farebbe perdere le modifiche in corso. Per aggiornare ci sono i pulsanti. */
html, body { overscroll-behavior-y: contain; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, h5 { letter-spacing: -.015em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
