/* ==========================================================================
   Pizzeria Rosticceria da Totò — Bologna
   Direction: "insegna smaltata di quartiere" — a red-on-white neighborhood
   shop-sign poster, drawn straight from their storefront (photo-01).
   Red is the single action accent; green appears only as one small brand
   rule + the "aperto adesso" status dot (real semantic state). One 8px radius.
   Plain static HTML/CSS. Mobile-first (390px), then scale up.
   ========================================================================== */

:root {
  --bg:      #f8f5ef;   /* warm sign-paper canvas */
  --surface: #fffdf8;   /* cards / plaque */
  --band:    #efe7d8;   /* alternating band */
  --ink:     #231c15;   /* text */
  --muted:   #6d6154;   /* secondary text */
  --line:    #e3dac8;   /* hairlines */
  --red:     #c1271d;   /* ONE accent — sign lettering; white text = 5.9:1 */
  --red-ink: #a81f16;   /* inline red text / links on light (>6:1) */
  --green:   #2f6b34;   /* decorative brand rule + open dot only */
  --red-tint:#f6e4e1;   /* faint red wash for category headers */

  --font-display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-body: "DM Sans", -apple-system, "Segoe UI", sans-serif;
  --r: 8px;
  --measure: 64ch;
  --wrap: 1080px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto;}
a { color: var(--red-ink); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; }
h2 {
  font-size: clamp(1.75rem, 6vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
h3 { font-size: 1.05rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }

/* -- reusable buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; font-weight: 700; font-size: 0.98rem;
  padding: 0.72rem 1.25rem; border-radius: var(--r);
  border: 2px solid var(--ink); color: var(--ink); background: transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  line-height: 1;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn:not(.btn-primary):hover { background: var(--ink); color: var(--bg); }

/* -- topbar ----------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.6rem; min-height: 60px;
}
.topbar .brand {
  font-family: var(--font-display); font-size: 1.15rem; color: var(--red);
  letter-spacing: -0.01em; text-decoration: none;
}
.topbar .brand span { color: var(--ink); }
.topbar-cta {
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  color: #fff; background: var(--red); padding: 0.5rem 1rem;
  border-radius: var(--r); display: inline-flex; align-items: center; gap: 0.45rem;
}
.topbar-cta svg { width: 1em; height: 1em; }

/* -- hero: the insegna plaque ----------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 8vh, 4.5rem) clamp(2rem, 6vh, 3rem); }
.plaque {
  max-width: 720px; margin-inline: auto; text-align: center;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 1px 0 var(--line), 0 22px 50px -30px rgba(35,28,21,0.5);
  padding: clamp(1.75rem, 6vw, 3rem) clamp(1.25rem, 5vw, 2.75rem);
  position: relative;
}
.plaque-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 2.6vw, 0.9rem);
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--green);
}
.plaque h1 {
  font-size: clamp(3.1rem, 15vw, 5.75rem);
  color: var(--red);
  margin-block: 0.35rem 0.15rem;
  line-height: 0.9;
}
.plaque h1 .the { display: block; font-size: 0.34em; color: var(--ink); letter-spacing: 0.02em; margin-bottom: 0.1em; }
.plaque-tag {
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 3vw, 0.95rem);
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink);
}
.tricolore {
  width: 132px; height: 5px; margin: 1rem auto 1.15rem; border-radius: 999px;
  overflow: hidden; display: flex; box-shadow: 0 0 0 1px var(--line);
}
.tricolore i { flex: 1; }
.tricolore i:nth-child(1) { background: var(--green); }
.tricolore i:nth-child(2) { background: #fff; }
.tricolore i:nth-child(3) { background: var(--red); }
.plaque-sub {
  color: var(--muted); max-width: 42ch; margin: 0 auto 1.5rem;
  font-size: 1.02rem;
}
.plaque-sub b { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* -- full-bleed appetite band ----------------------------------------------- */
.band-photo { position: relative; }
.band-photo img {
  width: 100%; height: clamp(240px, 46vw, 460px); object-fit: cover;
  border-block: 2px solid var(--ink);
}
.band-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(20,15,10,0.78), rgba(20,15,10,0));
  color: #fff; font-size: 0.95rem; font-weight: 500;
  text-align: center;
}

/* -- section scaffolding ---------------------------------------------------- */
.section { padding-block: clamp(2.75rem, 7vw, 4.25rem); }
.section-band { background: var(--band); border-block: 1px solid var(--line); }
.section-head { max-width: var(--measure); }
.section-head .kicker {
  display: inline-block; font-family: var(--font-display);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--red); margin-bottom: 0.5rem;
}
.section-head p.lead { color: var(--muted); margin-top: 0.75rem; max-width: 56ch; }

/* -- come si ordina: divided fact row --------------------------------------- */
.facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin-top: 1.75rem;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--surface);
}
.facts div {
  padding: 1.15rem 1.1rem;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.facts div:nth-child(-n+2) { border-top: none; }
.facts div:nth-child(odd) { border-left: none; }
.facts dt {
  font-family: var(--font-display); font-size: 0.98rem;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink);
}
.facts dd { color: var(--muted); font-size: 0.92rem; margin-top: 0.25rem; }

/* -- speciali: photo/text split --------------------------------------------- */
.split { display: grid; gap: 1.75rem; align-items: center; margin-top: 0.5rem; }
.split-photo img {
  width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover;
  border: 2px solid var(--ink); border-radius: var(--r);
}
.signatures { list-style: none; padding: 0; margin-top: 1.25rem; }
.signatures li { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.signatures li:first-child { border-top: none; }
.sig-name {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
}
.sig-name b {
  font-family: var(--font-display); font-weight: 400; color: var(--red);
  font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.01em;
}
.sig-name .price { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sig-desc { color: var(--muted); font-size: 0.94rem; margin-top: 0.15rem; }

/* -- menù: category chips + listino ----------------------------------------- */
.menu-nav {
  display: flex; gap: 0.5rem; overflow-x: auto; margin-top: 1.5rem;
  padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.menu-nav a {
  flex: none; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 0.95rem; white-space: nowrap;
}
.menu-nav a:hover { border-color: var(--red); color: var(--red-ink); }

.menu-cat { margin-top: 2.25rem; scroll-margin-top: 80px; }
.menu-cat > header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  background: var(--red-tint); border-left: 4px solid var(--red);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 0.55rem 0.9rem; margin-bottom: 0.85rem;
}
.menu-cat > header h3 {
  font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--red-ink);
}
.menu-cat > header .cat-note { font-size: 0.85rem; color: var(--muted); font-weight: 500; }

.menu-list { list-style: none; padding: 0; columns: 1; }
.menu-list.two { columns: 1; }
.menu-list li {
  break-inside: avoid; padding: 0.5rem 0;
  border-bottom: 1px dotted var(--line);
}
.menu-list .row { display: flex; align-items: baseline; gap: 0.4rem; }
.menu-list .dish { font-weight: 600; color: var(--ink); }
.menu-list .dots { flex: 1 1 auto; border-bottom: 1px dotted var(--muted); opacity: 0.45; transform: translateY(-3px); min-width: 12px; }
.menu-list .price { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-list .ingr { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 0.05rem; }

.menu-note {
  margin-top: 1.75rem; color: var(--muted); font-size: 0.9rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 0.85rem 1rem;
}
.menu-note b { color: var(--ink); }

/* -- gallery ---------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: 1fr; gap: 0.7rem; margin-top: 1.5rem; }
.gallery figure { margin: 0; min-width: 0; aspect-ratio: 3/2; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* -- orari & dove ------------------------------------------------------------ */
.info-grid { display: grid; gap: 2rem; margin-top: 1.5rem; }
.hours { width: 100%; border-collapse: collapse; max-width: 380px; }
.hours td { padding: 0.5rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.hours td:first-child { color: var(--ink); font-weight: 600; }
.hours td:last-child { text-align: right; }
.hours tr.today td { color: var(--red-ink); font-weight: 700; }
.hours tr.today td:first-child::after {
  content: " · oggi"; color: var(--green); font-weight: 600; font-size: 0.82rem;
}
.hours tr.closed td:last-child { color: var(--muted); }

.open-flag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.92rem; color: var(--ink);
  margin-bottom: 1rem;
}
.open-flag .dot { width: 9px; height: 9px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }

.contact-lines { margin-bottom: 1.25rem; font-size: 1.02rem; }
.contact-lines .label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 0.9rem; }
.contact-lines a { font-weight: 600; }
.dove-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border: 2px solid var(--ink); border-radius: var(--r); margin-top: 1.5rem; }

/* -- footer ----------------------------------------------------------------- */
.footer {
  background: var(--ink); color: #d8cdbd;
  padding-block: 2.5rem 3rem; text-align: center; font-size: 0.9rem;
}
.footer .brand { font-family: var(--font-display); color: #fff; font-size: 1.2rem; display: block; margin-bottom: 0.4rem; }
.footer .brand b { color: var(--red); font-weight: 400; }
.footer a { color: #f0d9d5; }
.footer .demo-note { margin-top: 0.9rem; opacity: 0.65; font-size: 0.82rem; }

/* -- responsive ------------------------------------------------------------- */
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts div:nth-child(-n+4) { border-top: none; }
  .facts div:nth-child(odd) { border-left: 1px solid var(--line); }
  .facts div:nth-child(4n+1) { border-left: none; }
  .split { grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; }
  .split-photo img { aspect-ratio: 4/5; }
  .menu-list.two { columns: 2; column-gap: 2.5rem; }
  .info-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
