/* ==========================================================================
   BOOMERANG — Pizzeria · Barcellona Pozzo di Gotto (ME)
   Direction: warm dough-cream canvas, basil-green single accent (from their
   grey-green facade wall + the basil on their pizzas), warm slab display.
   Signature: a thin "boomerang arc" motif. Dials: VARIANCE 6 / MOTION 3 / DENSITY 4.
   Mobile-first (390px). Radius system: pill for buttons/chips, 14px for frames.
   ========================================================================== */

:root {
  --bg: #f6efe1;            /* dough cream (their warm interior glow) */
  --surface: #fbf6ec;       /* lifted surface */
  --band: #f0e6d3;          /* deeper cream for the chip strip */
  --ink: #22271b;           /* warm near-black, a touch green */
  --muted: #66614f;         /* warm olive-grey, secondary text (AA ~5.4:1) */
  --line: #e2d7c1;          /* hairlines on cream */
  --accent: #3f6b3a;        /* basil green — the one action color */
  --accent-hover: #345730;
  --accent-ink: #ffffff;    /* text on green (~6.2:1) */

  --green-deep: #22301f;    /* deliberate dark color-block: band + footer */
  --green-surface: #2c3d27;
  --on-deep: #f2ede0;
  --on-deep-muted: #bcc4b0;
  --accent-on-deep: #a9c98d;

  --font-display: "Hepta Slab", Georgia, serif;
  --font-body: "Figtree", -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --measure: 64ch;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

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

/* content-image iron rule: never tower at 390px */
figure img, .content-img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius);
}

/* -- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--ink); background: transparent;
  border-radius: 999px; padding: 0.66rem 1.35rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { color: var(--ink); }
.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); color: #fff; }
.btn svg { width: 1.05em; height: 1.05em; }

/* -- top bar ------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1.25rem; height: 64px;
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand .dot { color: var(--accent); }
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.42rem 1rem; border-radius: 999px;
}
.topbar-cta:hover { background: var(--accent-hover); color: #fff; }

/* -- layout helpers ------------------------------------------------------- */
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3rem, 7vw, 4.75rem); }
.prose { max-width: var(--measure); }
.eyebrow {
  color: var(--accent); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.9rem;
}

/* -- hero ----------------------------------------------------------------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-copy { position: relative; }
.hero-arc {
  position: absolute; top: -1.4rem; left: -0.4rem;
  width: min(78%, 340px); height: auto; color: var(--accent);
  opacity: 0.5; z-index: 0; pointer-events: none;
}
.hero-copy > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(3rem, 15vw, 5.5rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 0.5rem;
}
.hero-tag {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.15rem, 4.5vw, 1.5rem); line-height: 1.25;
  color: var(--ink); margin-bottom: 0.85rem;
}
.hero-sub { color: var(--muted); max-width: 42ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -22px rgba(34, 48, 31, 0.55);
}
.hero-photo figcaption {
  margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted);
}

/* -- intro (la pizza) ----------------------------------------------------- */
.lead { font-size: clamp(1.15rem, 3vw, 1.35rem); color: var(--ink); }
.section-intro p + p { margin-top: 0.9rem; color: var(--muted); }
.rating {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 1.5rem; padding: 0.5rem 0.95rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.95rem;
}
.stars { color: var(--accent); letter-spacing: 0.1em; }
.rating b { font-weight: 700; }
.rating span { color: var(--muted); }

/* -- showcase (le pizze) -------------------------------------------------- */
.showcase-grid { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
.dish-card figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.dish-card figcaption small {
  display: block; margin-top: 0.15rem;
  font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: var(--muted);
}
.dish-note { margin-top: 1.5rem; color: var(--muted); font-size: 0.9rem; }

/* -- deep-green band (non solo pizza) ------------------------------------- */
.band-deep { background: var(--green-deep); color: var(--on-deep); }
.band-deep h2 { color: var(--on-deep); }
.band-deep .lead { color: var(--on-deep); }
.band-deep .eyebrow { color: var(--accent-on-deep); }
.also-grid {
  display: grid; gap: 1.75rem; margin-top: 2rem;
  border-top: 1px solid rgba(242, 237, 224, 0.16); padding-top: 1.75rem;
}
.also-item h3 { color: var(--on-deep); font-size: 1.2rem; }
.also-item p { color: var(--on-deep-muted); font-size: 0.96rem; }
.band-deep .foot-line { margin-top: 1.9rem; color: var(--on-deep-muted); font-size: 0.95rem; }
.band-deep .foot-line b { color: var(--accent-on-deep); font-weight: 600; }

/* -- servizi chip strip --------------------------------------------------- */
.strip { background: var(--band); }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.5rem 1rem;
  font-size: 0.92rem; font-weight: 500; color: var(--ink);
}
.strip .eyebrow { margin-bottom: 1.1rem; }

/* -- recensioni ----------------------------------------------------------- */
.reviews-grid { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.quote {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
}
.quote p { font-size: 1.08rem; line-height: 1.5; }
.quote cite { display: block; margin-top: 0.9rem; font-style: normal; font-size: 0.85rem; color: var(--muted); }

/* -- orari & dove --------------------------------------------------------- */
.info-grid { display: grid; gap: 2.25rem; margin-top: 1.75rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 340px; }
.hours td { padding: 0.5rem 0.5rem; border-bottom: 1px solid var(--line); }
.hours tr:last-child td { border-bottom: none; }
.hours td:first-child { font-weight: 500; }
.hours td:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours tr.today td { color: var(--accent); font-weight: 700; }
.hours tr.today td:last-child { color: var(--accent); }
.today-badge {
  display: inline-block; margin-left: 0.5rem; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.05rem 0.45rem; border-radius: 999px; vertical-align: middle;
}
.contact-lines { line-height: 1.9; margin-bottom: 1.3rem; }
.contact-lines strong { font-weight: 600; }
.contact-lines a { font-weight: 600; }
.dove-photo { margin-top: 2.25rem; }
.dove-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.dove-photo figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); }

/* -- footer --------------------------------------------------------------- */
.footer { background: var(--green-deep); color: var(--on-deep-muted); padding-block: 2.75rem 3rem; }
.footer .brand { color: var(--on-deep); display: inline-block; margin-bottom: 0.6rem; }
.footer a { color: var(--accent-on-deep); }
.footer p { font-size: 0.9rem; }
.footer .footer-contact { margin: 0.4rem 0 0.9rem; color: var(--on-deep); }
.demo-note { margin-top: 0.9rem; font-size: 0.82rem; color: var(--on-deep-muted); opacity: 0.8; }

/* -- entrance reveal (MOTION 3, CSS-only, gated) -------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise 0.7s cubic-bezier(0.16,1,0.3,1) forwards; }
  .reveal.d1 { animation-delay: 0.08s; }
  .reveal.d2 { animation-delay: 0.16s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* -- desktop -------------------------------------------------------------- */
@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .also-grid { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
  .dove-photo img { aspect-ratio: 21 / 9; }
}
