/* ==========================================================================
   DANNA · Via Streva — foglio di stile
   Colori presi dal logo (#231f20) e dal menu "rosso"
   ========================================================================== */

:root {
  --paper: #f7f2ea;
  --paper-2: #efe6d8;
  --ink: #231f20;
  --ink-soft: #4a4244;
  --muted: #6f6567;
  --line: rgba(35, 31, 32, .14);
  --line-strong: rgba(35, 31, 32, .32);
  --red: #b8343f;
  --red-dark: #962a33;
  --rose: #e8737c;
  --night: #171313;
  --night-line: rgba(247, 242, 234, .14);
  --night-muted: rgba(247, 242, 234, .7);

  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Grana leggera, come carta stampata: puntini scuri sul chiaro, chiari sullo scuro */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .12 0 0 0 0 .12 .5 0 0 0 -.27'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .97 0 0 0 0 .95 0 0 0 0 .92 .3 0 0 0 -.17'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--grain), var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
.brand svg, .hero__logo svg, .footer__logo svg { fill: currentColor; } /* logo: prende il colore del testo */
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

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

.skip-link {
  position: absolute;
  top: -100px; left: var(--gutter);
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografia comune ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--red);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.kicker::before { content: ""; flex: none; width: 36px; height: 2px; background: currentColor; }
.kicker--light { color: var(--rose); }

.title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.title em { font-style: italic; color: var(--red); }

/* ---------- Bottoni ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: 0 1.5em;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: 600 .78rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary { border-color: var(--red); background: var(--red); color: #fff; }
.btn--primary:hover { border-color: var(--red-dark); background: var(--red-dark); color: #fff; }

.btn--light { border-color: var(--paper); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--night); }

.btn--sm { min-height: 40px; padding: 0 1.1em; font-size: .72rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(247, 242, 234, .92);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; color: var(--ink); }
.brand svg { width: 117px; height: 25px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }

.nav__link {
  position: relative;
  padding: 6px 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav-toggle__icon { position: relative; display: block; width: 22px; height: 12px; }
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(32px, 2.5vw, 36px) clamp(64px, 8vw, 112px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero__logo { width: min(100%, 580px); color: var(--ink); }
.hero__logo svg { width: 100%; height: auto; aspect-ratio: 1074 / 430; }

.hero__lead {
  max-width: 32em;
  margin-top: clamp(28px, 4vw, 44px);
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__media { position: relative; isolation: isolate; }
.hero__media::before {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  z-index: -1;
  border: 1.5px solid var(--red);
}
/* La foto non supera l'altezza dello schermo: così logo, testo e bottoni stanno tutti nel primo schermo */
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - var(--header-h) - 96px);
  max-height: calc(100svh - var(--header-h) - 96px);
  object-fit: cover;
}

/* ---------- Striscia scorrevole ---------- */

.ticker {
  position: relative;
  padding-block: 7px;
  border-block: 1px solid var(--ink);
  background: var(--red);
  color: var(--paper);
}
/* Doppio filetto interno, come una fascetta stampata */
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(247, 242, 234, .35);
}
.ticker::before { top: 5px; }
.ticker::after { bottom: 5px; }

.ticker__viewport {
  display: flex;
  overflow: hidden;
  /* Le scritte sfumano ai bordi invece di tagliarsi di netto */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  min-width: 100%;
  animation: ticker 60s linear infinite;
}
.ticker:hover .ticker__group { animation-play-state: paused; }

.ticker__item {
  display: flex;
  align-items: center;
  padding-block: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1;
  white-space: nowrap;
}
.ticker__item--info {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(.68rem, .9vw, .78rem);
  letter-spacing: .24em;
  text-transform: uppercase;
}
/* Separatore: stellina a quattro punte */
.ticker__item::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-inline: clamp(20px, 2.6vw, 34px);
  background: currentColor;
  opacity: .75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.6 9.4L24 12l-9.4 2.6L12 24l-2.6-9.4L0 12l9.4-2.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.6 9.4L24 12l-9.4 2.6L12 24l-2.6-9.4L0 12l9.4-2.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Sezioni ---------- */

.section { padding-block: clamp(72px, 10vw, 136px); }

/* Il locale */

.about__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.about__lead { max-width: 32em; color: var(--ink-soft); font-size: 1.08rem; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.pillar:nth-child(2) { margin-top: clamp(0px, 6vw, 72px); }

.pillar__media { overflow: hidden; }
.pillar__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
/* Foto del burger: il piatto è nella metà bassa, il taglio quadrato su telefono parte da lì */
.pillar__media--food img { object-position: 50% 85%; }
.pillar__media--tv img { object-position: 50% 22%; }
.pillar:hover .pillar__media img { transform: scale(1.04); }

.pillar__body { padding-top: 24px; }
.pillar__num {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
}
.pillar h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  line-height: 1.1;
}
.pillar p { color: var(--ink-soft); }

/* Al bancone */

.spina {
  background:
    var(--grain-light),
    radial-gradient(55% 45% at 92% 0%, rgba(233, 162, 59, .16), transparent 70%),
    var(--night);
  color: var(--paper);
}
.spina__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
/* Stesso filetto della foto in apertura, qui rosa e sfalsato a sinistra */
.spina__media { position: relative; isolation: isolate; }
.spina__media::before {
  content: "";
  position: absolute;
  inset: 20px 20px -20px -20px;
  z-index: -1;
  border: 1.5px solid var(--rose);
  opacity: .7;
}
.spina__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.spina .title em { color: var(--rose); }
.spina__lead { max-width: 34em; margin-top: 20px; color: var(--night-muted); }

.taps { margin-top: 36px; border-top: 1px solid var(--night-line); }
.tap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--night-line);
}
.tap__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.2;
}
.tap__info { grid-column: 1; color: var(--night-muted); font-size: .85rem; letter-spacing: .04em; }
.tap__price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--rose);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat dd {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
}
.stat dt { margin-top: 8px; color: var(--night-muted); font-size: .82rem; line-height: 1.4; }

.spina .btn { margin-top: 40px; }

/* Menu */

/* Su desktop titolo e schede stanno sulla stessa riga, le categorie sotto */
.menu__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 28px;
  align-items: end;
}
.menu__layout > * { grid-column: 1 / -1; }
.menu__head { grid-column: 1; margin-bottom: 40px; }
.menu__bar { display: contents; }
.menu__bar .tabs { grid-column: 2; grid-row: 1; margin-bottom: 40px; }
.menu__bar .chips { grid-column: 1 / -1; }

.tabs {
  display: inline-flex;
  padding: 4px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}
.tab {
  min-width: 120px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color .25s, color .25s;
}
.tab:hover { color: var(--red); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.no-js .tabs { display: none; }
.js .panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-js .panel__title { margin: 48px 0 24px; font-family: var(--serif); font-size: 2.4rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.chips[hidden] { display: none; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .2s, background-color .2s;
}
.chip:hover { border-color: var(--red); color: var(--red); }

.cats { columns: 2; column-gap: clamp(40px, 6vw, 96px); }
.cat { break-inside: avoid; margin-bottom: 52px; }

/* Food: una categoria sotto l'altra, nell'ordine del menu (prima i tacos, poi hot dog, burger e pinse),
   con le voci di ogni categoria su due colonne */
#panel-food .cats { columns: auto; }
#panel-food .cat ul { columns: 2; column-gap: clamp(40px, 6vw, 96px); }
#panel-food .cat .item { break-inside: avoid; }

.cat__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  color: var(--red);
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.1;
  text-transform: uppercase;
}
.cat__note {
  flex: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
}

/* Bottone "Vedi foto" nella riga sotto il titolo della categoria */
.cat__photo {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .5em;
  min-height: 36px;
  padding: 0 1em;
  border: 1.5px solid var(--red);
  border-radius: 999px;
  background: transparent;
  color: var(--red);
  font: 700 .7rem/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.cat__photo:hover { background: var(--red); color: #fff; }
.cat__photo svg { width: 16px; height: 16px; }

/* Foto a tutto schermo */
/* Il riquadro prende la misura della foto, così la X sta sempre sull'angolo della foto */
.lightbox {
  width: fit-content;
  max-width: 92vw;
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
.lightbox::backdrop { background: rgba(23, 19, 19, .86); }
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(600px, 92vw);
  max-height: 88vh;
  border-radius: 2px;
}
.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 19, 19, .7);
  color: var(--paper);
  cursor: pointer;
}
.lightbox__close:hover { background: var(--red); }
.lightbox__close svg { width: 20px; height: 20px; }

/* Finestra di prenotazione (TheFork) */
.booking {
  width: min(520px, calc(100vw - 32px));
  height: min(780px, calc(100vh - 32px));
  height: min(780px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}
.booking[open] { display: flex; flex-direction: column; }
.booking::backdrop { background: rgba(23, 19, 19, .86); }
.booking__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 20px;
  border-bottom: 1px solid var(--line);
}
.booking__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 800; }
.booking__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.booking__close:hover { background: var(--line); }
.booking__close svg { width: 22px; height: 22px; }
.booking__frame { flex: 1; min-height: 0; background: #fff; }
.booking__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.booking__note { padding: 10px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.booking__note a { color: inherit; text-underline-offset: 2px; }

/* Con una finestra aperta (prenotazione o foto) la pagina sotto non scorre */
html:has(dialog[open]) { overflow: hidden; }

/* Riga sotto il titolo, valida per tutta la categoria (es. "Serviti con patatine fritte*") */
.cat__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

.item {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(16px, 1fr) auto;
  column-gap: 10px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.item::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  border-bottom: 1.5px dotted var(--line-strong);
  transform: translateY(-.3em);
}
.item__name {
  grid-column: 1;
  grid-row: 1;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.item__price {
  grid-column: 3;
  grid-row: 1;
  color: var(--red);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.item__desc {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

/* Piatto con foto: miniatura a sinistra di nome e descrizione, con un tocco si apre in grande */
.item--photo { grid-template-columns: auto minmax(0, max-content) minmax(16px, 1fr) auto; }
.item--photo .item__name { grid-column: 2; }
.item--photo::after { grid-column: 3; }
.item--photo .item__price { grid-column: 4; }
.item--photo .item__desc { grid-column: 2 / -1; }
.item__thumb {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 60px;
  height: 45px;
  margin-right: 4px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: var(--line);
  cursor: zoom-in;
}
.item__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.item__thumb:hover img { transform: scale(1.06); }

/* Birre alla spina: tabella con i prezzi nei tre formati (20 cl, 40 cl, 1 litro) */
.taplist { width: 100%; border-collapse: collapse; }
.taplist thead th {
  padding: 12px 0 4px 12px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}
.taplist tbody th,
.taplist td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.taplist tbody th { font-weight: inherit; text-align: left; }
.taplist .item__name,
.taplist .item__desc { display: block; }
.taplist td {
  padding-left: 12px;
  color: var(--red);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.names {
  display: flex;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.names li {
  padding: 4px 0;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.names li:not(:last-child)::after { content: "·"; margin-inline: .6em; color: var(--red); }

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 24px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}
.notes { display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--muted); font-size: .9rem; }

/* Avviso allergeni in fondo alla scheda Food */
.allergeni {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-left: 3px solid var(--red);
  background: rgba(184, 52, 63, .06);
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.5;
}
.allergeni svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--red); }
.allergeni strong { color: var(--ink); }

/* Dove siamo */

.visit { background: var(--grain), var(--paper-2); }
.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.visit__address {
  margin-top: 28px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.25;
}
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.visit__blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}
.info h3 {
  margin-bottom: 12px;
  color: var(--red);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.hours dt { font-weight: 600; }
.hours dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours .is-today dt,
.hours .is-today dd { color: var(--red); font-weight: 700; }

.hours__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hours__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hours__status.is-open { color: #2f6b3a; }
.hours__status.is-open::before { background: #3a8a4a; box-shadow: 0 0 0 3px rgba(58, 138, 74, .2); }
.contacts li + li { margin-top: 10px; }
.contacts a,
.social a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.contacts a { font-weight: 600; transition: color .2s; }
.contacts a:hover { color: var(--red); }
.contacts svg { width: 18px; height: 18px; flex: none; color: var(--red); }
.social svg { width: 16px; height: 16px; flex: none; color: var(--rose); }

.map {
  position: relative;
  aspect-ratio: 8 / 7;
  overflow: hidden;
  background: var(--night);
  color: var(--paper);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  isolation: isolate;
  padding: 24px;
  text-align: center;
}
/* Dietro al pulsante si intravede, sfocata, la nostra vetrina */
.map__placeholder::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  background:
    linear-gradient(rgba(23, 19, 19, .72), rgba(23, 19, 19, .88)),
    url("../img/vetrina-danna-800.webp") center 40% / cover;
  filter: blur(4px);
}
.map__pin { width: 48px; height: 48px; color: var(--rose); }
.map__address { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.map__note { max-width: 30em; color: var(--night-muted); font-size: .78rem; }
.map__note a { color: var(--paper); text-underline-offset: 2px; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px) 0;
  background: var(--grain-light), var(--night);
  color: var(--paper);
}
/* Fascia d'invito in cima al footer */
.footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: clamp(44px, 6vw, 72px);
  padding-bottom: clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--night-line);
}
.site-footer .footer__claim {
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -.015em;
}
.footer__claim em { color: var(--rose); font-style: italic; }
.footer__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stato "Aperto ora / Chiuso ora" su fondo scuro */
.site-footer .hours__status { color: var(--night-muted); font-size: .75rem; }
.site-footer .hours__status::before { background: var(--rose); }
.site-footer .hours__status.is-open { color: #8fd49b; }
.site-footer .hours__status.is-open::before { background: #5fbf6f; box-shadow: 0 0 0 3px rgba(95, 191, 111, .25); }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer__logo { display: block; width: min(100%, 220px); color: var(--paper); }
.footer__logo svg { width: 100%; height: auto; aspect-ratio: 1074 / 430; }
.site-footer .footer__about { max-width: 25em; margin-top: 22px; line-height: 1.6; }
.footer__address { margin-bottom: 16px; color: var(--night-muted); font-size: .92rem; line-height: 1.6; }

/* Orari nel footer: stessa tabella della sezione "Dove siamo", in chiaro */
.site-footer .hours { max-width: 15em; }
.site-footer .hours div { padding: 5px 0; border-bottom-color: var(--night-line); }
.site-footer .hours div:last-child { border-bottom: 0; }
.site-footer .hours dt { color: var(--paper); font-size: .9rem; font-weight: 500; }
.site-footer .hours dd { color: var(--night-muted); font-size: .9rem; }
.site-footer .hours .is-today dt,
.site-footer .hours .is-today dd { color: var(--rose); font-weight: 700; }
.site-footer h3 {
  margin-bottom: 14px;
  color: var(--rose);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.site-footer p,
.site-footer li { color: var(--night-muted); font-size: .92rem; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { text-decoration: none; }
.site-footer li a:hover { color: var(--paper); text-decoration: underline; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
}
.footer__bottom p { font-size: .8rem; }
.footer__links { display: flex; gap: 20px; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--paper); }

/* Scritta DANNA enorme in chiusura, tagliata dal bordo della pagina */
.footer__giant { margin-top: clamp(28px, 5vw, 56px); color: var(--paper); opacity: .08; }
.footer__giant svg { width: 100%; height: auto; aspect-ratio: 1074 / 229; margin-bottom: -7%; fill: currentColor; }

/* ---------- Pagina privacy ---------- */

.legal { padding-block: clamp(48px, 8vw, 104px) clamp(72px, 10vw, 128px); }
.legal__inner { max-width: 720px; }
.legal h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.04;
}
.legal .kicker { margin-top: 0; color: var(--red); }
.legal .legal__updated { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.legal .legal__intro { margin-top: 28px; color: var(--ink-soft); font-size: 1.12rem; }
.legal h2 {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.15;
}
.legal h3 {
  margin-top: 28px;
  color: var(--red);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.legal p,
.legal address { margin-top: 12px; color: var(--ink-soft); }
.legal ul { margin-top: 12px; padding-left: 1.2em; list-style: disc; color: var(--ink-soft); }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--red); text-underline-offset: 3px; }
.legal :target { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- Pagina 404 ---------- */

.notfound {
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--header-h) - 84px);
  padding-block: clamp(40px, 7vw, 88px);
  text-align: center;
}
.notfound__code {
  color: var(--red);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(6.5rem, 22vw, 13rem);
  line-height: .85;
  letter-spacing: -.02em;
}
.notfound .kicker { justify-content: center; margin-top: clamp(20px, 3vw, 32px); }
.notfound .kicker::after { content: ""; flex: none; width: 36px; height: 2px; background: currentColor; }
.notfound__lead { max-width: 30em; margin: 20px auto 0; color: var(--ink-soft); font-size: 1.08rem; }
.notfound__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.site-footer--compact { padding-block: 0 28px; }
.site-footer--compact .footer__bottom { margin-top: 0; border-top: 0; padding-top: 28px; }

/* ---------- Animazioni di comparsa (attivate da JS) ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.pillar.reveal:nth-child(2) { transition-delay: .1s; }
.pillar.reveal:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero__grid,
  .about__intro,
  .spina__grid,
  .visit__grid { grid-template-columns: minmax(0, 1fr); }

  .hero__media img { aspect-ratio: 4 / 3; object-position: 50% 45%; }

  .pillars { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pillar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
  .pillar:nth-child(2) { margin-top: 0; }
  .pillar__body { padding-top: 0; }

  .spina__media img { aspect-ratio: 4 / 3; object-position: 50% 25%; }

  .menu__layout { display: block; }
  .menu__head { margin-bottom: 28px; }

  /* Testata a tinta unita: la sfocatura dietro (backdrop-filter) pesa molto sui telefoni mentre si scorre */
  .site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }

  /* Barra del menu fissa sotto l'header: schede + categorie scorrevoli in orizzontale.
     Niente grana né maschere qui: su un elemento fisso vanno ridisegnate di continuo e la barra scatta */
  .js .menu__bar {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    display: flex;
    align-items: center;
    margin: 0 calc(-1 * var(--gutter)) 36px;
    padding: 10px 0 10px var(--gutter);
    border-bottom: 1px solid transparent;
    background: var(--paper);
    transition: border-color .3s, box-shadow .3s;
  }
  .js .menu__bar.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 14px 24px -20px rgba(35, 31, 32, .45);
  }
  /* Sfumature ai lati della riga delle categorie: a destra sul bordo, a sinistra subito dopo le schede */
  .js .menu__bar::after,
  .js .menu__bar .tabs::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    pointer-events: none;
  }
  .js .menu__bar::after { right: 0; width: 32px; background: linear-gradient(90deg, rgba(247, 242, 234, 0), var(--paper)); }
  .js .menu__bar .tabs::after { left: calc(100% + 1.5px); width: 12px; background: linear-gradient(90deg, var(--paper), rgba(247, 242, 234, 0)); }
  .js .menu__bar .tabs { position: relative; z-index: 1; flex: none; margin: 0; padding: 3px; }
  .js .menu__bar .tab { min-width: 0; padding: 9px 16px; font-size: 1.05rem; }
  .js .menu__bar .chips {
    flex: 1;
    flex-wrap: nowrap;
    min-width: 0;
    margin: 0;
    padding: 2px var(--gutter) 2px 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .js .menu__bar .chips::-webkit-scrollbar { display: none; }
  .js .menu__bar .chip { flex: none; white-space: nowrap; }
  .js .menu__bar .chip.is-active { border-color: var(--red); background: var(--red); color: #fff; }

  /* I salti alle categorie si fermano sotto la barra */
  .js .cat { scroll-margin-top: 64px; }

  .cats { columns: 1; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }

  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    border-bottom: 1px solid var(--line);
    background: var(--grain), var(--paper);
    box-shadow: 0 24px 40px -24px rgba(35, 31, 32, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .js .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .js .nav__link { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .js .nav__link::after { display: none; }
  .js .nav__cta { margin-top: 20px; min-height: 48px; }

  .no-js .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 12px; }
  .no-js .nav { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .section { padding-block: 60px; }

  .hero__media::before { inset: 12px -12px -12px 12px; }
  .spina__media::before { inset: 12px 12px -12px -12px; }
  /* Su telefono spazi più stretti, così i bottoni si vedono senza scorrere anche sugli schermi piccoli */
  .hero { padding-top: 20px; }
  .hero__lead { margin-top: 20px; }
  .hero__cta { gap: 10px; margin-top: 22px; }
  .hero__cta .btn { flex: 1 1 auto; min-height: 44px; }

  /* Prenotazione a tutto schermo su telefono */
  .booking {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  /* Ordina, Mangia, Gioca: carosello da scorrere col dito invece di tre foto impilate */
  .pillars {
    display: flex;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .pillars::-webkit-scrollbar { display: none; }
  .pillar { display: block; flex: 0 0 80%; scroll-snap-align: start; }
  .pillar__media img { aspect-ratio: 1; }
  .pillar__body { padding-top: 18px; }
  .pillar h3 { font-size: 1.75rem; }
  /* Le card fuori schermo devono restare visibili, altrimenti non si intuisce che si scorre */
  .pillar.reveal { opacity: 1; transform: none; }

  .stats { gap: 12px; }

  #panel-food .cat ul { columns: 1; }

  /* Spine: colonne dei prezzi più strette, così il nome della birra resta su una riga */
  .taplist thead th { padding-left: 8px; }
  .taplist td { padding-left: 8px; font-size: .92rem; }

  .visit__actions .btn { flex: 1 1 0; padding-inline: 1em; }
  .notfound__cta .btn { flex: 1 1 100%; }
  .visit__blocks { grid-template-columns: minmax(0, 1fr); margin-top: 40px; padding-top: 28px; }

  /* Footer: logo e orari su tutta la riga, Dove siamo ed Esplora affiancati */
  .footer__grid { gap: 36px 20px; }
  .footer__logo { width: 170px; }
  .footer__grid > div:nth-child(2) { grid-column: 1 / -1; } /* orari su tutta la riga */
  .site-footer .hours { max-width: none; }
  .footer__actions { width: 100%; }
  .footer__actions .btn { flex: 1 1 0; padding-inline: 1em; }
  .footer__bottom { flex-direction: column; align-items: center; margin-top: 40px; text-align: center; }
}
