/* ==========================================================================
   PINSERIA Due Fratelli — Pianoro
   Direction: flour-paper canvas, wood-fired tomato-brick accent, Bricolage
   Grotesque wordmark + Mulish body. Full-bleed fire-photo hero. One accent.
   Mobile-first (390px), CSS-only motion.
   ========================================================================== */

:root {
  --paper:      #f5ecda;   /* warm flour-paper canvas */
  --paper-2:    #f2e3c0;   /* golden crust band */
  --ink:        #2b1d12;   /* burnt-cornicione near-black */
  --ink-soft:   #6b5844;   /* warm brown secondary */
  --line:       #e0d2b6;   /* hairline on paper */
  --accent:     #c23a20;   /* tomato / oven-brick — the ONE accent */
  --accent-ink: #8f2a13;   /* darker accent for hover/press */
  --on-accent:  #fff7ef;   /* text on accent */

  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Mulish", -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --measure: 60ch;
  --wrap: 1080px;
}

* { 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.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
}
h2 { font-size: clamp(1.9rem, 6vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 0.7rem 1.5rem; border-radius: 999px;
  border: 2px solid var(--ink); color: var(--ink); background: transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-lg { font-size: 1.15rem; padding: 0.95rem 2.2rem; }
/* ghost over the hero photo — white stroke + scrim-backed text for AA */
.btn-ghost {
  color: #fff; border-color: rgba(255,255,255,.75);
  background: rgba(20,12,6,.28);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.btn-ghost:hover { background: rgba(20,12,6,.5); border-color: #fff; }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1.25rem;
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.topbar-cta {
  text-decoration: none; font-family: var(--font-display); font-weight: 700;
  font-size: 0.95rem;
  color: var(--on-accent); background: var(--accent);
  padding: 0.45rem 1.1rem; border-radius: 999px;
  transition: background-color .15s ease;
}
.topbar-cta:hover { background: var(--accent-ink); }

/* -- hero (full-bleed photo) ------------------------------------------------ */
.hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(24,13,5,.92) 0%, rgba(24,13,5,.72) 26%,
    rgba(24,13,5,.28) 55%, rgba(24,13,5,.12) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem clamp(2.2rem, 6vh, 3.5rem);
  color: #fff;
}
.hero-kicker {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: #f6d9a8; margin-bottom: 0.9rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(3rem, 13vw, 6rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-sub {
  max-width: 34ch; margin-bottom: 1.6rem;
  font-size: 1.1rem; color: rgba(255,255,255,.92);
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* -- statement / differenziatore (golden band) ----------------------------- */
.statement {
  background: var(--paper-2);
  padding: clamp(3.5rem, 9vw, 6rem) 1.25rem;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.statement-inner { max-width: var(--wrap); margin: 0 auto; }
.statement h2 { max-width: 16ch; margin-bottom: 1.1rem; }
.statement p { max-width: 54ch; font-size: 1.15rem; color: var(--ink); }
.qualities {
  list-style: none; padding: 0; margin: 2.4rem 0 0;
  display: grid; gap: 1.5rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.8rem;
}
.qualities li { display: flex; flex-direction: column; }
.qualities strong {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  letter-spacing: -0.02em; color: var(--accent); line-height: 1.1;
}
.qualities span { color: var(--ink-soft); font-size: 0.98rem; }
@media (min-width: 720px) {
  .qualities { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* -- menu / le nostre pinse ------------------------------------------------- */
.menu { max-width: var(--wrap); margin: 0 auto; padding: clamp(3.5rem, 9vw, 6rem) 1.25rem; }
.menu-head { margin-bottom: 2rem; }
.menu-head h2 { margin-bottom: 0.6rem; }
.menu-head p { color: var(--ink-soft); max-width: 46ch; }
.pinse-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .pinse-grid { grid-template-columns: repeat(3, 1fr); } }
.pinsa-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pinsa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(43,29,18,.14);
}
.pinsa-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; filter: saturate(1.06) contrast(1.02); }
.pinsa-body { padding: 1.1rem 1.2rem 1.4rem; }
.pinsa-body h3 { margin-bottom: 0.4rem; }
.pinsa-body p { color: var(--ink-soft); font-size: 0.98rem; }
.menu-note {
  margin-top: 1.8rem; color: var(--ink-soft); font-size: 0.95rem;
  max-width: 52ch;
}

/* -- order band (CTA) ------------------------------------------------------- */
.order {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.5rem, 9vw, 6rem) 1.25rem;
  text-align: center;
}
.order-inner { max-width: 46ch; margin: 0 auto; }
.order h2 { color: var(--paper); margin-bottom: 1rem; }
.order p { color: color-mix(in srgb, var(--paper) 82%, transparent); margin-bottom: 2rem; }
.order .btn-primary { border-color: var(--accent); }
.order-phone {
  margin-top: 1.1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  letter-spacing: 0.01em; color: #f6d9a8;
}

/* -- info / orari & dove ---------------------------------------------------- */
.info { max-width: var(--wrap); margin: 0 auto; padding: clamp(3.5rem, 9vw, 6rem) 1.25rem; }
.info-grid { display: grid; gap: 2.8rem; }
@media (min-width: 720px) { .info-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.info h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin-bottom: 1.2rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 30rem; }
.hours td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td:first-child { font-weight: 700; padding-right: 1.5rem; white-space: nowrap; }
.hours td:last-child { color: var(--ink-soft); font-variant-numeric: tabular-nums; text-align: right; }
.hours tr:last-child td { border-bottom: none; }
.contact-lines { margin-bottom: 1.6rem; font-size: 1.1rem; line-height: 1.9; }
.contact-lines a { font-weight: 700; }

/* -- footer ----------------------------------------------------------------- */
.footer {
  padding: 2.6rem 1.25rem 3rem; text-align: center;
  color: var(--ink-soft); font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.footer-brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  color: var(--ink); letter-spacing: -0.02em; margin-bottom: 0.4rem;
}
.footer p { margin: 0.15rem 0; }
.footer a { font-weight: 700; }
.demo-note { margin-top: 0.9rem; opacity: 0.72; }

/* -- motion: subtle hero rise, respect reduced-motion ----------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: rise .7s cubic-bezier(.16,1,.3,1) both; }
  .hero-kicker { animation-delay: .05s; }
  .hero h1 { animation-delay: .12s; }
  .hero-sub { animation-delay: .2s; }
  .hero-actions { animation-delay: .28s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
