/* ==========================================================================
   Pizzeria Roma — Barcellona Pozzo di Gotto (ME)
   Direzione: ceramica siciliana / maiolica dipinta a mano.
   Canvas calce chiara. Azzurro-maiolica = unico accento d'azione.
   Rosso "ROMA" solo sul wordmark. Firma = motivo di maiolica in puro CSS.
   Type: Sanchez (slab display) + Instrument Sans (body). Mobile-first @390px.
   Shape lock: interattivi = pill; cornici/card = 6px.
   ========================================================================== */

:root {
  --bg:        #f5f1e8;   /* calce calda */
  --surface:   #fbf8f2;   /* card / tile */
  --band:      #ece6d8;   /* fascia alternata */
  --line:      #ddd5c4;   /* filetti */
  --text:      #1b1a17;   /* inchiostro caldo */
  --muted:     #625c50;   /* secondario (AA anche sulla banda) */
  --accent:    #215a9e;   /* azzurro-maiolica (azione) */
  --accent-ink:#ffffff;   /* testo su accento */
  --accent-hi: #164574;   /* hover */
  --roma:      #c02a25;   /* rosso ROMA — solo wordmark + stella */
  --navy:      #14395f;   /* blocco scuro recensioni */

  /* tinte della maiolica — solo decorative */
  --tile-deep: #215a9e;
  --tile-mid:  #5f93c3;
  --tile-soft: #a9c6de;

  --font-display: "Sanchez", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
  --measure: 64ch;
  --edge: 1.25rem;
}

* { 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;
}

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.14; font-weight: 400; }
h2 { font-size: clamp(1.55rem, 5vw, 2.1rem); letter-spacing: -0.01em; margin-bottom: 0.6rem; }
h3 { font-size: 1.1rem; }

.brand-roma { color: var(--roma); }

/* -- maiolica tile (firma) — puro CSS, senza immagini --------------------- */
.tile-rule, .tile-band {
  background-color: var(--surface);
  background-image:
    radial-gradient(circle at 50% 50%, var(--tile-deep) 0 2.4px, transparent 3px),
    radial-gradient(circle at 0% 0%,  var(--tile-mid)  0 2px,   transparent 2.6px),
    linear-gradient(45deg,  transparent calc(50% - 0.6px), var(--tile-soft) calc(50% - 0.6px) calc(50% + 0.6px), transparent calc(50% + 0.6px)),
    linear-gradient(-45deg, transparent calc(50% - 0.6px), var(--tile-soft) calc(50% - 0.6px) calc(50% + 0.6px), transparent calc(50% + 0.6px));
  background-size: 38px 38px;
  background-position: center;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}
.tile-rule { height: 40px; }
.tile-band { height: 76px; margin-bottom: 2rem; }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem var(--edge);
  position: sticky; top: 0; z-index: 10;
  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-size: 1.15rem; }
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.4rem 1rem; border-radius: 999px;
  transition: background .2s ease, transform .1s ease;
}
.topbar-cta:hover { background: var(--accent-hi); color: var(--accent-ink); }
.topbar-cta:active { transform: translateY(1px); }

/* -- hero ------------------------------------------------------------------ */
.hero {
  padding: clamp(2.75rem, 8vh, 4.5rem) var(--edge) 2.5rem;
  max-width: var(--measure); margin: 0 auto; text-align: center;
}
.hero-kicker {
  color: var(--accent); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.13em; margin-bottom: 0.9rem;
}
.hero-title { font-size: clamp(2.6rem, 12vw, 4.4rem); margin-bottom: 0.9rem; }
.hero-sub { color: var(--muted); max-width: 40ch; margin: 0 auto 1.6rem; }
.hero-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; color: var(--text);
  border: 1.5px solid var(--text); border-radius: 999px;
  padding: 0.6rem 1.4rem; font-weight: 600; font-size: 0.98rem;
  transition: background .2s ease, color .2s ease, transform .1s ease, border-color .2s ease;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--accent-ink); }

/* -- hero photo (pannello incorniciato, non full-bleed) -------------------- */
.hero-photo {
  max-width: 60rem; margin: 2rem auto 0; padding: 0 var(--edge);
}
.hero-photo img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--surface);
  outline: 1.5px solid var(--line);
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--navy) 60%, transparent);
}
.hero-photo figcaption {
  margin-top: 0.7rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
}

/* -- sezioni --------------------------------------------------------------- */
.section { padding: 3rem var(--edge); max-width: var(--measure); margin: 0 auto; }
.section.band {
  max-width: none; background: var(--band);
  border-block: 1px solid var(--line);
}
.section.band > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }

.eyebrow {
  color: var(--accent); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.13em; margin-bottom: 0.5rem;
}
.lead { color: var(--muted); max-width: 56ch; margin-bottom: 1.75rem; }

/* -- statement ------------------------------------------------------------- */
.statement p { max-width: 58ch; }
.rating {
  margin-top: 1.1rem; font-weight: 500; color: var(--text);
  font-size: 0.98rem;
}
.rating .stars { color: var(--roma); }
.rating-sep { color: var(--line); margin: 0 0.15rem; }

.chips {
  list-style: none; padding: 0; margin-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.chips li {
  font-size: 0.85rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  padding: 0.32rem 0.85rem; border-radius: 999px;
}

/* -- gourmet (device firma) ------------------------------------------------ */
.gourmet {
  list-style: none; padding: 0; margin: 0 auto 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
}
.gourmet li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.9rem;
  padding: 1.1rem 1.15rem;
  border-top: 1px solid var(--line);
}
.gourmet li:first-child { border-top: none; }
.g-num {
  font-family: var(--font-display); color: var(--accent);
  font-size: 1.05rem; line-height: 1.5; letter-spacing: 0.02em;
}
.g-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 0.75rem; margin-bottom: 0.25rem;
}
.g-head h3 { color: var(--text); }
.g-price {
  color: var(--accent); font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums; text-align: right;
}
.g-flag {
  display: block; font-family: var(--font-body); font-weight: 500;
  color: var(--muted); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.g-body p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.menu-note { color: var(--muted); font-size: 0.88rem; }

/* -- showcase 2-up --------------------------------------------------------- */
.showcase-grid { display: grid; gap: 1.25rem; }
.showcase figure { margin: 0; }
.showcase img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--surface);
  outline: 1.5px solid var(--line);
}
.showcase figcaption {
  margin-top: 0.55rem; color: var(--muted); font-size: 0.88rem;
}

/* -- feature split (UNICO img+testo) --------------------------------------- */
.split-grid { display: grid; gap: 1.5rem; }
.split-photo { margin: 0; }
.split-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--surface);
  outline: 1.5px solid var(--line);
}
.split-text p { color: var(--muted); max-width: 52ch; }
.split-text p + p { margin-top: 0.8rem; }

/* -- recensioni (blocco scuro) --------------------------------------------- */
.reviews {
  background: var(--navy); color: var(--bg);
  padding: 3.25rem var(--edge);
  text-align: center;
}
.reviews blockquote { max-width: 44ch; margin: 0 auto; }
.reviews blockquote p {
  font-family: var(--font-display); font-size: clamp(1.2rem, 4.4vw, 1.55rem);
  line-height: 1.4;
}
.reviews cite {
  display: block; margin-top: 1rem; font-style: normal;
  color: color-mix(in srgb, var(--bg) 72%, transparent); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.reviews-agg { margin-top: 1.6rem; font-weight: 500; font-size: 0.98rem; }
.stars-light { color: #f0b429; }

/* -- orari & dove ---------------------------------------------------------- */
.info-grid { display: grid; gap: 2rem; margin-top: 1.25rem; }
.hours { list-style: none; padding: 0; margin-top: 0.5rem; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--line);
  border-radius: 4px;
}
.hours li:last-child { border-bottom: none; }
.hours .day { font-weight: 500; }
.hours .time { color: var(--muted); font-variant-numeric: tabular-nums; }
.hours li.today {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.hours li.today .day { color: var(--accent-hi); font-weight: 600; }
.hours li.today .time { color: var(--accent-hi); }
.hours li.today::after {
  content: "oggi";
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.1rem 0.5rem; border-radius: 999px; font-weight: 600;
}
.hours li.today .time { margin-left: auto; }
.contact-lines { margin: 0.5rem 0 1.4rem; line-height: 1.75; }

/* -- footer ---------------------------------------------------------------- */
.footer { text-align: center; color: var(--muted); font-size: 0.9rem; padding-bottom: 2.5rem; }
.footer p { padding: 0 var(--edge); }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--text); margin-bottom: 0.4rem; }
.footer a { color: var(--accent); }
.copyright { margin-top: 0.6rem; }
.demo-note { margin-top: 0.7rem; opacity: 0.65; font-size: 0.8rem; }

/* -- motion (dial 3): ingresso hero, gated -------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { opacity: 0; transform: translateY(10px); animation: rise .6s cubic-bezier(.16,1,.3,1) forwards; }
  .hero-kicker  { animation-delay: .04s; }
  .hero-title   { animation-delay: .12s; }
  .hero-sub     { animation-delay: .22s; }
  .hero-actions { animation-delay: .3s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* -- desktop --------------------------------------------------------------- */
@media (min-width: 720px) {
  .section { padding: 4rem var(--edge); }
  .showcase-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .split-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 2.5rem; }
  .split-photo { order: 2; }
  .split-text { order: 1; }
  .info-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
  .hero-photo img { aspect-ratio: 16 / 9; }
}
