/**
 * Vexpo CMS - Events Banner Slider
 * File: vex_events_banner.css
 */

/* ============================================
   BANNER SLIDER
   ============================================ */
.vex-banner-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 60px;
    background: #232529;
}

/* Nascosto SOLO se no banner (classe aggiunta da JS) */
.vex-banner-slider.no-banners {
    display: none;
}

.vex-banner-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.vex-banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Overlay gradient */
.vex-banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    z-index: 1;
}

.vex-banner-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 600px;
    z-index: 2;
}

.vex-banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0;
}

.vex-banner-description {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.5;
    opacity: 0;
}

.vex-banner-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    opacity: 0;
}

.vex-banner-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Dots - nascosto di default */
.vex-banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 10px;
    z-index: 3;
}

/* Mostra dots solo quando slider ha banner */
.vex-banner-slider.has-banners .vex-banner-dots {
    display: flex;
}
.vex-banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.vex-banner-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.vex-banner-slide.active .vex-banner-title,
.vex-banner-slide.active .vex-banner-description,
.vex-banner-slide.active .vex-banner-button {
    animation-fill-mode: forwards;
}

/* Video Banner */
.vex-banner-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(.95);
    filter: blur(13px);
    opacity: 0.8;
    z-index: 0;
}

.vex-banner-video-main {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .vex-banner-slider {
        height: 500px;
    }
    
    .vex-banner-content {
        left: 30px;
        max-width: 500px;
    }
    
    .vex-banner-title {
        font-size: 36px;
    }
    
    .vex-banner-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .vex-banner-slider {
        height: 400px;
    }
    
    .vex-banner-content {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .vex-banner-title {
        font-size: 28px;
    }
    
    .vex-banner-description {
        font-size: 16px;
    }
    
    .vex-banner-nav {
        width: 40px;
        height: 40px;
    }
    
    .vex-banner-prev { left: 10px; }
    .vex-banner-next { right: 10px; }
}