/*
 * 1.0 MENU
 */

header#header .menuAnimation {
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

header#header .menuWrapper {
    grid-column-start: 4;
    grid-column-end: 12;
    z-index: 21;
    position: relative;
    opacity: 0;
    transition: all 100ms;
    transition-delay: 0s;
    pointer-events: none;
}

header#header .menuWrapper #menu {
    position: fixed;
    left: 0;
    top: 160px;
    transform: translateY(0) scale(0.8);
    transition: all 100ms ease-out;
    transition-delay: 0s;
    display: grid;
    grid-column-gap: var(--grid-gap);
    grid-template-columns: var(--grid-margin) repeat(12, 1fr) var(--grid-margin);
    width: 100vw;
    height: 100%;
    max-height: calc(100vh - 180px);
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}

header#header .menuWrapper #menu>ul {
    display: flex;
    flex-wrap: wrap;
    grid-column-start: 2;
    grid-column-end: 12;
    align-items: flex-start;
    align-content: flex-start;
    position: relative;
    width: 100%;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), height 0.4s ease;
}

header#header .menuWrapper #menu ul>li {
    margin-bottom: 30px;
}

header#header .menuWrapper #menu ul>li>a {
    display: inline-block;
    transition-timing-function: ease;
}

header#header .menuWrapper #menu ul>li>a.isHover span.mainlink,
header#header .menuWrapper #menu ul>li>a.isHover .subtitle {
    color: rgba(255, 255, 255, 0.5);
}

header#header .menuWrapper #menu ul>li.hassub a {
    cursor: pointer;
}

header#header .menuWrapper #menu ul>li>a .mainlink {
    width: fit-content;
    border-top: 0 solid white;
    color: var(--color-black) !important;
    font-weight: 500 !important;
    padding-top: 2px;
    font-family: var(--font-family-primary) !important;
    font-size: var(--font-size-h3) !important;
    letter-spacing: 0;
}

.open header#header .menuWrapper #menu ul>li>a .mainlink {
    color: rgba(255, 255, 255, 0.5);
}

header#header .menuWrapper #menu ul li {
    width: 100%;
    display: flex;
    position: relative;
}

header#header .menuWrapper #menu ul li a {
    display: inline-flex;
    text-decoration: none;
    align-items: flex-start;
}

header#header .menuWrapper #menu ul li a .subtitle {
    margin-left: 45px;
    letter-spacing: 0;
    transform: translateY(2px);
    color: #fff;
    font-family: Cormorant Garamond;
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

header#header .menuWrapper #menu ul li ul {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    transform: scale(0.95) translateX(0);
    transition: opacity 0.25s ease-out, transform 0.35s cubic-bezier(0, 0.3, 0, 1), visibility 0.25s;
}

header#header .menuWrapper #menu ul li ul span {
    font-size: 17px;
    line-height: 145%;
    letter-spacing: 0;
}

header#header .menuWrapper #menu ul li ul li .mainlink {
    margin-bottom: 12.5px;
    color: rgba(0, 0, 0, 0.8);
    will-change: color;
}

header#header .menuWrapper #menu ul li ul li .subtilte {
    display: none;
}

header#header .menuWrapper #menu ul li ul li:hover .mainlink,
header#header .menuWrapper #menu ul li.current ul li a.current .mainlink {
    color: white;
}

header#header .menuWrapper #menu ul li ul::before {
    display: none !important;
}

header#header .instatOfLottieContainer {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    pointer-events: none;
}

header#header .instatOfLottieContainer .innerAnimation {
    overflow: hidden;
    position: relative;
    width: 0vw;
    height: 0vh;
    display: flex;
    z-index: 20;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    -ms-transition: all 0.5s;
    transition: all 0.5s;
}

header#header .instatOfLottieContainer .innerAnimation .image {
    width: 100vw;
    height: 100vh;
    opacity: 0;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    -ms-transition: 0.5s;
    transition: 0.5s;
}

header#header .instatOfLottieContainer .innerAnimation .image::before {
    content: '';
    width: 100vw;
    height: 100vh;
    background-color: rgba(30, 60, 65, 0.8);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

header#header .instatOfLottieContainer .innerAnimation .image img {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

header#header .instatOfLottieContainer.open .innerAnimation {
    width: 100vw;
    height: 100vh;
}

header#header .instatOfLottieContainer.open .innerAnimation .image {
    opacity: 1;
}

header#header .mobileMenuIcons {
    display: flex;
    align-items: center;
    align-content: center;
    opacity: 0;
    position: fixed;
    bottom: 30px;
    pointer-events: none;
    width: 100vw;
    z-index: 1112;
    padding-left: 100px;
}

header#header .mobileMenuIcons .voucherMobile,
header#header .mobileMenuIcons .galleryMobile {
    display: flex;
}

header#header .mobileMenuIcons .voucherMobile {
    width: 25px;
    align-content: flex-start;
    align-items: flex-start;
}

header#header .mobileMenuIcons .galleryMobile {
    width: 35px;
    margin-left: 21px;
}

header#header .mobileMenuIcons .voucherMobile a,
header#header .mobileMenuIcons .galleryMobile a {
    display: flex;
    align-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

header#header .mobileMenuIcons .voucherMobile a svg,
header#header .mobileMenuIcons .galleryMobile a svg {
    width: 100%;
}

header#header.showMenu .massenger {
    opacity: 0;
    pointer-events: none;
}

header#header.showMenu .menuAnimation {
    z-index: 20;
}

.pswp__custom-caption.pswp__hide-on-close {
    display: none;
}

header#header.showMenu .hamburgerWrapper #hamburger-button .lines div {
    width: 0;
}

header#header.showMenu .hamburgerWrapper #hamburger-button .close {
    opacity: 1;
    transition-delay: 0.3s;
}

header#header.showMenu .hamburgerWrapper #hamburger-button .close svg {
    transform: scale(1);
    transition-delay: 0.3s;
}

header#header.showMenu #hamburger-button .menuText {
    color: white;
}

header#header.showText .sideBar .voucher .st1 {
    display: none;
}

header#header.showText .sideBar .voucher .st0,
header#header.showText .sideBar .voucher .st1,
header#header.showText .sideBar .voucher .path2,
header#header.showText .sideBar .voucher .path3 {
    stroke: rgba(255, 255, 255, 0.5);
    transition-delay: 0.1s;
}

header#header.showText .sideBar .gallery .st0,
header#header.showText .sideBar .gallery .path2,
header#header.showText .sideBar .packages .st0,
header#header.showText .sideBar .packages .path2 {
    stroke: rgba(255, 255, 255, 0.5);
    transition-delay: 0.3s;
}

header#header.showText .sideBar .voucher .description,
header#header.showText .sideBar .gallery .description,
header#header.showText .sideBar .request .description,
header#header.showText .sideBar .packages .description,
header#header.showText .sideBar .booking .description {
    opacity: 1;
}

header#header.showText .sideBar .request .description:hover,
header#header.showText .sideBar .booking .description:hover {
    color: #a27e41;
}

header#header.showText .sideBar .voucher .description,
header#header.showText .sideBar .gallery .description {
    color: rgba(255, 255, 255, 0.5);
}

header#header.showText .sideBar .voucher .description:hover,
header#header.showText .sideBar .gallery .description:hover {
    color: white;
}

header#header.showText .sideBar .voucher.hoverState svg .st0,
header#header.showText .sideBar .voucher.hoverState svg .path2,
header#header.showText .sideBar .voucher.hoverState svg .path3,
header#header.showText .sideBar .gallery.hoverState svg .path2 {
    stroke-dasharray: var(--length);
    stroke-dashoffset: 0;
    stroke: white;
}

header#header.showText .sideBar .voucher.hoverState .description,
header#header.showText .sideBar .gallery.hoverState .description {
    color: white;
}

header#header.showText .menuWrapper {
    opacity: 1;
    transition-delay: 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    -ms-transition: all 0.5s;
    transition: all 0.5s;
}

header#header.showText .menuWrapper #menu {
    transform: translateY(-20px) scale(1);
    opacity: 1;
    z-index: 1;
    pointer-events: all;
    transition-delay: 0.2s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    -ms-transition: all 0.5s;
    transition: all 0.5s;
}

/* Selettore mantenuto invariato per evitare cambi comportamentali. */
header#header.open .menuWrapper #menu ul li:not(".submenuOpen") a .mainlink,
header#header.open .menuWrapper #menu ul li:not(".submenuOpen") a .subtitle {
    color: white;
}

#uid1.scrolled header#header.showMenu .menuAnimation,
body:not(#uid1) header#header.showMenu .menuAnimation {
    z-index: 0;
}

body:not(#uid1) header#header .menuAnimation {
    display: none;
}

.browser-safari header#header .menuWrapper #menu ul li ul,
.browser-iOS header#header .menuWrapper #menu ul li ul {
    height: auto;
}

.hm-main-open-close {
    border-radius: 50% !important;
}

.submenuOpen a span.mainlink {
    font-size: 26px !important;
    color: var(--color-black) !important;
    padding: 0 0 0 25px;
}

/* Mantieni le voci di primo livello sempre bianche */
#menu>ul>li>a {
    color: #ffffff !important;
}

/* Colore personalizzato per le voci attive solo nei sottomenù */
#menu li .submenu li.active>a,
#menu li .submenu li.active>a span {
    color: #76695A !important;
}

/* Voci di secondo livello non attive */
#menu li .submenu a {
    color: #ffffff !important;
}

/*
 * 2.0 POPUP ELEMENTOR PER MENU
 */

div.popup-menu {
    z-index: 99;
}

a.dialog-close-button.dialog-lightbox-close-button {
    z-index: 101;
}

.black {
    color: black;
}

@keyframes left {
    from {
        left: 0;
    }

    to {
        left: -100px;
    }
}

#logo-header,
.img-popup-color {
    position: relative;
    left: 0;
    margin: 0;
    padding: 0;
    transition: left 1s;
}

.img-popup-color {
    visibility: hidden;
    opacity: 0;
}

#logo-header.position-logo-popup,
.img-popup-color.position-logo-popup {
    left: -135px;
    visibility: visible;
    opacity: 1;
    transition: left 1s, visibility 0s 0s, opacity 1s;
    position: absolute;
    top: 0;
}

.img-popup-color img {
    width: 95px !important;
    transition: width 0.5s;
}

.img-popup-color.shrink {
    width: 170px;
}

i.fal.fa-xmark {
    font-size: 40px;
}

#container-header a.elementor-icon {
    font-size: 40px !important;
    color: var(--color-black) !important;
}

/*
 * 3.0 HEADER
 */

.left-icons-header .elementor-icon-list-items {
    gap: 5px;
}

.explore {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    align-content: space-between !important;
    flex-direction: column !important;
    gap: 5px !important;
}

.explore::after {
    content: "";
    height: 70px;
    width: 1px;
    background-color: white;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-content: center;
}

#container-header {
    height: 120px;
    transition: background 0.5s ease-in-out, height 0.3s ease-in-out;
}

#container-header.shrink {
    height: 100px !important;
}

#container-header.shrink div.e-con-inner {
    padding: 10px 0;
}

#container-header-mobile {
    transition: background 0.5s ease-in-out, height 0.5s ease-in-out;
}

#container-header-mobile.shrink,
.burger-menu-open {
    background: white !important;
}

.burger-menu-open {
    background-color: white !important;
}

#logo-header img {
    width: 95px !important;
    transition: width 0.3s;
}

#logo-header.shrink img {
    width: 75px !important;
    margin-top: 10px;
}

.elementor-nav-menu {
    padding: 30px 0 !important;
    height: 100vh;
}

div#container-header,
div#container-header.border-bottom-header.shrink,
div#container-header.shrink.border-bottom-header {
    border-style: solid;
    border-width: 0 0 1px 0;
    border-color: white;
    transition: border-color 0.1s ease;
}

div#container-header.border-bottom-header,
div#container-header.border-bottom-header.shrink,
div#container-header.shrink.border-bottom-header {
    border-color: transparent !important;
    border-style: solid !important;
    border-width: 0 !important;
}

div#menu-close-label {
    display: none;
}

body:not(.home) .above-the-fold {
    min-height: 550px;
}

div#open-close-menu {
    pointer-events: none;
}

div#open-close-menu a {
    pointer-events: fill;
}

div#container-header.header-popup-open {
    background: transparent !important;
}

/*
 * 1.1 DRILL DOWN MENU RULES
 */

header#header .menuWrapper #menu ul.has-open-submenu {
    transform: translateX(-100%);
}

header#header .menuWrapper #menu ul.has-open-submenu li {
    position: static !important;
}

header#header .menuWrapper #menu ul.has-open-submenu li.submenuOpen ul.submenu {
    height: auto;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: scale(1) translateX(100%);
}

/* Back button styles */
header#header .menuWrapper #menu ul li ul.submenu li.menu-back {
    width: 100%;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

header#header .menuWrapper #menu ul li ul.submenu li.menu-back a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white !important;
    cursor: pointer;
    opacity: 1 !important;
}

header#header .menuWrapper #menu ul li ul.submenu li.menu-back a .back-icon {
    font-size: 24px;
    line-height: 1;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}

header#header .menuWrapper #menu ul li ul.submenu li.menu-back a .parent-title {
    font-size: var(--font-size-h3) !important;
    font-family: var(--font-family-primary) !important;
    font-weight: 500;
    line-height: 1;
}

nav#menu {
    margin-top: 50px !important;
}

span.back-icon {
    font-size: 38px !important;
}

header#header .menuWrapper #menu ul>li>a.hassub {
    display: inline-flex;
    align-items: flex-start;
}

header#header .menuWrapper #menu ul>li>a.hassub .menu-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 18px;
    color: currentColor;
    transform: translateY(6px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    flex-shrink: 0;
}

header#header .menuWrapper #menu ul>li>a.hassub .menu-chevron i {
    display: block;
    width: 100%;
    height: 100%;
    font-size: 22px;
    font-weight: 600;
}

header#header .menuWrapper #menu ul>li.submenuOpen>a.hassub .menu-chevron {
    transform: translateY(6px) rotate(90deg);
}


/*
 * Responsive
 */

@media (max-width: 1023px) {
    header#header {
        height: 70px;
    }

    header#header .sideBar {
        display: none;
    }

    header#header .mobileBar {
        display: flex;
    }

    header#header.showMenu .hamburgerWrapper,
    header#header .hamburgerWrapper {
        background-color: transparent;
    }

    header#header.showMenu .mobileBar {
        pointer-events: none;
        opacity: 0;
    }

    header#header.showText:not(.open) .mobileMenuIcons {
        opacity: 1;
        pointer-events: all;
        transition-delay: 0.3s;
    }

    header#header .breadCrumbWrapper .breadCrumbs {
        top: 50%;
        transform: translateY(-50%);
    }

    header#header .breadCrumbWrapper .breadCrumbs span {
        display: none;
    }

    header#header .breadCrumbWrapper .breadCrumbs span a {
        font-size: 12px;
        text-transform: uppercase;
        font-weight: bold;
    }

    header#header .breadCrumbWrapper .breadCrumbs span:first-of-type {
        display: block;
    }

    header#header .hamburgerWrapper {
        position: fixed;
        width: 80px;
        height: 75px;
        right: 0;
        top: 7px;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 999;
        -webkit-transition: all 0.5s;
        -moz-transition: all 0.5s;
        -o-transition: all 0.5s;
        -ms-transition: all 0.5s;
        transition: all 0.5s;
    }

    header#header #hamburger-button {
        right: auto;
        top: auto;
        margin-top: -11px;
        margin-right: -2px;
        position: relative;
    }

    header#header .menuWrapper #menu {
        top: 100px;
        overflow: scroll;
        max-height: 70vh;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    header#header .menuWrapper #menu ul {
        grid-column-start: 2;
        grid-column-end: 14;
    }

    header#header .menuWrapper #menu ul>li>a .mainlink {
        width: 70px;
    }

    header#header .menuWrapper #menu ul li {
        margin-bottom: 40px;
    }

    header#header .menuWrapper #menu ul li ul {
        top: 0 !important;
        left: 0 !important;
    }

    header#header .menuWrapper #menu ul li ul li {
        margin-bottom: 10px;
    }

    header#header .menuWrapper #menu ul li ul .mainlink {
        font-size: 15px;
        line-height: 180%;
        margin-bottom: 0 !important;
    }

    header#header .menuWrapper #menu ul li a .subtitle {
        font-size: 28px;
        line-height: 125%;
        letter-spacing: 0;
        margin-left: 15px;
    }

    #hub-messenger-widget .hm-main-widget-content.hm-open,
    #hub-messenger-widget .hm-main-widget-content #hub-messenger-widget .hm-main-widget-content {
        z-index: 100000000 !important;
    }

    #hub-messenger-widget .hm-main-widget-content .hm-main-open-close {
        bottom: 20px !important;
    }

    #container-header-mobile img {
        width: 80px !important;
        transition: width 0.5s;
        max-width: 80px !important;
    }

    #container-header-mobile.shrink img {
        width: 100px !important;
    }
}

@media (min-width: 1341px) and (max-width: 1540px) {
    header#header .menuWrapper #menu {
        position: fixed;
        left: 0;
        top: 100px;
        transform: translateY(0) scale(0.8);
        transition: all 100ms ease-out;
        transition-delay: 0s;
        display: grid;
        grid-column-gap: var(--grid-gap);
        grid-template-columns: var(--grid-margin) repeat(12, 1fr) var(--grid-margin);
        width: 100vw;
        height: 100%;
        max-height: calc(100vh - 180px);
        overflow-x: hidden;
        overflow-y: auto;
        padding-top: 20px;
        padding-bottom: 20px;
        opacity: 0;
        z-index: -1;
        pointer-events: none;
        overflow: initial;
    }

    #logo-header img {
        width: 80px !important;
        transition: width 0.3s;
    }
}