#main-header {
    max-height: 140px;
    box-shadow: none !important;
    background-color: transparent;
    top: 0 !important;
    position: absolute !important;
}
.logged-in.admin-bar #main-header {
    top: 32px !important;
}
#main-header.et-fixed-header {
    background-color: white !important;
    box-shadow: unset !important;
    transition: all .3s;
    position: fixed !important;
}
.cerba-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 20px;
    padding: 20px 0 10px 0;
    width: 95%;
}

.main-header-mdl.et-fixed-header .cerba-header-main {
    padding: 7px 0;
}

.cerba-header-logo #logo-top {
    max-height: 104px;
}
#main-header.et-fixed-header #logo-top {
    height: 90px;
}

#et-top-navigation {
    padding: 0 !important;
    float: unset;
    max-width: 770px;
}

#et-secondary-nav.cerba-top-header {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 10px;
}

.cerba-top-header .secondary-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    column-gap: 12px;
}

.cerba-top-header .menu-item {
    margin: 0 !important;
}

.cerba-top-header .menu-item a {
    font-size: 14px;
    line-height: 24px;
    font-weight: 700;
    color: var(--color-primary-black-100);
    background: transparent !important;
}
a.return-to-home-desk {
    margin-right: 15px;
}

.cerba-top-header .link-button a,
.cerba-mobile-main .link-button a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 15px;
    height: 46px;
    min-width: 171px;
    padding: 0 12px 0 8px;
    color: white;
    border-radius: 18px;
    font-size: 16px;
    line-height: 16px;
    background: var(--mdl-gradient-112deg) !important;
}
.cerba-top-header .link-button a:hover {
    background: var(--mdl-gradient-hover-112deg) !important;
}
.cerba-top-header .link-button a:before,
.cerba-mobile-main .link-button a:before {
    display: block;
    position: relative;
    content: "" !important;
    width: 37px;
    height: 31px;
    border-radius: 12px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.cerba-top-header .link-button a:after,
.cerba-mobile-main .link-button a:after {
    display: block;
    position: relative;
    content: "" !important;
    width: 10px;
    height: 9px;
}

#top-menu-nav,
#top-menu-nav > div {
    width: 100%;
}
#top-menu-nav .mdl-menu {
    width: 100%;
    height: 48px;
    background: var(--color-primary-dark-blue-100);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 15px;
}
#top-menu-nav .mdl-menu a {
    color: white;
}

/* preventivi */
.link-preventivi > a:before {
    background-image: url("/core/img/navbar/icon-mdl-preventivi.svg");
}
.link-preventivi:hover > a:before {
    background-image: url("/core/img/navbar/icon-mdl-preventivi-hover.svg");
}
/* area riservata */
.link-area-riservata > a:before {
    background-image: url("/core/img/navbar/icon-mdl-riservato.svg");
}
.link-area-riservata:hover > a:before {
    background-image: url("/core/img/navbar/icon-mdl-riservato-hover.svg");
}

/* go back to cerba homepage */
.return-to-home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 15px;
    height: 50px;
    width: 100%;
    padding: 12px 16px;
    color: var(--color-primary-black-100);
    border-radius: 18px;
    font-size: 16px;
    font-weight: 800;
    line-height: 16px;
    background: #F4FBFB;
    border: 1px solid #61C5C5;
}
.return-to-home:before {
    display: block;
    position: relative;
    content: "" !important;
    width: 18px;
    height: 18px;
    border-radius: 12px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-image: url("/core/img/navbar/icon-cerba-logo.svg");
}
.return-to-home:after {
    display: block;
    position: relative;
    content: "" !important;
    width: 10px;
    height: 9px;
}

/* active page link */
.current-menu-item  a,
.current-page-ancestor a {
    /* color: #3abebe !important; */
}

/* Sticky breadcrumbs */
.sticky_course_div_fixed .mdl-container-breadcrumb{
    max-width: 80% !important;
}
.sticky-bread {
    position: fixed;
    width: 100%;
    height: 100px !important;
    background: white !important;
    top: 70px;
    box-shadow: 0 0 7px rgba(0,0,0,0.1) !important;
}
.admin-bar .sticky-bread {
    top: 100px;
}
.sticky-bread-nav {
    position: fixed;
    z-index: 1000;
    height: 0px !important;
}
.sticky_course_div.active{
    background: white;
    top: 120px;
    z-index: 1000;
    left: 0;
    width: 100%;
    box-shadow: 0 0 7px rgba(0,0,0,0.1) !important;
}
.sticky_course_div.active p {
    margin: 24px auto;
    max-width: 1280px !important;
}
.cerba_breadcrumbs a {
    color: #2d333d;
}
.mdl-container-breadcrumb{
    width: 95%;
    max-width: 1280px;
    padding: 10px 0px !important;
    margin: 0 auto;
}
#section-mdl-course{
    height: 1px;
    display: flex;
    position: absolute;
}
.sticky_course_div_fixed {
    opacity: 0;
    display: none;
    position: absolute;
}
.sticky_course_div_fixed.active{
    opacity: 1;
    display: flex;
    position: fixed !important;
}

/* Mobile */
#et-top-navigation .mobile {
    display: none;
}
#main-header #mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    overscroll-behavior: none;
    background: white;
    color: white;
    transition: top 0.5s ease-in-out;
    z-index: 9999999;
    padding: 20px 25px;
}
#main-header #mobile-menu.active {
    display: block;
}
.cerba-mobile-header {
    display: flex;
    align-items: center;
    column-gap: 10px;
    margin-bottom: 20px;
}
.cerba-mobile-header .menu-close {
    margin-left: auto;
}
.cerba-mobile-footer {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    row-gap: 16px;
    margin-top: 30px;
}
#mobile-menu .main-menu {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    margin-bottom: 15px;
}

.cerba-mobile-main .mdl-menu {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}

.cerba-mobile-main .mdl-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    border-radius: 18px;
    font-size: 16px;
    line-height: 16px;
    background-color: var(--color-primary-light-grey-100);
    color: var(--color-primary-black-100);
    font-weight: 800;
    padding: 14px 17px;
    outline: 1px solid var(--color-primary-grey-100);
    text-transform: uppercase;
}

.cerba-mobile-main .mdl-menu li a:hover {
    color: white;
    background-color: var(--color-primary-light-blue-100);
}

@media (max-width: 1180px) {
    .sticky_course_div.active{
        top: 70px !important;
    }
    .sticky_course_div.active p {
        margin: 7px 2% !important;
        max-width: 1280px !important;
    }
}

@media all and (max-width: 1100px) {
    #et-top-navigation {
        max-width: 700px;
    }
    .cerba-header-logo #logo-top {
        max-height: 85px;
    }
    #top-menu-nav .mdl-menu {
        padding: 0 8px;
    }
    .cerba-top-header .link-button a {
        padding: 0 0 0 8px;
    }
}

@media all and (max-width: 980px) {
    .et_fixed_nav #main-header.et-fixed-header {
        position: fixed;
    }
    #et-top-navigation .desktop {
        display: none;
    }
    .cerba-header-main {
        align-items: flex-start;
    }
    #et-top-navigation .cerba-mobile-header {
        display: flex;
        align-items: center;
        column-gap: 10px;
    }
    .et-fixed-header #et-top-navigation .cerba-mobile-header {
        margin: 12px 0 0 0;
    }
    .cerba-header-logo #logo-top {
        max-height: 65px;
    }
    .sticky-bread {
        top: 25px;
    }
}

@media (max-width: 768px){
    .entry-content.course{
        max-width: 1280px !important;
        margin: 0 auto 100px auto !important;
    }
    .sticky_course_div_fixed .mdl-container-breadcrumb{
        max-width: 100% !important;
    }
}

@media all and (max-width: 580px) {
    .sticky-bread {
        top: 55px;
    }
}

@media all and (max-width: 375px) {
    .cerba-header-logo #logo-top {
        max-height: 70px;
    }
}