/* ==========================================================================
   PIZZERIA VULCANELLO — forno a legna, Barcellona Pozzo di Gotto (dal 1999)
   Direction: volcanic fire / lava eruption. Basalt near-black canvas + a single
   molten-lava accent (amber -> orange -> red), from their own logo (an erupting
   volcano) and the glowing mouth of the wood oven. Committed dark theme.
   Display: Unbounded. Body: Plus Jakarta Sans. Mobile-first (390px).
   ========================================================================== */

:root {
  --bg: #131217;            /* basalt near-black (volcanic rock), cool-neutral */
  --surface: #1b1a22;       /* elevated bands */
  --card: #211f29;          /* cards */
  --line: #2c2a36;          /* hairlines */
  --text: #f6f1ea;          /* warm off-white */
  --muted: #ada7b6;         /* secondary text (~7:1 on --bg) */

  /* THE LAVA — one accent family, used consistently across the whole page */
  --lava: #ff6a1a;          /* action fill (CTA bg), big display */
  --lava-text: #ff8a42;     /* lava on dark for links / prices / labels (~7:1) */
  --ink: #131217;           /* text on a lava fill */
  --lava-grad: linear-gradient(180deg, #ffce5e 0%, #ff8f2b 42%, #ff5f1c 76%, #e0281a 100%);

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;                /* cards / media */
  --r-pill: 999px;          /* buttons / pills */
  --measure: 66ch;
  --wrap: 1180px;
}

* { 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;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

/* Content photos never tower on mobile: landscape/square crop, cover. */
figure { margin: 0; }
.band-media img,
.feature-media img {
  width: 100%; height: auto; object-fit: cover; display: block;
}

/* -- reveal-on-scroll: only hide when JS is present to restore it ----------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1.25rem;
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.topbar-cta {
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  color: var(--ink); background: var(--lava);
  padding: 0.45rem 1.05rem; border-radius: var(--r-pill);
}

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; color: var(--text);
  border: 1.5px solid color-mix(in srgb, var(--text) 45%, transparent);
  border-radius: var(--r-pill);
  padding: 0.7rem 1.5rem; font-weight: 600; font-size: 1rem;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--lava); border-color: var(--lava); color: var(--ink); font-weight: 700; }
.btn-primary:hover { background: #ff7d33; border-color: #ff7d33; }
.btn-ghost { border-color: rgba(255,255,255,.45); background: rgba(19,18,23,.28); }
.btn-ghost:hover { border-color: var(--lava-text); color: #fff; }

/* -- hero: full-bleed wood oven, darkened, with a lava glow ---------------- */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88dvh;
  display: flex; align-items: flex-end;
  padding: 2rem 1.25rem clamp(2.5rem, 7vh, 4rem);
  background:
    radial-gradient(90% 60% at 52% 40%, rgba(255,120,30,.32), rgba(255,120,30,0) 60%),
    linear-gradient(to bottom, rgba(19,18,23,.28) 0%, rgba(19,18,23,.55) 48%, rgba(19,18,23,.94) 100%),
    #1a1620 url("images/forno-legna.jpg") center 28% / cover no-repeat;
  overflow: hidden;
}
/* subtle ember flicker on the glow (motivated: the fire) — reduced-motion off */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 40% at 52% 42%, rgba(255,150,40,.22), transparent 62%);
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: ember 5.5s ease-in-out infinite; }
}
@keyframes ember { 0%,100% { opacity:.55; } 50% { opacity:1; } }

.hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; }
.hero-kicker {
  color: var(--lava-text); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.6rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.wordmark {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 11vw, 7rem); line-height: 0.92; letter-spacing: -0.035em;
  margin-bottom: 1rem;
  color: #ffb063; /* fallback if background-clip unsupported */
  background: var(--lava-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 26px rgba(224,40,26,.35));
}
.hero-sub {
  color: var(--text); max-width: 40ch; font-size: 1.08rem; line-height: 1.55;
  margin-bottom: 1.6rem; text-shadow: 0 1px 14px rgba(0,0,0,.6);
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* -- bands (statement / info on elevated surface) -------------------------- */
.band { background: var(--surface); border-top: 1px solid var(--line); }
.band { padding: clamp(3rem, 7vw, 5rem) 1.25rem; }
.band > h2, .band > .info-grid { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

.band-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; gap: 1.75rem; align-items: center;
}
.band-text p { color: var(--muted); max-width: var(--measure); margin-bottom: 0.9rem; }
.band-text p:first-of-type { color: var(--text); }
.band-media img { border-radius: var(--r); aspect-ratio: 4 / 3; border: 1px solid var(--line); }

.facts {
  list-style: none; padding: 0; margin-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.facts li {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--lava-text);
  border: 1px solid color-mix(in srgb, var(--lava) 40%, transparent);
  border-radius: var(--r-pill); padding: 0.35rem 0.85rem;
  background: color-mix(in srgb, var(--lava) 8%, transparent);
}

/* -- menu (the signature content) ------------------------------------------ */
.menu { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) 1.25rem; }
.menu-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; margin-bottom: 1.75rem; }
.menu-legend { color: var(--muted); font-size: 0.9rem; }
.menu-legend span { color: var(--lava-text); font-weight: 600; }

/* featured signature dish */
.feature {
  display: grid; gap: 0; margin-bottom: 2.5rem;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--card);
  position: relative;
}
.feature::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--lava-grad); z-index: 2;
}
.feature-media img { aspect-ratio: 3 / 2; }
.feature-body { padding: 1.5rem 1.4rem 1.6rem; }
.feature-label {
  color: var(--lava-text); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem;
}
.feature-body h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; }
.feature-body p { color: var(--muted); max-width: 52ch; }
.feature-price {
  margin-top: 1rem; font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; color: var(--lava-text);
}
.feature-price span { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; color: var(--muted); }

/* grouped columns */
.menu-cols { display: grid; gap: 2.25rem; }
.menu-group h3 {
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--text); padding-bottom: 0.6rem; margin-bottom: 0.4rem;
  border-bottom: 2px solid color-mix(in srgb, var(--lava) 55%, transparent);
}
.menu-list { list-style: none; padding: 0; }
.menu-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.menu-list li:last-child { border-bottom: 0; }
.m-name { font-weight: 600; }
.m-ing { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); margin-top: 0.1rem; }
.m-price {
  flex: none; font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--lava-text); font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* pizze baby */
.baby { margin-top: 2.5rem; padding: 1.5rem 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.baby h3 { font-size: 1.15rem; font-weight: 800; }
.baby-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.9rem; }
.baby-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.baby-list li {
  font-weight: 600; font-size: 0.92rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 0.4rem 0.95rem; background: var(--surface);
}

.menu-note { margin-top: 1.75rem; color: var(--muted); font-size: 0.9rem; max-width: var(--measure); }

/* -- hours & contact ------------------------------------------------------- */
.info-grid { display: grid; gap: 2.25rem; margin-top: 1.25rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 360px; }
.hours td { padding: 0.5rem 0.5rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.hours td:first-child { color: var(--text); font-weight: 600; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today td { color: var(--lava-text); }
.hours tr.is-today td:first-child { color: var(--lava-text); font-weight: 700; }
.contact-lines { margin-bottom: 1.1rem; color: var(--muted); }
.contact-lines a { font-weight: 600; }
.info-grid .btn-primary { margin-top: 0.3rem; }

/* -- footer ---------------------------------------------------------------- */
.footer {
  padding: 2.5rem 1.25rem 3rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.demo-note { margin-top: 0.5rem; opacity: 0.7; }

/* ==========================================================================
   DESKTOP / TABLET
   ========================================================================== */
@media (min-width: 720px) {
  .band-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; }
  .band-media img { aspect-ratio: 4 / 3; }
  .menu-cols { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .feature { grid-template-columns: 0.92fr 1.08fr; }
  .feature-media { height: 420px; }
  .feature-media img { height: 100%; aspect-ratio: auto; object-fit: cover; }
  .feature-body { padding: 2rem 2.2rem; align-self: center; }
  .info-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .wordmark { letter-spacing: -0.035em; }
  .hero-sub { font-size: 1.2rem; }
}
