/* ============ Osteria Marconi — Universe ============ */

:root {
  --ink: #0f1713;
  --ink-soft: #16211c;
  --teal: #1f6f68;
  --teal-light: #4fa89f;
  --teal-pale: #d9ece9;
  --cream: #f5f1e8;
  --paper: #fbf9f4;
  --coral: #cf6a3c;
  --line: rgba(245, 241, 232, 0.14);
  --line-dark: rgba(15, 23, 19, 0.1);
  --shadow: 0 30px 60px -30px rgba(15, 23, 19, 0.35);
  --ff-display: 'Fraunces', 'Georgia', serif;
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--ff-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: fixed; top: 1rem; left: 1rem; width: auto; height: auto;
  padding: .75rem 1.25rem; background: var(--ink); color: var(--paper); z-index: 999; border-radius: 8px;
}

h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.06;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { line-height: 1.65; margin: 0 0 1em; color: inherit; }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin: 0 0 .9em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .95em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn-accent { background: var(--coral); color: #fff; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(207,106,60,.55); }
.btn-outline { border-color: currentColor; color: inherit; }
.btn-outline:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); }
.btn-sm { padding: .6em 1.2em; font-size: .8rem; }

.hero-btns { display: flex; flex-wrap: wrap; gap: .9em; margin-top: 1.6em; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  color: #fff;
  transition: background .35s ease, padding .35s ease, backdrop-filter .35s ease;
}
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,19,.55), rgba(15,23,19,0));
  z-index: -1; opacity: 1; transition: opacity .35s ease, background .35s ease;
}
.site-header.is-scrolled { padding-top: .7rem; padding-bottom: .7rem; }
.site-header.is-scrolled::before {
  background: rgba(15,23,19,.86);
  backdrop-filter: blur(10px);
}

.site-header__brand { display: flex; align-items: center; gap: .6em; font-family: var(--ff-display); font-weight: 600; font-size: 1.05rem; }
.brand-mark { border-radius: 50%; }

.site-header__nav { display: flex; align-items: center; gap: 1.9rem; font-size: .92rem; font-weight: 500; }
.site-header__nav a[aria-current="page"] { color: var(--teal-light); }
.site-header__nav a:not(.btn):hover { opacity: .75; }

.menu-toggle {
  display: none; align-items: center; gap: .5em;
  background: none; border: none; color: #fff; font: inherit; cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 22px; height: 2px; background: #fff; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #fff; transition: transform .25s ease;
}
.menu-toggle__icon::before { top: -7px; }
.menu-toggle__icon::after { top: 7px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 16s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,15,12,.92) 0%, rgba(10,15,12,.45) 45%, rgba(10,15,12,.25) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  padding: 0 clamp(1.2rem, 5vw, 4rem) clamp(4rem, 9vw, 7rem);
  max-width: 860px;
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.hero__content.is-visible { opacity: 1; transform: translateY(0); }
.hero__logo { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 1.2rem; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); color: #fff; }
.hero__lede { max-width: 46ch; font-size: 1.08rem; color: rgba(255,255,255,.82); }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 999px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 999px; background: #fff;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 1; top: 8px; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; top: 22px; } }

/* ---------- marquee ---------- */
.marquee { background: var(--teal); color: #fff; padding: .85rem 0; overflow: hidden; }
.marquee__track {
  display: flex; gap: 1.4rem; white-space: nowrap;
  font-family: var(--ff-display); font-size: 1.05rem; font-weight: 500; letter-spacing: .02em;
  animation: scroll-left 26s linear infinite;
  width: max-content;
}
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 3rem); }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.storia__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.storia__text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.storia__photo { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.storia__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform .6s ease; }
.storia__photo:hover img { transform: scale(1.04); }

.piatti { background: var(--ink); color: var(--paper); }
.piatti h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 20ch; }
.piatti__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.4rem;
}
.piatti__card {
  margin: 0; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.piatti__card--tall { aspect-ratio: 4/5; grid-row: span 1; }
.piatti__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.piatti__card:hover img { transform: scale(1.07); }
.piatti__card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.1rem .9rem;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
  font-size: .88rem; font-weight: 500; color: #fff;
}
.section-cta { margin-top: 2.6rem; }

.ambiente__mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(140px, 1fr));
  gap: .9rem; margin-top: 2.4rem;
}
.ambiente__item { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.ambiente__item--big { grid-column: span 2; grid-row: span 2; }
.ambiente__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ambiente__item:hover img { transform: scale(1.06); }

.recensioni { background: var(--teal-pale); }
.recensioni__scores { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 2rem 0 2.6rem; }
.score-card {
  background: var(--paper); border-radius: 18px; padding: 1.8rem 2.1rem;
  box-shadow: var(--shadow); min-width: 220px;
}
.score-card__num { font-family: var(--ff-display); font-size: 2.6rem; font-weight: 600; color: var(--teal); }
.score-card__num small { font-size: 1.1rem; font-weight: 500; color: var(--ink); opacity: .6; }
.score-card__label { display: block; font-weight: 600; margin-top: .3rem; }
.score-card__sub { display: block; font-size: .82rem; opacity: .65; margin-top: .15rem; }

.recensioni__quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.recensioni__quotes blockquote {
  margin: 0; background: var(--paper); border-radius: 18px; padding: 1.8rem;
  box-shadow: var(--shadow); font-family: var(--ff-display); font-style: italic; font-size: 1.02rem;
}
.recensioni__quotes cite { display: block; margin-top: 1rem; font-style: normal; font-family: var(--ff-body); font-size: .82rem; opacity: .65; }

.dove__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.dove__list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .9rem; }
.dove__list li { padding-bottom: .9rem; border-bottom: 1px solid var(--line-dark); }
.dove__list strong { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; opacity: .55; margin-bottom: .2rem; }
.dove__list a { color: var(--teal); font-weight: 600; }
.dove__map { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); min-height: 320px; }
.dove__map iframe { width: 100%; height: 100%; border: 0; min-height: 320px; }

/* ---------- menu page ---------- */
.page-header {
  padding: clamp(8rem, 14vw, 11rem) clamp(1.2rem, 5vw, 3rem) 3rem;
  max-width: 1180px; margin: 0 auto; text-align: left;
  background: var(--ink); color: var(--paper);
}
.page-header h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; }
.page-header p { max-width: 55ch; opacity: .8; }

.menu-section { background: var(--paper); }
.menu-categories { display: grid; gap: 3rem; }
.menu-category__head { display: flex; align-items: center; gap: .9rem; }
.menu-category__icon { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex: none; }
.menu-category__head h2 { font-size: 1.5rem; margin: 0; white-space: nowrap; }
.menu-category__line { flex: 1; height: 1px; background: var(--line-dark); }
.menu-category__note { margin: .5rem 0 1.2rem; opacity: .7; font-size: .94rem; max-width: 60ch; }

.menu-dish-list { display: grid; gap: 1.1rem; }
.menu-dish {
  display: flex; justify-content: space-between; gap: 1.4rem;
  padding-bottom: 1.1rem; border-bottom: 1px dashed var(--line-dark);
}
.menu-dish__info h4 { margin: 0 0 .25rem; font-family: var(--ff-display); font-size: 1.08rem; font-weight: 600; }
.menu-dish__info p { margin: 0; font-size: .9rem; opacity: .72; max-width: 52ch; }
.menu-dish__allergens { font-style: italic; opacity: .55; font-size: .8rem; margin-top: .25rem; }
.menu-dish__price { font-family: var(--ff-display); font-weight: 600; color: var(--teal); white-space: nowrap; }

.menu-extra-info { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); font-size: .9rem; }
.menu-note { margin-top: 1.1rem; font-size: .82rem; opacity: .6; }
.menu-review-links { margin-top: 2rem; font-size: .9rem; opacity: .75; }
.menu-review-links a { color: var(--teal); font-weight: 600; }

.book-band {
  background: var(--teal); color: #fff; text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
}
.book-band h2 { color: #fff; }
.book-band p { opacity: .85; }
.book-band .hero-btns { justify-content: center; }
.book-band .btn-outline { border-color: rgba(255,255,255,.6); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(245,241,232,.75);
  padding: clamp(3rem, 6vw, 4rem) clamp(1.2rem, 5vw, 3rem) 6rem;
  text-align: center;
  display: grid; gap: 1rem; justify-items: center;
}
.site-footer__brand { display: flex; align-items: center; gap: .6em; font-family: var(--ff-display); font-weight: 600; color: #fff; }
.site-footer__brand img { border-radius: 50%; }
.site-footer__social { display: flex; gap: 1.6rem; font-size: .88rem; }
.site-footer__social a:hover { color: var(--teal-light); }
.addr { font-size: .82rem; opacity: .7; }
.credit { font-size: .78rem; opacity: .55; }
.credit a { text-decoration: underline; text-underline-offset: 3px; }

.mobile-book {
  display: none; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  background: var(--coral); color: #fff; text-align: center; padding: 1rem; border-radius: 999px;
  font-weight: 600; box-shadow: 0 16px 34px -14px rgba(0,0,0,.5);
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .storia__grid, .dove__grid { grid-template-columns: 1fr; }
  .piatti__grid { grid-template-columns: repeat(2, 1fr); }
  .ambiente__mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .ambiente__item--big { grid-column: span 2; }
  .recensioni__quotes { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .site-header__nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    background: var(--ink); color: #fff;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.6rem; padding: 2rem;
    transform: translateX(100%); transition: transform .35s ease;
  }
  body.nav-open .site-header__nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .mobile-book { display: block; }
  .piatti__grid { grid-template-columns: 1fr; }
  .piatti__card--tall { aspect-ratio: 4/3; }
  .ambiente__mosaic { grid-template-columns: 1fr; }
  .ambiente__item--big { grid-column: span 1; }
  .menu-dish { flex-direction: column; gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__img { animation: none; transform: none; }
  .marquee__track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
