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


#sfondo{
    position:fixed;
    inset: 0;
    background-image:url('/animazioni/sfondoAs.png');
    background-size:cover;
    background-position:center;
    background-repeat: no-repeat;
    z-index: 0;
    overflow: hidden;
}

.app-screen{
    position:relative;
    margin-top: 0px;
    width:90%;
    max-width:550px;
    height:auto;
    display:flex;
    flex-direction:column;
    justify-content: space-between;
    align-items:center;
    z-index:2;
    text-align:center;
}

.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(8,45,35,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 */

.menu-popup{
    position:relative;
    width:340px;
    max-width:90vw;
    max-height:85vh;
    overflow-y:auto;
    padding:25px 18px 20px;
    background:linear-gradient(
        to top left,
        rgba(10,10,25,.96) 0%,
        rgba(13,12,30,.96) 55%,
        rgba(25,18,55,.98) 100%
    );
    border:1px solid rgba(226,184,75,.55);
    border-radius:24px;
    box-shadow:
        0 15px 45px rgba(0,0,0,.55),
        0 0 20px rgba(226,184,75,.18);
    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);
}

.menuLat{
    width: 100%;
    margin: 0px 10px 0px;
    height:48px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 18px;
    background:linear-gradient(180deg,rgba(43,27,72,.95),rgba(25,17,47,.95));
    border:1.5px solid rgba(226,184,75,.7);
    border-radius:16px;
    color:#f5d77a;
    font-size:15px;
    font-weight:600;
    box-shadow:inset 0 0 8px rgba(255,255,255,.05),0 0 12px rgba(226,184,75,.18);
    transition:.25s;
}

.menuLat:hover{
    transform:translateX(-4px);
    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);
}