/* 
 * Estrazioni del Lotto - Foglio di stile principale
 * Autore: Manus
 * Data: Marzo 2025
 */

/* ===== RESET E STILI DI BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #212121;
    background-color: #f5f5f5;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a237e;
}

a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffc107;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== HEADER ===== */
.header {
    background-color: #283593;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 1.5rem;
}

.nav-list a {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    color: #ffc107;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffc107;
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

/* ===== BANNER ===== */
.banner {
    background: linear-gradient(to right, #1a237e, #3949ab);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.banner-content h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== SEZIONI PRINCIPALI ===== */
.section {
    margin-bottom: 3rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.section-header {
    background-color: #1a237e;
    color: #fff;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
}

.section-header h2 {
    color: #fff;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.section-header h2 i {
    margin-right: 0.5rem;
}

/* ===== ESTRAZIONI DEL LOTTO ===== */
.estrazioni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.estrazione-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.estrazione-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.estrazione-header {
    background-color: #e0e0e0;
    padding: 1rem;
    text-align: center;
}

.estrazione-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.estrazione-body {
    padding: 1rem;
}

.estrazione-table {
    width: 100%;
    border-collapse: collapse;
}

.estrazione-table th,
.estrazione-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.estrazione-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

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

.numeri-estratti {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: #1a237e;
    color: #fff;
    border-radius: 50%;
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.numero:hover {
    transform: scale(1.1);
    background-color: #ffc107;
    color: #212121;
}

/* ===== SUPERENALOTTO ===== */
.superenalotto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.superenalotto-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.superenalotto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.superenalotto-header {
    background-color: #e0e0e0;
    padding: 1rem;
    text-align: center;
}

.superenalotto-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.superenalotto-body {
    padding: 1.5rem;
}

.superenalotto-numeri {
    text-align: center;
}

.numeri-principali {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.numero-super {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #ffc107;
    color: #212121;
    border-radius: 50%;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.numero-super:hover {
    transform: scale(1.1);
    background-color: #1a237e;
    color: #fff;
}

.numeri-speciali {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.jolly, .superstar {
    text-align: center;
}

.label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #757575;
}

.numero-jolly {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #4caf50;
    color: #fff;
    border-radius: 50%;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.numero-superstar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #f44336;
    color: #fff;
    border-radius: 50%;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.numero-jolly:hover,
.numero-superstar:hover {
    transform: scale(1.1);
}

/* ===== 10 E LOTTO ===== */
.dieci-lotto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.dieci-lotto-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dieci-lotto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dieci-lotto-header {
    background-color: #e0e0e0;
    padding: 1rem;
    text-align: center;
}

.dieci-lotto-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.dieci-lotto-body {
    padding: 1.5rem;
}

.dieci-lotto-numeri {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.numero-dieci {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: #3949ab;
    color: #fff;
    border-radius: 50%;
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.numero-dieci:hover {
    transform: scale(1.1);
    background-color: #ffc107;
    color: #212121;
}

/* ===== ARCHIVI ===== */
.archivi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.archivi-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.archivi-header {
    background-color: #e0e0e0;
    padding: 1rem;
}

.archivi-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.archivi-header p {
    font-size: 0.9rem;
    color: #757575;
}

.archivi-body {
    padding: 1rem;
}

.archivio-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.archivio-item:last-child {
    border-bottom: none;
}

.archivio-icon {
    font-size: 2rem;
    color: #1a237e;
    margin-right: 1rem;
}

.archivio-info {
    flex: 1;
}

.archivio-info h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.btn-download {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #1a237e;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-download:hover {
    background-color: #ffc107;
    color: #212121;
}

.btn-download i {
    margin-right: 0.5rem;
}

/* ===== SISTEMI ===== */
.sistemi-grid {
    padding: 1.5rem;
}

.sistemi-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sistemi-header {
    background-color: #e0e0e0;
    padding: 1rem;
}

.sistemi-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.sistemi-body {
    padding: 1.5rem;
}

.sistema-descrizione {
    font-weight: 500;
    margin-bottom: 1rem;
}

.sistema-info {
    margin-bottom: 1rem;
}

.sistema-validita {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #757575;
}

.sistema-tabella {
    overflow-x: auto;
}

.sistema-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.sistema-table th,
.sistema-table td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.sistema-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.sistema-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #283593;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #e0e0e0;
}

.footer-links h3,
.footer-contact h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffc107;
}

.footer-links i,
.footer-contact i {
    margin-right: 0.5rem;
}

.footer-contact p {
    margin-bottom: 1rem;
}

.footer-contact a {
    color: #e0e0e0;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #ffc107;
    color: #212121;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1024px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: #283593;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        transition: height 0.3s ease;
        z-index: 999;
    }
    
    .nav-list.active {
        height: calc(100vh - 60px);
        padding: 1rem 0;
    }
    
    .nav-list li {
        margin: 1rem 0;
    }
    
    .banner {
        padding: 2rem 0;
    }
    
    .banner-content h2 {
        font-size: 1.8rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .banner-content h2 {
        font-size: 1.5rem;
    }
    
    .estrazione-table th,
    .estrazione-table td {
        padding: 0.3rem;
    }
    
    .numero,
    .numero-dieci {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.9rem;
    }
    
    .numero-super,
    .numero-jolly,
    .numero-superstar {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1rem;
    }
    
    .archivio-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .archivio-icon {
        margin-bottom: 0.5rem;
    }
}

/* ===== ANIMAZIONI ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.5s ease-out;
}

/* ===== JAVASCRIPT CLASSES ===== */
.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(0, 6px);
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(0, -6px);
}
