:root {
  --red-deep: #2b0608;
  --red: #6d0d12;
  --red-bright: #a01218;
  --cream: #f5e7cf;
  --cream-soft: #e9d6b6;
  --surface-warm: #f2e3cb;
  --surface-warm-deep: #e6cfaa;
  --gold: #d9b779;
  --ink: #0c0102;
  --shadow: rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  background: #3a080c;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  background: #3a080c;
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100svh;
}

.hero__sticky {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: radial-gradient(96% 108% at 62% 42%, #7c1016 0%, #560b10 34%, #320709 64%, #160304 100%);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  z-index: 0;
  filter: brightness(1.13) saturate(1.05);
  pointer-events: none; /* hero decorativo: nessuna interazione/controlli */
  opacity: 1;
  transition: opacity 180ms ease;
}
.hero__video.is-recovering { opacity: 0; }
/* difesa desktop low-power: niente pulsante play nativo iOS/Safari sull'hero */
.hero__video::-webkit-media-controls-start-playback-button,
.hero__video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
}
/* poster statico: mostrato su mobile al posto del video (niente overlay play se l'autoplay è bloccato) */
.hero__poster {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  z-index: 0;
  filter: brightness(1.13) saturate(1.05);
  pointer-events: none;
}

/* Scrim concentrato dietro al testo: lascia respirare prodotto e rossi
   senza perdere contrasto sul lato sinistro. */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(270deg, rgba(8, 1, 2, 0.36) 0%, rgba(8, 1, 2, 0.16) 18%, transparent 40%),
    linear-gradient(95deg,
      rgba(8, 1, 2, 0.66) 0%,
      rgba(12, 2, 3, 0.46) 30%,
      rgba(20, 2, 3, 0.20) 46%,
      rgba(20, 2, 3, 0.04) 60%,
      transparent 72%),
    linear-gradient(180deg, rgba(8, 1, 2, 0.16) 0%, transparent 18%),
    linear-gradient(0deg,
      rgba(43, 6, 8, 0.48) 0%,
      rgba(43, 6, 8, 0.26) 18%,
      rgba(43, 6, 8, 0.08) 32%,
      transparent 44%),
    radial-gradient(125% 135% at 66% 36%, transparent 48%, rgba(5, 1, 2, 0.18) 100%);
}

/* ---------- TOP BAR ---------- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 92px;
  padding: max(16px, env(safe-area-inset-top)) clamp(20px, 4vw, 64px) 16px;
  /* iOS notch/Dynamic Island: brand e menu mai sotto la status bar */
  padding-left: max(clamp(20px, 4vw, 64px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 4vw, 64px), env(safe-area-inset-right));
  background: linear-gradient(180deg, rgba(10, 1, 2, 0.4) 0%, rgba(10, 1, 2, 0.08) 62%, transparent 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.menu {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  letter-spacing: 0.3em;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.92;
  justify-self: start;
  padding: 11px 6px;
  margin: -11px -6px;
  transition: opacity 0.25s ease;
}
.menu:hover { opacity: 1; }
.menu__icon { display: inline-flex; opacity: 0.85; transition: opacity 0.25s ease; }
.menu:hover .menu__icon { opacity: 1; }

/* Tasto chiamata (mobile): occupa lo slot nav quando i link sono nascosti */
.topbar__call {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--cream);
  border: 1px solid rgba(245, 231, 207, 0.5);
  background: rgba(245, 231, 207, 0.05);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.topbar__call:hover { background: var(--cream); color: var(--red); border-color: var(--cream); }

.brand { justify-self: center; }
.brand img {
  width: clamp(126px, 15vw, 182px);
  height: auto;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.62));
}

.nav {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.24em;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.78;
  transition: opacity 0.25s ease;
}
.nav__link:hover { opacity: 1; }
.nav__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff8ed;
  background: var(--ink);
  border: 1px solid rgba(245, 231, 207, 0.45);
  text-decoration: none;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 40px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.nav__btn:hover { background: var(--cream); color: var(--red); border-color: var(--cream); transform: translateY(-1px); }

/* ---------- TENDINA DI NAVIGAZIONE ---------- */
/* backdrop: il sito resta visibile dietro, oscurato e sfocato */
.navsheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  opacity: 0;
  background: rgba(8, 1, 2, 0.5);
  -webkit-backdrop-filter: blur(7px) saturate(0.85);
  backdrop-filter: blur(7px) saturate(0.85);
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.navsheet.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.45s ease;
}
html.nav-open, html.nav-open body { overflow: hidden; }

/* pannello glass arrotondato che cala dall'alto, non copre tutto lo schermo */
.navsheet__panel {
  position: absolute;
  top: max(clamp(72px, 9vh, 104px), calc(env(safe-area-inset-top) + 60px));
  left: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left));
  right: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right));
  margin-inline: auto;
  max-width: 720px;
  max-height: calc(100svh - clamp(120px, 16vh, 188px) - env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4.5vw, 44px);
  padding-top: clamp(56px, 7vw, 72px);
  border-radius: clamp(22px, 3vw, 30px);
  background:
    radial-gradient(120% 85% at 84% -12%, rgba(160, 18, 24, 0.5) 0%, transparent 60%),
    linear-gradient(180deg, rgba(109, 13, 18, 0.82) 0%, rgba(43, 6, 8, 0.9) 100%);
  border: 1px solid rgba(245, 231, 207, 0.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(245, 231, 207, 0.22), 0 40px 90px -24px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-28px);
  transition: opacity 0.5s ease, transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}
.navsheet.is-open .navsheet__panel { opacity: 1; transform: translateY(0); }
.navsheet__panel:focus { outline: none; }
/* piccolo segno oro in alto, come una targa d'insegna */
.navsheet__panel::before {
  content: "";
  position: absolute;
  top: clamp(20px, 2.6vw, 26px);
  left: clamp(26px, 4.5vw, 44px);
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  opacity: 0.72;
}

.navsheet__close {
  position: absolute;
  top: clamp(16px, 2.4vw, 22px);
  right: clamp(16px, 3vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--cream);
  letter-spacing: 0.3em;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 11px 6px;
  opacity: 0.85;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.25s ease;
}
.navsheet__close:hover { opacity: 1; }

.navsheet__nav {
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 0.6vh, 8px);
  width: 100%;
}
.navsheet__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 3vw, 36px);
  padding: clamp(11px, 1.9vh, 20px) 0;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 231, 207, 0.14);
  opacity: 0;
  transform: translateY(20px);
}
.navsheet.is-open .navsheet__link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.navsheet.is-open .navsheet__link:nth-child(1) { transition-delay: 0.14s; }
.navsheet.is-open .navsheet__link:nth-child(2) { transition-delay: 0.20s; }
.navsheet.is-open .navsheet__link:nth-child(3) { transition-delay: 0.26s; }
.navsheet.is-open .navsheet__link:nth-child(4) { transition-delay: 0.32s; }
.navsheet.is-open .navsheet__link:nth-child(5) { transition-delay: 0.38s; }
.navsheet__idx {
  flex: none;
  min-width: 2.4em;
  font-size: clamp(11px, 1.3vw, 13px);
  letter-spacing: 0.22em;
  color: var(--gold);
  opacity: 0.82;
}
.navsheet__word {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(30px, 7vw, 54px);
  line-height: 1.06;
  letter-spacing: 0.004em;
  transition: color 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
  .navsheet__link:hover .navsheet__word { color: var(--gold); transform: translateX(12px); }
}

.navsheet__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: clamp(22px, 3.4vh, 38px) 0 0;
  color: rgba(245, 231, 207, 0.7);
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.5s ease 0.46s;
}
.navsheet.is-open .navsheet__foot { opacity: 1; }
.navsheet__call {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.25s ease;
}
.navsheet__call:hover { color: var(--gold); }
.navsheet__sep { opacity: 0.45; }
.navsheet__place,
.navsheet__place:visited {
  color: inherit;
  text-decoration: none;
}
.navsheet__place:hover { color: var(--cream); }

@media (max-width: 800px) {
  .navsheet__panel {
    top: 50%;
    translate: 0 -50%;
    bottom: auto;
    max-height: calc(100svh - max(18px, env(safe-area-inset-bottom)));
    min-height: 0;
    padding: clamp(52px, 8svh, 66px) clamp(20px, 6vw, 30px) 16px;
    overflow-y: auto;
  }
  .navsheet__panel::before { top: 18px; left: clamp(22px, 6vw, 30px); }
  .navsheet__close { top: 10px; right: 14px; min-width: 44px; min-height: 44px; justify-content: flex-end; }
  .navsheet__nav { gap: 0; }
  .navsheet__link { padding: clamp(7px, 1.45svh, 13px) 0; }
  .navsheet__word { font-size: clamp(2rem, 10vw, 2.6rem); }
  .navsheet__foot { gap: 6px 10px; margin: clamp(10px, 2svh, 18px) 0 0; font-size: 12px; }
}

@media (max-width: 800px) and (max-height: 650px) {
  .navsheet__panel { padding-top: 46px; padding-bottom: 8px; }
  .navsheet__link { padding-block: 5px; }
  .navsheet__word { font-size: 1.8rem; }
  .navsheet__foot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .navsheet__panel { transition: none; }
  .navsheet__link,
  .navsheet.is-open .navsheet__link { opacity: 1; transform: none; transition: none; }
  .navsheet__foot { transition: none; }
}

/* ---------- HERO CONTENT ---------- */
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  padding: 0 clamp(28px, 6vw, 100px);
}
.hero__text { max-width: 480px; }

@media (min-width: 861px) {
  .hero__content {
    align-items: flex-end;
    justify-content: center;
    padding: 0 24px clamp(68px, 8vh, 76px);
  }
  .hero__text { max-width: none; text-align: center; }
  .hero .hero__title {
    max-width: none;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(18px, 1.3vw, 21px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.01em;
  }
  .hero__subtitle { display: none; }
}

.hero__title {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(40px, 4.7vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--cream);
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.5);
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.hero__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(18px, 2.4vw, 28px);
  color: var(--gold);
}
.hero__divider span {
  height: 1px;
  width: clamp(28px, 5vw, 52px);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 70%, transparent));
}
.hero__divider span:last-child {
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 70%, transparent), transparent);
}
.hero__divider-dot {
  flex: none;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: color-mix(in srgb, var(--gold) 85%, transparent);
}

.hero__subtitle {
  margin-top: clamp(14px, 1.5vw, 20px);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  letter-spacing: 0.025em;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
}

.hero__actions {
  margin-top: clamp(20px, 2vw, 28px);
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 40px);
  flex-wrap: wrap;
}

/* Tre prove concise, disposte come segni autonomi sul lato fotografico. */
.hero__proofs {
  position: absolute;
  top: 50%;
  right: clamp(34px, 4.8vw, 76px);
  z-index: 4;
  display: grid;
  width: clamp(218px, 17vw, 252px);
  --proof-gap: clamp(24px, 3.4vh, 36px);
  gap: var(--proof-gap);
  transform: translateY(-42%);
}
.hero-proof {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 14px;
  color: #fff8ed;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.35;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
  transition: color 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-proof:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 46px;
  bottom: clamp(-18px, -1.7vh, -12px);
  width: clamp(96px, 9vw, 128px);
  height: 1px;
  background: rgba(245, 231, 207, 0.38);
}
.hero-proof svg {
  width: 32px;
  height: 32px;
  flex: none;
  padding: 6px;
  border: 1px solid rgba(217, 183, 121, 0.72);
  border-radius: 50%;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-proof:first-child svg { fill: rgba(217, 183, 121, 0.12); }
a.hero-proof:hover { color: var(--gold); transform: translateX(3px); }

/* Primary CTA: glossy, soft depth, creamy highlight */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: linear-gradient(180deg, #b9161d 0%, #8c1016 55%, #6d0d12 100%);
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 600;
  padding: 17px 34px;
  border-radius: 44px;
  border: 1px solid rgba(245, 231, 207, 0.16);
  box-shadow:
    0 18px 40px -12px rgba(109, 13, 18, 0.7),
    0 2px 8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}
.cta span { position: relative; z-index: 1; }
.cta__icon { position: relative; z-index: 1; display: inline-flex; }
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 44%);
  pointer-events: none;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 26px 52px -12px rgba(160, 18, 24, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Secondary CTA: minimal, thin, icon-led */
.play {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.88;
  transition: opacity 0.25s ease;
}
.play:hover { opacity: 1; }
.play__icon {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 231, 207, 0.45);
  border-radius: 50%;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.play:hover .play__icon {
  background: var(--cream);
  color: var(--red);
  border-color: var(--cream);
  transform: scale(1.06);
}

/* ---------- SCROLL HINT ---------- */
.scrollhint {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vh, 38px);
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(255, 248, 237, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  transition: opacity 0.5s ease;
}
.scrollhint__label { animation: breathe 3.4s ease-in-out infinite; }
.scrollhint::before {
  content: "";
  width: clamp(58px, 6vw, 86px);
  height: 1px;
  flex: none;
  background: linear-gradient(90deg, transparent, rgba(217, 183, 121, 0.72));
}
.scrollhint__track {
  position: relative;
  width: clamp(58px, 6vw, 86px);
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 183, 121, 0.72), rgba(245, 231, 207, 0.18));
  border-radius: 2px;
  overflow: hidden;
}
.scrollhint__fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--cream));
  transform: translateX(-100%);
  animation: fill 2.6s cubic-bezier(0.6, 0, 0.2, 1) infinite;
}

/* Barra di servizio della hero: firma a sinistra, invito al centro, contatti a destra. */
.hero__bottom-bar {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  bottom: max(clamp(24px, 4vh, 38px), env(safe-area-inset-bottom));
  left: clamp(24px, 4vw, 64px);
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.hero__bottom-title {
  justify-self: start;
  margin: 0;
  color: var(--cream);
  font-family: "Montserrat", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .82);
  text-wrap: balance;
}
.hero__bottom-title-mobile { display: none; }
.hero__bottom-bar .scrollhint {
  position: static;
  transform: none;
}
.hero__contacts {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero__contacts a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(245, 231, 207, .46);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(43, 6, 8, .18);
  text-decoration: none;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.hero__contacts a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(43, 6, 8, .52);
  transform: translateY(-2px);
}
.hero__contacts svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero__contacts .hero__contact-dot {
  fill: currentColor;
  stroke: none;
}
.hero__whatsapp-mark {
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("whatsapp-official.svg") center / contain no-repeat;
  mask: url("whatsapp-official.svg") center / contain no-repeat;
}
@keyframes fill {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ---------- SECTIONS (shared) ---------- */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 10vw, 140px) 0;
}
.section--cream { background: var(--surface-warm); color: var(--red-deep); }
#mondo.section--cream .wave path { fill: var(--surface-warm); }
#mondo.section--cream .duo__body p { color: #54251f; }
.section--visit { background: var(--surface-warm-deep); color: var(--red-deep); }
.section--visit .eyebrow { color: var(--red-bright); }
.section--visit .lead { color: #5f332b; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.section--visit .btn:not(.btn--solid) { color: var(--red-deep); }
.section--visit .media__img { aspect-ratio: 4 / 5; object-fit: cover; }
.trust { padding-block: clamp(64px, 7vw, 96px); }
.trust__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: clamp(36px, 7vw, 110px);
}
.trust__copy { max-width: 760px; }
.trust__action { display: flex; flex-direction: column; gap: 16px; }
.trust__aic { display: block; width: 100%; height: auto; }
.trust .h-title {
  max-width: 16ch;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1;
  text-wrap: balance;
}
.trust .lead { max-width: 62ch; }
.trust__action .btn { justify-content: center; width: 100%; min-height: 56px; margin: 0; padding-inline: 18px; font-size: .78rem; white-space: nowrap; }

@media (max-width: 760px) {
  .trust__inner { grid-template-columns: 1fr; gap: 30px; }
  .trust .h-title { font-size: clamp(2.4rem, 11vw, 3.5rem); }
  .trust__action { width: min(100%, 280px); }
  .trust__action .btn { white-space: normal; }
}
.section--red {
  background: radial-gradient(125% 120% at 50% 0%, #7c1016 0%, #5a0c11 42%, #3a080c 100%);
  color: var(--cream);
}
#gusti.section--red {
  background:
    radial-gradient(125% 120% at 50% 0%, rgba(124,16,22,0.72) 0%, rgba(90,12,17,0.80) 42%, rgba(22,3,4,0.93) 100%),
    url('images/gusti-bg-480.webp') center / cover no-repeat;
}
@media (min-width: 600px) {
  #gusti.section--red {
    background-image:
      radial-gradient(125% 120% at 50% 0%, rgba(124,16,22,0.72) 0%, rgba(90,12,17,0.80) 42%, rgba(22,3,4,0.93) 100%),
      url('images/gusti-bg-768.webp');
  }
}
@media (min-width: 900px) {
  #gusti.section--red {
    background-image:
      radial-gradient(125% 120% at 50% 0%, rgba(124,16,22,0.72) 0%, rgba(90,12,17,0.80) 42%, rgba(22,3,4,0.93) 100%),
      url('images/gusti-bg.webp');
  }
}
.section--hortus {
  background: #fff;
  color: var(--ink);
}

.container { width: min(1200px, 90vw); margin: 0 auto; }

/* Wave divider between the dark hero and the first cream section */
.section--wave { padding-top: clamp(40px, 6vw, 80px); }
.wave {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: clamp(46px, 7vw, 104px);
  transform: translateY(-99%);
  display: block;
}
.wave path { fill: var(--cream); }

/* ---------- TYPE BLOCKS ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: clamp(16px, 1.6vw, 22px);
}
.section--cream .eyebrow { color: var(--red-bright); }
.section--red .eyebrow { color: var(--gold); }
.eyebrow--amber {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: oklch(78% 0.128 78);
}
/* Su sezione bianca (Hortus) l'amber chiaro va sotto AA: bronzo profondo, ≥4.5:1 */
.section--hortus .eyebrow--amber { color: #8a5a14; }

.h-title {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.07;
  letter-spacing: -0.005em;
}

/* Momento firma: il titolo dei gusti passa da oro a crema mentre la sezione entra
   in scroll, come una colata calda che si assesta. Nativo CSS (view-timeline), zero JS.
   --gfill iniziale 100% = stato di riposo identico a oggi (crema piena) per browser
   senza supporto e per prefers-reduced-motion. Oro e crema sono entrambi gia' usati
   e verificati leggibili su questo sfondo (eyebrow oro, h-title crema di default). */
@property --gfill {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 100%;
}
#gusti .gusti__head .h-title {
  color: color-mix(in oklab, var(--gold), var(--cream) var(--gfill));
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    #gusti .gusti__head .h-title {
      animation: gusti-fill linear both;
      animation-timeline: view(block);
      animation-range: entry 0% entry 100%;
    }
  }
}
@keyframes gusti-fill {
  from { --gfill: 0%; }
  to { --gfill: 100%; }
}

.lead {
  margin-top: clamp(18px, 2vw, 26px);
  max-width: 46ch;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.75;
  letter-spacing: 0.01em;
}
.section--cream .lead { color: #6a3a30; }
.section--red .lead { color: var(--cream-soft); }
.h-title--light { color: var(--ink); }
.lead--light { color: var(--red-deep); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(26px, 3vw, 38px);
  padding: 14px 30px;
  border-radius: 44px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease;
}
.section--cream .btn:hover { background: var(--red-deep); color: var(--cream); transform: translateY(-2px); }
.section--red .btn:hover { background: var(--cream); color: var(--red-deep); transform: translateY(-2px); }
.btn--amber {
  background: oklch(78% 0.128 78);
  color: oklch(27% 0.03 156);
  border-color: oklch(78% 0.128 78);
  font-weight: 700;
}
.btn--amber:hover { background: oklch(72% 0.14 75); border-color: oklch(72% 0.14 75); transform: translateY(-2px); }

.btn--solid {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--red-deep);
}
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--red-deep); }

/* ---------- SPLIT LAYOUT ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(36px, 6vw, 92px);
}

.split > .media {
  width: calc(100% + max(5vw, (100vw - 1200px) / 2));
  margin-right: calc(0px - max(5vw, (100vw - 1200px) / 2));
}
.split > .media .media__img { width: 100%; object-fit: cover; }
.split__text { max-width: 520px; }

.media { position: relative; }

/* ---------- IMAGE PLACEHOLDERS ---------- */
.ph {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(109, 13, 18, 0.04) 0 12px, rgba(109, 13, 18, 0.07) 12px 24px);
  border: 1.5px dashed rgba(109, 13, 18, 0.32);
}
.ph--on-dark {
  background:
    repeating-linear-gradient(45deg, rgba(245, 231, 207, 0.05) 0 12px, rgba(245, 231, 207, 0.09) 12px 24px);
  border-color: rgba(245, 231, 207, 0.3);
}
.ph__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  color: rgba(109, 13, 18, 0.62);
}
.ph--on-dark .ph__inner { color: rgba(245, 231, 207, 0.66); }
.ph__icon { width: 30px; height: 30px; opacity: 0.85; }
.ph__label { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; line-height: 1.4; }
.ph__dims {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* ---------- SEAL "EST. 2013" ---------- */
.seal {
  position: absolute;
  right: -14px;
  bottom: -22px;
  width: clamp(86px, 10vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.1em;
  line-height: 1.15;
  background: radial-gradient(circle at 50% 38%, #8c1016, #5a0c11);
  color: var(--gold);
  border: 1px solid rgba(217, 183, 121, 0.55);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.55);
}
.section--red .seal { background: var(--cream); color: var(--red); border-color: rgba(109, 13, 18, 0.35); }

/* ---------- GUSTI ---------- */
.gusti__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: clamp(24px, 4vw, 60px);
  margin-bottom: clamp(40px, 5vw, 70px);
}
.gusti__head .right { display: flex; flex-direction: column; align-items: flex-start; }
.gusti__head .lead { margin-top: 0; }

.flavors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.flavor {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 5;
}
.flavor .ph { aspect-ratio: 4 / 5; border-radius: 16px; }
.flavor__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-cubic, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.flavor:hover .flavor__img { transform: scale(1.06); }
.flavor__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(14px, 1.5vw, 22px) clamp(14px, 1.5vw, 20px);
  background: linear-gradient(to top, rgba(6, 2, 2, 0.98) 0%, rgba(6, 2, 2, 0.94) 50%, rgba(6, 2, 2, 0.82) 85%, rgba(6, 2, 2, 0.55) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.flavor__name {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.18;
  color: #f5e7cf;
}
.flavor__desc {
  display: block;
  margin-top: 6px;
  font-size: clamp(10px, 0.75vw, 12px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.flavor__add {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245, 231, 207, 0.45);
  background: rgba(245, 231, 207, 0.1);
  color: var(--cream);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.flavor__add:hover { background: var(--cream); color: var(--red); transform: scale(1.08); }

/* ---------- DUE ANIME (GELATERIA + PASTICCERIA) ---------- */
.duo__head { max-width: 60ch; margin-bottom: clamp(36px, 4.5vw, 64px); }
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}
.duo__card { display: flex; flex-direction: column; gap: 22px; }
.duo__card .ph { border-radius: 18px; }
.duo__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  display: block;
  box-shadow: 0 18px 44px rgba(43, 6, 8, 0.2);
}
/* Spezza la simmetria delle due card (no identical-grid): la seconda scende. */
@media (min-width: 760px) {
  .duo__card:nth-child(2) {
    margin-top: clamp(2rem, 5vw, 5.5rem);
  }
}
.duo__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.duo__title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
}
.duo__body p { max-width: 42ch; line-height: 1.6; color: #6a3a30; }
/* Foto di sezione (team, specialità): cover + ombra premium, aspect inline. */
.media__img {
  width: 100%;
  height: auto; /* l'attributo height HTML non deve vincere sull'aspect-ratio inline */
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  display: block;
  box-shadow: 0 18px 44px rgba(43, 6, 8, 0.22);
}
.duo__body .btn { margin-top: 4px; }

/* Full-bleed editoriale: due mondi fotografici, senza contenitore o card. */
#mondo { padding-block: 0; overflow: hidden; }
#mondo > .container { width: 100%; max-width: none; }
#mondo .duo__head { width: min(1200px, 90vw); margin-inline: auto; }
#mondo .duo { gap: 0; }
.duo__clip-defs { position: absolute; pointer-events: none; }
#mondo .duo__card {
  position: relative;
  min-height: clamp(560px, 62vw, 780px);
  overflow: hidden;
  gap: 0;
  isolation: isolate;
}
#mondo .duo__card:nth-child(2) { margin-top: 0; }
/* Il secondo pannello si innesta nel primo lungo una curva Bézier organica. */
@media (min-width: 861px) {
  #mondo .duo__card:first-child {
    width: calc(100% + 2vw);
    z-index: 0;
  }
  #mondo .duo__card:nth-child(2) {
    width: calc(100% + 9vw);
    margin-left: -9vw;
    z-index: 1;
    clip-path: url("#duoBlendDesktop");
  }
  #mondo .duo__card:nth-child(2) .duo__body {
    left: calc(9vw + clamp(24px, 4vw, 64px));
  }
}
#mondo .duo__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 36%, rgba(20, 2, 3, 0.14) 58%, rgba(20, 2, 3, 0.72) 100%);
  pointer-events: none;
}
#mondo .duo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  transform: scale(1.015);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.duo__media-link { position: absolute; inset: 0; z-index: 0; display: block; }
.duo__media-link:focus-visible { z-index: 3; outline: 3px solid var(--gold); outline-offset: -5px; }
#mondo .duo__body {
  position: absolute;
  inset: auto clamp(24px, 4vw, 64px) clamp(32px, 5vw, 68px);
  z-index: 2;
  max-width: 40ch;
  color: #fff8ed;
}
#mondo .duo__title { font-size: clamp(32px, 3.4vw, 50px); }
#mondo.section--cream .duo__body p { color: rgba(255, 248, 237, 0.86); }
#mondo .duo__body .btn { color: #fff8ed; }
@media (hover: hover) {
  #mondo .duo__card:hover .duo__img { transform: scale(1.045); }
}
@media (max-width: 860px) {
  .hero {
    height: var(--mobile-hero-height, 100dvh);
    min-height: var(--mobile-hero-height, 100dvh);
    background-color: #3a080c;
    background-image: -webkit-image-set(url("hero5-poster-768.webp") 1x, url("hero5-poster-1280.webp") 2x);
    background-image: image-set(url("hero5-poster-768.webp") 1x, url("hero5-poster-1280.webp") 2x);
    background-position: 50% 46%;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .hero__sticky {
    position: relative;
    top: auto;
    height: var(--mobile-hero-height, 100dvh);
    min-height: var(--mobile-hero-height, 100dvh);
    /* Poster allineato al video come fallback del layer accelerato iOS. */
    background-color: #3a080c;
    background-image: -webkit-image-set(url("hero5-poster-768.webp") 1x, url("hero5-poster-1280.webp") 2x);
    background-image: image-set(url("hero5-poster-768.webp") 1x, url("hero5-poster-1280.webp") 2x);
    background-position: 50% 46%;
    background-size: cover;
    background-repeat: no-repeat;
  }
  #mondo::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 5;
    height: clamp(240px, 34vh, 320px);
    background: linear-gradient(180deg,
      rgba(67, 8, 12, .88) 0%,
      rgba(67, 8, 12, .88) 38%,
      rgba(67, 8, 12, .74) 52%,
      rgba(67, 8, 12, .38) 74%,
      transparent 100%);
    opacity: var(--mondo-gradient-opacity, 1);
    pointer-events: none;
    will-change: opacity;
    transition: opacity 80ms linear;
  }
  .scrollhint {
    display: flex;
    top: calc(100dvh - max(27px, calc(env(safe-area-inset-bottom) + 21px)));
    bottom: auto;
    width: calc(100% - 32px);
    justify-content: center;
    gap: 10px;
    font-size: 9px;
  }
  .scrollhint::before,
  .scrollhint__track {
    width: clamp(38px, 11vw, 52px);
    background: rgba(217, 183, 121, .34);
  }
  .scrollhint__label { animation: none; opacity: .7; }
  .scrollhint__fill { display: none; }
  .hero__bottom-bar {
    top: auto;
    right: max(16px, calc(env(safe-area-inset-right) + 12px));
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
    left: max(24px, env(safe-area-inset-left));
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }
  .hero__bottom-title {
    max-width: 32ch;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: .09em;
  }
  .hero__bottom-title-desktop { display: none; }
  .hero__bottom-title-mobile { display: inline; }
  .hero__bottom-bar .scrollhint {
    display: none;
  }
  .hero__bottom-bar .scrollhint::before,
  .hero__bottom-bar .scrollhint__track { display: none; }
  .hero__contacts { gap: 5px; }
  .hero__contacts .hero__contact-secondary { display: none; }
  .hero__contacts a {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .hero__contacts svg { width: 24px; height: 24px; }
  .hero__whatsapp-mark { width: 26px; height: 26px; }
  #mondo .duo { gap: 0; }
  #mondo .duo__card { min-height: min(72svh, 680px); }
  #mondo .duo__card::after {
    background: linear-gradient(180deg,
      transparent 14%,
      rgba(20, 2, 3, .16) 27%,
      rgba(20, 2, 3, .46) 43%,
      rgba(20, 2, 3, .74) 61%,
      rgba(20, 2, 3, .99) 100%);
  }
  #mondo .duo__body {
    text-shadow: 0 2px 10px rgba(0, 0, 0, .92);
  }
  #mondo .duo__title { color: #fff; }
  #mondo.section--cream .duo__body p {
    color: #fff8ed;
    font-weight: 500;
  }
  #mondo .duo__body .btn {
    background: rgba(22, 3, 4, .62);
    border-color: #fff8ed;
  }
  #mondo .duo__card:nth-child(2) {
    width: 100%;
    margin-top: -104px;
    clip-path: url("#duoBlendMobile");
    filter: drop-shadow(0 -1px 0 rgba(217, 183, 121, 0.76));
  }
  #mondo .duo__card:nth-child(2) .duo__img {
    transform: translateY(-4.5%) scale(1.11);
    transform-origin: center center;
  }
  #mondo .duo__body { inset: auto 24px max(108px, calc(env(safe-area-inset-bottom) + 92px)); }
}

/* ---------- FAMILY PORTRAIT ---------- */
#team {
  /* Il riquadro desktop mostra solo il margine utile alla curva; su mobile
     resta il ritratto originale 3:2, senza copie sfocate o ritagli del gruppo. */
  min-height: clamp(344px, 40vw, 720px);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--red-deep);
  color: #fff8ed;
}
#team::after {
  content: none;
}
#team > .container {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: inherit;
  display: block;
}
#team .media {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  /* L'immagine estesa contiene spazio reale prima del gruppo: la curva
     resta il suo bordo senza attraversare nessuna persona. */
  width: 60%;
  margin: 0;
  clip-path: url("#flowTeamDesktop");
  overflow: hidden;
}
#team .media picture {
  display: block;
  height: 100%;
}
#team .media::before {
  content: none;
}
#team .media__img {
  position: relative;
  z-index: 0;
  width: 100%;
  margin: 0;
  height: 100%;
  min-height: inherit;
  aspect-ratio: auto !important;
  object-fit: cover;
  object-position: right center;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
#team .split__text {
  position: absolute;
  left: max(5vw, env(safe-area-inset-left));
  top: 50%;
  bottom: auto;
  z-index: 2;
  width: min(560px, calc(40vw - max(5vw, env(safe-area-inset-left))));
  max-width: none;
  transform: translateY(-50%);
}
#team .eyebrow { color: var(--gold); }
#team .h-title {
  max-width: 12ch;
  color: #fff8ed;
  font-size: clamp(2.3rem, 4.6vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
#team .lead {
  max-width: 48ch;
  color: rgba(255, 248, 237, 0.88);
  font-size: clamp(15px, 1.15vw, 18px);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}
#team .btn { color: #fff8ed; }
#team .btn:hover { background: #fff8ed; color: var(--red-deep); }
.team-title--mobile { display: none; }

@media (max-width: 860px) {
  .team-title--desktop { display: none; }
  .team-title--mobile { display: inline; }
  #team { min-height: max(440px, calc(66.667vw + 148px)); }
  #team::after {
    content: none;
  }
  #team .media {
    inset: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    margin: 0;
    clip-path: none;
    overflow: hidden;
    filter: none;
  }
  #team .media__img {
    width: 100%;
    height: 100%;
    margin-left: 0;
    object-fit: contain;
    object-position: center;
    transform: none;
  }
  #team .split__text {
    left: 20px;
    top: auto;
    bottom: max(48px, calc(env(safe-area-inset-bottom) + 38px));
    width: calc(100% - 40px);
    transform: none;
  }
  #team .eyebrow { margin-bottom: 12px; }
  #team .h-title {
    max-width: 100%;
    font-size: clamp(2rem, 9.2vw, 2.55rem);
    line-height: .98;
  }
  #team .lead {
    max-width: 38ch;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.55;
  }
  #team .btn {
    margin-top: 12px;
    padding: 12px 20px;
  }
}

/* ---------- PAGINA GUSTI: VASETTI CON COPERCHIO ---------- */
.gusti-page { background: radial-gradient(125% 120% at 50% 0%, #7c1016 0%, #5a0c11 44%, #3a080c 100%); color: var(--cream); min-height: 100vh; }
.gusti-topbar {
  display: flex; align-items: center; justify-content: space-between;
  width: min(1200px, 90vw); margin: 0 auto; padding: 26px 0;
}
.gusti-topbar .back {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cream); text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.85; transition: opacity 0.25s ease;
}
.gusti-topbar .back:hover { opacity: 1; }
.gusti-topbar img { height: 46px; width: auto; }

.gusti-hero { text-align: center; padding: clamp(20px, 4vw, 48px) 0 clamp(40px, 5vw, 64px); }
.gusti-hero .eyebrow { color: var(--gold); }
.gusti-hero .lead { margin-left: auto; margin-right: auto; color: var(--cream-soft); }

.tubs {
  width: min(1200px, 90vw); margin: 0 auto;
  padding-bottom: clamp(70px, 9vw, 130px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 1.8vw, 26px);
}
.tub {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #2b0608;
  box-shadow: 0 18px 38px -18px rgba(0, 0, 0, 0.6);
}
.tub__pot { position: absolute; inset: 0; }
.tub__pot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tub__pot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 3, 5, 0.85) 100%);
}
.tub__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 18px 18px 20px; text-align: center;
  transform: translateY(8px); opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}
.tub__name {
  font-family: "Playfair Display", serif; font-weight: 500;
  font-size: clamp(16px, 1.3vw, 20px); line-height: 1.15; color: var(--cream);
}
.tub__desc {
  display: block; margin-top: 6px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
/* Coperchio: pannello bordeaux con bordo oro che si solleva */
.tub__lid {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(120% 120% at 50% 30%, #8c1016 0%, #5a0c11 55%, #3a080c 100%);
  border: 1px solid rgba(217, 183, 121, 0.4);
  border-radius: 18px;
  transform-origin: top center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  will-change: transform;
}
.tub__lid::before {
  content: ""; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(217, 183, 121, 0.5);
  background: radial-gradient(circle at 50% 38%, rgba(217,183,121,0.18), transparent 70%);
}
.tub__lid-name {
  font-family: "Playfair Display", serif; font-weight: 500;
  font-size: clamp(15px, 1.2vw, 19px); line-height: 1.18; color: var(--cream); text-align: center;
  padding: 0 14px;
}
.tub__hint {
  position: absolute; bottom: 14px;
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); opacity: 0.7;
}
/* Stato aperto: hover su desktop, classe .is-open su tap mobile */
.tub:hover .tub__lid,
.tub.is-open .tub__lid { transform: translateY(-78%) rotateX(38deg); opacity: 0; }
.tub:hover .tub__caption,
.tub.is-open .tub__caption { transform: translateY(0); opacity: 1; }

@media (hover: none) {
  /* Mobile: coperchi socchiusi per segnalare l'interattività */
  .tub__lid { transform: translateY(-10%) rotateX(8deg); }
  .tub__hint { content: "tocca"; }
}

/* ---------- ESPERIENZA COLLAGE ---------- */
.media-collage { position: relative; display: flex; flex-direction: column; }
.media-collage .ph:first-child { aspect-ratio: 16 / 9; }
.media-collage .ph:last-child {
  aspect-ratio: 4 / 3;
  width: 58%;
  margin-left: auto;
  margin-top: -14%;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.4);
}

/* ---------- HORTUS PHOTOS GRID ---------- */
.hortus-photos {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.2vw, 16px);
}
.hortus-photos .ph { aspect-ratio: 3 / 4; }
.ph--on-forest .ph__inner {
  background: oklch(95% 0.008 80);
  border-color: oklch(85% 0.012 80 / 0.5);
}
.ph--on-forest .ph__icon,
.ph--on-forest .ph__label,
.ph--on-forest .ph__dims { color: oklch(55% 0.018 80); }
.seal--amber {
  background: transparent;
  color: oklch(60% 0.128 78);
  border-color: oklch(78% 0.128 78 / 0.6);
}

/* ---------- FLAVOR BADGE ---------- */
.flavor__badge {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: rgba(8, 2, 2, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
}
.flavor__badge--nostra {
  border-color: rgba(245, 231, 207, 0.45);
  color: rgba(245, 231, 207, 0.9);
}
.flavor__img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2a0608 0%, #1a0407 100%);
}
.flavor--nostra { background: #1a0407; }

/* ---------- FINAL CTA ---------- */
.cta-final {
  min-height: clamp(480px, 55vw, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-final__media,
.cta-final__scrim {
  position: absolute;
  inset: 0;
}
.cta-final__media {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.cta-final__scrim {
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(27, 2, 4, 0.78), rgba(27, 2, 4, 0.40) 62%, rgba(27, 2, 4, 0.12)),
    linear-gradient(90deg, rgba(27, 2, 4, 0.42), rgba(27, 2, 4, 0.10));
}
.cta-final > .container { position: relative; z-index: 2; }
.cta-final .h-title { max-width: 16ch; margin: 0 auto; }
.cta-final__address { margin: clamp(12px, 1.6vw, 18px) auto 0; color: rgba(245,231,207,.82); font-size: clamp(.82rem, 1.1vw, .98rem); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cta-final .lead { color: var(--cream-soft); }
.cta-final__actions {
  margin-top: clamp(30px, 3.4vw, 44px);
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-final__actions .btn { margin-top: 0; }
@media (max-width: 760px) {
  .cta-final { min-height: 560px; }
  .cta-final__scrim {
    background: linear-gradient(0deg, rgba(27, 2, 4, 0.84), rgba(27, 2, 4, 0.46) 62%, rgba(27, 2, 4, 0.14));
  }
}

/* ---------- DOVE / LOCATION ---------- */
.dove {
  margin-top: clamp(34px, 4vw, 56px);
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  text-align: left;
  max-width: 980px;
  margin-inline: auto;
}
@media (min-width: 820px) {
  .dove { grid-template-columns: 0.92fr 1.08fr; align-items: stretch; }
}
.dove__info { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 22px); }
.dove__row { display: flex; flex-direction: column; gap: 5px; }
.dove__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.dove__val { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.5; color: var(--cream); }
.dove__val a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(217, 183, 121, 0.5);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.dove__val a:hover { color: var(--gold); }
.dove .cta-final__actions { margin-top: clamp(8px, 1.4vw, 14px); justify-content: flex-start; }
.dove__map {
  position: relative;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(245, 231, 207, 0.18);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
  background: var(--red-deep);
}
.dove__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.92); }

/* ---------- FASCIA CINEMATICA (full-bleed + parallax) ---------- */
.band {
  position: relative;
  min-height: clamp(46svh, 58svh, 70svh);
  display: block;
  overflow: clip;
  isolation: isolate;
  background: var(--red-deep);
}
.band__media {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 60%;
  clip-path: url("#flowBandDesktop");
}
.flow-stroke {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.flow-stroke path {
  fill: none;
  stroke: rgba(217, 183, 121, 0.82);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}
#team .flow-stroke path { stroke-width: 2; }
@media (max-width: 860px) {
  .flow-stroke { display: none; }
}
.band__media img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
}
.band__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent 38%, rgba(43, 6, 8, 0.18) 52%, rgba(43, 6, 8, 0.72) 66%, var(--red-deep) 82%);
}
.band__line {
  position: absolute;
  top: 45%;
  right: max(6vw, env(safe-area-inset-right));
  z-index: 2;
  width: min(31vw, 460px);
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 1.15rem + 3.2vw, 3.5rem);
  line-height: 1.1;
  text-align: left;
  color: #fff;
  text-shadow: 0 2px 30px rgba(12, 1, 2, 0.7);
  padding: 0;
  max-inline-size: 24ch;
  transform: translateY(-50%);
}

@media (max-width: 860px) {
  .band { min-height: 82svh; }
  .band__media {
    inset: 0 0 auto;
    width: 100%;
    height: 64%;
    clip-path: url("#flowImageMobile");
    filter: drop-shadow(0 1px 0 rgba(217, 183, 121, 0.72));
  }
  .band__media img { inset: -12% 0; height: 124%; }
  .band__scrim { background: linear-gradient(0deg, var(--red-deep) 0%, rgba(43,6,8,.72) 38%, transparent 66%); }
  .band__line {
    top: 68%;
    right: auto;
    left: 20px;
    bottom: auto;
    width: calc(100% - 40px);
    transform: none;
  }
}

/* ---------- MOTION: reveal (gated dietro html.reveal-on) + parallax ---------- */
html.reveal-on [data-reveal] {
  opacity: 1;
  transform: translateY(26px);
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
html.reveal-on .duo__card:nth-child(2) { transition-delay: 0.12s; }
@media (prefers-reduced-motion: reduce) {
  html.reveal-on [data-reveal] { opacity: 1; transform: none; transition: none; }
  .band__media img { transform: none !important; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--red-deep);
  color: var(--cream-soft);
  padding: clamp(34px, 4vw, 52px) 0;
  padding-bottom: max(clamp(34px, 4vw, 52px), env(safe-area-inset-bottom));
}
.footer a {
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(217, 183, 121, .18);
}
.footer__brand,
.footer__brand:visited { color: var(--cream); }
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__copy { max-width: 100%; font-size: 12px; letter-spacing: 0.06em; line-height: 1.6; opacity: 0.78; }
.footer__legal {
  min-width: 0;
  overflow-wrap: anywhere;
  flex-basis: 100%;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  opacity: 0.62;
  text-align: center;
}
.footer__brand img { height: 54px; width: auto; display: block; opacity: 0.92; }
.footer__links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; max-width: 100%; }
.footer__links a,
.footer__links a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream-soft);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.25s ease;
}
.footer__links a:hover { opacity: 1; }

/* Footer come chiusura di brand, non sitemap. */
.footer .container { display: block; }
.footer__signature { display: grid; justify-items: center; gap: 18px; text-align: center; }
.footer__signature .footer__brand img { height: 68px; }
.footer__signature p { margin: 0; color: rgba(245,231,207,.72); font-size: 13px; line-height: 1.65; letter-spacing: .04em; }
.footer__primary { display: flex; justify-content: center; gap: clamp(28px, 5vw, 72px); margin-top: clamp(38px, 5vw, 64px); }
.footer__primary a, .footer__primary a:visited { position: relative; padding-bottom: 8px; color: var(--cream); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer__primary a::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--gold); transform: scaleX(.28); transition: transform 220ms ease; }
.footer__primary a:hover::after { transform: scaleX(1); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(44px, 6vw, 74px); padding-top: 24px; border-top: 1px solid rgba(245,231,207,.13); }
.footer__utility { display: flex; gap: 22px; }
.footer__utility a, .footer__utility a:visited { color: rgba(245,231,207,.7); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.footer .footer__legal { margin-top: 15px; padding: 0; border: 0; color: #d9c5a7; text-align: left; font-size: 9px; opacity: 1; }

@media (max-width: 640px) {
  .footer { padding-top: 52px; }
  .footer__signature .footer__brand img { height: 58px; }
  .footer__primary { flex-direction: column; align-items: center; gap: 20px; margin-top: 38px; }
  .footer__primary a { min-height: 38px; display: inline-flex; align-items: center; }
  .footer__bottom { flex-direction: column; margin-top: 42px; padding-top: 22px; text-align: center; }
  .footer__utility { gap: 24px; }
  .footer .footer__legal { text-align: center; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .flavors { grid-template-columns: repeat(3, 1fr); }
  .hero__proofs { display: none; }
}

@media (max-width: 860px) {
  /* navbar mobile: link nel MENU, a destra il tasto chiamata */
  .topbar {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav { display: inline-flex; }
  .nav__link, .nav__btn { display: none; }
  .menu__label { display: none; }
  .topbar__call {
    display: inline-flex;
    justify-content: flex-end;
    color: var(--cream);
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .topbar__call:hover {
    color: var(--cream);
    background: transparent;
  }
  .topbar__call svg {
    filter: drop-shadow(0 2px 4px rgba(43, 6, 8, .78));
  }
  /* Hero mobile cinematografica: video full-screen, prodotto alto e copy centrata sul gradiente. */
  .hero__video {
    display: block;
    inset: 0;
    height: 100%;
    object-position: 50% 46%;
    transform: translateY(-1.2%) scale(1.025);
  }
  .hero__poster { display: none; }
  .hero__content {
    inset: 0 0 auto;
    height: 100svh;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-top: clamp(112px, 16vh, 152px);
    padding-bottom: max(clamp(54px, 7vh, 60px), calc(env(safe-area-inset-bottom) + 50px));
  }
  .hero__text { width: 100%; max-width: none; text-align: center; }
  .hero__title {
    max-width: 9ch;
    margin-inline: auto;
    font-size: clamp(34px, 9.8vw, 46px);
    line-height: 1.02;
    text-wrap: balance;
  }
  .hero__title { display: block; }
  .hero__divider { margin-top: clamp(32px, 5.2vh, 48px); }
  .hero__divider span { width: clamp(22px, 7vw, 40px); }
  .hero__subtitle {
    margin-top: clamp(16px, 2.4vh, 22px);
    font-size: clamp(12px, 3.25vw, 14px);
    text-align: center;
    max-width: 30ch;
    margin-inline: auto;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
  }
  .hero__actions { justify-content: center; margin-top: clamp(22px, 3.4vh, 30px); }
  .play { display: none; }
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(43, 6, 8, .06) 0%, transparent 18%),
      linear-gradient(0deg,
        rgba(20, 2, 4, .82) 0%,
        rgba(35, 3, 6, .62) 22%,
        rgba(35, 3, 6, .28) 43%,
        rgba(20, 2, 4, .06) 58%,
        transparent 68%);
  }

  .split { grid-template-columns: 1fr; gap: clamp(30px, 7vw, 48px); }
  .split > .media { width: calc(100% + 10vw); margin-right: -5vw; margin-left: -5vw; }
  .split__text { max-width: none; }
  .lead { max-width: none; }
  .gusti__head { grid-template-columns: 1fr; align-items: start; }
  .gusti__head .lead { margin-top: 14px; }
  .flavors { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; gap: clamp(28px, 7vw, 44px); }
  .tubs { grid-template-columns: repeat(2, 1fr); }
  .media-collage .ph:last-child { width: 70%; }
  .footer .container { flex-direction: column; text-align: center; }
}

@media (max-width: 860px) and (max-height: 720px) {
  .hero__content {
    padding-top: clamp(96px, 14vh, 116px);
    padding-bottom: max(clamp(52px, 8vh, 58px), calc(env(safe-area-inset-bottom) + 48px));
  }
  .hero__title { font-size: clamp(34px, 9.8vw, 44px); }
  .hero__divider { margin-top: clamp(20px, 3.4vh, 28px); }
  .hero__subtitle { margin-top: clamp(14px, 2.4vh, 20px); }
  .hero__actions { margin-top: clamp(18px, 3vh, 24px); }
}

@media (max-width: 600px) {
  .seal { width: 78px; right: 4px; bottom: -16px; }
}

@media (prefers-reduced-motion: reduce) {
  .scrollhint__label, .scrollhint__fill { animation: none; }
}

/* ---------- CURSORE PERSONALIZZATO (pallina gelato) ---------- */
/* Attivo solo via JS su dispositivi con mouse fine e senza reduced-motion:
   in quei casi nascondiamo il cursore di sistema e mostriamo la pallina.
   Su touch / reduced-motion la classe non viene aggiunta e resta il nativo. */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
  will-change: transform;
}
.cursor.is-visible { opacity: 1; }

.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
}

/* Pallina crema con leggero rilievo "gelato"; contorno tenue per restare
   leggibile anche sulle sezioni chiare. */
.cursor__dot {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: radial-gradient(circle at 36% 30%, #fbf2df 0%, #f1ddba 62%, #e4cca2 100%);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5), 0 0 0 1.25px rgba(43, 6, 8, 0.42);
  transition: transform 0.16s ease, box-shadow 0.18s ease;
}

/* Anello oro: nascosto, compare all'hover sugli elementi interattivi. */
.cursor__ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid var(--gold);
  opacity: 0;
  transform: scale(0.45);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.cursor.is-hover .cursor__ring { opacity: 0.9; transform: scale(1); }
.cursor.is-hover .cursor__dot { transform: scale(0.7); }

/* Click: la pallina si stringe e compare un alone scuro (depressione). */
.cursor.is-down .cursor__dot {
  transform: scale(0.62);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5), 0 0 0 1.25px rgba(43, 6, 8, 0.42), 0 0 14px 6px rgba(8, 1, 2, 0.55);
}
.cursor.is-down .cursor__ring { transform: scale(0.85); opacity: 0.7; }

/* Scia "che cola" durante il trascinamento. */
.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}
.cursor-trail__blob {
  position: fixed;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f7ecd6, #e9d3ab);
  opacity: 0.7;
  filter: blur(0.4px);
  transform: scale(1);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
.cursor-trail__blob.is-gone { opacity: 0; transform: scale(0.3); }

/* Cursore custom attivo -> nascondiamo quello di sistema. */
html.has-custom-cursor,
html.has-custom-cursor * { cursor: none !important; }

/* Easter egg: modalità freccia-cialda (5 click sul logo). */
html.has-custom-cursor.cursor-waffle,
html.has-custom-cursor.cursor-waffle * { cursor: url("cursore-web.png") 2 1, auto !important; }
html.cursor-waffle .cursor,
html.cursor-waffle .cursor-trail { display: none; }


/* ---------- FINAL INTERACTION + MOBILE TYPE PASS 2026-07-15 ---------- */
::selection { background: var(--red); color: #fff8ed; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.nav a, .btn, .play, .menu-toggle, .mobile-nav a { -webkit-tap-highlight-color: transparent; }
.btn:active, .play:active { transform: translateY(0); }
.h-title, .duo__title, .band__line { text-wrap: balance; }
.lead, .duo__body p, .footer__tagline { text-wrap: pretty; }
@media (max-width: 860px) {
  .hero__text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .section .h-title { font-size: clamp(2.35rem, 10.5vw, 3.35rem); line-height: 1; }
  .section .lead { font-size: clamp(.95rem, 3.8vw, 1.05rem); line-height: 1.62; }
  .gusti__head, .duo__head { text-align: center; }
  .gusti__head .h-title, .duo__head .h-title { max-width: 11ch; margin-inline: auto; }
  .gusti__head .lead, .duo__head .lead { max-width: 38ch; margin-inline: auto; }
}
@media (max-width: 390px) {
  .section .h-title { font-size: clamp(2.25rem, 10vw, 2.75rem); }
  #team .h-title { font-size: clamp(2rem, 9vw, 2.4rem); }
  .band__line { font-size: clamp(1.9rem, 9vw, 2.45rem); }
}

/* Menu essenziale condiviso: Gusti usa questo foglio anziché pages.css. */
.mobile-menu-trigger, .mobile-menu-panel { display: none; }
.ghead .back, .ghead .nav { display: none !important; }
  .ghead .mobile-menu-trigger { display: inline-flex; grid-column: 1; grid-row: 1; justify-self: start; align-items: center; gap: 9px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #fff8ed; cursor: pointer; }
  .mobile-menu-trigger span, .mobile-menu-trigger span::before, .mobile-menu-trigger span::after { display: block; width: 18px; height: 1px; background: currentColor; }
  .mobile-menu-trigger span { position: relative; }
  .mobile-menu-trigger span::before, .mobile-menu-trigger span::after { content: ""; position: absolute; left: 0; }
  .mobile-menu-trigger span::before { top: -5px; }
  .mobile-menu-trigger span::after { top: 5px; }
  .mobile-menu-trigger b { font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  .mobile-menu-panel { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; background: var(--red-deep); color: #fff8ed; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 220ms ease, visibility 220ms ease; }
  .mobile-menu-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .mobile-menu-panel__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
  .mobile-menu-panel__top img { width: 138px; filter: brightness(0) invert(1); }
  .mobile-menu-panel__close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,248,237,.38); border-radius: 50%; background: transparent; color: inherit; }
  .mobile-menu-panel__close span, .mobile-menu-panel__close span::after { display: block; width: 18px; height: 1px; background: currentColor; }
  .mobile-menu-panel__close span { transform: rotate(45deg); }
  .mobile-menu-panel__close span::after { content: ""; transform: rotate(90deg); }
  .mobile-menu-panel__nav { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 28px 0; }
  .mobile-menu-panel__nav a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid rgba(255,248,237,.14); color: #fff8ed; text-decoration: none; font-family: "Playfair Display", serif; font-size: clamp(1.65rem, 8vw, 2.25rem); line-height: 1.05; }
  html.internal-menu-open,
  html.internal-menu-open body { overflow: hidden; }
  .mobile-menu-panel__nav a[aria-current="page"] { color: var(--gold); }
@media (max-width: 800px) and (max-height: 600px) {
  .mobile-menu-panel { padding-block: 12px; }
  .mobile-menu-panel__top { min-height: 44px; }
  .mobile-menu-panel__top img { width: 112px; }
  .mobile-menu-panel__nav { flex: none; justify-content: flex-start; padding: 12px 0; }
  .mobile-menu-panel__nav a { min-height: 44px; font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) { .mobile-menu-panel { transition: none; } }
