/* ==========================================================================
   Il Buongustaio di Princiotto Salvatore — Barcellona Pozzo di Gotto
   Direction: dark roasted canvas so the wood-fired oven glows; olive-sage
   accent from their green wall; rustic slab (Crete Round) + friendly grotesque
   (Karla). Mobile-first, 390px. Plain static HTML/CSS.
   ========================================================================== */

:root {
  --bg: #1a130d;          /* warm roasted brown canvas */
  --surface: #241a12;     /* elevated band / cards */
  --deep: #120c08;        /* deepest band + scrims */
  --line: #38291d;        /* warm brown hairline */
  --text: #f2e7d6;        /* warm cream */
  --muted: #b7a488;       /* warm taupe (AA on canvas) */
  --accent: #a9c47a;      /* olive-sage — the ONLY interactive colour */
  --accent-hover: #bcd691;
  --accent-ink: #1a130d;  /* dark ink on the accent */
  --ember: #e0812f;       /* decorative brand glow only — never on text/links */
  --font-display: "Crete Round", Georgia, serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
  --measure: 64ch;
  --edge: 1.35rem;
}

* { 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.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
}
h2 { font-size: clamp(1.85rem, 6vw, 2.65rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.28rem; margin-bottom: 0.35rem; }
p { max-width: var(--measure); }

/* -- reveal on scroll ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .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 var(--edge);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--deep) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.32rem; color: var(--text); text-decoration: none;
  letter-spacing: 0.01em;
}
.topbar-cta {
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.42rem 1.05rem; border-radius: var(--radius);
  transition: background .2s ease, transform .1s ease;
}
.topbar-cta:hover { background: var(--accent-hover); }
.topbar-cta:active { transform: translateY(1px); }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 700; font-size: 1rem;
  padding: 0.78rem 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .1s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost {
  color: var(--text);
  background: color-mix(in srgb, var(--deep) 55%, transparent);
  border-color: color-mix(in srgb, var(--text) 55%, transparent);
  backdrop-filter: blur(3px);
}
.btn-ghost:hover { border-color: var(--text); background: color-mix(in srgb, var(--deep) 70%, transparent); }

/* -- hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 5rem var(--edge) 3rem;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(to top,
      var(--deep) 0%,
      color-mix(in srgb, var(--deep) 82%, transparent) 34%,
      color-mix(in srgb, var(--deep) 30%, transparent) 68%,
      color-mix(in srgb, var(--deep) 48%, transparent) 100%),
    url("images/forno.jpg");
  background-size: cover;
  background-position: 50% 38%;
}
/* decorative ember glow from the oven mouth — brand only, not interactive */
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 34% at 50% 33%,
    color-mix(in srgb, var(--ember) 42%, transparent), transparent 72%);
  mix-blend-mode: screen;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 40rem; margin: 0 auto;
  animation: heroIn .9s cubic-bezier(.16,1,.3,1) both;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-inner { animation: none; } }
.hero-kicker {
  color: var(--accent);
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  margin: 0 auto 1rem;
}
.wordmark {
  font-size: clamp(3rem, 15vw, 5.8rem);
  line-height: 0.98;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.hero-owner {
  font-family: var(--font-display); font-style: italic;
  color: var(--muted); font-size: clamp(1.05rem, 4vw, 1.4rem);
  margin: 0.35rem auto 0;
}
.hero-sub {
  color: var(--text);
  max-width: 34ch; margin: 1.3rem auto 1.9rem;
  font-size: 1.08rem;
  text-shadow: 0 1px 16px rgba(0,0,0,.55);
}
.hero-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* -- generic section bands ------------------------------------------------- */
.section { padding: clamp(3.2rem, 8vw, 5rem) var(--edge); }
.band-plain { background: var(--bg); }
.band-surface { background: var(--surface); }
/* one shared, rem-based content column so headings and content share a left edge
   (ch differs between the display and body fonts, which mis-aligned them) */
.wrap { max-width: 60rem; margin: 0 auto; }

/* -- rating line (cucina) -------------------------------------------------- */
.rating { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.stars { color: var(--accent); letter-spacing: 0.06em; font-size: 1rem; }
.star-half { opacity: 0.42; }
.rating-val { font-weight: 700; color: var(--text); }
.rating-meta { color: var(--muted); font-size: 0.92rem; }
.lede { font-size: 1.16rem; color: var(--text); max-width: 40rem; }

/* -- chip strip ------------------------------------------------------------ */
.section-chips { padding: 0 var(--edge) clamp(3rem, 8vw, 4.5rem); background: var(--bg); }
.chips {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.55rem;
}
.chips li {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--muted);
  padding: 0.42rem 0.85rem; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500;
}

/* -- cosa si mangia -------------------------------------------------------- */
.offer {
  margin: 1.6rem 0 0;
  display: grid; gap: 0; grid-template-columns: 1fr;
}
.offer-item { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.offer-item:first-child { border-top: 0; }
.offer-item h3 { color: var(--text); }
.offer-item p { color: var(--muted); margin: 0; max-width: 46ch; }
.menu-note { margin-top: 1.6rem; color: var(--muted); font-size: 0.92rem; }

/* -- split (la sala) ------------------------------------------------------- */
.split {
  display: grid; gap: 1.6rem; align-items: center;
  max-width: 72rem; margin: 0 auto;
}
.split-media { margin: 0; }
.split-media img {
  width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.split-text h2 { margin-bottom: 0.6rem; }
.split-text p { color: var(--muted); margin-bottom: 1.4rem; }

/* -- reviews (photo band) -------------------------------------------------- */
.reviews {
  position: relative; padding: clamp(3.4rem, 9vw, 5.5rem) var(--edge);
  text-align: center; overflow: hidden;
  background:
    linear-gradient(color-mix(in srgb, var(--deep) 84%, transparent),
                    color-mix(in srgb, var(--deep) 88%, transparent)),
    url("images/sala2.jpg");
  background-size: cover; background-position: center;
}
.reviews-inner { position: relative; z-index: 1; max-width: 48rem; margin: 0 auto; }
.reviews-score { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.reviews-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--text); line-height: 1; }
.reviews-score .stars { font-size: 1.35rem; }
.reviews-count { color: var(--muted); margin: 0.3rem auto 2rem; font-size: 0.95rem; }
.quotes { display: grid; gap: 1.4rem; }
@media (min-width: 720px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quotes blockquote {
  margin: 0; padding: 1.4rem 1.3rem;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-align: left;
}
.quotes p { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); margin: 0 0 0.7rem; max-width: none; }
.quotes cite { color: var(--accent); font-style: normal; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.02em; }

/* -- orari & dove ---------------------------------------------------------- */
.info-grid { display: grid; gap: 2.4rem; margin: 1.6rem 0 0; }
@media (min-width: 680px) { .info-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.info-block h3 { color: var(--text); margin-bottom: 0.9rem; }
.open-flag {
  display: inline-block; font-size: 0.82rem; font-weight: 700;
  padding: 0.28rem 0.7rem; border-radius: var(--radius); margin-bottom: 0.9rem;
}
.open-flag.is-open { color: var(--accent-ink); background: var(--accent); }
.open-flag.is-closed { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--line);
}
.hours li:last-child { border-bottom: 0; }
.hours .hours-all { color: var(--text); font-weight: 700; }
.hours li span:first-child { color: var(--text); }
.h-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.contact-lines { margin-bottom: 1.2rem; color: var(--muted); max-width: none; }
.contact-lines a { font-weight: 500; }

/* -- footer ---------------------------------------------------------------- */
.footer {
  padding: 3rem var(--edge) 3.4rem; text-align: center;
  color: var(--muted); font-size: 0.92rem;
  background: var(--deep); border-top: 1px solid var(--line);
}
.footer p { max-width: none; margin: 0.15rem 0; }
.footer-brand { font-family: var(--font-display); color: var(--text); font-size: 1.5rem; margin-bottom: 0.5rem; }
.footer a { color: var(--accent); }
.footer-copy { margin-top: 0.9rem; font-size: 0.85rem; }
.demo-note { margin-top: 0.8rem; opacity: 0.62; font-size: 0.82rem; }

/* -- desktop refinements --------------------------------------------------- */
@media (min-width: 820px) {
  .offer { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .offer-item { border-top: 1px solid var(--line); }
  .offer-item:nth-child(-n+2) { border-top: 0; }  /* first row, both columns */
  .split { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
  .split-media img { aspect-ratio: 4 / 3; }
}
