
body {
    position:relative;
    font-family: Arial;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35), 0 0 30px rgba(163, 37,107, 0.15);
}

#sfondoNumera{
    position:fixed;
    inset: 0;
    /* AGGIORNATO: Abbiamo inserito un gradiente prima della foto. */
    /* Intensifica il viola a sinistra e il verde a destra, lasciando il centro trasparente per il testo. */
    background: linear-gradient(to right, rgba(147, 51, 234, 0.18) 0%, transparent 25%, transparent 75%, rgba(20, 184, 166, 0.18) 100%),
                url("immaginiNumera/home.png") center center / cover no-repeat;
    /* Questo comando serve a fondere la luce dei colori CSS con i dettagli della foto sotto */
    background-size:cover;
    background-position:center;
    background-repeat: no-repeat;
    z-index: 0;
    overflow: hidden;
}

.contenutoNumera{

    position:relative;
    width:90%;
    max-width:550px;
    height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    align-items:center;
    z-index:1;
    text-align:center;
}

/* =====================================================
   RESPIRAZIONE
   ===================================================== */
@keyframes animFinestra {

    0%{
        opacity:0;
        transform:translateY(25px) scale(.97);
    }
    
    50%{
        opacity:0.5;
        transform:translateY(16px) scale(.985);
    }

    100%{
        opacity:1;
        transform:translateY(0) scale(1);
    }

}

.anim-finestra{

    animation:animFinestra .6s ease-out forwards;
    position: relative;
    z-index: 2;

}

.zona-superiore {
    width:100%;
    box-sizing:border-box;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    box-sizing:border-box;
    position:relative;
    margin-top:0;
    padding-top:0;
}

@import url('https://fonts.googleapis.com/css2?family=Italiana&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Italiana&display=swap');

.titolo {

    font-family: "Italiana", serif;
    font-size: 50px;
    font-weight: 400;
    letter-spacing: 2px;
    background: linear-gradient(to bottom,#e8c96a 0%,#b88a2c 50%,#6f4a12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter:drop-shadow(0 3px 4px rgba(0,0,0,0.9));
    text-align:center;
    line-height:1.2;
}
.sottotitolo {
    font-family: "Italiana", serif;
    font-size:14px;
    letter-spacing:2.5px;
    white-space:nowrap;
    text-align:center;
    color:#e8c76a;
    text-shadow:0 0 8px rgba(255,215,100,0.45);
    margin-top: -5px;
}

.titolo-home {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}


/* =====================================================
   POPUP
   ===================================================== */

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:  rgba(0,0,0,0.65);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999;
}


/* =====================================================
   BOX POPUP
   ===================================================== */

.popup-box,
.popup-action {
    background: rgba(25,55,90,0.88);
    color:#f7f3e8;
    border:1.5px solid #e2b84b;
    padding:25px;
    border-radius:25px;
    text-align:center;
    width:90%;
    max-width:350px;
    margin-top:15px;
    box-shadow: 0 0 25px rgba(226,184,75,0.35),inset 0 0 25px rgba(255,255,255,0.08);
    backdrop-filter:blur(10px);
}

.popup-box.popup-amore {
    background: rgba(80,25,55,0.88);
    border-color:#e88bb8;
    box-shadow:
        0 0 25px rgba(232,139,184,0.6),
        inset 0 0 25px rgba(232,139,184,0.20);
}


.popup-box.popup-lavoro {
    background: rgba(25,55,90,0.88);
    border-color:#7ab6ff;
    box-shadow:
        0 0 25px rgba(122,182,255,0.6),
        inset 0 0 25px rgba(122,182,255,0.20);
}


.popup-box.popup-denaro {
    background: rgba(85,65,20,0.88);
    border-color:#e6bb57;
    box-shadow:
        0 0 25px rgba(230,187,87,0.6),
        inset 0 0 25px rgba(230,187,87,0.20);
}


.popup-box.popup-benessere {
    background: rgba(35,80,40,0.88);
    border-color:#8fd36b;
    box-shadow:
        0 0 25px rgba(143,211,107,0.6),
        inset 0 0 25px rgba(143,211,107,0.20);
}


.popup-box.popup-consiglio {
    background: rgba(70,40,90,0.88);
    border-color:#d88cff;
    box-shadow:
        0 0 25px rgba(216,140,255,0.6),
        inset 0 0 25px rgba(216,140,255,0.20);
}
/* =====================================================
   POPUP ACTION
   ===================================================== */

.popup-action {
    display:flex;
    justify-content:space-between;
    gap:15px;
}

/* =====================================================
   PULSANTI POPUP
   ===================================================== */

.btn-primary,
.btn-secondary {
    padding:10px;
    width:48%;
    border-radius:30px;
    font-size:16px;
    cursor:pointer;
    letter-spacing:1px;
}

.btn-primary {
    background:rgba(10,10,25,0.65);
    color:#f7f3e8;
    border:1.5px solid #e2b84b;
    box-shadow: 0 0 12px rgba(226,184,75,0.35);
}
/* Annulla */
.btn-secondary {
    background:rgba(10,10,25,0.35);
    color:#f7f3e8;
    border:1.5px solid rgba(226,184,75,0.5);
}

.menu-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(10,10,25,0.75);
    border: 1.5px solid #e2b84b;
    color: #e8c96a;
    margin-top: 10px;
    font-size: 30px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 0 15px rgba(226,184,75,0.35),inset 0 0 15px rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    transform: translateX(30px);
}
/* =====================================================
   CARD STELLE - SALDO
   ===================================================== */

.card-stelle {
    position: relative;
    width: 100px;
    padding: 10px 8px;
    background: rgba(10,10,25,0.70);
    border: 1.5px solid #e2b84b;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 40px;
    text-align: center;
    box-shadow: 0 0 18px rgba(226,184,75,0.35), inset 0 0 20px rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
}

.riga-stelle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* =====================================================
   ICONA STELLA
   ===================================================== */
.icona-stella {
    width: 35px;
    height: 35px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 32px;
    color: #ffe99a;
    text-shadow:0 0 5px #fff3b0, 0 0 10px #e8c96a, 0 0 18px rgba(226,184,75,0.8);
    filter:drop-shadow(0 3px 3px rgba(0,0,0,0.8));
}
/* =====================================================
   TITOLO STELLE
   ===================================================== */
.titolo-stelle {
    font-family: "Italiana", serif;
    font-size: 14px;
    letter-spacing: 1px;
    color: #f7f3e8;
    margin-bottom: 6px;
}
/* =====================================================
   NUMERO STELLE
   ===================================================== */
.numero-stelle {
    font-family: "Italiana", serif;
    font-size: 26px;
    font-weight: 500;
    color: #ffe98a;
    text-shadow: 0 0 10px rgba(255,215,100,0.7);
}
/* =====================================================
   PULSANTE DETTAGLI
   ===================================================== */
.dettagli-stelle {
    margin-top: 12px;
    padding: 7px 15px;
    background: rgba(10,10,25,0.65);
    color: #f7f3e8;
    border: 1px solid #e2b84b;
    border-radius: 25px;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(226,184,75,0.3);
}

/* Overlay del menu */

.overlay-menu{
    position:fixed;
    inset:0;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    background:rgba(10,10,25,.55);
    backdrop-filter:blur(6px);
    opacity:0;
    visibility:hidden;
    transition:.25s ease;
    z-index:99999;
}

.overlay-menu.aperto{
    opacity:1;
    visibility:visible;
}

/* Popup - MODIFICATO PER L'EFFETTO VETRO COSMICO */
.menu-popup{
    position:relative;
    width:340px;
    max-width:90vw;
    max-height:85vh;
    overflow-y:auto;
    padding:25px 18px 20px;
    
    /* SFONDO AGGIORNATO: Toni del viola profondo più trasparenti per far passare la nebulosa */
    background: linear-gradient(
        135deg,
        rgba(25, 15, 45, 0.85) 0%,
        rgba(15, 10, 30, 0.90) 55%,
        rgba(10, 10, 20, 0.95) 100
    );
    
    /* EFFETTO WOW: Sfoca lo sfondo mobile dietro il pannello del menu */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    
    border:1px solid rgba(226,184,75,.55);
    border-radius:24px;
    
    /* Aggiunto un leggero riflesso viola nell'ombra esterna */
    box-shadow:
        0 15px 45px rgba(0,0,0,.65),
        0 0 25px rgba(147, 51, 234, 0.2); 
        
    transform:scale(.90);
    opacity:0;
    transition:
        transform .25s ease,
        opacity .25s ease;
    margin-top:35px;
}

.overlay-menu.aperto .menu-popup{
    transform:scale(1);
    opacity:1;
}

/* Pulsante X */
.chiudi-menu{
    position:absolute;
    top:12px;
    right:14px;
    width:36px;
    height:36px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    color:#f5d77a;
    font-size:22px;
    cursor:pointer;
    transition:.2s;
    z-index:2;
    pointer-events:auto;
}

.chiudi-menu:hover{
    background:rgba(226,184,75,.18);
}

/* Pulsanti Interni - MODIFICATI PER ARMONIZZARE I LIVELLI */
.menuLat{
    width: 90%;
    margin: 0px 10px 0px;
    height:48px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 18px;
    
    /* Sfondo alleggerito per far respirare il pannello sotto */
    background: linear-gradient(180deg, rgba(40, 25, 65, 0.4) 0%, rgba(20, 15, 35, 0.6) 100%);
    
    border:1.5px solid rgba(226,184,75,.5); /* Bordo oro leggermente più delicato a riposo */
    border-radius:16px;
    color:#f5d77a;
    font-size:15px;
    font-weight:600;
    box-shadow:inset 0 0 8px rgba(255,255,255,.03), 0 0 8px rgba(226,184,75,.1);
    transition:all 0.25s ease;
}

/* EFFETTO PASSAGGIO MOUSE */
.menuLat:hover{
    /* Ripristina l'oro pieno e illumina l'interno al passaggio del mouse */
    background: rgba(226, 184, 75, 0.12);
    border-color: rgba(226, 184, 75, 1);
    transform: translateX(4px); /* NOTA: Ho cambiato da -4px a 4px così il testo si sposta verso destra in modo naturale */
    box-shadow: 0 0 18px rgba(226,184,75,.35);
}

.icona-menu{
    width:28px;
    flex-shrink:0;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:15px;
}

.testo-menu{
    flex:1;
    text-align:center;
    line-height:1.2;
    padding-right:28px;
}

.serviziAstro{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 0 25px 0;
    color: #f5d77a;
    font-size: 20px;
    font-weight: 700;
    z-index:1;
}

.serviziAstro::after{
    content:"";
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    top:10px;
    width:90px;
    height:25px;
    background:rgba(226,184,75,.15);
    filter:blur(18px);
}