/* ==========================================================================
   RISTORANTE PANZAKINA — cucina di mare, Barcellona Pozzo di Gotto
   Direction: bright, airy coastal-Sicilian. Cool sky-haze canvas + powder-blue
   bands (their walls) + ONE warm terracotta-coral accent (the coral napkins,
   the amber backlight, the Nero d'Avola label). Gilda Display + Mulish.
   Mobile-first (390px), then scale up.
   ========================================================================== */

:root {
  --bg: #eef1f0;            /* cool sky-haze canvas */
  --band: #dde5e6;          /* powder-blue band = their walls, calmed */
  --surface: #f8faf9;       /* raised near-white */
  --ink: #212a2d;           /* cool charcoal text (the near-black placemats) */
  --muted: #5c686b;         /* cool grey secondary */
  --line: #c4cfcf;          /* hairlines / dotted leaders */
  --accent: #c05237;        /* terracotta-coral fill (white text = 5.0:1) */
  --accent-deep: #9e3f28;   /* accent as text on light (links/labels = 5.7:1) */
  --accent-ink: #ffffff;    /* text on accent */
  --scrim: rgba(22,29,32,0.66);
  --font-display: "Gilda Display", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", -apple-system, "Segoe UI", sans-serif;
  --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.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Mobile-image iron rule made structural: no content photo may tower at phone width. */
@media (max-width: 640px) {
  figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.14; }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-bottom: 0.6rem; letter-spacing: 0.005em; }
h3 { font-size: 1.05rem; letter-spacing: 0.02em; }

p { max-width: var(--measure); }

/* -- 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 color-mix(in srgb, var(--ink) 8%, transparent);
}
.brand {
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.02em;
  color: var(--ink);
}
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.45rem 1rem; border-radius: 999px;
  transition: background 0.25s ease, transform 0.15s ease;
}
.topbar-cta:hover { background: var(--accent-deep); }
.topbar-cta:active { transform: translateY(1px); }

/* -- hero (photo full-bleed, chiaro) --------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  margin-top: -3.2rem;              /* slide under the sticky bar */
  display: flex; align-items: flex-end;
  padding: 6rem 1.25rem 2.75rem;
  background: linear-gradient(180deg, rgba(22,29,32,0.28) 0%, rgba(22,29,32,0) 30%, rgba(22,29,32,0.10) 55%, var(--scrim) 100%),
              url("images/hero-sala.jpg");
  background-size: cover;
  background-position: 58% center;
  color: #fff;
}
.hero-inner { max-width: 40ch; }
.hero-kicker {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; color: #f2ded6; margin-bottom: 0.9rem;
}
.hero h1 {
  color: #fff; font-size: clamp(2.6rem, 11vw, 4.6rem);
  line-height: 1.02; margin-bottom: 1rem;
  text-shadow: 0 1px 30px rgba(0,0,0,0.28);
}
.hero-sub {
  color: rgba(255,255,255,0.94); font-size: 1.08rem;
  max-width: 34ch; margin-bottom: 1.9rem;
  text-shadow: 0 1px 18px rgba(0,0,0,0.3);
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 0.72rem 1.5rem; border-radius: 999px;
  border: 1px solid transparent; font-size: 0.98rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost {
  color: #fff; border-color: rgba(255,255,255,0.6);
  background: rgba(22,29,32,0.22); backdrop-filter: blur(3px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); border-color: #fff; }
.btn:active { transform: translateY(1px); }

/* -- section frames -------------------------------------------------------- */
.section { padding: 4rem 1.25rem; max-width: calc(var(--measure) + 8ch); margin: 0 auto; }
.band { padding: 4rem 1.25rem; background: var(--band); }
.band > * { max-width: calc(var(--measure) + 8ch); margin-left: auto; margin-right: auto; }

/* accent hairline motif under section titles */
.manifesto h2::after,
.carta-inner > h2::after,
.gallery-section > h2::after,
.feature-copy h2::after {
  content: ""; display: block; width: 44px; height: 3px;
  background: var(--accent); margin-top: 0.9rem; border-radius: 2px;
}

/* -- manifesto ------------------------------------------------------------- */
.manifesto { text-align: left; }
.manifesto p { font-size: 1.18rem; color: var(--ink); margin-top: 0.4rem; max-width: 54ch; }

/* -- piatto firma (single feature, one split) ------------------------------ */
.feature { display: grid; gap: 1.75rem; align-items: center; }
.feature-media { border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(22,29,32,0.5); }
.feature-media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.feature-copy p { color: var(--muted); margin-top: 0.3rem; }
@media (min-width: 760px) {
  .feature { grid-template-columns: 1.25fr 1fr; gap: 3rem; }
  .feature-media img { aspect-ratio: 4 / 5; }   /* taller only on desktop, per iron rule */
}

/* -- la carta -------------------------------------------------------------- */
.carta-lead { color: var(--muted); margin: 0.4rem 0 2rem; max-width: 56ch; }
.carta-group {
  color: var(--accent-deep); text-transform: uppercase; letter-spacing: 0.14em;
  font-family: var(--font-body); font-weight: 700; font-size: 0.82rem;
  margin-bottom: 0.4rem;
}
.menu { list-style: none; padding: 0; display: grid; gap: 0 3.5rem; }
.menu li {
  display: flex; align-items: baseline; flex-wrap: wrap;
  padding: 0.62rem 0;
}
.dish { order: 1; font-weight: 600; color: var(--ink); }
.menu li::before {
  content: ""; order: 2; flex: 1 1 1.5rem;
  align-self: flex-end; margin: 0 0.55rem 0.32em;
  border-bottom: 1px dotted var(--line);
}
.price { order: 3; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.desc { order: 4; flex-basis: 100%; color: var(--muted); font-size: 0.9rem; margin-top: 0.1rem; }
.menu-note { margin-top: 1.6rem; color: var(--muted); font-size: 0.9rem; }
@media (min-width: 720px) {
  .menu { grid-template-columns: 1fr 1fr; }
}

/* -- galleria (filmstrip → griglia) ---------------------------------------- */
.gallery-section > h2 { margin-bottom: 1.5rem; }
.gallery {
  display: flex; gap: 0.75rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem; margin: 0 -0.15rem;
  -webkit-overflow-scrolling: touch;
}
.gallery figure {
  flex: 0 0 82%; scroll-snap-align: center;
  border-radius: 12px; overflow: hidden;
}
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 720px) {
  .gallery {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem;
    overflow: visible; margin: 0;
  }
  .gallery figure { flex: none; }
  .gallery .g-wide { grid-column: 1 / -1; }
  .gallery .g-wide img { aspect-ratio: 16 / 7; }
}

/* -- orari & dove ---------------------------------------------------------- */
.info-grid { display: grid; gap: 2.5rem; }
.info-grid h2 { margin-bottom: 1rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 26rem; }
.hours td { padding: 0.4rem 1.25rem 0.4rem 0; color: var(--muted); border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); }
.hours tr:last-child td { border-bottom: none; }
.hours td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.contact-lines { margin-bottom: 1.4rem; line-height: 1.9; }
.contact-lines a { font-weight: 600; }
@media (min-width: 720px) { .info-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

/* -- footer ---------------------------------------------------------------- */
.footer {
  padding: 3.25rem 1.25rem 3.5rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.footer-brand {
  font-family: var(--font-display); font-size: 1.35rem; color: var(--ink);
  margin: 0 auto 0.5rem; letter-spacing: 0.02em;
}
.footer p { max-width: none; }
.demo-note { margin-top: 0.6rem; opacity: 0.72; }

/* -- motion: subtle scroll reveal (CSS-only, progressive) ------------------ */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .manifesto, .feature-media, .feature-copy, .carta-inner,
    .gallery-section > h2, .info-grid > div {
      animation: reveal-up both linear;
      animation-timeline: view();
      animation-range: entry 4% cover 20%;
    }
    @keyframes reveal-up {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: none; }
    }
  }
}
