@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

body {
    background-color: #000;
}

.title {
    position: relative;
    height: fit-content;
    width: 100%;
    padding: 100px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(/immagini/Eventi.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.title h1 {
    background-color: transparent;
    color: #e0e0e0;
    font-size: 42px;
    z-index: 10;
}

.events-section {
    display: flex;
    justify-content: space-evenly;
    align-items: center; /* Centra gli eventi */
    flex-wrap: wrap;
    padding: 20px;
}

.event-box {
    display: flex;
    flex-direction: column; /* Disposizione verticale dentro il box */
    align-items: center;
    background: #000; /* Colore di sfondo chiaro per i box */
    border-radius: 10px;
    box-shadow: 1px 1px 10px 1px rgba(255, 255, 255, 0.2);
    margin: 10px;
    width: 100%; /* Larghezza al 100% */
    max-width: 400px; /* Larghezza massima */
    overflow: hidden; /* Per evitare overflow dell'immagine */
    transition: transform 0.3s;
}

.event-box img {
    width: 100%; /* Immagine responsiva */
    height: 200px; /* Altezza fissa per mantenere uniformità */
    object-fit: cover; /* Mantiene il rapporto d'aspetto */
}

.event-info {
    padding: 15px;
    text-align: center; /* Testo centrato */
}

.event-info h3 {
    margin-bottom: 10px;
    color: #e0e0e0; /* Colore del titolo */
}

.event-info .event-date {
    font-weight: bold;
    color: #e0e0e0; /* Colore per la data */
}

.event-info p {
    color: #e0e0e0; /* Colore del testo descrittivo */
}

@media (max-width: 768px) {
    .title h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .title h1 {
        font-size: 2rem;
    }
}
