/* Stile Home Area con Integrali - Matefilia */

/* Impostazioni Generali */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #fff;
    line-height: 1.6;
}

/* Intestazione e Loghi */
.header-box {
    width: 100%;
    border: 2px dashed #008000;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    min-height: 80px;
}

.left-image, .right-image {
    max-height: 50px;
    height: auto;
    margin: 10px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
}

/* Titoli e Testi */
h1, h2, h3 {
    color: #2c3e50;
}

.centrato {
    text-align: center;
}

.Stile1 {
    color: #66CC66;
    font-size: 20px;
    text-align: center; /* Centra il sottotitolo verde */
}

/* Linee di separazione sfumate */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, #FFA500, #FFDEAD);
    margin: 20px 0;
}

/* Struttura Box e Teoria */
.hidden {
    display: none;
}

.box {
    border: 1px solid #ccc;
    padding: 20px;
    margin-top: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.example {
    margin: 20px 0;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.plot-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    height: 400px;
}

.calculation {
    background-color: #e3f2fd;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

/* Bottoni - Stile Base */
button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 8px 15px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 14px;
}

button:hover {
    background-color: #005f9e;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

/* Bottoni Specifici */
.show-graph {
    background-color: #28a745;
}

.show-graph:hover {
    background-color: #218838;
}

.show-solution {
    background-color: #17a2b8;
}

.show-solution:hover {
    background-color: #138496;
}

/* Nuovi Bottoni richiesti */
.btn-teoria-integrale {
    background-color: #0056b3; /* Blu scuro Matefilia */
}

.btn-teoria-integrale:hover {
    background-color: #004494;
}

.btn-dsa {
    background-color: #ff9800; /* Arancione visibilità */
    color: #000;
    font-weight: bold;
}

.btn-dsa:hover {
    background-color: #e68a00;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
}
/* Ottimizzazione per Mobile (schermi sotto i 600px) */
@media (max-width: 600px) {
    body {
        margin: 10px; /* Riduciamo i margini per sfruttare lo spazio */
    }

    .header-box {
        flex-direction: column; /* Mette i loghi uno sopra l'altro invece che ai lati */
        text-align: center;
    }

    .left-image, .right-image {
        max-height: 40px; /* Loghi leggermente più piccoli */
        margin: 5px 0;
    }

    h1 {
        font-size: 22px; /* Titolo più piccolo per non andare a capo male */
    }

    .Stile1 {
        font-size: 16px; /* Sottotitolo più leggibile */
    }

    button {
        width: 100%; /* I bottoni diventano grandi e facili da tappare con il pollice */
        margin: 5px 0;
    }

    .plot-container {
        height: 300px; /* Riduciamo l'altezza dei grafici per non riempire tutto lo schermo */
    }
}
/* Bottone Indice Test in Bordeaux */
.footer button {
    background-color: #800000; /* Colore Bordeaux */
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.footer button:hover {
    background-color: #a52a2a; /* Bordeaux più chiaro al passaggio del mouse */
}
/* Bottone Chiudi Teoria */
.btn-chiudi {
    background-color: #6c757d; /* Grigio professionale */
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #5a6268;
}

.btn-chiudi:hover {
    background-color: #5a6268;
    border-color: #545b62;
}