/* ==========================================================================
   Turkish Istanbul Grill Kebap Pizza — Caerano di San Marco (TV)
   Design system: street food turco moderno · dark + rosso/oro
   ========================================================================== */

/* ---------- 1. Token ---------- */
:root {
  --bg: #0e0c0a;
  --bg-alt: #141110;
  --surface: #1c1815;
  --surface-2: #241d18;
  --line: rgba(246, 239, 230, 0.10);
  --line-strong: rgba(246, 239, 230, 0.18);

  --red: #d62828;
  --red-dark: #a91d1d;
  --gold: #e9b44c;
  --gold-soft: #f3d191;

  --text: #f6efe6;
  --muted: #a79a8c;

  --font-display: "Anton", "Arial Narrow", Impact, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 68px;
  --shell: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 18px 40px -18px rgba(214, 40, 40, 0.55);

  --grad-warm: linear-gradient(135deg, rgba(214, 40, 40, 0.16), rgba(233, 180, 76, 0.10) 60%, transparent);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, iframe { max-width: 100%; display: block; }
/* "display: block" qui sopra vince sull'attributo hidden: la mappa di Google
   deve restare nascosta finché non c'è il consenso. */
iframe[hidden] { display: none; }

img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 0.6em;
  text-transform: none;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.6vw, 4.1rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 2vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); letter-spacing: 0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: rgba(233, 180, 76, 0.5); text-underline-offset: 3px; }
a:hover { color: var(--gold-soft); }

ul, ol { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--gold);
  color: #1a1410;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 3. Bottoni ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
/* "display: inline-flex" vince sull'attributo hidden: senza questa riga i
   pulsanti nascosti del modulo (Indietro / Invia richiesta) restavano visibili. */
.btn[hidden] { display: none; }

.btn .ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--red), var(--red-dark));
  --btn-fg: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { --btn-fg: #fff; box-shadow: 0 22px 46px -18px rgba(214, 40, 40, 0.75); }

.btn-outline {
  border-color: rgba(233, 180, 76, 0.55);
  --btn-fg: var(--gold-soft);
}
.btn-outline:hover { --btn-bg: rgba(233, 180, 76, 0.12); --btn-fg: var(--gold-soft); }

.btn-ghost {
  border-color: var(--line-strong);
  --btn-fg: var(--text);
}
.btn-ghost:hover { --btn-bg: rgba(246, 239, 230, 0.07); }

.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.link-inline {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(12, 10, 9, 0.96);
  border-bottom-color: var(--line);
  /* Sfondo quasi pieno quando si scorre: il blur serve solo in cima (pagina
     ferma) e su telefoni meno potenti costerebbe un ridisegno a ogni frame. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 100%;
}

@media (min-width: 640px) {
  .header-inner { gap: clamp(0.6rem, 2vw, 1.6rem); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
}
.brand:hover { color: inherit; }

.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(150deg, #241d18, #12100e);
  border: 1px solid rgba(233, 180, 76, 0.35);
  box-shadow: inset 0 1px 0 rgba(246, 239, 230, 0.06);
}
.brand-mark svg { width: 24px; height: 24px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 0.7rem + 0.9vw, 1.35rem);
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-desktop { margin-inline: auto; display: none; }
.nav-desktop ul { display: flex; align-items: center; gap: clamp(0.4rem, 1.4vw, 1.1rem); }
.nav-desktop a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(246, 239, 230, 0.86);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: right 0.25s var(--ease);
}
.nav-desktop a:hover,
.nav-desktop a.is-current { color: var(--text); }
.nav-desktop a:hover::after,
.nav-desktop a.is-current::after { right: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex: none;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  margin: 0;
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(246, 239, 230, 0.04);
  line-height: 1.15;
}
.status-badge .status-text { display: flex; flex-direction: column; }
.status-badge strong { font-size: 0.72rem; font-weight: 600; }
.status-badge small { display: none; font-size: 0.66rem; color: var(--muted); }

/* Etichetta compatta (mobile) e completa (da 640px in su) */
.status-short { display: inline; font-size: 0.72rem; font-weight: 600; }
.status-long { display: none; }

@media (min-width: 640px) {
  .status-badge { gap: 0.5rem; padding: 0.35rem 0.7rem; }
  .status-badge strong { font-size: 0.78rem; }
  .header-actions { gap: 0.5rem; }
  .status-badge small { display: block; }
  .status-short { display: none; }
  .status-long { display: block; }
}

.status-dot {
  width: 9px; height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(167, 154, 140, 0.16);
}
[data-status="open"] .status-dot,
[data-status="open"] > .status-dot {
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
  animation: pulse 2.4s var(--ease) infinite;
}
[data-status="closed"] .status-dot,
[data-status="closed"] > .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.18);
}
[data-status="open"] .status-long,
[data-status="open"] .status-short,
[data-status="open"] strong { color: #86efac; }
[data-status="closed"] .status-long,
[data-status="closed"] .status-short,
[data-status="closed"] strong { color: #f8a5a5; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.btn-phone {
  border-color: var(--line-strong);
  padding: 0.42rem 0.55rem;
  font-size: 0.74rem;
  gap: 0.3rem;
  flex: none;
  white-space: nowrap;
}
.btn-phone .phone-num { display: inline; }
/* Su schermi stretti il numero resta leggibile: l'icona è ridondante */
.btn-phone .ico { display: none; fill: var(--gold); }

.burger {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  padding: 0;
  background: rgba(246, 239, 230, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.burger span::before { transform: translateY(-6px); }
.burger span::after { transform: translateY(4px); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(-2px); }

.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  /* Sopra l'avviso cookie (z 180): altrimenti i due pulsanti in fondo al menu
     finiscono dietro al banner. L'avviso riappare appena si chiude il menu. */
  z-index: 190;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 2rem;
  background: rgba(14, 12, 10, 0.98);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  animation: navIn 0.22s var(--ease);
}
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Il menu mobile si nasconde con l'attributo "hidden": senza questa regola il
   "display: flex" qui sopra vincerebbe e il pannello, pur chiuso, coprirebbe
   tutta la pagina intercettando i tocchi su telefono e tablet. */
.nav-mobile[hidden] { display: none; }

/* Menu aperto: la barra in alto diventa piena, così il titolo della pagina non
   traspare dietro la marca mentre il pannello è aperto. */
body.nav-open .site-header {
  background: rgba(12, 10, 9, 0.98);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: var(--line);
}

.nav-mobile ul { display: flex; flex-direction: column; }
.nav-mobile li + li { border-top: 1px solid var(--line); }
.nav-mobile a {
  display: block;
  padding: 0.95rem 0.2rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text);
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile-foot { margin-top: auto; display: grid; gap: 0.6rem; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 5rem);
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 520px at 78% 8%, rgba(233, 180, 76, 0.13), transparent 62%),
    radial-gradient(900px 500px at 8% 92%, rgba(214, 40, 40, 0.20), transparent 62%),
    linear-gradient(180deg, #100d0b, var(--bg) 70%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='76' viewBox='0 0 76 76'%3E%3Cg fill='none' stroke='%23e9b44c' stroke-opacity='.14' stroke-width='1'%3E%3Cpath d='M38 6 70 38 38 70 6 38z'/%3E%3Cpath d='M38 20 56 38 38 56 20 38z'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
}

.hero-inner { max-width: 62rem; }

.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 { max-width: 24ch; }

.hl {
  background: linear-gradient(100deg, var(--gold-soft), var(--gold) 55%, var(--red) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 46ch;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.18rem);
  color: rgba(246, 239, 230, 0.82);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 1.6rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(233, 180, 76, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(233, 180, 76, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
}
.stars { color: var(--gold); letter-spacing: 0.06em; font-size: 0.95rem; }
.rating-value { color: var(--gold); }
.rating-sep { color: var(--muted); }
.rating-count { color: rgba(246, 239, 230, 0.86); font-weight: 500; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.2rem; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 34rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  color: var(--gold);
  line-height: 1.1;
}
.hero-facts span { font-size: 0.8rem; color: var(--muted); }

/* ---------- 6. Sezioni ---------- */
.section {
  padding: clamp(3.25rem, 8vw, 6rem) 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.section-alt {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 52rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-lead { max-width: 62ch; color: rgba(246, 239, 230, 0.78); }

.notice {
  display: block;
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(233, 180, 76, 0.07);
  font-size: 0.92rem;
  color: rgba(246, 239, 230, 0.88);
}
.notice strong { color: var(--gold-soft); }

.placeholder-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1px dashed rgba(233, 180, 76, 0.55);
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(233, 180, 76, 0.06);
}

/* reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 7. Chi siamo ---------- */
.about-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.about-copy p { color: rgba(246, 239, 230, 0.82); max-width: 68ch; }

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: start;
}
.about-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem;
  background: var(--surface);
}
.fact-num { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold); line-height: 1; }
.fact-label { font-size: 0.78rem; color: var(--muted); }

.cards-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card {
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: linear-gradient(160deg, var(--surface), rgba(28, 24, 21, 0.6));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 180, 76, 0.32);
  box-shadow: var(--shadow);
}
.card h3 { color: var(--text); margin-bottom: 0.5rem; }
.card p { color: rgba(246, 239, 230, 0.76); font-size: 0.94rem; }

.card-ico {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 1rem;
  border-radius: 13px;
  background: var(--grad-warm);
  border: 1px solid rgba(233, 180, 76, 0.28);
}
.card-ico svg { width: 22px; height: 22px; fill: var(--gold); }

/* ---------- 8. Menu ---------- */
.tablist {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

/* Su telefono le 10 categorie scorrono in orizzontale: una sfumatura sul bordo
   destro mostra che ce ne sono altre (la classe arriva dal JS solo se la barra
   scorre davvero, e sparisce quando si arriva in fondo). */
@media (max-width: 1023px) {
  .tablist.is-scrollable {
    --fade-l: 0px;
    --fade-r: 26px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  }
  .tablist.is-scrollable.is-middle { --fade-l: 26px; }
  .tablist.is-scrollable.is-end { --fade-r: 0px; }
}

.tab {
  flex: none;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(246, 239, 230, 0.03);
  color: rgba(246, 239, 230, 0.82);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.tab:hover { transform: translateY(-1px); border-color: rgba(233, 180, 76, 0.45); }
.tab.is-active {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.tab-badge {
  margin-left: 0.45rem;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}
.tab.is-active .tab-badge { background: rgba(14, 12, 10, 0.4); }

.tabpanels { display: block; }
.tabpanel { outline: none; }
.tabpanel[hidden] { display: none; }

.menu-cat-note {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.menu-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.menu-item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid rgba(233, 180, 76, 0.4);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}
.menu-item:hover { transform: translateY(-3px); border-left-color: var(--gold); background: var(--surface-2); }

/* Foto del piatto (facoltativa): riempie la larghezza della card e viene
   ritagliata a 4:3, così le card con e senza foto restano allineate.
   La foto è un bottone: si apre a schermo intero. */
.menu-photo-btn {
  display: block;
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) - 6px);
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.menu-photo-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.menu-photo-btn:hover .menu-item-photo { filter: brightness(1.08); }
.menu-item-photo {
  transition: filter 0.2s var(--ease);
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  background: rgba(246, 239, 230, 0.06);
  margin: -0.15rem 0 0.1rem;
}

.menu-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.menu-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  color: rgba(246, 239, 230, 0.72);
}
.menu-price {
  flex: none;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
  white-space: nowrap;
}
.menu-desc { margin: 0; font-size: 0.9rem; color: var(--muted); }
.menu-item .placeholder-tag { align-self: flex-start; }

/* Menù cartaceo del locale: le due facce della carta affissa in pizzeria. */
.menu-paper {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.menu-paper h3 { margin-bottom: 0.35rem; }
.menu-paper-lead { margin: 0 0 1.15rem; color: var(--muted); font-size: 0.94rem; }
.menu-paper-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.menu-paper-grid .gallery-item { aspect-ratio: 1000 / 707; }
.menu-paper-grid .gallery-item img { object-fit: contain; }
.menu-paper-foot {
  margin: 1.1rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  color: rgba(246, 239, 230, 0.86);
}
.menu-paper-foot strong { color: var(--gold); }

.menu-note {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  font-size: 0.88rem;
  color: var(--muted);
}

/* Allergeni (Reg. UE 1169/2011): elenco dei 14 allergeni da dichiarare. */
.allergens {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(246, 239, 230, 0.03);
}
.allergens h3 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.allergens p { margin: 0 0 0.8rem; font-size: 0.9rem; line-height: 1.6; color: rgba(246, 239, 230, 0.86); }
.allergens p:last-child { margin-bottom: 0; }
.allergens strong { color: var(--gold-soft); }
.allergen-list {
  display: grid;
  gap: 0.4rem 1.4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(246, 239, 230, 0.86);
}
.allergen-list li {
  position: relative;
  padding-left: 1.05rem;
}
.allergen-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.allergen-list strong { color: var(--text); }
.allergen-foot { font-size: 0.84rem !important; color: var(--muted) !important; }
.allergen-warning {
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(233, 180, 76, 0.09);
}
.allergen-warning strong { color: var(--gold-soft); }

/* Riga allergeni nella card del piatto */
.menu-allergens {
  margin: 0.55rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}
.menu-allergens-label {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(246, 239, 230, 0.72);
}
.menu-frozen {
  margin-left: 0.15em;
  color: var(--gold);
  font-weight: 700;
}
.menu-frozen-note { color: var(--gold-soft); }

@media (min-width: 700px) {
  .allergen-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.menu-cta {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--grad-warm), var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.menu-cta p { margin: 0; font-weight: 600; }
.menu-cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- 9. Galleria ---------- */
.gallery {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.3s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); filter: saturate(1.1); }
.gallery-item:focus-visible img { transform: scale(1.05); }

.gallery-label {
  position: absolute;
  top: 0.7rem; left: 0.7rem;
  padding: 0.28rem 0.6rem;
  border: 1px dashed rgba(233, 180, 76, 0.7);
  border-radius: var(--radius-pill);
  background: rgba(14, 12, 10, 0.78);
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.8rem 0.9rem 0.6rem;
  background: linear-gradient(180deg, transparent, rgba(10, 8, 7, 0.88));
  color: rgba(246, 239, 230, 0.9);
  font-size: 0.8rem;
  text-align: left;
}

/* ---------- 10. Recensioni ---------- */
.rating-box {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid rgba(233, 180, 76, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(233, 180, 76, 0.10), rgba(214, 40, 40, 0.07) 55%, var(--surface));
}
.rating-score { display: flex; align-items: baseline; gap: 0.4rem; }
.rating-big { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4.5rem); color: var(--gold); line-height: 0.9; }
.rating-out { color: var(--muted); font-size: 0.9rem; }
.rating-meta p { margin: 0 0 0.2rem; }
.stars-lg { font-size: 1.25rem; }
.stars-muted { color: rgba(233, 180, 76, 0.4); }
.rating-action { justify-self: start; }

.muted { color: var(--muted); }

.review-card { display: flex; flex-direction: column; gap: 0.5rem; border-left: 3px solid rgba(233, 180, 76, 0.4); }
.review-card:hover { transform: translateY(-3px); border-left-color: var(--gold); }
.review-card .review-name { font-size: 0.85rem; }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0; }
.review-name { font-weight: 600; color: var(--muted); }
.review-text { color: rgba(246, 239, 230, 0.66); font-style: italic; }
.review-date { font-size: 0.8rem; color: var(--muted); margin: 0; }
.review-card .placeholder-tag { align-self: flex-start; margin-top: auto; }

/* ---------- 11. Orari & dove siamo ---------- */
.where-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.hours-card, .map-card {
  padding: clamp(1.25rem, 3vw, 1.85rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.hours-table th, .hours-table td { padding: 0.62rem 0.2rem; text-align: left; border-bottom: 1px solid var(--line); }
.hours-table th { font-weight: 500; color: rgba(246, 239, 230, 0.76); }
.hours-table td { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--gold); font-weight: 600; }
.hours-table tr.is-today th::after {
  content: "oggi";
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(233, 180, 76, 0.16);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }

.status-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: rgba(246, 239, 230, 0.85);
}

.address { margin-bottom: 1.1rem; color: rgba(246, 239, 230, 0.86); }

.map-embed {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0a09;
  aspect-ratio: 16 / 11;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.05); }

.map-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }

/* Servizi e informazioni del locale (dal menù cartaceo) */
.perks { margin-top: clamp(1.25rem, 3vw, 2rem); }
.perk-highlight {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(233, 180, 76, 0.32);
  border-radius: var(--radius);
  background: var(--grad-warm), var(--surface);
  font-weight: 600;
}
.perk-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(233, 180, 76, 0.14);
}
.perk-ico svg { width: 19px; height: 19px; fill: var(--gold); }

.services {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.services li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.services strong { color: var(--text); font-size: 0.95rem; }
.services span { color: var(--muted); font-size: 0.85rem; }

/* ---------- 12. Prenota / ordina ---------- */
.booking-wrap { display: grid; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }

.booking-card {
  position: relative;
  min-width: 0;                 /* non si allarga per il contenuto (striscia dei giorni) */
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.step { display: inline-flex; align-items: center; gap: 0.4rem; }
.step b {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(246, 239, 230, 0.07);
  border: 1px solid var(--line-strong);
  font-size: 0.72rem;
  font-weight: 600;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.step.is-active { color: var(--text); }
.step.is-active b { background: linear-gradient(135deg, var(--red), var(--red-dark)); border-color: transparent; color: #fff; }
.step.is-done b { background: var(--gold); border-color: transparent; color: #241d18; }

.progress {
  height: 4px;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-pill);
  background: rgba(246, 239, 230, 0.08);
  overflow: hidden;
}
.progress-bar {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width 0.35s var(--ease);
}

.form-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step[hidden] { display: none; }
.step-title {
  padding: 0;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.65rem);
  color: var(--text);
}

.choice-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-body {
  display: block;
  height: 100%;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(246, 239, 230, 0.02);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.choice:hover .choice-body { transform: translateY(-3px); border-color: rgba(233, 180, 76, 0.45); }
.choice input:checked + .choice-body {
  border-color: var(--gold);
  background: linear-gradient(150deg, rgba(233, 180, 76, 0.14), rgba(214, 40, 40, 0.08));
}
.choice input:focus-visible + .choice-body { outline: 2px solid var(--gold); outline-offset: 3px; }
.choice-title { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.15rem; }
.choice-desc { display: block; font-size: 0.86rem; color: var(--muted); }

.field-hint { font-size: 0.86rem; color: var(--muted); max-width: 68ch; }

.field-hint-warn {
  margin: 0.4rem 0 1rem;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(233, 180, 76, 0.07);
  color: rgba(246, 239, 230, 0.88);
}
.field-hint-warn strong { color: var(--gold-soft); }

.form-privacy {
  margin: 0.9rem 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

.dish-list { display: grid; gap: 1.1rem; }
.dish-cat { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.dish-cat[open] { border-color: rgba(233, 180, 76, 0.28); }
.dish-cat-title {
  position: relative;
  margin: 0;
  padding: 0.62rem 2.2rem 0.62rem 0.9rem;
  background: rgba(246, 239, 230, 0.04);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  list-style: none;
}
.dish-cat:not([open]) .dish-cat-title { border-bottom: 0; }
.dish-cat-title::-webkit-details-marker { display: none; }
.dish-cat-title::after {
  content: "+";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--muted);
}
.dish-cat[open] .dish-cat-title::after { content: "−"; }
.dish-cat-title:hover { background: rgba(246, 239, 230, 0.07); }
.dish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.6rem 0.9rem;
}
.dish-row + .dish-row { border-top: 1px solid var(--line); }
.dish-name-wrap { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.dish-name { font-size: 0.9rem; color: rgba(246, 239, 230, 0.74); }
.dish-price { font-size: 0.76rem; color: var(--gold); opacity: 0.85; }

.counter { display: inline-flex; align-items: center; gap: 0.35rem; flex: none; }
.counter-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(246, 239, 230, 0.05);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.counter-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--gold); background: rgba(233, 180, 76, 0.14); }
.counter-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.counter-value {
  min-width: 2ch;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.dish-total { margin-top: 1rem; font-size: 0.92rem; color: var(--muted); }
.dish-total strong { color: var(--gold); font-size: 1.05rem; }

.field-row { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.field { margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.85rem; font-weight: 500; color: rgba(246, 239, 230, 0.85); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="time"],
.field input[type="number"],
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(10, 9, 8, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:hover, .field textarea:hover { border-color: rgba(233, 180, 76, 0.4); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(10, 9, 8, 0.85);
  box-shadow: 0 0 0 3px rgba(233, 180, 76, 0.16);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #f87171; }
input[type="date"], input[type="time"] { color-scheme: dark; }

.field-check { flex-direction: row; align-items: flex-start; gap: 0.6rem; }
.field-check input[type="checkbox"] {
  width: 20px; height: 20px;
  margin: 0.15rem 0 0;
  flex: none;
  accent-color: var(--gold);
}
.field-check label { font-size: 0.86rem; line-height: 1.5; }

.error { font-size: 0.8rem; color: #fca5a5; min-height: 0; }
.error:empty { display: none; }

/* ---------- Persone, data e ora (passaggio 3) ---------- */
.booking-block { margin: 0 0 1.35rem; }
.booking-block-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 0.85rem;
  margin-bottom: 0.55rem;
}
.booking-label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.booking-sub { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* Contatore persone: − [ 2 persone ] + */
.guest-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(10, 9, 8, 0.55);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.guest-stepper:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 180, 76, 0.16); }
.guest-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(246, 239, 230, 0.07);
  color: var(--text);
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.guest-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(233, 180, 76, 0.55); background: rgba(233, 180, 76, 0.18); }
.guest-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.guest-value { display: inline-flex; align-items: baseline; justify-content: center; gap: 0.3rem; min-width: 7.2rem; }
.guest-value input {
  width: 3.2ch;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}
.guest-value input::-webkit-outer-spin-button,
.guest-value input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.guest-value input:focus { outline: none; }
.guest-unit { font-size: 0.82rem; color: var(--muted); }

/* Giorni: striscia di chip scorrevole */
.day-chips {
  display: grid;
  min-width: 0;
  grid-auto-flow: column;
  grid-auto-columns: 4.6rem;   /* larghezza fissa: l'ultimo chip resta tagliato e fa capire che si scorre */
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.55rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;   /* il chip tagliato a destra basta a far capire che scorre */
}
.day-chips::-webkit-scrollbar { display: none; }
.day-chip {
  scroll-snap-align: start;
  display: grid;
  justify-items: center;
  gap: 0.05rem;
  padding: 0.5rem 0.3rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(10, 9, 8, 0.5);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.day-chip:hover { border-color: rgba(233, 180, 76, 0.5); background: rgba(233, 180, 76, 0.1); transform: translateY(-1px); }
.day-chip.is-selected {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(233, 180, 76, 0.24), rgba(233, 180, 76, 0.1));
  box-shadow: inset 0 0 0 1px var(--gold);
}
.day-chip-top { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.day-chip.is-selected .day-chip-top { color: var(--gold-soft); }
.day-chip-num { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.day-chip-month { font-size: 0.7rem; color: var(--muted); }
.day-chip.is-selected .day-chip-month { color: var(--gold-soft); }

.day-other { display: flex; align-items: center; gap: 0.6rem; margin: 0.15rem 0 0; }
.day-other label { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.day-other input {
  flex: 0 1 11rem;
  min-width: 0;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(10, 9, 8, 0.5);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  color-scheme: dark;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.day-other input:hover { border-color: rgba(233, 180, 76, 0.4); }
.day-other input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 180, 76, 0.16); }

/* Orari: griglia di fasce da 30 minuti */
.time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr)); gap: 0.45rem; }
.slot {
  padding: 0.6rem 0.3rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(10, 9, 8, 0.5);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.slot:hover:not(:disabled) { border-color: rgba(233, 180, 76, 0.55); background: rgba(233, 180, 76, 0.12); }
.slot[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: #17130c;
  font-weight: 700;
}
.slot:disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }
#slot-note { margin: 0.65rem 0 0; }

@media (max-width: 479px) {
  .time-slots { grid-template-columns: repeat(auto-fill, minmax(3.7rem, 1fr)); gap: 0.35rem; }
  .slot { font-size: 0.84rem; padding: 0.55rem 0.2rem; }
  .guest-value { min-width: 6rem; }
  .day-other { flex-wrap: wrap; }
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(248, 113, 113, 0.5);
  border-radius: var(--radius-sm);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
  font-size: 0.88rem;
}

.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.form-foot { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }

.booking-result { text-align: center; padding: clamp(0.5rem, 2vw, 1.5rem) 0; animation: navIn 0.3s var(--ease); }
.booking-result h3 { margin-bottom: 0.5rem; }
.result-ico {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
}
.result-ico svg { width: 30px; height: 30px; }
.result-ok { background: rgba(74, 222, 128, 0.14); border: 1px solid rgba(74, 222, 128, 0.4); }
.result-ok svg { fill: #4ade80; }
.result-ko { background: rgba(248, 113, 113, 0.14); border: 1px solid rgba(248, 113, 113, 0.4); }
.result-ko svg { fill: #f87171; }
.result-text { max-width: 56ch; margin-inline: auto; color: rgba(246, 239, 230, 0.82); }

.result-summary {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 9, 8, 0.55);
  text-align: left;
  font-size: 0.9rem;
}
.result-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; margin: 0; }
.result-summary dt { color: var(--muted); }
.result-summary dd { margin: 0; color: var(--text); }

.result-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.4rem; }

.booking-side {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(233, 180, 76, 0.08), var(--surface));
}
.booking-side h3 { color: var(--gold); font-size: 1.2rem; }
.side-note { margin-top: 1rem; font-size: 0.9rem; color: rgba(246, 239, 230, 0.8); }

.ticks { display: grid; gap: 0.6rem; margin: 0; }
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  color: rgba(246, 239, 230, 0.84);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  transform: rotate(45deg);
}

/* ---------- 13. Contatti ---------- */
.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(233, 180, 76, 0.3); }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.contact-card .btn { margin-top: auto; align-self: flex-start; }
.big-link { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); text-decoration: none; }
.big-link:hover { color: var(--gold-soft); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.contact-actions .btn { align-self: auto; }

.social-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.social-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--muted);
  cursor: not-allowed;
}

/* ---------- 14. Footer ---------- */
.site-footer {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
  background: linear-gradient(180deg, var(--bg-alt), #0a0908);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); margin-bottom: 0.5rem; }
.footer-title { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.footer-list { display: grid; gap: 0.4rem; font-size: 0.92rem; }
.footer-list a { text-decoration: none; color: rgba(246, 239, 230, 0.86); }
.footer-list a:hover { color: var(--gold); }
.status-inline-small { font-size: 0.82rem; color: var(--gold-soft); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.credit-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.credit-link:hover { color: var(--gold-soft); }

/* ---------- 15. Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 4, 0.76);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
  max-height: 88svh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(233, 180, 76, 0.24);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: modalIn 0.25s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute;
  top: 0.6rem; right: 0.7rem;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(246, 239, 230, 0.05);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.modal-close:hover { background: rgba(214, 40, 40, 0.2); color: #fff; }

.modal-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.modal-note { margin-top: 1rem; font-size: 0.88rem; }
.modal-panel h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }

.modal-lightbox { place-items: center; }
.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(60rem, 100%);
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  animation: modalIn 0.25s var(--ease);
}
.lightbox-panel img {
  display: block;
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  cursor: zoom-out;
}
.lightbox-caption { margin: 0.75rem 0 0; font-size: 0.86rem; color: var(--muted); }

/* ---------- 16. Tablet ---------- */
@media (min-width: 640px) {
  .btn-phone { padding: 0.5rem 0.9rem; font-size: 0.88rem; gap: 0.5rem; }
  .btn-phone .ico { display: inline-block; width: 17px; height: 17px; }
}

.brand-name-short { display: none; }

/* Header compatto su tablet e smartphone: marca abbreviata e senza icona,
   così restano sempre visibili telefono e stato di apertura. */
@media (max-width: 639px) {
  .brand-mark { display: none; }
  .brand-kicker { display: none; }
  .brand-name-full { display: none; }
  .brand-name-short { display: inline; }
  .brand-name { font-size: 0.86rem; letter-spacing: 0; }
  .header-actions { gap: 0.3rem; }
  .status-dot { width: 8px; height: 8px; }
  /* Senza l'icona la marca è solo testo: l'area da toccare resta comoda. */
  .brand { min-height: 44px; }
  .btn-phone { min-height: 44px; padding-inline: 0.7rem; }
}

/* Telefoni molto stretti (iPhone SE e simili): il badge orari resta come
   pallino colorato, il testo va solo agli screen reader. Così la marca non si
   riduce a due lettere e numero e menu restano interi. */
@media (max-width: 359px) {
  .status-badge { padding: 0.4rem; }
  .status-badge .status-text {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .about-grid { grid-template-columns: 1.55fr 1fr; }
  .where-grid { grid-template-columns: 0.9fr 1.1fr; }
  .booking-wrap { grid-template-columns: 1.65fr 0.9fr; }
  .rating-box { grid-template-columns: auto 1fr auto; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery li:nth-child(1),
  .gallery li:nth-child(6) { grid-column: span 2; }
}

/* Navigazione orizzontale da 1024px: sotto quella soglia marca, stato,
   telefono e sei voci non ci stanno e la marca si schiacciava a zero.
   Fino a 1023px si usa il menu a panino, che resta sempre completo. */
@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .burger { display: none; }
  .nav-mobile { display: none !important; }
  /* Con la navigazione orizzontale lo spazio per la marca è quello che resta:
     il badge resta "Aperto ora" (colore + pallino) e l'orario esatto sta nel
     riepilogo della sezione orari e nel tooltip del badge. */
  .status-badge small { display: none; }
}

/* 1024–1319: sei voci con spaziatura più stretta, così la marca resta intera. */
@media (min-width: 1024px) and (max-width: 1319px) {
  .nav-desktop ul { gap: 0.45rem; }
}

/* 1024–1099 (iPad in orizzontale e portatili piccoli): le sei voci stanno solo
   con spaziature più strette, altrimenti il nome del locale finisce in "…". */
@media (min-width: 1024px) and (max-width: 1099px) {
  .nav-desktop ul { gap: 0.28rem; }
  .nav-desktop a { padding-inline: 0.1rem; }
}

@media (min-width: 1100px) {
  .nav-desktop a { font-size: 0.94rem; }
}

/* ---------- 17. Cookie, consenso e mappa ---------- */

/* Avviso cookie: si vede finché non si sceglie (vedi main.js). */
/* Chi ha già scelto: l'avviso non viene disegnato nemmeno per un istante
   (la classe la mette lo script nel <head>, prima del primo disegno). */
html.consent-ok .cookie-banner { display: none !important; }

/* Finché l'avviso è aperto lo spazio in fondo è riservato dal CSS: nessun salto
   di layout quando compare, e i link del footer restano raggiungibili. */
html:not(.consent-ok) body { padding-bottom: 184px; }
@media (min-width: 900px) { html:not(.consent-ok) body { padding-bottom: 148px; } }

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 180;
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
  background: rgba(18, 15, 13, 0.97);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -18px 40px -22px rgba(0, 0, 0, 0.95);
}

.cookie-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
  align-items: center;
}

.cookie-title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.cookie-text p { margin: 0; font-size: 0.86rem; color: rgba(246, 239, 230, 0.86); }
.cookie-text a { color: var(--gold-soft); }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-actions .btn { flex: 1 1 auto; justify-content: center; }

@media (min-width: 900px) {
  .cookie-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .cookie-actions .btn { flex: 0 0 auto; }
}

/* Mappa: finché non c'è il consenso, al posto della mappa c'è questo riquadro. */
.map-consent {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.7rem;
  padding: 1.4rem;
  text-align: center;
}

.map-consent-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.map-consent p { margin: 0; max-width: 42ch; font-size: 0.88rem; color: rgba(246, 239, 230, 0.8); }

/* Link legali nel footer (privacy, cookie, preferenze). */
.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.legal-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.legal-links a:hover { color: var(--gold-soft); }

/* ---------- 17b. Domande frequenti (accordion senza JavaScript) ---------- */
#domande { border-top: 1px solid var(--line); }

.faq-list {
  display: grid;
  gap: 0.7rem;
  margin-top: clamp(1.2rem, 3vw, 2rem);
  max-width: 78ch;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.faq-item[open] { border-color: rgba(233, 180, 76, 0.35); }

.faq-item summary {
  position: relative;
  padding: 1rem 3rem 1rem 1.15rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.15rem;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--gold);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--gold-soft); }
.faq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  font-size: 0.93rem;
  line-height: 1.65;
  color: rgba(246, 239, 230, 0.82);
}
.faq-item p a { color: var(--gold-soft); }

/* ---------- 18. Pagine legali (privacy.html, cookie.html) ---------- */
.legal-top {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.legal-top .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.legal-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.legal-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.88rem; }
.legal-nav a { color: var(--muted); text-decoration: none; padding-block: 0.35rem; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: var(--gold); }

.legal-page { padding: clamp(2rem, 5vw, 3.25rem) 0 1rem; }
.legal-body { max-width: 78ch; }
.legal-page h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.legal-page h2 {
  margin: 2.2rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--gold);
}
.legal-page h3 { margin: 1.3rem 0 0.4rem; font-size: 1rem; color: var(--gold-soft); }
.legal-page p, .legal-page li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(246, 239, 230, 0.86);
}
.legal-page ul, .legal-page ol { margin: 0.4rem 0 0.9rem; padding-left: 1.25rem; }
.legal-page li { margin-bottom: 0.45rem; list-style: disc; }
.legal-page ol li { list-style: decimal; }
.legal-page a { color: var(--gold-soft); }
.legal-meta { color: var(--muted); font-size: 0.85rem; }

.legal-box {
  margin: 1.5rem 0;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.legal-box h2 { margin-top: 0; }

.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9rem; }
.legal-table th, .legal-table td {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: rgba(246, 239, 230, 0.86);
}
.legal-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(246, 239, 230, 0.04);
}
.legal-table td:first-child { white-space: nowrap; }

/* Su telefono la tabella non entra: ogni riga diventa un riquadro con le etichette,
   così la pagina non scorre in orizzontale. */
@media (max-width: 639px) {
  .legal-table { display: block; }
  .legal-table thead { display: none; }
  .legal-table tbody, .legal-table tr, .legal-table td { display: block; }
  .legal-table tr {
    margin-bottom: 1rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
  }
  .legal-table td {
    border: 0;
    padding: 0.45rem 0;
    white-space: normal;
  }
  .legal-table td + td { border-top: 1px solid var(--line); }
  .legal-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

.legal-foot {
  margin-top: clamp(2rem, 6vw, 3.5rem);
  padding: 1.5rem 0 clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.legal-foot .shell { display: grid; gap: 0.5rem; }
.legal-foot a { color: var(--gold); text-decoration: none; }
.legal-foot a:hover { text-decoration: underline; }

/* ---------- 19. Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-mobile, .modal, .hero-bg { display: none !important; }
  body { background: #fff; color: #000; padding-top: 0; }
}
