/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    display:flex;
    min-height:100vh;
    font-family:"Segoe UI",sans-serif;
    background:#eef2f7;
}

/* SIDEBAR */

.sidebar{
    width:240px;
    background:#031236;
    color:white;
    padding:25px 0;
    flex-shrink:0;
}

.logo{
    font-size:1.3rem;
    font-weight:700;
    text-align:center;
    margin-bottom:35px;
}

.menu-title{
    color:#cbd5e1;
    font-size:.85rem;
    padding-left:25px;
    margin-bottom:15px;
}

.sidebar ul{
    list-style:none;
}

.sidebar li{
    margin:5px 15px;
    border-radius:10px;
}

.sidebar li.active{
    background:#0e88cb;
}

.sidebar li:hover{
    background:#1e3a5f;
}

.sidebar a{
    display:block;
    padding:14px 18px;
    color:white;
    text-decoration:none;
}

/* CONTENT */

.content{
    flex:1;
}

/* BANNER */

.hero{
    position:relative;
    height:200px;
    overflow:hidden;
}

.hero-image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.30);

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.hero-overlay h1{
    color:white;
    font-size:2.3rem;
    text-shadow:0 2px 8px rgba(0,0,0,.8);
}

.hero-overlay p{
    color:white;
    margin-top:8px;
}

/* STATO STAZIONE */

.status-bar{
    background:#f4f4f4;
    padding:15px 25px;
    color:#159947;
    font-weight:600;
}

/* CARD METEO */

.cards{
    padding:25px;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

    gap:20px;
}

.card{
    background:white;
    border-radius:15px;
    padding:22px;

    box-shadow:
    0 2px 10px rgba(0,0,0,.08);
}

.card h3{
    color:#475569;
    margin-bottom:10px;
}

.card .value{
    font-size:2rem;
    font-weight:700;
    color:#0284c7;
    margin-bottom:8px;
}

.card span{

    color:#334155;

    font-weight:600;
}

/* ALMANACCO */

.almanacco{
    padding:0 25px 25px;
}

.almanacco h2{
    margin-bottom:20px;
    color:#1e293b;
}

.almanacco-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.almanacco-card {

    background:white;

    color:#1e293b;

    border-radius:15px;

    padding:20px;

    box-shadow:
    0 2px 10px rgba(0,0,0,.08);

    text-align:center;
}

.almanacco-card h3{
    margin-bottom:10px;
}

.moon-title{
    font-size:1.2rem;
    font-weight:700;
    margin:10px 0;
}

.moon-full{

    margin-top:12px;

    padding-top:12px;

    border-top:1px solid #e2e8f0;
}

/* LUNA */
.moon-icon{

    font-size:48px;

    margin:10px 0;

    line-height:1;
}

.moon-container{
    display:flex;
    justify-content:center;
    margin:10px 0;
}


.sun-block{

    padding:12px 0;

    text-align:center;
}

.sun-divider{

    border-top:1px solid #e2e8f0;

    margin:5px 0;
}
/* PAGINE INTERNE */

.page{
    padding:25px;
}

.page h1{
    margin-bottom:20px;
    color:#1e293b;
}

/* RECORD METEO */

.record-section{

    background:white;

    border-radius:15px;

    padding:20px;

    margin-bottom:25px;

    box-shadow:
    0 2px 10px rgba(0,0,0,.08);
}

.record-section h2{

    margin-bottom:15px;

    color:#0284c7;
}

/* TABELLE */

.data-table{

    width:100%;

    border-collapse:collapse;
}

.data-table th{

    background:#0e88cb;

    color:white;

    padding:12px;
}

.data-table td{

    padding:12px;

    border-bottom:
    1px solid #e5e7eb;
}

.data-table th:first-child,
.data-table td:first-child{
    text-align:left;
    width:30%;
}

.data-table th:not(:first-child),
.data-table td:not(:first-child){

    text-align:center;
}

/* RESPONSIVE */

@media(max-width:900px){

    body{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
    }

    .hero{
        height:180px;
    }

    .hero-overlay h1{
        font-size:1.7rem;
        text-align:center;
        padding:0 15px;
    }
}
.graph-header{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:20px;

    margin-top:30px;

    margin-bottom:30px;
}

.graph-header button{

    width:50px;

    height:50px;

    border:none;

    border-radius:10px;

    background:#0284c7;

    color:white;

    font-size:1.4rem;

    cursor:pointer;
}

.graph-header h2{

    min-width:250px;

    text-align:center;
}


.date-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:20px;

    margin:20px 0;
}

.field-card{

    padding:8px 12px;
}

.field-card label{

    display:block;

    font-weight:600;

    margin-bottom:10px;

    color:#334155;
}

.field-card input{

    width:100%;

    padding:10px;

    border:1px solid #cbd5e1;

    border-radius:8px;
}

.chart-btn{

    margin-top:20px;

    background:#0284c7;

    color:white;

    border:none;

    border-radius:10px;

    padding:12px 20px;

    font-size:1rem;

    font-weight:600;

    cursor:pointer;
}

.chart-btn:hover{

    background:#0369a1;
}
.checkbox-grid{

    display:flex;

    flex-direction:row;

    flex-wrap:nowrap;

    gap:20px;

    margin-top:20px;
}

.checkbox-grid label{

    display:flex;

    align-items:center;

    gap:6px;

    white-space:nowrap;

    font-weight:600;

    color:#1e293b;
}
