```css
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f5f8;
    color: #263238;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 40px;
}

header {
    text-align: center;
    margin-bottom: 35px;
}

h1 {
    margin: 0 0 12px;
    font-size: 42px;
    font-weight: 700;
}

.aggiornamento {
    margin: 0;
    font-size: 17px;
    color: #546e7a;
}

.prossimo {
    margin-top: 8px;
    font-size: 15px;
    color: #78909c;
}

.misure {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.scheda {
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.icona {
    font-size: 42px;
    margin-bottom: 10px;
}

h2 {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 600;
}

.valore {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 25px;
}

.valore span {
    font-size: 20px;
    font-weight: 400;
    color: #607d8b;
}

.barra {
    width: 100%;
    height: 18px;
    background: #e6ebef;
    border-radius: 20px;
    overflow: hidden;
}

.riempimento {
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
}

.temperatura {
    background: #ef6c00;
}

.pressione {
    background: #1976d2;
}

.scala {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #90a4ae;
}

.errore {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: #c62828;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

footer {
    text-align: center;
    margin-top: 35px;
    color: #90a4ae;
    font-size: 13px;
}

/* ---------------------------------
   Grafici
   --------------------------------- */

.grafico {
    background: white;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.grafico h2 {
    text-align: center;
    margin-bottom: 20px;
}

.grafico-contenitore {
    position: relative;
    width: 100%;
    height: 500px;
}

/* ---------------------------------
   Smartphone
   --------------------------------- */

@media (max-width: 650px) {

    .container {
        padding: 20px 15px 30px;
    }

    h1 {
        font-size: 32px;
    }

    .misure {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .scheda {
        padding: 25px 20px;
    }

    .valore {
        font-size: 36px;
    }
    
        .grafico {
        padding: 20px 15px;
    }

    .grafico-contenitore {
        height: 350px;
    }
}

