/* ==========================================================================
   Voglia di Pizza by Cri — pizzeria d'asporto, Pian di Macina (Pianoro)
   Direction: stone-and-oven. Warm grey sandstone canvas (their facade),
   espresso ink (the brown awning), ONE wood-fire orange accent (the sign).
   Bitter (slab display) + Karla (body). Left-aligned editorial masthead.
   Mobile-first: designed at 390px.
   ========================================================================== */

:root {
  --stone:      #e9e5dd;   /* canvas — warm grey sandstone */
  --stone-2:    #f4f1ea;   /* lighter stone: panels, cards, alt sections */
  --stone-line: #d7d1c5;   /* hairlines / borders */
  --espresso:   #2a1c12;   /* ink / body text (brown awning) */
  --muted:      #6f6252;   /* secondary text (warm taupe) */
  --accent:     #d2662f;   /* THE accent: wood-fire orange (fill) */
  --accent-deep:#a83716;   /* same hue, deeper — for links/inline on light */
  --accent-ink: #2a1c12;   /* espresso text on the orange accent (4.5:1) */
  --cream:      #f7f2e9;   /* text on dark/accent bands */

  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Karla", -apple-system, "Segoe UI", system-ui, sans-serif;

  --r: 6px;                /* radius: panels/cards/images (buttons are pill) */
  --pad: 1.25rem;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--stone);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-deep); text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--espresso);
}
h2 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); font-weight: 800; margin-bottom: 0.6rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; }

strong { font-weight: 700; }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 0.7rem var(--pad);
  min-height: 60px;
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--stone) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone-line);
}
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: -0.02em; color: var(--espresso); text-decoration: none;
  line-height: 1.05;
}
.brand em { font-style: italic; font-weight: 600; color: var(--accent-deep); }
.topbar-cta {
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.45rem 1.05rem; border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  font-size: 1rem; line-height: 1;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--espresso); border-color: var(--espresso); }
@media (hover: hover) {
  .topbar-cta:hover, .btn-primary:hover { background: var(--accent-deep); color: var(--cream); transform: translateY(-1px); }
  .btn-ghost:hover { background: var(--espresso); color: var(--stone); transform: translateY(-1px); }
}
.btn:active { transform: translateY(1px); }

/* -- shared sections -------------------------------------------------------- */
.section { padding: 3.25rem var(--pad); max-width: 72rem; margin: 0 auto; }
.eyebrow {
  font-family: var(--font-body);
  color: var(--accent-deep); font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem;
}

/* -- hero: left-aligned editorial masthead --------------------------------- */
.hero {
  padding: 2.5rem var(--pad) 3rem;
  max-width: 72rem; margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.9rem, 15vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}
.hero h1 .sig {
  display: inline-block;
  font-weight: 600; font-style: italic;
  font-size: 0.42em; letter-spacing: -0.01em;
  color: var(--accent-deep);
  transform: translateY(-0.15em);
  margin-left: 0.15em;
}
.hero-sub {
  color: var(--muted); font-size: 1.1rem;
  max-width: 40ch; margin-bottom: 1.75rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@media (min-width: 720px) {
  .hero { padding-top: 4rem; padding-bottom: 4.5rem; }
  .hero h1 { font-size: clamp(4.5rem, 9vw, 6.5rem); }
  .hero-sub { font-size: 1.2rem; }
}

/* -- storefront band: full-bleed facade ------------------------------------ */
.storefront { position: relative; background: var(--espresso); }
.storefront img {
  width: 100%; height: clamp(240px, 52vw, 460px); object-fit: cover;
  object-position: center 38%;
}
.storefront-card {
  background: var(--espresso); color: var(--cream);
  padding: 1.6rem var(--pad) 2rem;
}
.storefront-card p { max-width: 52ch; color: color-mix(in srgb, var(--cream) 86%, transparent); }
.storefront-label {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--cream) !important; margin-bottom: 0.35rem;
}
@media (min-width: 860px) {
  .storefront { display: grid; grid-template-columns: 1.5fr 1fr; align-items: stretch; }
  .storefront img { height: 100%; min-height: 360px; }
  .storefront-card { display: flex; flex-direction: column; justify-content: center; padding: 2.5rem; }
}

/* -- offerings: three concrete cards --------------------------------------- */
.offerings { padding-top: 3.5rem; }
.cards { display: grid; gap: 1rem; margin-top: 1.5rem; }
.card {
  background: var(--stone-2); border: 1px solid var(--stone-line);
  border-radius: var(--r); padding: 1.4rem 1.4rem 1.5rem;
}
.card h3 { color: var(--espresso); }
.card p { color: var(--muted); }
.card-fire {
  background: color-mix(in srgb, var(--accent) 14%, var(--stone-2));
  border-color: color-mix(in srgb, var(--accent) 38%, var(--stone-line));
}
.card-fire h3 { color: var(--accent-deep); font-size: 1.55rem; }
.card-fire p { color: color-mix(in srgb, var(--espresso) 82%, transparent); font-size: 1.08rem; }
/* asymmetric: wood-oven is the feature (tall, left), the two facts stack right */
@media (min-width: 720px) {
  .cards { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .card-fire { grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: center; padding: 2rem; }
}

/* -- promo + delivery: accent band ----------------------------------------- */
.promo { background: var(--accent); color: var(--accent-ink); }
.promo-inner {
  max-width: 72rem; margin: 0 auto;
  padding: 2.75rem var(--pad);
  display: grid; gap: 1.75rem;
}
.promo-big {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 6vw, 2.3rem); line-height: 1.1;
  letter-spacing: -0.02em; color: var(--accent-ink);
}
.promo-delivery h3 { color: var(--accent-ink); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; }
.promo-delivery p { color: color-mix(in srgb, var(--accent-ink) 88%, transparent); }
.promo-delivery strong { font-size: 1.35rem; }
@media (min-width: 720px) {
  .promo-inner { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 3rem; }
  .promo-delivery { border-left: 2px solid color-mix(in srgb, var(--accent-ink) 30%, transparent); padding-left: 3rem; }
}

/* -- le nostre pizze: photo duo -------------------------------------------- */
.pizze-lead { color: var(--muted); max-width: 52ch; margin-bottom: 1.5rem; }
.pizze-grid { display: grid; gap: 0.85rem; }
.pizze-grid figure { margin: 0; }
.pizze-grid img {
  width: 100%; height: auto; border-radius: var(--r);
  aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--stone-line);
}
.menu-note { margin-top: 1.25rem; color: var(--muted); font-size: 0.9rem; }
@media (min-width: 720px) {
  .pizze-grid { grid-template-columns: 1fr 1fr; }
  .pizze-grid img { aspect-ratio: 3 / 4; }
}

/* -- orari & dove ----------------------------------------------------------- */
.info { background: var(--stone-2); max-width: none; }
.info > * { max-width: 72rem; margin-left: auto; margin-right: auto; }
.info-grid { display: grid; gap: 2.25rem; margin-top: 1.5rem; }
.hours { border-collapse: collapse; margin-top: 0.25rem; }
.hours td { padding: 0.3rem 1.5rem 0.3rem 0; color: var(--muted); vertical-align: top; }
.hours td:first-child { color: var(--espresso); font-weight: 700; white-space: nowrap; }
.contact-lines { margin-bottom: 0.75rem; }
.contact-phones { margin-bottom: 1.25rem; font-weight: 500; }
.contact-phones a { font-weight: 700; }
.info-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.maplink { display: inline-block; font-weight: 700; }
@media (min-width: 640px) { .info-grid { grid-template-columns: 1fr 1.2fr; gap: 3rem; } }

/* -- footer ----------------------------------------------------------------- */
.footer {
  background: var(--espresso); color: color-mix(in srgb, var(--cream) 78%, transparent);
  padding: 2.5rem var(--pad) 3rem; text-align: center; font-size: 0.9rem;
}
.footer a { color: color-mix(in srgb, var(--cream) 88%, transparent); }
.footer-brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--cream); margin-bottom: 0.5rem;
}
.footer p + p { margin-top: 0.35rem; }
.demo-note { margin-top: 0.9rem; opacity: 0.65; font-size: 0.82rem; }

/* -- entrance motion (MOTION 3, CSS-only, reduced-motion safe) -------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero .eyebrow { animation-delay: 0.02s; }
  .hero h1 { animation-delay: 0.08s; }
  .hero-sub { animation-delay: 0.16s; }
  .hero-actions { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
