/* ==========================================================================
   Dal Fornaio Roberto (Tattini Roberto) — bottega del pane e pasta fresca
   Direction: "cotto poster" — terracotta color-block against cool stone paper,
   slab-serif display (Zilla Slab) + humanist body (Karla), radius 0, low motion.
   Terracotta drawn from the shop's own terracotta-tile floor + awning; paired
   with a COOL neutral (terracotta + slate rotation), not warm cream + brass.
   Mobile-first: designed at 390px.
   ========================================================================== */

:root {
  --paper: #e9ebe7;         /* cool stone canvas */
  --paper-2: #e1e4df;       /* faint alternating tint */
  --ink: #1c1e1d;           /* cool near-black */
  --muted: #5c605b;         /* cool grey text */
  --terra: #a5461d;         /* the one accent: cotto — hero, fills, footer */
  --ivory: #f6efe2;         /* warm ivory, used only ON terracotta blocks */
  --line: rgba(28, 30, 29, 0.16);
  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Karla", -apple-system, "Segoe UI", sans-serif;
  --radius: 0;
  --measure: 42rem;
  --pad-x: 1.5rem;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.005em;
  font-weight: 700;
}
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.2rem; font-weight: 600; }

/* Mobile-image iron rule safety net (figures). Overridden per-block below. */
@media (max-width: 640px) {
  figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
}

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem var(--pad-x);
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  color: var(--ivory); background: var(--terra);
  padding: 0.42rem 1rem; border-radius: var(--radius);
}

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 600; font-size: 0.98rem;
  padding: 0.72rem 1.4rem;
  border: 1.5px solid var(--terra); border-radius: var(--radius);
  transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}
.btn-primary { background: var(--terra); color: var(--ivory); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(246, 239, 226, 0.65); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost:hover { background: rgba(246, 239, 226, 0.12); }

/* -- hero — terracotta color-block + bread photo split -------------------- */
.hero {
  background: var(--terra);
  color: var(--ivory);
  display: flex; flex-direction: column;
}
.hero-inner {
  max-width: 30ch; margin: 0;
  padding: clamp(3.5rem, 11vh, 6rem) var(--pad-x) clamp(2.25rem, 6vh, 3rem);
}
/* mobile: bread sits as a landscape band under the poster text (never towers) */
.hero-media img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 42%;
}

@media (min-width: 820px) {
  .hero { flex-direction: row; align-items: stretch; min-height: 80vh; }
  .hero-inner {
    flex: 1 1 48%; align-self: center; max-width: 30rem;
    padding: clamp(3rem, 7vh, 5.5rem) clamp(2rem, 4.5vw, 4.5rem);
  }
  .hero-media { flex: 1 1 52%; }
  .hero-media img { width: 100%; height: 100%; aspect-ratio: auto; object-position: 50% 45%; }
}
.hero-kicker {
  font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ivory); opacity: 0.82;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.9rem, 12vw, 5.2rem);
  line-height: 0.95; letter-spacing: -0.015em;
  margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  max-width: 34ch; margin-bottom: 2rem; opacity: 0.95;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
/* on the terracotta hero, the primary CTA inverts to an ivory fill so it reads */
.hero .btn-primary { background: var(--ivory); color: var(--terra); border-color: var(--ivory); }
.hero .btn-primary:hover { background: #fff; }

/* -- sections -------------------------------------------------------------- */
.section { padding: clamp(3rem, 8vh, 5rem) var(--pad-x); }
.section > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }

/* -- cosa trovi (editorial list, hairline rows) ---------------------------- */
.prodotti h2 { margin-bottom: 1.6rem; }
.prod-list { list-style: none; padding: 0; }
.prod-list li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.prod-list li:last-child { border-bottom: 1px solid var(--line); }
.prod-list h3 { margin-bottom: 0.3rem; }
.prod-list p { color: var(--muted); }
.prod-note { margin-top: 1.4rem; color: var(--muted); font-size: 0.95rem; }

@media (min-width: 720px) {
  .prod-list li {
    display: grid; grid-template-columns: 1fr 2fr;
    gap: 2.5rem; align-items: start;
  }
  .prod-list h3 { margin-bottom: 0; }
}

/* -- firma — pasta fresca (terracotta statement band) ---------------------- */
.signature {
  background: var(--terra); color: var(--ivory);
  padding: clamp(3.5rem, 10vh, 6rem) var(--pad-x);
}
.signature-eyebrow {
  font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  opacity: 0.82; margin-bottom: 1rem;
}
.signature-line {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 4.2vw, 2.5rem);
  line-height: 1.18; letter-spacing: -0.01em;
  max-width: 26ch;
}

/* -- la bottega (single real photo + where we are) ------------------------- */
.bottega-grid { display: grid; gap: 1.75rem; }
.bottega-img { margin: 0; }
.bottega-img img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%;
}
.bottega-img figcaption {
  margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted);
}
.bottega-text h2 { margin-bottom: 0.7rem; }
.bottega-text p { color: var(--muted); }
.contact-lines { margin: 1.1rem 0 1.4rem; color: var(--ink) !important; }
.contact-lines a { font-weight: 600; }

@media (min-width: 800px) {
  .bottega-grid {
    grid-template-columns: 0.85fr 1fr;
    gap: 3rem; align-items: center;
  }
  /* on desktop the facade may stand as a portrait — mobile default stays landscape */
  .bottega-img img { aspect-ratio: 3 / 4; max-height: 30rem; }
}

/* -- orari ----------------------------------------------------------------- */
.orari { background: var(--paper-2); }
.orari h2 { margin-bottom: 1.2rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 34rem; }
.hours td { padding: 0.6rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.hours tr:last-child td { border-bottom: 1px solid var(--line); }
.hours td:first-child { font-weight: 600; width: 8rem; }
.hours td:last-child { color: var(--muted); text-align: right; }
.hsep { display: inline-block; margin: 0 0.5rem; opacity: 0.55; }
.hours .closed { font-style: italic; }

/* -- footer — terracotta base, bookends the hero -------------------------- */
.footer {
  background: var(--terra); color: var(--ivory);
  padding: 2.6rem var(--pad-x) 3rem; text-align: center;
  font-size: 0.92rem;
}
.footer p { opacity: 0.9; }
.footer-brand { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; opacity: 1; margin-bottom: 0.35rem; }
.footer a { color: var(--ivory); }
.demo-note { margin-top: 1rem; opacity: 0.7; font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
