/* Stili di base per la tua polisportiva */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f0f0f0;
}

header {
    text-align: center;
    background-color: #003f8a;
    color: white;
    padding-bottom: 10px;
}

header img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Immagine responsive */
@media (max-width: 768px) {
    header img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    header img {
        height: 180px;
    }
}

/* NAVBAR */
nav {
    background-color: #e2001a;
}

nav .menu-toggle {
    display: none;
    background-color: #e2001a;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    text-align: left;
}

/* Menu orizzontale */
nav ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-color: #e2001a;
}

nav ul.menu li {
    position: relative;
}

nav ul.menu li a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

nav ul.menu li:hover {
    background-color: #8B0000;
}

/* Dropdown */
nav ul.dropdown-content {
    display: none;
    position: absolute;
    background-color: #8B0000;
    list-style: none;
    margin: 0;
    padding: 0;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 160px;
}

nav ul.dropdown-content li a {
    padding: 10px 15px;
    color: white;
}

nav ul.dropdown-content li a:hover {
    background-color: #a00000;
}

/* Mostra dropdown su click */
nav ul.dropdown-content.show {
    display: block;
}

/* MOBILE - Menu verticale */
@media screen and (max-width: 768px) {
    nav .menu-toggle {
        display: block;
    }

    nav ul.menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul.menu.show {
        display: flex;
    }

    nav ul.menu li {
        width: 100%;
    }

    nav ul.dropdown-content {
        position: static;
        width: 100%;
    }
}

/* FOOTER */
footer {
    background-color: #003f8a;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    padding: 0 10px;
    border-right: 1px solid white;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.footer-links a:last-child {
    border-right: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Stili per le pagine html collegate a base_pubblico.html */

    .container {
        max-width: 900px;
        margin: auto;
        background: #fff;
        padding: 20px 30px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    h1, h2 {
        color: #2c3e50;
        text-align: center;
        margin-bottom: 20px;
    }
    .section {
        margin-bottom: 30px;
        padding: 20px;
        background-color: #f8f8f8;
        border-radius: 8px;
        border: 1px solid #ddd;
    }
    .image-group {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        margin-top: 20px;
    }
    .image-group img {
        max-width: 100%;
        height: auto;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .header-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding: 10px 20px;
        background-color: #fff;
        border-radius: 8px;
    }
    .logo-link,
    .instagram-link {
        flex: 0 0 auto;
    }

    .instagram-link {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-right: 30px; /* aggiunto margine per evitare schiacciamento a dx */
    }


    .logo-link img {
        width: 150px;
        height: 150px;
        border-radius: 10%;
    }
    .instagram-link img {
        height: 60px;
        width: auto;
    }
    
    .instagram-link p {
        margin: 0;
        font-size: 14px;
    }
    .maestro-section {
            display: flex;
            align-items: flex-start;
            gap: 20px;
            flex-wrap: wrap;
        }
        .maestro-section img {
            width: 200px; /* Adjust as needed */
            height: auto;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .maestro-bio {
            flex: 1;
        }
        .maestro-bio img {
             width: 500px; /* Adjust as needed */
             height: auto;
             margin-right: 15px;
             float: left; /* To wrap text around image */
             margin-bottom: 10px;
        }


        /* Clearfix for float */
        .maestro-bio::after {
            content: "";
            display: table;
            clear: both;
        }
