﻿/* Footer Container */
.footer-container {
    /*position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    min-width: 700px;
    background: rgba(27, 27, 27, 0.9);
    border-radius: 40px;
    padding: 3px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 20px 0;
    height: 10px;*/
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 72px;
    background: #00000050;
    z-index: 1000;
    border-radius: 0 20px 20px 0;
    border: solid 0.1rem rgba(256, 256, 256, 0.3);
}

    /*.footer-container:hover {
        padding: 15px;
        height: 70px;
    }*/

/* Menu stile */
.footer-menu {
    /*display: flex;
    justify-content: space-around;*/ /* Distribuisce lo spazio tra i gruppi */
    /*align-items: center;*/
    /*opacity: 0;*/
    /*visibility: hidden;*/
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /*position: absolute;*/
    /*width: 100%;*/
/*    left: 0;*/
    top: 50%;
    transform: translateY(-50%);
    /*padding: 0 2rem;*/
    display: block;
    padding: 0;
    position: relative;
    height: 100%;
    width: 42px;
    margin-left: 15px;
    margin-right: auto;
}

/* Le icone hanno uno spazio fiso */
.icon-group {
    /*display: flex;
    align-items: center;
    gap: 20px;*/ /* Spazio fisso tra le icone nel gruppo */

    display: block;
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    float: left;
}

/* Il primo gruppo */
.icon-group:first-child {
    margin-top: 50px;
}

/* Separatore tra gruppi */
.icon-separator {
    width: 2px;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Menu item container */
.footer-menu-item {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom center;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

    .footer-menu-item img {
        width: 2.5rem;
        height: 2.5rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .footer-menu-item:hover img {
        width: 3.25rem;
        height: 3.25rem;
    }

    .footer-menu-item::before {
        content: attr(data-label);
        position: absolute;
        /*bottom: calc(100% + 15px);*/
        /*left: 50%;*/
        /*transform: translateX(-50%);*/
        color: white;
        font-size: 12px;
        white-space: nowrap;
visibility:hidden;
transition: all 0.3s ease;
        font-weight: 500;
        background-color: rgba(64, 64, 64);
        padding: 5px 10px;
        border-radius: 0 5px 5px 0; /*4px;*/
        z-index: 4;
        left: 52px;
    }

    /*.footer-menu-item::after {
        content: '';
        position: absolute;*/
        /*bottom: calc(100% + 10px);
        left: 50%;*/
        /*transform: translateX(-50%);*/
        /*width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid rgba(64, 64, 64, 0.9);
        opacity: 0;
        transition: all 0.3s ease;
        left: 55px;
        transform: rotate(90deg);
    }*/

    .footer-menu-item:hover {
        /*transform: scale(1.3);*/
        transform: scale(1.2);
        z-index: 3;
    }

    .footer-menu-item:hover::before,
    .footer-menu-item:hover::after {
        opacity: 1;
    }

    .no-pseudoelem:hover::before {
        content: none;
    }

    .no-before:hover::before {
        content: none;
    }

.footer-container:hover .footer-menu {
    opacity: 1;
    visibility: visible;
}

/* Placeholder */
.footer-placeholder {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.footer-container:hover .footer-placeholder {
    opacity: 0;
}

.submenu {
    position: absolute;
    /*bottom: calc(100% + 15px);*/
    /*left: 50%;*/
    /*transform: translateX(-50%);*/
    background-color: rgba(64, 64, 64);
    padding: 1rem;
    /*border-radius: 8px;*/
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    left: 52px;
    border-radius: 0 8px 8px 0;
}

.submenuOpen {
    left: 198px;
}

    /*.submenu::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid rgba(64, 64, 64, 0.9);
    }*/

    .submenu h4 {
        color: white;
        margin: 0 0 0.5rem;
        font-size: 14px;
        font-weight: 500;
    }

    .submenu a {
        display: block;
        color: white;
        text-decoration: none;
        padding: 0.25rem 0;
        font-size: 12px;
        opacity: 0.8;
        transition: opacity 0.2s;
    }

        .submenu a:hover {
            opacity: 1;
        }
.submenu-item {
    position: relative;
}

    .submenu-item .submenu-right {
        display: none;
        position: absolute;
        top: -20px;
        left: 100%;
        background-color: rgba(64, 64, 64);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid rgba(64, 64, 64);
        /*border-radius: 8px;*/
        padding: 10px;
        white-space: nowrap;
        z-index: 10;

        left: 110px;
        border-radius: 0 8px 8px 0;
    }

    .submenu-item:last-child .submenu-right {
        top: -40px;
    }

    .submenu-item:hover .submenu-right {
        display: block; 
    }

.submenu-right a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
}

/*    .submenu-right a:hover {
        background-color: #eaeaea;
        color: #000;
    }*/

.footer-menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
}

.menu-item-text {
    position: absolute;
    left: 50px;
    width: max-content;
    font-weight: bold;
    color: #fff;
    display: none;
}

.menuClosed {
    width: 75px;
}

.menuOpened {
    width: 250px;
    background-color: #000000e3;
}

.hamburgerBtn {
    border: solid 0.1rem rgba(256, 256, 256, 0.3);
    width: 2.8rem;
    height: 2.8rem;
    position: relative;
}

.hamburgerGroup {
    left: -2px;
}

.hamburgerImg {
    width: 2rem;
    height: 2rem;
}




/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        min-width: 300px;
        width: 90%;
    }

    .icon-group {
        gap: 10px;
    }

    .icon-separator {
        margin: 0 10px;
    }

    .footer-menu-item {
        width: 2rem;
        height: 2rem;
    }

        .footer-menu-item img {
            width: 2rem;
            height: 2rem;
        }

        .footer-menu-item:hover img {
            width: 2.5rem;
            height: 2.5rem;
        }
}

.footer-menu-item:hover::before {
    visibility: visible;
}