/* Lotto 081 — stile condiviso da tutte le pagine (colori, sfondo, barra di navigazione, piè di pagina). */

:root {
    --bg-1: #1a0533;
    --bg-2: #2d1b69;
    --bg-3: #1e1145;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #1a1a2e;
    --text-body: #4a4a6a;
    --text-muted: #8888aa;
    --text-white: #ffffff;
    --orange: #FF9900;
    --orange-hover: #FFB040;
    --green: #27ae60;
    --green-light: #4ade80;
    --red: #e74c3c;
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --gold: #ffd700;
    --pink: #ec4899;
    --blue: #3b82f6;
    --cyan: #00d4aa;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 40%, var(--bg-3) 100%);
    background-attachment: fixed;
    color: var(--text-white);
    overflow-x: hidden;
}

/* Aloni di sfondo */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    z-index: 0;
}
body::before {
    width: 400px; height: 400px;
    background: rgba(124, 58, 237, 0.25);
    top: -100px; left: -100px;
}
body::after {
    width: 500px; height: 500px;
    background: rgba(236, 72, 153, 0.15);
    bottom: -150px; right: -150px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 1.5rem; position: relative; z-index: 1; }

/* ── Barra di navigazione ── */
.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 60px;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    z-index: 100;
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text-white); }
.nav-logo {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--gold));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800;
}
.nav-name { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 0.3rem; align-items: center; }
.nav-link {
    color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 0.88rem; font-weight: 500;
    padding: 0.5rem 1rem; border-radius: 30px; transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav-cta {
    background: var(--orange); color: #fff; font-weight: 600; border: none;
    padding: 0.55rem 1.3rem; border-radius: 30px; font-size: 0.88rem;
    text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--orange-hover); transform: scale(1.03); }

/* Pulsante del menu: visibile solo su schermi stretti */
.nav-toggle {
    display: none;
    width: 40px; height: 40px; border-radius: 12px;
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer;
    align-items: center; justify-content: center;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.1); }

/* ── Intestazione di pagina ── */
.page-header { text-align: center; padding: 1rem 0 2rem; }
.page-title { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 0.3rem; }
.page-title span { color: var(--orange); }
.page-sub { color: rgba(255, 255, 255, 0.5); font-size: 0.95rem; }

/* ── Avviso (dati non disponibili o non aggiornati) ── */
.avviso {
    display: none;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 14px;
    padding: 1rem 1.3rem;
    margin-bottom: 1.5rem;
    color: #ff8a7a;
    font-size: 0.85rem;
    line-height: 1.5;
}
.avviso.visibile { display: block; }
.avviso.giallo { background: rgba(255, 153, 0, 0.1); border-color: rgba(255, 153, 0, 0.35); color: #ffc266; }

/* ── Caricamento ── */
.loader-wrap { padding: 3rem; text-align: center; color: rgba(255, 255, 255, 0.4); }
.loader-dots { display: inline-flex; gap: 6px; }
.loader-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: bounce 1.2s infinite; }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }

/* ── Piè di pagina ── */
.footer {
    text-align: center; margin-top: 2rem; padding: 1.5rem 0;
    color: rgba(255, 255, 255, 0.4); font-size: 0.78rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-white); }
.footer-links { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.footer-link { color: rgba(255, 255, 255, 0.5); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-link:hover { color: var(--orange); }

/* ── Telefono ── */
@media (max-width: 768px) {
    .container { padding: 1rem; }
    .nav-name { font-size: 1.05rem; }
}

/* ── Menu a scomparsa: telefono e tablet (sotto i 1120px le sette voci non stanno su una riga) ── */
@media (max-width: 1120px) {
    .navbar { padding: 0.5rem 0.8rem; border-radius: 16px; flex-wrap: wrap; }
    .nav-cta { margin-left: auto; margin-right: 0.5rem; padding: 0.5rem 0.9rem; font-size: 0.8rem; }
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none;
        order: 10;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding-top: 0.6rem;
    }
    .navbar.open .nav-links { display: flex; }
    .nav-link { padding: 0.75rem 1rem; font-size: 0.95rem; border-radius: 12px; }
}
