/* ==========================================================
   STILE VOLUMI - VERSIONE FINALE (LOOK AREE)
   ========================================================== */

body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #fff;
    line-height: 1.6;
}

/* 1. INTESTAZIONE (Loghi ai lati nel box tratteggiato) */
.header-box {
    width: 100%;
    border: 2px dashed #008000;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    justify-content: space-between; /* Spinge i loghi ai lati */
    align-items: center;
    background-color: white;
    min-height: 80px;
}

.left-image, .right-image {
    max-height: 50px;
    height: auto;
    margin: 10px;
}

/* 2. TITOLI CENTRATI (Fuori dal box) */
.centrato {
    text-align: center;
}

h1.centrato {
    color: #2c3e50;
    margin: 20px 0 10px 0;
    font-size: 2.2em;
    text-align: center; /* Forza la centratura se non prende la classe generica */
}

.Stile1 {
    color: #34495e;  /* Grigio-blu scuro, ottimo contrasto */
    font-size: 18px;
    text-align: center;
    margin: 10px 20px;
    font-weight: normal;
    line-height: 1.5;
}

/* 3. SPAZIATURE E LINEE */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, #FFA500, #FFDEAD);
    margin: 15px 0 !important;
}

/* 3. SPAZIATURE E LINEE */
.button-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important; /* Centra i bottoni */
    align-items: center !important;
    margin: 25px auto !important; /* Spazio sopra e sotto */
    width: 100%;
}

.separator {
    display: none !important; /* Rimosso per eliminare buchi di spazio */
}

/* 4. BOX TEORIA E CONTENUTI */
#theoryBox {
    background-color: #fdfdfd;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hidden { display: none; }

.calculation {
    background-color: #e3f2fd;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    border-left: 5px solid #2196F3;
}

.example {
    margin: 20px 0;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* 5. STILE BOTTONI */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.2s;
}

/* 5. STILE BOTTONI (Versione blindata) */
.btn-step-teoria { 
    background-color: #28a745 !important; /* Verde */
    color: white !important; 
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 25px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: inline-block !important;
}

.btn-step { 
    background-color: #007BFF !important; /* Blu */
    color: white !important; 
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 25px !important;
    font-weight: bold !important;
}

/* L'effetto hover non ha bisogno di important se applicato bene */
button:hover { 
    transform: scale(1.05) !important; 
    filter: brightness(1.2) !important;
    cursor: pointer;
}
/* 6. FOOTER */
.footer {
    text-align: center;
    margin-top: 0 !important;
    padding: 10px 0 20px 0;
}

.footer a {
    text-decoration: none;
    color: #007BFF;
    font-size: 14px;
}

/* 7. REGOLE STAMPA */
@media print {
    .button-group, button, .footer, hr:last-of-type, .plot-container, #shellSlider, label { 
        display: none !important; 
    }
    #theoryBox { 
        display: block !important; 
        border: none !important; 
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body { margin: 1cm; background-color: white !important; }
    .calculation, .example { page-break-inside: avoid; }
}

/* 8. MOBILE */
@media (max-width: 600px) {
    .header-box {
        flex-direction: column;
        text-align: center;
    }
    h1.centrato { font-size: 24px; }
    button { width: 100%; margin: 5px 0; }
}
.instruction-box-standard {
    background-color: #fff9e6;
    color: #0056b3;
    padding: 10px 20px;       /* Meno spazio sopra e sotto */
    margin: 20px auto;
    border: 2px solid #ffc107;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    
    /* MODIFICHE PER FARLO STARE SU UNA RIGA */
    font-size: 0.9rem;        /* Font leggermente pił piccolo */
    max-width: 1200px;       /* Molto pił largo per dare spazio al testo */
    width: 95%;              /* Quasi tutta la larghezza disponibile */
    
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}