/* Grid base */
.cg-events-grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(200px, 1fr) );
    gap: 20px;
}

/* Card evento */
.cg_events_item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background-color: #182530;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    max-width: 400px;
    box-sizing: border-box;
}

.cg_events_item:hover {
    transform: translateY(-5px);
}

/* Data */
.cg_events_item_date {
    color: #ffffff;
    font-size: 18px;
}

/* Titolo */
.cg_events_item_title {
    color: #ffffff;
    font-size: 32px;
}

/* Immagine */
.cg_events_item_featured img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Tablet: max 2 colonne */
@media (max-width: 1024px) {
    .cg-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 colonna full width, niente max-width che schiaccia */
@media (max-width: 768px) {
    .cg-events-grid {
        grid-template-columns: 1fr;
    }
    .cg_events_item {
        max-width: none;
        width: 100%;
    }
}
