/**
 * OPINIONIPRO - Commercial Landing Styles
 * 
 * Stili per la homepage commerciale:
 * - Animazioni on-scroll (fade-up)
 * - Pulse per badge
 * - Glow effect per CTA
 * - Modal video
 */

/* ============================================
   ANIMAZIONI ON-SCROLL
   ============================================ */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay per le card */
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.25s; }
.fade-up.delay-3 { transition-delay: 0.4s; }

/* ============================================
   PULSE ANIMATION
   ============================================ */

@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-subtle-pulse {
    animation: subtle-pulse 2s ease-in-out infinite;
}

/* ============================================
   GLOW EFFECT PER CTA
   ============================================ */

.glow-cta {
    position: relative;
}

.glow-cta::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, #f59e0b, #f97316, #f59e0b);
    border-radius: 0.5rem;
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.3s;
}

.glow-cta:hover::before {
    opacity: 0.6;
}

/* ============================================
   MODAL VIDEO
   ============================================ */

.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.video-modal.fade-out {
    opacity: 0;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 80vh;
    margin: 0 1rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.active .video-container {
    transform: scale(1);
}

.video-container video {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.video-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Mobile adjustments per video modal */
@media (max-width: 768px) {
    .video-container {
        max-height: 70vh;
    }
    
    .video-container video {
        max-height: 70vh;
    }
    
    .video-close {
        top: -45px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}