/* Stile studio funzioni*/
        body {
            font-family: 'Arial', sans-serif;
            max-width: 1200px;
            margin: 20px auto;
            padding: 20px;
            background: #f8f9fa;
        }

        .sezione {
            background: white;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 3px 6px rgba(0,0,0,0.1);
        }

        button {
            background: #1a73e8;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            transition: transform 0.2s;
            margin: 5px;
        }

        button:hover {
            background: #1557b0;
            transform: translateY(-2px);
        }

        .soluzione {
            display: none;
            padding: 15px;
            margin-top: 10px;
            background: #f1f3f4;
            border-left: 4px solid #1a73e8;
            border-radius: 4px;
        }

        /* Stili per il popup */
        .popup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .popup-content {
            background: white;
            padding: 20px;
            border-radius: 10px;
            position: relative;
            max-width: 90%;
        }

        .close-button {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 28px;
            cursor: pointer;
        }

        @media (max-width: 768px) {
            body { padding: 10px; }
            .sezione { margin-bottom: 15px; }
            button { width: 100%; margin: 5px 0; }
            .popup-content { width: 95%; }
        }
		
		.footer {
            text-align: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
        }

.separator {
            border: 0;
            height: 2px;
            background: linear-gradient(to right, transparent, #28a745, transparent);
            margin: 15px 0 25px 0;
        }
.Stile1 {color: #66CC33;}
        .Stile4 {color: #66CC00;}
.Stile2 {
            color: #FF0000;
            font-size: medium;
        }
		
		.header-box {
            width: 100%;
            border: 2px dashed #28a745;
            box-sizing: border-box;
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: white;
            min-height: 80px;
            border-radius: 8px;
            margin-bottom: 25px;
        }
		
		.hidden {
            display: none !important;
        }
		
		.graph-container {
            width: 100%;
            max-width: 500px;
            height: auto;
            margin: 10px 0;
        }
        .graph-container img {
            width:auto;
            height: auto; /* Mantiene le proporzioni */
        }
		
		 #sol1-derivata2 table {
        width: 80%;
        margin: 10px auto;
        border-collapse: collapse;
    }
    #sol1-derivata2 th, #sol1-derivata2 td {
        border: 1px solid green;
        padding: 8px;
        text-align: center;
    }
    #sol1-derivata2 th {
        background-color: #f0f0f0;
    }
	

    #sol3-segno table {
        width: 60%;
        margin: 10px auto;
        border-collapse: collapse;
    }
    #sol3-segno th, #sol3-segno td {
        border: 1px solid lightgray;
        padding: 8px;
        text-align: center;
    }
    #sol3-segno th {
        background-color: #f0f0f0;
    }
#sol3-segno table {
        width: 60%;
        margin: 10px auto;
        border-collapse: collapse;
    }
    #sol3-segno th, #sol3-segno td {
        border: 2px solid lightgray;
        padding: 8px;
        text-align: center;
    }
    #sol3-segno th {
        background-color: #f0f0f0;
    }
	 #sol3-derivata1 table {
        width: 80%;
        margin: 10px auto;
        border-collapse: collapse;
    }
    #sol3-derivata1 th, #sol3-derivata1 td {
        border: 1px solid lightgray;
        padding: 8px;
        text-align: center;
    }
    #sol3-derivata1 th {
        background-color: #f0f0f0;
    }
	
	 #sol3-derivata2 table {
        width: 80%;
        margin: 10px auto;
        border-collapse: collapse;
    }
    #sol3-derivata2 th, #sol3-derivata2 td {
        border: 1px solid lightgray;
        padding: 8px;
        text-align: center;
    }
    #sol3-derivata2 th {
        background-color: #f0f0f0;
    }
	#sol2-segno_g table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    margin-top: 10px;
}

#sol2-segno_g th, #sol2-segno_g td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

#sol2-segno_g th {
    background-color: #f2f2f2;
}

#sol2-segno_g tr:nth-child(even) {
    background-color: #f9f9f9;
}
table {
            border-collapse: collapse;
        }
        th, td {
            border: 2px solid black;
            padding: 8px; /* Aggiunge un po' di spazio interno */
            text-align: left;
        }
    /* Override per bottone stampa fucsia */
button.stampa,
button.stampa:not(:hover) {
    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 4px 12px rgba(156, 39, 176, 0.4) !important;
    transform: translateY(-2px);
}