/* ==========================================================================
   IL GIRASOLE — ristorante siciliano, Barcellona Pozzo di Gotto
   Direction: "Cobalt + Cream" — cream menu-paper canvas, one majolica-blue
   accent (from their own primi menu print), sunflower-gold as a decorative
   brand-only color (the name = "the sunflower"). Yeseva One + Instrument Sans.
   Mobile-first (390px), one radius (8px), buttons rectangular.
   ========================================================================== */

:root {
  --paper:       #f5efe1;   /* canvas — the cream of their printed menu */
  --band:        #efe7d4;   /* alternating deeper cream sections */
  --card:        #fbf8ee;   /* framed surfaces */
  --ink:         #23201b;   /* body text (warm near-black) */
  --muted:       #625d4f;   /* secondary text (AA on cream) */
  --line:        #e3dac4;   /* hairlines on cream */

  --accent:      #2f5b8e;   /* THE accent — majolica blue, all actions/links/prices */
  --accent-ink:  #ffffff;   /* text on accent */
  --accent-deep: #244a78;   /* hover */

  --gold:        #d99a1f;   /* decorative brand-only (sunflower), never an action color */
  --gold-seed:   #6b4a16;

  --font-display: "Yeseva One", Georgia, "Times New Roman", serif;
  --font-body:    "Instrument Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --radius: 8px;
  --measure: 66ch;
  --maxw: 1120px;
}

* { 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; height: auto;}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.9rem, 5.4vw, 2.7rem); }
h3 { font-size: 1.28rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }

/* -- sunflower mark -------------------------------------------------------- */
.sun { width: 1.35em; height: 1.35em; flex: none; display: inline-block; }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink); }
.brand .name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; }
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.5rem 1.05rem; border-radius: var(--radius);
  transition: background .2s ease, transform .1s ease;
}
.topbar-cta:hover { background: var(--accent-deep); color: var(--accent-ink); }
.topbar-cta:active { transform: translateY(1px); }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 0.72rem 1.35rem; border-radius: var(--radius);
  border: 1px solid var(--accent); color: var(--accent); background: transparent;
  transition: background .2s ease, color .2s ease, transform .1s ease, border-color .2s ease;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 10%, var(--paper)); color: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--accent-ink); }

/* -- sections & bands ------------------------------------------------------ */
.section { padding-top: clamp(3rem, 8vw, 5rem); padding-bottom: clamp(3rem, 8vw, 5rem); }
.band { background: var(--band); }
.lede { max-width: var(--measure); color: var(--muted); font-size: 1.12rem; }
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.85rem;
}
.rule { width: 54px; height: 3px; background: var(--gold); border-radius: 2px; margin: 0.9rem 0 0; }
.section-head { margin-bottom: 1.8rem; }
.section-head h2 { max-width: 20ch; }

/* -- hero ------------------------------------------------------------------ */
.hero { padding-top: clamp(2.4rem, 6vw, 4rem); padding-bottom: clamp(2.8rem, 7vw, 4.5rem); }
.hero-grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.hero h1 {
  font-size: clamp(3rem, 13vw, 5.2rem); line-height: 0.98; margin: 0.5rem 0 0;
}
.hero-sub { color: var(--muted); font-size: 1.16rem; max-width: 30ch; margin-top: 1.1rem; }
.hero-meta { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.stars { color: var(--gold); letter-spacing: 0.05em; }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 20px 40px -22px color-mix(in srgb, var(--ink) 60%, transparent);
}
.hero-figure figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.86rem; }

/* -- menu ------------------------------------------------------------------ */
.menu-lead { max-width: var(--measure); color: var(--muted); font-size: 1.08rem; margin-bottom: 2.2rem; }
.menu-block + .menu-block { margin-top: 2.6rem; }
.menu-block > h3 {
  display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold);
  margin-bottom: 1.1rem; color: var(--ink);
}
.menu-block > h3 .cat-note { font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }

.antipasti-line { max-width: var(--measure); color: var(--muted); }
.antipasti-line strong { color: var(--ink); font-weight: 600; }

/* editorial primi list (no dotted leaders) */
.dishes { list-style: none; padding: 0; display: grid; gap: 1.15rem; }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; align-items: baseline; }
.dish .d-name { font-weight: 600; font-size: 1.06rem; }
.dish .d-desc { grid-column: 1 / 2; color: var(--muted); font-size: 0.94rem; line-height: 1.45; }
.dish .d-price { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.dish .d-per { display: block; font-size: 0.76rem; font-weight: 500; color: var(--muted); }

/* pizze grid */
.pizze { list-style: none; padding: 0; display: grid; gap: 1.1rem 2.2rem; }
.pizza { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 0.8rem; align-items: baseline; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.pizza .p-name { font-weight: 600; }
.pizza .p-price { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.pizza .p-desc { grid-column: 1 / -1; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.pizza.fantasy .p-desc { font-style: italic; }

.menu-note { margin-top: 2rem; color: var(--muted); font-size: 0.9rem; max-width: var(--measure); }

/* -- ambiente -------------------------------------------------------------- */
.ambiente-grid { display: grid; gap: 1rem; margin-top: 1.8rem; }
.ambiente-grid img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); object-fit: cover; }
.amb-sala img { aspect-ratio: 4 / 3; }
.amb-food img { aspect-ratio: 4 / 3; }

/* -- recensione ------------------------------------------------------------ */
.quote { max-width: 36ch; margin: 0 auto; text-align: center; }
.quote .sun { color: var(--gold); margin-bottom: 0.6rem; }
.quote blockquote {
  font-family: var(--font-display); font-size: clamp(1.55rem, 5vw, 2.15rem);
  line-height: 1.24; color: var(--ink);
}
.quote .cite { display: block; margin-top: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.quote .cite .stars { display: inline-block; }

/* -- orari & dove ---------------------------------------------------------- */
.dove-grid { display: grid; gap: 2.4rem; margin-top: 1.8rem; }
.hours { width: 100%; border-collapse: collapse; max-width: 26rem; }
.hours tr { border-bottom: 1px solid var(--line); }
.hours td { padding: 0.7rem 0; vertical-align: top; }
.hours .day { font-weight: 600; padding-right: 1.5rem; }
.hours .time { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--muted); }
.hours tr.is-today .day,
.hours tr.is-today .time { color: var(--accent); }
.today-tag {
  font-family: var(--font-body); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent); border-radius: 4px; padding: 0.08rem 0.42rem;
  margin-left: 0.5rem; vertical-align: middle;
}

.contact address { font-style: normal; color: var(--ink); line-height: 1.7; }
.contact .addr { color: var(--muted); }
.contact a { font-weight: 600; }
.contact .actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.3rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.chip {
  font-size: 0.85rem; color: var(--muted); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.32rem 0.7rem;
}

/* -- footer ---------------------------------------------------------------- */
.footer { background: var(--band); border-top: 1px solid var(--line); }
.footer .wrap { padding-top: 2.4rem; padding-bottom: 2.8rem; text-align: center; color: var(--muted); font-size: 0.9rem; }
.footer .brand { justify-content: center; margin-bottom: 0.8rem; }
.footer .brand .name { color: var(--ink); }
.demo-note { margin-top: 0.7rem; opacity: 0.78; font-size: 0.82rem; }

/* -- motion (gentle, CSS-only, gated) -------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(14px); animation: fadeUp .7s cubic-bezier(0.16,1,0.3,1) forwards; }
  .hero .d1 { animation-delay: .05s; }
  .hero .d2 { animation-delay: .13s; }
  .hero .d3 { animation-delay: .21s; }
  .hero .d4 { animation-delay: .29s; }
  .hero-figure.fade-up { animation-delay: .18s; }
  @keyframes fadeUp { to { opacity: 1; transform: none; } }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 720px) {
  .dishes { gap: 1.35rem; }
  .pizze { grid-template-columns: 1fr 1fr; }
  .ambiente-grid { grid-template-columns: 1.5fr 1fr; align-items: stretch; }
  .amb-sala img, .amb-food img { height: 100%; }
  .amb-food img { aspect-ratio: auto; min-height: 340px; }
  .dove-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (min-width: 900px) {
  .hero { padding-top: clamp(2.5rem, 4vw, 3.5rem); }
  .hero-grid { grid-template-columns: 1.02fr 0.98fr; align-items: center; }
  .hero-figure img { aspect-ratio: 4 / 3; max-height: 460px; }
}
