/* ============================================================
   OROSEIMETEO · ASTRONOMIA
   ============================================================ */

.astro-page{
    background:#fff;
    color:#17465f;
}

.astro-kicker,
.astro-card-kicker{
    display:block;
    color:#168bb4;
    font-size:13px;
    line-height:1.35;
    font-weight:800;
    letter-spacing:.075em;
    text-transform:uppercase;
}


/* ============================================================
   HERO
   ============================================================ */

.astro-hero{
    padding:42px 0 38px;
    border-bottom:1px solid #edf3f6;
    background:#fbfdfe;
}

.astro-hero h1{
    margin:7px 0 13px;
    color:#173f56;
    font-size:48px;
    line-height:1.04;
    font-weight:800;
    letter-spacing:-1.3px;
}

.astro-hero > .container > p{
    max-width:840px;
    margin:0;
    color:#5f7b8d;
    font-size:18px;
    line-height:1.7;
}

.astro-hero-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:21px;
}

.astro-hero-meta span{
    display:inline-flex;
    align-items:center;
    min-height:35px;
    padding:0 11px;
    border:1px solid rgba(84,120,136,.14);
    border-radius:10px;
    background:#fff;
    color:#607c8d;
    font-size:12px;
    font-weight:700;
}


/* ============================================================
   SEZIONI
   ============================================================ */

.astro-section{
    padding:40px 0;
}

.astro-section-soft{
    border-top:1px solid #edf3f6;
    border-bottom:1px solid #edf3f6;
    background:#fbfdfe;
}

.astro-section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:32px;
    margin-bottom:21px;
}

.astro-section-head h2{
    margin:6px 0 0;
    color:#173f56;
    font-size:34px;
    line-height:1.1;
    font-weight:800;
    letter-spacing:-.7px;
}

.astro-section-head > p{
    max-width:540px;
    margin:0;
    color:#708998;
    font-size:15px;
    line-height:1.65;
}


/* ============================================================
   CARTA CELESTE
   ============================================================ */

.astro-sky-card{
    overflow:hidden;
    border:1px solid rgba(84,120,136,.14);
    border-radius:17px;
    background:#fff;
    box-shadow:0 7px 22px rgba(24,77,105,.055);
}

.astro-sky-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:18px 20px;
    border-bottom:1px solid #edf3f6;
}

.astro-sky-head strong{
    display:block;
    color:#17465f;
    font-size:19px;
    font-weight:800;
}

.astro-sky-head span{
    display:block;
    margin-top:4px;
    color:#7f95a2;
    font-size:13px;
}

.astro-refresh{
    min-height:42px;
    padding:0 14px;
    border:1px solid #cee1ea;
    border-radius:10px;
    background:#fff;
    color:#315e76;
    font:inherit;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
}

.astro-sky-frame{
    height:570px;
    overflow:hidden;
    background:#07131d;
}

.astro-sky-frame iframe{
    display:block;
    width:100%;
    height:100%;
    border:0;
}

.astro-sky-foot{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:13px 20px;
    border-top:1px solid #edf3f6;
    color:#7b919e;
    font-size:12px;
}


/* ============================================================
   SOLE E LUNA
   ============================================================ */

.astro-sunmoon-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:15px;
}

.astro-object-card{
    min-width:0;
    padding:22px;
    border:1px solid rgba(84,120,136,.14);
    border-radius:16px;
    background:#fff;
    box-shadow:0 5px 17px rgba(24,77,105,.045);
}

.astro-object-head{
    display:flex;
    align-items:center;
    gap:17px;
    margin-bottom:20px;
}

.astro-object-head h3{
    margin:5px 0 0;
    color:#17465f;
    font-size:27px;
    line-height:1.12;
    font-weight:800;
}

.astro-object-head p{
    margin:7px 0 0;
    color:#718b9a;
    font-size:14px;
    line-height:1.55;
}


/* ============================================================
   SOLE PROFESSIONALE
   ============================================================ */

.astro-sun-visual{
    width:92px;
    height:92px;
    flex:0 0 92px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #efe3ae;
    border-radius:50%;
    background:#fffdf5;
}

.astro-sun-visual svg{
    display:block;
    width:72px;
    height:72px;
    overflow:visible;
}

.astro-sun-rays{
    fill:none;
    stroke:#dfa62e;
    stroke-width:4;
    stroke-linecap:round;
}

.astro-sun-disc{
    fill:#f5c544;
    stroke:#d99b1d;
    stroke-width:2;
}

.astro-sun-core{
    fill:rgba(255,255,255,.2);
}


/* ============================================================
   LUNA REALE
   ============================================================ */

.astro-moon-visual{
    width:92px;
    height:92px;
    flex:0 0 92px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.astro-moon-visual canvas{
    display:block;
    width:92px;
    height:92px;
}


/* ============================================================
   VALORI
   ============================================================ */

.astro-values-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
}

.astro-values-grid > div{
    min-width:0;
    padding:14px;
    border:1px solid #e7eef2;
    border-radius:12px;
    background:#fbfdfe;
}

.astro-values-grid span{
    display:block;
    color:#7d929f;
    font-size:11px;
    line-height:1.3;
    font-weight:800;
    letter-spacing:.035em;
    text-transform:uppercase;
}

.astro-values-grid strong{
    display:block;
    margin-top:6px;
    color:#17465f;
    font-size:18px;
    line-height:1.25;
    font-weight:800;
}

.astro-highlight-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-top:10px;
    padding:14px;
    border:1px solid #dce9ee;
    border-radius:12px;
    background:#f5fafc;
}

.astro-highlight-row span{
    color:#718997;
    font-size:12px;
    font-weight:800;
}

.astro-highlight-row strong{
    color:#17465f;
    font-size:16px;
    text-align:right;
}


/* ============================================================
   FASI LUNARI
   ============================================================ */

.astro-moon-events{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:11px;
}

.astro-moon-events article{
    min-width:0;
    padding:18px 17px;
    border:1px solid rgba(84,120,136,.14);
    border-radius:14px;
    background:#fff;
}

.astro-moon-events span{
    display:block;
    color:#168bb4;
    font-size:12px;
    line-height:1.3;
    font-weight:800;
    text-transform:uppercase;
}

.astro-moon-events strong{
    display:block;
    margin-top:7px;
    color:#17465f;
    font-size:21px;
    line-height:1.2;
}

.astro-moon-events small{
    display:block;
    margin-top:6px;
    color:#8297a3;
    font-size:12px;
}


/* ============================================================
   SISTEMA SOLARE 3D
   ============================================================ */

.astro-solar-system-card{
    width:100%;
    overflow:hidden;
    border:1px solid rgba(84,120,136,.14);
    border-radius:17px;
    background:#fff;
    box-shadow:0 7px 22px rgba(24,77,105,.055);
}

.astro-solar-system-frame{
    width:100%;
    height:720px;
    overflow:hidden;
    background:#111521;
}

.astro-solar-system-frame iframe{
    display:block;
    width:100%;
    height:100%;
    border:0;
    margin:0;
    padding:0;
    background:#111521;
}

.astro-solar-system-footer{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
    padding:16px 18px;
    border-top:1px solid #edf3f6;
    background:#fff;
}

.astro-solar-system-footer strong{
    display:block;
    color:#17465f;
    font-size:16px;
    line-height:1.35;
    font-weight:800;
}

.astro-solar-system-footer span{
    display:block;
    margin-top:4px;
    color:#708998;
    font-size:14px;
    line-height:1.55;
}

.astro-solar-system-footer small{
    color:#8398a4;
    font-size:12px;
    line-height:1.5;
    text-align:right;
}

@media(max-width:820px){

    .astro-solar-system-frame{
        height:600px;
    }

    .astro-solar-system-footer{
        flex-direction:column;
        gap:8px;
    }

    .astro-solar-system-footer small{
        text-align:left;
    }
}

@media(max-width:600px){

    .astro-solar-system-frame{
        height:520px;
    }

    .astro-solar-system-footer{
        padding:14px 15px;
    }
}
/* ============================================================
   PIANETI
   ============================================================ */

.astro-planets-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:11px;
}

.astro-planet-card{
    min-width:0;
    padding:18px 17px;
    border:1px solid rgba(84,120,136,.14);
    border-radius:14px;
    background:#fff;
    box-shadow:0 5px 17px rgba(24,77,105,.04);
}

.astro-planet-state{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:0 8px;
    margin-bottom:13px;
    border-radius:8px;
    background:#f1f5f7;
    color:#718895;
    font-size:10px;
    font-weight:800;
}

.astro-planet-state.is-up{
    background:#edf8f2;
    color:#438360;
}

.astro-planet-state.is-visible{
    background:#eaf7fb;
    color:#147da2;
}

.astro-planet-card h3{
    margin:5px 0 15px;
    color:#17465f;
    font-size:22px;
    line-height:1.2;
}

.astro-planet-values{
    display:grid;
    gap:8px;
}

.astro-planet-values > div{
    padding-top:8px;
    border-top:1px solid #edf3f6;
}

.astro-planet-values span{
    display:block;
    color:#8297a3;
    font-size:11px;
}

.astro-planet-values strong{
    display:block;
    margin-top:3px;
    color:#315e76;
    font-size:16px;
}


/* ============================================================
   ECLISSI
   ============================================================ */

.astro-eclipse-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.astro-eclipse-card{
    min-width:0;
    padding:21px;
    border:1px solid rgba(84,120,136,.14);
    border-radius:15px;
    background:#fff;
}

.astro-eclipse-card h3{
    margin:6px 0 10px;
    color:#17465f;
    font-size:23px;
    line-height:1.2;
}

.astro-eclipse-card > strong{
    display:block;
    color:#168bb4;
    font-size:20px;
}

.astro-eclipse-card p{
    margin:9px 0 0;
    color:#708998;
    font-size:14px;
    line-height:1.6;
}


/* ============================================================
   STAGIONI
   ============================================================ */

.astro-seasons-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:11px;
}

.astro-seasons-grid article{
    min-width:0;
    padding:18px;
    border:1px solid rgba(84,120,136,.14);
    border-radius:14px;
    background:#fff;
}

.astro-seasons-grid span{
    display:block;
    color:#168bb4;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
}

.astro-seasons-grid strong{
    display:block;
    margin-top:6px;
    color:#17465f;
    font-size:20px;
}

.astro-seasons-grid small{
    display:block;
    margin-top:7px;
    color:#748d9b;
    font-size:14px;
}


/* ============================================================
   GUIDA
   ============================================================ */

.astro-guide-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.astro-guide-grid article{
    padding:20px;
    border:1px solid rgba(84,120,136,.14);
    border-radius:15px;
    background:#fff;
}

.astro-guide-grid article > span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:36px;
    height:34px;
    border:1px solid #d7e7ed;
    border-radius:10px;
    background:#f5fafc;
    color:#168bb4;
    font-size:11px;
    font-weight:800;
}

.astro-guide-grid h3{
    margin:13px 0 0;
    color:#17465f;
    font-size:20px;
}

.astro-guide-grid p{
    margin:9px 0 0;
    color:#587486;
    font-size:15px;
    line-height:1.7;
}

.astro-source-note{
    margin:17px 0 0;
    padding:14px 16px;
    border:1px solid rgba(84,120,136,.14);
    border-radius:12px;
    background:#fff;
    color:#708794;
    font-size:13px;
    line-height:1.6;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media(max-width:1050px){

    .astro-planets-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}


@media(max-width:820px){

    .astro-section-head{
        align-items:flex-start;
        flex-direction:column;
        gap:8px;
    }

    .astro-sunmoon-grid{
        grid-template-columns:1fr;
    }

    .astro-moon-events{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .astro-planets-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .astro-seasons-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .astro-guide-grid{
        grid-template-columns:1fr;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media(max-width:600px){

    .astro-hero{
        padding:31px 0 32px;
    }

    .astro-kicker,
    .astro-card-kicker{
        font-size:12px;
    }

    .astro-hero h1{
        font-size:40px;
        letter-spacing:-1px;
    }

    .astro-hero > .container > p{
        font-size:17px;
        line-height:1.68;
    }

    .astro-hero-meta span{
        font-size:11px;
    }


    .astro-section{
        padding:31px 0;
    }

    .astro-section-head h2{
        font-size:30px;
    }

    .astro-section-head > p{
        font-size:15px;
    }


    .astro-sky-head{
        align-items:flex-start;
        flex-direction:column;
        padding:17px;
    }

    .astro-refresh{
        width:100%;
    }

    .astro-sky-frame{
        height:430px;
    }

    .astro-sky-foot{
        align-items:flex-start;
        flex-direction:column;
        gap:4px;
        padding:12px 16px;
    }


    .astro-object-card{
        padding:19px 17px;
    }

    .astro-object-head{
        gap:14px;
    }

    .astro-object-head h3{
        font-size:24px;
    }

    .astro-sun-visual,
    .astro-moon-visual{
        width:78px;
        height:78px;
        flex-basis:78px;
    }

    .astro-sun-visual svg{
        width:61px;
        height:61px;
    }

    .astro-moon-visual canvas{
        width:78px;
        height:78px;
    }

    .astro-values-grid{
        gap:8px;
    }

    .astro-values-grid > div{
        padding:13px 11px;
    }

    .astro-values-grid strong{
        font-size:17px;
    }


    .astro-moon-events{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }

    .astro-moon-events article{
        padding:15px 13px;
    }

    .astro-moon-events strong{
        font-size:19px;
    }


    .astro-orbit-scene{
        height:400px;
    }

    .astro-system-sun{
        width:82px;
        height:82px;
    }

    .astro-earth-orbit{
        width:82%;
        height:45%;
    }

    .astro-earth{
        width:36px;
        height:36px;
    }

    .astro-moon-orbit{
        width:65px;
        height:65px;
    }

    .astro-orbit-moon{
        width:11px;
        height:11px;
    }

    .astro-orbit-foot{
        align-items:flex-start;
        flex-direction:column;
        gap:5px;
    }


    .astro-planets-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:9px;
    }

    .astro-planet-card{
        padding:16px 14px;
    }

    .astro-planet-card h3{
        font-size:20px;
    }


    .astro-eclipse-grid{
        grid-template-columns:1fr;
    }


    .astro-seasons-grid{
        gap:8px;
    }

    .astro-seasons-grid article{
        padding:15px 13px;
    }

    .astro-seasons-grid strong{
        font-size:18px;
    }

    .astro-seasons-grid small{
        font-size:13px;
    }


    .astro-guide-grid p{
        font-size:16px;
        line-height:1.68;
    }
}


@media(max-width:390px){

    .astro-planets-grid{
        grid-template-columns:1fr;
    }

    .astro-values-grid{
        grid-template-columns:1fr;
    }
}


@media(prefers-reduced-motion:reduce){

    .astro-earth-carrier,
    .astro-moon-orbit{
        animation-play-state:paused;
    }
}