/* ==========================================================================
   Alessandra Balzani — one page
   UIkit 3 + CSS custom minimo. Le classi custom sono prefissate per sezione
   e ogni blocco indica l'equivalente YOOtheme (Section / Grid / Gallery…).
   ========================================================================== */

/* ---------- Token ---------- */
:root {
  --bg: #0c0b0a;            /* nero caldo */
  --bg-2: #141210;          /* superfici */
  --ink: #ece6dc;           /* avorio */
  --ink-2: rgba(236, 230, 220, .64);
  --ink-3: rgba(236, 230, 220, .38);
  --line: rgba(236, 230, 220, .14);
  --accent: #c8213f;        /* cremisi, ripreso dal ritratto */

  --serif: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
}

/* ---------- Lenis (stili richiesti) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Base ---------- */
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, h4, .h-display, .h-mega {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.02em;
  margin: 0;
}
em { font-style: italic; color: inherit; } /* UIkit di default colora <em> di rosa */
h1 em, h2 em, h3 em, .h-display em, .h-mega em { color: var(--ink); font-weight: 400; }
a { color: inherit; }
a:hover { color: var(--ink); text-decoration: none; }
img { max-width: 100%; }
p { margin: 0 0 1.2em; }

.uk-container { padding-left: var(--gutter); padding-right: var(--gutter); }

.mono, .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.muted { color: var(--ink-3); }
.eyebrow { color: var(--ink-3); margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.eyebrow .num { color: var(--accent); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.h-display { font-size: clamp(34px, 4.6vw, 72px); line-height: 1.04; }
.h-mega { font-size: clamp(54px, 10vw, 168px); line-height: .94; letter-spacing: -.035em; }
.lead { font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-2); max-width: 46ch; }

.section { padding: clamp(96px, 16vh, 200px) 0; position: relative; }

/* Link con sottolineatura che si disegna */
.link-line { position: relative; display: inline-block; }
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .7s var(--ease);
}
.link-line:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Split text (generato da JS) ---------- */
/* padding inferiore ampio: la "f" e la "g" corsive di Bodoni scendono ~0,4em sotto la riga */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .14em .46em 0; margin: 0 -.14em -.46em 0; }
.sw.is-done, [data-reveal="scrub"] .sw { overflow: visible; } /* a rivelazione finita la maschera non deve tagliare g, p, virgole */
.sw-i { display: inline-block; will-change: transform; }
.sc { display: inline-block; will-change: transform; }

/* ---------- Loader ---------- */
/* Il mirino (.loader__frame) è a tutto schermo: la "finestra" è data dal clip-path
   calcolato in JS, così le immagini in object-fit: cover coincidono con l'hero
   quando il mirino si apre. */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  overflow: hidden;
}
.no-js .loader { display: none; }
.loader__frame { position: absolute; inset: 0; clip-path: inset(50% 50% 50% 50%); will-change: clip-path; }
.loader__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.loader__frame img.is-on { visibility: visible; }
/* Tutte tranne l'ultima (poster dell'hero, deve restare a tutto schermo):
   occupano solo il mirino 3:4 centrato e sono mostrate intere, senza tagli */
.loader__frame img:not(:last-child) {
  inset: auto; top: 50%; left: 50%;
  width: var(--win-w); height: var(--win-h);
  transform: translate(-50%, -50%);
  object-fit: contain;
}
/* Griglia a 3 colonne: la colonna centrale è larga quanto il mirino,
   così il nome lo "abbraccia" senza sovrapporsi */
.loader__name {
  position: absolute; inset: 0; display: grid; align-items: center;
  grid-template-columns: 1fr var(--win-w, 28vh) 1fr; column-gap: 3.5vw;
  font-family: var(--serif); color: var(--ink); line-height: 1; letter-spacing: -.035em;
  font-size: clamp(40px, 6.2vw, 116px); pointer-events: none;
}
.loader__half { display: block; overflow: hidden; padding: 0 .14em .24em; margin-bottom: -.24em; }
.loader__half > * { display: block; will-change: transform; }
.loader__half--l { grid-column: 1; justify-self: end; }
.loader__half--r { grid-column: 3; justify-self: start; }
.loader__bottom {
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 4vh, 40px);
  display: flex; justify-content: space-between; align-items: flex-end; color: var(--ink-3);
}
.loader__logo { width: 92px; height: auto; filter: invert(1); opacity: .9; }
.loader__idx { color: var(--accent); }
@media (max-width: 639px) {
  /* Su mobile il nome si dispone sopra e sotto il mirino */
  .loader__name { grid-template-columns: 1fr; grid-template-rows: 1fr var(--win-h, 40vh) 1fr; row-gap: 18px; justify-items: center; }
  .loader__half--l { grid-column: 1; grid-row: 1; align-self: end; justify-self: center; }
  .loader__half--r { grid-column: 1; grid-row: 3; align-self: start; justify-self: center; }
}

/* ---------- Cursore "luce di galleria" (solo puntatori precisi) ----------
   Il puntatore di sistema resta visibile. Due elementi lo accompagnano:
   - .cursor__glow: una luce morbida che illumina il fondo scuro, dietro i contenuti
     (main ha z-index superiore), come un faretto su una parete;
   - .cursor__badge: un disco avorio con l'azione, solo sopra i lavori. */
.cursor { display: none; pointer-events: none; transition: opacity .6s; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; }
}
.cursor.is-hidden { opacity: 0; }
main { position: relative; z-index: 1; }

.cursor__glow {
  position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none;
  width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 230, 220, .075) 0%, rgba(200, 33, 63, .03) 32%, rgba(12, 11, 10, 0) 66%);
  will-change: transform;
}

.cursor__badge { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; will-change: transform; }
.cursor__disc {
  position: absolute; left: 0; top: 0; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  transform: scale(0); transition: transform .7s var(--ease);
}
.cursor__text { opacity: 0; transition: opacity .3s; }
.cursor.has-label .cursor__disc { transform: scale(1); }
.cursor.has-label .cursor__text { opacity: 1; transition-delay: .12s; }
.cursor.is-down .cursor__disc { transform: scale(.9); }

/* ---------- Grana ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 998; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Header (YOOtheme: Header "Horizontal Justify", sticky) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: transform .8s var(--ease), background-color .6s, padding .6s var(--ease);
}
.site-header.is-scrolled { background: rgba(12, 11, 10, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 12px 0; }
.site-header.is-hidden { transform: translateY(-100%); }
/* Logo: SVG ritagliato sul solo marchio (logo-ab-mark.svg), prima era perso nel quadrato 1024 */
.site-logo { display: block; width: clamp(60px, 5.4vw, 84px); transition: width .6s var(--ease); }
.site-logo img { display: block; width: 100%; height: auto; filter: invert(1); }
.site-header.is-scrolled .site-logo { width: clamp(52px, 4.2vw, 64px); }
.site-nav { display: flex; gap: clamp(20px, 3vw, 44px); list-style: none; margin: 0; padding: 0; }
.site-nav a { font-size: 14px; color: var(--ink-2); transition: color .4s; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after { transform: scaleX(1); }

.btn-pill {
  display: inline-flex; align-items: center; height: 44px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 100px;
  font-size: 14px; color: var(--ink); position: relative; overflow: hidden;
  transition: border-color .5s, color .5s var(--ease);
}
.btn-pill::before {
  content: ""; position: absolute; inset: 0; background: var(--ink); border-radius: inherit;
  transform: translateY(101%); transition: transform .7s var(--ease);
}
.btn-pill span { position: relative; }
.btn-pill:hover { color: var(--bg); border-color: var(--ink); }
.btn-pill:hover::before { transform: none; }

.menu-toggle { width: 44px; height: 44px; background: none; border: 0; padding: 0; display: grid; place-content: center; gap: 7px; }
.menu-toggle span { display: block; width: 26px; height: 1px; background: var(--ink); }

.offcanvas { background: var(--bg-2); width: 100vw; padding: 100px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.offcanvas__nav { list-style: none; padding: 0; margin: 0; }
.offcanvas__nav a { font-family: var(--serif); font-size: 44px; line-height: 1.3; color: var(--ink); }
.offcanvas__mail { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.uk-offcanvas-bar .uk-offcanvas-close { top: 28px; right: var(--gutter); color: var(--ink); }
/* Animazione menu: slide nativo UIkit (mode: slide) con easing del sito + voci a cascata */
#offcanvas-nav .uk-offcanvas-bar-animation { transition-duration: .7s; transition-timing-function: var(--ease); }
/* Pannello a tutta larghezza: da chiuso va spostato di 100vw (UIkit lo sposta solo di 270/350px) */
.uk-offcanvas-flip #offcanvas-nav:not(.uk-open) > .uk-offcanvas-bar { right: -100vw; }
#offcanvas-nav.uk-offcanvas-overlay::before { transition-duration: .7s; }
.offcanvas__nav li, .offcanvas__mail { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
#offcanvas-nav.uk-open .offcanvas__nav li, #offcanvas-nav.uk-open .offcanvas__mail { opacity: 1; transform: none; transition-duration: .9s; }
#offcanvas-nav.uk-open .offcanvas__nav li:nth-child(1) { transition-delay: .20s; }
#offcanvas-nav.uk-open .offcanvas__nav li:nth-child(2) { transition-delay: .26s; }
#offcanvas-nav.uk-open .offcanvas__nav li:nth-child(3) { transition-delay: .32s; }
#offcanvas-nav.uk-open .offcanvas__nav li:nth-child(4) { transition-delay: .38s; }
#offcanvas-nav.uk-open .offcanvas__nav li:nth-child(5) { transition-delay: .44s; }
#offcanvas-nav.uk-open .offcanvas__mail { transition-delay: .52s; }

/* ---------- Hero (YOOtheme: Section viewport height + Video background) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,11,10,.55) 0%, rgba(12,11,10,0) 28%, rgba(12,11,10,.2) 55%, rgba(12,11,10,.92) 100%);
}
.hero__content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(28px, 6vh, 64px); }
.hero__eyebrow { color: var(--ink-2); }
.hero__title { font-size: clamp(64px, 14.5vw, 250px); line-height: .86; letter-spacing: -.045em; }
.hero__line { display: block; }
.hero__line--indent { padding-left: 11vw; }
.hero__title em { font-style: italic; }
.hero__foot { margin-top: clamp(24px, 4vh, 48px) !important; }
.hero__roles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--ink-2); }
.hero__roles li::before { content: "—"; margin-right: 10px; color: var(--ink-3); }

.scroll-cue { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.scroll-cue__line { width: 56px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: cue 2.6s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 50% { transform: none; } 100% { transform: translateX(100%); } }

/* ---------- Manifesto ---------- */
.manifesto__text {
  font-family: var(--serif); color: var(--ink);
  font-size: clamp(28px, 4.2vw, 64px); line-height: 1.18; letter-spacing: -.02em;
  max-width: 22ch; max-width: 1100px;
}

/* ---------- Profilo ---------- */
.profile__portrait { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; }
.profile__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 20%; }
.profile .h-display { margin-bottom: clamp(32px, 5vh, 56px); max-width: 16ch; }
.profile__quote { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; color: var(--ink); margin: 40px 0 48px; padding-left: 24px; border-left: 1px solid var(--accent); max-width: 40ch; }
@media (min-width: 960px) { .profile__portrait { position: sticky; top: 120px; } }

.stats { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 0; }
.stat__num { display: block; font-family: var(--serif); font-size: clamp(36px, 4vw, 60px); line-height: 1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.stat__label { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-3); line-height: 1.4; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(80px, 12vh, 140px); padding: 26px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track--reverse { animation-direction: reverse; animation-duration: 60s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 48px; padding-right: 48px; flex-shrink: 0; }
.marquee__group span { font-family: var(--serif); font-size: clamp(26px, 3vw, 44px); color: var(--ink-3); white-space: nowrap; transition: color .5s; }
.marquee__group span em { color: var(--ink); }
.marquee__group .star { font-size: 16px; color: var(--accent); }
.marquee--tools .marquee__group span { font-family: var(--sans); font-size: clamp(18px, 2vw, 26px); }
.marquee--tools .marquee__group span:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro capitoli ---------- */
.chapter-intro { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0; }
.chapter-index { list-style: none; padding: 0; margin: clamp(40px, 8vh, 80px) 0 0; display: grid; gap: 10px; }
.chapter-index a { font-size: 15px; color: var(--ink-2); }
.chapter-index .mono { color: var(--accent); display: inline-block; width: 36px; }

/* ---------- Frame immagini (YOOtheme: Image / Gallery con lightbox) ---------- */
.frame { display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); position: relative; }
.frame img { display: block; width: 100%; height: auto; transform: scale(1.001); transition: transform 1.6s var(--ease), filter 1.2s var(--ease); }
.frame:hover img { transform: scale(1.05); }
.frame-cap { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 0; color: var(--ink); font-family: var(--serif); font-size: 20px; }
.frame-cap .mono { color: var(--ink-3); }
/* Sfondo lightbox: scuro semitrasparente con sfocatura (YOOtheme: Custom CSS) */
.uk-lightbox { background: rgba(12, 11, 10, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ---------- I. Fashion: scroll orizzontale ---------- */
.hscroll { position: relative; }
.hscroll__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; position: relative; }
.hscroll__track { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.hscroll__intro { width: min(440px, 80vw); flex-shrink: 0; padding-right: 4vw; }
.hscroll__intro .h-display { margin-bottom: 28px; }
.hscroll__lead { max-width: 38ch; }
.hscroll__hint { color: var(--ink-3); margin-top: 32px; }
.hscroll__outro { width: min(520px, 80vw); flex-shrink: 0; padding: 0 6vw 0 4vw; }

/* Larghezza esplicita = altezza × proporzione (--h, --r).
   Non usiamo aspect-ratio: Safari, nel calcolo della larghezza della traccia,
   può considerare la larghezza naturale delle immagini e allungare lo scroll. */
.hcard { flex-shrink: 0; display: block; position: relative; height: var(--h); width: calc(var(--h) * var(--r)); }
.hcard__media { overflow: hidden; border-radius: var(--radius); height: 100%; background: var(--bg-2); }
.hcard__media { position: relative; }
.hcard__media img { position: absolute; top: 0; left: -9%; width: 118%; max-width: none; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.hcard:hover .hcard__media img { transform: scale(1.05); }
.hcard--tall { --h: 68vh; --r: .732; }
.hcard--mid { --h: 54vh; --r: .75; }
.hcard--wide { --h: 52vh; --r: 1.702; }
.hcard--low { align-self: flex-end; margin-bottom: 9vh; }
.hcard--high { align-self: flex-start; margin-top: 11vh; }
.hcard__cap {
  position: absolute; left: 0; bottom: -34px; display: flex; gap: 12px; align-items: baseline;
  font-family: var(--serif); font-size: 18px; color: var(--ink);
  opacity: .0; transform: translateY(-6px); transition: opacity .6s, transform .8s var(--ease);
}
.hcard__cap .mono { color: var(--accent); }
.hcard:hover .hcard__cap { opacity: 1; transform: none; }

.hscroll__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 5vh; height: 1px; background: var(--line); }
.hscroll__progress span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* Mobile: scorrimento orizzontale nativo con snap */
@media (max-width: 959px) {
  .hscroll__pin { height: auto; padding: 96px 0; }
  .hscroll__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); align-items: stretch; padding-bottom: 48px; scrollbar-width: none; }
  .hscroll__track::-webkit-scrollbar { display: none; }
  .hscroll__intro { width: 82vw; scroll-snap-align: start; align-self: center; }
  .hcard { scroll-snap-align: center; align-self: center !important; margin: 0 !important; }
  .hcard--tall, .hcard--mid { --h: 60vh; }
  .hcard--wide { --h: 34vh; }
  .hcard__media img { width: 100%; left: 0; }
  .hcard__cap { opacity: 1; transform: none; }
  .hscroll__outro { display: none; }
}

/* ---------- II. Surreale ---------- */
.surreal .lead { margin-left: auto; }
.triptych { margin-top: clamp(64px, 12vh, 140px) !important; }
.triptych__mid { padding-top: 12vh; }
.wide-reveal { margin: clamp(96px, 16vh, 200px) 0; }
.wide-reveal__frame { display: block; overflow: hidden; height: 88vh; position: relative; }
.wide-reveal__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.wide-reveal__cap { color: var(--ink-3); margin-top: 18px; }
.mosaic__down { padding-top: 14vh; }
@media (max-width: 639px) {
  .triptych__mid { padding-top: 0; }
  .wide-reveal__frame { height: 56vh; }
  .mosaic__down { padding-top: 8vh; }
}

/* ---------- III. Motion: video che si espande ---------- */
.vexpand__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.vexpand__frame { position: absolute; inset: 0; clip-path: inset(28% 33% 28% 33% round 6px); will-change: clip-path; }
.vexpand__video { width: 100%; height: 100%; object-fit: cover; }
.vexpand__shade { position: absolute; inset: 0; background: rgba(12, 11, 10, .25); }
.vexpand__title {
  position: relative; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  font-size: clamp(56px, 11vw, 190px); line-height: .9; letter-spacing: -.04em;
  mix-blend-mode: difference;
}
.vexpand__l, .vexpand__r { display: block; will-change: transform; }
.vexpand__eyebrow { position: absolute; left: var(--gutter); bottom: 5vh; z-index: 2; margin: 0; color: var(--ink); }

.reel__grid { margin-top: clamp(56px, 10vh, 100px) !important; }
.vcard { display: block; }
.vcard__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; background: var(--bg-2); }
.vcard__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.6s var(--ease); }
.vcard:hover .vcard__media video { transform: scale(1.06); }
.vcard__media::after {
  /* Indicatore play minimale */
  content: ""; position: absolute; right: 14px; top: 14px; width: 0; height: 0;
  border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  opacity: .8; transition: opacity .5s;
}
.vcard.is-playing .vcard__media::after { opacity: 0; }
.vcard__meta { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-family: var(--serif); font-size: 20px; color: var(--ink); }
.vcard__meta .mono { color: var(--ink-3); }

/* ---------- IV. Illustrazione (YOOtheme: Slider + Gallery) ---------- */
.illu .h-display { max-width: 18ch; margin-bottom: clamp(48px, 8vh, 88px); }
.illu__slider { padding-left: var(--gutter); }
.illu__slide { width: min(78vw, 1100px); }
.illu__slide .frame { aspect-ratio: 16 / 8; }
.illu__slide .frame img { height: 100%; object-fit: cover; }
.illu__nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; }
.arrow {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 18px; color: var(--ink);
  transition: background-color .5s, color .5s, border-color .5s;
}
.arrow:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.arrow.uk-invisible { visibility: visible !important; opacity: .25; pointer-events: none; }
.sheets { margin-top: clamp(80px, 14vh, 160px) !important; }

/* ---------- V. Interni: stack ---------- */
.stack__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.stack__images img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: clip-path, transform; }
.stack__images img:not(:first-child) { clip-path: inset(100% 0 0 0); }
.stack__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,11,10,.85) 0%, rgba(12,11,10,.35) 45%, rgba(12,11,10,0) 70%); }
.stack__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.stack__content .h-display { margin-bottom: 24px; }
.stack__lead { max-width: 36ch; color: var(--ink-2); }
.stack__counter { color: var(--ink); margin-top: 24px; }
.stack__current { color: var(--accent); }
@media (max-width: 639px) {
  .stack__shade { background: linear-gradient(0deg, rgba(12,11,10,.92) 0%, rgba(12,11,10,.2) 70%); }
  .stack__content { justify-content: flex-end; padding-bottom: 10vh; }
}

/* ---------- Servizi (YOOtheme: Accordion) ---------- */
.services .h-display { max-width: 12ch; }
/* Colonna titolo sticky (intera, così etichetta e titolo restano insieme) */
@media (min-width: 960px) { .services .uk-width-1-3\@m { position: sticky; top: 120px; align-self: flex-start; } }
.svc { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.svc > li { margin: 0 !important; border-bottom: 1px solid var(--line); }
.svc__head {
  display: grid !important; grid-template-columns: 48px 1fr 24px; align-items: center; gap: 12px;
  padding: 28px 0 !important; color: var(--ink) !important; font-family: var(--serif) !important;
  font-size: clamp(22px, 2.4vw, 36px) !important; line-height: 1.15;
  transition: padding .7s var(--ease), color .5s;
}
.svc__head::before { display: none !important; }
.svc__head .mono { color: var(--ink-3); font-size: 11px; transition: color .5s; }
.svc__row:hover .svc__head { padding-left: 14px !important; }
.svc__row:hover .svc__head .mono, .svc__row.uk-open .svc__head .mono { color: var(--accent); }
.svc__plus { width: 14px; height: 14px; position: relative; justify-self: end; }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--ink); transition: transform .6s var(--ease); }
.svc__plus::after { transform: rotate(90deg); }
.uk-open .svc__plus::after { transform: rotate(0); }
.svc__body { margin: 0 !important; padding: 0 0 32px 60px; max-width: 62ch; }
.svc__body p { margin: 0; }


/* ---------- Contatti ---------- */
.contact { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; opacity: .16; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(1); }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(12,11,10,.4) 50%, var(--bg) 100%); }
.contact__inner { position: relative; padding-top: clamp(120px, 20vh, 220px); }
.contact .h-mega { margin-bottom: clamp(56px, 9vh, 96px); }
.contact__mail {
  display: inline-flex; align-items: center; gap: 24px;
  font-family: var(--serif); font-size: clamp(26px, 5vw, 80px); color: var(--ink); letter-spacing: -.02em;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; transition: border-color .6s;
  word-break: break-all;
}
.contact__mail:hover { color: var(--ink); border-color: var(--accent); }
.contact__arrow { display: inline-block; font-family: var(--sans); font-weight: 300; transition: transform .8s var(--ease); }
.contact__mail:hover .contact__arrow { transform: translateX(14px) rotate(-45deg); color: var(--accent); }
.socials { list-style: none; padding: 0; margin: 48px 0 0; display: flex; gap: 24px; font-size: 15px; color: var(--ink-2); }
/* Icone social: colore del testo secondario, pieno in hover */
.socials .uk-icon-link { color: var(--ink-2); transition: color .25s ease, transform .25s ease; }
.socials .uk-icon-link:hover { color: var(--ink); transform: translateY(-2px); }
.site-footer { position: relative; padding-top: 80px; padding-bottom: 28px; color: var(--ink-3); }
.site-footer > .uk-flex { gap: 12px 24px; }

/* Link disclaimer nel footer: <button> resettato per sembrare un link mono */
.footer-disclaimer { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.footer-disclaimer:hover { color: var(--ink); }

/* ---------- Modale disclaimer AI (YOOtheme: modal UIkit con stile Dark) ---------- */
.ai-modal { background: rgba(12, 11, 10, .82); }
.ai-modal .uk-modal-dialog {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  width: 640px; padding: clamp(32px, 5vw, 56px); color: var(--ink-2);
}
.ai-modal .uk-modal-close-default { color: var(--ink-3); top: 20px; right: 20px; }
.ai-modal .uk-modal-close-default:hover { color: var(--ink); }
.ai-modal__title { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 28px; }
.ai-modal__text p { margin: 0 0 16px; font-size: 15px; line-height: 1.7; }
.ai-modal__claim { color: var(--ink); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px !important; }

/* ---------- Stato iniziale animazioni (solo con JS attivo e motion consentito) ---------- */
.js.motion-ok [data-reveal="fade"] { opacity: 0; }
.js.motion-ok .hero__eyebrow, .js.motion-ok .hero__roles li, .js.motion-ok .scroll-cue { opacity: 0; }

/* ---------- Riduzione movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .marquee__track, .scroll-cue__line::after, .eyebrow .dot { animation: none !important; }
  .offcanvas__nav li, .offcanvas__mail { opacity: 1; transform: none; transition: none !important; }
}
