/* ==========================================================================
   PIZZERIA BARBAROSSA — Bologna
   Direction: fumetto-pop / adesivo. Turchese dell'insegna come campo-brand,
   rosso "barba rossa" come UNICA azione, contorni ink + ombre nette da sticker.
   Type: Archivo Black (display) + Archivo (body). Mobile-first (390px).
   ========================================================================== */

:root {
  --paper:      #FBF6EC;   /* canvas carta-calda */
  --paper-card: #FFFDF8;   /* superficie card (bianco caldo) */
  --line:       #E7DEC9;   /* filetto su carta */

  --ink:        #17242C;   /* testo + contorni fumetto + ombre nette */
  --ink-soft:   #55606A;   /* secondario */

  --teal:       #2FAAB2;   /* CAMPO-BRAND (dalla loro insegna) */
  --teal-deep:  #1F888F;   /* bordi/hover su turchese */
  --teal-tint:  #E4F2F1;   /* superficie turchese chiarissima */

  --red:        #C43A2B;   /* UNICA azione: CTA / prezzi-firma */
  --red-deep:   #A8321F;   /* link inline su carta (5.8:1) */

  --r: 12px;               /* raggio unico (badge = pill) */
  --shadow: 7px 7px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --measure: 65ch;
  --font-display: "Archivo Black", Arial Black, sans-serif;
  --font-body: "Archivo", -apple-system, "Segoe UI", sans-serif;
}

* { 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;
  overflow-x: hidden;
}

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

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

h1, h2, h3, .wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* -- buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
  padding: 0.8rem 1.35rem;
  border: 2.5px solid var(--ink); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(4px,4px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { color: #fff; background: var(--red); }
.btn-ghost { background: var(--paper-card); color: var(--ink); box-shadow: 4px 4px 0 var(--teal); }
.btn-ghost:hover { box-shadow: 6px 6px 0 var(--teal); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* -- topbar ----------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 2.5px solid var(--ink);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand {
  font-family: var(--font-display); font-size: 1.28rem; color: var(--ink);
  text-decoration: none; letter-spacing: -0.02em;
  text-shadow: 2px 2px 0 var(--teal);
}
.topbar .btn { padding: 0.5rem 1rem; box-shadow: 3px 3px 0 var(--ink); font-size: 0.95rem; }
.topbar .btn:active { transform: translate(3px,3px); }

/* -- hero ------------------------------------------------------------------- */
.hero { padding: 2.4rem 0 2.8rem; }
.hero-grid { display: grid; gap: 1.8rem; align-items: center; }
.eyebrow {
  display: inline-block;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink);
  background: var(--teal-tint);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.28rem 0.8rem; margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(3.1rem, 15.5vw, 5.4rem);
  color: var(--ink); text-shadow: 4px 4px 0 var(--teal);
  margin-bottom: 0.9rem; letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.12rem; color: var(--ink-soft);
  max-width: 42ch; margin-bottom: 1.6rem;
}
.hero-sub b { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-media { position: relative; }
.photo-card {
  border: 2.5px solid var(--ink); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden; background: var(--paper-card);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .photo-card img { aspect-ratio: 4 / 4.3; }

.rating-badge {
  position: absolute; left: -0.4rem; bottom: -0.9rem;
  background: var(--paper-card);
  border: 2.5px solid var(--ink); border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0.9rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.rating-badge .stars { color: var(--red); font-weight: 700; letter-spacing: 0.05em; }
.rating-badge .rb-text { font-size: 0.82rem; line-height: 1.15; color: var(--ink); }
.rating-badge .rb-text b { display: block; font-family: var(--font-display); font-size: 0.95rem; }

/* -- generic section -------------------------------------------------------- */
.section { padding: 3.2rem 0; }
.section-head { max-width: var(--measure); margin-bottom: 1.6rem; }
.section-head h2 { font-size: clamp(1.9rem, 6.5vw, 2.7rem); color: var(--ink); margin-bottom: 0.6rem; }
.section-head p { color: var(--ink-soft); max-width: 54ch; }
.band { color: var(--ink); }
.band.teal { background: var(--teal); border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }
.band.teal .section-head p { color: #10343a; }

/* -- insegna strip ---------------------------------------------------------- */
.insegna { padding: 2.4rem 0; }
.insegna-card {
  border: 2.5px solid var(--ink); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden; background: #83d8ec;
}
.insegna-card img { width: 100%; }
.insegna-cap {
  margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.95rem;
  text-align: center;
}

/* -- pizza al metro (banda turchese) ---------------------------------------- */
.metro-wrap { display: grid; gap: 1.8rem; }
.metro-copy p { color: #10343a; max-width: 48ch; margin-bottom: 1.1rem; }
.metro-prices { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.price-chip {
  background: var(--paper-card); border: 2.5px solid var(--ink);
  border-radius: var(--r); box-shadow: var(--shadow-sm);
  padding: 0.7rem 1rem; min-width: 8.5rem;
}
.price-chip .pc-name { font-family: var(--font-display); font-size: 0.95rem; color: var(--ink); }
.price-chip .pc-desc { font-size: 0.8rem; color: var(--ink-soft); }
.price-chip .pc-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--red); }

.ruler-block { background: var(--paper-card); border: 2.5px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.4rem 1.3rem 1.2rem; }
.ruler-title { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.02em; margin-bottom: 0.9rem; color: var(--ink); }
.ruler-bar {
  height: 52px; border: 2.5px solid var(--ink); border-radius: 8px;
  background-color: var(--teal-tint);
  background-image: repeating-linear-gradient(90deg,
      var(--ink) 0, var(--ink) 2px, transparent 2px, transparent 10%);
  position: relative;
}
.ruler-bar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 3px dashed var(--red); transform: translateY(-50%);
}
.ruler-labels { display: flex; justify-content: space-between; margin-top: 0.6rem; }
.ruler-labels span { font-weight: 700; font-size: 0.85rem; color: var(--ink-soft); }
.ruler-labels span:first-child, .ruler-labels span:last-child { color: var(--ink); }

/* -- signature pizza (feature split) ---------------------------------------- */
.feature { display: grid; gap: 1.6rem; align-items: center; }
.feature .photo-card img { aspect-ratio: 5 / 4; }
.tag {
  display: inline-block; font-family: var(--font-display); font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--red); color: #fff;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.22rem 0.8rem; margin-bottom: 0.9rem;
}
.feature h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); margin-bottom: 0.7rem; }
.feature p { color: var(--ink-soft); max-width: 46ch; margin-bottom: 0.5rem; }
.feature .ingredients { color: var(--ink); font-weight: 600; }

/* -- menu ------------------------------------------------------------------- */
.menu-grid { display: grid; gap: 1.3rem; }
.menu-card {
  background: var(--paper-card); border: 2.5px solid var(--ink);
  border-radius: var(--r); box-shadow: var(--shadow-sm);
  padding: 1.3rem 1.3rem 1.4rem;
}
.menu-card h3 {
  font-size: 1.15rem; color: var(--ink); margin-bottom: 0.2rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
}
.menu-card .card-note { font-size: 0.8rem; font-weight: 700; color: var(--teal-deep); font-family: var(--font-body); }
.menu-list { list-style: none; padding: 0; margin-top: 0.9rem; }
.menu-list li { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.4rem 0; }
.menu-list li + li { border-top: 1px solid var(--line); }
.dish { font-weight: 600; color: var(--ink); }
.dish small { display: block; font-weight: 400; font-size: 0.82rem; color: var(--ink-soft); }
.dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-3px); }
.price { font-family: var(--font-display); font-size: 0.98rem; color: var(--red); font-variant-numeric: tabular-nums; }
.menu-note { margin-top: 1.4rem; color: var(--ink-soft); font-size: 0.92rem; max-width: 60ch; }

/* -- impasto (2-up) --------------------------------------------------------- */
.impasto-grid { display: grid; gap: 1.1rem; }
.impasto-card {
  background: var(--paper-card); border: 2.5px solid var(--ink);
  border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 1.3rem;
}
.impasto-card h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 0.4rem; }
.impasto-card p { color: var(--ink-soft); font-size: 0.98rem; }
.aggiunte { margin-top: 1.1rem; color: var(--ink-soft); font-size: 0.92rem; }

/* -- pizzaiolo (split + reviews) -------------------------------------------- */
.about { display: grid; gap: 1.6rem; align-items: center; }
.about .photo-card img { aspect-ratio: 3 / 2.4; }
.about h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); margin-bottom: 0.7rem; }
.about p { color: var(--ink-soft); max-width: 48ch; margin-bottom: 1.2rem; }
.reviews { display: grid; gap: 0.9rem; }
.review {
  background: var(--teal-tint); border: 2px solid var(--ink); border-radius: var(--r);
  padding: 0.9rem 1.05rem;
}
.review blockquote { font-size: 0.98rem; color: var(--ink); }
.review cite { display: block; margin-top: 0.5rem; font-style: normal; font-size: 0.82rem; color: var(--ink-soft); font-weight: 700; }

/* -- contatti (banda turchese) ---------------------------------------------- */
.contact-grid { display: grid; gap: 1.6rem; }
.contact-panel {
  background: var(--paper-card); border: 2.5px solid var(--ink);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 1.4rem;
}
.contact-panel h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.7rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 0.34rem 0; color: var(--ink-soft); vertical-align: top; font-size: 0.96rem; }
.hours td:first-child { color: var(--ink); font-weight: 700; padding-right: 1rem; white-space: nowrap; }
.hours tr.today td { color: var(--red); }
.hours tr.today td:first-child { color: var(--red); }
.contact-lines { line-height: 1.9; }
.contact-lines strong { font-family: var(--font-display); font-weight: 400; }
.contact-panel .btn { margin-top: 1rem; }
.mini-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.6rem; }

/* -- footer ----------------------------------------------------------------- */
.footer {
  background: var(--ink); color: #cfd8dc;
  border-top: 2.5px solid var(--ink);
  padding: 2.4rem 0 2.8rem; text-align: center; font-size: 0.9rem;
}
.footer .brand-foot { font-family: var(--font-display); color: #fff; font-size: 1.15rem; display: inline-block; margin-bottom: 0.5rem; text-shadow: 2px 2px 0 var(--teal); }
.footer a { color: #9fe3e9; }
.demo-note { margin-top: 0.7rem; opacity: 0.6; font-size: 0.82rem; }

/* ==========================================================================
   RESPONSIVE — ≥ 720px then ≥ 960px
   ========================================================================== */
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2.4rem; }
  .metro-wrap { grid-template-columns: 1fr 1fr; align-items: center; }
  .feature { grid-template-columns: 0.95fr 1.05fr; }
  .feature.reverse .photo-card { order: 2; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .impasto-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .rating-badge { left: -1.2rem; }
}

@media (min-width: 960px) {
  .hero { padding: 3.2rem 0 3.6rem; }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.1fr 1fr; }
}

/* ==========================================================================
   MOTION (MOTION_INTENSITY 3 — CSS only, gated)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .eyebrow, .hero-sub, .hero-actions, .hero-media {
    animation: rise .6s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero .eyebrow { animation-delay: .02s; }
  .hero h1 { animation-delay: .06s; }
  .hero-sub { animation-delay: .12s; }
  .hero-actions { animation-delay: .18s; }
  .hero-media { animation-delay: .1s; }

  @supports (animation-timeline: view()) {
    .section .section-head,
    .menu-card, .impasto-card, .price-chip, .ruler-block,
    .insegna-card, .review, .contact-panel {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
