:root {
    --bg-dark: #0a0f24;
    --accent: #0161EA;
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-dim: #b8c2d9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    text-align: center;
}

/* HEADER GLOBALE */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 14, 19, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 42px;
    width: auto;
}

.brand {
    font-weight: 800;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: auto;
}

.nav a {
    text-decoration: none;
    color: var(--text-dim);
    transition: 0.3s;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 10px;
}

.nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

/* LINK ATTIVO (PAGINA CORRENTE) */
.nav a.active {
    color: white;
    background: rgba(255, 255, 255, 0.12); /* Leggermente più visibile del semplice hover */
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--accent); /* Opzionale: aggiunge una linetta blu sotto il link */
    border-radius: 10px 10px 0 0; /* Opzionale: arrotonda solo sopra se usi la linetta */
}

/* BOTTONE PLAY */
.btn-play {
    background: var(--accent);
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(1, 97, 234, 0.3);
    transition: 0.3s;
}

.btn-play:hover {
    transform: scale(1.05);
    background: #0a3ea3;
}

/* LE PAGINE HANNO UN OGGETTO <main> DI CLASSE main-container 
CHE CONTIENE LA PARTE PRINCIPALE (o l'inizio) DELLA PAGINA */
.main-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; padding: 15px; }
    .nav { flex-wrap: wrap; justify-content: center; width: 100%; }
}