
/* -------------- 
HEADER 
----------------*/

.header__topbar {
    padding: 5px 10px;
    background-color: var(--black);
    text-align: center;
}

.header__topbar span {
    font-size: 14px;
    color: var(--white);
}


.header {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    width: 100%;
    -webkit-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
}

.header.scrolled {
    background-color: var(--grey);
}


.header .cover__max-1160 {
    border-bottom:  1px solid var(--light-grey);
}

.header.scrolled .cover__max-1160 {
     border-bottom:  0;
}

.logged-in .header {
    top: 30px;
}

.header__container {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 20px 10px;
}

.header__container h1 a {
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
    font-size: 20px;
    text-transform: uppercase;
}

.header__container h1 a:hover {
    color: var(--white)!important;
}


.current_page_item {
    font-weight: bold;
}

.header__menu nav ul{
    list-style: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.header__menu nav ul li a {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    padding: 0 10px;
    color: var(--white);
    -webkit-transition: color .5s;
    -o-transition: color .5s;
    transition: color .5s;
}

.header__menu nav ul li a:hover {
    color: var(--gold);
}

.header__menu-hamburger {
    display: none;
}


@media (max-width:768px) {
    
    .header__container {
       padding: 0;
    }

    .header__container.cover__max-1160 {
        width: 100%;
    }

    .header__logo {
        margin: 20px;
    }
    
    .header__menu-hamburger {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        width: 45px;
        height: 45px;
        -webkit-transition: 0.5s;
        -o-transition: 0.5s;
        transition: 0.5s;
        position: relative;
        border: 1px solid var(--white);
        margin: 20px;
        cursor: pointer;
        border-radius: 5px;
    }

    .header__menu-hamburger.open {
        border: 1px solid gold;
    }
    
    .header__menu-hamburger-inner {
        width: 25px;
        height: 2px;
        background-color: var(--white);
        -webkit-transition: 0.25s;
        -o-transition: 0.25s;
        transition: 0.25s;
        border-radius: 10px;
        position: relative; /* Aggiunto per i pseudo-elementi */
    }
    
    .header__menu-hamburger-inner:before,
    .header__menu-hamburger-inner:after {
        content: '';
        position: absolute;
        width: 25px;
        height: 2px;
        background-color: var(--white);
        -webkit-transition: 0.5s;
        -o-transition: 0.5s;
        transition: 0.5s;
        border-radius: 10px;
    }
    
    .header__menu-hamburger-inner:before {
        -webkit-transform: translateY(-10px);
            -ms-transform: translateY(-10px);
                transform: translateY(-10px); 
    }
    
    .header__menu-hamburger-inner:after {
        -webkit-transform: translateY(10px);
            -ms-transform: translateY(10px);
                transform: translateY(10px);
    }
    
    .open .header__menu-hamburger-inner {
        background-color: transparent;
    }
    
    .open .header__menu-hamburger-inner:before {
        -webkit-transform: rotate(-45deg) translateY(0);
            -ms-transform: rotate(-45deg) translateY(0);
                transform: rotate(-45deg) translateY(0);
    }
    
    .open .header__menu-hamburger-inner:after {
        -webkit-transform: rotate(45deg) translateY(0);
            -ms-transform: rotate(45deg) translateY(0);
                transform: rotate(45deg) translateY(0);
    }
    

    .header__container {
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    }
    

    .header__menu {
        height: 0;
        -webkit-transition: .5s;
        -o-transition: .5s;
        transition: .5s;
        z-index: -1;
        position: relative;
        top: 100%;
        left: 0;
        width: 100%;
        overflow: hidden;
        background-color: var(--light-grey);
    }

    .header__menu-pd {
        padding: 10px 0 0 0 ;
    }

    .header__menu.active {
        z-index: 9998;
        overflow-y: scroll;
    }

    .header__menu nav ul {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }


    .header__menu nav ul li {
        border-bottom: 1px solid var(--black);
    }

    .header__menu nav ul li a {
        color: var(--black);
        display: block;
        padding: 10px;
    }
}



/* SUBMENU UL */
.header__menu ul li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    max-width: 20rem;
    background-color: #333;
    display: none;
    visibility: hidden;
    -webkit-transform: translateY(1.7rem);
        -ms-transform: translateY(1.7rem);
            transform: translateY(1.7rem);
}


.header__menu ul li .sub-menu li {
    display: block;
    width: 100%;
    padding: 1rem;
}



.header__menu ul li .sub-menu.active {
    display: block;
    visibility: visible;
}


/*  
DROPDOWN MENU MQ
-------------------------------- */
@media (max-width: 768px) {
    .header__menu ul li .sub-menu {
        border-top: .1rem solid #7f7f7f;
        position: relative;
        max-width: 100%;
        width: 100%;
        background-color: #e7e7e7;
        margin-bottom: 2.5rem;
        -webkit-transform: translateY(1rem);
            -ms-transform: translateY(1rem);
                transform: translateY(1rem);
    }

    .fa-caret-down {
        color: #000;
        margin-left: 1rem;
    }
}






/* -------------- 
BUTTONS
----------------*/

.btn i {
    vertical-align: middle;
    margin-right: 10px;
}

.btn a {
    display: inline-block;
    min-width: 150px;
    width: 100%;
    -webkit-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
}

.btn__outline a:hover {
    background-color: var(--white);
    color: var(--grey)!important;
}

.btn__fill a:hover, .btn__404:hover {
    background-color: var(--gold-2)!important;
    border: 2px solid var(--gold-2)!important;
}

.btn__404 {
    display: inline-block;
    text-decoration: none;
    padding: 5px 10px;
    background-color: var(--gold);
    color: var(--black);
    border-radius: 5px;
    border: 2px solid var(--gold);
    text-transform: uppercase;
    font-weight: bold;
    -webkit-transition: background-color .5s;
    -o-transition: background-color .5s;
    transition: background-color .5s;
}

.btn__404:hover {
    border: 2px solid var(--gold-2);
}



/* -------------- 
COVER HOMEPAGE
----------------*/

.cover__homepage {
    position: relative;
    width: 90%;
    max-width: 1160px;
}





/* -------------- 
SERVICES
----------------*/

.service-box {
    position: relative;
    max-height: 250px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 5px;
}

.service-box img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.service-box:hover .service-box__text {
    top: -30px;
    -webkit-transition: top .5s;
    -o-transition: top .5s;
    transition: top .5s;
}

.service-box__text {
    position: absolute;
    top: -120%;
    left: 0;
    width: 100%;
    height: 110%;
    background-color: var(--grey);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-transition: top .5s;
    -o-transition: top .5s;
    transition: top .5s;
    z-index: 1000;
    color: var(--white);
    padding: 10px 30px;
    text-align: center;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

.service-box__text p {
    font-size: 14px;
}




/* -------------- 
FEATURES
----------------*/

.features__icon {
    text-align: center;
}

.features__icon i {
    font-size: 30px;
}

.car-features__list {
    list-style: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 10px;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-align: center;
}

.car-features__list li {
    text-transform: uppercase;
    width: 48%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    font-weight: bold;
    font-size: 14px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 5px;
    border-radius: 5px;
    background-color: var(--light-grey);
}

@media(max-width: 375px) {

    .car-features__list {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-pack: start;
            -ms-flex-pack: start;
                justify-content: flex-start;
        -webkit-box-align: start;
            -ms-flex-align: start;
                align-items: flex-start;
        text-align: left;
    }

    .car-features__list li {
        display: block;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
    }
}



/* -------------- 
FOOTER
----------------*/

@media(max-width: 370px) {
    .footer .container__row {
       -webkit-box-orient: vertical;
       -webkit-box-direction: normal;
           -ms-flex-direction: column;
               flex-direction: column;
    }
}

.footer {
    background-color: var(--black);
    padding: 50px 0 0 0;
}

.footer p, .footer a, .footer h4, .footer span, footer ul li {
    font-size: 14px;
    color: var(--white);
    text-decoration: none;
}

.footer a:hover {
    color: var(--gold);
}

.footer ul {
    margin-bottom: 20px;
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li i {
    margin-right: 5px;
}

.footer__social-info ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
}

.footer__credits {
    margin-top: 20px;
    padding: 10px 20px;
    border-top: 1px solid var(--white);
    font-size: 14px;
    color: var(--white);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    gap: 10px;
}

@media (max-width:480px) {
    .footer__credits {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        gap: 15px;
    }
}

.footer__credits .language-switcher {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}



/* -------------- 
GSAP ANIMATION
----------------*/

.fade {
    opacity: 0;
}
