/* ==========================================================================
   SECTION UTILITIES FOR TRANSPARENT/BLUR EFFECTS
   ========================================================================== */
/* Sezione completamente trasparente - mostra il background shader */
.section-transparent {
    background: transparent !important;
}

/* Sezione con blur leggero - effetto vetro sopra lo shader */
.section-blur {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    text-overflow: ellipsis;
}

.faq-item {}

/* Sezione scura trasparente - per testi chiari */
.section-dark-transparent {
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(10px) !important;
}

/* Sezione bianca semitrasparente */
.section-white-blur {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px) !important;
}

/* ==========================================================================
   GLOBAL SHADER BACKGROUND
   ========================================================================== */
.global-shader-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Dietro a tutto */
    pointer-events: none;
}

.global-shader-background shader-art {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

.global-shader-background shader-art canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hide shader-art GUI controls by default */
.dg.ac {
    display: none !important;
}

/* Show shader-art GUI controls only in debug mode */
body.debug-mode .dg.ac {
    display: block !important;
}

/* ==========================================================================
   HERO V2 - NOW TRANSPARENT TO SHOW GLOBAL BACKGROUND
   ========================================================================== */
.hero-v2 {
    min-height: 100vh;
    background: transparent;
    /* Trasparente per far vedere il background globale */
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px 20px;
    overflow: hidden;
}

/* Main content */
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    z-index: 10;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Left Content */
.content-left {
    color: white;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.badge-icon {
    width: 8px;
    height: 8px;
    background: #FFE500;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Main Title */
.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(135deg, #FFE500 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* Disclaimer */
.disclaimer {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid #FFE500;
}

.disclaimer a {
    color: #FFE500;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s;
}

.disclaimer a:hover {
    color: #FFD700;
    text-decoration: none;
}

/* Price and CTA Wrapper */
.price-cta-wrapper {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 2rem;
    align-items: center;
    width: fit-content;
}

/* Price Container */
.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 3px;
}

.old-price {
    font-size: 2.3rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

.new-price {
    font-size: 4rem;
    font-weight: 900;
    color: #FFE500;
}

/* Main CTA */
.main-cta {
    background: linear-gradient(135deg, #FFE500 0%, #FFD700 100%);
    color: #0B1426;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 8px 30px rgba(255, 229, 0, 0.3);
}

.main-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 229, 0, 0.4);
}

/* Right Content */
.content-right {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

/* Main VIP Card */
.vip-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-svg-wrapper {
    position: relative;
    perspective: 1000px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 30px;
    overflow: hidden;
    background: transparent;
    backdrop-filter: blur(10px);
    padding: 0;
    box-shadow: 0 20px 60px rgb(255 255 255 / 71%);
    cursor: pointer;
}

.card-svg-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(255, 229, 0, 0.4);
}

.card-svg {
    width: 100%;
    height: auto;
    max-width: 100%;
    transition: all 0.3s ease;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* Statistics Section */
.stats-section {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 3rem;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    max-width: 200px;
    min-height: 80px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #FFE500 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-v2 {
        padding: 60px 10px;
        /* Ridotto da 20px a 10px */
    }

    .card-svg-wrapper {
        border-radius: 19px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 1rem;
        /* Ridotto da 2rem a 1rem */
        max-width: 100%;
        /* Usa tutta la larghezza disponibile */
    }

    /* Mobile card - visible only on mobile */
    .mobile-card-container {
        display: block;
        margin: 2rem 0;
    }

    /* Desktop card - hidden on mobile */
    .desktop-card-container {
        display: none;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .card-svg-wrapper {
        padding: 0;
    }

    .card-svg {
        width: 320px;
        /* Aumentato da 280px a 320px */
        max-width: 95vw;
        /* Aumentato da 90vw a 95vw */
    }

    /* Price centered on mobile */
    .price-cta-wrapper {
        margin-bottom: 1rem;
        display: flex;
        width: 100%;
    }
    
    .price-container {
        justify-content: center;
        text-align: center;
        margin-bottom: 1rem;
    }

    .stats-section {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 2rem;
    }
    
    .stat-item {
        flex: 1;
        min-width: 140px;
        max-width: 160px;
        padding: 0.8rem 1rem;
        min-height: 70px;
    }

    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Desktop layout */
@media (min-width: 769px) {
    /* Mobile card - hidden on desktop */ .mobile-card-container {
        display: none;
    }

    /* Desktop card - visible on desktop */
    .desktop-card-container {
        display: block;
    }
}

/* Mobile optimizations for shader */
@media (max-width: 768px) {
    .hero-shader-container shader-art {
        opacity: 0.4;
        /* Lighter on mobile for better text readability */
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-shader-container shader-art {
        opacity: 0.5;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .hero-shader-container shader-art {
        opacity: 0.7;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-shader-container {
        display: none;
    }

    .hero-v2 {
        background: linear-gradient(135deg, #0B1426 0%, #1a2347 50%, #2d3561 100%);
    }

    .vip-card {
        animation: none;
    }

    .badge-icon {
        animation: none;
    }
}

/* ========================================
   FAQ Section - Tab & Accordion Style
   ======================================== */
.faq-section {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    padding: 80px 0;
    /* Padding normale delle sezioni, rimosso min-height */
}

.faq-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-section .section-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.faq-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Tab Navigation */
.faq-tabs {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 229, 0, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(255, 229, 0, 0.2);
    border-color: #FFE500;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #FFE500;
    border-color: #FFE500;
    color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 229, 0, 0.3);
}

/* Tab Content */
.tab-content {
    padding: 0 20px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accordion Styles */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 30px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0066cc;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 229, 0, 0.1);
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    background: #FFE500;
    color: #0066cc;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: #0066cc;
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(255, 255, 255, 0.5);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding-top: 15px;
}

.faq-answer a {
    color: #FFE500;
    text-decoration: underline;
    font-weight: 600;
}

.faq-answer a:hover {
    color: #FFD700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-section {
        padding: 40px 0;
    }

    .faq-section .section-title {
        font-size: 2rem;
    }

    .tab-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        font-weight: 500;
        border-radius: 20px;
        text-align: center;
        white-space: nowrap;
        flex-shrink: 0;
        /* Non si rimpicciolisce */
        min-width: auto;
        /* Larghezza automatica basata sul contenuto */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }

    .faq-question span:first-child {
        padding-right: 15px;
    }

    .faq-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    /* Hero optimizations for very small screens */ .hero-v2 {
        padding: 60px 0;
        /* Minimal side padding */
    }

    .hero-content {
        padding: 0.5rem;
        /* Minimal content padding */
    }

    .card-svg {
        width: 340px;
        /* Bigger card on small screens */
        max-width: 100%;
        /* Almost full width */
    }

    .main-title {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }

    /* FAQ optimizations */
    .tab-buttons {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 0 10px;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        border-radius: 25px;
    }

    .tab-btn:nth-child(5) {
        grid-column: 1;
        margin: 0;
        max-width: none;
    }
}
