/* ==========================================================
   IN ARCHITETTURA VERITAS — countdown al 15 ottobre 2026
   ========================================================== */

:root {
  --paper:      #f5efe6;
  --paper-deep: #ece3d5;
  --wine-900:   #2c0616;
  --wine-700:   #4a1129;
  --wine-500:   #6e1f44;
  --wine-300:   #a04a72;
  --ivory:      #f9f2ea;
  --ivory-dim:  rgba(249, 242, 234, .72);
  --orb-size:   min(78vw, 38vh, 430px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  width: 100%;
  margin: 0;
  background: #f7f4ef;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  touch-action: pan-y;
}

/* Durante lo scroll: ferma le animazioni costose (GPU libera) */
html.is-scrolling .stain-wrap,
html.is-scrolling .orb,
html.is-scrolling .orb-glint,
html.is-scrolling .orb-ground,
html.is-scrolling .wave-drift,
html.is-scrolling .wave-shape,
html.is-scrolling .fizz .fz,
html.is-scrolling .discover,
html.is-scrolling .discover-chevron {
  animation-play-state: paused !important;
}

.hero.is-away .wave-drift,
.hero.is-away .fizz .fz,
.hero.is-away .orb-glint,
.hero.is-away .orb-ground,
.hero.is-away .orb {
  animation-play-state: paused !important;
}

/* ---------- HERO: countdown ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: clip;
  contain: layout paint style;
  background:
    radial-gradient(120% 90% at 50% 8%, var(--paper) 0%, var(--paper-deep) 100%);
  color: var(--ivory);
}

/* ---------- macchia di vino (immagine fornita) ---------- */

.stain-wrap {
  position: absolute;
  inset: -2.5%;
  z-index: 0;
  pointer-events: none;
  background: url("../img/sfondo-vino.png") center / cover no-repeat;
  animation: stain-breathe 16s ease-in-out infinite;
}

@keyframes stain-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}

/* ---------- grana carta ---------- */

.grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
}

/* ---------- struttura pagina (hero) ---------- */

.page {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: clamp(.45rem, 1.3vh, 1.4rem);
  padding: clamp(.9rem, 2.4vh, 2.8rem) 1.2rem;
  text-align: center;
}

/* Active House in evidenza */
.organizer {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  margin-bottom: clamp(.4rem, 1.2vh, 1rem);
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  animation: fade-down 1.2s .05s cubic-bezier(.22,1,.36,1) both;
}

.organizer-label {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: clamp(.55rem, 1.4vw, .68rem);
  letter-spacing: .38em;
  text-indent: .38em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: .75;
}

.organizer-name {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: clamp(.78rem, 2.2vw, 1rem);
  letter-spacing: .28em;
  text-indent: .28em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 4px rgba(20, 2, 10, .9), 0 0 24px rgba(233, 201, 214, .35);
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding-bottom: .2rem;
  transition: border-color .3s ease, letter-spacing .3s ease;
}

.organizer:hover .organizer-name {
  border-color: rgba(255,255,255,.8);
  letter-spacing: .34em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  animation: fade-up 1.8s 1.35s cubic-bezier(.22,1,.36,1) both;
}

/* CTA: pill chiara, testo scuro — leggibile su smartphone */
.discover {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .85rem 1.9rem .95rem;
  font-family: "Jost", sans-serif;
  text-decoration: none;
  color: #1a0610;
  -webkit-tap-highlight-color: transparent;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.95);
  box-shadow:
    0 10px 32px rgba(20, 2, 10, .4),
    0 0 0 1px rgba(255,255,255,.25);
  animation: cta-pulse 2.8s ease-in-out infinite;
  transition: transform .35s cubic-bezier(.22,1,.36,1), background .3s ease;
}

.discover:hover,
.discover:focus-visible {
  transform: translateY(-2px) scale(1.02);
  background: #fff;
}

.discover-label {
  font-weight: 600;
  font-size: clamp(.9rem, min(3.8vw, 2vh), 1.05rem);
  letter-spacing: .12em;
  text-indent: .12em;
  text-transform: uppercase;
  color: #1a0610;
}

.discover-chevron {
  width: .55rem;
  height: .55rem;
  margin-top: .3rem;
  border-right: 2px solid #6e1f44;
  border-bottom: 2px solid #6e1f44;
  transform: rotate(45deg);
  animation: chevron-bob 1.6s ease-in-out infinite;
}

@keyframes chevron-bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .65; }
  50%      { transform: rotate(45deg) translate(2px, 2px); opacity: 1; }
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(20,2,10,.35), 0 0 0 0 rgba(249,242,234,.2); }
  50%      { box-shadow: 0 10px 32px rgba(20,2,10,.4), 0 0 0 7px rgba(249,242,234,.12); }
}

.mail-link {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: clamp(.58rem, min(2vw, 1.35vh), .72rem);
  letter-spacing: .12em;
  text-decoration: none;
  color: var(--ivory);
  opacity: .78;
  text-shadow: 0 1px 4px rgba(20, 2, 10, .85);
  -webkit-tap-highlight-color: transparent;
}

.mail-link:hover { opacity: 1; }
.mail-link.dark {
  color: #3a2a30;
  text-shadow: none;
  opacity: .7;
}
.mail-link.dark:hover { opacity: 1; }

/* ---------- intestazione ---------- */

/* alone scuro dietro i blocchi di testo: le scritte restano
   leggibili anche sulle zone chiare della macchia */
.masthead,
.motto,
.colophon {
  position: relative;
}

.masthead::before,
.motto::before,
.colophon::before {
  content: "";
  position: absolute;
  inset: -18% -22%;
  z-index: -1;
  background: radial-gradient(52% 62% at 50% 50%,
    rgba(24, 3, 12, .58) 0%,
    rgba(24, 3, 12, .34) 55%,
    rgba(24, 3, 12, 0) 100%);
  filter: blur(6px);
  pointer-events: none;
}

.eyebrow {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: clamp(.95rem, 2.4vw, 1.2rem);
  letter-spacing: .28em;
  text-indent: .28em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: .92;
  text-shadow: 0 1px 4px rgba(20, 2, 10, .9), 0 3px 14px rgba(20, 2, 10, .7);
  margin-bottom: clamp(.6rem, 1.6vh, 1.6rem);
  animation: fade-down 1.4s .2s cubic-bezier(.22,1,.36,1) both;
}

.title {
  display: flex;
  flex-direction: column;
  line-height: .96;
  font-weight: 400;
  text-shadow:
    0 1px 3px rgba(20, 2, 10, .85),
    0 3px 12px rgba(20, 2, 10, .6),
    0 8px 40px rgba(20, 2, 10, .5);
}

.title-line {
  display: block;
  animation: fade-down 1.6s cubic-bezier(.22,1,.36,1) both;
}

.t1 {
  font-size: clamp(1.1rem, min(4.5vw, 3vh), 2.6rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--ivory);
  opacity: .92;
  animation-delay: .35s;
}

.t2 {
  font-size: clamp(1.7rem, min(8vw, 5.2vh), 4.6rem);
  letter-spacing: .12em;
  text-indent: .12em;
  text-transform: uppercase;
  font-weight: 400;
  animation-delay: .5s;
}

.t3 {
  font-size: clamp(2rem, min(10vw, 6.4vh), 5.8rem);
  letter-spacing: .2em;
  text-indent: .2em;
  text-transform: uppercase;
  font-weight: 500;
  background: linear-gradient(175deg, #ffffff 20%, #f3dde7 55%, #d9a3bd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(0 1px 3px rgba(20, 2, 10, .8))
    drop-shadow(0 6px 26px rgba(20, 2, 10, .55));
  animation-delay: .65s;
  padding-bottom: .06em;
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- palco della sfera ---------- */

.orb-stage {
  position: relative;
  display: grid;
  place-items: center;
  animation: fade-up 1.8s .9s cubic-bezier(.22,1,.36,1) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* contenitore (vuoto per ora) delle bolle satellite con i loghi partner */
.satellites {
  position: absolute;
  inset: calc(var(--orb-size) * -0.28);
  pointer-events: none;
  z-index: 3;
}

.satellites .sat {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow:
    inset 0 1px 8px rgba(255, 255, 255, .35),
    0 8px 24px rgba(44, 6, 22, .25);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}

.satellites .sat:hover { transform: scale(1.12); }

.satellites .sat img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

/* ---------- la sfera di vetro ---------- */

.orb {
  position: relative;
  width: var(--orb-size);
  height: var(--orb-size);
  border-radius: 50%;
  isolation: isolate;

  /* vetro: il retro traspare, bordo luminoso, ombra a terra */
  background:
    /* finestra riflessa in alto a sinistra */
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.42) 0%, rgba(255,255,255,.12) 28%, rgba(255,255,255,0) 48%),
    /* luce ambiente rosata riflessa in basso */
    radial-gradient(circle at 66% 84%, rgba(224,164,192,.20) 0%, rgba(224,164,192,0) 44%),
    /* corpo del vetro: velo uniforme + bordo che raccoglie la luce */
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.07) 0%, rgba(255,255,255,.07) 55%, rgba(255,255,255,.16) 86%, rgba(255,255,255,.38) 100%);
  backdrop-filter: blur(4px) saturate(1.2) brightness(1.3);
  -webkit-backdrop-filter: blur(4px) saturate(1.2) brightness(1.3);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow:
    /* spessore del vetro sul bordo */
    inset 0 0 0 2px rgba(255, 255, 255, .10),
    inset 0 0 52px rgba(255, 255, 255, .17),
    /* luce da sinistra in alto */
    inset 12px 18px 48px rgba(255, 255, 255, .20),
    /* rifrazione luminosa lungo il bordo basso-destro */
    inset -10px -14px 30px rgba(236, 202, 219, .16),
    inset -18px -26px 60px rgba(44, 6, 22, .30),
    /* alone e distacco dallo sfondo */
    0 0 60px rgba(236, 202, 219, .12),
    0 34px 70px -18px rgba(10, 1, 5, .8),
    0 4px 18px rgba(10, 1, 5, .45);
  /* --ox / --oy: spostamento interattivo; --os: scala al click (JS) */
  transform: translate3d(var(--ox, 0px), var(--oy, 0px), 0) scale(var(--os, 1));
  animation: orb-float 9s ease-in-out infinite;
  touch-action: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@keyframes orb-float {
  0%, 100% { transform: translate3d(var(--ox, 0px), var(--oy, 0px), 0) scale(var(--os, 1)); }
  50%      { transform: translate3d(var(--ox, 0px), calc(var(--oy, 0px) - 10px), 0) scale(var(--os, 1)); }
}

/* anello di risonanza: parte al click sulla sfera */
.orb-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .6);
  opacity: 0;
  pointer-events: none;
}

.orb-ring.ping { animation: ring-ping .7s cubic-bezier(.22,1,.36,1); }

@keyframes ring-ping {
  0%   { opacity: .85; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.24); }
}

/* liquido: SVG a tutto tondo, ritagliato dalla sfera */
.liquid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  z-index: -1;
  /* --tilt: inclinazione del vino (giroscopio / tocco), impostata da JS */
  transform: rotate(var(--tilt, 0deg));
  will-change: transform;
}

/* il livello viene impostato da JS con --fill (0 → 1):
   la cresta dell'onda è a y≈24, quindi la corsa utile è 376px */
.liquid-level {
  transform: translateY(calc((1 - var(--fill, 0)) * 376px));
  transition: transform 2.4s cubic-bezier(.45, 0, .2, 1);
  will-change: transform;
}

/* deriva orizzontale delle onde (il path è largo 800, il viewBox 400) */
.wave-drift { will-change: transform; }
.wave-slow  { animation: drift 9s linear infinite; }
.wave-fast  { animation: drift 5.2s linear infinite reverse; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-400px); }
}

/* respiro verticale dell'onda, per un moto più liquido */
.wave-shape {
  animation: swell 4.4s ease-in-out infinite;
}
.wave-slow .wave-shape { animation-duration: 6.1s; animation-delay: -2s; }

@keyframes swell {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* bollicine nel vino */
.fizz .fz {
  opacity: 0;
  animation: rise var(--dur, 8s) linear var(--delay, 0s) infinite;
}

@keyframes rise {
  0%   { transform: translateY(var(--rise, 340px)); opacity: 0; }
  12%  { opacity: .5; }
  85%  { opacity: .35; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* riflessi sopra il liquido */
.orb-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    /* riflesso principale della "finestra" in alto a sinistra */
    radial-gradient(34% 22% at 30% 17%, rgba(255,255,255,.62) 0%, rgba(255,255,255,.14) 55%, rgba(255,255,255,0) 100%),
    /* secondo riflesso piccolo e netto */
    radial-gradient(10% 6% at 62% 9%, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 100%),
    /* luce di rimbalzo dal basso (dal vino/ambiente) */
    radial-gradient(56% 24% at 50% 99%, rgba(233,201,214,.28) 0%, rgba(233,201,214,0) 100%),
    /* striscia di riflessione laterale destra */
    radial-gradient(8% 42% at 91% 52%, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 100%),
    /* striscia laterale sinistra più tenue */
    radial-gradient(6% 34% at 8% 58%, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 100%);
  mix-blend-mode: screen;
}

/* scintilla: punto speculare vivo che pulsa lentamente */
.orb-glint {
  position: absolute;
  top: 13%;
  left: 34%;
  width: 7%;
  height: 4.5%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 100%);
  transform: rotate(-24deg);
  filter: blur(1px);
  animation: glint 7s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes glint {
  0%, 100% { opacity: .95; transform: rotate(-24deg) scale(1); }
  50%      { opacity: .55; transform: rotate(-24deg) scale(.82); }
}

/* ombra proiettata a terra, respira in controtempo col galleggiamento */
.orb-ground {
  width: calc(var(--orb-size) * .62);
  height: calc(var(--orb-size) * .085);
  margin-top: calc(var(--orb-size) * .055);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 1, 5, .5) 0%, rgba(10, 1, 5, .22) 55%, rgba(10, 1, 5, 0) 100%);
  filter: blur(6px);
  animation: ground-breathe 9s ease-in-out infinite;
}

@keyframes ground-breathe {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50%      { transform: scaleX(.88); opacity: .72; }
}

/* ---------- countdown dentro la sfera ---------- */

.orb-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 1.6s ease;
}

/* capsula di vetro: tiene le cifre leggibili anche sul vino */
.count-pill {
  display: flex;
  align-items: stretch;
  gap: clamp(.55rem, 2.4vw, 1.05rem);
  padding: clamp(.7rem, 2.4vw, 1.05rem) clamp(1rem, 3.6vw, 1.7rem);
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.05) 45%, rgba(255,255,255,.10) 100%);
  backdrop-filter: blur(10px) brightness(1.08);
  -webkit-backdrop-filter: blur(10px) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, .30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -6px 16px rgba(44, 6, 22, .22),
    0 10px 30px rgba(20, 2, 10, .35);
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  min-width: 2.3ch;
}

.num {
  font-size: clamp(1.65rem, 7vw, 2.9rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(20, 2, 10, .75),
    0 3px 16px rgba(20, 2, 10, .55),
    0 0 26px rgba(255, 224, 238, .22);
}

.num.tick { animation: tick .4s cubic-bezier(.22,1,.36,1); }

@keyframes tick {
  0%   { transform: translateY(.18em); }
  100% { transform: translateY(0); }
}

.lbl {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: clamp(.48rem, 1.4vw, .6rem);
  letter-spacing: .32em;
  text-indent: .32em; /* compensa l'ultimo tracking: etichetta centrata davvero */
  text-transform: uppercase;
  color: rgba(249, 242, 234, .85);
  text-shadow: 0 1px 3px rgba(20, 2, 10, .7);
}

.sep {
  width: 1px;
  align-self: center;
  height: clamp(1.7rem, 5.8vw, 2.7rem);
  margin-bottom: .95em;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.55), transparent);
}

/* messaggio finale (calice pieno) */
.orb-final {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2.2s ease .6s;
}

.orb-final .final-line {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  letter-spacing: .08em;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(30, 4, 15, .6);
}

.orb-final .em {
  font-size: clamp(2.2rem, 8.4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-style: normal;
}

.orb.is-full .orb-count { opacity: 0; }
.orb.is-full .orb-final { opacity: 1; }

/* ---------- didascalia, motto, colophon ---------- */

.orb-caption {
  margin-top: clamp(.4rem, 1.2vh, 1.2rem);
  padding: 0 1rem;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: clamp(.58rem, min(1.8vw, 1.5vh), .8rem);
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: .8;
  text-shadow: 0 1px 4px rgba(20, 2, 10, .85), 0 3px 12px rgba(20, 2, 10, .6);
}

.motto {
  max-width: 34em;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(.82rem, min(2.6vw, 2vh), 1.35rem);
  line-height: 1.55;
  color: var(--ivory);
  text-shadow:
    0 1px 3px rgba(20, 2, 10, .8),
    0 3px 18px rgba(20, 2, 10, .55);
  animation: fade-up 1.8s 1.2s cubic-bezier(.22,1,.36,1) both;
}

.colophon {
  animation: fade-up 1.8s 1.45s cubic-bezier(.22,1,.36,1) both;
}

.colophon .place {
  font-size: clamp(.92rem, min(3vw, 2.2vh), 1.5rem);
  letter-spacing: .28em;
  text-indent: .28em;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(20, 2, 10, .85), 0 3px 14px rgba(20, 2, 10, .6);
}

.colophon .org {
  margin-top: .35rem;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: clamp(.52rem, min(1.6vw, 1.3vh), .72rem);
  letter-spacing: .3em;
  text-indent: .3em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: .8;
  text-shadow: 0 1px 4px rgba(20, 2, 10, .85);
}

/* link "invisibile" al sito dell'Ordine: nessuno stile da link */
.org-link {
  color: inherit;
  text-decoration: none;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

/* link al luogo (Maps): stesso aspetto del testo */
.place-link {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- smartphone: esperienza fluida ---------- */

@media (max-width: 640px) {
  :root {
    --orb-size: min(62vw, 24vh);
  }

  .hero,
  .page {
    min-height: auto;
  }

  .page {
    padding: 1rem 1rem 1.4rem;
    gap: .55rem;
    justify-content: flex-start;
  }

  .masthead { margin-top: .1rem; }

  .eyebrow {
    font-size: .82rem;
    letter-spacing: .14em;
    text-indent: .14em;
    margin-bottom: .55rem;
    line-height: 1.35;
    max-width: 16em;
    margin-left: auto;
    margin-right: auto;
  }

  .title { line-height: .94; }
  .t2 { font-size: 1.9rem; letter-spacing: .08em; text-indent: .08em; }
  .t3 { font-size: 2.2rem; letter-spacing: .12em; text-indent: .12em; }

  .count-pill {
    gap: .35rem;
    padding: .5rem .8rem;
  }

  .num { font-size: 1.35rem; }
  .lbl { font-size: .5rem; letter-spacing: .2em; text-indent: .2em; }

  .orb-caption {
    font-size: .58rem;
    letter-spacing: .08em;
    text-indent: .08em;
    line-height: 1.6;
    max-width: 22em;
    margin: .3rem auto 0;
    padding: 0 .4rem;
  }

  .motto {
    display: block;
    max-width: 20em;
    font-size: .92rem;
    line-height: 1.45;
    margin: .15rem auto;
  }
  .motto br { display: none; }

  .discover {
    padding: 1rem 1.5rem 1.1rem;
    width: min(92vw, 340px);
    margin-top: .25rem;
    background: #fff;
  }

  .discover-label {
    font-size: 1rem;
    letter-spacing: .08em;
    text-indent: .08em;
    font-weight: 600;
    color: #1a0610;
  }

  /* Mobile: meno lavoro GPU → scroll più fluido */
  .stain-wrap { animation: none; }
  .grain { display: none; }
  .fizz { display: none; }
  .orb-glint,
  .orb-ground { animation: none; }
  .orb {
    animation: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .count-pill {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(28, 6, 16, .55);
  }
  .discover,
  .discover-chevron { animation: none; }
  .wave-slow { animation-duration: 14s; }
  .wave-fast { animation-duration: 9s; }
  .liquid,
  .liquid-level,
  .wave-drift { will-change: auto; }

  .mail-link { font-size: .58rem; letter-spacing: .06em; }

  .colophon {
    display: block;
    margin-top: .15rem;
  }
  .colophon .place {
    font-size: .95rem;
    letter-spacing: .18em;
    text-indent: .18em;
  }
  .colophon .org {
    font-size: .52rem;
    letter-spacing: .12em;
    text-indent: .12em;
    line-height: 1.55;
  }

  .orb-ground {
    margin-top: calc(var(--orb-size) * .025);
    height: calc(var(--orb-size) * .055);
  }
}

/* ---------- accessibilità: meno movimento ---------- */

@media (prefers-reduced-motion: reduce) {
  .stain-wrap,
  .orb,
  .orb-glint,
  .orb-ground,
  .wave-drift,
  .wave-shape,
  .fizz .fz,
  .discover,
  .discover-chevron { animation: none !important; }
  .liquid-level { transition: none; }
}

/* ==========================================================
   PARTNERS — logo wall premium (Stripe / Linear inspired)
   ========================================================== */

.partners {
  position: relative;
  min-height: auto;
  color: #1a1216;
  background: #f7f4ef;
  overflow: visible;
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.marble {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(255,255,255,.95) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(236, 228, 220, .8) 0%, transparent 50%),
    linear-gradient(180deg, #fbf9f6 0%, #f3efe8 55%, #ebe4db 100%);
}

.marble::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.marble::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 42%, rgba(255,255,255,.35) 50%, transparent 58%);
  opacity: .55;
}

.partners-inner {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 5.5rem) clamp(1.25rem, 5vw, 2rem) clamp(2.5rem, 6vh, 4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 4vh, 2.8rem);
}

.partners-head {
  text-align: center;
}

.partners-kicker {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: .68rem;
  letter-spacing: .38em;
  text-indent: .38em;
  text-transform: uppercase;
  color: #9a7f88;
  margin-bottom: .7rem;
}

.logo-wall-label {
  font-family: "Jost", sans-serif;
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
  color: #9a7f88;
  text-align: center;
  margin-bottom: 1rem;
}

.partners-head .logo-wall-label {
  margin-bottom: 0;
}

/* fascia organizzatore */
.org-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo copy cta";
  align-items: center;
  gap: .35rem 1.4rem;
  padding: 1.35rem 1.5rem 1.4rem;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 24px 48px -28px rgba(40, 16, 28, .28);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
  -webkit-tap-highlight-color: transparent;
}

.org-band:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 32px 56px -24px rgba(40, 16, 28, .32);
}

.org-band-logo {
  grid-area: logo;
  width: min(180px, 42vw);
  height: 52px;
  object-fit: contain;
}

.org-band-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.org-band-copy strong {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #171012;
}

.org-band-copy em {
  font-family: "Jost", sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: .78rem;
  color: #7a636c;
  letter-spacing: .04em;
}

.org-band-cta {
  grid-area: cta;
  font-family: "Jost", sans-serif;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6e1f44;
  white-space: nowrap;
  padding: .55rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(110, 31, 68, .22);
  background: rgba(110, 31, 68, .04);
  transition: background .3s ease, border-color .3s ease;
}

.org-band:hover .org-band-cta {
  background: rgba(110, 31, 68, .1);
  border-color: rgba(110, 31, 68, .4);
}

/* logo wall — una sola riga di marchi, stile Stripe */
.logo-wall-wrap { width: 100%; }

.logo-wall {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid rgba(40, 20, 30, .08);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.55);
  box-shadow: 0 20px 50px -30px rgba(40, 16, 28, .2);
}

.logo-wall li {
  border-right: 1px solid rgba(40, 20, 30, .07);
}
.logo-wall li:last-child { border-right: none; }

.logo-wall a {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 1.4rem 1rem;
  text-decoration: none;
  transition: background .3s ease;
  -webkit-tap-highlight-color: transparent;
}

.logo-wall a:hover,
.logo-wall a:focus-visible {
  background: rgba(255,255,255,.95);
}

.logo-wall img {
  width: min(100%, 150px);
  height: 42px;
  object-fit: contain;
  opacity: .92;
  transition: opacity .35s ease, transform .35s cubic-bezier(.22,1,.36,1);
}

.logo-wall a:hover img,
.logo-wall a:focus-visible img {
  opacity: 1;
  transform: scale(1.05);
}

/* meta footer: cantina discreta + link */
.partners-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  padding-top: .4rem;
  border-top: 1px solid rgba(40, 20, 30, .08);
}

.wine-quiet {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  text-decoration: none;
  color: #8a727a;
  transition: color .3s ease;
  -webkit-tap-highlight-color: transparent;
}

.wine-quiet span {
  font-family: "Jost", sans-serif;
  font-size: .55rem;
  letter-spacing: .28em;
  text-indent: .28em;
  text-transform: uppercase;
}

.wine-logo {
  height: 36px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  opacity: .85;
  transition: opacity .3s ease;
}

.wine-quiet:hover { color: #6e1f44; }
.wine-quiet:hover .wine-logo { opacity: 1; }

.partners-meta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.4rem;
  font-family: "Jost", sans-serif;
  font-size: .68rem;
  letter-spacing: .08em;
}

.partners-meta-links a {
  color: #6a5560;
  text-decoration: none;
  transition: color .25s ease;
}

.partners-meta-links a:hover { color: #6e1f44; }

.back-top {
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6e1f44 !important;
}

/* reveal: solo opacity (niente translate → scroll più fluido su mobile) */
.partners-head,
.org-band,
.logo-wall-wrap,
.partners-meta {
  opacity: 0;
  transition: opacity .7s ease;
}

.partners.is-inview .partners-head { opacity: 1; }
.partners.is-inview .org-band { opacity: 1; transition-delay: .06s; }
.partners.is-inview .logo-wall-wrap { opacity: 1; transition-delay: .12s; }
.partners.is-inview .partners-meta { opacity: 1; transition-delay: .18s; }

@media (max-width: 860px) {
  .logo-wall {
    grid-template-columns: repeat(3, 1fr);
  }
  .logo-wall li:nth-child(3n) { border-right: none; }
  .logo-wall li:nth-child(n+4) {
    border-top: 1px solid rgba(40, 20, 30, .07);
  }
}

@media (max-width: 640px) {
  .partners-inner {
    padding: clamp(2.4rem, 7vh, 3.5rem) 1.1rem 2.2rem;
    gap: 1.5rem;
  }

  .org-band {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "copy"
      "cta";
    text-align: center;
    justify-items: center;
    gap: .55rem;
    padding: 1.25rem 1.1rem 1.35rem;
    border-radius: 16px;
  }

  .org-band-logo { width: 170px; }
  .org-band-copy { align-items: center; }
  .org-band-cta { margin-top: .25rem; }

  .logo-wall {
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
  }

  .logo-wall li { border-right: 1px solid rgba(40, 20, 30, .07); }
  .logo-wall li:nth-child(2n) { border-right: none; }
  .logo-wall li:nth-child(n+3) { border-top: 1px solid rgba(40, 20, 30, .07); }

  .logo-wall a { min-height: 96px; padding: 1.1rem .8rem; }
  .logo-wall img { height: 32px; }

  .partners-meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
  }

  .partners-meta-links {
    flex-direction: column;
    gap: .65rem;
  }

  .wine-logo { height: 32px; }
}
