/* Container delle offerte (listing) */
.offerte-container {
    display: flex;             
    flex-wrap: wrap;           
    gap: 20px;                 
    justify-content: center;   
    max-width: 1200px;
    margin: 0 auto;
}

/* Singolo box offerta */
.offerta {
    flex: 0 0 calc(33.333% - 20px);  /* 3 colonne su desktop */
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    margin-bottom: 20px; 
}

/* Immagini forzate a 200px di altezza (tagliate se necessario) */
.offerta img {
    display: block;
    width: 100% !important;
    height: 200px !important; 
    object-fit: cover !important; 
    object-position: center !important;
    margin: 0 auto 10px;
    transition: transform 0.3s ease-in-out;
}

/* Effetto hover: zoom */
.offerta img:hover {
    transform: scale(1.05);
}

/* Titolo (h3) un po’ più piccolo */
.offerta h3 {
    font-size: 1.2em;
    margin: 10px 0;
}

/* Testo descrizione */
.offerta p {
    color: #555;
}

/* Stile per la data (se la mostri sopra la foto) */
.data-offerta {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 5px;
}

/* MEDIA QUERY per tablet (max-width: 768px) - 2 colonne */
@media (max-width: 768px) {
    .offerta {
        flex: 0 0 calc(50% - 20px);
    }
}

/* MEDIA QUERY per smartphone (max-width: 480px) - 1 colonna */
@media (max-width: 480px) {
    .offerta {
        flex: 0 0 100%;
        margin-bottom: 15px;
    }
}
