/*Stile Integrazione Numerica*/
        :root {
            --primary: #2c3e50;
            --secondary: #3498db;
            --light: #ecf0f1;
            --dark: #34495e;
        }

        body {
            font-family: 'Segoe UI', system-ui, sans-serif;
            line-height: 1.6;
            background: #f8f9fa;
            color: var(--dark);
        }

        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 2rem;
            background: white;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
            border-radius: 15px;
        }

        h1 {
            color: var(--primary);
            text-align: center;
            border-bottom: 3px solid var(--secondary);
            padding-bottom: 1rem;
        }

       h2 {
    color: var(--primary);
    margin-top: 2rem;
    padding-left: 10px;
    border-left: 4px solid var(--secondary);
	font-size: 1.2em;
}

       button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
    font-weight: 600;
}

button:hover {
    transform: translateY(-3px);
    background: #27ae60;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.5);
}
        .button-group {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            margin: 1.5rem 0;
        }

        .solution {
            display: none;
            margin: 1.5rem 0;
            padding: 1.5rem;
            background: var(--light);
            border-radius: 10px;
            border: 1px solid #dfe6e9;
            position: relative;
        }

        .solution::before {
            content: "📘";
            position: absolute;
            left: -15px;
            top: -15px;
            font-size: 1.5rem;
            background: white;
            padding: 5px;
            border-radius: 50%;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .math {
            font-family: 'Consolas', 'Courier New', monospace;
            background: #f8f9fa;
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            white-space: pre-wrap;
        }

        .method-header {
            color: var(--secondary);
            font-size: 1.2em;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .method-header i {
            font-size: 1.4em;
        }

        img {
            display: block;
            max-width: 100%;
            height: auto;
            margin: 1rem auto;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
		.header-box img {
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.math-func {
    font-family: "Cambria Math", "Times New Roman", serif;
    font-size: 1.1em;
    vertical-align: middle;
}
h2 .frac {
    font-size: 0.9em;
    margin: 0 2px;
}

h2 .exp {
    font-size: 0.7em;
}
    .frac {
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    margin: 0 0.2em;
}
    
   .frac sup, .frac sub {
    display: block;
    font-size: 0.8em;
    line-height: 1.1;
}
    
    .frac sup {
    border-bottom: 1px solid;
    padding-bottom: 1px;
}
    
    .exp {
        font-size: 0.85em;
        vertical-align: super;
    }

.math-func .exp {
    font-size: 0.75em;
    vertical-align: super;
    position: relative;
    top: -0.1em;
}

.math-func .frac {
    font-size: 0.85em;
    vertical-align: middle;
    margin: 0 0.1em;
}

.math-func sup, .math-func sub {
    font-size: 0.7em;
    line-height: 1;
}
.centrato {
      text-align: center;
    }
	.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 !important;
    min-height: 80px;
}
	
	.left-image, .right-image {
            max-height: 50px;
            height: auto;
            margin: 10px;
         }

		
		/* Rimuovi o modifica lo stile globale per img */
    img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 1rem auto;
    }
.footer {
    text-align: center;
    margin-top: 0px; /* Ho cambiato questo valore! */
    padding-top: 10px;
    /* border-top: 1px solid #e9ecef; */ /* Questa riga è già commentata dalla volta scorsa */
}	
hr {
    border: none; /* Rimuove il bordo predefinito */
    height: 1px;  /* Imposta l'altezza della linea */
    /* La sfumatura da blu scuro a blu chiaro */
    background: linear-gradient(to right, #0000FF, #ADD8E6);
    /* Modifiche per adattarsi al contenitore */
    width: 100%; /* La linea occuperà il 100% della larghezza del suo elemento genitore */
    max-width: 1200px; /* Limita la larghezza massima della linea a 800px */
    margin: 20px auto; /* Centra la linea e aggiunge spazio sopra e sotto */
}
.instruction-box {
    background-color: #e8f5e9;
    border-left: 5px solid #2e7d32;
    padding: 15px;
    margin: 20px auto;
    border-radius: 4px;
    font-size: 0.9em;
    color: #1b5e20;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.separatore-verde {
    border: none;
    height: 2px;
    background: linear-gradient(to right, #2e7d32, #a5d6a7);
    margin: 20px auto;
    max-width: 1200px;
}
   #btn-indice {
    background: #800020;
}

#btn-indice:hover {
    background: #a00028;
    box-shadow: 0 8px 20px rgba(128, 0, 32, 0.5);
}
button.stampa {
    background-color: #9C27B0 !important;
    border: 2px solid #7B1FA2 !important;
    color: white !important;
}

button.stampa:hover {
    background-color: #BA68C8 !important;
    border-color: #9C27B0 !important;
    box-shadow: 0 8px 20px rgba(156, 39, 176, 0.4) !important;
    transform: translateY(-2px);
}
.footer button {
    padding: 8px 16px !important;
    font-size: 0.9em !important;
}