/* Font ospitati sul sito (niente richieste a Google Fonts: GDPR). Licenza SIL Open Font License,
   sottoinsiemi latin e latin-ext presi da Google Fonts il 2026-10-03. */
/* latin-ext */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/big-shoulders-display-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/big-shoulders-display-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/big-shoulders-display-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/big-shoulders-display-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/big-shoulders-display-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/big-shoulders-display-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/manrope-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/manrope-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/manrope-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/manrope-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/manrope-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/manrope-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/manrope-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/manrope-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/manrope-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/manrope-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================================
   LADY FRANCESCA — MOTION & UI LAYER  (lf-motion.css)
   Requires the colour/space/radius tokens (tokens.css) and LF (bundle.js).
   Motion is counted like dance: 120 BPM, 1 beat = 500ms.
   Stagger follows the salsa count 1-2-3 (pausa) 5-6-7 (pausa).
   ===================================================================== */

:root {
  /* --- Tempo ------------------------------------------------------- */
  --lf-bpm: 120;
  --lf-beat: 500ms;               /* 1 tempo                                  */
  --lf-t-colpo: 125ms;            /* 1/4 tempo — press, colour flips          */
  --lf-t-mezzo: 250ms;            /* 1/2 tempo — hover in/out, toggles        */
  --lf-t-tempo: 500ms;            /* 1 tempo — reveals of small things        */
  --lf-t-passo: 750ms;            /* 1 tempo e mezzo — text & image reveals   */
  --lf-t-figura: 1000ms;          /* 2 tempi — curtains, menu, section shifts */
  --lf-t-battuta: 2000ms;         /* 4 tempi — loader count, hero sequence    */
  --lf-t-respiro: 18s;            /* ambient backgrounds                      */
  --lf-stagger: 62ms;             /* 1/8 tempo between siblings               */

  /* --- Easing (named after dance moves) ---------------------------- */
  --lf-ease-passo: cubic-bezier(.22, .8, .24, 1);      /* step: decisive, soft landing — DEFAULT */
  --lf-ease-giro: cubic-bezier(.76, 0, .24, 1);        /* spin: strong in-out — curtains, menu, page */
  --lf-ease-molla: cubic-bezier(.34, 1.56, .64, 1);    /* spring — checks, toggles, badges */
  --lf-ease-casque: cubic-bezier(.6, -.28, .3, 1.3);   /* dip: anticipation + overshoot — medals only */
  --lf-ease-scivolo: cubic-bezier(.4, 0, .2, 1);       /* glide — colour and opacity */

  /* --- Fonts (fallbacks if tokens.css is absent) --------------------- */
  --lf-font-display: var(--font-display, "Fraunces", Georgia, serif);
  --lf-font-sans: var(--font-sans, "Manrope", system-ui, sans-serif);
  --lf-font-numeri: var(--font-numeri, "Big Shoulders Display", "Arial Narrow", sans-serif);
}

/* =====================================================================
   0. PAGE BASE
   ===================================================================== */
.lf-page {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--lf-font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.lf-page.lf-themeshift,
.lf-themeshift {
  transition: background-color var(--lf-t-figura) var(--lf-ease-scivolo),
              color var(--lf-t-figura) var(--lf-ease-scivolo);
}
.lf-display { font-family: var(--lf-font-display); font-variation-settings: "SOFT" 50, "WONK" 0; text-wrap: balance; }
.lf-display em, .lf-display i { font-style: italic; color: var(--accent); font-variation-settings: "SOFT" 100, "WONK" 1; }
.lf-eyebrow { font: 700 12px/1.2 var(--lf-font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.lf-num { font-family: var(--lf-font-numeri); font-variant-numeric: tabular-nums; text-transform: uppercase; }
:where(.lf-page) :focus-visible,
.lf-btn:focus-visible, .lf-check input:focus-visible + .lf-check__box,
.lf-toggle input:focus-visible + .lf-toggle__track, .lf-chip input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ARCO — the signature photo frame (ballroom arch) */
.lf-arco { border-radius: 999px 999px var(--radius-m, 16px) var(--radius-m, 16px); overflow: hidden; }

/* =====================================================================
   1. REVEAL ON SCROLL  [data-lf-reveal="up|down|left|right|scale|blur|fade"]
   Hidden ONLY when LF has booted (html.lf-js) and motion is allowed.
   ===================================================================== */
.lf-js [data-lf-reveal] {
  transition:
    opacity var(--lf-t-passo) var(--lf-ease-scivolo),
    transform var(--lf-t-passo) var(--lf-ease-passo),
    filter var(--lf-t-passo) var(--lf-ease-scivolo),
    clip-path var(--lf-t-figura) var(--lf-ease-giro);
  transition-delay: var(--lf-delay, 0ms);
  will-change: opacity, transform;
}
.lf-js [data-lf-reveal]:not(.is-in) { opacity: 0; }
.lf-js [data-lf-reveal="up"]:not(.is-in)    { transform: translate3d(0, 48px, 0); }
.lf-js [data-lf-reveal="down"]:not(.is-in)  { transform: translate3d(0, -48px, 0); }
.lf-js [data-lf-reveal="left"]:not(.is-in)  { transform: translate3d(64px, 0, 0); }
.lf-js [data-lf-reveal="right"]:not(.is-in) { transform: translate3d(-64px, 0, 0); }
.lf-js [data-lf-reveal="scale"]:not(.is-in) { transform: scale(.88); }
.lf-js [data-lf-reveal="blur"]:not(.is-in)  { filter: blur(14px); transform: scale(1.04); }
.lf-js [data-lf-reveal="giro"]:not(.is-in)  { transform: perspective(900px) rotateY(-24deg) translateX(-24px); transform-origin: left center; }
.lf-js [data-lf-reveal="fade"]:not(.is-in)  { transform: none; }

/* =====================================================================
   2. TEXT ENTRANCES  [data-lf-split="words|chars|lines"]  + data-lf-fx
   LF.split() wraps: .lf-w (mask) > .lf-c (moving part), each with --i.
   ===================================================================== */
.lf-split { display: inline; }
.lf-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.lf-c { display: inline-block; will-change: transform, opacity; }
.lf-js [data-lf-split] .lf-c {
  transition:
    transform var(--lf-t-passo) var(--lf-ease-passo),
    opacity var(--lf-t-passo) var(--lf-ease-scivolo),
    filter var(--lf-t-passo) var(--lf-ease-scivolo),
    font-variation-settings var(--lf-t-figura) var(--lf-ease-passo);
  transition-delay: calc(var(--lf-delay, 0ms) + var(--lf-d, 0ms));
}
/* rise (default): words climb out of a mask */
.lf-js [data-lf-split]:not(.is-in) .lf-c { transform: translate3d(0, 105%, 0); }
/* blur: soft focus pull, no mask */
.lf-js [data-lf-split][data-lf-fx="blur"] .lf-w { overflow: visible; }
.lf-js [data-lf-split][data-lf-fx="blur"]:not(.is-in) .lf-c { transform: translate3d(0, .2em, 0); opacity: 0; filter: blur(10px); }
/* giro: characters swing up on X axis like a turn */
.lf-js [data-lf-split][data-lf-fx="giro"] .lf-w { overflow: visible; perspective: 600px; }
.lf-js [data-lf-split][data-lf-fx="giro"]:not(.is-in) .lf-c { transform: rotateX(-90deg) translateY(.3em); opacity: 0; transform-origin: 50% 100%; }
/* respiro: Fraunces axis swell from thin+sharp to final weight+soft */
.lf-js [data-lf-split][data-lf-fx="respiro"] .lf-w { overflow: visible; }
.lf-js [data-lf-split][data-lf-fx="respiro"]:not(.is-in) .lf-c { transform: none; opacity: 0; font-variation-settings: "wght" 200, "SOFT" 0; letter-spacing: .08em; }

/* Highlight marker — heritage of the old site's yellow "evidenziati" */
.lf-highlight {
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--accent-fill) 34%, transparent) 58%, color-mix(in srgb, var(--accent-fill) 34%, transparent) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  transition: background-size var(--lf-t-figura) var(--lf-ease-giro) var(--lf-delay, 200ms);
  padding-inline: .06em;
}
.lf-highlight.is-in, :not(.lf-js) .lf-highlight { background-size: 100% 100%; }

/* =====================================================================
   3. IMAGE ENTRANCES  [data-lf-image="sipario|tende|arco|zoom"]
   Put on the frame; the <img> inside is moved.
   ===================================================================== */
[data-lf-image] { position: relative; overflow: hidden; isolation: isolate; }
[data-lf-image] > img, [data-lf-image] > picture, [data-lf-image] > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.lf-js [data-lf-image] > img,
.lf-js [data-lf-image] > picture,
.lf-js [data-lf-image] > video { transition: transform calc(var(--lf-t-figura) * 1.4) var(--lf-ease-passo) var(--lf-delay, 0ms); }
.lf-js [data-lf-image]:not(.is-in) > * { transform: scale(1.28); }

/* sipario: fucsia curtain sweeps across and leaves */
[data-lf-image="sipario"]::after {
  content: ""; position: absolute; inset: 0; z-index: 2; background: var(--accent-fill);
  transform-origin: right center; transform: scaleX(0);
}
.lf-js [data-lf-image="sipario"]:not(.is-in)::after { transform: scaleX(1); transform-origin: left center; }
.lf-js [data-lf-image="sipario"].is-in::after { animation: lf-sipario var(--lf-t-figura) var(--lf-ease-giro) var(--lf-delay, 0ms) both; }
@keyframes lf-sipario { 0% { transform: scaleX(1); transform-origin: right center; } 100% { transform: scaleX(0); transform-origin: right center; } }

/* tende: theatre curtains open from the centre */
.lf-js [data-lf-image="tende"] { transition: clip-path var(--lf-t-figura) var(--lf-ease-giro) var(--lf-delay, 0ms); }
.lf-js [data-lf-image="tende"]:not(.is-in) { clip-path: inset(0 50% 0 50%); }
.lf-js [data-lf-image="tende"].is-in { clip-path: inset(0 0 0 0); }

/* arco: rises from the floor inside the arch shape */
[data-lf-image="arco"] { border-radius: 999px 999px var(--radius-m, 16px) var(--radius-m, 16px); }
.lf-js [data-lf-image="arco"] { transition: clip-path calc(var(--lf-t-figura) * 1.2) var(--lf-ease-giro) var(--lf-delay, 0ms); }
.lf-js [data-lf-image="arco"]:not(.is-in) { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); }
.lf-js [data-lf-image="arco"].is-in { clip-path: inset(0 0 0 0 round 999px 999px 16px 16px); }

/* zoom: simple settle + fade */
.lf-js [data-lf-image="zoom"] { transition: opacity var(--lf-t-passo) var(--lf-ease-scivolo) var(--lf-delay, 0ms); }
.lf-js [data-lf-image="zoom"]:not(.is-in) { opacity: 0; }

/* =====================================================================
   4. HOVER TEXT
   ===================================================================== */
/* 4a. Underline that draws in from the left, leaves to the right */
.lf-underline {
  color: inherit; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat right 100% / 0% 1.5px;
  transition: background-size var(--lf-t-tempo) var(--lf-ease-giro), color var(--lf-t-mezzo) var(--lf-ease-scivolo);
  padding-bottom: 2px;
}
.lf-underline:hover, .lf-underline:focus-visible { background-size: 100% 1.5px; background-position: left 100%; color: var(--accent); }

/* 4b. Letter roll — every char rolls up to its copy (LF.roll / data-lf-roll) */
.lf-roll { display: inline-flex; overflow: hidden; line-height: 1.15; vertical-align: bottom; }
.lf-roll .lf-c {
  text-shadow: 0 1.15em 0 var(--lf-roll-to, var(--accent));
  transition: transform var(--lf-t-tempo) var(--lf-ease-giro);
  transition-delay: calc(var(--i, 0) * 18ms);
}
.lf-roll .lf-sp { width: .28em; }
a:hover > .lf-roll .lf-c, button:hover > .lf-roll .lf-c, .lf-roll:hover .lf-c { transform: translateY(-1.15em); }

/* 4c. Respiro — Fraunces weight/softness swell, letter by letter */
.lf-respiro .lf-c {
  font-variation-settings: "wght" var(--lf-w0, 360), "SOFT" 0;
  transition: font-variation-settings var(--lf-t-tempo) var(--lf-ease-passo), color var(--lf-t-tempo) var(--lf-ease-scivolo);
  transition-delay: calc(var(--i, 0) * 22ms);
}
.lf-respiro:hover .lf-c { font-variation-settings: "wght" 680, "SOFT" 100; color: var(--accent); }

/* 4d. Sweep — fucsia→oro light passes through the text */
.lf-sweep {
  background: linear-gradient(100deg, var(--ink) 0 40%, var(--accent) 48%, var(--gold) 54%, var(--ink) 62% 100%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position var(--lf-t-figura) var(--lf-ease-giro);
}
.lf-sweep:hover { background-position: 0 0; }

/* 4e. Corsivo — upright word swaps to accent italic (two stacked copies) */
.lf-corsivo { position: relative; display: inline-grid; overflow: hidden; vertical-align: bottom; }
.lf-corsivo > * { grid-area: 1 / 1; transition: transform var(--lf-t-tempo) var(--lf-ease-giro), opacity var(--lf-t-tempo); }
.lf-corsivo > :last-child { font-style: italic; color: var(--accent); transform: translateY(100%); opacity: 0; font-variation-settings: "SOFT" 100, "WONK" 1; }
.lf-corsivo:hover > :first-child { transform: translateY(-100%); opacity: 0; }
.lf-corsivo:hover > :last-child { transform: none; opacity: 1; }

/* =====================================================================
   5. BUTTONS  .lf-btn  + --primary | --ghost | --oro | --link
   ===================================================================== */
.lf-btn {
  --lf-mx: 50%; --lf-my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 15px/1 var(--lf-font-sans); letter-spacing: .04em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--lf-t-mezzo) var(--lf-ease-passo), box-shadow var(--lf-t-tempo) var(--lf-ease-scivolo), color var(--lf-t-mezzo) var(--lf-ease-scivolo), border-color var(--lf-t-mezzo);
  -webkit-tap-highlight-color: transparent;
}
.lf-btn::before {
  content: ""; position: absolute; z-index: -1; left: var(--lf-mx); top: var(--lf-my);
  width: 260%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--lf-t-passo) var(--lf-ease-giro);
}
.lf-btn:hover::before, .lf-btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
.lf-btn:active { transform: scale(.965); transition-duration: var(--lf-t-colpo); }
.lf-btn__icon { position: relative; display: inline-grid; width: 1.1em; height: 1.1em; overflow: hidden; }
.lf-btn__icon svg { grid-area: 1/1; width: 100%; height: 100%; transition: transform var(--lf-t-tempo) var(--lf-ease-giro); }
.lf-btn__icon svg + svg { transform: translateX(-130%); }
.lf-btn:hover .lf-btn__icon svg:first-child { transform: translateX(130%); }
.lf-btn:hover .lf-btn__icon svg + svg { transform: none; }

/* primary: "gonna" — a deeper fucsia disc opens from the cursor */
.lf-btn--primary { background: var(--accent-fill); color: var(--on-accent); }
.lf-btn--primary::before { background: #8e0e45; }
.lf-btn--primary:hover { box-shadow: var(--glow-fucsia); }

/* ghost: ink rises from the floor, label flips to bg */
.lf-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.lf-btn--ghost::before { background: var(--ink); left: 50%; top: 100%; width: 140%; border-radius: 45%; transform: translate(-50%, 0) scale(1, 0); transform-origin: 50% 100%; aspect-ratio: auto; height: 260%; }
.lf-btn--ghost:hover::before, .lf-btn--ghost:focus-visible::before { transform: translate(-50%, -70%) scale(1, 1); }
.lf-btn--ghost:hover, .lf-btn--ghost:focus-visible { color: var(--bg); border-color: var(--ink); }

/* oro: podium gold with a sequin shimmer passing through */
.lf-btn--oro { background: var(--gold-fill); color: var(--notte-950); }
.lf-btn--oro::before { display: none; }
.lf-btn--oro::after {
  content: ""; position: absolute; inset: -20% auto -20% -40%; width: 30%; z-index: -1;
  background: linear-gradient(100deg, transparent, #fff7dccc, transparent);
  transform: skewX(-18deg) translateX(0); transition: none;
}
.lf-btn--oro:hover::after { animation: lf-shimmer var(--lf-t-figura) var(--lf-ease-giro); }
.lf-btn--oro:hover { box-shadow: var(--glow-oro); }
@keyframes lf-shimmer { to { transform: skewX(-18deg) translateX(560%); } }

/* link-button: text + arrow circle */
.lf-btn--link { padding: 6px 0; color: var(--ink); background: none; }
.lf-btn--link::before { display: none; }
.lf-btn--link .lf-btn__icon { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong); place-items: center; transition: background var(--lf-t-mezzo), border-color var(--lf-t-mezzo), transform var(--lf-t-tempo) var(--lf-ease-molla); }
.lf-btn--link .lf-btn__icon svg { width: 16px; height: 16px; margin: auto; }
.lf-btn--link:hover .lf-btn__icon { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); transform: rotate(-45deg); }
.lf-btn--sm { padding: 11px 18px; font-size: 13px; }

/* =====================================================================
   6. NAVBAR  .lf-nav (+ .is-condensed .is-hidden from LF.navbar)
   ===================================================================== */
.lf-nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: var(--z-nav, 50);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px clamp(16px, 4vw, 48px);
  transition: padding var(--lf-t-tempo) var(--lf-ease-passo), background-color var(--lf-t-tempo), transform var(--lf-t-passo) var(--lf-ease-giro), box-shadow var(--lf-t-tempo);
}
.lf-nav.is-condensed { padding-block: 12px; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.lf-nav.is-hidden { transform: translateY(-110%); }
.lf-nav__brand { font: italic 400 26px/1 var(--lf-font-display); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.lf-nav__brand small { display: block; font: 700 9.5px/1 var(--lf-font-sans); font-style: normal; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-muted); margin-top: 5px; }
.lf-nav__links { position: relative; display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.lf-nav__links a { position: relative; z-index: 1; display: block; padding: 10px 16px; border-radius: 999px; font: 600 14.5px/1 var(--lf-font-sans); color: var(--ink); text-decoration: none; transition: color var(--lf-t-mezzo); }
.lf-nav__links a[aria-current="page"] { color: var(--accent); }
.lf-nav__pill { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; border-radius: 999px; background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transition: transform var(--lf-t-tempo) var(--lf-ease-giro), width var(--lf-t-tempo) var(--lf-ease-giro), opacity var(--lf-t-mezzo); pointer-events: none; }

/* Burger → X */
.lf-burger { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; transition: border-color var(--lf-t-mezzo), background var(--lf-t-mezzo); z-index: calc(var(--z-menu, 80) + 1); }
.lf-burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform var(--lf-t-tempo) var(--lf-ease-molla), width var(--lf-t-mezzo); }
.lf-burger span:first-child { transform: translateY(-4px); }
.lf-burger span:last-child { transform: translateY(4px); right: 20px; }
.lf-burger:hover span:last-child { right: 14px; }
.lf-burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.lf-burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); right: 14px; }

/* =====================================================================
   7. MENU OVERLAY  .lf-menu  (LF.menu) — circular "giro" reveal from the burger
   ===================================================================== */
.lf-menu {
  --lf-ox: 100%; --lf-oy: 0%;
  position: fixed; inset: 0; z-index: var(--z-menu, 80);
  background: var(--surface-raised); color: var(--ink);
  clip-path: circle(0% at var(--lf-ox) var(--lf-oy));
  visibility: hidden;
  transition: clip-path var(--lf-t-figura) var(--lf-ease-giro), visibility 0s linear var(--lf-t-figura);
  display: grid; grid-template-rows: 1fr auto; padding: clamp(88px, 12vh, 140px) clamp(16px, 6vw, 96px) 32px;
  overflow: auto;
}
.lf-menu.is-open { clip-path: circle(150% at var(--lf-ox) var(--lf-oy)); visibility: visible; transition: clip-path var(--lf-t-figura) var(--lf-ease-giro), visibility 0s; }
.lf-menu__list { list-style: none; margin: 0; padding: 0; display: grid; align-content: center; gap: 2px; counter-reset: lfm; }
.lf-menu__list li { overflow: hidden; counter-increment: lfm; }
.lf-menu__list a {
  display: inline-flex; align-items: baseline; gap: 18px; padding: 4px 0;
  font: 360 clamp(40px, 7vw, 84px)/1.02 var(--lf-font-display); letter-spacing: -.025em;
  color: var(--ink); text-decoration: none;
  transform: translateY(110%); transition: transform var(--lf-t-passo) var(--lf-ease-passo), opacity var(--lf-t-mezzo), color var(--lf-t-mezzo), font-variation-settings var(--lf-t-tempo) var(--lf-ease-passo);
  transition-delay: 0ms, 0ms, 0ms, 0ms;
}
.lf-menu__list a::before { content: counter(lfm, decimal-leading-zero); font: 700 13px/1 var(--lf-font-numeri); letter-spacing: .1em; color: var(--accent); transform: translateY(-1.6em); }
.lf-menu.is-open .lf-menu__list a { transform: none; transition-delay: calc(var(--lf-t-mezzo) + var(--lf-d, 0ms)), 0ms, 0ms, 0ms; }
.lf-menu__list:hover a:not(:hover) { opacity: .32; }
.lf-menu__list a:hover { font-style: italic; color: var(--accent); font-variation-settings: "SOFT" 100, "WONK" 1; }
.lf-menu__foot { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 14px; opacity: 0; transform: translateY(16px); transition: opacity var(--lf-t-tempo), transform var(--lf-t-tempo) var(--lf-ease-passo); }
.lf-menu.is-open .lf-menu__foot { opacity: 1; transform: none; transition-delay: 700ms; }

/* =====================================================================
   8. SIDEBAR / DRAWER  .lf-sidebar + .lf-scrim  (LF.sidebar)
   ===================================================================== */
.lf-scrim { position: fixed; inset: 0; z-index: var(--z-sidebar, 70); background: #0d060b80; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity var(--lf-t-passo) var(--lf-ease-scivolo), visibility 0s linear var(--lf-t-passo); }
.lf-scrim.is-open { opacity: 1; visibility: visible; transition: opacity var(--lf-t-passo) var(--lf-ease-scivolo), visibility 0s; }
.lf-sidebar {
  position: fixed; z-index: calc(var(--z-sidebar, 70) + 1); top: 12px; bottom: 12px; right: 12px;
  width: min(440px, calc(100% - 24px));
  background: var(--surface-raised); color: var(--ink); border-radius: var(--radius-l, 32px);
  box-shadow: var(--shadow-lift); padding: 28px; overflow: auto;
  transform: translateX(calc(100% + 24px)); visibility: hidden;
  transition: transform var(--lf-t-figura) var(--lf-ease-giro), visibility 0s linear var(--lf-t-figura);
}
.lf-sidebar--left { right: auto; left: 12px; transform: translateX(calc(-100% - 24px)); }
.lf-sidebar.is-open { transform: none; visibility: visible; transition: transform var(--lf-t-figura) var(--lf-ease-giro), visibility 0s; }
.lf-sidebar [data-lf-item] { opacity: 0; transform: translateX(32px); transition: opacity var(--lf-t-tempo), transform var(--lf-t-passo) var(--lf-ease-passo); }
.lf-sidebar.is-open [data-lf-item] { opacity: 1; transform: none; transition-delay: calc(300ms + var(--lf-d, 0ms)); }

/* =====================================================================
   9. CHECKED EFFECTS  .lf-check  .lf-radio  .lf-toggle  .lf-chip
   ===================================================================== */
.lf-check, .lf-radio, .lf-toggle, .lf-chip { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; color: var(--ink); font: 500 16px/1.3 var(--lf-font-sans); }
.lf-check input, .lf-radio input, .lf-toggle input, .lf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

.lf-check__box { position: relative; flex: none; width: 24px; height: 24px; border-radius: var(--radius-s, 6px); border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: border-color var(--lf-t-mezzo); }
.lf-check__box::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; background: var(--accent-fill); transform: scale(0); transition: transform var(--lf-t-tempo) var(--lf-ease-molla); }
.lf-check__box svg { position: relative; width: 15px; height: 15px; fill: none; stroke: var(--on-accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset var(--lf-t-mezzo) var(--lf-ease-passo); }
.lf-check input:checked + .lf-check__box { border-color: var(--accent-fill); }
.lf-check input:checked + .lf-check__box::before { transform: scale(1); }
.lf-check input:checked + .lf-check__box svg { stroke-dashoffset: 0; transition-delay: 120ms; }
.lf-check:hover .lf-check__box { border-color: var(--accent); }

.lf-radio__dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: border-color var(--lf-t-mezzo); }
.lf-radio__dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-fill); transform: scale(0); transition: transform var(--lf-t-tempo) var(--lf-ease-molla); }
.lf-radio input:checked + .lf-radio__dot { border-color: var(--accent-fill); }
.lf-radio input:checked + .lf-radio__dot::after { transform: scale(1); }
.lf-radio input:focus-visible + .lf-radio__dot { outline: 2px solid var(--focus); outline-offset: 3px; }

.lf-toggle__track { flex: none; position: relative; width: 54px; height: 30px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background var(--lf-t-tempo) var(--lf-ease-scivolo), box-shadow var(--lf-t-tempo); }
.lf-toggle__track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 999px; background: var(--ink-muted); transition: transform var(--lf-t-tempo) var(--lf-ease-molla), background var(--lf-t-mezzo); }
.lf-toggle input:checked + .lf-toggle__track { background: var(--accent-fill); box-shadow: inset 0 0 0 1.5px var(--accent-fill); }
.lf-toggle input:checked + .lf-toggle__track::after { transform: translateX(24px); background: var(--on-accent); animation: lf-squash var(--lf-t-tempo) var(--lf-ease-passo); }
@keyframes lf-squash { 40% { width: 30px; } 100% { width: 22px; } }

.lf-chip span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); font: 600 14px/1 var(--lf-font-sans); transition: background var(--lf-t-mezzo) var(--lf-ease-scivolo), color var(--lf-t-mezzo), border-color var(--lf-t-mezzo), padding var(--lf-t-tempo) var(--lf-ease-molla); }
.lf-chip span::before { content: ""; width: 0; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px) scale(0); transition: width var(--lf-t-tempo) var(--lf-ease-molla), transform var(--lf-t-tempo) var(--lf-ease-molla); margin-right: -8px; }
.lf-chip:hover span { border-color: var(--accent); }
.lf-chip input:checked + span { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.lf-chip input:checked + span::before { width: 5px; transform: rotate(45deg) translateY(-2px) scale(1); margin-right: 0; }

/* =====================================================================
   10. CARDS  .lf-card (+ data-lf-tilt for tilt & spotlight)
   ===================================================================== */
.lf-card {
  --lf-rx: 0deg; --lf-ry: 0deg; --lf-px: 50%; --lf-py: 0%;
  position: relative; isolation: isolate; display: grid; gap: 14px; align-content: start;
  padding: 14px 14px 22px; border-radius: var(--radius-l, 32px);
  background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-card);
  text-decoration: none; transform: perspective(1000px) rotateX(var(--lf-rx)) rotateY(var(--lf-ry));
  transition: transform var(--lf-t-tempo) var(--lf-ease-passo), box-shadow var(--lf-t-tempo) var(--lf-ease-scivolo);
}
.lf-card::after { /* occhio di bue — spotlight that follows the cursor */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--lf-px) var(--lf-py), color-mix(in srgb, var(--accent-fill) 22%, transparent), transparent 60%);
  opacity: 0; transition: opacity var(--lf-t-tempo);
}
.lf-card:hover { box-shadow: var(--shadow-lift); }
.lf-card:hover::after { opacity: 1; }
.lf-card__media { aspect-ratio: 4 / 3; border-radius: calc(var(--radius-l, 32px) - 12px); overflow: hidden; }
.lf-card__media.lf-arco { aspect-ratio: 3 / 4; border-radius: 999px 999px 18px 18px; }
.lf-card__media > * { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform calc(var(--lf-t-figura) * 1.2) var(--lf-ease-passo); }
.lf-card:hover .lf-card__media > * { transform: scale(1.07); }
.lf-card__body { padding-inline: 10px; display: grid; gap: 8px; }
.lf-card__title { font: 500 28px/1.12 var(--lf-font-display); letter-spacing: -.01em; margin: 0; transition: font-variation-settings var(--lf-t-tempo) var(--lf-ease-passo); }
.lf-card:hover .lf-card__title { font-variation-settings: "SOFT" 100, "WONK" 1; }

/* Tags: discipline + room */
.lf-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-s, 6px); font: 700 11px/1.2 var(--lf-font-sans); letter-spacing: .14em; text-transform: uppercase; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.lf-tag--gialla { background: var(--sala-gialla); color: var(--notte-950); box-shadow: none; }
.lf-tag--blu { background: var(--sala-blu); color: #ffffff; box-shadow: none; }
.lf-tag--open { background: var(--accent-fill); color: var(--on-accent); box-shadow: none; }
.lf-tag--oro { background: var(--gold-fill); color: var(--notte-950); box-shadow: none; }

/* =====================================================================
   11. MARQUEE  .lf-marquee > .lf-marquee__track  (LF.marquee duplicates)
   ===================================================================== */
.lf-marquee { --lf-speed: 38s; overflow: hidden; display: flex; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lf-marquee__track { flex: none; display: flex; align-items: center; gap: 0; animation: lf-marquee var(--lf-speed) linear infinite; will-change: transform; }
.lf-marquee--reverse .lf-marquee__track { animation-direction: reverse; }
.lf-marquee:hover .lf-marquee__track { animation-play-state: paused; }
.lf-marquee__item { display: inline-flex; align-items: center; gap: .5em; padding-inline: .5em; white-space: nowrap; font: 360 clamp(36px, 6vw, 76px)/1.1 var(--lf-font-display); letter-spacing: -.02em; }
.lf-marquee__item:nth-child(even) { font-style: italic; color: var(--accent); font-variation-settings: "SOFT" 100, "WONK" 1; }
.lf-marquee__item::after { content: ""; width: .32em; height: .32em; background: var(--gold); transform: rotate(45deg); border-radius: 2px; margin-left: .5em; flex: none; }
@keyframes lf-marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   12. BACKGROUNDS
   ===================================================================== */
/* 12a. Fluid — canvas from LF.fluid() sits in .lf-bg-fluid */
.lf-bg-host { position: relative; isolation: isolate; overflow: hidden; }
.lf-bg-fluid { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lf-bg-fluid canvas { width: 100%; height: 100%; display: block; filter: blur(48px) saturate(1.2); transform: scale(1.15); }

/* 12b. Riflettori — two stage spotlights sweeping, pure CSS */
@property --lf-a1 { syntax: "<angle>"; inherits: false; initial-value: 200deg; }
@property --lf-a2 { syntax: "<angle>"; inherits: false; initial-value: 160deg; }
.lf-bg-riflettori { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.lf-bg-riflettori::before, .lf-bg-riflettori::after {
  content: ""; position: absolute; inset: -40% -20% -10%;
  mix-blend-mode: screen; opacity: .55;
}
.lf-bg-riflettori::before { background: conic-gradient(from var(--lf-a1) at 18% -10%, transparent 0deg, #d6246e66 8deg, transparent 22deg); animation: lf-riflettore-1 var(--lf-t-respiro) var(--lf-ease-giro) infinite alternate; }
.lf-bg-riflettori::after { background: conic-gradient(from var(--lf-a2) at 82% -10%, transparent 0deg, #e2b04a4d 7deg, transparent 20deg); animation: lf-riflettore-2 calc(var(--lf-t-respiro) * 1.3) var(--lf-ease-giro) infinite alternate; }
@keyframes lf-riflettore-1 { to { --lf-a1: 120deg; } }
@keyframes lf-riflettore-2 { to { --lf-a2: 230deg; } }

/* 12c. Pista — slow-moving gradient field (fallback for fluid, also light theme) */
.lf-bg-pista {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 30%, color-mix(in srgb, var(--fucsia-500) 55%, transparent), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, color-mix(in srgb, var(--oro-400) 40%, transparent), transparent 70%),
    radial-gradient(45% 55% at 60% 90%, color-mix(in srgb, var(--corallo-400) 40%, transparent), transparent 70%);
  background-size: 200% 200%;
  animation: lf-pista var(--lf-t-respiro) ease-in-out infinite alternate;
  filter: blur(20px); opacity: .7;
}
@keyframes lf-pista { 0% { background-position: 0% 0%, 100% 0%, 50% 100%; } 100% { background-position: 60% 40%, 40% 60%, 0% 30%; } }

/* 12d. Paillettes — twinkling sequins (LF.sequins injects .lf-sequin) */
.lf-sequins { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.lf-sequin { position: absolute; width: var(--s, 4px); height: var(--s, 4px); background: var(--c, var(--oro-400)); transform: rotate(45deg) scale(0); border-radius: 1px; animation: lf-twinkle var(--dur, 3s) ease-in-out var(--del, 0s) infinite; box-shadow: 0 0 8px var(--c, var(--oro-400)); }
@keyframes lf-twinkle { 0%, 100% { transform: rotate(45deg) scale(0); opacity: 0; } 50% { transform: rotate(45deg) scale(1); opacity: 1; } }

/* 12e. Grana — film grain over photos and dark sections */
.lf-grain::before {
  content: ""; position: absolute; inset: -50%; z-index: 3; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: lf-grain 1s steps(6) infinite;
}
@keyframes lf-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(3%, -6%); } 60% { transform: translate(-7%, -2%); } 80% { transform: translate(6%, 5%); } 100% { transform: translate(0, 0); } }

/* =====================================================================
   13. PAGE LOADER  .lf-loader  (LF.loader) — counts "1 2 3 · 5 6 7"
   ===================================================================== */
.lf-loader { position: fixed; inset: 0; z-index: var(--z-curtain, 100); display: grid; place-items: center; background: var(--notte-950); color: var(--avorio-50); transition: clip-path var(--lf-t-figura) var(--lf-ease-giro); clip-path: inset(0 0 0 0 round 0); }
.lf-loader.is-done { clip-path: inset(0 0 100% 0 round 0 0 50% 50%); pointer-events: none; }
.lf-loader__count { display: flex; gap: clamp(10px, 2.4vw, 28px); font: 800 clamp(48px, 10vw, 120px)/1 var(--lf-font-numeri); letter-spacing: .02em; }
.lf-loader__count span { opacity: .14; transform: translateY(12px); transition: opacity var(--lf-t-colpo), transform var(--lf-t-mezzo) var(--lf-ease-molla), color var(--lf-t-mezzo); }
.lf-loader__count span.is-on { opacity: 1; transform: none; color: var(--fucsia-300); }
.lf-loader__count span.lf-loader__rest { width: .3em; }
.lf-loader__name { position: absolute; bottom: 9vh; left: 0; right: 0; text-align: center; font: italic 400 22px/1 var(--lf-font-display); color: #c4b0bb; letter-spacing: .02em; }
.lf-loader__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--fucsia-500); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform var(--lf-t-mezzo) var(--lf-ease-passo); }

/* =====================================================================
   14. PAGE TRANSITION  .lf-curtain  (LF.pageTransition)
   ===================================================================== */
.lf-curtain { position: fixed; inset: 0; z-index: var(--z-curtain, 100); pointer-events: none; display: grid; }
.lf-curtain__panel { grid-area: 1/1; transform: scaleY(0); transform-origin: 50% 100%; }
.lf-curtain__panel:nth-child(1) { background: var(--fucsia-500); }
.lf-curtain__panel:nth-child(2) { background: var(--notte-950); }
.lf-curtain__label { grid-area: 1/1; place-self: center; font: italic 360 clamp(40px, 8vw, 96px)/1 var(--lf-font-display); color: var(--avorio-50); opacity: 0; font-variation-settings: "SOFT" 100, "WONK" 1; transform: translateY(24px); transition: opacity var(--lf-t-mezzo), transform var(--lf-t-tempo) var(--lf-ease-passo); }
.lf-curtain.is-leaving { pointer-events: all; }
.lf-curtain.is-leaving .lf-curtain__panel { animation: lf-curtain-in var(--lf-t-figura) var(--lf-ease-giro) both; }
.lf-curtain.is-leaving .lf-curtain__panel:nth-child(2) { animation-delay: 120ms; }
.lf-curtain.is-leaving .lf-curtain__label { opacity: 1; transform: none; transition-delay: 500ms; }
.lf-curtain.is-entering .lf-curtain__panel { transform: scaleY(1); animation: lf-curtain-out var(--lf-t-figura) var(--lf-ease-giro) both; }
.lf-curtain.is-entering .lf-curtain__panel:nth-child(1) { animation-delay: 120ms; }
@keyframes lf-curtain-in { from { transform: scaleY(0); transform-origin: 50% 100%; } to { transform: scaleY(1); transform-origin: 50% 100%; } }
@keyframes lf-curtain-out { from { transform: scaleY(1); transform-origin: 50% 0%; } to { transform: scaleY(0); transform-origin: 50% 0%; } }

/* =====================================================================
   15. SECTION TRANSITIONS
   ===================================================================== */
/* 15a. Stack — sticky cards that pile up; LF.stack sets --lf-under (0→1) */
.lf-stack { display: grid; gap: 0; }
.lf-stack > * { position: sticky; top: var(--lf-stack-top, 72px); transform-origin: 50% 0; transform: scale(calc(1 - var(--lf-under, 0) * .06)); filter: brightness(calc(1 - var(--lf-under, 0) * .35)); border-radius: var(--radius-l, 32px); }

/* 15b. Curva — section bottom edge bends with scroll speed ("gonna che gira") */
.lf-curva { border-bottom-left-radius: 50% var(--lf-curve, 0px); border-bottom-right-radius: 50% var(--lf-curve, 0px); transition: border-radius var(--lf-t-tempo) var(--lf-ease-passo); }

/* 15c. Pinned horizontal scroll — Palmarès timeline (LF.hscroll) */
.lf-hscroll { position: relative; }
.lf-hscroll__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.lf-hscroll__track { display: flex; gap: 32px; padding-inline: clamp(16px, 6vw, 96px); will-change: transform; }

/* 15d. Scroll progress bar */
.lf-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: calc(var(--z-nav, 50) + 1); background: var(--accent-fill); transform-origin: left; transform: scaleX(var(--lf-p, 0)); }

/* 15e. Parallax helper */
[data-lf-parallax] { will-change: transform; transform: translate3d(0, var(--lf-py-shift, 0px), 0); }

/* Counter / medal */
.lf-medal { display: inline-grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--gold-fill); color: var(--notte-950); font: 800 40px/1 var(--lf-font-numeri); box-shadow: var(--glow-oro); }
.lf-js .lf-medal[data-lf-reveal]:not(.is-in) { transform: scale(.4) rotate(-40deg); }
.lf-js .lf-medal[data-lf-reveal] { transition-timing-function: var(--lf-ease-scivolo), var(--lf-ease-casque); }

/* Custom cursor — occhio di bue (LF.cursor) */
.lf-cursor { position: fixed; left: 0; top: 0; z-index: calc(var(--z-curtain, 100) - 1); pointer-events: none; opacity: 0; transition: opacity var(--lf-t-mezzo); }
.lf-cursor.is-on { opacity: 1; }
.lf-cursor span { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-fill); display: grid; place-items: center; font: 700 11px/1 var(--lf-font-sans); letter-spacing: .12em; text-transform: uppercase; color: transparent; mix-blend-mode: normal; transition: width var(--lf-t-tempo) var(--lf-ease-molla), height var(--lf-t-tempo) var(--lf-ease-molla), left var(--lf-t-tempo) var(--lf-ease-molla), top var(--lf-t-tempo) var(--lf-ease-molla), background var(--lf-t-mezzo), color var(--lf-t-mezzo); }
.lf-cursor.is-hover span { width: 44px; height: 44px; left: -22px; top: -22px; background: color-mix(in srgb, var(--accent-fill) 30%, transparent); }
.lf-cursor.is-label span { width: 92px; height: 92px; left: -46px; top: -46px; background: var(--accent-fill); color: var(--on-accent); }
@media (hover: none), (pointer: coarse) { .lf-cursor { display: none; } }

/* =====================================================================
   16. REDUCED MOTION — content first, no travel, no ambient loops
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .lf-js [data-lf-reveal]:not(.is-in),
  .lf-js [data-lf-split]:not(.is-in) .lf-c,
  .lf-js [data-lf-image]:not(.is-in),
  .lf-js [data-lf-image]:not(.is-in) > * { transform: none !important; filter: none !important; clip-path: none !important; opacity: 1 !important; }
  [data-lf-image="sipario"]::after { display: none; }
  .lf-marquee__track, .lf-bg-pista, .lf-bg-riflettori::before, .lf-bg-riflettori::after, .lf-sequin, .lf-grain::before { animation: none !important; }
  .lf-sequin { transform: rotate(45deg) scale(.7); opacity: .6; }
  .lf-menu, .lf-sidebar, .lf-scrim, .lf-loader { transition-duration: 1ms !important; }
  .lf-card, .lf-stack > * { transform: none !important; }
  * { scroll-behavior: auto !important; }
}
