/* Sezione con immagine di copertina */
.first-section-contact .background-image-container{
    width: 100%;
    max-height: 80vh;
    overflow: hidden; /* Nasconde l'eccesso dell'immagine */
} 

.first-section-contact .background-image-container img{
    width: 100%;
    object-fit: contain; /* Adatta l'immagine senza deformarla */
}

/* Sezione con testo e modulo */
.second-section-contact{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    padding: 70px 10%;
    padding-bottom: 0;
    margin: 0;
}

/* Titolo della sezione contatti */
.second-section-contact .text-contact-container h3{
    font-size: 1.92em;
}

/* Paragrafi nella sezione contatti */
.second-section-contact .text-contact-container p{
    margin: 15px 0;
}


/* Stile del modulo di contatto */
.second-section-contact form{
    display: flex;
    flex-direction: column;
    width: 40%; /* Larghezza del form su desktop */
    margin-bottom: 100px;
}

/* Stili per i campi di input e textarea */
.second-section-contact form input, .second-section-contact form textarea{
    padding: 10px;
    margin-bottom: 30px;
    margin-top: 5px;
    width: 100%;
    background-color: #f2f2f2;
    border: 1px solid black;
    border-radius: 5px; /* Bordi arrotondati */
}

/* Altezza specifica per l'area di testo */
.second-section-contact form textarea{
    height: 150px;
}

/* Stile per il pulsante di invio */
.second-section-contact form button{
    padding: 10px;
    border-radius: 5px;
    border: 0;
    background-color: #949494;
    width: 20%; /* Larghezza del pulsante */
    color:white;
}

/* --- Inizio Stili Responsive --- */

/* Stili per tablet */
@media (max-width: 1024px) {
    .second-section-contact {
        padding: 50px 5%; /* Riduce la spaziatura */
        gap: 30px;
    }

    .second-section-contact form {
        width: 70%;
    }
}

/* Stili per smartphone */
@media (max-width: 768px) {
    .second-section-contact {
        align-items: center; /* Centra gli elementi */
    }
    .second-section-contact .text-contact-container {
        text-align: center; /* Centra il testo */
    }
    .second-section-contact form {
        width: 100%; /* Il modulo occupa tutta la larghezza */
    }
}