/* ============================================================
   La Vinothèque · RSVP — mouvement (tout le site)
   Tout est désactivé si l'appareil demande « réduire les animations »
   ou si le JavaScript ne tourne pas (classe .vt-js absente).
   ============================================================ */
:root{--vt-ease:cubic-bezier(.22,.8,.2,1)}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}
.lenis.lenis-smooth iframe{pointer-events:none}

/* ---- Menu : se compacte en défilant ---- */
.vt-nav{transition:padding .35s var(--vt-ease),box-shadow .35s ease,background .35s ease}
.vt-nav-logo{transition:width .35s var(--vt-ease),height .35s var(--vt-ease)}
.vt-nav.compatta{padding-top:8px;padding-bottom:8px;background:rgba(250,243,244,.94);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 6px 24px rgba(35,31,32,.08)}
.vt-nav.compatta .vt-nav-logo{width:92px;height:30px}
@media (max-width:560px){
  .vt-nav.compatta{gap:6px;padding-top:6px;padding-bottom:6px}
  .vt-nav.compatta .vt-nav-logo{width:74px;height:24px}
}

/* ---- Accueil : grande image (ou vidéo) plein écran ---- */
.vt-hero.vt-hero-home{aspect-ratio:auto;min-height:calc(100svh - 71px);align-items:flex-end;justify-content:flex-start}
.vt-hero-media{position:absolute;inset:0;overflow:hidden}
.vt-hero-media img,.vt-hero-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.vt-hero-video{opacity:0;transition:opacity 1.2s ease}
.vt-hero-video.on{opacity:1}
.vt-hero-voile{position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(35,31,32,.30) 0%,rgba(35,31,32,.12) 38%,rgba(35,31,32,.78) 100%),
    linear-gradient(90deg,rgba(35,31,32,.50) 0%,rgba(35,31,32,0) 62%)}
.vt-hero-txt{position:relative;z-index:2;color:#fff;padding:0 70px 9vh;max-width:1180px;width:100%;margin:0 auto}
.vt-hero-home .vt-hero-logo{display:block;width:150px;min-width:0;height:48px;margin:0 0 26px;background-position:left center}
.vt-hero-home h1{font-family:var(--vt-display);font-weight:400;font-size:clamp(38px,5.6vw,84px);
  line-height:1.02;letter-spacing:-.01em;margin:0 0 20px;max-width:15ch}
.vt-hero-home h1 em{font-style:italic;color:#fff}
.vt-hero-home .vt-chapo{font-family:var(--vt-display);font-size:clamp(17px,1.5vw,21px);line-height:1.5;
  max-width:46ch;margin:0 0 22px;opacity:.92}
.vt-hero-home .vt-bottone.chiaro{color:#fff;border-color:rgba(255,255,255,.75)}
.vt-hero-home .vt-bottone.chiaro:hover{background:#fff;color:var(--vt-encre);border-color:#fff}
.vt-scroll{position:absolute;z-index:2;right:34px;bottom:9vh;color:#fff;text-decoration:none;
  font-family:var(--vt-label);font-weight:300;font-size:10px;letter-spacing:.3em;text-transform:uppercase;
  writing-mode:vertical-rl;display:flex;align-items:center;gap:12px}
.vt-scroll::after{content:"";width:1px;height:54px;background:rgba(255,255,255,.75);transform-origin:top;
  animation:vt-filo 2.4s var(--vt-ease) infinite}
@keyframes vt-filo{0%{transform:scaleY(0)}55%{transform:scaleY(1)}100%{transform:scaleY(1);opacity:0}}
@keyframes vt-kenburns{from{transform:scale(1)}to{transform:scale(1.09)}}


/* ---- Manifeste : le texte s'éclaire mot à mot ---- */
.vt-manifesto{background:var(--vt-papier);padding:15vh 24px 13vh}
.vt-manifesto p{font-family:var(--vt-display);font-weight:400;font-size:clamp(27px,3.7vw,54px);
  line-height:1.2;max-width:22ch;margin:0 auto;text-align:center;color:var(--vt-encre)}
.vt-manifesto p{max-width:min(1000px,92vw)}
.vt-manifesto em{font-style:italic;color:var(--vt-rouge)}
.vt-js .vt-manifesto .vt-m{opacity:.14;transition:opacity .35s ease}
.vt-js .vt-manifesto .vt-m.on{opacity:1}

/* ---- Bande défilante ---- */
.vt-nastro{overflow:hidden;background:var(--vt-encre);color:#fff;padding:18px 0;white-space:nowrap}
.vt-nastro-in{display:inline-flex;gap:0;animation:vt-nastro 38s linear infinite;will-change:transform}
.vt-nastro span{font-family:var(--vt-display);font-style:italic;font-size:clamp(20px,2.2vw,30px);padding:0 22px}
.vt-nastro i{font-style:normal;color:var(--vt-rouge);font-size:.6em;align-self:center}
@keyframes vt-nastro{to{transform:translateX(-50%)}}

/* ---- Titres : apparition ligne par ligne ---- */
.vt-js .vt-w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.12em;margin-bottom:-.12em}
.vt-js .vt-wi{display:inline-block;transform:translateY(110%);transition:transform 1s var(--vt-ease);
  transition-delay:calc(var(--l,0)*110ms + var(--d,0ms))}
.vt-js .vt-vista .vt-wi{transform:none}

/* ---- Blocs : texte qui monte, photo qui se dévoile ---- */
.vt-js .vt-su{opacity:0;transform:translateY(26px);transition:opacity .9s ease,transform .9s var(--vt-ease);
  transition-delay:calc(var(--i,0)*90ms + 120ms)}
.vt-js .vt-vista .vt-su,.vt-js .vt-su.vt-vista{opacity:1;transform:none}
.vt-anim .vt-bloc-img{overflow:hidden;position:relative}
.vt-anim .vt-bloc-img img{will-change:transform}
.vt-js .vt-bloc-img{clip-path:inset(100% 0 0 0);transition:clip-path 1.25s var(--vt-ease)}
.vt-js .vt-bloc.vt-vista .vt-bloc-img{clip-path:inset(0 0 0 0);transition-delay:.15s}
.vt-js .vt-bloc-img img{transform:scale(1.16) translate3d(0,var(--py,0),0)}

/* ---- Photos et vignettes : réaction au survol ---- */
@media (hover:hover) and (pointer:fine){
  .vt-anim .vt-bloc.vt-con-foto{transition:box-shadow .5s ease,transform .5s var(--vt-ease)}
  .vt-anim .vt-bloc.vt-con-foto:hover{box-shadow:0 22px 60px rgba(35,31,32,.10);transform:translateY(-4px)}
  .vt-anim .vt-bottone{transition:background .25s ease,color .25s ease,letter-spacing .35s var(--vt-ease)}
  .vt-anim .vt-bottone:hover{letter-spacing:.24em}
}
.vt-js .vt-ig a{opacity:0;transform:translateY(24px) scale(.97);
  transition:opacity .8s ease,transform .8s var(--vt-ease);transition-delay:calc(var(--i,0)*80ms)}
.vt-js .vt-ig.vt-vista a{opacity:1;transform:none}

/* ---- Téléphone ---- */
@media (max-width:820px){
  .vt-hero.vt-hero-home{aspect-ratio:auto;min-height:calc(100svh - 58px)}
  .vt-hero-txt{padding:0 22px 8vh}
  .vt-hero-home .vt-hero-logo{width:120px;height:38px;margin-bottom:18px}
  .vt-scroll{display:none}
  .vt-manifesto{padding:11vh 22px 10vh}
}
@media (max-width:560px){.vt-hero.vt-hero-home{min-height:calc(100svh - 92px)}}

/* ---- Respect du réglage « réduire les animations » ---- */
@media (prefers-reduced-motion:reduce){
  .vt-nastro-in,.vt-scroll::after{animation:none}
  .vt-js .vt-wi,.vt-js .vt-su,.vt-js .vt-ig a{transform:none!important;opacity:1!important;transition:none}
  .vt-js .vt-bloc-img{clip-path:none!important}
  .vt-js .vt-bloc-img img{transform:none!important}
  .vt-js .vt-manifesto .vt-m{opacity:1}
}

/* ---- Accueil : le film en ouverture, sans texte du site par-dessus ---- */
.vt-hero.vt-hero-film{min-height:0;aspect-ratio:16/9;background:#000}
.vt-titolo-home{padding:54px 24px 8px}
.vt-titolo-home h1{font-size:clamp(33px,4.4vw,60px);max-width:18ch;margin-left:auto;margin-right:auto}
.vt-titolo-home .vt-chapo{margin-bottom:18px}
.vt-manifesto{padding-top:11vh}
@media (max-width:820px){.vt-hero.vt-hero-film{min-height:0;aspect-ratio:16/9}.vt-titolo-home{padding:34px 18px 4px}}
@media (max-width:560px){.vt-hero.vt-hero-film{min-height:0}}
@media (min-width:821px){
  .vt-hero.vt-hero-film{aspect-ratio:auto;width:100%;height:min(56.25vw,calc(100svh - 71px))}
  .vt-hero-film .vt-hero-media img,.vt-hero-film .vt-hero-media video{object-position:center bottom}
}

/* ---- Autres pages : photo d'en-tête et logo ---- */
.vt-anim .vt-hero:not(.vt-hero-home)>img{will-change:transform;transform:scale(1.06)}
@keyframes vt-entra{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.vt-js .vt-anim .vt-hero:not(.vt-hero-home) .vt-hero-logo,.vt-js .vt-anim .vt-hero-eventi{animation:vt-entra 1.1s var(--vt-ease) .15s both}
/* ---- Cartes (équipe) et lignes du calendrier ---- */
@media (hover:hover) and (pointer:fine){
  .vt-anim .vt-scheda{transition:opacity .9s ease,transform .6s var(--vt-ease),box-shadow .5s ease}
  .vt-anim .vt-scheda:hover{transform:translateY(-5px);box-shadow:0 18px 44px rgba(35,31,32,.12)}
  .vt-anim .vt-scheda{overflow:hidden}
  .vt-anim .vt-scheda img{transition:transform .8s var(--vt-ease)}
  .vt-anim .vt-scheda:hover img{transform:scale(1.04)}
  .vt-anim .vt-evento{transition:opacity .9s ease,transform .9s var(--vt-ease),padding-left .4s var(--vt-ease),background .4s ease}
  .vt-anim .vt-evento:not(.passato):hover{padding-left:10px;background:linear-gradient(90deg,var(--vt-rose),transparent 70%)}
}
@media (prefers-reduced-motion:reduce){
  .vt-js .vt-anim .vt-hero .vt-hero-logo,.vt-js .vt-anim .vt-hero-eventi{animation:none}
  .vt-anim .vt-hero:not(.vt-hero-home)>img{transform:none!important}
}
