/* ==========================================================================
   PANIFICIO MASSARENTI — Bologna
   Direzione: minimalismo editoriale / bottega tradizionale.
   Terracotta bolognese (dall'insegna reale) come UNICO accento-inchiostro,
   su crema-farina. Vollkorn (display, "pane integrale") + Work Sans (corpo).
   Radius 0 ovunque. Mobile-first (390px).
   ========================================================================== */

:root {
  --bg:         #f4ecdf;   /* intonaco / farina */
  --surface:    #fbf6ec;   /* superfici chiare */
  --band:       #eee3d2;   /* banda alternata */
  --line:       #e3d7c3;   /* filetti 1px */
  --text:       #2a2018;   /* inchiostro espresso caldo */
  --muted:      #6f5f4d;   /* secondario (AA su crema) */
  --accent:     #a23c28;   /* terracotta-mattone (l'insegna) */
  --accent-dark:#82301f;   /* hover / campo footer */
  --accent-ink: #f7efe2;   /* crema su terracotta */
  --font-display: "Vollkorn", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --radius: 0;
  --measure: 64ch;
  --pad: 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); }

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

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none;
  color: var(--text); background: transparent;
  border: 1px solid var(--accent);
  padding: 0.7rem 1.4rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem var(--pad);
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--accent); text-decoration: none; letter-spacing: 0.02em;
  text-transform: uppercase; margin-right: auto;
}
.nav-links { display: none; gap: 1.6rem; }
.nav-links a {
  color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.5rem 1.1rem; border-radius: var(--radius);
  transition: background-color .18s ease;
}
.topbar-cta:hover { background: var(--accent-dark); }

/* -- hero (tipografico-insegna) -------------------------------------------- */
.hero {
  background: var(--bg);
  padding: clamp(3.25rem, 11vh, 5.5rem) var(--pad) clamp(3rem, 9vh, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 30ch; margin: 0 auto; text-align: center; }
.hero-kicker {
  color: var(--muted); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.7rem, 12vw, 4.6rem);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; line-height: 0.98;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.hero-sub {
  color: var(--text); max-width: 34ch; margin: 0 auto 1.9rem;
  font-size: 1.06rem;
}
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* -- full-bleed photo band ------------------------------------------------- */
.band { width: 100%; }
.band img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* -- generic section ------------------------------------------------------- */
.section { padding: clamp(2.75rem, 7vw, 4.25rem) var(--pad); }
/* One uniform content column, group-centered; contents left-align to its edge. */
.wrap { width: 100%; max-width: 62rem; margin-inline: auto; }

/* La bottega (prosa + fatti) */
.prose p { color: var(--text); max-width: 58ch; font-size: 1.08rem; }
.facts {
  list-style: none; padding: 0; margin: 2rem 0 0; max-width: 58ch;
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.facts li {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.95rem 0; border-bottom: 1px solid var(--line);
}
.fact-k {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--accent);
}
.fact-v { color: var(--muted); font-size: 0.98rem; }

/* Cosa sforniamo (categorie, senza prezzi) */
.forno { background: var(--band); }
.cats { display: grid; gap: 0; margin-top: 1.75rem; }
.cat { padding: 1.5rem 0; border-top: 2px solid var(--accent); }
.cat:last-child { border-bottom: 2px solid var(--accent); }
.cat h3 { color: var(--text); font-size: 1.35rem; }
.cat p { color: var(--muted); max-width: 46ch; }
.forno-note { color: var(--muted); font-size: 0.92rem; margin-top: 1.6rem; }

/* Il banco (split asimmetrico) */
.feature-grid { display: grid; gap: 1.6rem; }
.feature-text { max-width: 46ch; }
.feature-text p { color: var(--text); font-size: 1.08rem; }
.feature-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Dal nostro banco (2-up) */
.vetrina { background: var(--surface); }
.two-up { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.two-up figure { margin: 0; }
.two-up img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Orari & contatti */
.info-grid { display: grid; gap: 2.25rem; margin-top: 1.25rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 30rem; }
.hours td { padding: 0.42rem 1rem 0.42rem 0; color: var(--muted); border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hours td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }
.hours tr:last-child td { border-bottom: 0; }
.contact-lines { margin-bottom: 1.4rem; line-height: 1.7; }
.contact-lines a { font-weight: 600; }

/* -- footer (campo terracotta) --------------------------------------------- */
.footer {
  background: var(--accent-dark);
  color: var(--accent-ink);
  padding: 2.75rem var(--pad) 3rem; text-align: center;
  font-size: 0.92rem;
}
.footer p { opacity: 0.92; }
.footer-brand {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 1.15rem; opacity: 1; margin-bottom: 0.35rem;
}
.footer a { color: var(--accent-ink); }
.demo-note { margin-top: 0.7rem; opacity: 0.72; font-size: 0.82rem; }

/* ==========================================================================
   DESKTOP
   ========================================================================== */
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .band img { aspect-ratio: 24 / 7; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
  .cat { border-top: 2px solid var(--accent); }
  .cat:last-child { border-bottom: 0; }

  .feature-grid {
    grid-template-columns: 1fr 1.15fr;
    align-items: center; gap: 3rem;
  }
  .feature-photo img { aspect-ratio: 5 / 4; }

  /* 2-up: si può tornare portrait sul desktop (gallery a due colonne) */
  .two-up { grid-template-columns: 1fr 1fr; gap: 1.1rem; align-items: start; }
  .two-up img { aspect-ratio: 3 / 4; }
  .two-up figure:first-child { margin-top: 2.2rem; }

  .info-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (min-width: 980px) {
  .hero h1 { font-size: 5.4rem; }
  .hero-inner { max-width: 34ch; }
}

/* ==========================================================================
   MOTION — solo CSS, un fade-up d'ingresso dell'hero (MOTION 2)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .7s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .hero-kicker  { animation-delay: .04s; }
  .hero h1      { animation-delay: .10s; }
  .hero-sub     { animation-delay: .18s; }
  .hero-actions { animation-delay: .26s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
