/* ==========================================================================
   Bella Napoli — Ristorante Pizzeria, Barcellona Pozzo di Gotto (ME)
   Direction: warm flour-cream canvas, espresso ink, single coral/terracotta
   accent — all lifted from their own signboard (coral script + Vesuvio).
   Brand/type-led (photos are scarce). Mobile-first: designed at 390px.
   ========================================================================== */

:root {
  --paper:      #f7f0e4;   /* canvas cream (their beige plaster walls / flour) */
  --band:       #f1e8d8;   /* alternating section */
  --card:       #fffdf9;   /* raised surface */
  --ink:        #2a1c14;   /* text + headings (warm espresso, not black) */
  --espresso:   #241812;   /* dark bands: hero + footer */
  --muted:      #6d5a4a;   /* secondary text on light (5.77:1) */
  --muted-dark: #b89a86;   /* secondary text on espresso (6.6:1) */
  --line:       #e4d8c4;   /* hairlines on light */
  --coral:      #b0441e;   /* accent on light: links, prices, primary CTA (white 5.7:1) */
  --coral-glow: #e8895a;   /* accent on espresso: wordmark, Vesuvio, CTA (ink 6.4:1) */

  --font-script:  "Kaushan Script", cursive;
  --font-display: "Gloock", Georgia, serif;
  --font-body:    "Figtree", -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --measure: 64ch;
  --maxw: 1080px;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  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(--coral); text-underline-offset: 3px; }
a:hover { color: #8f3616; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.01em; }
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.2vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 0.85rem;
}
h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; margin-bottom: 0.6rem; }

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

/* content-photo iron rule: no towering on mobile. Every content <img> gets a
   landscape-or-square crop; any taller framing goes inside a min-width query. */
.content-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand { font-family: var(--font-script); font-size: 1.5rem; color: var(--coral); line-height: 1; }
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  color: #fff; background: var(--coral);
  padding: 0.44rem 1.05rem; border-radius: 999px;
  transition: transform .18s ease, background .18s ease;
}
.topbar-cta:hover { color: #fff; background: #9a3a14; transform: translateY(-1px); }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 600; font-size: 0.98rem;
  padding: 0.72rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: #9a3a14; color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

/* on the espresso hero band */
.on-dark .btn-primary { background: var(--coral-glow); color: var(--espresso); }
.on-dark .btn-primary:hover { background: #f09b6f; color: var(--espresso); }
.on-dark .btn-ghost { border-color: #6a4c3c; color: var(--paper); }
.on-dark .btn-ghost:hover { border-color: var(--coral-glow); color: var(--paper); }

/* -- HERO: espresso "insegna" band ---------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--espresso);
  color: var(--paper);
  text-align: center;
  padding: 3.6rem 1.25rem 3.4rem;
}
/* warm radial lift, like light behind a sign */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 12%, rgba(232,137,90,0.20), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.hero-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--muted-dark);
  margin-bottom: 0.5rem;
}
.hero .wordmark {
  font-family: var(--font-script); font-weight: 400;
  color: var(--coral-glow);
  font-size: clamp(3.4rem, 15vw, 6rem);
  line-height: 0.95; letter-spacing: 0;
  text-shadow: 0 2px 24px rgba(232,137,90,0.28);
}
.vesuvio { display: block; width: min(360px, 74%); height: auto; margin: 0.4rem auto 1.15rem; color: var(--coral-glow); opacity: 0.92; }
.hero-sub {
  color: var(--paper); opacity: 0.92;
  max-width: 40ch; margin: 0 auto 1.7rem; font-size: 1.06rem;
}
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* -- generic section ------------------------------------------------------- */
.section { padding: 3.4rem 0; }
.section .wrap { max-width: var(--measure); }
.section.band { background: var(--band); }
.lead { font-size: 1.14rem; color: var(--ink); max-width: 54ch; }
.section p + p { margin-top: 1rem; }
.muted { color: var(--muted); }

/* rating line */
.rating {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  margin-top: 1.4rem; font-size: 0.95rem; color: var(--muted);
}
.rating .stars { color: var(--coral); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }

/* flour chips (product truth: the flours they actually offer) */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.5rem; }
.chip {
  font-size: 0.9rem; font-weight: 500;
  padding: 0.4rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--coral); color: var(--coral);
  background: color-mix(in srgb, var(--coral) 7%, transparent);
}

/* pull-quote (impasto section) */
.quote { margin-top: 1.9rem; padding-left: 1.1rem; border-left: 3px solid var(--coral); }
.quote p { font-family: var(--font-display); font-weight: 400; font-size: 1.22rem; line-height: 1.4; color: var(--ink); }
.quote cite { display: block; margin-top: 0.55rem; font-style: normal; font-size: 0.85rem; color: var(--muted); font-family: var(--font-body); }

/* -- margherita feature (image + text split — used ONCE) ------------------- */
.feature .wrap { max-width: var(--maxw); }
.feature-grid { display: grid; gap: 1.6rem; align-items: center; }
.feature-photo {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0.55rem; background: var(--card);
  box-shadow: 0 18px 40px -28px rgba(42,28,20,0.55);
  max-width: 460px; width: 100%; margin: 0 auto;
}
.feature-photo img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-text h2 { margin-top: 0.3rem; }
.feature-cap { margin-top: 0.9rem; font-size: 0.92rem; color: var(--muted); font-style: italic; }

/* -- "Per chiudere": grouped price columns (no dotted leaders) ------------- */
.menu-cols { display: grid; gap: 2.2rem; margin-top: 0.5rem; }
.menu-group h3 { padding-bottom: 0.6rem; border-bottom: 2px solid var(--line); margin-bottom: 0.4rem; }
.price-list { list-style: none; padding: 0; }
.price-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: 0.5rem 0;
}
.price-list li + li { border-top: 1px solid var(--line); }
.price-list .name { font-weight: 500; }
.price-list .glut { display: block; font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.price-list .price { color: var(--coral); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-note { margin-top: 1.6rem; color: var(--muted); font-size: 0.92rem; max-width: 54ch; }

/* -- "La sala": photo banner + centered pull-quote ------------------------- */
.sala-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sala-quote { text-align: center; max-width: 46ch; margin: 2rem auto 0; }
.sala-quote .mark { font-family: var(--font-display); font-size: 2.6rem; line-height: 0; color: var(--coral); display: block; height: 1rem; }
.sala-quote p { font-family: var(--font-display); font-size: 1.34rem; line-height: 1.42; }
.sala-quote cite { display: block; margin-top: 0.8rem; font-style: normal; font-size: 0.85rem; color: var(--muted); }

/* -- Orari & Dove ---------------------------------------------------------- */
.info-grid { display: grid; gap: 2.2rem; margin-top: 0.5rem; }
@media (min-width: 720px) { .info-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.hours { width: 100%; border-collapse: collapse; max-width: 320px; }
.hours td { padding: 0.42rem 0; color: var(--muted); }
.hours td:first-child { color: var(--ink); font-weight: 500; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr + tr td { border-top: 1px solid var(--line); }
.hours tr.today td { color: var(--coral); font-weight: 700; }
.hours tr.today td:first-child { color: var(--coral); }
.contact-lines { line-height: 2; margin-bottom: 1.3rem; }
.contact-lines .addr { color: var(--ink); }
.contact-lines a { font-weight: 500; }

/* -- footer: espresso band ------------------------------------------------- */
.footer { background: var(--espresso); color: var(--muted-dark); text-align: center; padding: 3rem 1.25rem 3.2rem; }
.footer .brand { font-family: var(--font-script); font-size: 2.2rem; color: var(--coral-glow); line-height: 1; }
.footer .vesuvio { width: 180px; margin: 0.6rem auto 1.2rem; opacity: 0.8; }
.footer .f-lines { color: var(--paper); opacity: 0.9; line-height: 1.9; font-size: 0.96rem; }
.footer .f-lines a { color: var(--coral-glow); }
.footer .demo-note { margin-top: 1.4rem; font-size: 0.82rem; color: var(--muted-dark); opacity: 0.85; }

/* -- motion (MOTION 3: CSS only, gated) ------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .7s cubic-bezier(0.16,1,0.3,1) both; }
  .hero-label { animation-delay: .02s; }
  .hero .wordmark { animation-delay: .08s; }
  .vesuvio { animation-delay: .16s; }
  .hero-sub { animation-delay: .24s; }
  .hero-actions { animation-delay: .32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* -- desktop layout -------------------------------------------------------- */
@media (min-width: 720px) {
  .hero { padding: 5rem 1.25rem 4.6rem; }
  .section { padding: 4.6rem 0; }
  .feature-grid { grid-template-columns: 0.95fr 1.05fr; gap: 3rem; }
  .feature-photo { margin: 0; }
  .menu-cols { grid-template-columns: 1fr 1fr; gap: 3.4rem; }
  .sala-photo { aspect-ratio: 21 / 9; max-height: 460px; }
}
