body {
    margin: 0;
    font-family: "Panton", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fff;
    position: relative;
    min-height: 100vh;
}

/* Logo centrato e sfocato come sfondo */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("/HomePage/img/logo.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 60vmin;
    filter: blur(8px) saturate(110%);
    opacity: 0.10;
    z-index: -2;
    pointer-events: none;
}

/* Dark overlay to improve contrast */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: -1;
    pointer-events: none;
}

/* NAVBAR */
.navbar {
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.116);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 42px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    transition: 0.25s ease;
}

.nav-links a:hover {
    background: rgba(0,0,0,0.45);
    border-color: rgba(255,255,255,0.35);
}

.nav-links .active {
    background: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.5);
}

/* Responsive tweaks for navbar */
@media (max-width: 800px) {
    .navbar {
        padding: 18px 28px;
    }
    .nav-links {
        gap: 14px;
    }
    .nav-logo {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .navbar {
        padding: 12px 14px;
    }
}

/* HEADER */
.header {
    text-align: center;
    margin-top: 120px;
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #ccc;
    font-size: 1.1rem;
}

/* REGOLE */
.rules-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.rule-box {
    background: rgba(255,255,255,0.06);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
}

.rule-box h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.rule-box ul {
    margin: 0;
    padding-left: 20px;
}

.rule-box li {
    margin-bottom: 8px;
    color: #ddd;
}
