/* ==========================================================================
   Delizie del Palato & Muh in centro — Barcellona Pozzo di Gotto
   Direction: warm Sicilian "forno a legna" gastronomia.
   Canvas: warm ivory-oat. Accent (single, action): bottle/herb green.
   Brand-only decorative tone: terracotta (oven glow) — never on text/links.
   Type: Rozha One (display) + Familjen Grotesk (body). Radius: one, 3px.
   Mobile-first (390px), then min-width:760px.
   ========================================================================== */

:root {
  --bg: #f5eede;            /* warm ivory-oat canvas (their ochre facade, lightened) */
  --band: #efe6d1;          /* alternating / deeper warm band */
  --surface: #fdf9ef;       /* cards / targa */
  --text: #24201a;          /* warm near-black ink */
  --muted: #62594a;         /* warm taupe secondary (AA on canvas) */
  --line: #e3d8c2;          /* hairlines */
  --accent: #2f5233;        /* bottle/herb green — the ONLY action colour */
  --accent-hover: #264227;
  --accent-ink: #f7f2e6;    /* text on green */
  --ember: #c0602c;         /* terracotta oven glow — DECORATIVE fills/borders/glow only */
  --ember-ink: #9d4a20;     /* darker burnt-sienna for terracotta TEXT (AA ~5.3:1 on canvas) */
  --font-display: "Rozha One", Georgia, "Times New Roman", serif;
  --font-body: "Familjen Grotesk", -apple-system, "Segoe UI", sans-serif;
  --radius: 3px;
  --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 { line-height: 1.12; }
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5.4vw, 2.9rem);
  letter-spacing: 0.005em;
  margin-bottom: 0.85rem;
}
h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.005em;
  margin-bottom: 0.4rem;
}

/* mobile-image iron rule safety net (also covered by bespoke rules below) */
@media (max-width: 640px) {
  figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
}

/* -- 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(--bg) 90%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--font-display); font-weight: 400; font-size: 1.28rem; letter-spacing: 0.01em; }
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.45rem 1rem; border-radius: var(--radius);
  transition: background .2s ease;
}
.topbar-cta:hover { background: var(--accent-hover); }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 600; font-size: 0.98rem;
  padding: 0.72rem 1.4rem; border-radius: var(--radius);
  border: 1.5px solid var(--accent); color: var(--accent);
  background: transparent;
  transition: background .2s ease, color .2s ease, transform .12s ease, border-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:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* -- hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: 50% 52%;
  overflow: hidden;
}
/* warm scrim + terracotta oven-glow bloom (decorative brand tone) */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 22% 108%, color-mix(in srgb, var(--ember) 55%, transparent), transparent 60%),
    linear-gradient(to top, rgba(20,13,4,0.82) 0%, rgba(20,13,4,0.5) 34%, rgba(20,13,4,0.12) 62%, rgba(20,13,4,0.28) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%; min-width: 0;
  max-width: 1120px; margin: 0 auto;
  padding: 2rem var(--edge) 2.4rem;
}
.targa {
  position: relative;
  background: var(--surface);
  border-top: 3px solid var(--ember);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 4vw, 2.1rem);
  max-width: 34rem;
  box-shadow: 0 22px 55px rgba(24,15,4,0.42);
}
/* inner rule = the second line of the "targa a doppio filetto" */
.targa::before {
  content: ""; position: absolute; inset: 7px;
  border: 1px solid color-mix(in srgb, var(--ember) 45%, transparent);
  border-radius: 1px; pointer-events: none;
}
.hero-kicker {
  color: var(--ember-ink);
  font-size: 0.76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.13em;
  margin-bottom: 0.7rem;
}
.wordmark {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.15rem, 8.5vw, 3.6rem);
  line-height: 1.0; letter-spacing: 0.01em;
  color: var(--text);
}
.wordmark-sub {
  display: block;
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.92rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.55rem;
}
.hero-sub {
  color: var(--text); opacity: 0.86;
  margin: 0.95rem 0 1.4rem;
  max-width: 40ch; font-size: 1.02rem;
}
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* -- sections -------------------------------------------------------------- */
.section {
  padding: clamp(3rem, 8vw, 5rem) var(--edge);
  max-width: calc(var(--measure) + 6rem);
  margin: 0 auto;
}
.intro { max-width: 60ch; }
.lead { font-size: 1.14rem; color: var(--text); }
.rating {
  margin-top: 1.1rem; font-weight: 600;
  color: var(--accent);
}
.chips { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-size: 0.84rem; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.34rem 0.7rem;
}

/* -- la nostra tavola (signature taxonomy) --------------------------------- */
.tavola { max-width: calc(var(--measure) + 8rem); }
.tavola-grid { display: grid; grid-template-columns: 1fr; margin-top: 1.4rem; }
.tavola-item {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.tavola-item h3 { position: relative; padding-left: 0.9rem; }
.tavola-item h3::before {
  content: ""; position: absolute; left: 0; top: 0.18em;
  width: 3px; height: 1.05em; background: var(--accent); border-radius: 1px;
}
.tavola-item p { color: var(--muted); max-width: 52ch; }
.menu-note { margin-top: 1.5rem; color: var(--muted); font-size: 0.92rem; font-style: italic; }

/* -- feature (dal forno a legna) ------------------------------------------- */
.feature { display: grid; gap: 1.6rem; align-items: center; max-width: calc(var(--measure) + 9rem); }
.feature-media img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 38%;
  border-radius: var(--radius);
  border-top: 3px solid var(--ember);
}
.feature-body h2 { margin-bottom: 0.6rem; }
.feature-body p { color: var(--text); }
.quote {
  margin-top: 1.4rem; padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
}
.quote p {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.32rem; line-height: 1.3; color: var(--text);
}
.quote cite {
  display: block; margin-top: 0.6rem;
  font-family: var(--font-body); font-style: normal;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}

/* -- citazione band (on solid green) --------------------------------------- */
.band { background: var(--accent); color: var(--accent-ink); }
.band-inner {
  max-width: 46ch; margin: 0 auto;
  padding: clamp(3rem, 8vw, 4.6rem) var(--edge);
  text-align: center;
}
.band-stars { font-size: 1.15rem; letter-spacing: 0.18em; margin-bottom: 1rem; }
.band-stars .star-empty { opacity: 0.42; }
.band blockquote p {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 4.6vw, 2.15rem); line-height: 1.24;
}
.band-cite {
  margin-top: 1.3rem; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent-ink) 78%, transparent);
}

/* -- orari & dove ---------------------------------------------------------- */
.info-grid { display: grid; gap: 2.4rem; margin-top: 1.4rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours tr { border-bottom: 1px solid var(--line); }
.hours tr:last-child { border-bottom: 0; }
.hours td { padding: 0.6rem 0; vertical-align: baseline; }
.hours .day { font-weight: 600; white-space: nowrap; padding-right: 1rem; }
.hours .time { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.hours .only {
  display: inline-block; font-size: 0.74rem; font-style: normal;
  color: var(--ember-ink); font-variant-numeric: normal; margin-left: 0.35rem;
}
.hours tr.today .day, .hours tr.today .time { color: var(--accent); font-weight: 600; }
.hours tr.today { box-shadow: inset 3px 0 0 var(--accent); }
.hours tr.today .day { padding-left: 0.6rem; }
.today-tag {
  display: inline-block; margin-left: 0.5rem;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.1rem 0.42rem; border-radius: var(--radius);
  vertical-align: middle;
}
.hours-note { margin-top: 0.9rem; color: var(--muted); font-size: 0.9rem; }
.contact-lines { margin-bottom: 1.4rem; line-height: 1.75; }
.contact-lines a { font-weight: 600; }

/* -- footer ---------------------------------------------------------------- */
.footer {
  padding: 2.8rem var(--edge) 3.2rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--line);
  background: var(--band);
}
.footer-brand {
  font-family: var(--font-display); font-size: 1.35rem; color: var(--text);
  margin-bottom: 0.5rem;
}
.footer-brand span {
  display: block; font-family: var(--font-body); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem;
}
.demo-note { margin-top: 0.8rem; opacity: 0.75; }

/* -- reveal on scroll (progressive, JS + motion gated) --------------------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(0.16,1,0.3,1); }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* ==========================================================================
   DESKTOP / TABLET
   ========================================================================== */
@media (min-width: 760px) {
  .hero { min-height: 88svh; background-position: 50% 42%; }
  .hero-inner { padding: 3rem var(--edge) 3.4rem; }

  .tavola-grid { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  /* keep the top hairline reading as a continuous rule across the two columns */
  .tavola-item { padding: 1.6rem 0; }

  .feature { grid-template-columns: 0.82fr 1.18fr; gap: 3rem; }
  .feature-media img {
    aspect-ratio: 4 / 5;           /* taller framed portrait on desktop only */
    object-position: 50% 34%;
  }

  .info-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; }
}
