/* ==========================================================================
   STUPOR MUNDI — Braceria e Pizzeria, Bologna
   Direction: "insegna-manifesto" — embers at night. Warm charcoal canvas,
   ONE flame-red accent, tall condensed poster display (Anton) over a warm
   humanist body (Manrope). Distinct from the template (Fraunces serif +
   wood-orange on brown) via red-not-orange + condensed-not-serif.
   Mobile-first: designed at 390px, then scaled up.
   ========================================================================== */

:root {
  --bg: #18120f;            /* warm charcoal — embers at night */
  --surface: #211812;       /* full-width bands */
  --surface-2: #2a1e17;     /* cards */
  --text: #f4ebe0;          /* cream */
  --muted: #b9a693;         /* warm taupe (7.9:1 on --bg) */
  --accent: #d83a22;        /* flame red — tomato/heat (white on it = 4.6:1) */
  --accent-hi: #ef6b4d;     /* lighter flame — inline text links on dark */
  --accent-ink: #ffffff;    /* text on accent */
  --line: rgba(244, 235, 224, 0.13);
  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;           /* containers/cards */
  --pill: 999px;            /* interactive: buttons + chips */
  --measure: 64ch;
}

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

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

img { max-width: 100%; display: block; }
a { color: var(--accent-hi); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;               /* Anton ships a single weight */
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
}
h2 { font-size: clamp(1.9rem, 5.2vw, 3rem); letter-spacing: 0.005em; }
h3 { font-size: 1.15rem; letter-spacing: 0.03em; }
p { max-width: var(--measure); }
strong { font-weight: 700; }

/* -- shared buttons -------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.72rem 1.5rem; border-radius: var(--pill);
  border: 1.5px solid transparent;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(244, 235, 224, 0.42); }
@media (hover: hover) {
  .btn-primary:hover { background: #c02f19; border-color: #c02f19; transform: translateY(-1px); }
  .btn-ghost:hover { border-color: var(--text); background: rgba(244, 235, 224, 0.07); transform: translateY(-1px); }
}
.btn:active { transform: translateY(0); }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 0.7rem 1.25rem; height: 60px;
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 1.35rem; letter-spacing: 0.04em; color: var(--text);
  text-decoration: none; line-height: 1;
}
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.42rem 1.1rem; border-radius: var(--pill);
  transition: background-color 0.16s ease;
}
@media (hover: hover) { .topbar-cta:hover { background: #c02f19; } }

/* -- hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: calc(100dvh - 60px);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(15, 10, 8, 0.94) 0%, rgba(15, 10, 8, 0.72) 30%, rgba(15, 10, 8, 0.15) 62%, rgba(15, 10, 8, 0.35) 100%);
}
.hero-inner {
  position: relative;
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding: 2rem 1.25rem clamp(2.5rem, 6vh, 3.5rem);
}
.eyebrow {
  color: var(--accent-hi);
  font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.18em;
  margin-bottom: 0.9rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
.hero h1 {
  font-size: clamp(3.6rem, 17vw, 8rem);
  line-height: 0.86; letter-spacing: 0.005em;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.hero-sub {
  color: var(--text); font-size: clamp(1.02rem, 2.6vw, 1.2rem);
  max-width: 34ch; margin-bottom: 1.7rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-actions .btn-ghost { background: rgba(0, 0, 0, 0.28); }

/* -- full-width bands ------------------------------------------------------ */
.band {
  position: relative;
  background: var(--surface);
  padding: clamp(3.2rem, 8vw, 5rem) 1.25rem;
  overflow: hidden;
}
.band-inner { max-width: var(--measure); margin: 0 auto; position: relative; }
.band#storia::before {          /* static ember glow, decorative */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 85% 15%, rgba(216, 58, 34, 0.16), transparent 60%);
}
.band#storia .band-inner { position: relative; z-index: 1; }
.band#storia h2 { margin-bottom: 1.1rem; }
.band#storia p { color: var(--muted); font-size: 1.08rem; }

/* -- centered sections ----------------------------------------------------- */
.section { padding: clamp(3.2rem, 8vw, 5rem) 1.25rem; max-width: 1080px; margin: 0 auto; }

/* -- specialità ------------------------------------------------------------ */
.offer > h2 { margin-bottom: 1.75rem; }
.offer-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .offer-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.offer-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.75rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
@media (hover: hover) {
  .offer-card:hover { transform: translateY(-3px); border-color: rgba(216, 58, 34, 0.55); }
}
.offer-card h3 {
  display: inline-block; color: var(--text);
  font-size: 1.6rem; letter-spacing: 0.02em;
  padding-bottom: 0.5rem; margin-bottom: 0.9rem;
  border-bottom: 3px solid var(--accent);
}
.offer-card p { color: var(--muted); margin-bottom: 1.2rem; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--text);
  border: 1px solid rgba(244, 235, 224, 0.22);
  border-radius: var(--pill);
  padding: 0.32rem 0.85rem;
}
.offer-note { color: var(--muted); font-size: 0.95rem; margin-top: 1.6rem; max-width: none; }

/* -- recensioni ------------------------------------------------------------ */
.reviews .band-inner { text-align: center; }
.reviews-score {
  color: var(--muted); font-size: 0.95rem; letter-spacing: 0.02em;
  margin: 0 auto 0.5rem; max-width: none;
}
.reviews-score strong { color: var(--accent-hi); font-size: 1.1rem; }
.reviews h2 { margin-bottom: 2rem; }
.quotes { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .quotes { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.quote {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  text-align: left;
}
.quote blockquote {
  font-size: 1.12rem; line-height: 1.5; color: var(--text);
  margin-bottom: 0.8rem;
}
.quote figcaption { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.03em; }

/* -- dove & orari ---------------------------------------------------------- */
.info > h2 { margin-bottom: 1.75rem; }
.info-grid { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .info-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.info h3 { color: var(--muted); font-size: 1rem; letter-spacing: 0.06em; margin-bottom: 1rem; }
.everyday {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 1.5rem; color: var(--text); letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.shifts { display: grid; gap: 0.1rem; max-width: 22rem; }
.shift {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.7rem 0; border-top: 1px solid var(--line);
}
.shift:last-child { border-bottom: 1px solid var(--line); }
.shift-label { font-weight: 600; }
.shift-time { color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.contact-lines { margin-bottom: 0.9rem; line-height: 1.7; }
.contact-lines a { font-weight: 600; }
.reserve-note { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.4rem; }
.info-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* -- footer ---------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.75rem 1.25rem 3rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
}
.footer-brand {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 1.4rem; letter-spacing: 0.05em; color: var(--text);
  margin: 0 auto 0.6rem; max-width: none;
}
.footer p { max-width: none; }
.demo-note { margin-top: 0.6rem; opacity: 0.72; }

/* -- motion: subtle load reveal (MOTION dial ~3), reduced-motion safe ------ */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { opacity: 0; transform: translateY(14px); animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
  .eyebrow { animation-delay: 0.05s; }
  .hero h1 { animation-delay: 0.13s; }
  .hero-sub { animation-delay: 0.24s; }
  .hero-actions { animation-delay: 0.34s; }
  @keyframes rise { to { opacity: 1; transform: translateY(0); } }
}
