/* =========================================
   VARIABILI CSS
   ========================================= */
:root {
    --bg-dark: #070913; /* Sfondo principale scuro */
    --bg-footer: #030408; /* Sfondo footer ancora più scuro */
    --color-primary: #ff9100; /* Arancione per i bottoni */
    --color-primary-hover: #e07d00;
    --color-card-blue: #2c33a2; /* Blu per le card */
    --color-card-blue-light: #3a41c6; /* Blu per card recensioni */
    --text-light: #ffffff;
    --text-dark: #1f2937;
    --text-gray: #d1d5db;
    
    /* Stat Colors */
    --stat-yellow: #facc15;
    --stat-purple: #8b5cf6;
    --stat-red: #ef4444;

    --font-main: 'Montserrat', sans-serif;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-pill: 50px;
    --transition-speed: 0.3s;
}

/* =========================================
   RESET E IMPOSTAZIONI BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.accent-text {
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 800; }
h3 { font-size: 1.8rem; font-weight: 700; }

p { margin-bottom: 20px; }

/* =========================================
   BOTTONI
   ========================================= */
.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 145, 0, 0.4);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 13px 30px;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    transition: all var(--transition-speed);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--text-light);
}

.btn-amazon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* =========================================
   HEADER & NAV
   ========================================= */
.main-header {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    background-color: #333; /* Placeholder visuale se manca img */
    border-radius: 5px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.main-nav a:hover { color: var(--color-primary); }

.lang-flag {
    height: 15px;
    width: 20px;
    background-color: #ccc; /* Placeholder bandiera */
}

.btn-top-bonus {
    background-color: var(--text-light);
    color: var(--color-primary);
    padding: 10px 20px;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
}

.btn-top-bonus:hover { background-color: #f3f4f6; }

/* =========================================
   SEZIONI GENERALI (Layout e Sfondi)
   ========================================= */
.dark-bg { background-color: var(--bg-dark); }
.light-bg { padding: 80px 0; } /* Sfondo contenitore dark, le card dentro saranno bianche */

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    padding: 150px 0 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    background-color: #1a1f3c; /* Placeholder */
    min-height: 400px; /* Placeholder area */
}

/* =========================================
   WHY WORKS SECTION (Card Bianca)
   ========================================= */
.why-works-section .container {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-radius: var(--border-radius-lg);
    padding: 60px;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-grid.reverse {
    direction: rtl; /* Inverte l'ordine visivo */
}
.split-grid.reverse > * {
    direction: ltr; /* Ripristina testo */
}

.image-content img {
    border-radius: var(--border-radius-lg);
    width: 100%;
    min-height: 300px;
    background-color: #e5e7eb; /* Placeholder */
}

/* =========================================
   WHAT YOU FIND SECTION
   ========================================= */
.what-you-find-section { padding: 80px 0; }

/* =========================================
   DEEP DIVE & FEATURES GRID
   ========================================= */
.deep-dive-section { padding: 60px 0; }

.white-box {
    background-color: var(--text-light);
    color: var(--text-dark);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 40px;
}

.white-box h2 {
    color: var(--color-card-blue); /* Titolo blu per staccare */
}

.button-group {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--color-card-blue);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card.image-bg {
    padding: 0;
    min-height: 250px;
}

.feature-card.image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #555; /* Placeholder */
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(44, 51, 162, 1) 0%, rgba(44, 51, 162, 0) 100%);
    z-index: 2;
}

/* =========================================
   STATS SECTION
   ========================================= */
.stats-section .container {
    background-color: var(--text-light);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    color: var(--text-dark);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.stat-circle.yellow { background-color: var(--stat-yellow); }
.stat-circle.purple { background-color: var(--stat-purple); }
.stat-circle.red { background-color: var(--stat-red); }

.stat-text h4 { margin-bottom: 5px; font-size: 1.1rem; }
.stat-text p { margin-bottom: 0; font-size: 0.9rem; color: #4b5563; }

/* =========================================
   REVIEWS SECTION
   ========================================= */
.reviews-section { padding: 80px 0; }

.reviews-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background-color: var(--color-card-blue-light);
    padding: 40px 30px;
    border-radius: var(--border-radius-md);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    font-family: serif;
}

.review-card h4 { margin-bottom: 15px; }
.review-card p { font-size: 0.9rem; margin-bottom: 20px; }
.stars { color: var(--stat-yellow); letter-spacing: 2px; }

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-section .container {
    background-color: var(--text-light);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    color: var(--text-dark);
}

.split-grid-faq {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.accordion-item {
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: none;
    border: none;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header .icon {
    background-color: var(--color-primary);
    color: var(--text-light);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: transform var(--transition-speed);
}

/* Classi dinamiche per JS */
.accordion-header.active .icon { transform: rotate(45deg); }

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content p { padding-bottom: 20px; color: #4b5563; }

/* =========================================
   FOOTER CTA & FOOTER
   ========================================= */
.footer-cta-section {
    background-color: var(--bg-footer);
    padding: 100px 0;
}

.footer-logo {
    margin: 0 auto 30px;
    height: 60px;
    background-color: #333; /* Placeholder */
}

.main-footer {
    background-color: var(--color-card-blue);
    padding: 40px 0 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
}

.social-links { display: flex; gap: 15px; }
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-nav {
    display: flex;
    gap: 30px;
    align-items: center;
    font-size: 0.9rem;
}

.lang-flag-small { width: 20px; height: 15px; background: #ccc;}

.copyright-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* =========================================
   COOKIE BANNER (Stile USA)
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    color: var(--text-dark);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.show { transform: translateY(0); }

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p { margin: 0; font-size: 0.9rem; }
.cookie-content a { color: var(--color-primary); text-decoration: underline; }

.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

.btn-cookie-primary {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-cookie-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* =========================================
   RESPONSIVE (Mobile & Tablet)
   ========================================= */
@media (max-width: 992px) {
    .hero-grid, .split-grid, .split-grid-faq {
        grid-template-columns: 1fr;
    }
    
    .features-grid, .stats-container, .reviews-grid {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    
    .main-nav { display: none; } /* Su mobile andrebbe un menu hamburger, per ora lo nascondiamo per semplicità */
    .button-group { flex-direction: column; }
    .cookie-content { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .why-works-section .container, .white-box, .faq-section .container {
        padding: 30px 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}