/* style.css - Versione completa e ottimizzata */

* {
    box-sizing: border-box;
}

body {
    scroll-behavior: smooth;
}

/* ========== HERO & ANIMATIONS ========== */
.hero-gradient {
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 30%, #3182ce 60%, #4299e1 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(66, 153, 225, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(49, 130, 206, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.pulse-cta {
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(255, 165, 0, 0.6); }
    50% { transform: scale(1.05); box-shadow: 0 0 40px rgba(255, 165, 0, 0.9); }
}

.urgent-flash {
    animation: urgent-flash 2s infinite;
}

@keyframes urgent-flash {
    0%, 50%, 100% { background-color: #dc2626; }
    25%, 75% { background-color: #ef4444; }
}

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

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

.italian-tricolor {
    background: linear-gradient(to right, #009246 33%, #ffffff 33% 66%, #ce2b37 66%);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* ========== TESTIMONIALS ========== */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ========== COUNTDOWN ========== */
.countdown-box {
    background: linear-gradient(45deg, #dc2626, #ef4444);
    animation: countdown-pulse 1s infinite;
}

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

/* ========== SCIENTIFIC BADGE ========== */
.scientific-badge {
    background: linear-gradient(135deg, #065f46, #047857, #059669);
    animation: scientific-glow 3s ease-in-out infinite;
}

@keyframes scientific-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(5, 150, 105, 0.4); }
    50% { box-shadow: 0 0 30px rgba(5, 150, 105, 0.7); }
}

/* ========== STORE BUTTON ========== */
.store-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    animation: bounce 2s infinite;
    pointer-events: auto;
    max-width: 200px;
    opacity: 0.95;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* ========== QUICK NAV ========== */
.quick-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.quick-nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.quick-nav-link:hover {
    transform: translateY(-2px);
}

.quick-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #009246, #ce2b37);
    transition: width 0.3s ease;
}

.quick-nav-link:hover::after {
    width: 100%;
}

/* ========== INNOVATIVE NAV (THREE DOTS) ========== */
.innovative-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.three-dots-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.three-dots-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1);
}

.dot {
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
    margin: 1.5px 0;
    transition: all 0.3s ease;
}

.three-dots-btn:hover .dot {
    background: linear-gradient(135deg, #009246, #ce2b37);
    transform: scale(1.2);
}

.dropdown-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 15px 0;
    min-width: 280px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
}

.dropdown-menu.active .menu-item {
    opacity: 1;
    transform: translateX(0);
}

.dropdown-menu.active .menu-item:nth-child(1) { transition-delay: 0.1s; }
.dropdown-menu.active .menu-item:nth-child(2) { transition-delay: 0.15s; }
.dropdown-menu.active .menu-item:nth-child(3) { transition-delay: 0.2s; }
.dropdown-menu.active .menu-item:nth-child(4) { transition-delay: 0.25s; }
.dropdown-menu.active .menu-item:nth-child(5) { transition-delay: 0.3s; }
.dropdown-menu.active .menu-item:nth-child(6) { transition-delay: 0.35s; }
.dropdown-menu.active .menu-item:nth-child(7) { transition-delay: 0.4s; }

.menu-item:hover {
    background: rgba(0, 146, 70, 0.05);
    transform: translateX(5px);
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #009246, #ce2b37);
    border-radius: 6px;
    color: white;
    font-size: 12px;
}

.menu-text {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.menu-badge {
    background: linear-gradient(135deg, #009246, #ce2b37);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
}

/* ========== FAQ ACCORDION ========== */
.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-left-color: #059669;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1f2937;
    transition: background-color 0.3s ease;
    background: none;
    border: none;
    width: 100%;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: #059669;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

/* ========== INGREDIENT & SYMPTOM CARDS ========== */
.ingredient-highlight {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.ingredient-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.symptom-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.symptom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.importance-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-section-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .quick-nav {
        display: none;
    }
    
    .store-button {
        bottom: 10px;
        right: 10px;
        transform: scale(0.9);
    }
    
    .innovative-nav {
        top: 15px;
        right: 15px;
    }
    
    .three-dots-btn {
        width: 45px;
        height: 45px;
    }
    
    .dropdown-menu {
        min-width: 250px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .product-visualization {
        width: 250px !important;
        height: 220px !important;
    }
    
    .trust-badges {
        grid-template-columns: 1fr !important;
    }
}