:root {
  color-scheme: dark;
  background: #16120f;
  --header-height: 4.75rem;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  overflow-x: hidden;
  background: #16120f;
}

main { overflow: clip; }

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .85rem clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(244, 237, 223, .14);
  background: rgba(8, 7, 6, .78);
  backdrop-filter: blur(16px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}

.site-logo {
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 .18rem .45rem rgba(0, 0, 0, .28));
}

.site-name {
  color: #f4eddf;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.header-actions, .site-nav { display: flex; align-items: center; }

.header-actions { gap: clamp(.75rem, 2.2vw, 2rem); }

.site-nav { gap: clamp(.8rem, 2vw, 1.7rem); }

.site-nav a {
  color: rgba(244, 237, 223, .8);
  font-family: "DM Mono", monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}

.site-nav a:hover, .site-nav a:focus-visible { color: #fff8ea; }

.menu-toggle {
  display: none;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 1px solid rgba(244, 237, 223, .25);
  border-radius: 50%;
  color: #f4eddf;
  background: rgba(244, 237, 223, .07);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.05rem;
  height: 1px;
  margin: .22rem auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.language-picker { position: relative; display: flex; align-items: center; }

.language-picker::after {
  position: absolute;
  right: .7rem;
  width: .4rem;
  height: .4rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  color: #e9dcc5;
  content: "";
  pointer-events: none;
  transform: translateY(-.15rem) rotate(45deg);
}

.language-picker select {
  appearance: none;
  min-width: 6.4rem;
  padding: .56rem 1.9rem .56rem .75rem;
  border: 1px solid rgba(244, 237, 223, .25);
  border-radius: 999px;
  outline: none;
  color: #f4eddf;
  background: rgba(244, 237, 223, .07);
  font: 400 .72rem/1 "DM Mono", monospace;
  letter-spacing: .04em;
}

.language-picker select:focus-visible { border-color: #f4eddf; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

section { scroll-margin-top: var(--header-height); }
.site-footer { scroll-margin-top: var(--header-height); }

.stage-intro {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background: #000 url("assets/images/stage-dark.webp") center / cover no-repeat;
}

.intro-content {
  z-index: 2;
  width: min(94vw, 1100px);
  padding: var(--header-height) 1.5rem 0;
  color: #f8f0e2;
  text-align: center;
  transform: translateY(-11vh);
}

.intro-role {
  margin: 0 0 1.2rem;
  color: rgba(248, 240, 226, .82);
  font: 400 clamp(.66rem, 1vw, .82rem)/1.4 "DM Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.intro-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.7rem, 9.2vw, 10rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .73;
  text-shadow: 0 4px 35px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease 1.05s, transform .8s cubic-bezier(.16, 1, .3, 1) 1.05s;
}

.intro-title span { display: block; }
.is-ready .intro-title { opacity: 1; transform: translateY(0); }

.intro-facts {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: .65rem;
  margin: clamp(1.2rem, 2.6vw, 2.25rem) auto 1.25rem;
  padding: 0;
}

.intro-fact {
  min-width: 0;
  padding: .8rem .7rem;
  text-align: center;
}

.intro-fact dt {
  margin-bottom: .38rem;
  color: rgba(248, 240, 226, .62);
  font: 400 .57rem/1.2 "DM Mono", monospace;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.intro-fact dd {
  margin: 0;
  color: #f8f0e2;
  font: 400 clamp(.69rem, .9vw, .82rem)/1.25 "DM Mono", monospace;
}

.intro-fact dd strong { display: block; font-weight: 400; }
.intro-fact dd span { display: block; margin-top: .22rem; color: rgba(248, 240, 226, .68); font-size: .62rem; }

.cv-button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: .86rem 1.45rem;
  border: 1px solid #fff8eb;
  border-radius: 999px;
  color: #19120d;
  background: #fff8eb;
  box-shadow: 0 .65rem 1.9rem rgba(0, 0, 0, .28);
  font: 400 .75rem/1 "DM Mono", monospace;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cv-button:hover, .cv-button:focus-visible {
  color: #fff8eb;
  background: #382519;
  box-shadow: 0 .9rem 2.2rem rgba(0, 0, 0, .42);
  transform: translateY(-3px);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .7rem;
}

.intro-actions .profile-link--filmmakers { order: 1; }
.intro-actions .cv-button { order: 2; }
.intro-actions .profile-link--spotlight { order: 3; }

.profile-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .86rem 1.05rem;
  border: 1px solid rgba(255, 248, 235, .58);
  border-radius: 999px;
  color: #fff8eb;
  background: rgba(25, 18, 13, .36);
  font: 500 .68rem/1 "DM Mono", monospace;
  letter-spacing: .075em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.profile-link::after {
  content: "↗";
  font-size: .9rem;
  line-height: .7;
}

.profile-link:hover, .profile-link:focus-visible {
  border-color: #fff8eb;
  color: #19120d;
  background: #fff8eb;
  box-shadow: 0 .7rem 1.8rem rgba(0, 0, 0, .3);
  transform: translateY(-3px);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: clamp(1.4rem, 3.5vh, 2.6rem);
  left: 50%;
  display: grid;
  justify-items: center;
  gap: .52rem;
  color: rgba(248, 240, 226, .76);
  font: 400 .58rem/1 "DM Mono", monospace;
  letter-spacing: .14em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue::after {
  width: .48rem;
  height: .48rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
  animation: scroll-cue 1.35s ease-in-out infinite;
}

.stage-performers {
  --spotlight: rgba(94, 112, 255, .17);
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.stage-performers::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 28% 46% at 76% 55%, var(--spotlight), transparent 78%),
    radial-gradient(ellipse 20% 10% at 76% 91%, rgba(247, 184, 95, .15), transparent 76%);
  content: "";
}

.stage-performers::after {
  position: absolute;
  right: clamp(1rem, 10vw, 11rem);
  bottom: 4.8vh;
  width: min(35vw, 32rem);
  height: clamp(1.1rem, 2.5vw, 2.2rem);
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  content: "";
  filter: blur(10px);
  opacity: .7;
  transform: rotate(-3deg);
}

.stage-performer {
  position: absolute;
  right: clamp(-5rem, 1vw, 1.5rem);
  bottom: 3.5vh;
  width: min(48vw, 43rem);
  height: auto;
  opacity: 0;
  filter: drop-shadow(-.5rem 1.3rem 1rem rgba(0, 0, 0, .46));
  transform: translateY(1.8rem) scale(.975);
  transform-origin: bottom center;
  transition: opacity .65s ease, transform .65s cubic-bezier(.22, .8, .24, 1);
}

.stage-performer.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stage-performer.stage-performer--portrait {
  right: clamp(2rem, 12vw, 13rem);
  bottom: 2vh;
  width: min(21.33vw, 19.1rem);
}

.gallery-phase {
  isolation: isolate;
  position: relative;
  z-index: 0;
  /* Le colonne usano grandi translateY durante la coreografia: il loro
     disegno resta sempre confinato alla sola sezione galleria. */
  overflow: clip;
  --gallery-card-width: calc((100vw - 9.2vw) / 3);
  --gallery-stagger: 12vh;
  padding-bottom: 0;
  background:
    radial-gradient(ellipse at 50% 12%, rgba(255, 226, 173, .13), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 5.4rem),
    linear-gradient(105deg, #1e110b, #51321d 49%, #21120b);
  background-attachment: fixed;
}

.gallery-sequence { height: 250svh; }
.gallery-transition-space { height: 100svh; pointer-events: none; }

.gallery-stage {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  height: 100svh;
  place-items: center;
  overflow: hidden;
  background: transparent;
  perspective: 1050px;
}

.table-photos {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.gallery-credit {
  position: absolute;
  z-index: 4;
  right: clamp(1.25rem, 3.4vw, 4rem);
  bottom: clamp(1.25rem, 3svh, 2.5rem);
  margin: 0;
  color: rgba(255, 247, 232, .8);
  font: .7rem/1 "DM Mono", monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
  pointer-events: none;
  text-shadow: 0 .1rem .35rem rgba(0, 0, 0, .55);
}

.photo {
  position: absolute;
  width: min(35vw, 30rem);
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: .75rem;
  background: transparent;
  box-shadow: 0 .65rem 1.25rem rgba(0, 0, 0, .26);
  cursor: zoom-in;
  opacity: 0;
  transform: translate3d(var(--start-x), -125vh, 0) rotate(var(--start-rotation)) scale(.96);
  transform-origin: 50% 0;
  transition: transform 1.2s cubic-bezier(.16, .88, .24, 1), opacity .18s ease, width .75s ease, top .75s ease, left .75s ease;
  will-change: transform, opacity;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.photo--one { top: 12%; left: 24%; --start-x: -5vw; --start-rotation: -8deg; z-index: 1; }
.photo--two { top: 18%; left: 32%; --start-x: 3vw; --start-rotation: 7deg; z-index: 2; }
.photo--three { top: 24%; left: 40%; --start-x: 6vw; --start-rotation: 10deg; z-index: 3; }

.photo.is-dropped {
  opacity: 1;
  transform: translate3d(var(--settle-x, 0), var(--settle-y, 0), 0) rotate(var(--settle-rotation, 0deg));
}

.gallery-phase.is-assembling .photo { 
  width: var(--gallery-card-width);
  top: 6%;
  z-index: 1;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

.gallery-phase.is-assembling .photo--one { left: 3.4vw; }
.gallery-phase.is-assembling .photo--two { top: calc(6% + var(--gallery-stagger)); left: calc(3.4vw + var(--gallery-card-width) + 1.2vw); }
.gallery-phase.is-assembling .photo--three { left: calc(3.4vw + var(--gallery-card-width) + 1.2vw + var(--gallery-card-width) + 1.2vw); }

.gallery-wall { position: relative; z-index: 1; display: grid; height: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2vw; margin-top: -100svh; padding: 0 3.4vw; overflow: visible; background: transparent; opacity: 0; transform: perspective(1050px) rotateX(52deg) scale(1.08); transform-origin: 50% 0; transition: opacity .65s ease, transform 1.05s cubic-bezier(.16, .88, .24, 1); }
.gallery-wall.is-visible { opacity: 1; transform: perspective(1050px) rotateX(0) scale(1); }
.gallery-phase.is-faded-out .gallery-wall { opacity: 0; pointer-events: none; }
.gallery-phase.is-faded-out .photo { opacity: 0; pointer-events: none; }
/* Fuori dalla sequenza sticky non lasciamo trasformazioni residue della
   galleria sopra Self-tape, video, esperienze o footer. */
.gallery-phase.is-past-sequence .gallery-wall,
.gallery-phase.is-past-sequence .photo { visibility: hidden; opacity: 0; pointer-events: none; }
.gallery-column { display: flex; flex-direction: column; gap: 1.2vw; padding-top: 6svh; transform: translateY(var(--side-column-y, 0)); will-change: transform; }
.gallery-column--two { opacity: 0; transform: translateY(var(--center-column-y, var(--gallery-stagger))); transition: opacity .18s ease; }
.gallery-wall.is-center-moving .gallery-column--two { opacity: 1; }
.wall-image { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: .75rem; background: #251814; box-shadow: 0 .65rem 1.25rem rgba(0, 0, 0, .26); cursor: zoom-in; }
/* Gli spaziatori mantengono il passo della griglia: le foto iniziali li
   occupano dopo l'aggancio, senza duplicare visivamente l'immagine. */
.gallery-placeholder { opacity: 0; pointer-events: none; }
.gallery-phase.is-attached .photo { transition: none; }
.gallery-phase.is-assembling .photo--one,
.gallery-phase.is-assembling .photo--three { transform: translate3d(0, var(--side-initial-y, 0), 0) rotate(0deg); }
.gallery-phase.is-assembling .photo--two { transform: translate3d(0, var(--center-initial-y, 0), 0) rotate(0deg); }
.wall-image img { display: block; width: 100%; height: auto; border-radius: inherit; transition: transform .35s ease; }
.wall-image:hover img, .wall-image:focus-visible img { transform: scale(1.045); }

.video-phase {
  position: relative;
  z-index: 3;
  display: grid;
  height: 100svh;
  min-height: 42rem;
  place-items: center;
  overflow: hidden;
  padding: clamp(4.5rem, 8vh, 6.5rem) 3.4vw 3rem;
  color: #f7efe1;
  background:
    radial-gradient(circle at 78% 26%, rgba(204, 126, 59, .2), transparent 28%),
    linear-gradient(135deg, #100c0a, #27160d 55%, #100b08);
}
.video-phase--showreel {
  z-index: 4;
  background:
    radial-gradient(circle at 22% 26%, rgba(204, 126, 59, .2), transparent 28%),
    linear-gradient(225deg, #100c0a, #27160d 55%, #100b08);
}

.video-phase__content { display: grid; width: min(100%, 76rem); height: 100%; grid-template-rows: auto minmax(0, 1fr); }
.section-kicker { margin: 0 0 .8rem; color: #d9c7af; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.video-phase h2 { max-width: none; margin: 0 0 clamp(1.4rem, 3vh, 2.4rem); font: italic clamp(2.9rem, 5.8vw, 5.5rem)/.86 Georgia, serif; white-space: nowrap; }
.video-showcase { display: grid; min-height: 0; grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.8fr); gap: clamp(1.25rem, 4vw, 5rem); align-items: center; }
.video-showcase--mirrored { grid-template-columns: minmax(0, 1.8fr) minmax(15rem, .72fr); }
.show-list { min-height: 0; border-top: 1px solid rgba(248, 240, 226, .22); }
.show-list__title { margin: 1rem 0 .7rem; color: #d9c7af; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.show-list__items { display: grid; max-height: min(55svh, 34rem); overflow: auto; border-bottom: 1px solid rgba(248, 240, 226, .15); scrollbar-color: rgba(248, 240, 226, .5) transparent; }
.show-item { display: grid; gap: .25rem; padding: .85rem .1rem; border: 0; border-top: 1px solid rgba(248, 240, 226, .12); color: #f7efe1; background: transparent; font: inherit; text-align: left; cursor: pointer; transition: color .2s ease, padding-left .2s ease, background .2s ease; }
.show-item[hidden] { display: none; }
.show-item:first-child { border-top: 0; }
.show-item span { font: italic clamp(1.05rem, 1.5vw, 1.35rem)/1.05 Georgia, serif; }
.show-item small { color: #b9aa96; font-size: .62rem; letter-spacing: .06em; }
.show-item:hover, .show-item:focus-visible, .show-item.is-selected { padding-left: .7rem; color: #ffd899; background: linear-gradient(90deg, rgba(231, 153, 75, .15), transparent); outline: none; }
.show-item--static { cursor: default; }
.show-item--static:hover { padding-left: .1rem; color: #f7efe1; background: transparent; }
.video-player { position: relative; isolation: isolate; display: grid; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(248, 240, 226, .18); border-radius: 1.1rem; color: #fff8eb; background: #090807; box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, .28); }
.video-player__poster, .video-player__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-player__poster { object-fit: cover; object-position: center; filter: saturate(.7) contrast(1.05); }
.video-player__shade { background: linear-gradient(to bottom, rgba(0, 0, 0, .67), transparent 40%, rgba(0, 0, 0, .88)); }
.video-player__top, .video-player__controls { position: relative; z-index: 1; display: flex; justify-content: space-between; padding: clamp(1rem, 2vw, 1.45rem); }
.video-player__top { align-items: flex-start; }
.video-player__top p { margin: 0 0 .25rem; font: italic clamp(1.2rem, 2.1vw, 1.8rem)/1 Georgia, serif; }
.video-player__top span { color: rgba(255, 248, 235, .72); font-size: .67rem; letter-spacing: .08em; }
.video-player__quality { padding: .34rem .45rem; border: 1px solid rgba(255, 248, 235, .35); border-radius: .25rem; font-size: .58rem !important; }
.video-player__empty { position: relative; z-index: 1; align-self: center; justify-self: center; max-width: 18rem; padding: .75rem 1rem; border: 1px solid rgba(255, 248, 235, .22); border-radius: 999px; color: rgba(255, 248, 235, .78); font-size: .65rem; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.youtube-consent { position: relative; z-index: 2; align-self: center; justify-self: center; max-width: 22rem; padding: 1.1rem; border: 1px solid rgba(255, 248, 235, .22); border-radius: .7rem; background: rgba(9, 8, 7, .8); text-align: center; }
.youtube-consent[hidden], .youtube-withdraw[hidden] { display: none; }
.youtube-consent p { margin: 0 0 .9rem; color: rgba(255, 248, 235, .82); font-size: .68rem; letter-spacing: .04em; line-height: 1.45; }
.youtube-consent__privacy-link { display: inline-block; margin: 0 0 .85rem; color: #f3d6a8; font-size: .61rem; letter-spacing: .04em; text-decoration: underline; text-underline-offset: .18rem; }
.youtube-consent button { min-height: 2.55rem; padding: .65rem .9rem; border: 1px solid #fff8eb; border-radius: 999px; color: #16110d; background: #fff8eb; font: 700 .62rem/1 "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.youtube-consent button:hover, .youtube-consent button:focus-visible { color: #fff8eb; background: transparent; }
.youtube-withdraw { position: absolute; z-index: 4; top: clamp(3.25rem, 8vw, 4.2rem); right: .8rem; padding: .42rem .58rem; border: 1px solid rgba(255, 248, 235, .4); border-radius: 999px; color: #fff8eb; background: rgba(9, 8, 7, .74); font: 600 .51rem/1 "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.youtube-withdraw:hover, .youtube-withdraw:focus-visible { border-color: #fff8eb; background: rgba(9, 8, 7, .94); }

/* Le esperienze presenti in un solo curriculum non devono mai filtrare
   nell'altra lingua, anche se il browser usa uno script già in cache. */
html[lang="en"] [data-it-only],
html[lang="it"] [data-en-only] { display: none !important; }
.youtube-frame { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; border: 0; background: #090807; }
.video-player__controls { align-self: end; display: grid; gap: .85rem; }
.video-player:not(.has-youtube) .video-player__controls {
  visibility: hidden;
  pointer-events: none;
}
.video-player__timeline { height: .18rem; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.video-player__timeline span { display: block; width: 0; height: 100%; background: #fff8eb; }
.video-player__buttons { display: flex; align-items: center; gap: .9rem; color: rgba(255, 248, 235, .86); font-size: .65rem; }
.video-player__buttons button { border: 0; color: inherit; background: transparent; font: inherit; font-size: 1rem; }
.video-player__play { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border-radius: 50% !important; color: #16110d !important; background: #fff8eb !important; font-size: .8rem !important; }
.video-player__duration { margin-right: auto; }
.video-player__fullscreen { font-size: 1.25rem !important; }

.experience-phase { position: relative; z-index: 4; padding: clamp(6rem, 12vh, 11rem) 3.4vw; color: #f7efe1; background: #100c0a; }
.experience-phase__content { width: min(100%, 76rem); margin: 0 auto; }
.experience-phase h2 { max-width: none; margin: 0 0 clamp(3rem, 7vw, 6.5rem); font: italic clamp(3.4rem, 7.5vw, 7rem)/.86 Georgia, serif; white-space: nowrap; }
.experience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 7vw, 9rem); align-items: start; }
.experience-group + .experience-group { border-left: 1px solid rgba(248, 240, 226, .15); padding-left: clamp(1.5rem, 4vw, 4rem); }
.experience-group h3 { margin: 0 0 1rem; color: #d9c7af; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.experience-group h3:not(:first-child) { margin-top: 3.25rem; }
.experience-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(248, 240, 226, .16); }
.experience-list li { display: grid; grid-template-columns: minmax(7.4rem, .55fr) minmax(0, 1.45fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(248, 240, 226, .12); }
.experience-list time { color: #b9aa96; font-size: .63rem; letter-spacing: .07em; line-height: 1.45; }
.experience-list strong { display: block; margin-bottom: .32rem; font: italic clamp(1rem, 1.3vw, 1.2rem)/1.08 Georgia, serif; }
.experience-list span { display: block; color: #c5b8a7; font-size: .68rem; line-height: 1.45; }

.site-footer { position: relative; z-index: 4; display: grid; min-height: 100svh; place-items: center; padding: clamp(5rem, 12vh, 10rem) 3.4vw; color: #fff8eb; background: radial-gradient(circle at 50% 38%, rgba(207, 134, 67, .24), transparent 30%), #090706; }
.site-footer__content { width: min(100%, 76rem); text-align: center; }
.site-footer .section-kicker { margin-bottom: 1.4rem; }
.site-footer__signature { display: block; width: min(84vw, 48rem); height: auto; margin: 0 auto; filter: drop-shadow(0 .8rem 1.8rem rgba(0, 0, 0, .28)); }
.site-footer__contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem clamp(1rem, 2.5vw, 2.2rem); margin-top: clamp(3rem, 7vh, 5rem); color: #d9c7af; font-size: clamp(.82rem, 1.1vw, 1rem); }
.contact-link { display: inline-flex; align-items: center; gap: .52rem; color: inherit; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.contact-link svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.contact-link:hover, .contact-link:focus-visible { color: #fff8eb; transform: translateY(-.14rem); }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem 2.25rem; margin-top: clamp(4rem, 11vh, 9rem); }
.site-footer__top { display: inline-block; color: #fff8eb; font-size: .7rem; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.site-footer__top:hover, .site-footer__top:focus-visible { color: #d9c7af; }
.site-footer__credit { position: absolute; right: clamp(1rem, 3.4vw, 3.5rem); bottom: clamp(1rem, 2.8vw, 2.3rem); color: rgba(255, 248, 235, .62); font: .58rem/1.35 "DM Mono", monospace; letter-spacing: .06em; text-align: right; text-decoration: none; transition: color .2s ease; }
.site-footer__credit:hover, .site-footer__credit:focus-visible { color: #fff8eb; }

.privacy-page { min-height: 100svh; color: #f4eddf; background: radial-gradient(circle at 82% 4%, rgba(138, 78, 38, .25), transparent 24rem), #100c0a; }
.privacy-policy { width: min(100% - 2.5rem, 52rem); margin: 0 auto; padding: clamp(7rem, 14vh, 10rem) 0 clamp(5rem, 10vh, 8rem); }
.privacy-back { display: inline-flex; margin-bottom: clamp(3rem, 7vh, 5rem); color: #d9c7af; font: .72rem "DM Mono", monospace; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.privacy-back:hover, .privacy-back:focus-visible, .privacy-policy a:hover, .privacy-policy a:focus-visible { color: #fff8eb; }
.privacy-policy h1 { max-width: none; margin: 0; font: italic clamp(3.5rem, 7.5vw, 5.75rem)/1 "Playfair Display", Georgia, serif; letter-spacing: -.055em; }
.privacy-policy p.privacy-policy__lead { max-width: 46rem; margin: clamp(3.5rem, 7vh, 5.5rem) 0 0; color: #d9c7af; font: clamp(1.05rem, 1.7vw, 1.35rem)/1.55 "Playfair Display", Georgia, serif; }
.privacy-policy__updated { margin: 1.3rem 0 0; color: #a99b89; font: .66rem "DM Mono", monospace; letter-spacing: .07em; text-transform: uppercase; }
.privacy-policy section { padding: 2.4rem 0; border-top: 1px solid rgba(244, 237, 223, .14); }
.privacy-policy section:first-of-type { margin-top: 4.75rem; }
.privacy-policy h2 { margin: 0 0 .9rem; font: italic 1.45rem/1.1 "Playfair Display", Georgia, serif; }
.privacy-policy p, .privacy-policy li { color: #cbbdab; font: .88rem/1.7 "DM Mono", monospace; }
.privacy-policy p { margin: 0 0 1rem; }
.privacy-policy ul { margin: 0; padding-left: 1.2rem; }
.privacy-policy li + li { margin-top: .75rem; }
.privacy-policy strong { color: #f4eddf; }
.privacy-policy a { color: #e9d7bc; text-decoration-color: rgba(233, 215, 188, .5); text-underline-offset: .18em; }

.lightbox { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: clamp(1.25rem, 4vw, 4rem); overflow: hidden; background: rgba(5, 4, 3, .96); backdrop-filter: blur(12px); touch-action: none; }
.lightbox[hidden] { display: none; }
.lightbox-frame { display: grid; width: min(76vw, 76rem); height: min(76svh, 54rem); place-items: center; overflow: hidden; }
.lightbox-frame img { display: block; width: 100%; height: 100%; object-fit: contain; box-shadow: 0 1.3rem 4rem rgba(0, 0, 0, .55); user-select: none; }
.lightbox-control, .lightbox-close { position: absolute; z-index: 1; display: grid; width: 3.15rem; height: 3.15rem; place-items: center; border: 1px solid rgba(248, 240, 226, .38); border-radius: 50%; color: #fff8eb; background: rgba(255, 255, 255, .07); font: 400 2.1rem/1 Georgia, serif; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.lightbox-control:hover, .lightbox-control:focus-visible, .lightbox-close:hover, .lightbox-close:focus-visible { background: rgba(255, 255, 255, .18); transform: scale(1.06); }
.lightbox-prev { left: clamp(1rem, 3vw, 3rem); }
.lightbox-next { right: clamp(1rem, 3vw, 3rem); }
.lightbox-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); font: 400 1.8rem/1 Arial, sans-serif; }


@keyframes scroll-cue { 50% { transform: translateY(.28rem) rotate(45deg); } }


@media (max-width: 620px) {
  :root { --header-height: 4.5rem; }
  .site-header { gap: .5rem; padding: .65rem 1rem; }
  .site-logo { width: 2.05rem; height: 2.05rem; }
  .site-name { max-width: calc(100vw - 12.6rem); overflow: hidden; font-size: 1.05rem; text-overflow: ellipsis; }
  .header-actions { gap: .45rem; margin-left: auto; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    gap: .15rem;
    padding: .75rem 1rem 1rem;
    border-bottom: 1px solid rgba(244, 237, 223, .14);
    background: rgba(13, 10, 8, .97);
    box-shadow: 0 .85rem 1.5rem rgba(0, 0, 0, .22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-.6rem);
    transition: opacity .2s ease, transform .2s ease;
  }
  .site-nav a { padding: .8rem .25rem; border-bottom: 1px solid rgba(244, 237, 223, .1); font-size: .7rem; }
  .site-nav a:last-child { border-bottom: 0; }
  .site-header.is-menu-open .site-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-header.is-menu-open .menu-toggle span:nth-child(1) { transform: translateY(.26rem) rotate(45deg); }
  .site-header.is-menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-menu-open .menu-toggle span:nth-child(3) { transform: translateY(-.26rem) rotate(-45deg); }
  .language-picker select { min-width: 5.15rem; padding-right: 1.55rem; padding-left: .6rem; font-size: .65rem; }
  .language-picker::after { right: .62rem; }
  .intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-inline: 1rem;
    transform: translateY(-7vh);
  }
  .intro-role { margin-bottom: .85rem; font-size: .58rem; letter-spacing: .09em; }
  .intro-title { font-size: clamp(3.8rem, 18.5vw, 6.1rem); line-height: .78; }
  .intro-role { order: 1; }
  .intro-title { order: 2; }
  .intro-actions {
    order: 3;
    flex-wrap: nowrap;
    width: 100%;
    margin-block: .45rem;
  }
  .intro-facts { order: 4; width: 100%; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: .65rem; }
  .intro-fact { padding: .55rem .4rem; }
  .intro-fact--voice { grid-column: 1 / -1; }
  .intro-fact dt { font-size: .52rem; }
  .intro-fact dd { font-size: .66rem; }
  .intro-fact dd span { font-size: .57rem; }
  .cv-button {
    position: static;
    z-index: auto;
    min-height: 2.45rem;
    margin-top: 0;
    padding: .7rem 1rem;
    font-size: .6rem;
    line-height: 1;
    writing-mode: horizontal-tb;
    transform: none;
  }
  .cv-button:hover, .cv-button:focus-visible { transform: translateY(-3px); }
  .intro-actions { gap: .25rem; }
  .profile-link { min-height: 2.45rem; padding: .7rem .65rem; font-size: .56rem; }
  .scroll-cue { bottom: 1.15rem; font-size: .52rem; }
  .stage-performers::before { background: radial-gradient(ellipse 58% 37% at 58% 55%, var(--spotlight), transparent 78%); }
  .stage-performers::after { right: 50%; bottom: 4.1rem; width: 47vw; transform: translateX(50%); }
  .stage-performer {
    right: 50%;
    bottom: 4.45rem;
    width: auto;
    height: min(29svh, 16.45rem);
    max-width: none;
    object-fit: contain;
    transform: translate(50%, 1.2rem) scale(.975);
  }
  .stage-performer.is-active { transform: translate(50%, 0) scale(1); }
  .stage-performer.stage-performer--portrait { right: 50%; bottom: 4.45rem; width: auto; height: min(29svh, 16.45rem); max-width: none; }
  .gallery-sequence { height: 230svh; }
  /* Evita un'intera schermata vuota tra l'ultima foto e Self-tape sui telefoni. */
  .gallery-transition-space { height: 32svh; }
  .gallery-phase { --gallery-card-width: calc((100vw - 8vw) / 3); --gallery-stagger: 9vh; }
  .photo { width: min(68vw, 26rem); }
  .photo--one { top: 10%; left: 12%; }
  .photo--two { top: 18%; left: 18%; }
  .photo--three { top: 26%; left: 24%; }
  .gallery-phase.is-assembling .photo { width: var(--gallery-card-width); top: 12%; }
  .gallery-phase.is-assembling .photo--one { left: 3%; }
  .gallery-phase.is-assembling .photo--two { top: calc(12% + var(--gallery-stagger)); left: calc(3vw + var(--gallery-card-width) + 1vw); }
  .gallery-phase.is-assembling .photo--three { left: calc(3vw + var(--gallery-card-width) + 1vw + var(--gallery-card-width) + 1vw); }
  .gallery-wall { gap: 1vw; padding: 0 3vw; }
  .gallery-column { gap: 1vw; padding-top: 12svh; }
  /* Sul telefono le sorgenti hanno formati molto diversi. Manteniamo una
     griglia pulita ritagliando soltanto le miniature: l'originale resta
     invariato e si apre comunque nel lightbox. */
  .gallery-wall .wall-image,
  .gallery-stage .photo {
    aspect-ratio: 3 / 4;
  }
  .gallery-wall .wall-image img,
  .gallery-stage .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 28%;
  }
  .gallery-credit { right: 1rem; bottom: 1rem; font-size: .54rem; letter-spacing: .1em; }
  .video-phase { height: auto; min-height: 100svh; padding: 6rem 1rem 3rem; overflow: visible; }
  .video-phase h2 { white-space: normal; }
  .video-phase__content { height: auto; }
  .video-showcase { grid-template-columns: 1fr; }

  /* Il consenso contiene più testo di un video 16:9: su mobile lo spazio
     extra compare soltanto finché YouTube non è stato caricato. */
  .video-player:has(.youtube-consent:not([hidden])) {
    aspect-ratio: auto;
    min-height: 27rem;
  }
  .video-player__top { align-items: flex-start; gap: .65rem; padding: .95rem; }
  .video-player__top p { font-size: clamp(1.15rem, 6vw, 1.45rem); line-height: 1.08; }
  .video-player__quality { flex: 0 0 auto; }
  .youtube-consent { width: calc(100% - 1.5rem); max-width: none; padding: .95rem; }
  .youtube-consent p { margin-bottom: .7rem; font-size: .78rem; line-height: 1.42; }
  .youtube-consent__privacy-link { margin-bottom: .75rem; font-size: .72rem; }
  .youtube-consent button { min-height: 2.7rem; padding: .7rem .9rem; font-size: .72rem; }

  .show-list__items { max-height: 18rem; }
  .experience-phase { padding-inline: 1rem; }
  .experience-phase h2 { white-space: normal; }
  .experience-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .experience-group + .experience-group { border-top: 1px solid rgba(248, 240, 226, .15); border-left: 0; padding-top: 3.5rem; padding-left: 0; }
  .experience-list li { grid-template-columns: 1fr; gap: .35rem; }
  .site-footer { padding-inline: 1rem; }
  .site-footer__credit { right: 1rem; bottom: 1.1rem; max-width: 12rem; font-size: .52rem; }
  .lightbox { padding: 1rem; }
  .lightbox-frame { width: calc(100vw - 5.5rem); height: calc(100svh - 8rem); }
  .lightbox-control, .lightbox-close { width: 2.65rem; height: 2.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after { animation: none; }
  .photo, .intro-title { transition-duration: .01ms; }
}
