:root {
    --primary: #0066ff;
    --primary-glow: rgba(0, 102, 255, 0.3);
    --dark: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--dark);
    color: #fff;
    line-height: 1.6;
}

/* Header Fisso */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--primary-glow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Effetti Speciali di Background */
.glow-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 30%, var(--primary-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--primary-glow) 0%, transparent 50%);
    opacity: 0.3;
    z-index: -1;
}

/* Container Comune */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Video e Immagini Bordi */
.media-border {
    border: 2px solid rgba(9, 64, 182, 0.3);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(2, 76, 187, 0.3),
        inset 0 0 10px rgba(2, 66, 206, 0.2);
}


/* Hero Video */
.hero .media-border {
    max-width: 800px;
    margin: 2rem auto;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.video-title {
    font-size: 1.1rem;
    font-weight: bold;
    padding: 1rem;
    line-height: 1.4;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Results Section */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.result-card {
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.result-card:hover {
    transform: scale(1.02);
}

.result-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.load-more-container {
    text-align: center;
    margin: 2rem 0;
}

.load-more-btn {
    background: linear-gradient(45deg, var(--primary), #00a2ff);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.load-more-btn.hidden {
    display: none;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Media Queries */
@media (max-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .result-card {
        width: 100%;
        border-radius: 10px;
    }
    
    .result-card img {
        aspect-ratio: 1;
        height: auto;
    }
}

/* For very small screens */
@media (max-width: 380px) {
    .results-grid {
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.5rem;
    background: rgba(0,102,255,0.1);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    height: auto;
}

/* CTA Button */
.cta-buttonx {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary), #00a2ff);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: xx-large;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary), #00a2ff);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    border-color: var(--primary-glow);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

/* Frasi Stimolanti */
.persuasive-text {
    text-align: center;
    margin: 2rem 0;
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.4;
}

.highlight {
    color: var(--primary);
    font-weight: bold;
}

.urgency-badge {
    background: linear-gradient(45deg, #ff4444, #ff0000);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin: 1rem 0;
    font-weight: bold;
    animation: pulse 2s infinite;
}

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

/* Sezioni */
section {
    padding: 2rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

/* Divisore Sezioni */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-glow), transparent);
    margin: 1rem auto;
    width: 80%;
    opacity: 0.5;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    text-align: center;
    opacity: 0.8;
    background: rgba(0,0,0,0.5);
}



.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.benefits-list li {
    background: linear-gradient(45deg, var(--primary), var(--primary-transparent));
    color: white;
    margin: 0;
    padding: 1.8rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideIn 0.5s forwards;
    position: relative;
    border: 1px solid var(--white-transparent);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    transform: translateX(0) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, var(--primary), #00a2ff50);
}

.benefits-list li::before {
    content: "→";
    color: var(--gold);
    font-weight: bold;
    margin-right: 1.5rem;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.benefits-list li:hover::before {
    transform: translateX(5px);
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


@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) {
    .container {
        padding: 0 1rem;
        margin-top: 80px; /* Aggiunto spazio per il navbar fisso */
    }

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

    .hero {
        padding-top: 80px; /* Ridotto il padding superiore */
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        padding-top: 1rem; /* 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;
        font-size: 0.9rem;
    }

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

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        margin-top: 2rem; /* Aggiunto margine superiore */
    }

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

    section {
        padding-top: 2rem; /* Aggiunto padding superiore */
    }
}

@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;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .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;
    }

    .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;
    }
}

.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    cursor: pointer;
    z-index: 1000;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #000;
    overflow: hidden;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-consent-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 1000;
}

.audio-consent-content {
    background: rgba(26, 26, 26, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 280px; /* Ridotto per mobile */
    border: 2px solid #00a2ff;
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.3);
    animation: pulse 2s infinite;
}

@media (min-width: 768px) {
    .audio-consent-content {
        padding: 2rem;
        max-width: 400px;
    }
}

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

.audio-consent-content p {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
    .audio-consent-content p {
        margin-bottom: 1.5rem;
        font-size: 1.2rem;
    }
}

.enable-audio-btn {
    background: #00a2ff;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .enable-audio-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

.enable-audio-btn:hover {
    background: #0081cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 162, 255, 0.4);
}

.hide {
    display: none !important;
}

/* Pulsante Play/Pause */
.play-pause-btn {
    background: transparent;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.play-pause-btn:hover {
    opacity: 1;
}

/* Tempo del video */
.video-time {
    color: white;
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
}

@media (max-width: 768px) {
    .video-controls {
        padding: 8px;
    }
    
    .play-pause-btn {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    
    .video-time {
        font-size: 0.8rem;
        min-width: 80px;
    }
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .video-controls {
    opacity: 1;
}

/* Timeline del video */
.video-timeline {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    position: relative;
    border-radius: 2px;
}

.video-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}

.benefits-list li:nth-child(1) { animation-delay: 0.1s; }
.benefits-list li:nth-child(2) { animation-delay: 0.2s; }
.benefits-list li:nth-child(3) { animation-delay: 0.3s; }
.benefits-list li:nth-child(4) { animation-delay: 0.4s; }
.benefits-list li:nth-child(5) { animation-delay: 0.5s; }
