/* ==========================================================================
   DA SALVATORE — Rosticceria · Focacceria (Barcellona Pozzo di Gotto)
   Direction: "l'insegna" — their red shop-lettering on the warm golden-ochre
   glitter wall, made into a page. Single accent = cherry-red (their letters +
   SALVATORE ribbon). Structural signature = the "al taglio" square cut: hard
   0px corners + a square-tile focaccia grid. Warm honey-gold canvas.
   Type: Bevan (painted-sign slab, the "insegna" voice) + Cabin (warm humanist).
   Mobile-first (390px). Motion: CSS only, reveal gated on reduced-motion.
   ========================================================================== */

:root {
  --bg:        #fbf1d6;   /* honey-cream canvas (their gold wall, calmed) */
  --band:      #f6e3a8;   /* amber-gold alt band */
  --surface:   #fffaf0;   /* raised tile */
  --line:      #e6d3a0;   /* hairline */
  --ink:       #2a1a12;   /* espresso near-black (the wood door) */
  --muted:     #7a5c46;   /* warm brown */
  --accent:    #b01227;   /* cherry-red — the FOCACCERIA letters + logo */
  --accent-deep:#8c0e1f;  /* darker red: small text on light, hover */
  --accent-ink:#fff8ea;   /* cream text on red */
  --red-field: #a4111f;   /* reviews color-block */

  --font-display: "Bevan", Georgia, serif;
  --font-body: "Cabin", -apple-system, "Segoe UI", sans-serif;
  --measure: 64ch;
  --edge: 1.25rem;
}

* { 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.6;
  -webkit-font-smoothing: antialiased;
}

/* height:auto is required: without it the HTML height attribute forces the full
   intrinsic height and `aspect-ratio` is ignored (it only applies when a
   dimension is auto), which makes portrait/large sources tower on mobile. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 6vw, 2.6rem); letter-spacing: 0.005em; }
h3 { font-size: 1.1rem; letter-spacing: 0.01em; }

.wrap { max-width: var(--measure); margin: 0 auto; padding-inline: var(--edge); }

/* -- reveal-on-scroll (gated) --------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* -- eyebrow -------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.72rem; color: var(--accent);
}

/* -- top bar -------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 0.7rem var(--edge);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand {
  font-family: var(--font-display); font-size: 1.15rem;
  color: var(--accent); letter-spacing: 0.01em; text-decoration: none;
}
.topbar-cta {
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.5rem 1rem; white-space: nowrap;
}

/* -- buttons -------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  font-size: 0.98rem; padding: 0.7rem 1.35rem; border: 2px solid var(--accent);
  color: var(--accent); background: transparent; transition: transform .12s ease, background .2s ease, color .2s ease;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* -- hero (asymmetric split on the gold field) ---------------------------- */
.hero { padding: clamp(2.5rem, 8vh, 4rem) var(--edge) clamp(2.5rem, 7vh, 3.5rem); }
.hero-inner { max-width: 1080px; margin: 0 auto; display: grid; gap: clamp(1.75rem, 5vw, 3rem); }
.hero-kicker {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; color: var(--accent); margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(3rem, 15vw, 5.5rem); color: var(--accent);
  line-height: 0.92; margin-bottom: 1.1rem;
  text-shadow: 2px 2px 0 color-mix(in srgb, var(--ink) 14%, transparent);
}
.hero h1 .small { display: block; font-size: 0.42em; color: var(--ink); letter-spacing: 0.02em; margin-bottom: 0.15em; }
.hero-sub { color: var(--ink); font-size: 1.1rem; max-width: 34ch; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border: 6px solid var(--accent); box-shadow: 10px 10px 0 var(--line);
}
.hero-figure figcaption {
  position: absolute; left: 0; bottom: 0.9rem; transform: translateX(-0.6rem);
  background: var(--ink); color: var(--bg); font-weight: 600;
  font-size: 0.82rem; padding: 0.35rem 0.8rem;
}

/* -- generic section ------------------------------------------------------ */
.section { padding: clamp(2.75rem, 7vw, 4.25rem) 0; }
.hero, .section, [id] { scroll-margin-top: 72px; }
.section-head { margin-bottom: 1.5rem; }
.section-head h2 { margin-top: 0.35rem; }
.lead { font-size: 1.15rem; color: var(--ink); max-width: 50ch; }

/* intro statement + rating + chips */
.intro { text-align: left; }
.rating { display: inline-flex; align-items: baseline; gap: 0.5rem; margin: 1.1rem 0 1.25rem; }
.rating .stars { color: var(--accent); font-size: 1.05rem; letter-spacing: 0.1em; }
.rating .score { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.rating .count { color: var(--muted); font-size: 0.92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.chip {
  font-size: 0.86rem; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  padding: 0.35rem 0.75rem;
}

/* -- focaccia: al-taglio square grid -------------------------------------- */
.focaccia { background: var(--band); }
.focaccia .price-tag {
  display: inline-block; margin-top: 0.4rem;
  font-family: var(--font-display); color: var(--accent);
  font-size: 1.25rem; background: var(--bg); padding: 0.2rem 0.7rem;
  border: 2px solid var(--accent);
}
.taglio-grid {
  display: grid; gap: 0.75rem; margin-top: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
.taglio {
  background: var(--surface); border: 1px solid var(--line);
  padding: 0.9rem 0.95rem; display: flex; flex-direction: column; gap: 0.3rem;
  border-top: 4px solid var(--accent);
}
.taglio h3 { color: var(--ink); font-size: 1rem; }
.taglio p { font-size: 0.85rem; color: var(--muted); line-height: 1.45; margin: 0; }

/* -- full-bleed photo band ------------------------------------------------ */
.showcase { position: relative; }
.showcase img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.showcase figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: linear-gradient(to top, rgba(30,16,10,0.82), rgba(30,16,10,0));
  color: var(--bg); padding: 2.5rem var(--edge) 1rem;
  font-family: var(--font-display); font-size: 1.15rem;
}

/* -- rustici: two-column dotted list -------------------------------------- */
.rustici .menu-note { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }
.menu-cols { display: grid; gap: 1.75rem; margin-top: 1.5rem; }
.menu-block h3 {
  color: var(--accent); font-size: 1.2rem; padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent); margin-bottom: 0.75rem;
}
.menu-block .sub { color: var(--muted); font-size: 0.82rem; font-family: var(--font-body); font-weight: 600; }
.menu-list { list-style: none; padding: 0; }
.menu-list li { padding: 0.55rem 0; border-bottom: 1px dotted var(--line); }
.menu-list li:last-child { border-bottom: 0; }
.menu-line { display: flex; align-items: baseline; gap: 0.5rem; }
.menu-line .dish { font-weight: 600; }
.menu-line .dots { flex: 1; border-bottom: 1px dotted var(--muted); opacity: 0.45; transform: translateY(-3px); }
.menu-line .price { font-family: var(--font-display); color: var(--accent); font-size: 1rem; white-space: nowrap; }
.menu-desc { display: block; font-size: 0.83rem; color: var(--muted); margin-top: 0.15rem; }
.allergen { margin-top: 1.5rem; font-size: 0.85rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 0.85rem; }

/* -- feature split (pitoni) ----------------------------------------------- */
.feature { display: grid; gap: 1.5rem; }
.feature figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.feature .body h2 { margin-bottom: 0.75rem; }
.feature .body p { margin-bottom: 0.85rem; }

/* -- reviews (red color-block) -------------------------------------------- */
.reviews { background: var(--red-field); color: var(--accent-ink); }
.reviews .eyebrow { color: color-mix(in srgb, var(--accent-ink) 80%, transparent); }
.reviews h2 { color: var(--accent-ink); }
.quotes { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.quote { border-left: 3px solid color-mix(in srgb, var(--accent-ink) 55%, transparent); padding-left: 1rem; }
.quote p { font-size: 1.12rem; line-height: 1.5; }
.quote cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: 0.86rem; opacity: 0.82; }

/* -- orari & dove --------------------------------------------------------- */
.info-grid { display: grid; gap: 2rem; margin-top: 1.5rem; }
.hours { width: 100%; border-collapse: collapse; max-width: 24rem; }
.hours th, .hours td { text-align: left; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; font-family: var(--font-body); }
.hours td { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th { color: var(--accent); }
.hours tr.today td { color: var(--accent-deep); font-weight: 700; }
.hours tr.closed td { color: var(--muted); }
.today-flag { display: inline-block; margin-left: 0.4rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); background: var(--accent); padding: 0.05rem 0.4rem; vertical-align: middle; }
.contact p { margin-bottom: 0.9rem; }
.contact a { font-weight: 600; }
.contact .addr { color: var(--ink); font-weight: 400; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }

/* -- footer --------------------------------------------------------------- */
.footer { background: var(--band); border-top: 1px solid var(--line); padding: 2.5rem var(--edge) 3rem; text-align: center; }
.footer .brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); display: block; margin-bottom: 0.5rem; }
.footer .meta { color: var(--muted); font-size: 0.9rem; }
.demo-note { margin-top: 0.8rem; color: var(--muted); font-size: 0.82rem; opacity: 0.85; }

/* ==========================================================================
   DESKTOP
   ========================================================================== */
@media (min-width: 720px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .hero-figure img { aspect-ratio: 4 / 5; }
  .taglio-grid { grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
  .menu-cols { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .info-grid { grid-template-columns: 1.1fr 0.9fr; }
  .feature { grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: 2.5rem; }
  .feature figure img { aspect-ratio: 3 / 4; }   /* portrait restored on desktop */
  .showcase img { aspect-ratio: 21 / 9; max-height: 62vh; }
  .quotes { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (min-width: 1040px) {
  .taglio-grid { grid-template-columns: repeat(4, 1fr); }
}
