/* ============================================
   MODAL PROMOZIONALE - STILE PREMIUM GOLD
   ============================================ */

/* Overlay con effetto blur */
.promo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.4s ease;
}

.promo-modal-overlay.show {
    display: flex;
}

/* Badge Slogan Iniziale - Solo testo dorato grande */
.promo-badge-slogan {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px 60px;
    border-radius: 20px;
    border: 3px solid rgba(255, 215, 0, 0.5);
    box-shadow: 
        0 0 60px rgba(255, 215, 0, 0.6),
        0 0 120px rgba(255, 215, 0, 0.3);
}

.promo-badge-slogan.show {
    animation: sloganEnter 3s ease forwards;
}

.promo-badge-slogan .slogan-text {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 4px;
    animation: shimmerText 2s linear infinite;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 1));
    position: relative;
}

/* Particelle dorate intorno al testo */
.slogan-text::before,
.slogan-text::after {
    content: '✨';
    position: absolute;
    font-size: 40px;
    animation: sparkleRotate 2s ease-in-out infinite;
}

.slogan-text::before {
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 0s;
}

.slogan-text::after {
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 1s;
}

/* Modal Container - Effetto Carta Premium */
.promo-modal-container {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 0;
    box-shadow: 
        0 0 60px rgba(255, 215, 0, 0.4),
        0 0 120px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    animation: modalEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Custom Scrollbar */
.promo-modal-container::-webkit-scrollbar {
    width: 8px;
}

.promo-modal-container::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 0 24px 24px 0;
}

.promo-modal-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 4px;
}

.promo-modal-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

/* Bordo Dorato Animato */
.promo-modal-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #FFD700, #FFA500, #FFD700, #FFA500);
    background-size: 400% 400%;
    border-radius: 24px;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
    opacity: 0.6;
}

/* Particelle Dorate */
.promo-modal-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 10px #FFD700;
    animation: sparkleFloat 3s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 40%; left: 80%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { top: 60%; left: 20%; animation-delay: 1s; }
.sparkle:nth-child(4) { top: 30%; left: 70%; animation-delay: 1.5s; }
.sparkle:nth-child(5) { top: 70%; left: 50%; animation-delay: 2s; }
.sparkle:nth-child(6) { top: 50%; left: 90%; animation-delay: 2.5s; }

/* Close Button */
.promo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    color: #FFD700;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-modal-close:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Header */
.promo-modal-container .promo-modal-header {
    padding: 35px 40px 15px;
    text-align: center;
}

.promo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a2e;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: pulse 2s ease infinite;
}

.promo-modal-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px;
    line-height: 1.2;
}

.promo-modal-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Body */
.promo-modal-container .promo-modal-body {
    padding: 15px 40px 35px;
}

.promo-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Pricing Section - EFFETTO PREZZO BARRATO */
.promo-pricing {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.promo-pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.2), 
        transparent);
    animation: shimmer 3s infinite;
}

.price-container {
    text-align: center;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 15px;
}

/* PREZZO VECCHIO - Grande in alto poi esplode */
.old-price {
    font-size: 120px;
    font-weight: 900;
    color: rgba(255, 68, 68, 0.9);
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    animation: priceExplode 5s ease-in-out infinite;
}

.old-price::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 6px;
    background: #ff0000;
    transform: rotate(-15deg) translateY(-50%);
    box-shadow: 0 0 30px rgba(255, 0, 0, 1);
    animation: strikeThrough 5s ease-in-out infinite;
}

/* Effetto frantumazione */
.old-price::before {
    content: '💥';
    position: absolute;
    font-size: 60px;
    top: -50px;
    right: -60px;
    opacity: 0;
    animation: boom 5s ease-in-out infinite;
}

/* PREZZO NUOVO - Enorme in alto */
.new-price {
    font-size: 140px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin: 0;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    animation: priceAppear 5s ease-in-out infinite;
    transform-origin: center;
}

.price-period {
    font-size: 22px;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 700;
    margin-top: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.year-highlight {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.6));
    animation: shimmerText 3s ease-in-out infinite;
}

.calendar-animation {
    display: inline-block;
    width: 60px;
    height: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.15) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.calendar-months {
    display: flex;
    flex-direction: column;
    animation: scrollMonths 8s linear infinite;
}

.calendar-months span {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

@keyframes scrollMonths {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.discount-badge {
    display: inline-block;
    background: #ff4444;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 10px;
    animation: bounce 2s ease infinite;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

/* Features List */
.promo-features {
    list-style: none;
    padding: 20px;
    margin: 0 0 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
}

.promo-features li {
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
}

.promo-features li::before {
    content: '✨';
    font-size: 18px;
    margin-right: 12px;
}

.promo-features li:last-child {
    border-bottom: none;
}

/* CTA Button */
.promo-cta {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a2e;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.promo-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.promo-cta:hover::before {
    left: 100%;
}

.promo-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
}

.promo-cta:active {
    transform: translateY(0);
}

/* Footer Note */
.promo-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-top: 20px;
}

/* ============================================
   ANIMAZIONI
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) scale(1.5);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes sloganEnter {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    30% {
        transform: translate(-50%, -50%) scale(1);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes priceExplode {
    0%, 40% {
        transform: translateX(-50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    45% {
        transform: translateX(-50%) scale(1.15) rotate(-3deg);
    }
    50% {
        transform: translateX(-50%) scale(0.9) rotate(3deg);
        opacity: 0.5;
    }
    55%, 100% {
        transform: translateX(-50%) scale(0) rotate(180deg);
        opacity: 0;
    }
}

@keyframes strikeThrough {
    0%, 40% {
        width: 0%;
        opacity: 0;
    }
    45% {
        width: 120%;
        opacity: 1;
    }
    55%, 100% {
        width: 120%;
        opacity: 0;
    }
}

@keyframes boom {
    0%, 45% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(2.5) rotate(45deg);
    }
    60% {
        opacity: 0;
        transform: scale(4) rotate(90deg);
    }
    100% {
        opacity: 0;
    }
}

@keyframes priceAppear {
    0%, 55% {
        transform: translateX(-50%) scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: translateX(-50%) scale(1.3) rotate(10deg);
        opacity: 1;
    }
    65% {
        transform: translateX(-50%) scale(0.95) rotate(-5deg);
    }
    70%, 100% {
        transform: translateX(-50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes shimmerText {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes sparkleRotate {
    0%, 100% {
        transform: translateY(-50%) scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50%) scale(1.5) rotate(180deg);
        opacity: 1;
    }
}

/* Responsive slogan */
@media (max-width: 768px) {
    .promo-badge-slogan {
        padding: 25px 30px;
        width: 90%;
        max-width: 350px;
    }

    .promo-badge-slogan .slogan-text {
        font-size: 40px;
        letter-spacing: 2px;
    }
    
    .slogan-text::before,
    .slogan-text::after {
        font-size: 28px;
    }
    
    .slogan-text::before {
        left: -50px;
    }
    
    .slogan-text::after {
        right: -50px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .promo-modal-container {
        width: 85%;
        max-width: 400px;
        max-height: 85vh;
        margin: 0;
    }

    .promo-modal-header,
    .promo-modal-body {
        padding: 25px 20px;
    }

    .promo-modal-title {
        font-size: 22px;
    }

    .promo-modal-subtitle {
        font-size: 14px;
    }

    .promo-pricing {
        padding: 15px;
        margin-bottom: 20px;
    }

    .price-container {
        min-height: 220px;
        padding-top: 10px;
    }

    .old-price {
        font-size: 70px;
        top: 15px;
    }

    .old-price::before {
        font-size: 35px;
        top: -35px;
        right: -35px;
    }

    .new-price {
        font-size: 80px;
        top: 15px;
    }

    .price-period {
        font-size: 14px;
        margin-top: 100px;
        gap: 5px;
    }

    .year-highlight {
        font-size: 32px;
    }

    .calendar-animation {
        width: 45px;
        height: 26px;
    }

    .calendar-months span {
        height: 26px;
        font-size: 10px;
    }

    .discount-badge {
        font-size: 12px;
        padding: 5px 14px;
    }

    .promo-features {
        padding: 15px;
        margin-bottom: 20px;
    }

    .promo-features li {
        font-size: 13px;
        padding: 10px 0;
    }

    .promo-cta {
        font-size: 14px;
        padding: 12px 28px;
    }

    .promo-note {
        font-size: 11px;
        margin-top: 15px;
    }
}
