/* Stili globali */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom, #FFFFE0, #FFFFFF);
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

header {
    background: #008000;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

header h1 {
    margin: 0 15px;
    text-align: center;
    flex-basis: auto;
}

header .logo {
    height: auto;
    max-height: 80px;
    max-width: 100%;
    width: auto;
    margin-bottom: 5px;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        padding: 1rem 10px;
    }
    header h1 {
        margin: 10px 0 0 0;
        font-size: 1.5em;
    }
    header .logo {
        margin-bottom: 10px;
        max-height: 60px;
    }
}

nav ul {
    padding: 0;
    list-style: none;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
    max-width: 960px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

section {
    margin-bottom: 20px;
}

footer {
    text-align: center;
    padding: 20px;
    background: #008000;
    color: #fff;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* --- STILI PER IL MODULO DI CONTATTO (Aggiornati) --- */
form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Selettori aggiornati per includere tel e il campo captcha */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
    width: 100%;
    max-width: 500px; /* Limita la larghezza per una lettura migliore */
    height: 45px;      /* Altezza uniforme per tutti i campi riga singola */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; 
    font-family: inherit;
    font-size: 14px;
}

/* La textarea deve essere più alta per il testo, ma mantenere lo stile */
form textarea {
    height: 120px; 
}

/* Colore rosso per la nota sui campi obbligatori */
.nota-obbligatoria {
    color: #d9534f;
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 15px;
    display: block;
}

form input[type="submit"] {
    background-color: #008000;
    color: white;
    padding: 0 25px;
    height: 45px;     /* Altezza uguale agli altri campi */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

form input[type="submit"]:hover {
    background-color: #006400;
}

/* Stili per la galleria immagini */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.gallery-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}