
    body {
        margin: 0;
        font-family: 'Roboto', Arial, sans-serif;
        background-color: #111;
        color: #f0f0f0;

    }

    a { text-decoration: none; transition: color 0.3s; }

    /* HEADER */
    header {
        background-color: #bd0000;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        padding: 15px 30px;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }
    header img { height: 60px; justify-self: start; }
    header h1 {
        margin: 0;
        font-size: 2rem;
        color: #fff;
        font-weight: 800;
        letter-spacing: 1px;
        text-align: center;
        justify-self: center;
    }
    nav { justify-self: end; }
    nav a { color: #fff; margin-left: 25px; font-weight: bold; }
    nav a:hover { color: #ffdd00; }

    /* TITOLO */
    h2 {
        text-align: center;
        font-size: 2.4rem;
        margin-top: 80px;
        margin-bottom: 30px;
        color: #ffdd00;
        font-weight: 900;
    }

.rule {
    background-color: #5C1414;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px #ff0000;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .rule h3 {
        margin-top: 0;
        color: #ff5e00;
        font-size: 1.4rem;
    }

    .rule ul {
        margin: 10px 0 0 20px;
    }

    .rule li {
        margin-bottom: 8px;
    }

    .rule:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 25px #ff3c3c;
    }

    
    .box {
        width: 800px;
        padding: 25px;
        background-color: #4A0F0F;
        /* box-shadow: 0 0 20px #bd0000; */
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin: 0 auto;
        border-radius: 12px;
    }


    footer {
        background-color: #111;
        padding: 25px 20px;
        text-align: center;
        color: #888;
        font-size: 0.9em;
        border-top: 1px solid #333;
        margin-top: 40px;
    }

    /* MEDIA QUERY PER TELEFONI */
@media (max-width: 800px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
    }

    header h1 {
        font-size: 1.5rem;
        margin: 10px 0;
    }

    nav {
        margin-top: 10px;
    }

    nav a {
        margin: 0 10px;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-top: 50px;
    }

    .rule {
        width: 95%;
        padding: 12px 15px;
    }

    .desc {
        font-size: 0.9rem;
    }

    footer {
        font-size: 0.8rem;
        padding: 15px 10px;
    }
}
