/* ==========================================================================
   La Piazzetta — pizzeria sulla piazza di Calderà (Barcellona P.G., ME)
   Direction: sun-washed daytime piazza. Sun-bleached limestone canvas +
   warm basalt/graphite ink (the terrace chairs) + ONE accent = sun-yellow
   (their yellow gingham tablecloths + the Sicilian sun), applied as fills,
   rules and a gingham motif. Graphite does the contrast lifting; yellow
   never carries low-contrast text. Display: Sansita. Body: Golos Text.
   Mobile-first (390px). Radius 5px. MOTION 3 (CSS + IntersectionObserver).
   ========================================================================== */

:root {
  --bg:      #f7f1e4;   /* sun-bleached limestone paving in full sun */
  --band:    #efe7d5;   /* alternating band */
  --surface: #fdfaf2;   /* raised card / plate */
  --line:    #e3d9c4;   /* hairlines */
  --ink:     #262019;   /* warm basalt-graphite — the terrace chairs */
  --muted:   #6e6453;   /* warm stone-taupe (AA on canvas) */
  --sun:     #f2b705;   /* THE accent — their gingham + Sicilian sun */
  --sun-hi:  #ffc21f;   /* hover */
  --dark:      #221c15; /* grounding blocks: reviews + footer */
  --dark-line: #3a3125;
  --dark-text: #f7f1e4;
  --dark-mut:  #c6b99d;

  --radius: 5px;
  --font-display: "Sansita", Georgia, "Times New Roman", serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 64ch;

  /* gingham tablecloth check (two translucent sun-yellow grids overlapping) */
  --gingham:
    repeating-linear-gradient(0deg,  rgba(242,183,5,.5) 0 11px, transparent 11px 22px),
    repeating-linear-gradient(90deg, rgba(242,183,5,.5) 0 11px, transparent 11px 22px);
}

* { 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;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.75rem, 5.5vw, 2.65rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { max-width: var(--measure); }

/* gingham brand mark (the tablecloth square) */
.check {
  display: inline-block;
  width: 1.05em; height: 1.05em;
  vertical-align: -0.12em;
  border-radius: 2px;
  background-color: #fbeecb;
  background-image: var(--gingham);
  background-size: 11px 11px;
  box-shadow: inset 0 0 0 1px rgba(38,32,25,.16);
  flex: none;
}

/* thin gingham strip that runs the full width, echo of the tablecloth edge */
.gingham-strip {
  height: 11px;
  background-color: #fbeecb;
  background-image: var(--gingham);
  background-size: 11px 11px;
  border-bottom: 1px solid rgba(38,32,25,.12);
}

/* ---- top bar ------------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.15rem;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.2rem; letter-spacing: -0.01em; text-decoration: none;
}
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: var(--ink); background: var(--sun);
  padding: 0.45rem 1rem; border-radius: var(--radius);
  transition: transform .18s ease, background .18s ease;
}
.topbar-cta:hover { background: var(--sun-hi); transform: translateY(-1px); }
.topbar-cta:active { transform: translateY(0); }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 0.72rem 1.35rem; border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--sun); color: var(--ink); }
.btn-primary:hover { background: var(--sun-hi); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; }

/* on the dark hero scrim / dark bands */
.on-dark .btn-ghost { color: var(--dark-text); border-color: rgba(247,241,228,.6); }
.on-dark .btn-ghost:hover { background: var(--dark-text); color: var(--dark); border-color: var(--dark-text); }

/* ---- hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: flex-end;
  padding: 2rem 1.25rem 2.75rem;
  color: var(--dark-text);
  background: #2a2419 url("images/piazza.jpg") center 38% / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    to top,
    rgba(24,20,13,.86) 0%,
    rgba(24,20,13,.55) 34%,
    rgba(24,20,13,.20) 62%,
    rgba(24,20,13,.34) 100%);
}
.hero-inner { max-width: 60ch; width: 100%; margin: 0 auto; }
.hero-kicker {
  color: var(--sun); font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.7rem;
}
.hero h1 {
  font-size: clamp(3rem, 15vw, 5.5rem);
  line-height: 0.98; margin-bottom: 0.85rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-sub {
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  color: #f0e7d6; max-width: 34ch; margin-bottom: 1.6rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* ---- section scaffolding ------------------------------------------------ */
.section { padding: 3.4rem 1.25rem; }
.wrap { max-width: var(--measure); margin: 0 auto; }
.wrap-wide { max-width: 74ch; margin: 0 auto; }
.band { background: var(--band); border-block: 1px solid var(--line); }

.lead { font-size: clamp(1.05rem, 3vw, 1.2rem); }
.eyebrow {
  color: var(--muted); font-weight: 600; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.6rem;
}
.section h2 + p { margin-top: 0.8rem; }
.sun-rule { width: 54px; height: 4px; background: var(--sun); border-radius: 2px; margin-top: 1.4rem; }

/* ---- service chips ------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; list-style: none; padding: 0; }
.chips li {
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  padding: 0.34rem 0.8rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface);
}

/* ---- menu (typographic, no prices) ------------------------------------- */
.menu-list { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 1.35rem; }
.menu-item {
  display: grid; grid-template-columns: auto 1fr; gap: 0.9rem 1rem;
  padding-bottom: 1.35rem; border-bottom: 1px solid var(--line);
  align-items: start;
}
.menu-list .menu-item:last-child { border-bottom: 0; padding-bottom: 0; }
.menu-num {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  color: var(--ink); background: var(--sun);
  width: 2rem; height: 2rem; border-radius: var(--radius);
  display: grid; place-items: center;
}
.menu-item h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.menu-item p { color: var(--muted); max-width: 52ch; }
.menu-note { margin-top: 2rem; color: var(--muted); font-size: 0.92rem; }

/* ---- showcase photo band ------------------------------------------------ */
.showcase { padding: 0; }
.showcase figure { margin: 0; }
.showcase img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 10; object-fit: cover; object-position: center 42%;
}
.showcase figcaption {
  max-width: var(--measure); margin: 0 auto;
  padding: 1rem 1.25rem; color: var(--muted); font-size: 0.95rem;
}
@media (min-width: 760px) {
  .showcase img { aspect-ratio: 24 / 9; }
}

/* ---- "sulla piazza" band (gingham panel + text) ------------------------- */
.piazza-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.9rem 1.6rem 1.9rem 2.4rem;
}
.piazza-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 12px;
  background-color: #fbeecb; background-image: var(--gingham);
  background-size: 11px 11px;
  border-right: 1px solid rgba(38,32,25,.12);
}
.piazza-card h2 { margin-bottom: 0.7rem; }
.piazza-points { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: 1rem; }
.piazza-points li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.piazza-points b { font-weight: 700; }
.piazza-points span { color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 2px; background: var(--sun); margin-top: 0.5em; flex: none; }

/* ---- reviews (dark grounding) ------------------------------------------ */
.reviews { background: var(--dark); color: var(--dark-text); }
.reviews .eyebrow { color: var(--sun); }
.reviews h2 { color: var(--dark-text); }
.quotes { display: grid; gap: 1.6rem; margin-top: 2rem; }
@media (min-width: 720px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { border-left: 3px solid var(--sun); padding: 0.2rem 0 0.2rem 1.15rem; }
.quote p {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: 1.28rem; line-height: 1.34; color: var(--dark-text);
  padding-bottom: 0.15rem;
}
.quote cite { display: block; margin-top: 0.7rem; font-style: normal;
  color: var(--dark-mut); font-size: 0.88rem; letter-spacing: 0.02em; }

/* ---- hours & where ------------------------------------------------------ */
.info-grid { display: grid; gap: 2.4rem; margin-top: 2rem; }
@media (min-width: 720px) { .info-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.hours { list-style: none; padding: 0; width: 100%; }
.hours li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0.7rem; border-radius: var(--radius);
  border-bottom: 1px solid var(--line);
}
.hours li:last-child { border-bottom: 0; }
.hours .day { font-weight: 500; }
.hours .hrs { color: var(--muted); font-variant-numeric: tabular-nums; }
.hours li.today { background: var(--sun); border-bottom-color: transparent; }
.hours li.today .day { font-weight: 700; }
.hours li.today .hrs { color: var(--ink); }
.hours li.today .badge {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-left: 0.5rem; color: var(--ink);
}
.hrs-note { margin-top: 0.9rem; color: var(--muted); font-size: 0.86rem; }

.where p { margin-bottom: 1.1rem; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 0.9rem; margin-bottom: 1.5rem; }
.contact-list a { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 3px; }
.contact-list svg { width: 1.15rem; height: 1.15rem; color: var(--muted); flex: none; }
.addr { color: var(--muted); font-style: normal; }

/* ---- footer ------------------------------------------------------------- */
.footer {
  background: var(--dark); color: var(--dark-mut);
  padding: 2.6rem 1.25rem 3rem; text-align: center;
}
.footer .brand { color: var(--dark-text); justify-content: center; font-size: 1.35rem; margin-bottom: 0.6rem; }
.footer .foot-line { font-size: 0.92rem; }
.footer a { color: var(--sun); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.demo-note { margin-top: 1rem; font-size: 0.82rem; color: #8a7f68; }

/* ---- desktop layout tweaks --------------------------------------------- */
@media (min-width: 760px) {
  .section { padding: 4.6rem 1.5rem; }
  .hero { padding: 3rem 1.5rem 3.4rem; }
  .menu-list { grid-template-columns: 1fr 1fr; gap: 1.6rem 3rem; }
}

/* ---- motion (MOTION 3): entrance + scroll reveal, reduced-motion safe --- */
.hero-inner { animation: rise .7s cubic-bezier(.16,1,.3,1) both; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .topbar-cta { transition: none; }
}
