:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-header: rgba(15, 23, 42, 0.95);
    --primary: #38bdf8;

    --secondary: #818cf8;

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

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

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

.btn-full {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
}

.btn-full:hover {
    opacity: 0.9;
}


#age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    z-index: 9999;
    display: none;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

.age-gate-content {
    max-width: 600px;
    animation: fadeIn 0.5s ease;
}

.age-gate-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.disclaimer-small {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 40px;
}


header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    border-bottom: 1px solid #334155;
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

.header-static {
    position: relative;
    margin-bottom: 40px;
}


.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--text-main);
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-auth {
    display: flex;
    gap: 15px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}


.hero {
    height: 90vh;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)), url('../img/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--primary);
}


.info-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #334155;
    margin-bottom: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.list-check li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-check li::before {
    content: '✔';
    color: var(--primary);
}

.list-cross li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.list-cross li::before {
    content: '✖';
    color: var(--danger);
}


.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -10px;
    right: 10px;
}

.game-card {
    background: var(--bg-card);
    border-left: 4px solid var(--primary);
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 0 12px 12px 0;
}

.game-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary);
}


.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 80px;
}

.card-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    border: 1px solid #334155;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #fff;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}


.hero-simple {
    padding: 60px 0;
    margin-top: 60px;
    text-align: center;
    background: linear-gradient(to bottom, #1e293b, #0f172a);
}

.highlight-box {
    background: rgba(239, 68, 68, 0.1);
    border-left: 5px solid var(--danger);
    padding: 20px;
    margin: 30px 0;
}

.warning-banner {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.8rem;
}


@media (max-width: 768px) {

    .nav-links,
    .nav-auth {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .grid-2,
    .form-row {
        grid-template-columns: 1fr;
    }

    .mobile-menu-active .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 20px;
        border-bottom: 1px solid #334155;
    }

    .mobile-menu-active .nav-auth {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 300px;
        left: 0;
        width: 100%;
        padding: 0 20px 20px 20px;
        background: var(--bg-card);
    }
}

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

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




.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.result-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 25px;
}

.result-header {
    border-bottom: 1px solid #334155;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.result-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

.result-header span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lotto-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px dashed #334155;
    padding-bottom: 5px;
}

.lotto-row span:first-child {
    font-weight: 600;
    width: 80px;
}

.numbers {
    display: flex;
    gap: 5px;
}

.ball {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: 700;
    font-size: 0.9rem;
}

.ball.super {
    background: #f59e0b;
    color: #000;
}

.super-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.super-extras {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.check-link {
    display: block;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    margin-top: 15px;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px 20px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-item .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-item h4 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}


.app-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.app-text {
    flex: 1;
}

.app-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .app-content {
        flex-direction: column;
        text-align: center;
    }

    .app-buttons {
        justify-content: center;
    }

    .lotto-row {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .lotto-row span:first-child {
        width: auto;
    }
}



.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card);

    border: 1px solid #334155;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);

}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    line-height: 1;
}


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

    color: var(--danger);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(0, 0, 0, 0.2);

}

.faq-answer p {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-text h2 {
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 10px;
}

.legal-text h3 {
    color: var(--text-main);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.legal-text p {
    margin-bottom: 15px;
    color: #cbd5e1;
    text-align: justify;
}

.legal-text ul {
    list-style: disc;
    padding-left: 20px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.legal-text li {
    margin-bottom: 8px;
}

.last-update {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: -10px;
    margin-bottom: 40px;
    font-style: italic;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    padding: 15px;
    border: 1px solid #334155;
    text-align: left;
    vertical-align: top;
    color: #cbd5e1;
}

.cookie-table th {
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    font-weight: 700;
}

.cookie-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

@media (max-width: 600px) {
    .cookie-table {
        display: block;
        overflow-x: auto;
    }
}

.cookie-banner {
    position: fixed;
    bottom: -100%;
    /* Nascondi inizialmente */
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.98);
    /* var(--bg-dark) molto opaco */
    border-top: 1px solid var(--primary);
    padding: 20px;
    z-index: 9000;
    /* Sotto l'Age Gate (9999) ma sopra il resto */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    transition: bottom 0.5s ease-out;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    flex: 1;
    min-width: 300px;
}

.cookie-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #334155;
    animation: fadeIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #334155;
    padding-bottom: 15px;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 0.5;
}

.close-modal:hover {
    color: #fff;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #334155;
}

.option-info strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 5px;
}

.option-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 300px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

input:disabled+.slider {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: left;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .cookie-buttons .btn {
        flex: 1;
    }
}


.site-footer-legal {
    background: #020617;
    color: #e5e7eb;
    font-size: 16px;
    text-align: center;
    line-height: 1.6;
    padding: 24px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.site-footer-legal .legal-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.site-footer-legal .legal-text p {
    margin: 0 0 8px;
    text-align: center;
}

.site-footer-legal .legal-text p:last-child {
    margin-bottom: 0;
}

.site-footer-legal strong {
    color: #ffffff;
    font-weight: 600;
}

.site-footer-legal .legal-logos {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 12px;
    align-items: center;
}

.site-footer-legal .legal-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
}

.site-footer-legal .legal-logo-link img {
    height: 60px;
    transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.site-footer-legal .legal-logo-link:hover img {
    opacity: 1;
    filter: none;
    transform: translateY(-1px);
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
    margin: 25px auto;
}

@media (max-width: 600px) {
    .site-footer-legal {
        text-align: left;
    }

    .site-footer-legal .legal-logos {
        justify-content: center;
    }
}