/**
 * Promo Popup - CSS
 * Stile moderno e responsive per il popup
 */

/* Overlay */
.promo-popup-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promo-popup-overlay.show {
    opacity: 1;
}

/* Popup container */
.promo-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 100000;
    transition: transform 0.3s ease;
}

.promo-popup-overlay.show .promo-popup {
    transform: translate(-50%, -50%) scale(1);
}

/* Bottone chiudi */
.promo-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.promo-popup-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

/* Contenuto */
.promo-popup-content {
    padding: 30px;
}

/* Immagine */
.promo-popup-image {
    margin-bottom: 20px;
    text-align: center;
}

.promo-popup-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Testo */
.promo-popup-text h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.promo-popup-text p {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Bottone */
.promo-popup-button {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.promo-popup-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    text-decoration: none;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .promo-popup {
        max-width: 95%;
        width: 95%;
    }
    
    .promo-popup-content {
        padding: 20px;
    }
    
    .promo-popup-text h2 {
        font-size: 20px;
    }
    
    .promo-popup-text p {
        font-size: 14px;
    }
    
    .promo-popup-button {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Animazione scroll su mobile */
@media (max-width: 480px) {
    .promo-popup {
        max-height: 90vh;
    }
}
