@font-face {
    font-family: 'Mont';
    src: url('fonts/Mont-HeavyDEMO.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    background-color: black;
    color: white;
    font-family: "Mont", Arial, sans-serif;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    background-color: black;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav-animation {
    opacity: 0;
    /* Il menù parte invisibile */
    visibility: hidden;
    /* Il menù è nascosto inizialmente */
    animation: fadeInContent 1.5s ease-out forwards;
    animation-delay: 3s;
    /* Ritardo per sincronizzare con la dissolvenza del logo */
}


@keyframes fadeInContent {
    0% {
        opacity: 0;
        visibility: hidden;
    }

    100% {
        opacity: 1;
        visibility: visible;
    }
}

.navbar .logo img {
    max-width: 100px;
    height: auto;
    margin-left: 70px;
}

.menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-end;
    flex-grow: 1;
    margin-right: 160px;
}

.menu li {
    position: relative;
    margin: 0 5px;
}

.menu li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.menu li a:hover {
    background-color: #333;
}

.submenu-items {
    display: none;
    /* Nascondi il sottomenu di default */
    background-color: #333;
    border-radius: 15px;
    /* Aggiungi bordi tondi */
    padding: 0;
    /* Rimuovi il padding per un hover completo */
    list-style: none;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 150px;
    /* Riduci la larghezza */
    border: 1px solid white;
    overflow: hidden;
}

.submenu.active .submenu-items {
    display: block;
    /* Mostra il sottomenu quando il genitore ha la classe active */
}

.submenu-items li {
    padding: 0;
    margin: 0;
}

.submenu-items li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 0;
}

.submenu-items li a:hover {
    background-color: #555;
}


.content {
    position: relative;
    z-index: 1;
    padding: 50px;
    text-align: center;
    margin-top: 100px;
    opacity: 1;
    /* Set opacity to 1 */
    animation: none;
    /* Remove animation */
}

.index-content {
    position: relative;
    z-index: 1;
    padding: 50px;
    text-align: center;
    margin-top: 100px;
    opacity: 0;
    /* The content starts invisible */
    animation: fadeInContent 1.5s ease-out forwards;
    animation-delay: 3s;
    /* Delay to synchronize with the logo fade-out */
}

.artist span,
.contact span {
    color: white;
    font-size: 18px;
}

.logo-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    animation: fadeOut 1s ease-out forwards;
    animation-delay: 1.5s;
    /* Ritardo di 1.5 secondi prima di iniziare il fade out */
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.logo-animation img {
    max-width: 20%;
    height: auto;
}



@media screen and (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 5%;
        width: 90%;
        background-color: #111;
        border: 1px solid #333;
        border-radius: 15px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
        overflow: hidden;
        margin-top: 10px;
    }

    .menu li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #222;
    }

    .menu li:last-child {
        border-bottom: none;
    }

    .menu li a {
        font-size: 19px;
        padding: 15px 20px;
        border-radius: 0;
    }

    .menu li a:hover {
        background-color: #222;
    }

    .menu.active {
        display: flex;
    }

    .submenu-items {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #222;
        border: none;
        border-radius: 0;
        padding: 0;
    }

    .submenu-items li {
        border-bottom: 1px solid #333;
    }

    .submenu-items li:last-child {
        border-bottom: none;
    }

    .submenu-items li a {
        padding: 15px 20px;
    }

    .submenu.active .submenu-items {
        display: block;
    }

    .menu-toggle {
        display: block;
        font-size: 30px;
        color: white;
        cursor: pointer;
        margin-right: 20px;
    }

    .navbar .logo img {
        max-width: 100px;
        height: auto;
        margin-right: 20px;
        /* Aggiungi distanza tra logo e hamburger menu su mobile */
    }

    .artists-box span,
    .contacts-box span {
        font-size: 14px !important;
    }
}

/* Nascondere l'icona dell'hamburger nella versione desktop */
@media screen and (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

nav {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    opacity: 0;
    /* Il footer parte invisibile */
    visibility: hidden;
    /* Il footer è nascosto inizialmente */
    animation: fadeInContent 1.5s ease-out forwards;
    animation-delay: 3s;
    /* Ritardo per sincronizzare con la dissolvenza del logo */
    margin-top: 50px;
    /* Aggiungi spazio tra il footer e il contenuto precedente */
}

footer a {
    color: white;
    text-decoration: none;
}

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

.artists-box,
.contacts-box {
    background-color: #333;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin: 20px auto;
    width: 80%;
    max-width: 600px;
    margin-bottom: 50px;
    /* Aggiungi spazio tra il box dei contatti e il footer */
}

.artists-box h2,
.contacts-box h2 {
    margin: 0 0 20px;
    color: white;
}

.artist-link,
.contact-link {
    text-decoration: none;
}

.artist,
.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #444;
    border-radius: 50px;
    /* Aggiungi bordi tondi */
    padding: 10px 20px;
    margin: 10px 0;
    transition: background-color 0.3s;
}

.artist:hover,
.contact:hover {
    background-color: #555;
}

.instagram-logo,
.mail-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.instagram-logo img,
.mail-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styles specific to the artist page */
.artist-image-container {
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
    overflow: hidden;
    border-radius: 15px;
    border: 2px solid white;
    /* Added white border */
}

.artist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.artist-image:hover {
    filter: grayscale(0%);
}

.artist-bio {
    text-align: justify;
    margin: 20px auto;
    max-width: 800px;
    line-height: 1.6;
    padding: 0 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.social-box {
    background-color: #333;
    padding: 15px 30px;
    border-radius: 50px;
    transition: background-color 0.3s;
}

.social-box:hover {
    background-color: #555;
}

.social-box a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 24px;
    height: 24px;
}