/* ══════════════════════════════════════════════════════════════
   RISTORANTE PICCOLO BAR · Misano Adriatico · dal 1947
   "L'ora blu del giardino" — blu notte, oro delle lucine,
   crema del biglietto, corallo delle sedie.
   ══════════════════════════════════════════════════════════════ */

:root {
  --notte:        #0e1c30;
  --notte-2:      #15263d;
  --notte-velo:   rgba(14, 28, 48, .55);
  --oro:          #e0b06c;
  --oro-chiaro:   #f2d29b;
  --crema:        #f6efe3;
  --crema-scura:  #ede2cd;
  --navy:         #1b2a4a;
  --navy-soft:    #44506e;
  --corallo:      #de7f72;
  --ottanio:      #3f7d7a;

  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-script:  "Parisienne", cursive;
  --f-body:    "Jost", "Segoe UI", sans-serif;

  --misura: 68ch;
  --largo: 1180px;
  --z-nav: 50;
  --z-lightbox: 90;
}

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

html { scroll-behavior: smooth; }

/* scrollbar in tema */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--notte); }
::-webkit-scrollbar-thumb {
  background: var(--navy-soft);
  border-radius: 6px;
  border: 2px solid var(--notte);
}
::-webkit-scrollbar-thumb:hover { background: var(--oro); }

body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Tipografia condivisa ─────────────────────────────── */

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.12; }

h2 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: .01em; }

.eyebrow {
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--corallo);
  margin-bottom: 1.1rem;
}
.eyebrow--oro { color: var(--oro); }

.script {
  font-family: var(--f-script);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.3;
}
.script--navy  { color: var(--corallo); }
.script--oro   { color: var(--oro); }
.script--crema { color: var(--crema); }

/* ── Bottoni ──────────────────────────────────────────── */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  font-family: var(--f-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 2.2em;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn--gold {
  background: var(--oro);
  color: var(--notte);
  border: 1px solid var(--oro);
}
.btn--gold:hover {
  background: var(--oro-chiaro);
  border-color: var(--oro-chiaro);
  box-shadow: 0 8px 28px rgba(224, 176, 108, .3);
}
.btn--ghost {
  background: transparent;
  color: var(--crema);
  border: 1px solid rgba(246, 239, 227, .55);
}
.btn--ghost:hover { border-color: var(--crema); background: rgba(246, 239, 227, .08); }
.btn--nav { padding: .7em 1.6em; }

/* ══════════ NAVBAR ══════════ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem clamp(1.2rem, 4vw, 3rem);
  color: var(--crema);
  transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.is-scrolled {
  /* niente backdrop-filter: troppo costoso durante lo scroll */
  background: rgba(14, 28, 48, .96);
  box-shadow: 0 8px 30px rgba(5, 12, 22, .35);
  padding-top: .55rem;
  padding-bottom: .55rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  min-width: 0;
}
.nav__emblem { width: 40px; height: auto; }
.nav__wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.nav__name {
  font-family: var(--f-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.nav__sub {
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .75;
}

.nav__links { display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__links a {
  position: relative;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s ease, color .2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--oro);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .35s ease;
}
.nav__links a:hover, .nav__links a.is-current { opacity: 1; color: var(--oro-chiaro); }
.nav__links a:hover::after, .nav__links a.is-current::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav__actions { display: flex; align-items: center; gap: 1.1rem; }

.lang { display: flex; align-items: center; gap: .35rem; }
.lang__btn {
  background: none;
  border: none;
  color: var(--crema);
  font-family: var(--f-body);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .12em;
  cursor: pointer;
  opacity: .55;
  padding: .2rem .1rem;
  transition: opacity .2s ease;
}
.lang__btn:hover { opacity: .9; }
.lang__btn.is-active { opacity: 1; color: var(--oro); }
.lang__sep { opacity: .4; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav__burger span {
  width: 22px;
  height: 1.5px;
  background: var(--crema);
  transition: transform .3s ease, opacity .3s ease;
}

/* ══════════ HERO ══════════ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--notte);
  color: var(--crema);
  text-align: center;
}

.hero__bg { position: absolute; inset: 0; will-change: transform; }
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 26s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero__video.is-ready { opacity: 1; }

.hero__lights { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(14, 28, 48, .55) 0%,
      rgba(14, 28, 48, .28) 30%,
      rgba(14, 28, 48, .38) 65%,
      rgba(14, 28, 48, .82) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 7rem 1.5rem 5rem;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__emblem {
  width: clamp(64px, 8vw, 92px);
  height: auto;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 1.2s ease .2s forwards;
}

.hero__script {
  font-family: var(--f-script);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--oro-chiaro);
  opacity: 0;
  animation: fadeUp 1.2s ease .5s forwards;
}

.hero__title {
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  font-weight: 500;
  letter-spacing: .02em;
  margin: .3rem 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeUp 1.2s ease .75s forwards;
}
.hero__kicker {
  display: block;
  font-family: var(--f-body);
  font-size: clamp(.72rem, 1.4vw, .88rem);
  font-weight: 400;
  letter-spacing: .55em;
  text-indent: .55em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: .8rem;
}

.hero__lede {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  font-weight: 300;
  max-width: 34em;
  opacity: 0;
  animation: fadeUp 1.2s ease 1s forwards;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.4rem;
  opacity: 0;
  animation: fadeUp 1.2s ease 1.25s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 30px;
  height: 56px;
  display: flex;
  justify-content: center;
}
.hero__scroll-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--oro));
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(.55); opacity: .45; transform-origin: top; }
  50%      { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ══════════ SEZIONI ══════════ */

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1.2rem, 5vw, 3rem);
  scroll-margin-top: 62px;
}

.section--crema { background: var(--crema); color: var(--navy); }
.section--notte { background: var(--notte); color: var(--crema); }

/* grana cinematografica sulle sezioni notturne */
.section--notte {
  position: relative;
  isolation: isolate;
}
.section--notte::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05;
  pointer-events: none;
}

.section__head {
  max-width: var(--largo);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.section__lede {
  max-width: 56ch;
  margin: 1.4rem auto 0;
  opacity: .85;
}

/* ── Valori ───────────────────────────────────────────── */

.valori { text-align: center; }
.valori__manifesto {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-style: italic;
  line-height: 1.5;
  max-width: 30em;
  margin: 1rem auto 0;
}
.valori__grid {
  max-width: var(--largo);
  margin: clamp(2.8rem, 6vw, 4.5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.valori__item h3 {
  font-size: 1.35rem;
  margin: 1rem 0 .5rem;
}
.valori__item p { font-size: .95rem; opacity: .8; max-width: 26em; margin-inline: auto; }

.icona {
  width: 44px;
  height: 44px;
  stroke: var(--corallo);
  stroke-width: 1.3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--corallo);
  margin-inline: auto;
}

/* ── Divisore lucine ──────────────────────────────────── */

.divisore {
  background: var(--crema);
  color: var(--oro);
  padding: 0 clamp(1.2rem, 5vw, 3rem);
  line-height: 0;
}
.divisore--footer {
  background: transparent;
  margin-bottom: 2.2rem;
}
.divisore svg { width: 100%; max-width: 640px; margin: 0 auto; display: block; }
.divisore__luci circle { fill: var(--oro); }
.divisore__luci circle:nth-child(odd) { animation: luccica 2.6s ease-in-out infinite; }
.divisore__luci circle:nth-child(even) { animation: luccica 2.6s ease-in-out 1.3s infinite; }
@keyframes luccica {
  0%, 100% { opacity: .35; }
  50%      { opacity: 1; }
}

/* ── Storia ───────────────────────────────────────────── */

.storia__grid {
  max-width: var(--largo);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.storia__testo h2 { margin-bottom: 1.6rem; }
.storia__testo p + p { margin-top: 1.1rem; }
.storia__testo > p:not(.script):not(.eyebrow) { max-width: var(--misura); opacity: .88; }
.storia__quote { margin-top: 2.2rem !important; }

.storia__media { position: relative; }
.storia__video {
  width: 100%;
  aspect-ratio: 9 / 16; /* spazio riservato prima del caricamento: niente salti */
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(224, 176, 108, .45);
  box-shadow: 0 30px 60px rgba(27, 42, 74, .18);
}
.storia__caption {
  margin-top: .8rem;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .6;
  text-align: center;
}

/* ── Cucina ───────────────────────────────────────────── */

.piatti {
  max-width: var(--largo);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3vw, 2.6rem);
}
.piatto__img {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 5;
}
.piatto__img::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(242, 210, 155, .0);
  border-radius: 2px;
  pointer-events: none;
  transition: border-color .5s ease, inset .5s ease;
}
.piatto:hover .piatto__img::after {
  border-color: rgba(242, 210, 155, .65);
  inset: 14px;
}
.piatto__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease, filter .7s ease;
}
.piatto:hover .piatto__img img { transform: scale(1.05); filter: brightness(1.05); }
.piatto h3 {
  font-size: 1.5rem;
  margin: 1.1rem 0 .3rem;
  color: var(--oro-chiaro);
  transition: color .3s ease;
}
.piatto:hover h3 { color: var(--oro); }
.piatto p { font-size: .95rem; opacity: .78; }

.terra {
  max-width: var(--largo);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  border-top: 1px solid rgba(224, 176, 108, .25);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.terra__testo p:not(.script) { margin-top: .8rem; opacity: .85; max-width: 46ch; }
.terra__foto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.terra__foto img {
  border-radius: 3px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ── Giardino (video band) ────────────────────────────── */

.giardino {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.giardino__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.giardino__velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,28,48,.55), rgba(14,28,48,.25) 45%, rgba(14,28,48,.6));
}
.giardino__contenuto {
  position: relative;
  z-index: 2;
  color: var(--crema);
  padding: 6rem 1.5rem;
  max-width: 720px;
}
.giardino__testo {
  margin-top: 1.2rem;
  font-size: 1.05rem;
  text-shadow: 0 2px 18px rgba(5, 12, 22, .7);
}
.giardino .script { text-shadow: 0 2px 18px rgba(5, 12, 22, .8); }

/* ── Compagni ─────────────────────────────────────────── */

.compagni__grid {
  max-width: var(--largo);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3vw, 2.6rem);
}
.compagno {
  background: #fdf9f0;
  border: 1px solid rgba(27, 42, 74, .09);
  border-radius: 4px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  text-align: center;
  transition: box-shadow .3s ease, transform .3s ease;
}
.compagno:hover {
  box-shadow: 0 24px 48px rgba(27, 42, 74, .12);
  transform: translateY(-4px);
}
.compagno h3 { font-size: 1.5rem; margin: 1.2rem 0 .2rem; }
.compagno__ruolo {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--corallo);
  margin-bottom: .9rem;
}
.compagno > p:last-child { font-size: .95rem; opacity: .82; }

/* ── Galleria ─────────────────────────────────────────── */

.galleria__grid {
  max-width: var(--largo);
  margin: 0 auto;
  columns: 3;
  column-gap: 1.1rem;
}
.galleria__item {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 1.1rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  break-inside: avoid;
  border-radius: 3px;
  overflow: hidden;
}
.galleria__item img {
  width: 100%;
  height: auto; /* l'attributo height serve solo a riservare lo spazio, non a fissare l'altezza */
  transition: transform .6s ease, opacity .3s ease;
}
.galleria__item:hover img { transform: scale(1.035); }
.galleria__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem .95rem .85rem;
  background: linear-gradient(to top, rgba(8, 15, 27, .78), transparent);
  color: var(--crema);
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.galleria__item:hover .galleria__cap,
.galleria__item:focus-visible .galleria__cap { opacity: 1; transform: translateY(0); }

/* ── Momenti (striscia video) ─────────────────────────── */

.momenti {
  max-width: var(--largo);
  margin: 0 auto clamp(2.2rem, 4vw, 3.2rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2vw, 1.6rem);
}
.momento { margin: 0; }
.momento video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(224, 176, 108, .35);
  display: block;
}
.momento figcaption {
  margin-top: .7rem;
  text-align: center;
  font-family: var(--f-script);
  font-size: 1.5rem;
  color: var(--oro-chiaro);
}

/* ── Contatti ─────────────────────────────────────────── */

.contatti { background: var(--notte-2); }
.contatti__grid {
  max-width: var(--largo);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contatti h2 { margin-bottom: 2rem; }
.contatti__blocco { margin-bottom: 1.8rem; font-style: normal; }
.contatti__blocco h3 {
  font-family: var(--f-body);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: .45rem;
}
.contatti__blocco p { opacity: .9; }
.contatti__tel {
  font-family: var(--f-display);
  font-size: 2rem;
  text-decoration: none;
  color: var(--crema);
  transition: color .2s ease;
}
.contatti__tel:hover { color: var(--oro-chiaro); }
.contatti__cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.2rem; }

.contatti__mappa iframe {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  border: 1px solid rgba(224, 176, 108, .3);
  border-radius: 4px;
  filter: grayscale(.35) sepia(.12);
}
.contatti__maps-link {
  display: inline-block;
  margin-top: .9rem;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--oro);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 176, 108, .4);
  padding-bottom: .2em;
  transition: color .2s ease, border-color .2s ease;
}
.contatti__maps-link:hover { color: var(--oro-chiaro); border-color: var(--oro-chiaro); }

/* ══════════ FOOTER ══════════ */

.footer {
  background: var(--notte);
  color: var(--crema);
  text-align: center;
  padding: 2.6rem 1.5rem 3rem;
}
.footer__emblem { width: 52px; height: auto; margin: 0 auto 1rem; opacity: .9; }
.footer__nome {
  font-family: var(--f-display);
  font-size: 1.25rem;
  letter-spacing: .05em;
}
.footer__dati { font-size: .85rem; opacity: .65; margin-top: .4rem; }
.footer__dati a { color: inherit; text-decoration: none; }
.footer__dati a:hover { color: var(--oro-chiaro); }
.footer__script { margin-top: 1.4rem; font-size: 1.9rem; }

/* ══════════ LIGHTBOX ══════════ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(8, 15, 27, .94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  border-radius: 3px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: none;
  color: var(--crema);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
  transition: opacity .2s ease;
  padding: .5rem .9rem;
}
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 1rem; right: 1.4rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ══════════ INTRO ══════════ */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--notte);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: opacity .8s ease, visibility .8s ease;
}
.intro__emblem {
  width: 92px;
  height: auto;
  animation: introGlow 2.4s ease-in-out infinite;
}
.intro__script {
  font-family: var(--f-script);
  font-size: 1.9rem;
  color: var(--oro-chiaro);
}
.intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes introGlow {
  0%, 100% { opacity: .75; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.04); }
}

/* ══════════ REVEAL ══════════ */

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

/* ritmo a scalare per le griglie */
.valori__grid > .reveal:nth-child(2) { transition-delay: .12s; }
.valori__grid > .reveal:nth-child(3) { transition-delay: .24s; }
.valori__grid > .reveal:nth-child(4) { transition-delay: .36s; }
.piatti > .reveal:nth-child(3n+2) { transition-delay: .12s; }
.piatti > .reveal:nth-child(3n)   { transition-delay: .24s; }
.compagni__grid > .reveal:nth-child(2) { transition-delay: .12s; }
.compagni__grid > .reveal:nth-child(3) { transition-delay: .24s; }
.momenti > .reveal:nth-child(2) { transition-delay: .12s; }
.momenti > .reveal:nth-child(3) { transition-delay: .24s; }

/* ══════════ RESPONSIVE ══════════ */

@media (max-width: 1024px) {
  .valori__grid { grid-template-columns: repeat(2, 1fr); }
  .piatti { grid-template-columns: repeat(2, 1fr); }
  .galleria__grid { columns: 2; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .nav__links.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(14, 28, 48, .97);
  }
  .nav__links.is-open a { font-size: 1.05rem; }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

@media (max-width: 820px) {
  .storia__grid { grid-template-columns: 1fr; }
  .storia__media { max-width: 420px; margin: 0 auto; }
  .terra { grid-template-columns: 1fr; }
  .terra__foto { max-width: 480px; }
  .contatti__grid { grid-template-columns: 1fr; }

  /* momenti: striscia scorrevole con scatto */
  .momenti {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .6rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(224, 176, 108, .45) transparent;
  }
  .momenti::-webkit-scrollbar { height: 5px; }
  .momenti::-webkit-scrollbar-track { background: transparent; }
  .momenti::-webkit-scrollbar-thumb {
    background: rgba(224, 176, 108, .45);
    border: none;
    border-radius: 3px;
  }
  .momento {
    flex: 0 0 72%;
    max-width: 340px;
    scroll-snap-align: center;
  }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero__photo { object-position: 68% 30%; }
  .valori__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .piatti { grid-template-columns: 1fr; }
  .galleria__grid { columns: 1; }
  .btn--nav { display: none; }
  .hero__cta .btn { width: 100%; text-align: center; }
  .hero__content { padding-top: 6rem; }
}

/* ══════════ REDUCED MOTION ══════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__photo { animation: none; }
  .hero__emblem, .hero__script, .hero__title, .hero__lede, .hero__cta {
    animation: none; opacity: 1;
  }
  .hero__scroll-line { animation: none; }
  .divisore__luci circle { animation: none; opacity: .8; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .piatto__img img, .galleria__item img { transition: none; }
  .intro { display: none; }
  .intro__emblem { animation: none; }
  .btn::before { display: none; }
  .hero__video { transition: none; }
  .galleria__cap { transition: none; }
}
