/* So Ham · prenotazioni — stile (stessa identità del sito: notte, avorio, oro; Bodoni Moda + Jost) */
@font-face { font-family: "Bodoni Moda"; src: url(/fonts/BodoniModa.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(/fonts/BodoniModa-i.woff2) format("woff2"); font-style: italic; font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Jost"; src: url(/fonts/jost-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; src: url(/fonts/jost-latin-ext.woff2) format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #0f0d12; --night-2: #17141b; --night-3: #211d26;
  --ivory: #f3ede4; --mist: #b3abb4; --gold: #c9a86a; --gold-l: #dcc28f; --gold-d: #8a6d3b;
  --hair: rgba(201, 168, 106, .28); --ok: #9cc7a4; --warn: #e6b17a; --bad: #e08f86;
  --serif: "Bodoni Moda", "Didot", "Times New Roman", serif; --sans: "Jost", "Futura", system-ui, -apple-system, sans-serif;
  --r: 18px; --tab: 68px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ivory); font: 400 17px/1.5 var(--sans); min-height: 100dvh;
  padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom)); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold-l); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  background: rgba(15, 13, 18, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.top img { width: 34px; height: 34px; }
.brand { font: 500 22px/1 var(--serif); letter-spacing: .02em; }
.brand small { display: block; font: 400 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.top .who { margin-left: auto; font-size: 14px; color: var(--mist); text-align: right; }

.demo { margin: 12px 18px 0; padding: 10px 14px; border: 1px dashed var(--gold-d); border-radius: 12px; font-size: 14px; color: var(--gold-l); }
main { max-width: 720px; margin: 0 auto; padding: 8px 18px 28px; }
h1 { font: 500 clamp(30px, 8vw, 44px)/1.1 var(--serif); margin: 22px 0 6px; }
h1 em { font-style: italic; color: var(--gold-l); }
.lead { color: var(--mist); margin: 0 0 18px; }
h2.day { font: 500 15px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 28px 0 10px; display: flex; gap: 10px; align-items: baseline; }
h2.day span { color: var(--mist); letter-spacing: .04em; text-transform: none; font-size: 14px; }

.card { background: var(--night-2); border: 1px solid var(--hair); border-radius: var(--r); padding: 16px; margin: 10px 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; }
.card.off { opacity: .55; }
.card .time { font: 500 28px/1 var(--serif); color: var(--ivory); min-width: 74px; }
.card .time small { display: block; font: 400 13px/1.6 var(--sans); color: var(--mist); }
.card h3 { margin: 0; font: 500 19px/1.25 var(--sans); }
.card .meta { color: var(--mist); font-size: 15px; }
.card .row { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.spots { font-size: 15px; }
.spots.ok { color: var(--ok); } .spots.low { color: var(--warn); } .spots.none { color: var(--bad); }
.btn { appearance: none; border: 0; border-radius: 999px; padding: 13px 24px; min-height: 48px; font-weight: 500; font-size: 16px; letter-spacing: .02em; cursor: pointer;
  background: var(--gold); color: #1b1408; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { background: var(--gold-l); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--ivory); border: 1px solid var(--hair); }
.btn.ghost:hover { border-color: var(--gold); }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid rgba(224, 143, 134, .45); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn.wide { width: 100%; }
.row .btn { margin-left: auto; }
.badge { display: inline-flex; gap: 6px; align-items: center; color: var(--ok); font-weight: 500; }
.empty { color: var(--mist); text-align: center; padding: 36px 10px; border: 1px dashed var(--hair); border-radius: var(--r); margin-top: 22px; }
.more { display: flex; justify-content: center; margin: 22px 0; }

nav.tabs { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(15, 13, 18, .96); border-top: 1px solid var(--hair); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
nav.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--mist); font-size: 13px; letter-spacing: .04em; }
nav.tabs a svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; }
nav.tabs a.on { color: var(--gold-l); }

/* fogli (login, conferme, moduli) */
.sheet-bg { position: fixed; inset: 0; z-index: 20; background: rgba(5, 4, 7, .72); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; background: var(--night-2); border: 1px solid var(--hair); border-bottom: 0;
  border-radius: 24px 24px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); animation: up .22s ease-out; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 24px; border-bottom: 1px solid var(--hair); } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet h2 { font: 500 28px/1.15 var(--serif); margin: 0 0 8px; }
.sheet p { color: var(--mist); margin: 0 0 16px; }
.sheet .actions { display: grid; gap: 10px; margin-top: 18px; }
label.f { display: block; margin: 12px 0; font-size: 15px; color: var(--mist); }
label.f input, label.f select, label.f textarea { display: block; width: 100%; margin-top: 6px; padding: 14px; min-height: 50px; border-radius: 12px; border: 1px solid var(--hair);
  background: var(--night); color: var(--ivory); font-size: 17px; }
label.f textarea { min-height: 90px; }
.code input { letter-spacing: .5em; font-size: 26px; text-align: center; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--mist); margin: 14px 0; }
label.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--gold); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.err { color: var(--bad); font-size: 15px; min-height: 1.2em; margin: 6px 0 0; }
.okmsg { color: var(--ok); }
.big-ok { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; margin: 4px 0 14px; color: var(--gold-l); font-size: 30px; }
.toast { position: fixed; z-index: 30; left: 50%; top: calc(76px + env(safe-area-inset-top)); transform: translateX(-50%); background: var(--ivory); color: var(--night);
  padding: 12px 18px; border-radius: 12px; font-weight: 500; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }

/* area titolare */
.admin-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.weeknav { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; }
.weeknav b { flex: 1; text-align: center; font-weight: 500; }
.list { margin: 6px 0; padding: 0; list-style: none; }
.list li { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.list li .grow { flex: 1; min-width: 0; }
.list li small { display: block; color: var(--mist); overflow-wrap: anywhere; }
.pill { font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--hair); color: var(--mist); white-space: nowrap; }
.pill.full { color: var(--bad); border-color: rgba(224,143,134,.45); }
.pill.cancel { color: var(--warn); border-color: rgba(230,177,122,.45); }
.foot { color: var(--mist); font-size: 14px; text-align: center; margin: 34px 0 10px; }
.foot a { color: var(--mist); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
