:root {

    --primary-color: #003366;
    --primary-light: #004d99;
    --primary-dark: #002244;

    --accent-red: #d32f2f;
    --accent-red-hover: #b71c1c;

    --bg-body: #f8f9fa;
    --bg-card: #ffffff;

    --text-main: #2c3e50;
    --text-muted: #6c757d;

    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    --radius: 8px;
    --header-height: 80px;
}


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

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

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


header {
    background-color: var(--bg-card);
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.logos {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logos img {
    height: 40px;
}

.logo-box {
    background: #e2e6ea;
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.adm-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    line-height: 1.4;
}

.adm-info strong {
    color: var(--accent-red);
    font-weight: 600;
}


.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.main-menu ul {
    display: flex;
    gap: 30px;
}

.main-menu a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.main-menu a:hover,
.main-menu a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}


.btn-registrati {
    background: linear-gradient(135deg, var(--accent-red) 0%, #b71c1c 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(211, 47, 47, 0.3);
    transition: all 0.3s ease;
}

.btn-registrati:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(211, 47, 47, 0.4);
}


main {
    flex: 1;
    padding: 40px 0;
}

h1,
h2,
h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}


.hero {
    background: linear-gradient(to bottom, #ffffff 0%, #f1f5f9 100%);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 50px;
}

.hero h1 {
    margin-bottom: 20px;
}

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


.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}


.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.card h3 {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
}

.card p {
    margin-top: 15px;
    color: var(--text-main);
    font-size: 1rem;
}

.card-footer {
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer a {
    font-weight: 600;
    font-size: 0.9rem;
}


table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 16px;
    letter-spacing: 0.5px;
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    text-align: center;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #f1f5f9;
}


form {
    max-width: 650px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.15);
}


footer {
    background-color: #f1f3f5;
    padding: 60px 0 30px 0;
    border-top: 4px solid var(--primary-color);
    color: var(--text-main);
    font-size: 0.9rem;
}

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

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.footer-col img {
    height: 40px;
}

.footer-col p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 34, 68, 0.85);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    text-align: center;
    border-top: 6px solid var(--accent-red);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

.age-check {
    margin: 25px 0;
    padding: 15px;
    background: #fff5f5;
    border-radius: 6px;
    border: 1px solid #ffcdd2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.age-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-red);
    cursor: pointer;
}

.btn-confirm {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-confirm:hover {
    background-color: var(--primary-light);
}

.btn-cancel {
    background: transparent;
    border: 1px solid #ced4da;
    color: var(--text-muted);
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 10px;
    font-weight: 500;
}

.btn-cancel:hover {
    background: #f8f9fa;
    color: var(--text-main);
}

.error-msg {
    color: var(--accent-red);
    font-weight: 600;
    background: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    display: none;
}


.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

@media (max-width: 850px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .adm-info {
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .main-menu ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        padding: 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }

    .main-menu ul.show {
        display: flex;
    }

    .main-menu ul li {
        width: 100%;
        text-align: center;
    }

    .main-menu a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .nav-bar {
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .btn-registrati {
        margin-left: auto;
    }
}

.latest-draw-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.draw-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.draw-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

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

.lotto-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.2);
}

.ball-super {
    background: #FFD700;
    color: #333;
    border: 2px solid #e6c200;
}

.ball-jolly {
    background: #d32f2f;
    color: white;
    border: 2px solid #b71c1c;
}

.ball-superstar {
    background: #003366;
    color: white;
    border: 2px solid #002244;
}

.ball-lotto {
    background: #fff;
    color: #333;
    border: 2px solid #333;
}

.info-box {
    background-color: #f1f8ff;
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-top: 30px;
}

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

.step-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.step-number {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    opacity: 0.2;
    line-height: 1;
}

.content-block {
    margin-bottom: 40px;
}

.warning-box {
    background-color: #fff5f5;
    border-left: 5px solid var(--accent-red);
    padding: 25px;
    border-radius: 4px;
    margin-top: 20px;
}

.help-box {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
    box-shadow: var(--shadow-md);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    background: white;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.mission-text {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.value-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.corporate-data-box {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.data-list dt {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 15px;
}

.data-list dd {
    margin-bottom: 5px;
    color: #333;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

.info-panel {
    background: white;
    padding: 0 10px;
}

.contact-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    background: #e3f2fd;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.contact-text p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.helpline-box {
    background-color: #fff5f5;
    border: 1px solid #ffcdd2;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.helpline-box h4 {
    color: var(--accent-red);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}


@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.probability-section {
    margin-bottom: 50px;
}

.math-note {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.data-table th {
    background-color: #f1f3f5;
    color: var(--primary-dark);
    border-bottom: 2px solid #dee2e6;
}

.data-table td {
    font-family: 'Consolas', 'Monaco', monospace;
}

.odds-high {
    color: var(--accent-red);
    font-weight: bold;
}

.legal-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

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

.legal-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: #444;
}

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

.highlight-box {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 20px 0;
    font-size: 0.95rem;
}

.last-update {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 20px;
    font-style: italic;
}

.legal-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.legal-content h2 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-top: 35px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    color: #444;
    text-align: justify;
    margin-bottom: 12px;
}

.legal-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.highlight-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 25px 0;
    font-size: 0.95rem;
    color: #856404;
}

.alert-box {
    background-color: #f8d7da;
    border-left: 4px solid var(--accent-red);
    padding: 15px;
    margin: 25px 0;
    color: #721c24;
}

.last-update {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 20px;
    font-style: italic;
}