/* Stili per le pagine di dettaglio dei trattamenti */

/* Contenitore principale a due colonne */
.trattamento-container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    gap: 3rem; /* Spazio tra menu e contenuto */
    padding: 0 20px;
}

/* Colonna 1: Navigazione Laterale */
.trattamento-nav {
    width: 250px;
    flex-shrink: 0; /* Impedisce al menu di rimpicciolirsi */
    position: sticky; /* Effetto "sticky" */
    top: 100px; /* Distanza dall'alto quando si scorre */
    height: fit-content; /* Altezza adatta al contenuto */
}

.trattamento-nav h3 {
    font-size: 1.5rem;
    color: #2c5e3f;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.trattamento-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trattamento-nav ul li a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.trattamento-nav ul li a:hover {
    background-color: #f1f1f1;
    color: #2c5e3f;
    border-left: 3px solid #b8a029;
}

.trattamento-nav ul li a.active {
    background-color: #2c5e3f;
    color: white;
    font-weight: bold;
    border-left: 3px solid #d4b830;
}

/* Colonna 2: Contenuto del Trattamento (USATO ANCHE DA PAGINA CONTATTI) */
.trattamento-content {
    flex-grow: 1; /* Occupa lo spazio rimanente */
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.content-header h1 {
    font-size: 2.8rem;
    color: #2c5e3f;
    line-height: 1.2;
}

.content-header .sottotitolo {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.trattamento-immagine {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    object-fit: cover;
}

.trattamento-content .introduzione {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
}

.trattamento-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

.content-box {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2.5rem 0;
    border-left: 4px solid #d4b830;
}

.content-box h2 {
    font-size: 2rem;
    color: #2c5e3f;
    margin-bottom: 1.5rem;
}

.cta-section {
    text-align: center;
    background-color: #2c5e3f;
    color: white;
    padding: 2.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.cta-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}


/* --- INIZIO STILI AGGIUNTIVI (DA NON TOCCARE) --- */

/* Stili per immagine secondaria (Medicina Funzionale) */
.content-divider {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 2.5rem 0;
}

.image-text-container {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.immagine-secondaria {
    width: 200px;
    flex-shrink: 0;
    border-radius: 8px;
}

/* NUOVI STILI PER PAGINA CONTATTI */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.contact-info-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-info-item .icon {
    font-size: 2.5rem;
    color: #2c5e3f;
    margin-bottom: 1rem;
}

.contact-info-item h3 {
    font-size: 1.2rem;
    color: #2c5e3f;
    margin-bottom: 0.5rem;
}

.contact-info-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}
.contact-info-item a {
    color: #2c5e3f;
    text-decoration: none;
    font-weight: bold;
}
.contact-info-item a:hover {
    color: #d4b830;
}

.form-map-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.form-column {
    flex: 1.2; /* Dà un po' più di spazio al form */
}

.map-column {
    flex: 1;
}

.form-column h2, .map-column h2 {
    font-size: 2rem;
    color: #2c5e3f;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #2c5e3f;
    box-shadow: 0 0 5px rgba(44, 94, 63, 0.2);
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-group-checkbox input {
    width: auto;
}

.form-group-checkbox label {
    margin: 0;
    font-size: 0.9rem;
}

/* Adattabilità per schermi piccoli (mobile) */
@media (max-width: 992px) {
    .trattamento-container, .form-map-container {
        flex-direction: column;
    }
    .trattamento-nav {
        width: 100%;
        position: static; /* Rimuove l'effetto sticky su mobile */
        margin-bottom: 2rem;
    }
    .image-text-container {
        flex-direction: column;
    }
    .immagine-secondaria {
        width: 100%; /* L'immagine occupa tutta la larghezza su mobile */
        margin-bottom: 1.5rem;
    }
}
