/* =====================================================================
   ANIMAI — Tarocchi Gratis Online
   Stile della sezione: hub + flusso Amore (stepper).
   Vanilla CSS, nessuna dipendenza. Colori coerenti col tema del sito,
   oro attivo #E8B75A come da specifica.
   ===================================================================== */

.tg-wrap {
    --tg-gold: #E8B75A;
    --tg-gold-soft: #d4a574;
    --tg-blue: #8a93c7;
    --tg-ink: #e8ecff;
    --tg-panel: #12132b;
    --tg-panel-2: #191a38;
    --tg-border: #2b2d55;
    --tg-max: 980px;

    position: relative;
    max-width: var(--tg-max);
    margin: 0 auto;
    padding: 3rem 1.25rem 5rem;
    color: var(--tg-ink);
    isolation: isolate;
}

/* --- Cielo: gradiente + campo stelle + velature fumo ------------------ */
.tg-wrap::before,
.tg-wrap::after {
    content: "";
    position: absolute;
    top: -2rem;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
}
/* Cielo nebulosa unico (sopra il gradiente, che resta come fallback). */
.tg-wrap::before {
    background:
        url("/assets/img/tg/cielo.webp?v=3") center top / cover no-repeat,
        radial-gradient(1200px 620px at 50% -12%, #1c1d42 0%, #0d0e24 55%, #08080f 100%);
    opacity: .9;
}
@media (max-width: 700px) {
    .tg-wrap::before {
        background-image:
            url("/assets/img/tg/cielo-mobile.webp?v=3"),
            radial-gradient(1200px 620px at 50% -12%, #1c1d42 0%, #0d0e24 55%, #08080f 100%);
    }
}
/* Hub: la pagina è lunga ~4600px, ma il cielo si vede solo nella hero
   (sotto c'è il fondo opaco di .tg-ed). Senza questo limite `cover`
   scalerebbe l'immagine 2,4x-4,3x per coprire tutta la pagina. */
.tg-wrap--hub::before {
    bottom: auto;
    height: 1600px;
}
/* Ora il wrap contiene solo la hero: il cielo copre esattamente la hero e
   non serve piu' nessuna altezza inventata. Resta la dissolvenza sull'ultimo
   quinto, cosi' il cielo non finisce con un taglio netto ma si spegne nel
   fondo della pagina, su cui il blocco di testo apre trasparente. */
.tg-wrap--amore::before,
.tg-wrap--amore::after {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 3rem, #000 80%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 3rem, #000 80%, transparent 100%);
}

/* Il testo di /amore vive in un contenitore proprio: stessi token e stesse
   regole di .tg-wrap--amore, ma senza cielo e senza stacco in cima. */
.tg-doc {
    padding-top: 0;
}
.tg-doc::before,
.tg-doc::after {
    content: none;
}

.tg-doc .tg-intro {
    padding-top: clamp(1.6rem, 3.5vw, 2.4rem);   /* respiro sopra "Tarocchi dell'Amore": non incollato alla banda viola (mobile + desktop) */
}
.tg-doc .tg-intro::before {
    top: 0;
}
/* Breadcrumb nascosto su /amore (scelta di Leonardo): il titolo della hero
   sale. Resta nel DOM per SEO/accessibilita', sparisce solo alla vista. */
.tg-wrap--amore > .tg-breadcrumb {
    display: none;
}
/* Il cielo si vede intero in verticale (cover 0,54x sulla hero da 1051px) e la
   sua nebulosa viola bassa cade dietro al form: la colonna vuota passa da
   9,9,16 a y 60 a 36,21,49 a y 840, cioe' sotto pillole, textarea, contatore
   e bottone. Velo sfumato dietro al solo .tg-app di /amore: trasparente sopra
   le pillole (709), quasi opaco al fondo della hero, dove si raccorda col nero
   su cui apre .tg-doc. Scoped a --amore perche' .tg-app esiste anche su
   /si-o-no e /oracolo. */
.tg-wrap--amore .tg-app {
    position: relative;
    z-index: 0;
}
.tg-wrap--amore .tg-app::before {
    content: "";
    position: absolute;
    /* Ancoraggio in percentuale: con height fissa il velo partiva sotto le
       pillole a 1440, e con il menu rimosso il form risale ancora. Il cielo
       e' piu' carico a destra (69,61,69 contro 40,25,50 a y 840), quindi
       l'opacita' finale sale a .92. */
    top: 42%;
    bottom: -5rem;              /* = padding-bottom della hero */
    height: auto;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(5, 5, 10, 0) 0,
        rgba(5, 5, 10, .45) 28%,
        rgba(5, 5, 10, .78) 55%,
        rgba(5, 5, 10, .92) 100%);
}
/* Hub: colonna ampia come la home (.hv3-wrap = 1200px). Le altre pagine
   che usano .tg-wrap restano a 980px. */
.tg-wrap--hub {
    --tg-max: 1200px;
    padding-left: clamp(1.25rem, 3vw, 2rem);
    padding-right: clamp(1.25rem, 3vw, 2rem);
}
/* Amore: stessa colonna dell'hub (1200px). Serve perché .tg-intro e
   .tg-ed__grid sono tarate su 1136px utili a 1440. Le altre pagine
   con .tg-wrap restano a 980px. */
.tg-wrap--amore {
    --tg-max: 1200px;
    --tg-col: 620px;            /* colonna editoriale unica: 620px ≈ 68 caratteri
                                   al corpo di .tg-ed__p (16,8px), che è la misura
                                   già in uso e verificata in pagina. */
    --tg-rosa: #E65A9F;          /* firma di /amore: accento rosa, non tocca --tg-gold */
    padding-left: clamp(1.25rem, 3vw, 2rem);
    padding-right: clamp(1.25rem, 3vw, 2rem);
}
/* ------------------------------------------------------------------
   /amore: un asse solo. L'hub resta com'e'.
   Prima: intro a 392, FAQ a 533, guida a 710 (misurato a 1920).
   Dopo: tutti e tre a 650 a 1920, 198,5 a 1024.
   ------------------------------------------------------------------ */
.tg-wrap--amore .tg-intro__head,
.tg-wrap--amore .tg-intro__cols,
.tg-wrap--amore .tg-ed__article,
.tg-wrap--amore .tg-faq__inner {
    max-width: min(var(--tg-col), 100%);
    margin-left: auto;
    margin-right: auto;
}
/* Il padding interno dell'articolo era la causa dei +44,8px fuori asse. */
.tg-wrap--amore .tg-ed__article {
    padding: 0;
}
/* Via la griglia a due colonne: su /amore il menu laterale non c'e' piu'. */
.tg-wrap--amore .tg-ed__grid {
    display: block;
}
/* L'intro a colonne e' uno dei blocchi identici all'hub. Su /amore i tre
   paragrafi vanno in colonna singola, dentro la stessa misura del resto. */
.tg-wrap--amore .tg-intro__cols {
    grid-template-columns: minmax(0, 1fr);
}
.tg-wrap--amore .tg-cap {
    position: relative;
}
.tg-cap__n {
    position: absolute;
    right: 100%;
    top: -.06em;
    margin-right: 1.6rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: .02em;
    color: rgba(232, 183, 90, .32);
    pointer-events: none;
    user-select: none;
}
/* Sotto i 900px il margine laterale scende sotto i 104px e il numero non ci
   sta appeso: torna in flusso, sopra il titolo. */
@media (max-width: 900px) {
    .tg-cap__n {
        position: static;
        display: block;
        margin: 0 0 .2rem;
        font-size: 1.8rem;
    }
}
.tg-amore-fig {
    float: right;
    width: 150px;
    margin: .3rem -182px 1rem 2rem;   /* -182 = 150 di carta + 32 di distacco:
                                         la figura esce dalla colonna e sta nel
                                         margine, quindi il testo non le gira
                                         attorno e l'asse non si muove. */
    transform: rotate(3.5deg);
    opacity: .92;
}
.tg-amore-fig--alt {
    transform: rotate(-3.5deg);
}
.tg-amore-fig img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
/* Sotto i 1200px il margine destro scende a 167,8px e non bastano i 182
   richiesti: le carte spariscono invece di stringere la colonna. */
@media (max-width: 1199px) {
    .tg-amore-fig {
        display: none;
    }
}
.tg-amore-band {
    position: relative;
    z-index: 0;
    max-width: min(var(--tg-col), 100%);
    margin: 0 auto;
    padding: 0 0 clamp(2rem, 4vw, 3rem);
    text-align: left;      /* .tg-wrap centra per la hero: qui va annullato,
                              come fanno .tg-intro, .tg-ed e .tg-faq. */
}
/* Unico blocco di /amore senza fondo full-bleed: erano 195px di cielo
   scoperto fra .tg-ed e .tg-faq, con due tagli orizzontali netti. */
.tg-amore-band::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, #07070E 0, #05050A 100%);
}
.tg-amore-band__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tg-amore-band__i {
    display: block;
    padding: .7rem .9rem;
    border: 1px solid var(--tg-border);
    border-radius: 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.08rem;
    color: #EFE6DA;
    text-decoration: none;
    transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.tg-amore-band__i:hover,
.tg-amore-band__i:focus-visible {
    border-color: rgba(232, 183, 90, .55);
    color: #F4D48E;
    transform: translateY(-2px);
}
/* Variante B molto scura: le linee delle costellazioni sono sottili e con
   opacity .9 il gradiente sottostante le sbiadisce. Solo l'hub va a 1. */
.tg-wrap--hub::before { opacity: 1; }
@media (max-width: 700px) {
    /* La hero su telefono finisce a ~700px: oltre non si vede nulla e
       `cover` starebbe solo ingrandendo l'immagine per niente. */
    .tg-wrap--hub::before { height: 900px; }
}
/* Campo stelle: due strati di puntini tileati, con leggero twinkle */
.tg-wrap::after {
    background-image:
        radial-gradient(1.6px 1.6px at 24px 32px, rgba(255,255,255,.55), transparent),
        radial-gradient(1.2px 1.2px at 132px 88px, rgba(232,183,90,.45), transparent),
        radial-gradient(1px 1px at 76px 150px, rgba(255,255,255,.35), transparent),
        radial-gradient(1.4px 1.4px at 190px 40px, rgba(255,255,255,.4), transparent);
    background-size: 220px 220px;
    opacity: .5;
}
@media (prefers-reduced-motion: no-preference) {
    .tg-wrap::after { animation: tg-twinkle 6s ease-in-out infinite; }
}
@keyframes tg-twinkle { 0%,100% { opacity: .35 } 50% { opacity: .6 } }

/* =====================================================================
   HUB — effetti della hero: fumo, stelle cadenti, alone al puntatore.
   Tutto in CSS tranne la posizione dell'alone: nessun canvas, nessun
   filter: blur (i radial-gradient sono già sfumati e costano un decimo).
   z-index -1 come i due pseudo di .tg-wrap: l'ordine di dipintura viene
   dall'ordine dell'albero, e .tg-fx è il primo figlio -> sta sopra il
   cielo e sotto le stelline e il contenuto.
   ===================================================================== */
.tg-fx {
    position: absolute;
    top: -2rem;              /* come il cielo */
    left: 50%;
    width: 100vw;            /* full-bleed */
    height: 1080px;          /* la hero finisce a ~980-1040px */
    transform: translateX(-50%);
    z-index: -1;
    overflow: hidden;        /* il fumo è più largo della finestra */
    pointer-events: none;    /* non deve rubare un solo clic al CTA */
}

/* --- Fumo: due volute che ruotano in senso opposto ------------------
   Un rettangolo che ruota mostrerebbe gli angoli: i gradienti sono
   `closest-side` e si spengono prima del bordo, quindi non c'è nulla da
   ritagliare. Le due velocità diverse (90s e 120s) fanno sì che le
   volute si intreccino senza mai ripetere la stessa forma. */
.tg-fx__smoke,
.tg-fx__smoke::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 180px;
    width: 1500px;
    height: 900px;
    margin-left: -750px;
    border-radius: 50%;
}
.tg-fx__smoke {
    background:
        radial-gradient(closest-side at 34% 42%, rgba(124, 58, 237, .20), transparent 70%),
        radial-gradient(closest-side at 72% 58%, rgba(232, 183, 90, .10), transparent 68%);
    animation: tg-fx-swirl 90s linear infinite;
}
.tg-fx__smoke::before {
    top: 0;
    background:
        radial-gradient(closest-side at 62% 36%, rgba(88, 28, 135, .22), transparent 72%),
        radial-gradient(closest-side at 28% 66%, rgba(167, 139, 250, .09), transparent 70%);
    animation: tg-fx-swirl 120s linear infinite reverse;
}
@keyframes tg-fx-swirl {
    from { transform: rotate(0deg)   scale(1);    }
    50%  { transform: rotate(180deg) scale(1.12); }
    to   { transform: rotate(360deg) scale(1);    }
}

/* --- Stelle cadenti -------------------------------------------------
   Tre elementi, niente JS. Il trucco: durata lunga, visibilità
   brevissima. 3,8% di 27s = ~1s di volo, poi 26s di nulla.
   Le durate 27/31/37 sono numeri primi fra loro: con tre stelle si vede
   una scia ogni ~10s e il motivo non si ripete per oltre 8 ore.
   L'angolo di `rotate` corrisponde alla traiettoria del `translate`
   (atan(dy/dx)): se non coincide, la scia sembra scivolare di lato
   invece di seguire la stella. */
.tg-fx__star {
    position: absolute;
    width: 150px;
    height: 1px;
    opacity: 0;
    background: linear-gradient(90deg,
        transparent 0,
        rgba(255, 255, 255, .0) 30%,
        rgba(255, 255, 255, .85) 92%,
        #fff 100%);
    transform-origin: 100% 50%;
}
.tg-fx__star--1 {
    left: 6%;  top: 70px;
    animation: tg-fx-shoot-1 27s linear infinite;
}
.tg-fx__star--2 {
    left: 44%; top: 24px;
    animation: tg-fx-shoot-2 31s linear infinite 9s;
}
.tg-fx__star--3 {
    left: 68%; top: 110px;
    animation: tg-fx-shoot-3 37s linear infinite 18s;
}
/* dx 460, dy 200 -> 23,5° */
@keyframes tg-fx-shoot-1 {
    0%    { opacity: 0; transform: translate3d(0, 0, 0) rotate(23.5deg) scaleX(.15); }
    0.5%  { opacity: 1; }
    3.4%  { opacity: .9; }
    3.8%  { opacity: 0; transform: translate3d(460px, 200px, 0) rotate(23.5deg) scaleX(1); }
    100%  { opacity: 0; transform: translate3d(460px, 200px, 0) rotate(23.5deg) scaleX(1); }
}
/* dx 560, dy 150 -> 15° */
@keyframes tg-fx-shoot-2 {
    0%    { opacity: 0; transform: translate3d(0, 0, 0) rotate(15deg) scaleX(.15); }
    0.4%  { opacity: 1; }
    3.0%  { opacity: .9; }
    3.3%  { opacity: 0; transform: translate3d(560px, 150px, 0) rotate(15deg) scaleX(1); }
    100%  { opacity: 0; transform: translate3d(560px, 150px, 0) rotate(15deg) scaleX(1); }
}
/* dx 320, dy 280 -> 41,2° */
@keyframes tg-fx-shoot-3 {
    0%    { opacity: 0; transform: translate3d(0, 0, 0) rotate(41.2deg) scaleX(.15); }
    0.4%  { opacity: 1; }
    2.5%  { opacity: .9; }
    2.8%  { opacity: 0; transform: translate3d(320px, 280px, 0) rotate(41.2deg) scaleX(1); }
    100%  { opacity: 0; transform: translate3d(320px, 280px, 0) rotate(41.2deg) scaleX(1); }
}

/* --- Alone al puntatore ---------------------------------------------
   Si muove per `transform`, non per `left/top`: così il browser sposta
   un layer già disegnato invece di ridipingere un gradiente da 560px a
   ogni frame. I margini negativi centrano l'alone sul cursore.
   I default in px (non in %) perché in `translate` le percentuali si
   riferiscono all'elemento, non al contenitore. */
.tg-fx__glow {
    position: absolute;
    left: 0;
    top: 0;
    width: 560px;
    height: 560px;
    margin: -280px 0 0 -280px;
    border-radius: 50%;
    background: radial-gradient(closest-side,
        rgba(232, 183, 90, .13) 0,
        rgba(124, 58, 237, .10) 45%,
        transparent 72%);
    opacity: 0;
    transition: opacity .6s ease;
    transform: translate3d(var(--mx, 500px), var(--my, 380px), 0);
}
.tg-fx.is-lit .tg-fx__glow {
    opacity: 1;
    will-change: transform;   /* solo mentre serve: niente layer permanente */
}

@media (max-width: 700px) {
    /* Su telefono resta solo il fumo, e più tenue: niente stelle (si
       vedrebbero appena) e niente alone (non c'è un puntatore). */
    .tg-fx { height: 720px; }
    .tg-fx__smoke { opacity: .6; }
    .tg-fx__star,
    .tg-fx__glow { display: none; }
}

/* --- Testata --------------------------------------------------------- */
.tg-center { text-align: center; }
.tg-breadcrumb { font-size: .8rem; color: var(--tg-blue); margin-bottom: 1.5rem; }
.tg-breadcrumb a { color: var(--tg-blue); text-decoration: none; }
.tg-breadcrumb a:hover { color: var(--tg-gold); }

.tg-h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.08;
    margin: 0 0 .5rem;
    color: #f4f1e8;
}
.tg-sub { color: #b9c0e6; max-width: 40rem; margin: 0 auto 2rem; line-height: 1.55; }

/* --- Menu a icone ---------------------------------------------------- */
.tg-menu__list {
    list-style: none; display: flex; gap: 2.75rem; justify-content: center;
    padding: 0; margin: 2rem 0; overflow-x: auto; scrollbar-width: none;
}
.tg-menu__list::-webkit-scrollbar { display: none; }
.tg-menu__link {
    display: flex; flex-direction: column-reverse; align-items: center; gap: .45rem;
    text-decoration: none; color: var(--tg-blue); transition: color .2s, transform .2s;
}
.tg-menu__item.is-active .tg-menu__link,
.tg-menu__link:hover { color: var(--tg-gold); }
.tg-menu__link:hover { transform: translateY(-2px); }
.tg-menu__item.is-active .tg-menu__icon { filter: drop-shadow(0 0 7px rgba(232,183,90,.55)); }
.tg-menu__label { font-size: .72rem; letter-spacing: .16em; font-weight: 600; }
.tg-menu__icon svg { width: 36px; height: 36px; display: block; }

/* --- Testo indicizzabile hub ---------------------------------------- */
.tg-prose { color: #c7cdec; line-height: 1.75; max-width: 44rem; margin: 1.5rem auto 0; text-align: left; }
.tg-prose p { margin: 0 0 1rem; }
.tg-prose a { color: var(--tg-gold); }

/* --- Form generico --------------------------------------------------- */
.tg-form { max-width: 34rem; margin: 1.5rem auto 0; text-align: left; }
.tg-form label { display: block; font-size: .85rem; color: var(--tg-blue); margin-bottom: .25rem; }
.tg-form textarea,
.tg-form input {
    width: 100%; box-sizing: border-box; background: var(--tg-panel);
    border: 1px solid var(--tg-border); border-radius: .6rem; color: var(--tg-ink);
    padding: .8rem 1rem; margin: .3rem 0 1rem; font: inherit; transition: border-color .2s, box-shadow .2s;
}
.tg-form textarea { resize: vertical; min-height: 7rem; }
.tg-form textarea:focus,
.tg-form input:focus {
    outline: none; border-color: var(--tg-gold);
    box-shadow: 0 0 0 3px rgba(232,183,90,.15);
}
.tg-counter { font-size: .75rem; color: var(--tg-blue); text-align: right; margin-top: -.6rem; }
.tg-hint { font-style: italic; color: var(--tg-blue); font-size: .85rem; }

.tg-btn {
    display: inline-block; background: var(--tg-gold); color: #1a1405; border: 0;
    border-radius: .6rem; padding: .85rem 1.7rem; font-weight: 700; cursor: pointer;
    text-decoration: none; transition: filter .15s, transform .15s;
}
.tg-btn:hover { filter: brightness(1.06); }
.tg-btn:active { transform: translateY(1px); }
.tg-btn[disabled] { opacity: .4; cursor: not-allowed; }
.tg-btn--ghost { background: transparent; color: var(--tg-gold); border: 1px solid var(--tg-border); }

/* --- Domande suggerite (fascia scorrevole con dissolvenza ai bordi) --- */
.tg-suggerite {
    display: flex; gap: .6rem; overflow-x: auto; padding: .25rem .25rem 1rem;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.tg-suggerite::-webkit-scrollbar { display: none; }
.tg-suggerite button {
    white-space: nowrap; background: var(--tg-panel-2); border: 1px solid var(--tg-border);
    color: #b9c0e6; border-radius: 2rem; padding: .5rem .95rem; font-size: .82rem; cursor: pointer;
    transition: border-color .2s, color .2s;
}
.tg-suggerite button:hover { border-color: var(--tg-gold); color: var(--tg-gold); }

/* --- Errori ---------------------------------------------------------- */
.tg-errore {
    background: #3a1220; border: 1px solid #7a2540; color: #ffd7e0;
    border-radius: .6rem; padding: .7rem 1rem; margin: 1rem auto; max-width: 34rem; font-size: .9rem;
}

/* =====================================================================
   STEPPER (flusso Amore lato JS)
   ===================================================================== */
.tg-app { margin-top: 1rem; }
.tg-step { display: none; }
.tg-step.is-active { display: block; animation: tg-fade .4s ease both; }
@keyframes tg-fade { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

.tg-step__title {
    font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.7rem, 4.5vw, 2.3rem);
    color: #f4f1e8; margin: 0 0 .35rem; text-align: center;
}
.tg-step__eyebrow { font-style: italic; color: var(--tg-blue); text-align: center; margin: 0 0 1rem; }
.tg-count-badge {
    display: inline-flex; align-items: center; justify-content: center; width: 1.7em; height: 1.7em;
    border-radius: 50%; border: 1.5px solid var(--tg-gold); color: var(--tg-gold);
    font-size: .8em; margin-left: .4rem; vertical-align: middle;
}

/* --- Step 2: ventaglio dorsi ---------------------------------------- */
.tg-shuffle-bar { text-align: center; margin: 1rem 0 .5rem; }
.tg-picked-count { text-align: center; color: var(--tg-blue); margin: .5rem 0 1rem; letter-spacing: .04em; }
.tg-fan {
    position: relative; height: 300px; margin: 0 auto; max-width: 960px;
    perspective: 1200px;
}
.tg-fan__card {
    position: absolute; left: 50%; bottom: 0; width: 92px; aspect-ratio: 2/3;
    margin-left: -46px; transform-origin: 50% 120%;
    border-radius: .5rem; overflow: hidden; cursor: pointer;
    border: 1px solid rgba(232,183,90,.35);
    box-shadow: 0 6px 18px rgba(0,0,0,.45);
    transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, filter .2s;
    background: #0d0e24;
}
.tg-fan__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) {
    .tg-fan__card:hover { filter: brightness(1.12); box-shadow: 0 10px 26px rgba(232,183,90,.28); z-index: 5; }
}
.tg-fan__card.is-picked { pointer-events: none; opacity: 0; transform: translateY(-320px) scale(.6); }
.tg-fan.is-shuffling .tg-fan__card { transition: transform .5s ease; }

/* --- Step 3: tre carte + flip 3D ------------------------------------ */
.tg-cards { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0; }
.tg-cards.is-blurred { filter: blur(5px) brightness(.7); pointer-events: none; }
.tg-card { width: 160px; max-width: 40vw; text-align: center; }
.tg-flip { perspective: 1000px; }
.tg-flip__inner {
    position: relative; width: 100%; aspect-ratio: 2/3; transform-style: preserve-3d;
    transition: transform .6s cubic-bezier(.4,.2,.2,1); cursor: pointer; border-radius: .6rem;
}
.tg-card.is-flipped .tg-flip__inner { transform: rotateY(180deg); cursor: default; }
.tg-flip__face {
    position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    border-radius: .6rem; overflow: hidden; border: 1px solid var(--tg-border);
    box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.tg-flip__face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tg-flip__front { transform: rotateY(180deg); }
.tg-card.is-rovesciata .tg-flip__front img { transform: rotate(180deg); }
.tg-card__ruolo { display: block; margin-top: .6rem; font-size: .8rem; color: var(--tg-blue); letter-spacing: .12em; text-transform: uppercase; }
.tg-card__rov { display: block; font-size: .72rem; color: #9aa0c8; font-style: italic; }
.tg-card__nome { display: block; margin-top: .15rem; font-size: .9rem; color: #e8ecff; }

/* --- Step 4: gate ---------------------------------------------------- */
.tg-gate-wrap { position: relative; }
.tg-gate {
    max-width: 30rem; margin: -6rem auto 0; position: relative; z-index: 2;
    background: rgba(18,19,43,.92); border: 1px solid var(--tg-border); border-radius: 1rem;
    padding: 2rem 1.5rem; box-shadow: 0 20px 60px rgba(0,0,0,.5); backdrop-filter: blur(6px);
}
.tg-gate h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; margin: 0 0 .4rem; color: #f4f1e8; text-align: center; }
.tg-gate p.tg-gate__lead { text-align: center; color: #b9c0e6; margin: 0 0 1.2rem; }
.tg-benefits { list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .88rem; color: #c7cdec; }
.tg-benefits li { display: flex; gap: .5rem; align-items: flex-start; margin: .4rem 0; }
.tg-benefits li::before { content: "✓"; color: var(--tg-gold); font-weight: 700; }
.tg-legal { font-size: .72rem; color: #6f78ab; margin-top: .8rem; text-align: center; }
.tg-legal a { color: #8a93c7; }
.tg-switch { text-align: center; margin-top: 1rem; font-size: .88rem; color: #b9c0e6; }
.tg-switch button { background: none; border: 0; color: var(--tg-gold); cursor: pointer; text-decoration: underline; font: inherit; padding: 0; }

/* --- Step 5: lettura ------------------------------------------------- */
.tg-waiting { text-align: center; padding: 2.5rem 0; }
.tg-eye { width: 64px; height: 64px; color: var(--tg-gold); }
@media (prefers-reduced-motion: no-preference) {
    .tg-eye { animation: tg-pulse 1.8s ease-in-out infinite; }
}
@keyframes tg-pulse { 0%,100% { opacity: .5; transform: scale(.96) } 50% { opacity: 1; transform: scale(1.04) } }
.tg-waiting p { color: var(--tg-blue); font-style: italic; margin-top: 1rem; }

.tg-reading { max-width: 42rem; margin: 1.5rem auto 0; line-height: 1.8; color: #d6dbf3; }
.tg-reading p { margin: 0 0 1.1rem; opacity: 0; animation: tg-fade .6s ease forwards; }
.tg-reading a { color: var(--tg-gold); text-decoration: none; border-bottom: 1px solid rgba(232,183,90,.3); }
.tg-reading a:hover { border-bottom-color: var(--tg-gold); }

.tg-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 2rem 0 0; }
.tg-permalink { display: flex; gap: .5rem; align-items: center; max-width: 34rem; margin: 1.5rem auto 0; }
.tg-permalink input { flex: 1; background: var(--tg-panel); border: 1px solid var(--tg-border); border-radius: .5rem; color: #b9c0e6; padding: .6rem .8rem; font: inherit; font-size: .82rem; }

.tg-crosslink {
    max-width: 34rem; margin: 2.5rem auto 0; padding: 1.2rem 1.4rem; text-align: center;
    background: var(--tg-panel-2); border: 1px solid var(--tg-border); border-radius: .8rem; color: #b9c0e6; font-size: .9rem;
}
.tg-crosslink a { color: var(--tg-gold); }

.tg-in-arrivo { text-align: center; color: #b9c0e6; margin: 3rem auto; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 600px) {
    .tg-wrap { padding: 2rem 1rem 4rem; }
    .tg-menu__list { gap: 1.75rem; justify-content: flex-start; }
    .tg-fan { height: 240px; }
    .tg-fan__card { width: 74px; margin-left: -37px; }
    .tg-cards { gap: .6rem; }
    .tg-card { width: 30vw; }
    .tg-gate { margin-top: -3rem; }
}
@media (max-width: 380px) {
    .tg-fan { height: 210px; }
    .tg-fan__card { width: 62px; margin-left: -31px; }
}

/* --- Fascia hero scenografica ---------------------------------------- */
.tg-hero {
    /* full-bleed: esce dai 980px della colonna come fa il cielo */
    position: relative;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);

    height: clamp(240px, 32vw, 500px);
    margin: 1.5rem 0;
    /* ritaglia il ::before scalato dal battito: senza questo l'animazione
       sfonda in orizzontale, perche' overflow-x:hidden sta sul body e non
       su html, quindi non ritaglia lo scorrimento del documento. */
    overflow: hidden;
    pointer-events: none;
}
.tg-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
}
.tg-hero--ventaglio::before { background-image: url("/assets/img/tg/hero-ventaglio.webp?v=6"); }
.tg-hero--amore::before     { background-image: url("/assets/img/tg/hero-amore.webp?v=6"); }
.tg-hero--sionoi::before    { background-image: url("/assets/img/tg/hero-sionoi.webp?v=6"); }
.tg-hero--oracolo::before   { background-image: url("/assets/img/tg/hero-oracolo.webp?v=6"); }

/* Cuore che batte — doppio picco (battito reale, due colpi e pausa).
   Si anima il ::before, non la fascia: il translateX(-50%) del full-bleed
   resta sul genitore e non va piu' ripetuto in ogni keyframe. */
@keyframes tg-battito {
    0%   { transform: scale(1); }
    10%  { transform: scale(1.055); }
    20%  { transform: scale(1.005); }
    30%  { transform: scale(1.04); }
    45%  { transform: scale(1); }
    100% { transform: scale(1); }
}
.tg-hero--amore::before {
    animation: tg-battito 2.4s ease-in-out infinite;
    will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
    .tg-hero--amore::before { animation: none; }
}

@media (max-width: 600px) {
    .tg-hero { height: clamp(160px, 44vw, 260px); margin: 1rem 0; }
}

/* --- Hub: titolo grande con onda di colore ---------------------------
   Stesso effetto della home (ani-charwave), portato qui perche' sulla home
   vive in uno <style> inline della pagina. */
.tg-h1--wave {
    font-size: clamp(2.4rem, 6.4vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: -.01em;
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
}
.tg-h1--wave .tg-word,
.tg-wave .tg-word { display: inline-block; white-space: nowrap; }
.tg-h1--wave .tg-char,
.tg-wave .tg-char {
    display: inline-block;
    animation: tg-charwave 5.2s ease-in-out infinite;
    will-change: color, text-shadow;
}
@keyframes tg-charwave {
    0%, 62%, 100% { color: #f4f1e8; text-shadow: 0 0 18px rgba(196,132,252,.35); }
    14% { color: #f4d78a; text-shadow: 0 0 26px rgba(232,198,106,.85), 0 0 60px rgba(232,198,106,.35); }
    28% { color: #d8a7ff; text-shadow: 0 0 26px rgba(196,132,252,.9), 0 0 62px rgba(168,85,247,.45); }
    42% { color: #8ee6ff; text-shadow: 0 0 24px rgba(142,230,255,.8), 0 0 58px rgba(96,165,250,.35); }
}
.tg-sub--lead {
    font-size: clamp(1rem, 1.8vw, 1.16rem);
    color: #cdd3f2;
    max-width: 44rem;
}

/* --- Hub: ventaglio interattivo --------------------------------------
   Namespace separato da .tg-fan dello stepper: stesso spirito, nessun
   accoppiamento. Posizione e dimensioni le calcola tg-hub.js sulla
   larghezza reale del contenitore, qui c'e' solo l'aspetto. */
.tg-hub-fan {
    position: relative;
    margin: 1.75rem auto 0;
    /* 1136px = 1200 della colonna hub meno 2x32px di padding. Il ventaglio
       occupa sempre W-12 in orizzontale (vedi `reach` in tg-hub.js), quindi
       non può sfondare: allargando W si allarga l'arco e le carte crescono
       da sole tramite W/8.6. */
    max-width: 1136px;
    /* Spazio riservato prima che il JS misuri, per non far risalire il CTA.
       Approssima l'altezza vera del ventaglio, che il modello dà come
       ch/2 + drop + bh/2 + 12 con cw = clamp(44px, W/8.6, 140px):
       120px a 375, 143 a 480, 181 a 600, 235 a 768, 311 a 1024, 368 a 1200,
       372 da 1280 in su (il ventaglio smette di crescere a W = 1136).
       Il clamp qui sotto è esatto a 375, 480, 1200 e oltre 1280, e sbaglia
       al massimo 3px nella fascia intermedia. */
    --fan-h: clamp(120px, calc(31.25vw - 7px), 372px);
    min-height: var(--fan-h);
}
/* Il fallback vive dentro .tg-hub-fan e il JS lo rimuove appena parte:
   con la stessa altezza del ventaglio l'uscita non muove nulla.
   margin a 0 perché quello ereditato da .tg-hero si sommerebbe al
   min-height del contenitore. */
.tg-hub-fan__fallback {
    height: var(--fan-h);
    margin: 0;
}
.tg-hub-fan__card {
    position: absolute;
    left: 50%;
    /* ancorata in alto: il pivot del ventaglio sta sotto le carte, quindi
       ruotando le laterali scendono. Lo spazio va riservato sotto, non sopra. */
    top: 0;
    aspect-ratio: 2 / 3;
    border-radius: .5rem;
    overflow: hidden;
    background: #0d0e24;
    border: 1px solid rgba(232,183,90,.35);
    box-shadow: 0 6px 18px rgba(0,0,0,.45);
    cursor: pointer;
    transform: rotate(var(--rot, 0deg)) translateY(var(--lift, 0px));
    transition: transform .6s cubic-bezier(.34,1.3,.64,1), box-shadow .2s, filter .2s;
    transition-delay: var(--delay, 0s);
}
.tg-hub-fan__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) {
    .tg-hub-fan__card:hover {
        /* !important perche' lo z-index di base lo scrive il JS inline */
        z-index: 60 !important;
        transform: rotate(var(--rot, 0deg)) translateY(calc(var(--lift, 0px) - 26px)) scale(1.05);
        filter: brightness(1.14);
        box-shadow: 0 14px 32px rgba(232,183,90,.30);
        transition-delay: 0s;
    }
}

/* --- Hub: pulsante grande in oro ------------------------------------- */
.tg-hub-cta { margin: 2.1rem auto 0; }
.tg-btn--xl {
    font-size: 1.05rem;
    padding: 1.05rem 2.4rem;
    border-radius: .8rem;
    background: linear-gradient(135deg, #F4D48E 0%, #E8B75A 46%, #C8964C 100%);
    box-shadow: 0 10px 30px rgba(232,183,90,.28);
}
.tg-btn--xl:hover { filter: brightness(1.06); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
    .tg-h1--wave .tg-char { animation: none; }
    .tg-wave .tg-char { animation: none; }
    .tg-hub-fan__card { transition: none; }
}
@media (max-width: 600px) {
    .tg-h1--wave .tg-char { animation: none; }
    .tg-wave .tg-char { animation: none; }
    .tg-hub-cta { margin-top: 1.5rem; }
    .tg-btn--xl { padding: .95rem 1.8rem; font-size: 1rem; }
}

/* --- Hub: i tre simboli, piu' grandi e vivi -------------------------- */
/* Il padding verticale non e' decorativo: .tg-menu__list ha overflow-x:auto,
   quindi ritaglia anche in verticale. Senza questo spazio il salto di
   tg-menucall (-10px + scale 1.16) esce dal box e viene tagliato. */
.tg-menu--hero .tg-menu__list {
    gap: clamp(1.9rem, 6vw, 4.2rem);
    margin: 3.4rem 0 2.4rem;
    padding: 26px 0 10px;
}
.tg-menu--hero .tg-menu__icon svg {
    width: clamp(52px, 6.6vw, 68px);
    height: clamp(52px, 6.6vw, 68px);
}
.tg-menu--hero .tg-menu__label { font-size: .82rem; letter-spacing: .18em; }

/* onda di colore continua, sfalsata di simbolo in simbolo.
   L'animazione vince sulle dichiarazioni normali, quindi in hover la
   spegniamo per far tornare l'oro pieno di .tg-menu__link:hover. */
.tg-menu--hero .tg-menu__link {
    animation: tg-menuwave 6s ease-in-out infinite;
    will-change: color, filter;
}
.tg-menu--hero .tg-menu__item:nth-child(2) .tg-menu__link { animation-delay: 1.1s; }
.tg-menu--hero .tg-menu__item:nth-child(3) .tg-menu__link { animation-delay: 2.2s; }
.tg-menu--hero .tg-menu__link:hover { animation: none; }

@keyframes tg-menuwave {
    0%, 58%, 100% { color: var(--tg-blue); filter: none; }
    12% { color: #f4d78a; filter: drop-shadow(0 0 10px rgba(232,198,106,.55)); }
    26% { color: #d8a7ff; filter: drop-shadow(0 0 10px rgba(196,132,252,.50)); }
    40% { color: #8ee6ff; filter: drop-shadow(0 0 10px rgba(142,230,255,.45)); }
}

/* --- Hub: il richiamo dopo il tocco su una carta --------------------- */
.tg-menu--hero.is-calling .tg-menu__link {
    animation: tg-menucall 1.5s cubic-bezier(.34,1.4,.64,1) 1;
}
.tg-menu--hero.is-calling .tg-menu__item:nth-child(2) .tg-menu__link { animation-delay: .13s; }
.tg-menu--hero.is-calling .tg-menu__item:nth-child(3) .tg-menu__link { animation-delay: .26s; }

@keyframes tg-menucall {
    0%   { transform: translateY(0) scale(1);       color: var(--tg-blue); filter: none; }
    18%  { transform: translateY(-10px) scale(1.16); color: #f7e6b4; filter: drop-shadow(0 0 18px rgba(232,198,106,.95)); }
    38%  { transform: translateY(0) scale(1.04);     color: #d8a7ff; filter: drop-shadow(0 0 16px rgba(196,132,252,.80)); }
    58%  { transform: translateY(-6px) scale(1.10);  color: #8ee6ff; filter: drop-shadow(0 0 16px rgba(142,230,255,.75)); }
    100% { transform: translateY(0) scale(1);       color: var(--tg-blue); filter: none; }
}

/* --- Hub: la carta toccata si solleva un istante --------------------- */
.tg-hub-fan__card.is-tapped {
    z-index: 60;
    transform: rotate(var(--rot, 0deg)) translateY(calc(var(--lift, 0px) - 30px)) scale(1.06);
    filter: brightness(1.16);
    box-shadow: 0 16px 34px rgba(232,183,90,.34);
    transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
    .tg-menu--hero .tg-menu__link { animation: none; }
    .tg-menu--hero.is-calling .tg-menu__link { animation: none; color: var(--tg-gold); }
}

/* ==========================================================================
   HUB — chiusura della hero + blocco editoriale SEO
   Linguaggio visivo ripreso da home-v3.css (.hv3-) ma reimplementato qui:
   la home non va toccata e il suo foglio non viene caricato su questa pagina.
   ========================================================================== */

/* --- La hero si chiude: filetto oro con ornamento centrale -----------
   Niente sfondo pieno dietro l'ornamento: sotto c'e' il cielo di
   .tg-wrap::before e un rettangolo scuro si vedrebbe. Il filetto si
   dissolve prima del centro e riprende dopo. */
.tg-hero-end {
    position: relative;
    height: 22px;
    max-width: 640px;
    margin: clamp(2.8rem, 5.5vw, 4.2rem) auto clamp(2.4rem, 4.5vw, 3.4rem);
}
.tg-hero-end::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(232,183,90,.50) 34%,
        transparent 46%,
        transparent 54%,
        rgba(232,183,90,.50) 66%,
        transparent 100%);
}
.tg-hero-end::after {
    content: "\2726";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: .82rem;
    line-height: 1;
    color: var(--tg-gold);
    text-shadow: 0 0 12px rgba(232,183,90,.65);
    animation: tg-endpulse 4.5s ease-in-out infinite;
}
@keyframes tg-endpulse {
    0%, 100% { opacity: .72; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.14); }
}

/* --- Sezione editoriale d'apertura ---------------------------------------
   Larghezze: la sezione vive dentro .tg-wrap--hub (max 1200px, padding
   clamp(1.25rem,3vw,2rem)), quindi a 1440 ha 1136px utili e non serve un
   max-width proprio. Il testo NON usa i 1136px: lead a 66ch, paragrafi in
   3 colonne da ~353px (~43 caratteri), come la home.
   z-index 1 e' necessario: .tg-ed::before sale di 140px sopra la propria
   sezione e senza questo coprirebbe la barra delle pillole. */
.tg-intro {
    position: relative;
    z-index: 1;
    padding: 0 0 clamp(2.6rem, 5vw, 4rem);
    text-align: left;   /* .tg-wrap centra per la hero: qui va annullato,
                           esattamente come fa .tg-ed */
}
/* fondo proprio, full-bleed: si fonde col cielo in alto e chiude su #07070E,
   lo stesso colore con cui apre .tg-ed. Senza questo il testo starebbe sul
   cielo e la leggibilita' non tiene. */
.tg-intro::before {
    content: "";
    position: absolute;
    top: -80px;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(760px 420px at 88% 6%, rgba(107, 33, 168, .16), transparent 65%),
        linear-gradient(180deg,
            rgba(5, 5, 10, 0) 0,
            rgba(5, 5, 10, .55) 90px,
            rgba(6, 6, 13, .88) 260px,
            #07070E 100%);
}
.tg-intro__head {
    max-width: 900px;
}
.tg-intro__lead {
    margin: 0;
    max-width: 66ch;
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    line-height: 1.75;
    color: rgba(232, 236, 255, .82);
}
.tg-intro__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.4rem);
    margin-top: clamp(2rem, 4vw, 2.8rem);
}
.tg-intro__p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(232, 236, 255, .74);
}
.tg-intro__p a {
    color: #E8D5B5;
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 183, 90, .38);
    transition: color .25s, border-color .25s;
}
.tg-intro__p a:hover { color: #fff; border-color: var(--tg-gold); }

/* --- Barra di navigazione interna: marquee -------------------------------
   Stile delle pillole ripreso da .hv3-chip della home. Il nastro scorre da
   solo e si ferma appena ci passi sopra o ci arrivi col tab: senza la pausa
   un link in movimento e' difficile da centrare.
   Loop esatto: la spaziatura e' margin-right sulle pillole, non gap sul
   flex, e il track non ha padding orizzontale. Con gap, 18 pillole avrebbero
   17 spaziature e -50% cadrebbe 4,8px prima della ripetizione, con uno
   scatto a ogni giro. */
.tg-nav {
    margin-top: clamp(2rem, 4vw, 2.6rem);
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.tg-nav__track {
    display: flex;
    width: max-content;
    padding: .3rem 0;
    animation: tg-navslide 20s linear infinite;
}
/* 20s per 1449,82px = ~72px/s, la stessa velocita' percepita del marquee
   della home (3142px in 42s = ~75px/s) */
@keyframes tg-navslide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.tg-nav:hover .tg-nav__track,
.tg-nav:focus-within .tg-nav__track { animation-play-state: paused; }

.tg-nav__chip {
    margin-right: .6rem;
    white-space: nowrap;
    font-size: .86rem;
    line-height: 1;
    padding: .58rem .95rem;
    border-radius: 999px;
    border: 1px solid var(--tg-border);
    background: rgba(255, 255, 255, .03);
    color: var(--tg-blue);
    text-decoration: none;
    transition: color .3s, border-color .3s, background .3s;
}
.tg-nav__chip:hover,
.tg-nav__chip:focus-visible {
    color: #fff;
    border-color: rgba(212, 165, 116, .5);
    background: rgba(212, 165, 116, .1);
}

@media (min-width: 700px) {
    .tg-intro__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .tg-intro__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- Blocco editoriale ---------------------------------------------- */
.tg-ed {
    position: relative;
    z-index: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 clamp(2.5rem, 6vw, 4.5rem);
    text-align: left;
}
.tg-ed::before {
    content: "";
    position: absolute;
    top: -140px;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(800px 420px at 12% 88%, rgba(107, 33, 168, .18), transparent 65%),
        linear-gradient(180deg,
            rgba(5, 5, 10, 0) 0,
            rgba(5, 5, 10, .72) 70px,
            #07070E 140px,
            #07070E 100%);
}
.tg-ed__grid {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: clamp(1.6rem, 3vw, 2.6rem);
    align-items: start;
}

/* indice sticky */
.tg-ed__toc {
    position: sticky;
    top: clamp(80px, 12vh, 120px);
    padding: 1.15rem 1.1rem 1.25rem 1.25rem;
    border: 1px solid rgba(43, 45, 85, .7);
    border-left: 0;
    border-radius: .1rem .8rem .8rem .1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0));
    overflow: hidden;
}
/* il filetto a sinistra diventa un gradiente oro che si spegne in basso */
.tg-ed__toc::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg,
        rgba(232, 183, 90, .65) 0,
        rgba(43, 45, 85, .9) 55%,
        transparent 100%);
}
.tg-ed__toc-label {
    margin: 0 0 .9rem;
    font-size: .66rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(232, 183, 90, .78);
}
.tg-ed__toc a {
    position: relative;
    display: block;
    padding: .42rem 0 .42rem .75rem;
    font-size: .93rem;
    line-height: 1.45;
    color: var(--tg-blue);
    text-decoration: none;
    transition: color .3s, transform .3s;
}
/* pallino che compare solo sulla voce attiva o sotto il puntatore */
.tg-ed__toc a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    margin-top: -2px;
    border-radius: 50%;
    background: var(--tg-gold);
    opacity: 0;
    transition: opacity .3s;
}
.tg-ed__toc a:hover::before,
.tg-ed__toc a.is-current::before { opacity: 1; }
.tg-ed__toc a:hover,
.tg-ed__toc a.is-current { color: #F4D48E; transform: translateX(3px); }

/* il pannello: il cielo resta visibile ma il testo diventa leggibile */
.tg-ed__article {
    padding: clamp(1.5rem, 3.4vw, 2.8rem);
    max-width: 76ch;
}

/* tipografia */
.tg-ed__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 1rem;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--tg-gold);
}
.tg-ed__eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tg-gold));
}
.tg-ed__h2 {
    margin: 0 0 1.1rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    line-height: 1.14;
    color: #F5F0EB;
}
.tg-ed__h2 em {
    font-style: italic;
    background: linear-gradient(100deg, #F4D48E 0%, #D4A574 45%, #A78BFA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 220% 100%;
    animation: tg-edshine 9s ease-in-out infinite;
}
@keyframes tg-edshine {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.tg-ed__h3 {
    margin: 2.2rem 0 .8rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.18rem, 2.1vw, 1.5rem);
    color: #F5F0EB;
}
.tg-ed__p {
    margin: 0 0 1.05rem;
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(232,236,255,.78);
}
.tg-ed__p a {
    color: #E8D5B5;
    text-decoration: none;
    border-bottom: 1px solid rgba(232,183,90,.38);
    transition: color .25s, border-color .25s;
}
.tg-ed__p a:hover { color: #fff; border-color: var(--tg-gold); }

/* capolettera sul primo paragrafo dell'articolo */
.tg-ed__article .tg-ed__p:first-of-type::first-letter {
    float: left;
    padding: .12em .12em 0 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3.6rem;
    line-height: .82;
    color: var(--tg-gold);
}

/* citazione */
.tg-ed__quote {
    margin: 2.2rem 0;
    padding: 1.4rem 1.6rem;
    border-left: 2px solid rgba(232,183,90,.5);
    background: linear-gradient(90deg, rgba(232,183,90,.07), transparent);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #EFE6DA;
}

/* FAQ a fisarmonica */
.tg-q { border-bottom: 1px solid var(--tg-border); }
.tg-q > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.15rem .2rem;
    font-size: 1.02rem;
    color: #F5F0EB;
    transition: color .3s;
}
.tg-q > summary::-webkit-details-marker { display: none; }
.tg-q > summary:hover { color: #F4D48E; }
.tg-q > summary::after {
    content: "";
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    margin-top: .4em;
    border-right: 1.5px solid var(--tg-gold);
    border-bottom: 1.5px solid var(--tg-gold);
    transform: rotate(45deg);
    transition: transform .35s ease;
}
.tg-q[open] > summary::after { transform: rotate(-135deg); }
.tg-q__a {
    padding: 0 2.4rem 1.4rem .2rem;
    font-size: .97rem;
    line-height: 1.8;
    color: rgba(232,236,255,.74);
}
.tg-q__a a {
    color: #E8D5B5;
    text-decoration: none;
    border-bottom: 1px solid rgba(232,183,90,.38);
}
.tg-q__a a:hover { color: #fff; border-color: var(--tg-gold); }

/* comparsa allo scorrimento. La classe .tg-ed--js la mette il JS:
   senza JS il testo e' visibile e indicizzabile comunque. */
.tg-ed--js .tg-rev {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    filter: blur(6px);
    transition: opacity .9s cubic-bezier(.16,1,.3,1),
                transform .9s cubic-bezier(.16,1,.3,1),
                filter .9s ease;
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform;
}
.tg-ed--js .tg-rev.is-in {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

/* --- Sezione FAQ: fondo proprio, full-bleed sopra il cielo ----------- */
.tg-faq {
    position: relative;
    z-index: 0;
    padding: 3.5rem 0 1rem;
    text-align: left;   /* .tg-wrap centra per la hero: qui va annullato,
                           come già fanno .tg-intro e .tg-ed */
}
.tg-faq::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: -5rem;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, #05050A 0, #0A0714 100%);
}
.tg-faq__inner {
    max-width: 860px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .tg-ed__grid { grid-template-columns: minmax(0, 1fr); }
    .tg-ed__toc { display: none; }
}
@media (max-width: 600px) {
    .tg-ed__article .tg-ed__p:first-of-type::first-letter { font-size: 3rem; }
    .tg-ed__quote { padding: 1.1rem 1.2rem; font-size: 1.1rem; }
    .tg-q__a { padding-right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .tg-hero-end::after { animation: none; }
    .tg-ed__h2 em { animation: none; }
    .tg-ed--js .tg-rev { opacity: 1; transform: none; filter: none; transition: none; }
    .tg-nav__track { animation: none; }
    .tg-nav { overflow-x: auto; scrollbar-width: none; }
    .tg-nav::-webkit-scrollbar { display: none; }
    .tg-fx__smoke,
    .tg-fx__smoke::before { animation: none; }
    .tg-fx__star,
    .tg-fx__glow { display: none; }
}

/* ===================================================================== 
   /amore — selettore dei due mazzi, ventaglio del mazzo pieno, permalink.
   Accento rosa (--tg-rosa) solo su attivo/hover; base = pannello esistente.
   ===================================================================== */
.tg-mazzo {
    display: flex; align-items: center; justify-content: center;
    gap: clamp(1rem, 4vw, 2.5rem); margin: 2rem auto 0; max-width: 660px; text-align: center;
}
.tg-mazzo__opt {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: .8rem;
    padding: 1.4rem 1rem 1.2rem; background: rgba(255,255,255,.03);
    border: 1px solid var(--tg-border); border-radius: 1rem; cursor: pointer; color: var(--tg-ink);
    transition: border-color .25s, background .25s, transform .25s;
}
.tg-mazzo__opt:hover, .tg-mazzo__opt:focus-visible {
    border-color: var(--tg-rosa); background: rgba(230,90,159,.08); transform: translateY(-3px); outline: none;
}
.tg-mazzo__deck { position: relative; width: 120px; height: 150px; display: block; }
.tg-mazzo__card {
    position: absolute; left: 50%; top: 0; width: 84px; height: 126px; margin-left: -42px;
    border-radius: .5rem; border: 1px solid rgba(232,183,90,.35); box-shadow: 0 8px 22px rgba(0,0,0,.5);
    object-fit: cover; transition: transform .3s ease;
}
.tg-mazzo__card--a { transform: rotate(-9deg) translateX(-13px); }
.tg-mazzo__card--b { transform: rotate(0deg); z-index: 2; }
.tg-mazzo__card--c { transform: rotate(9deg) translateX(13px); }
/* il "mazzo che trema": all'hover le carte si aprono un filo di più e salgono */
.tg-mazzo__opt:hover .tg-mazzo__card--a, .tg-mazzo__opt:focus-visible .tg-mazzo__card--a { transform: rotate(-13deg) translateX(-19px) translateY(-4px); }
.tg-mazzo__opt:hover .tg-mazzo__card--c, .tg-mazzo__opt:focus-visible .tg-mazzo__card--c { transform: rotate(13deg) translateX(19px) translateY(-4px); }
.tg-mazzo__opt:hover .tg-mazzo__card--b, .tg-mazzo__opt:focus-visible .tg-mazzo__card--b { transform: translateY(-6px); }
.tg-mazzo__name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; color: #EFE6DA; }
.tg-mazzo__opt:hover .tg-mazzo__name, .tg-mazzo__opt:focus-visible .tg-mazzo__name { color: var(--tg-rosa); }
.tg-mazzo__pill {
    font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tg-blue);
    border: 1px solid var(--tg-border); border-radius: 999px; padding: .35rem .85rem;
}
.tg-mazzo__note { font-size: .72rem; color: var(--tg-blue); opacity: .85; }
.tg-mazzo__div, .tg-mazzo__lock { display: none; }   /* mostrati solo sul mazzo desktop */
.tg-mazzo__mid { display: flex; flex-direction: column; align-items: center; gap: .5rem; flex: 0 0 auto; }
.tg-mazzo__mid .tg-hero--amore { width: 72px; height: 72px; margin: 0; }
.tg-mazzo__or { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tg-blue); }
@media (max-width: 700px) {
    .tg-mazzo { flex-direction: column; gap: 1.2rem; }
    .tg-mazzo__opt { width: 100%; }
    .tg-mazzo__pill { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .tg-mazzo__opt, .tg-mazzo__card { transition: none; }
}

/* ============================================================
   /amore - step "Scegli il mazzo": hero a tutta altezza con
   sfondo dedicato, cuore grande al centro, mazzi liberi e
   obliqui (niente box). SOLO desktop (>=701px): sotto i 700px
   resta la colonna con i box, invariata (lavoro mobile intatto).
   ============================================================ */
@media (min-width: 701px) {
    .tg-mazzo-step {
        position: relative; z-index: 1;
        min-height: calc(100vh - 150px);   /* "si vede solo la hero": da calibrare sull'altezza reale dell'header */
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        padding: 2rem 0;
    }
    /* Sfondo dedicato: quando lo step attivo e' la scelta mazzo, il cielo della
       hero (.tg-wrap::before, che copre gia' tutta la hero, breadcrumb incluso)
       diventa il nuovo sfondo. Un solo sfondo continuo, niente seam; gli altri
       step tengono cielo.webp. :has() non supportato => fallback al cielo. */
    .tg-wrap--amore:has(.tg-mazzo-step, .tg-domanda-step, .tg-mescola-step, .tg-carte-step, .tg-lettura-step)::before {
        background: #0a0917 url("/assets/img/tg/mazzo-bg.webp?v=39") center center / cover no-repeat;
        opacity: 1;
        -webkit-mask-image: linear-gradient(180deg, #000 0, #000 82%, transparent 100%);
                mask-image: linear-gradient(180deg, #000 0, #000 82%, transparent 100%);
    }
    .tg-mazzo-step::after {    /* velatura di rosa: SOLO glow centrale. Niente velo in cima: era lui a fare la riga netta al bordo alto dello step. */
        content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
        width: 100vw; transform: translateX(-50%); z-index: -1; pointer-events: none;
        background: radial-gradient(560px 460px at 50% 52%, rgba(230,90,159,.20), transparent 62%);
    }
    .tg-mazzo-step .tg-mazzo { max-width: 980px; gap: clamp(1rem, 3vw, 2.5rem); }
    /* mazzi liberi: via il box, restano solo carte + etichette */
    .tg-mazzo-step .tg-mazzo__opt {
        background: none; border: none; border-radius: 0; padding: 0; gap: 5px;
    }
    .tg-mazzo-step .tg-mazzo__opt:hover,
    .tg-mazzo-step .tg-mazzo__opt:focus-visible { background: none; border: none; }
    /* posizione del GRUPPO (carte + etichette insieme): X verso il cuore, Y piu' in basso */
    .tg-mazzo-step .tg-mazzo__opt:not(.tg-mazzo__opt--profonda) { transform: translate(4vw, 90px); }
    .tg-mazzo-step .tg-mazzo__opt--profonda { transform: translate(-4vw, 90px); }
    /* carta obliqua accanto al cuore + ombra morbida; lo scale e' la "dimensione carte" (da tarare) */
    .tg-mazzo-step .tg-mazzo__deck {
        filter: drop-shadow(0 16px 26px rgba(0,0,0,.55));
        transition: transform .3s ease;
        margin: 2rem 0 4rem;   /* spazio per l'overflow visivo dello scale: non copre titolo/nome */
    }
    .tg-mazzo-step .tg-mazzo__opt:not(.tg-mazzo__opt--profonda) .tg-mazzo__deck { transform: rotate(-10deg) scale(2); }
    .tg-mazzo-step .tg-mazzo__opt--profonda .tg-mazzo__deck { transform: rotate(10deg) scale(2); }
    .tg-mazzo-step .tg-mazzo__opt:not(.tg-mazzo__opt--profonda):hover .tg-mazzo__deck,
    .tg-mazzo-step .tg-mazzo__opt:not(.tg-mazzo__opt--profonda):focus-visible .tg-mazzo__deck { transform: rotate(-10deg) scale(2) translateY(-8px); }
    .tg-mazzo-step .tg-mazzo__opt--profonda:hover .tg-mazzo__deck,
    .tg-mazzo-step .tg-mazzo__opt--profonda:focus-visible .tg-mazzo__deck { transform: rotate(10deg) scale(2) translateY(-8px); }
    /* cuore grande al centro (stesso asset hero-amore.webp, gia' battente) */
    .tg-mazzo-step .tg-mazzo__mid { gap: .8rem; }
    .tg-mazzo-step .tg-mazzo__mid .tg-hero--amore {
        left: auto; transform: none; margin: 0;
        width: clamp(320px, 33vw, 520px); height: clamp(320px, 33vw, 520px);
    }
    .tg-mazzo-step .tg-mazzo__mid .tg-hero--amore::before { background-position: center; }
    /* titolo un filo piu' grande nella hero ampia */
    .tg-mazzo-step .tg-step__title { font-size: clamp(2.1rem, 3.4vw, 2.9rem); }
    /* etichetta sotto il mazzo — stile "A / ornamento cuore" */
    .tg-mazzo-step .tg-mazzo__name { font-size: 1.6rem; }
    .tg-mazzo-step .tg-mazzo__div {
        display: flex; align-items: center; justify-content: center; gap: 9px;
        margin: 4px 0 2px; color: var(--tg-rosa); font-size: 12px; line-height: 1;
    }
    .tg-mazzo-step .tg-mazzo__div::before,
    .tg-mazzo-step .tg-mazzo__div::after { content: ""; flex: 0 0 auto; height: 1px; width: 34px; }
    .tg-mazzo-step .tg-mazzo__div::before { background: linear-gradient(90deg, transparent, rgba(232,183,90,.7)); }
    .tg-mazzo-step .tg-mazzo__div::after  { background: linear-gradient(90deg, rgba(232,183,90,.7), transparent); }
    .tg-mazzo-step .tg-mazzo__pill {
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-style: italic; font-size: 1.15rem; letter-spacing: .02em; text-transform: lowercase;
        color: var(--tg-gold-soft); border: none; border-radius: 0; padding: 0;
    }
    .tg-mazzo-step .tg-mazzo__note { margin-top: 4px; }
    .tg-mazzo-step .tg-mazzo__lock { display: inline-block; width: 11px; height: 11px; vertical-align: -1px; margin-right: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    .tg-mazzo-step .tg-mazzo__deck { transition: none; }
}

/* --- Ventaglio del mazzo pieno (Profonda, 78) - arco singolo riscalato -- */
.tg-fan--profonda { max-width: 1100px; }   /* doppio ventaglio; altezza e larghezza carta le imposta layoutDoppio() nel JS (responsive) */
.tg-fan--profonda .tg-fan__card:hover { z-index: 2000 !important; filter: brightness(1.2); }
/* Carosello mobile (<=640px, entrambi i mazzi): sostituisce la vecchia
   griglia. Retro grande al centro (vero CFG.retro via <img>), le vicine
   sbucano ai lati; swipe nativo con scroll-snap; tap solo sulla carta
   centrata. Il padding laterale (per centrare prima/ultima) lo mette
   layoutCarosello() nel JS. Tap target carta ben oltre i 44px. */
.tg-fan--carosello {
    position: relative; height: auto; max-width: 100%;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    display: flex; align-items: center; gap: 14px; padding: 30px 0 16px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.tg-fan--carosello::-webkit-scrollbar { display: none; }
.tg-fan--carosello .tg-fan__card {
    position: relative; flex: 0 0 44vw; max-width: 210px; width: auto; margin: 0;
    aspect-ratio: 2/3; scroll-snap-align: center;
    transform: scale(.8); opacity: .5;
    transition: transform .3s cubic-bezier(.34,1.4,.64,1), opacity .3s, box-shadow .3s;
}
.tg-fan--carosello .tg-fan__card.is-center {
    transform: scale(1.08); opacity: 1; z-index: 3;
    box-shadow: 0 14px 30px rgba(232,183,90,.22), 0 8px 22px rgba(0,0,0,.55);
}
.tg-fan--carosello .tg-fan__card.is-picked {
    opacity: .32; transform: scale(.8) !important; pointer-events: none;
    box-shadow: 0 0 0 2px var(--tg-rosa);
}
@media (prefers-reduced-motion: reduce) {
    .tg-fan--carosello .tg-fan__card { transition: none; }
}
/* Mescola sul carosello: transizione morbida su spargi/ritorno delle carte. */
.tg-fan--carosello.is-shuffling .tg-fan__card {
    transition: transform .45s cubic-bezier(.34,1.2,.64,1), opacity .45s ease; z-index: 4;
}
/* Badge numero carta: in un angolo, oro su blu; solo sul carosello. */
.tg-fan__num {
    display: none; position: absolute; top: 7px; left: 7px; z-index: 2;
    min-width: 1.4em; padding: 1px 6px; border-radius: 999px;
    background: rgba(11,12,30,.72); border: 1px solid rgba(232,183,90,.55);
    color: var(--tg-gold); font-family: system-ui, -apple-system, sans-serif;
    font-size: 12px; line-height: 1.5; text-align: center; pointer-events: none;
}
.tg-fan--carosello .tg-fan__num { display: block; }
/* "Scegli N Carte" piu' vistoso: enfasi solo su mobile, desktop invariato. */
@media (max-width: 640px) {
    .tg-step__title--pick { font-size: 2.5rem; letter-spacing: .015em; }
}

/* --- Permalink: griglia carte, regge 3 e 5 con la stessa regola -------- */
.tg-carte { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 1.5rem 0; }
.tg-carte .tg-carta { flex: 0 0 auto; width: clamp(96px, 17vw, 150px); margin: 0; text-align: center; }
.tg-carte .tg-carta img { width: 100%; height: auto; border-radius: .5rem; display: block; }
.tg-carte .tg-carta__ruolo { display: block; margin-top: .5rem; font-size: .82rem; color: var(--tg-blue); }
.tg-carte .tg-carta__rov { display: block; font-size: .72rem; color: var(--tg-rosa); }

/* Effetto cuori wow: scia puntatore + esplosione intorno al cuore. Gestito dal
   JS (solo desktop con mouse). pointer-events:none: non intercetta i click. */
.tg-fx-hearts { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.tg-fx-heart {
    position: fixed; margin: -.5em 0 0 -.5em; line-height: 1; pointer-events: none;
    text-shadow: 0 0 6px rgba(255,255,255,.45);
    animation: tg-fx-float 1.1s ease-out forwards; will-change: transform, opacity;
}
@keyframes tg-fx-float {
    0%   { transform: translate(0,0) rotate(0) scale(.5); opacity: 0; }
    18%  { opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .tg-fx-heart { animation: none; display: none; } }

/* aura pulsante del bottone domanda (fuori dal media per riuso) */
@keyframes tg-aura { 0%,100% { transform: scale(.94); opacity: .55; } 50% { transform: scale(1.1); opacity: 1; } }

/* ============================================================
   /amore - step "domanda": stessa hero del mazzo (senza cuore),
   pillole ordinate, riquadro domanda, bottone rosa-oro con aura.
   SOLO desktop (>=701px); mobile invariato.
   ============================================================ */
@media (min-width: 701px) {
    .tg-domanda-step {
        position: relative; z-index: 1;
        min-height: calc(100vh - 150px);
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        padding: 2rem 0;
    }
    .tg-domanda-step .tg-hero--amore { display: none; }   /* niente cuore su questo step */
    .tg-domanda-step .tg-step__title { font-size: clamp(2.1rem, 3.4vw, 2.9rem); }
    .tg-domanda-step .tg-step__eyebrow {
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-style: italic; line-height: 1.5;
        color: #e0cfa8; letter-spacing: .015em; opacity: 1;
        text-shadow: 0 2px 12px rgba(0,0,0,.6);
        max-width: 46rem; margin: .4rem auto 1.6rem;
    }
    /* pillole: a capo, centrate; oro -> rosa su hover */
    .tg-domanda-step .tg-suggerite {
        flex-wrap: wrap; justify-content: center; overflow: visible;
        -webkit-mask-image: none; mask-image: none;
        max-width: 660px; gap: 10px; padding: 0 0 4px; margin: 0 auto 1.4rem;
    }
    .tg-domanda-step .tg-suggerite button {
        white-space: nowrap; background: rgba(13,14,36,.6);
        border: 1px solid rgba(232,183,90,.45); color: #f0ecff;
        border-radius: 999px; padding: 9px 16px; font-size: .82rem;
        text-shadow: 0 1px 4px rgba(0,0,0,.55);
        -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
        transition: border-color .2s, background .2s, transform .2s, color .2s;
    }
    .tg-domanda-step .tg-suggerite button:hover {
        border-color: rgba(230,90,159,.8); background: rgba(40,16,44,.72);
        color: #fff; transform: translateY(-2px);
    }
    /* riquadro domanda: cornice sfumata oro->rosa, focus glow rosa */
    .tg-domanda-step .tg-form { max-width: 37rem; text-align: center; }
    .tg-domanda-step .tg-form textarea {
        background:
            linear-gradient(#0e0f26, #0e0f26) padding-box,
            linear-gradient(135deg, rgba(232,183,90,.6), rgba(230,90,159,.55)) border-box;
        border: 2px solid transparent; border-radius: 16px;
        color: #e8ecff; padding: 16px 18px; min-height: 9rem; text-align: left;
    }
    .tg-domanda-step .tg-form textarea:focus {
        border-color: transparent;
        box-shadow: 0 0 0 3px rgba(230,90,159,.18), 0 0 26px rgba(230,90,159,.14);
    }
    .tg-domanda-step .tg-counter { color: #6b7099; }
    .tg-domanda-step .tg-hint { text-align: center; color: var(--tg-blue); }
    /* bottone rosa-oro con aura pulsante */
    .tg-domanda-step .tg-btn {
        position: relative; display: block; margin: 1.6rem auto 0;
        background: linear-gradient(135deg, #F4D48E 0%, #E8B75A 38%, #E65A9F 100%);
        color: #2a0e1e; font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: 1.4rem; font-weight: 600; letter-spacing: .01em;
        border-radius: 999px; padding: 15px 48px;
        box-shadow: 0 8px 22px rgba(0,0,0,.5);
        transition: filter .2s, box-shadow .2s;
    }
    .tg-domanda-step .tg-btn::before {
        content: ""; position: absolute; inset: -16px; z-index: -1; border-radius: 999px;
        background: radial-gradient(closest-side, rgba(230,90,159,.6), rgba(232,183,90,.28) 58%, transparent 74%);
        filter: blur(7px); animation: tg-aura 2.6s ease-in-out infinite;
    }
    .tg-domanda-step .tg-btn:hover { filter: brightness(1.05); box-shadow: 0 10px 28px rgba(0,0,0,.55); }
    .tg-domanda-step .tg-btn:hover::before { animation-duration: 1.6s; }
    .tg-domanda-step .tg-btn[disabled] {
        background: var(--tg-panel-2); color: #6b7099; box-shadow: none; opacity: 1; filter: none;
    }
    .tg-domanda-step .tg-btn[disabled]::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tg-domanda-step .tg-btn::before { animation: none; } }

/* ============================================================
   /amore - step "mescola": stessa hero del mazzo/domanda
   (nebulosa, a tutta altezza). Ventaglio desktop invariato;
   carosello mobile intatto. SOLO desktop (>=701px).
   ============================================================ */
@media (min-width: 701px) {
    .tg-mescola-step {
        position: relative; z-index: 1;
        min-height: calc(100vh - 150px);
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        padding: 2rem 0;
    }
    .tg-mescola-step .tg-step__title { font-size: clamp(2.1rem, 3.4vw, 2.9rem); }
    .tg-mescola-step .tg-step__eyebrow {
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-style: italic;
        color: #e0cfa8; letter-spacing: .015em; opacity: 1;
        text-shadow: 0 2px 12px rgba(0,0,0,.6); margin: 0 auto .3rem;
    }
    .tg-mescola-step .tg-picked-count { color: #cbb98f; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
    .tg-mescola-step .tg-shuffle-bar .tg-btn--ghost {
        border-color: rgba(232,183,90,.6); background: rgba(13,14,36,.5); color: var(--tg-gold);
        -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    }
    .tg-mescola-step .tg-shuffle-bar .tg-btn--ghost:hover { background: rgba(40,16,44,.6); border-color: rgba(230,90,159,.7); }
}

/* Hover ventaglio desktop: la carta "esce fuori" (si solleva + ingrandisce).
   Escluso il carosello mobile. Usa translate/scale (proprieta' singole) cosi
   si compongono col transform inline del ventaglio senza sovrascriverlo. */
@media (hover: hover) {
    .tg-fan:not(.tg-fan--carosello) .tg-fan__card {
        transition: transform .45s cubic-bezier(.34,1.56,.64,1), translate .28s ease, scale .28s ease, box-shadow .25s, filter .2s;
    }
    .tg-fan:not(.tg-fan--carosello) .tg-fan__card:hover {
        translate: 0 -24px; scale: 1.07; z-index: 20;
        filter: brightness(1.16); box-shadow: 0 16px 34px rgba(232,183,90,.35);
    }
}

/* ============================================================
   /amore - step "carte": stessa hero (nebulosa, a tutta altezza).
   Flip e dimensioni carte invariati. SOLO desktop (>=701px).
   ============================================================ */
@media (min-width: 701px) {
    .tg-carte-step {
        position: relative; z-index: 1;
        min-height: calc(100vh - 150px);
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        padding: 2rem 0;
    }
    .tg-carte-step .tg-step__title { font-size: clamp(2.1rem, 3.4vw, 2.9rem); }
    .tg-carte-step .tg-step__eyebrow {
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-style: italic;
        color: #e0cfa8; letter-spacing: .015em; opacity: 1;
        text-shadow: 0 2px 12px rgba(0,0,0,.6); margin: 0 auto .3rem;
    }
    /* etichette carte leggibili sul cielo */
    .tg-carte-step .tg-card__ruolo { color: #d9c7a3; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
    .tg-carte-step .tg-card__nome { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); font-size: 1rem; }
    .tg-carte-step .tg-card__rov { color: var(--tg-rosa); }
}

/* ============================================================
   /amore - step "lettura": stessa hero (nebulosa). Contenuto in
   alto (loading corto / lettura lunga). Testo in pannello scuro
   leggibile. SOLO desktop (>=701px).
   ============================================================ */
@media (min-width: 701px) {
    .tg-lettura-step {
        position: relative; z-index: 1;
        min-height: calc(100vh - 150px);
        display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
        padding: 2rem 0 3rem;
    }
    .tg-lettura-step .tg-step__title { font-size: clamp(2.1rem, 3.4vw, 2.9rem); }
    .tg-lettura-step .tg-waiting p {
        font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic;
        font-size: clamp(1.15rem, 1.7vw, 1.4rem); color: #e0cfa8;
        text-shadow: 0 2px 12px rgba(0,0,0,.6);
    }
    /* testo lettura in pannello scuro leggibile sul cielo */
    .tg-lettura-step .tg-reading {
        background: rgba(13,14,36,.62); border: 1px solid rgba(232,183,90,.2);
        border-radius: 16px; padding: 1.6rem 2rem; color: #eef1ff;
        -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
        box-shadow: 0 10px 30px rgba(0,0,0,.4);
    }
    /* permalink + bottoni leggibili */
    .tg-lettura-step .tg-btn--ghost {
        background: rgba(13,14,36,.5); border-color: rgba(232,183,90,.55); color: var(--tg-gold);
        -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    }
    .tg-lettura-step .tg-btn--ghost:hover { background: rgba(40,16,44,.6); border-color: rgba(230,90,159,.7); }
    .tg-lettura-step .tg-permalink input { background: rgba(13,14,36,.6); }
    .tg-lettura-step .tg-crosslink { color: #c3c9ea; }
    /* "Fai un'altra domanda": bottone rosa-oro con aura (come lo step domanda) */
    .tg-lettura-step .tg-actions .tg-btn:not(.tg-btn--ghost) {
        position: relative;
        background: linear-gradient(135deg, #F4D48E 0%, #E8B75A 38%, #E65A9F 100%);
        color: #2a0e1e; font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: 1.15rem; font-weight: 600; border-radius: 999px; padding: 12px 30px;
        box-shadow: 0 8px 22px rgba(0,0,0,.5);
    }
    .tg-lettura-step .tg-actions .tg-btn:not(.tg-btn--ghost)::before {
        content: ""; position: absolute; inset: -12px; z-index: -1; border-radius: 999px;
        background: radial-gradient(closest-side, rgba(230,90,159,.55), rgba(232,183,90,.26) 58%, transparent 74%);
        filter: blur(6px); animation: tg-aura 2.6s ease-in-out infinite;
    }
}
@media (prefers-reduced-motion: reduce) { .tg-lettura-step .tg-actions .tg-btn::before { animation: none; } }
