/* ============================================================================
 * Home page — "ANTOLOGIA"
 * Carosello editoriale orizzontale con prospettiva 3D.
 * ============================================================================ */

/* Font: tutto il sito usa solo Titillium Web (caricato in functions.php). */

/* ─── Body + override navbar ──────────────────────────────────────────────── */

body.home {
    background: var(--color-crema);
    color: var(--color-grafite);
    overflow-x: clip;
}

/* Navbar globale: trasparente sopra l'opera + z-index basso (lo stage 3D
   è z-index 10, header lo sovrasta). Niente override di colori, padding o
   font: la navbar deve restare COSTANTE su tutte le pagine. */
body.home .site-header {
    background: transparent;
    border-bottom: none;
    z-index: 80;
}

/* ─── Tokens ──────────────────────────────────────────────────────────────── */

.ant-main {
    --bg:       #F2F0EB;          /* = var(--color-crema) per consistency */
    --ink:      #1E1E1C;
    --pietra:   #8E8880;
    --pietra-l: rgba(142, 136, 128, 0.22);
    --ferro:    #5A4F47;
    --argilla:  #C4A882;

    --opera-w:   460px;
    --opera-h:   680px;
    --opera-gap: 360px;       /* spazio tra una opera e l'altra */
    --step:      820px;       /* opera-w + opera-gap, semplifica i calcoli */

    /* Spotlight: bande di larghezza moderata (0.2 = 92px su desktop, 56px su
       mobile), 30px di gap tra bande. La prima banda è offset OLTRE il bordo
       dell'immagine centrale per evitare overlap durante lo scroll. 4 bande
       per lato riempiono il viewport. Step lineare tra bande successive. */
    --spot-band-scale: 0.2;
    --spot-band-gap:   30px;
    --spot-step:       calc( var(--spot-band-scale) * var(--opera-w) + var(--spot-band-gap) );
    /* Posizione del centro della PRIMA banda dal centro del viewport:
       = (metà immagine centrale full) + gap + (metà banda) */
    --spot-first-band: calc( var(--opera-w) / 2 + var(--spot-band-gap)
                           + var(--spot-band-scale) * var(--opera-w) / 2 );

    --f-display: 'Titillium Web', sans-serif;
    --f-ui:      'Titillium Web', sans-serif;

    --ease-stone: cubic-bezier(0.32, 0.08, 0.24, 1);
    --ease-v1:    cubic-bezier(0.16, 1, 0.3, 1);

    position: relative;
}

/* ─── Header overlay (orologio + place) ───────────────────────────────────── */

.ant-meta {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: var(--nav-height);
    z-index: 90;       /* sopra la site-header (80) per non essere mai coperti */
    display: flex;
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
    pointer-events: none;
    font-family: var(--f-ui);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ferro);
}
.ant-meta__cell { white-space: nowrap; }
.ant-meta__cell--clock {
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
/* Puntino "vivo" accanto all'ora */
.ant-meta__cell--clock::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--argilla);
    animation: ant-clock-blink 2.4s steps(1) infinite;
}
@keyframes ant-clock-blink {
    0%, 60%  { opacity: 1; }
    65%, 100% { opacity: 0; }
}

/* ─── Stage 3D ────────────────────────────────────────────────────────────── */

.ant-stage {
    position: fixed;
    inset: var(--nav-height) 0 130px 0;
    perspective: 1600px;
    perspective-origin: 50% 50%;
    overflow: hidden;
    z-index: 10;
}

.ant-strip {
    position: absolute;
    top: 50%;
    left: 0;
    display: flex;
    gap: var(--opera-gap);
    transform-style: preserve-3d;
    /* Stato iniziale: opera 0 centrata. L'animation infinita parte dopo loader. */
    transform:
        translateY(-50%)
        translateX( calc( 50vw - var(--opera-w) / 2 ) );
    will-change: transform;
}

/* L'animazione del carosello è gestita interamente da JS (initAutoplay):
   - scroll fluido (easeInOutSine, 1.8s) tra un'opera e l'altra
   - pausa contemplativa (3s) su ogni opera
   - quando arriva al primo clone (visivamente identico all'opera 0)
     fa un wrap istantaneo a position 0 → loop infinito impercettibile. */

/* ─── Opera: tile 3D che varia in funzione della distanza dal centro ────── */

/* ─── @property --mode: 0 = default 3D, 1 = spotlight flat ────────────────── */
/* Registriamo --mode come number animabile. Senza @property, transitioning
   delle custom properties è "discrete" (snap). Con @property, possiamo
   interpolare smooth tra 0 e 1 al toggle del pulsante. Le formule sotto
   blendono i due stati via calc(). */

@property --mode {
    syntax: '<number>';
    initial-value: 0;
    inherits: true;
}

body.home {
    --mode: 0;
    transition: --mode 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

body.home.is-spotlight {
    --mode: 1;
}

.ant-opera {
    /* --focus: 1 = centrale frontale, 0 = laterale lontana (JS aggiorna) */
    --focus:    0;
    --dir:      0;   /* -1 a sinistra del centro, +1 a destra */
    --dist:     0;   /* distanza signed dal centro */
    --abs-dist: 0;   /* |dist| */
    --spot-vis: 1;   /* visibilità in spotlight (1 entro 4 bande, fade tra 4-5) */

    position: relative;
    flex-shrink: 0;
    width: var(--opera-w);
    height: var(--opera-h);
    transform-style: preserve-3d;
    backface-visibility: hidden;

    /* Tutti i valori sono blend tra default 3D (--mode=0) e spotlight (--mode=1).
       In spotlight:
       - translateX porta l'opera a una posizione "screen" specifica:
         per |dist|≤1 interpola tra centro (0) e prima banda (--spot-first-band),
         per |dist|>1 prosegue con step --spot-step tra bande.
       - scaleX scende da 1 (centro) a --spot-band-scale (lateral) man mano che
         |dist| cresce, clampato al min al raggiungimento della scala banda. */

    transform:
        translateX( calc(
            (
                var(--dir) * (
                    var(--spot-first-band) * min(var(--abs-dist), 1)
                    + var(--spot-step) * max(0, calc(var(--abs-dist) - 1))
                )
                - var(--dist) * var(--step)
            ) * var(--mode)
        ) )
        scaleX( calc(
            (0.36 + 0.64 * var(--focus)) * (1 - var(--mode))
            + max(
                var(--spot-band-scale),
                calc( 1 - (1 - var(--spot-band-scale)) * var(--abs-dist) )
              ) * var(--mode)
        ) )
        scaleY( calc(
            (0.36 + 0.64 * var(--focus)) * (1 - var(--mode))
            + 1 * var(--mode)
        ) )
        translateZ( calc( (-480px + 480px * var(--focus)) * (1 - var(--mode)) ) )
        rotateY(    calc( (-28deg * var(--dir) * (1 - var(--focus))) * (1 - var(--mode)) ) );

    /* Solo blur sui laterali: niente più dim né desat né velatura di
       trasparenza. Le opere ai lati mantengono piena luminosità e colore
       naturale, sono soltanto fuori fuoco — effetto "dreamy" più che "spente". */
    filter: blur( calc( 8px * (1 - var(--focus)) * (1 - var(--mode)) ) );

    /* Default: opacity sempre 1. Spotlight: opacity = --spot-vis che il JS
       imposta 1 entro 4 bande dal centro, fade lineare tra 4 e 5, poi 0. */
    opacity: calc( (1 - var(--mode)) + var(--mode) * var(--spot-vis) );

    transition: box-shadow 0.6s cubic-bezier(0.32, 0.08, 0.24, 1);
}

/* ─── Modalità spotlight (attivabile da bottone ||| in basso a destra) ────── */
/* Quando `body.is-spotlight` è attivo, il carosello cambia profondamente:
   - SCOMPARE la prospettiva 3D: niente translateZ, niente rotateY → tiles
     allineati su uno stesso piano frontale.
   - SCOMPARE l'ombreggiatura sulle opere.
   - Ogni tile ha larghezza variabile (scaleX): stretta quando l'opera è
     laterale, larga al centro. Il "riquadro grafite" si apre/chiude come
     un sipario man mano che l'opera attraversa il centro.
   - L'overlay usa --ink (stesso colore del titolo dell'opera) e svanisce
     con curva clamp((1-focus)*2, 0, 1): nero pieno finché focus ≤ 0.5,
     reveal lineare nella seconda metà. */

/* Le proprietà transform/filter/opacity sono ora gestite via --mode (vedi
   sopra) che blendi smoothly i due stati. body.is-spotlight imposta --mode=1
   e CSS @property transitiona il valore da 0 a 1 (e viceversa). */

.ant-opera__link::after {
    content:        '';
    position:       absolute;
    inset:          0;
    background:     transparent;
    opacity:        clamp( 0, calc( ( 1 - var(--focus) ) * 2 ), 1 );
    pointer-events: none;
    z-index:        5;
    transition:     background 0.5s cubic-bezier(0.32, 0.08, 0.24, 1);
}

body.is-spotlight .ant-opera__link::after {
    background: var(--ink);
}

/* No ombra nelle opere in spotlight (anche in dark mode) */
body.is-spotlight .ant-opera__link,
:root.dark body.home.is-spotlight .ant-opera__link {
    box-shadow: none;
}

.ant-opera__link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow:
        0 30px 80px rgba(30, 30, 28, 0.18),
        0 8px 24px rgba(30, 30, 28, 0.10);
    transition: box-shadow 0.6s cubic-bezier(0.32, 0.08, 0.24, 1);
}
.ant-opera__link:focus-visible {
    outline: 2px solid var(--argilla);
    outline-offset: 6px;
}

.ant-opera__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ant-opera__placeholder {
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(90, 79, 71, 0.08),
            rgba(90, 79, 71, 0.08) 12px,
            transparent 12px,
            transparent 24px),
        #d8d6cc;
}

/* ─── Footer overlay (titolo + paginazione) ───────────────────────────────── */

.ant-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 70;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1.5rem 2rem 1.7rem;
    pointer-events: none;
    gap: 2rem;
}

.ant-bottom__left {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-width: 50vw;
}
.ant-bottom__title {
    margin: 0;
    font-family: var(--f-display);
    font-weight: 500;
    font-style: italic;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.012em;
    transform-origin: left center;
    transition:
        opacity   0.55s cubic-bezier(0.32, 0.08, 0.24, 1),
        transform 0.75s cubic-bezier(0.32, 0.08, 0.24, 1),
        filter    0.75s cubic-bezier(0.32, 0.08, 0.24, 1);
}
.ant-bottom__title.is-changing {
    opacity:   0;
    transform: translateY(-28px) scale(0.92);
    filter:    blur(16px);
}
.ant-bottom__meta {
    margin: 0;
    font-family: var(--f-ui);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ferro);
    line-height: 1.6;
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    transition:
        opacity   0.5s cubic-bezier(0.32, 0.08, 0.24, 1),
        transform 0.6s cubic-bezier(0.32, 0.08, 0.24, 1),
        filter    0.6s cubic-bezier(0.32, 0.08, 0.24, 1);
}
.ant-bottom__meta.is-changing {
    opacity:   0;
    transform: translateY(-14px);
    filter:    blur(4px);
}
.ant-bottom__dash {
    color: var(--pietra);
    font-weight: 400;
}

.ant-bottom__right {
    display: flex;
    align-items: baseline;
    gap: clamp(2rem, 5vw, 5rem);
    font-family: var(--f-ui);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.ant-bottom__count {
    display: inline-flex;
    gap: 0.6em;
    align-items: baseline;
}
.js-ant-current {
    display: inline-block;
    min-width: 1.5em;
    transition:
        opacity   0.5s cubic-bezier(0.32, 0.08, 0.24, 1),
        transform 0.6s cubic-bezier(0.32, 0.08, 0.24, 1),
        filter    0.6s cubic-bezier(0.32, 0.08, 0.24, 1);
}
.js-ant-current.is-changing {
    opacity:   0;
    transform: translateY(-16px) scale(0.85);
    filter:    blur(8px);
}
.ant-bottom__slash { color: var(--pietra); font-weight: 400; }
/* Bottone toggle spotlight: 3 elementi che morphano da linee verticali sottili
   a quadrati. Animazione SIMMETRICA — ogni elemento scala dal suo centro
   (transform-origin: center) usando scaleX/scaleY su uno spazio riservato
   fisso, così le forme non shiftano lateralmente mentre cambiano. Stagger
   center-out: il punto centrale morpha per primo, i laterali seguono insieme. */

/* Il button definisce il colore tramite la sua property `color`. I dot
   ereditano via `currentColor` → il colore segue automaticamente:
   - light/dark mode (override esistente più in basso per dark)
   - hover (sotto)
   - stato is-spotlight (sotto) */

.ant-bottom__mark {
    display:         inline-flex;
    align-items:     center;
    gap:             4px;
    padding:         8px 6px;
    background:      none;
    border:          none;
    cursor:          pointer;
    color:           var(--ferro);     /* light mode default → dot color */
    pointer-events:  auto;
    line-height:     1;
    transition:      color 0.55s cubic-bezier(0.32, 0.08, 0.24, 1);
}
.ant-bottom__mark:hover {
    color: var(--ink);
}
.ant-bottom__mark:focus-visible {
    outline:        2px solid var(--argilla);
    outline-offset: 4px;
}

.ant-bottom__mark__dot {
    display:          block;
    flex-shrink:      0;
    width:            10px;
    height:           14px;
    background-color: currentColor;       /* eredita da .ant-bottom__mark color */
    transform:        scale( 1, 0.715 );  /* default QUADRATO: 10 × 10 */
    transform-origin: center center;
    transition:       transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
    will-change:      transform;
}

/* Stagger center-out simmetrico (forward e reverse) */
.ant-bottom__mark__dot:nth-child(1),
.ant-bottom__mark__dot:nth-child(3) {
    transition-delay: 0.06s;
}

body.is-spotlight .ant-bottom__mark { color: var(--ink); }

body.is-spotlight .ant-bottom__mark__dot {
    transform: scaleX( 0.2 );     /* LINEA: 2px × 14px */
}

/* ─── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .ant-main {
        --opera-w: 280px;
        --opera-h: 420px;
        --opera-gap: 200px;
        --step: 480px;
    }
    .ant-stage { inset: var(--nav-height) 0 110px 0; perspective: 1100px; }
    .ant-meta { gap: 2rem; font-size: 0.62rem; }
    .ant-bottom { padding: 1rem 1.2rem 1.2rem; }
}

@media (max-width: 600px) {
    /* Mobile bottom info compatto: titolo ridotto, layout in colonna,
       counter + paginatore su una riga separata. Più respiro per
       l'immagine. */
    .ant-main {
        --opera-w: 220px;
        --opera-h: 320px;
        --opera-gap: 140px;
        --step: 360px;
    }
    .ant-stage { inset: var(--nav-height) 0 95px 0; }
    .ant-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        padding: 0.8rem 1.1rem 1rem;
    }
    .ant-bottom__left {
        max-width: 100%;
        gap: 0.3rem;
    }
    .ant-bottom__title { font-size: 1.45rem; line-height: 1.05; }
    .ant-bottom__meta {
        font-size: 0.56rem;
        letter-spacing: 0.14em;
    }
    .ant-bottom__right {
        font-size: 0.66rem;
        justify-content: space-between;
        gap: 1rem;
    }
}

/* ─── Landscape mobile (low-height): viewport orizzontale corto ──────────
   In iPhone landscape (812×375) il default opera-h: 680px non entra nei
   375px di viewport: l'immagine viene croppata/sovrapposta. Scalo opera/step
   sull'altezza disponibile mantenendo il bottom info leggibile. */
@media (orientation: landscape) and (max-height: 500px) {
    .ant-main {
        --opera-w: 180px;
        --opera-h: 240px;
        --opera-gap: 140px;
        --step: 320px;
    }
    .ant-stage { inset: var(--nav-height) 0 78px 0; perspective: 900px; }
    .ant-bottom {
        flex-direction: row;
        align-items: center;
        gap: 0.6rem;
        padding: 0.6rem 1rem 0.75rem;
    }
    .ant-bottom__left { gap: 0.15rem; }
    .ant-bottom__title { font-size: 1.05rem; line-height: 1.1; }
    .ant-bottom__meta  { font-size: 0.5rem;  letter-spacing: 0.14em; }
    .ant-bottom__right { font-size: 0.6rem; gap: 0.8rem; }
}

/* ─── Animazioni di ingresso (post-loader) ─────────────────────────────── */
/* Trigger: `body.is-loaded` aggiunto da home.js dopo l'evento `loader:done`.
   Ogni elemento ha un delay scaglionato per creare una sequenza orchestrata. */

@keyframes ant-enter-meta {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ant-enter-stage {
    from { opacity: 0; transform: scale(0.95); filter: blur(6px); }
    to   { opacity: 1; transform: scale(1);    filter: blur(0); }
}

@keyframes ant-enter-title {
    from { opacity: 0; transform: translateY(28px); filter: blur(10px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes ant-enter-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ant-enter-from-right {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Stato iniziale: tutto nascosto finché non parte la sequenza */
body:not(.is-loaded) .ant-meta__cell,
body:not(.is-loaded) .ant-stage,
body:not(.is-loaded) .ant-bottom__title,
body:not(.is-loaded) .ant-bottom__meta,
body:not(.is-loaded) .ant-bottom__count,
body:not(.is-loaded) .ant-bottom__mark {
    opacity: 0;
}

/* Sequenza orchestrata — delay scaglionati.
   Fill-mode `backwards`: durante il delay l'elemento è nello stato `from`
   (nascosto). Dopo l'animation, torna allo stato CSS regolare (visibile +
   transition attiva) — permette il fade swap del bottom info di funzionare. */
body.is-loaded .ant-meta__cell--clock { animation: ant-enter-meta       1.0s cubic-bezier(0.32, 0.08, 0.24, 1) 0.20s backwards; }
body.is-loaded .ant-meta__cell--place { animation: ant-enter-meta       1.0s cubic-bezier(0.32, 0.08, 0.24, 1) 0.32s backwards; }
body.is-loaded .ant-stage             { animation: ant-enter-stage      1.4s cubic-bezier(0.32, 0.08, 0.24, 1) 0.45s backwards; }
body.is-loaded .ant-bottom__title     { animation: ant-enter-title      1.2s cubic-bezier(0.32, 0.08, 0.24, 1) 0.90s backwards; }
body.is-loaded .ant-bottom__meta      { animation: ant-enter-up         1.0s cubic-bezier(0.32, 0.08, 0.24, 1) 1.05s backwards; }
body.is-loaded .ant-bottom__count     { animation: ant-enter-from-right 0.9s cubic-bezier(0.32, 0.08, 0.24, 1) 1.15s backwards; }
body.is-loaded .ant-bottom__mark      { animation: ant-enter-from-right 0.9s cubic-bezier(0.32, 0.08, 0.24, 1) 1.30s backwards; }

/* ─── Entrata cinematografica delle opere ─────────────────────────────────── */
/* Ogni opera arriva da Z lontano + Y alto, con stagger basato su --i.
   Al termine dell'animation il transform del CSS principale (con --focus / --dir)
   riprende il controllo, garantendo coerenza con l'interazione di scroll. */

@keyframes ant-opera-entry {
    from {
        opacity: 0;
        transform:
            scale(0.55)
            translate3d(0, 60px, -520px)
            rotateY(0deg);
    }
}

body:not(.is-loaded) .ant-opera {
    opacity: 0;
}

body.is-loaded .ant-opera {
    animation: ant-opera-entry 1.4s cubic-bezier(0.32, 0.08, 0.24, 1) both;
    /* Le opere centrali entrano per prime, le successive si accodano con stagger */
    animation-delay: calc( 0.7s + var(--i) * 70ms );
}


/* ─── Dark mode ───────────────────────────────────────────────────────────── */

/* Token override sulla home in dark: tono caldo (non grigio puro), testi
   in avorio caldo per coerenza con il restanti dark mode del sito. */
:root.dark .ant-main {
    --bg:       #1A1815;
    --ink:      #E8E3D8;
    --pietra:   #8A857B;
    --pietra-l: rgba(180, 170, 158, 0.18);
    --ferro:    #B0A89E;
    --argilla:  #C4A882;
}

:root.dark body.home {
    background: #1A1815;
    color: #E8E3D8;
}

/* Navbar: forzata trasparente in dark per non coprire l'orologio sottostante.
   Override con specificità più alta di `:root.dark .site-header` (main.css). */
:root.dark body.home .site-header {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: none !important;
}

/* Niente override colori navbar in dark mode home: usa i default globali
   (main.css) per garantire consistenza cross-page. */

/* Header overlay (orologio · Urbino) */
:root.dark body.home .ant-meta { color: #B0A89E; }
:root.dark body.home .ant-meta__cell--clock { color: #E8E3D8; }

/* Opere: ombre più morbide su fondo scuro (l'ombra nera diventa eccessiva) */
:root.dark body.home .ant-opera__link {
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 8px 24px rgba(0, 0, 0, 0.40);
}

/* Placeholder opere (quando manca l'immagine) */
:root.dark body.home .ant-opera__placeholder {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(196, 168, 130, 0.06),
            rgba(196, 168, 130, 0.06) 12px,
            transparent 12px,
            transparent 24px),
        #2A2723;
}

/* Bottom overlay: titolo · meta · paginazione */
:root.dark body.home .ant-bottom__title  { color: #E8E3D8; }
:root.dark body.home .ant-bottom__meta   { color: #B0A89E; }
:root.dark body.home .ant-bottom__dash   { color: #8A857B; }
:root.dark body.home .ant-bottom__right  { color: #E8E3D8; }
:root.dark body.home .ant-bottom__slash,
:root.dark body.home .ant-bottom__total,
:root.dark body.home .ant-bottom__mark   { color: #8A857B; }

/* Dark mode: hover e spotlight del pulsante ||| → quadrati devono andare
   verso il chiaro (al contrario del light) per restare ben visibili. */
:root.dark body.home .ant-bottom__mark:hover { color: #E8E3D8; }
:root.dark body.home.is-spotlight .ant-bottom__mark { color: #E8E3D8; }

/* Focus ring leggibile su scuro */
:root.dark body.home .ant-opera__link:focus-visible {
    outline-color: #D4BA92;
}

/* ─── Reduced motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .ant-opera {
        transition: none !important;
        filter: none !important;
        opacity: 1 !important;
        transform: scale(0.9) !important;
    }
    /* Animazioni di ingresso: stato finale immediato */
    body:not(.is-loaded) .ant-meta__cell,
    body:not(.is-loaded) .ant-stage,
    body:not(.is-loaded) .ant-bottom__title,
    body:not(.is-loaded) .ant-bottom__meta,
    body:not(.is-loaded) .ant-bottom__count,
    body:not(.is-loaded) .ant-bottom__mark {
        opacity: 1 !important;
    }
    body.is-loaded .ant-meta__cell,
    body.is-loaded .ant-stage,
    body.is-loaded .ant-bottom__title,
    body.is-loaded .ant-bottom__meta,
    body.is-loaded .ant-bottom__count,
    body.is-loaded .ant-bottom__mark {
        animation: none !important;
    }
}
