/* =========================
   HEADER MODERNO CON FILTRO MESI
   ========================= */

.events-header-modern {

    padding: 2rem;
    margin-bottom: 2rem;

}

.events-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.events-header-top h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}
.page-subtitle{text-align:center;display:block;}
.sbiadio{color: #a3a3a3;}

/* Ricerca minimale */
.search-minimal {
    position: relative;
}

.search-form-minimal {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-minimal {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border: 2px solid var(--gray-light);
    border-radius: 25px;
    background: var(--light-color);
    width: 280px;
    transition: all 0.3s ease;
    outline: none;
}

.search-input-minimal:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(192, 175, 110, 0.1);
    width: 320px;
}

.search-input-minimal::placeholder {
    color: var(--gray);
}

.search-clear {
    position: absolute;
    right: 1rem;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.search-clear:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Filtro mesi isotope */
.months-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--light-color), #f8f9fa);
    border-radius: 12px;
    border: 1px solid rgba(192, 175, 110, 0.1);
	justify-content: center;
    flex-direction: row;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    color: var(--dark-color);
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 175, 110, 0.3);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(192, 175, 110, 0.3);
}

.year-divider {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(192, 175, 110, 0.1);
    border-radius: 8px;
    margin: 0 0.5rem;
    border: 1px solid rgba(192, 175, 110, 0.2);
}

/* Animazioni isotope */
.events-hero-grid {
    transition: all 0.6s ease;
}

.event-hero-card {
    transition: all 0.6s ease, transform 0.3s ease;
}

.event-hero-card.filtered-out {
    opacity: 0.3;
    transform: scale(0.8) translateY(20px);
	background:
    pointer-events: none;
}

.event-hero-card.filtered-in {
    opacity: 1;
    transform: scale(1) translateY(150);
    pointer-events: auto;
	border: 1px solid;
}

/* Responsive */
@media (max-width: 768px) {
    .events-header-top {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .events-header-top h1 {
        font-size: 1.6rem;
    }
    
    .search-input-minimal {
        width: 100%;
        max-width: 300px;
    }
    
    .search-input-minimal:focus {
        width: 100%;
        max-width: 300px;
    }
    
    .months-filter {
        justify-content: center;
        padding: 0.75rem;
    }
    
    .filter-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .year-divider {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        margin: 0 0.25rem;
    }
}

@media (max-width: 480px) {
    .events-header-modern {
        padding: 1.5rem;
    }
    
    .events-header-top {
        margin-bottom: 1.5rem;
    }
    
    .months-filter {
        gap: 0.25rem;
    }
    
    .filter-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
}

/* Animazione di caricamento per filtro */
@keyframes filterFade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.filter-btn {
    animation: filterFade 0.3s ease;
}

.filter-btn:nth-child(2) { animation-delay: 0.1s; }
.filter-btn:nth-child(3) { animation-delay: 0.15s; }
.filter-btn:nth-child(4) { animation-delay: 0.2s; }
.filter-btn:nth-child(5) { animation-delay: 0.25s; }
.events-header {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.events-title h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.events-title p {
    color: var(--gray);
    margin: 0;
}

.events-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.filters-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.events-stats {
    display: flex;
    gap: 5rem;
 
 
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

.events-table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.events-table {
    width: 100%;
    border-collapse: collapse;
}

.events-table th {
    background: var(--light-color);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--gray-light);
}

.events-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.event-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--dark-color);
}

.event-location {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-featured {
    background: var(--accent-color);
    color: var(--dark-color);
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-draft { background: #fff3cd; color: #856404; }
.status-published { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-completed { background: #d1ecf1; color: #0c5460; }

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 COLONNE! */
    gap: 3rem;
    margin-bottom: 2rem;
}

.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.event-banner {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-color), var(--gray-light));
}

.event-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-banner-image {
    transform: scale(1.05);
}

.event-banner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.banner-placeholder-content {
    text-align: center;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.placeholder-text {
    font-size: 1.1rem;
    font-weight: 600;
    max-width: 200px;
    line-height: 1.3;
}

.event-featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.event-content {
    padding: 2rem;
    position: relative;
}

.event-date-badge {
    position: absolute;
    top: -60px;
    left: 2rem;
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    min-width: 80px;
}

.event-date-day {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.event-date-month {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.25rem 0;
}

.event-date-year {
    font-size: 0.8rem;
    opacity: 0.9;
}

.event-title {
    margin: 2rem 0 1rem 0;
    color: var(--dark-color);
    font-size: 1.4rem;
    line-height: 1.3;
}

.event-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    font-size: 0.9rem;
}

.event-location,
.event-time,
.event-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.meta-icon {
    font-size: 1rem;
}

.event-price.free {
    color: var(--primary-color);
    font-weight: 600;
}

.event-exhibitors {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(192, 175, 110, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.event-exhibitors h4 {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: var(--dark-color);
    font-weight: 600;
}

.exhibitors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.exhibitor-mini {
    width: 40px;
    height: 22px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-light);
}

.exhibitor-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exhibitor-mini-text {
    font-size: 0.6rem;
    font-weight: bold;
    color: var(--primary-color);
}

.exhibitors-more {
    background: var(--gray);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.event-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex: 1;
    justify-content: center;
    min-width: 140px;
}

.btn-icon {
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-disabled {
    background: var(--gray-light);
    color: var(--gray);
    cursor: not-allowed;
    opacity: 0.7;
}

.no-events {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.no-events-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-events h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.no-events p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    background: white;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .events-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .filters-form {
        flex-direction: column;
    }
    
    .events-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .events-grid {
        grid-template-columns: 1fr; /* 1 COLONNA SU MOBILE */
        gap: 2rem;
    }
    
    .event-banner {
        height: 160px;
    }
    
    .event-content {
        padding: 1.5rem;
    }
    
    .event-date-badge {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 1rem;
        display: inline-block;
    }
    
    .event-title {
        margin-top: 1rem;
        font-size: 1.2rem;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .btn {
        flex: none;
        min-width: auto;
    }
    
    .events-table-container {
        overflow-x: auto;
    }
}
/* =========================
   ADMIN SECTION - SMALL STYLE
   ========================= */

/* Header più compatto */
.admin-layout .events-header {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.admin-layout .events-title h1 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.admin-layout .events-title p {
    font-size: 0.85rem;
}

.admin-layout .events-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Filtri più compatti */
.admin-layout .events-filters {
    padding: 1rem;
    margin-bottom: 1rem;
}

.admin-layout .filters-form {
    gap: 0.75rem;
}

.admin-layout .filter-group {
    min-width: 160px;
}

.admin-layout .form-control {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    height: 36px;
}

.admin-layout .btn-secondary,
.admin-layout .btn-outline {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Statistiche più compatte */
.admin-layout .events-stats {
    padding: 1rem;
    margin-bottom: 0rem;
}

.admin-layout .stat-number {
    font-size: 1.2rem;
}

.admin-layout .stat-label {
    font-size: 0.8rem;
}

/* Tabella più compatta */
.admin-layout .events-table-container {
    font-size: 0.85rem;
}

.admin-layout .events-table th {
    padding: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f8f9fa;
}

.admin-layout .events-table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.admin-layout .event-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.admin-layout .event-location {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.admin-layout .badge {
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    border-radius: 8px;
}

.admin-layout .event-date {
    font-size: 0.85rem;
}

.admin-layout .event-date strong {
    font-size: 0.9rem;
}

.admin-layout .event-date small {
    font-size: 0.75rem;
}

.admin-layout .status-badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 12px;
}

.admin-layout .bookings-info {
    font-size: 0.85rem;
}

.admin-layout .bookings-info strong {
    font-size: 0.9rem;
}

/* Bottoni azione più piccoli */
.admin-layout .action-buttons {
    gap: 0.25rem;
}

.admin-layout .btn-sm {
    padding: 0.35rem;
    font-size: 1.25rem;
    border-radius: 4px;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* No events più compatto */
.admin-layout .no-events {
    padding: 2rem 1rem;
}

.admin-layout .no-events-icon {
    font-size: 2.5rem;
}

.admin-layout .no-events h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.admin-layout .no-events p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Paginazione più compatta */
.admin-layout .pagination-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Responsive per admin */
@media (max-width: 1200px) {
    .admin-layout .events-table th:nth-child(4),
    .admin-layout .events-table td:nth-child(4) {
        display: none; /* Nascondi colonna prenotazioni su schermi medi */
    }
}

@media (max-width: 768px) {
    .admin-layout .events-header {
        padding: 0.75rem 1rem;
    }
    
    .admin-layout .events-title h1 {
        font-size: 1.2rem;
    }
    
    .admin-layout .filters-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-layout .filter-group {
        min-width: auto;
    }
    
    .admin-layout .events-stats {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: space-around;
    }
    
    /* Tabella responsive semplificata */
    .admin-layout .events-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-layout .events-table {
        min-width: 600px;
    }
    
    .admin-layout .events-table th:nth-child(3),
    .admin-layout .events-table td:nth-child(3) {
        display: none; /* Nascondi stato su mobile */
    }
    
    .admin-layout .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .admin-layout .btn-sm {
        width: 100%;
        justify-content: center;
    }
}

/* Stili aggiuntivi per form elements */
.admin-layout select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 2rem;
}

.admin-layout input.form-control:focus,
.admin-layout select.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(192, 175, 110, 0.2);
}

/* Hover effects più sottili */
.admin-layout .btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-layout .events-table tbody tr:hover {
    background-color: rgba(192, 175, 110, 0.05);
}

/* Compact badge styles */
.admin-layout .badge-featured {
    background: linear-gradient(45deg, var(--accent-color), #ffd700);
    color: #333;
    font-weight: 600;
}
/* =========================
   EVENTI HERO STYLE
   ========================= */

.events-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.event-hero-card {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-hero-card:hover {
    transform: translateY(-4px);
    border-color: yellow;
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
   
}


/* Overlay scuro per leggibilità */
.event-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.8) 100%
    );
}

/* Badge giorni rimanenti */
.event-days-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.event-days-badge.terminated {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.event-days-badge.urgent {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
}

.event-days-badge.normal {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
}

/* Stella featured */
.event-featured-star {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Contenuto centrale */
.event-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    text-align: center;
    z-index: 10;
    color: white;
}

.event-hero-city {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    line-height: 1;
}

.event-hero-date {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    letter-spacing: 1px;
}

/* Azioni in basso */
.event-hero-actions {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero-btn {
    flex: 1;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-btn-info {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.hero-btn-info:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.hero-btn-book {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.hero-btn-book:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 175, 110, 0.4);
}
/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Fallback per eventi senza immagine */
.event-hero-card:not([style*="background-image"]) {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.event-hero-card:not([style*="background-image"]):nth-child(even) {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

/* Wrapper per la griglia eventi - esce dai limiti del container */
.events-grid-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Griglia eventi responsive */
.events-hero-grid {
    display: grid;
    gap: 2rem;
    padding: 0 2rem;
    margin: 0 auto;
}

.container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Responsive */
@media (max-width: 768px) {
    .events-hero-grid {
        grid-template-columns: 1fr;
       
    }
    
    .event-hero-card {
        height: 240px;
    }
    
    .event-hero-city {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .event-hero-date {
        font-size: 1rem;
    }
    
    .event-days-badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
	.events-hero-grid {
    display: grid;
    gap: 2rem;
    padding: unset !important;
    margin: 0 auto;
}
    
    .event-featured-star {
        top: 0.75rem;
        left: 0.75rem;
        font-size: 1.2rem;
    }
    
    .event-hero-actions {
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .event-hero-card {
        height: 200px;
    }
    
    .event-hero-city {
        font-size: 1.5rem;
    }
    
    .event-hero-date {
        font-size: 0.9rem;
    }
}



/* 3 colonne per schermi ultra-wide (1680px+) */
@media (min-width: 1680px) {
    .events-hero-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    

}

/* 2 colonne per desktop large (1200px - 1679px) */
@media (min-width: 1200px) and (max-width: 1679px) {
    .events-hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 2 colonne per desktop medium (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .events-hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 colonna per tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .events-hero-grid {
        grid-template-columns: 1fr;
    }
    
}

/* 1 colonna per mobile (fino a 767px) */
@media (max-width: 767px) {
    .events-hero-grid {
        grid-template-columns: 1fr;
    }

}
.events-public-container{
	    height: 100%;
    min-height: 584px;
}
/* ===============================================
   EVENTI TABELLA - IMMAGINI ADMIN
   Aggiungi questo al tuo events_list.css
   =============================================== */

/* Cella immagine */
.event-image-cell {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.event-table-image {
    width: 200px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.event-table-image:hover {
    transform: scale(1.05);
}

.event-table-placeholder {
    width: 200px;
    height: 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #6c757d;
    border: 2px dashed #dee2e6;
}

/* Aggiusta la tabella per le immagini */
.events-table th:first-child,
.events-table td:first-child {
    min-width: 200px;
    max-width: 200px;
}

.events-table {
    table-layout: fixed;
}

/* Responsive per tabella con immagini */
@media (max-width: 1200px) {
    .event-image-cell {
        width: 150px;
        height: 75px;
    }
    
    .event-table-image,
    .event-table-placeholder {
        width: 150px;
        height: 75px;
    }
    
    .events-table th:first-child,
    .events-table td:first-child {
        width: 150px;
        min-width: 150px;
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    /* Su mobile nascondi la colonna immagini */
    .events-table th:first-child,
    .events-table td:first-child {
        display: none;
    }
}
/* ===== SEZIONE EVENTI TERMINATI ===== */
.terminated-events-section {
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
	margin-top:20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.5rem;
    font-weight: 600;
}

.carousel-controls {
/*     display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 50px; */
	display:none;
}

.terminated-events-padding{
padding-top: 60px;
    padding-bottom: 90px;
    max-width: 1680px;
    margin-left: auto;
    margin-right: auto;

}

.carousel-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(185,178,116,0.8);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: #b9b274;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* CAROUSEL WRAPPER */
.terminated-carousel-wrapper {
    overflow: hidden;
  
}
.terminated-stat{color:white;}
.terminated-carousel {
	display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
   
}

/* CARD EVENTI TERMINATI */
.terminated-event-card {
    flex: 0 0 calc(26.9% - 2rem);
    height: 290px;
    background-size: cover;
    background-position: center;
    background-color: #6c757d;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;  
}

.terminated-event-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.terminated-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    transition: all 0.3s ease;
}

.terminated-event-card:hover .terminated-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
}

.terminated-content {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    color: white;
}

.terminated-date {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.3rem;
}

.terminated-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.terminated-location {
    font-size: 0.8rem;
    opacity: 0.8;
}

.terminated-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.terminated-event-card:hover .terminated-actions {
    opacity: 1;
}

.terminated-btn {
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.terminated-btn:hover {
    background: white;
    transform: scale(1.05);
}
.play-icon, .play-icon-hero {
    color: #b9b274;
    font-size: 1.5rem;
    margin-left: 3px; /* Centra il triangolo */
}

.play-icon-hero {
    font-size: 1.8rem;
}

/* ===== RIBBON 2026 ===== */
.event-ribbon-2026 {
     position: absolute;
    top: -5px;
    left: 1px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    transform: translateX(-30%) translateY(25%) rotate(-45deg);
    transform-origin: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
    min-width: 140px;
    text-align: center;
    FONT-WEIGHT: 600;
    border: 1px solid;
}


/* ===== FILTRI ISOTOPE MIGLIORATI ===== */
.months-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.9);
    border: 2px solid #dee2e6;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    border-color: #b9b274;
    background: rgba(185,178,116,0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #b9b274;
    color: white;
    border-color: #b9b274;
    box-shadow: 0 4px 15px rgba(185,178,116,0.3);
}


/* ===== RESPONSIVENESS ===== */
@media (max-width: 1400px) {
    .terminated-event-card {
        flex: 0 0 calc(25% - 0.75rem); /* 4 cards su schermi medi */
    }
}

@media (max-width: 1024px) {
    .terminated-event-card {
        flex: 0 0 calc(33.333% - 0.67rem); /* 3 cards su tablet */
    }
    
    .video-play-btn, .video-play-btn-hero {
        width: 50px;
        height: 50px;
    }
    
    .play-icon, .play-icon-hero {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .terminated-event-card {
        flex: 0 0 calc(50% - 0.5rem); /* 2 cards su mobile */
        height: 160px;
    }
    .terminated-events-padding{padding-top:20px;}
    .section-header{padding-top:20px;}
    .terminated-events-section {
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .event-ribbon-2026 {
        font-size: 0.8rem;
        padding: 0.4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .terminated-event-card {
        flex: 0 0 100%; /* 1 card su mobile piccolo */
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}
/* ===== VIDEO MODAL POPUP ===== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    background: #1a1a1a;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.video-close-btn:hover {
    background: rgba(220, 38, 127, 0.8);
    transform: scale(1.1);
}

.video-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
}

.video-header h3 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.video-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.video-type-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.video-type-badge.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.video-type-badge.vimeo {
    background: linear-gradient(135deg, #1ab7ea, #1171ef);
}

.video-type-badge.upload {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.video-type-badge.url {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.video-count-info {
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: 500;
}

.video-container {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: #000;
}

.video-container iframe {
    border: none;
    border-radius: 0;
}

.video-container video {
    border-radius: 0;
    background: #000;
}

.video-footer {
    padding: 20px 25px;
    background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.video-footer p {
    color: #ccc;
    margin: 0 0 15px 0;
    font-size: 0.95rem;
}

.btn-more-videos {
    background: linear-gradient(135deg, #dc267f, #b91c5c);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-more-videos:hover {
    background: linear-gradient(135deg, #b91c5c, #dc267f);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 127, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== VIDEO BUTTONS ===== */
.video-btn {
    background: black;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
        box-shadow: 0px -2px 15px 10px rgb(255 255 255 / 62%);
    position: relative;
    overflow: hidden;
}

.video-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-btn:hover::before {
    opacity: 1;
}

.video-btn:hover {
    transform: scale(1.15) translateY(-2px);

}

.video-btn:active {
    transform: scale(1.05) translateY(0);
    transition: transform 0.1s ease;
}

/* Video button specifici per eventi terminati */
.terminated-video-btn {
    margin-right: 12px;
    width: 40px;
    height: 40px;

}

/* Video button specifici per eventi futuri */
.hero-video-btn {
    margin-right: 10px;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
}

/* ===== ADMIN TABLE VIDEO INFO ===== */
.video-info-admin {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.video-count-badge {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid #90caf9;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}

.featured-video-badge {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #f57c00;
    padding: 4px 8px;
    border-radius: 50%;
    font-size: 0.75rem;
    line-height: 1;
    border: 1px solid #ffcc02;
    box-shadow: 0 2px 6px rgba(245, 124, 0, 0.2);
    font-weight: bold;
}

.no-video {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}



/* ===== TOOLTIP PER VIDEO BUTTONS ===== */
.video-btn {
    position: relative;
}

.video-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease forwards;
    max-width: 200px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-btn[title]:hover::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.9);
    z-index: 1001;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease forwards;
}

@keyframes tooltipFadeIn {
    to { 
        opacity: 1; 
    }
}

/* ===== TERMINATED EVENTS ACTIONS FIX ===== */
.terminated-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 0 0 15px 15px;
    position: absolute;
    left: 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
	justify-content: space-between;
}


/* ===== HERO EVENTS ACTIONS FIX ===== */
.event-hero-actions {
	display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 0 0 15px 15px;
    position: absolute;
    left: 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    justify-content: space-between;
    /* flex-direction: row; */
    width: 75%;
    margin-left: auto;
    margin-right: auto;
	flex-direction: row;
}


/* ===== HOVER EFFECTS PER EVENT CARDS ===== */
.event-hero-card .video-btn {
    opacity: 1; /* SEMPRE VISIBILE */
    transform: translateY(0); /* SEMPRE POSIZIONATO */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-hero-card:hover .video-btn {
    transform: scale(1.1); /* SOLO SCALE SU HOVER */
}

.terminated-event-card .video-btn {
    opacity: 1; /* SEMPRE VISIBILE */
    transform: translateY(0); /* SEMPRE POSIZIONATO */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.terminated-event-card:hover .video-btn {
    transform: scale(1.1); /* SOLO SCALE SU HOVER */
}

/* ===== FLEX LAYOUT PER BUTTON SPACING ===== */
.terminated-btn, .hero-btn {
    flex-shrink: 0; /* NON RIMPICCIOLIRE */
}

/* Video button dimensioni specifiche per non sovrapporre */
.terminated-video-btn {
    margin-right: 0; /* RIMUOVI MARGIN, USA GAP */
    width: 40px;
    height: 40px;
    flex-shrink: 0; /* NON RIMPICCIOLIRE */
}

.hero-video-btn {
    margin-right: 0; /* RIMUOVI MARGIN, USA GAP */
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    flex-shrink: 0; /* NON RIMPICCIOLIRE */
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .video-modal-content {
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .video-header {
        padding: 15px 20px 12px;
    }
    
    .video-header h3 {
        font-size: 1.1rem;
    }
    
    .video-container {
        min-height: 250px;
    }
    
    .video-container iframe {
        width: 100% !important;
        height: 250px !important;
    }
    
    .video-footer {
        padding: 15px 20px;
    }
    
    .video-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .hero-video-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-right: 8px;
    }
    
    .terminated-video-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 10px;
    }
    
    .video-close-btn {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .video-btn[title]:hover::after {
        font-size: 0.75rem;
        padding: 6px 10px;
        bottom: -35px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        max-width: 98vw;
        max-height: 98vh;
        border-radius: 10px;
    }
    
    .video-container {
        min-height: 200px;
    }
    
    .video-container iframe {
        height: 200px !important;
    }
    
    .video-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .hero-video-btn {
        width: 33px;
        height: 33px;
        font-size: 0.9rem;
        margin-right: 6px;
    }
    
    .terminated-video-btn {
        width: 72px;
        height: 72px;
        font-size: 3rem;
        margin-right: 8px;
    }
	.terminated-content{text-align:center;}
.terminated-actions {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 12px 15px;
    border-radius: 0 0 15px 15px;
    position: absolute;
    left: 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    justify-content: space-between;
}
.terminated-btn {
     margin-top: -60px;
}

}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .video-modal {
        background: rgba(0, 0, 0, 0.95);
    }
    
    .video-modal-content {
        background: #111;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    }
    
    .video-header {
        background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }
    
    .video-footer {
        background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
        border-top-color: rgba(255, 255, 255, 0.05);
    }
}

/* ===== SMOOTH LOADING ANIMATION ===== */
.video-container.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-container.loading::before {
    content: '🎬';
    font-size: 3rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .video-btn {
        border: 2px solid white;
        background: #dc267f;
    }
    
    .video-btn:hover {
        border-color: #ffd700;
    }
    
    .video-modal-content {
        border: 2px solid white;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .video-modal,
    .video-btn {
        display: none !important;
    }
}
/* Container Badge */
.event-stats-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

/* Badge Base Style */
.visitors-badge {
position: absolute;
    top: 6.8rem;
    right: 16px;
    background: #ffffff29;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}


/* Colori distintivi */
.exhibitors-badge {
    border-left: 3px solid #48bb78; /* Verde per brand */
}

.visitors-badge {
    border-left: 3px solid #4299e1; /* Blu per visitatori */
}

.badge-label {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.8;
    line-height: 1;
}

.badge-count {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    margin-top: 1px;
}

.exhibitors-badge .badge-count {
    color: #48bb78;
}

.visitors-badge .badge-count {
    color: #c7d3c7;
}

/* Responsive */
@media (max-width: 768px) {
    .event-stats-badges {
        top: 6px;
        right: 6px;
        gap: 4px;
    }
    
.visitors-badge {
position: absolute;
    top: 5.2rem;
    right: 11px;
    background: #ffffff29;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

    .badge-label {
        font-size: 7px;
    }
    
    .badge-count {
        font-size: 12px;
    }
}
/* 🎨 STILI GRIGLIA ADMIN */
.admin-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e1e8ed;
}

.admin-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 🏁 EVENTI PASSATI - OPACITY RIDOTTA */
.admin-event-card.past-event {
    opacity: 0.5;
    filter: grayscale(20%);
}

.admin-event-card.past-event:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.admin-event-header {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px;
}

.admin-event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.admin-status-badge {
    position: relative;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.admin-status-badge.status-draft { background: #ffa500; }
.admin-status-badge.status-published { background: #28a745; }
.admin-status-badge.status-cancelled { background: #dc3545; }
.admin-status-badge.status-completed { background: #6c757d; }

.admin-featured-star {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.admin-video-indicator {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-indicator {
    font-size: 10px;
}

.admin-event-content {
    padding: 16px;
}

.admin-event-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-event-date {
    color: #7f8c8d;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.admin-event-location {
    color: #34495e;
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.admin-event-location small {
    color: #95a5a6;
}

.admin-event-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.admin-stat {
    text-align: center;
    background: #f8f9fa;
    padding: 6px 4px;
    border-radius: 6px;
}

.stat-label {
    display: block;
    font-size: 10px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.stat-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
}

.admin-event-actions {
    padding: 12px 16px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.admin-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: white;
    color: #6c757d;
}

.admin-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.admin-action-btn.view:hover { 
    background: #e3f2fd; 
    color: #1976d2;
    border-color: #bbdefb;
}

.admin-action-btn.edit:hover { 
    background: #fff3e0; 
    color: #f57c00;
    border-color: #ffcc02;
}

.admin-action-btn.bookings:hover { 
    background: #e8f5e8; 
    color: #388e3c;
    border-color: #c8e6c9;
}

.admin-action-btn.videos:hover { 
    background: #fce4ec; 
    color: #c2185b;
    border-color: #f8bbd9;
}

/* Responsive */
@media (min-width: 1400px) {
    .admin-events-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .admin-events-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .admin-events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .admin-events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .admin-events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .admin-event-card {
        min-height: auto;
    }
    
    .admin-event-title {
        font-size: 14px;
    }
    
    .admin-action-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .admin-events-grid {
        grid-template-columns: 1fr;
    }
}