/* Reset dei margini di base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo della pagina */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7; /* Colore di sfondo chiaro */
    color: #333; /* Testo di colore nero/grigio scuro per leggibilità */
}

/* Header */
#header {
    background-color: #4CAF50; /* Verde moderno */
    color: white;
    text-align: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

#header-text h1 {
    font-size: 3em;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
}

#header-text p {
    font-size: 1.2em;
    opacity: 0;
    animation: fadeIn 1s forwards 1s;
}

#header-images {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

#header-images img {
    width: 150px; /* Adattamento della dimensione dell'immagine */
    height: 150px;
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

#img1 {
    animation-delay: 1s; /* Ritardo di animazione per l'immagine di sinistra */
}

#img2 {
    animation-delay: 1.3s; /* Ritardo di animazione per l'immagine di destra */
}

/* Sezione principale */
main {
    padding: 40px 20px;
    background-color: white;
}

/* Stile per i paragrafi */
section {
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1s forwards 2s;
}

section h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #333;
}

section p {
    font-size: 1.2em;
    color: #555;
}

/* Animazioni */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Footer */
footer {
    background-color: #333; /* Colore scuro per il footer */
    color: white;
    text-align: center;
    padding: 20px;
}

footer p {
    margin: 10px 0;
    font-size: 0.9em;
}

/* Media query per responsività */
@media (max-width: 768px) {
    #header-text h1 {
        font-size: 2em;
    }

    #header-text p {
        font-size: 1em;
    }

    #header-images img {
        width: 80px;
    }

    section h2 {
        font-size: 1.5em;
    }

    section p {
        font-size: 1em;
    }
}
