@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .video-grid, 
    .results-grid,
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

@media screen and (max-width: 768px) {

    .hero {
        padding-top: 0 !important; /* Override any other padding-top */
        min-height: auto;
    }
    
    .container {
        margin-top: 0 !important; /* Override any other margin-top */
        padding-top: 0;
    }
    
    .header {
        display: none; /* Hide header by default on mobile */
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        opacity: 0;
    }
    
    .header.scroll-visible {
        display: block;
        transform: translateY(0);
        opacity: 1;
    }
    
    .header.scroll-hidden {
        transform: translateY(-100%);
        opacity: 0;
    }
    

    .header-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        padding-top: 4rem; /* Aggiunto padding extra */
    }

    .video-grid,
    .results-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem; /* Aggiunto margine superiore */
    }

    .benefits-list {
        margin: 1.5rem auto;
        padding-top: 1rem; /* Aggiunto padding */
    }

    .benefits-list li {
        padding: 1.2rem;
        font-size: 1rem;
    }

    .benefits-list li::before {
        font-size: 1.4rem;
        margin-right: 1rem;
    }

    /* Ridotte dimensioni CTA */
    .cta-button {
        padding: 0.7rem 1.4rem; /* Riduce dimensione del bottone */
        font-size: 0.6rem; /* Riduce dimensione del testo */
    }

    .cta-label {
        display: block; /* Mostra la scritta solo su mobile */
        font-size: 0.75rem; /* Riduce dimensione della scritta */
    }

    .cta-buttonx {
        padding: 0.7rem 1.4rem;
        font-size: 1.2rem; /* Ridotta dimensione font */
    }


    .persuasive-text {
        font-size: 1rem;
        margin: 1.5rem 0;
    }

    .load-more-container {
        margin: 1rem 0;  /* Reduced from 2rem */
    }


    .section-title {
        margin-bottom: 1rem;  /* Reduced from 2rem */
    }

    /* Ensure consistent spacing between sections */
    .results + section {
        margin-top: 1rem;
    }
    
}

@media screen and (max-width: 480px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero {
        padding-top: 120px;
    }


    .result-card {
        height: 150px;
        border-radius: 10px;

    }

    .result-card img {
        height: 150px;
    }

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

    .faq-answer {
        font-size: 0.9rem;
    }

    .faq-item.active .faq-answer {
        padding: 1rem;
        max-height: 300px; /* più basso per mobile */
    }

    .urgency-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Small height devices */
@media screen and (max-height: 600px) {
    .hero {
        min-height: auto;
        padding: 100px 0 2rem;
    }
}

/* Print styles */
@media print {
    .glow-effect,
    .video-wrapper,
    .cta-button,
    .cta-buttonx {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .header {
        position: static;
        border-bottom: 1px solid #000;
        background: none;
        backdrop-filter: none;
    }

    .section-title {
        color: black;
        -webkit-text-fill-color: initial;
    }
}


/* Mobile Navigation Banner */
.mobile-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(45deg, #008C59, #00D68F);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    z-index: 1001; /* Higher than header z-index */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Query for Mobile Devices */
@media screen and (max-width: 768px) {
    .mobile-nav {
        display: block;
    }

    /* Adjust main content to account for mobile nav */
    body {
        padding-top: 40px; /* Height of mobile nav */
    }

    /* Adjust hero section padding */
    .hero {
        padding-top: 40px; /* Reduced padding to account for mobile nav */
    }

    /* Adjust header position when visible */
    .header.scroll-visible {
        top: 40px; /* Push header below mobile nav */
    }

    /* Animation for mobile nav on scroll */
    .mobile-nav {
        transition: transform 0.3s ease;
    }

    .mobile-nav.hidden {
        transform: translateY(-100%);
    }
}

/* Additional responsiveness for very small screens */
@media screen and (max-width: 480px) {
    .mobile-nav {
        font-size: 0.8rem;
        padding: 8px;
    }

    body {
        padding-top: 36px; /* Adjusted for smaller nav height */
    }

    .header.scroll-visible {
        top: 36px;
    }
}