/* ==========================================================================
   Il Gabbiano — Ristorante Pizzeria, Carteria (BO)
   Direzione: marittimo-familiare dalla loro insegna ovale (blu mare + oro,
   gabbiano). Canvas navy profondo, unico accento oro-sole, slab da insegna.
   Shape rule: bande/card/foto = 16px, bottoni = pill. Mobile-first (390px).
   ========================================================================== */

:root {
  --bg:        #0d2a42;   /* blu mare profondo — il fondo dell'ovale */
  --bg-deep:   #0a2236;   /* nota più scura per gradienti/scrim */
  --surface:   #12344e;   /* navy alzato — card e bande alternate */
  --surface-2: #163d5a;   /* card in evidenza (menù pranzo) */
  --line:      #274d6b;   /* bordi sottili su navy */
  --text:      #f4ece0;   /* crema calda — la luce dorata */
  --muted:     #a9bccc;   /* azzurro-grigio — testo secondario */
  --accent:    #f2b33d;   /* oro-sole — lettere insegna + facciata */
  --accent-2:  #ffcf6b;   /* oro più chiaro per hover */
  --accent-ink:#0d2a42;   /* navy: testo sull'oro */

  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Karla", -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --measure: 66ch;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  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); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 700;
}
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

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

/* gull mark ---------------------------------------------------------------- */
.gull { display: inline-block; width: 1.5em; height: auto; vertical-align: -0.12em; }
.gull path { fill: none; stroke: currentColor; stroke-width: 12; stroke-linecap: round; }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 62px; padding-block: 0.6rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.01em;
}
.brand .gull { color: var(--accent); width: 1.35em; }
.topbar-cta {
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.5rem 1.05rem; border-radius: 999px;
  transition: transform .18s ease, background-color .18s ease;
}
.topbar-cta:hover { background: var(--accent-2); transform: translateY(-1px); }
.topbar-cta:active { transform: translateY(0); }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--text); font-weight: 700;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0.7rem 1.4rem; white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn .ico { width: 1.05em; height: 1.05em; flex: none; }

/* -- hero ------------------------------------------------------------------ */
.hero {
  padding-block: clamp(2.25rem, 6vh, 4rem) clamp(2.5rem, 7vh, 4.5rem);
}
.hero .wrap { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; }
.hero-copy { max-width: 34ch; }
.kicker {
  color: var(--accent); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.9rem;
}
.hero h1 {
  font-size: clamp(3rem, 13vw, 5.2rem); line-height: 0.98; margin-bottom: 1rem;
}
.hero-sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.6rem; max-width: 32ch; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; border-radius: var(--radius);
  aspect-ratio: 4 / 5; object-fit: cover;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.7);
}
.hero-figure figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: color-mix(in srgb, var(--bg-deep) 80%, transparent);
  backdrop-filter: blur(4px);
  color: var(--muted); font-size: 0.8rem; font-weight: 500;
  padding: 0.35rem 0.7rem; border-radius: 999px; border: 1px solid var(--line);
}

@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; }
  .hero-figure img { aspect-ratio: 3 / 4; }
}

/* -- generic section ------------------------------------------------------- */
.section { padding-block: clamp(2.75rem, 7vh, 4.5rem); }
.section-head { max-width: var(--measure); margin-bottom: 1.5rem; }
.section-head p { color: var(--muted); margin-top: 0.35rem; }
.band { background: var(--surface); }

/* -- menù: prezzo fisso in bento ------------------------------------------- */
.menu-bento { display: grid; gap: 0.9rem; }
.price-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.price-card .role {
  font-size: 0.92rem; font-weight: 700; color: var(--muted); margin-bottom: 0.5rem;
}
.price-card h3 { font-size: 1.35rem; color: var(--text); }
.price-card .price {
  font-family: var(--font-display); font-weight: 700; color: var(--accent);
  font-size: clamp(2.4rem, 7vw, 3rem); line-height: 1; margin-top: 0.6rem;
  font-variant-numeric: tabular-nums;
}
.price-card .price span { font-size: 1.1rem; color: var(--muted); font-weight: 500; }
.price-card p { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }
.price-card--feature {
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.price-card--feature .role { color: var(--accent); }
.menu-note {
  margin-top: 1.1rem; color: var(--muted); font-size: 0.9rem;
  max-width: var(--measure);
}
.menu-note b { color: var(--text); font-weight: 700; }
@media (min-width: 720px) {
  .menu-bento { grid-template-columns: 1fr 1fr; }
  .price-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; }
  .price-card--feature .price { margin-top: 0; }
}

/* -- split content band (foto + testo) ------------------------------------- */
.split { display: grid; gap: clamp(1.5rem, 4vw, 2.75rem); align-items: center; }
.split img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.split .lead { font-size: 1.15rem; }
.split ul { list-style: none; padding: 0; margin-top: 1.1rem; display: grid; gap: 0.65rem; }
.split ul li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--muted); }
.split ul li b { color: var(--text); font-weight: 700; }
.split ul .gull { color: var(--accent); width: 1.1em; margin-top: 0.35em; flex: none; }
@media (min-width: 780px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.rev img { order: 2; }
}

/* -- la sala: banda foto piena --------------------------------------------- */
.room img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.room-grid { display: grid; gap: 1.5rem; align-items: center; }
.stat { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 1rem; }
.stat .num { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 2rem; line-height: 1; }
.stat .lbl { color: var(--muted); font-size: 0.95rem; }
@media (min-width: 820px) { .room-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; } }

/* -- orari & contatti ------------------------------------------------------ */
.info-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 0.5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours tr:last-child td { border-bottom: 0; }
.hours td:first-child { color: var(--text); font-weight: 700; white-space: nowrap; padding-right: 1.25rem; }
.hours td:last-child { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.closed td:last-child { color: var(--accent); }
.contact-lines { color: var(--muted); margin-bottom: 0.4rem; }
.contact-lines a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent); }
.contact-lines .addr { color: var(--text); font-weight: 700; font-style: normal; display: block; margin-bottom: 0.6rem; }
.parking {
  margin-top: 1.1rem; padding: 0.9rem 1.05rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: 0.92rem;
}
.parking b { color: var(--text); }
.contact-actions { margin-top: 1.3rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* -- footer ---------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line); background: var(--bg-deep);
  padding-block: 2.5rem 3rem; text-align: center; color: var(--muted); font-size: 0.9rem;
}
.footer .gull { color: var(--accent); width: 1.6em; margin-bottom: 0.6rem; }
.footer a { color: var(--muted); }
.demo-note { margin-top: 0.6rem; opacity: 0.7; }

/* -- motion (MOTION 3, solo CSS) -------------------------------------------
   Nessuna animazione da scroll: il contenuto è sempre visibile. Il movimento
   vive solo negli stati :hover/:active dei bottoni e delle card (sopra).
   Le card del menù si sollevano appena al passaggio del mouse. */
.price-card { transition: transform .18s ease, border-color .18s ease; }
@media (prefers-reduced-motion: no-preference) {
  .price-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
}
