/* ==========================================================================
   Cicciobello pizzeria con cucina — Pianoro (BO)
   Direction: allegro-artigianale, built around their baby-mascot brand.
   Palette from their logo + sign (photo-05, photo-01):
     blue = brand/band · yellow = surface · RED = the one action accent.
   Type: Fredoka (display, rounded) + Nunito (body). Mobile-first (390px).
   ========================================================================== */

:root {
  --cream:      #fffdf8;   /* canvas */
  --ink:        #2b2620;   /* body text */
  --muted:      #6d655a;   /* secondary text */
  --navy:       #16406e;   /* headings on light */
  --blue:       #1b6ea6;   /* brand band (white text = 5.5:1 AA) */
  --blue-deep:  #14567f;
  --yellow:     #ffca28;   /* service band */
  --yellow-soft:#fff2cc;   /* tinted surface */
  --red:        #d1342a;   /* THE accent: CTA, links, active (white = 4.96:1) */
  --red-deep:   #b0281f;
  --line:       #ece3d3;   /* warm hairline */
  --white:      #ffffff;

  --r-card: 16px;
  --r-pill: 999px;
  --measure: 62ch;
  --maxw: 1080px;

  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--red-deep); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; color: var(--navy); }
h2 { font-size: clamp(1.55rem, 4.6vw, 2.1rem); font-weight: 700; margin-bottom: 0.6rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }

:where(a, button):focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

section[id] { scroll-margin-top: 76px; }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.5rem; border-radius: var(--r-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.85); }
.btn-ghost:hover { background: var(--white); color: var(--blue-deep); }
.btn-ghost:active { transform: translateY(1px); }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 1.1rem;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: var(--navy); text-decoration: none; letter-spacing: -0.01em;
}
.topbar-cta {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--white); background: var(--red);
  padding: 0.45rem 1.1rem; border-radius: var(--r-pill); text-decoration: none;
  transition: background-color .15s ease;
}
.topbar-cta:hover { background: var(--red-deep); color: var(--white); }

/* -- hero (blue brand band) ------------------------------------------------ */
.hero {
  background:
    radial-gradient(120% 90% at 50% -10%, #2384c1 0%, var(--blue) 55%, var(--blue-deep) 100%);
  color: var(--white);
  padding: 2.4rem 1.25rem 3rem;
  text-align: center;
}
.hero-inner { max-width: 40rem; margin: 0 auto; }
.sign {
  display: inline-block; background: var(--white);
  padding: 0.9rem 1.2rem; border-radius: var(--r-card);
  box-shadow: 0 14px 30px rgba(10, 40, 66, .28);
  margin-bottom: 1.5rem;
}
.sign img { width: min(300px, 74vw); height: auto; }
.hero h1 {
  color: var(--white); font-weight: 700;
  font-size: clamp(1.95rem, 6.6vw, 3rem);
  max-width: 16ch; margin: 0 auto 0.9rem;
}
.hero-sub {
  color: rgba(255,255,255,.94); max-width: 42ch; margin: 0 auto 1.6rem;
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* -- service strip (yellow band) ------------------------------------------- */
.services {
  background: var(--yellow); color: var(--navy);
  padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.service {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 500; font-size: 1.02rem;
}
.service strong { font-weight: 700; }
.service svg { flex: none; color: var(--navy); }

/* -- generic section ------------------------------------------------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 3.2rem 1.25rem; }
.section > p { max-width: var(--measure); }

/* -- split: impasto/cucina ------------------------------------------------- */
.split { display: grid; gap: 1.6rem; align-items: center; }
.split-text p + p { margin-top: 0.8rem; }
.split-media img {
  width: 100%; border-radius: var(--r-card);
  aspect-ratio: 16 / 10; object-fit: cover;
  box-shadow: 0 12px 26px rgba(10, 40, 66, .12);
}

/* -- menu ------------------------------------------------------------------ */
.menu-banner { margin: 0 auto 1.8rem; max-width: 720px; }
.menu-banner img {
  width: 100%; border-radius: var(--r-card);
  aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 68%;
  box-shadow: 0 12px 26px rgba(10, 40, 66, .12);
}
.menu-cards { display: grid; gap: 1rem; margin-top: 1.2rem; }
.menu-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 1.3rem 1.4rem;
}
.menu-card--tint { background: var(--yellow-soft); border-color: transparent; }
.menu-card p { color: var(--ink); }
.menu-note { margin-top: 1.2rem; color: var(--muted); font-size: 0.95rem; max-width: var(--measure); }

/* -- feature: atmosfera ---------------------------------------------------- */
.feature { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.25rem 3.2rem; display: grid; gap: 1.4rem; align-items: center; }
.feature-media img {
  width: 100%; border-radius: var(--r-card);
  aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%;
  box-shadow: 0 12px 26px rgba(10, 40, 66, .12);
}

/* -- orari & contatti ------------------------------------------------------ */
.info-grid { display: grid; gap: 2rem; margin-top: 0.6rem; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.hours th, .hours td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hours th { font-family: var(--font-display); font-weight: 500; color: var(--navy); }
.hours td { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.today { background: var(--yellow-soft); }
.hours tr.today th, .hours tr.today td { color: var(--navy); font-weight: 700; padding-left: 0.6rem; padding-right: 0.6rem; }
.today-badge {
  display: inline-block; margin-left: 0.55rem; vertical-align: middle;
  font-family: var(--font-body); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.02em; padding: 0.16rem 0.55rem; border-radius: var(--r-pill);
}
.today-badge.is-open { background: var(--blue); color: var(--white); }
.today-badge.is-closed { background: #e7ded0; color: var(--ink); }

.place { margin-bottom: 1.1rem; }
.place img { width: 100%; border-radius: var(--r-card); aspect-ratio: 16 / 9; object-fit: cover; }
.contact-lines { margin-bottom: 1.1rem; line-height: 1.8; }
.contact-lines a { font-weight: 700; }

/* -- footer ---------------------------------------------------------------- */
.footer {
  background: var(--white); border-top: 1px solid var(--line);
  padding: 2.4rem 1.25rem 2.8rem; text-align: center;
  color: var(--muted); font-size: 0.95rem;
}
.footer p + p { margin-top: 0.35rem; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.footer a { font-weight: 700; }
.footer-copy { font-size: 0.85rem; }
.demo-note { margin-top: 0.7rem; font-size: 0.8rem; opacity: 0.75; }

/* -- motion (subtle, CSS only, MOTION 3) ----------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .6s cubic-bezier(.16,1,.3,1) both; }
  .hero-inner > *:nth-child(2) { animation-delay: .06s; }
  .hero-inner > *:nth-child(3) { animation-delay: .12s; }
  .hero-inner > *:nth-child(4) { animation-delay: .18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* -- larger screens -------------------------------------------------------- */
@media (min-width: 560px) {
  .services { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0.9rem 1.8rem; }
  .service + .service { padding-left: 1.8rem; border-left: 1px solid rgba(22,64,110,.22); }
}

@media (min-width: 760px) {
  .hero { padding: 3.2rem 1.25rem 3.8rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 2.6rem; }
  .menu-cards { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 0.85fr 1.15fr; gap: 2.6rem; }
  .feature-media img { aspect-ratio: 3 / 4; }
  .info-grid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}

@media (min-width: 1000px) {
  .hero h1 { font-size: 3.1rem; }
}
