/**
 * Stili per la visualizzazione dell'archivio degli eventi.
 */

/* Layout principale */
.ait-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ait-archive-title {
    font-size: 32px;
    margin: 0 0 20px 0;
    color: #0058AB;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Filtri */
.ait-eventi-filters {
    margin-bottom: 30px;
}

.ait-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.ait-tabs li {
    margin: 0;
}

.ait-tabs a {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.ait-tabs a:hover {
    color: #0058AB;
}

.ait-tabs a.active {
    color: #0058AB;
    border-bottom-color: #0058AB;
}

/* Messaggi */
.ait-message {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.ait-info {
    background-color: #e6f3ff;
    border: 1px solid #b8d8ff;
    color: #0058AB;
}

/* Griglia eventi */
.ait-eventi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.ait-evento-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ait-evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.ait-evento-ongoing {
    border: 2px solid #FF9800; /* Arancione per eventi in corso */
}

.ait-evento-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.ait-evento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ait-evento-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF9800; /* Arancione */
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ait-badge-ongoing-inli