#mobile-menu-wrapper,
#mobile-header {
    display: none;
}

@media only screen and (max-width: 992px) {
    #page {
        padding-top: 70px;
    }
    .site-header-container {
        display: none;
    }

    /* GENERAL CSS
    *****************************************/
    #mobile-header {
        display: block;
        position: fixed;
        width: 100%;
        height: 70px;
        top: 0;
        left: 0;
        z-index: 999;
    }
    .mobile-header-container {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        height: 70px;
        padding: 0 1em;
        background-color: #212121;
        border-bottom: 1px solid #444;
        box-sizing: border-box;
        z-index: 999;
    }
    #mobile-header .logo {
        flex-grow: 1;
    }
    #mobile-header .logo img {
        width: 150px;
    }
    #mobile-menu-wrapper {
        display: block !important;
        position: fixed;
        top: 0;
        left: auto !important;
        width: 100% !important;
        height: 100%;
        padding: 0.5em 0;
        background-color: #212121;
        overflow: auto;
        z-index: 99;
    }
    #mobile-menu .sub-menu {
        display: none;
    }
    /* Menu a Panino e effetti
    *****************************************/
    .menu-handler {
        position: relative;
        display:  inline-block;
        width: 30px;
        height: 30px;
        cursor: pointer;
    }
    #mobile-menu-button-handler {
        display: flex;
        align-items: center;
        height: 100%;
        padding-left: 1em;
        border-left: 1px solid #444647;
    }
    .menu-handler span {
        margin: 0 auto;
        position: relative;
        top: 15px;
    }
    .menu-handler span:before, 
    .menu-handler span:after {
        position: absolute;
        content: '';
    }
    .menu-handler span, 
    .menu-handler span:before, 
    .menu-handler span:after {
        width: 30px;
        height: 1px;
        background-color: #fff;
        display: block;
    }
    .menu-handler span:before {
        margin-top: -8px;
    }
    .menu-handler span:after {
        margin-top: 8px; 
    }
    .open-menu span {
        -webkit-transition-duration: 0s; 
        transition-duration: 0s;
        -webkit-transition-delay: 0.2s; 
        transition-delay: 0.2s;
    }
    .open-menu.opened span {
        background-color: rgba(0,0,0,0.0);
        -webkit-transition-delay: 0.2s; 
        transition-delay: 0.2s;
    }
    .open-menu span:before {
        -webkit-transition-property: margin, -webkit-transform; 
        transition-property: margin, transform;
        -webkit-transition-duration: 0.2s; 
        transition-duration: 0.2s;
        -webkit-transition-delay: 0.2s, 0s; 
        transition-delay: 0.2s, 0s;
    }
    .open-menu span:after {
        -webkit-transition-property: margin, -webkit-transform; 
        transition-property: margin, transform;
        -webkit-transition-duration: 0.2s; 
        transition-duration: 0.2s;
        -webkit-transition-delay: 0.2s, 0s; 
        transition-delay: 0.2s, 0s;
    }
    .open-menu.opened span:before {
        margin-top: 0;
        -webkit-transform: rotate(45deg); 
        transform: rotate(45deg);
        -webkit-transition-delay: 0s, 0.2s; 
        transition-delay: 0s, 0.2s;
    }
    .open-menu.opened span:after {
        margin-top: 0;
        -webkit-transform: rotate(-45deg); 
        transform: rotate(-45deg);
        -webkit-transition-delay: 0s, 0.2s; 
        transition-delay: 0s, 0.2s;
    }

    /* RIGHT TO LEFT
    *****************************************/
    #mobile-menu-wrapper.menu-opened {
        right: 0 !important;
    }
    #mobile-menu-wrapper {
        display: block !important;
        left: auto !important;
        width: 100% !important;
        right: -100% !important;
    }
    #mobile-menu-wrapper.menu-opened ,
    #mobile-menu-wrapper {
        transition: all 0.5s ease-in-out;
        padding-top: 0;
    }

    /* MENU SECTION */
    #mobile-menu {
        margin-top: 0;
        margin-bottom: 1.5em;
    }
    #mobile-menu li {
        position: relative;
        text-align: center;
        padding: 1.3em 0;
    }
    #mobile-menu li a {
        text-transform: uppercase;
        font-size: 18px;
        color: #fff;
    }
    #mobile-menu button.sub-menu-toggle {
        position: absolute;
        right: 0.5em;
        background-color: transparent;
        color: #fff;
        border: none;
        float: right;
        outline: none;
        font-size: 1.4em;
        line-height: 0.5;
    }
    #mobile-menu .social-links .grid {
        justify-content: center;
    }
    #mobile-menu .sub-menu-open {
        background-color: #005587;
        padding-bottom: 0 !important;
    }
    #mobile-menu .sub-menu a {
        color: #000 !important;
    }
    #mobile-menu .sub-menu-open .sub-menu-toggle {
        font-size: 24px;
    }
    #mobile-menu .sub-menu li {
        background-color: #fff;
        border-bottom: 1px solid #eaeaea;
    }
    #mobile-menu ul,
    .social-links .menu  {
        padding-left: 0;
    }
    .social-links .menu li {
        margin: 1em;
    }
    #mobile-menu .sub-menu-open .sub-menu li:first-child {
        margin-top: 1.3em !important;
    }
    #mobile-menu-wrapper .language-switch {
        text-align: center;
    }
    #mobile-menu-wrapper .language-switch li {
        padding: 0 !important;
    }

    ul#trescatransformer-main-mobile-menu li:first-of-type {
        margin-top: 1.5em;
    }
    #mobile-menu .menu-bfs-mobile-menu-container,
    #mobile-menu .menu-mobile-menu-container,
    #mobile-menu .menu-mobile-menu-inglese-container,
    #mobile-menu .menu-mobile-menu-pl-container,
    #mobile-menu .menu-bfs-mobile-menu-es-container {
        padding-top: 110px;
    }
    #mobile-menu li.inst {
        background-color: #1d1d1d;
    }
    #mobile-menu li.inst a {
        text-transform: none !important;
        font-family: 'Montserrat-Regular', sans-serif !important;
    }
    #mobile-menu li.inst.first {
        margin-top: 0.7em;
        border-top: 1px solid #444647;
        padding-top: 2em !important;
    }
    #mobile-menu li.inst.last {
        padding-bottom: 2em !important;
        border-bottom: 1px solid #444647;
    }
    /* CUSTOM BFS */
    .bf-shop { /* BFS SHOP LINK */
        color: #fff;
        height: 100%;
        border-left: 1px solid #444444;
        padding: 0 1em;
        font-size: 20px;
        font-weight: 500;
    }
    .language-switch {
        height: 100%;
    }
    #mobile-header .wpml-ls-statics-shortcode_actions { /* BFS LENGUAGE SWITCH */
        height: 100%;
        display: flex;
        align-items: center;
        padding: 0 1em !important;
        border-left: 1px solid #444;
        padding-right: 0 !important;
    }
    #mobile-header .language-switch li {
        padding-right: 10px;
    }   
    .wpml-ls-legacy-list-horizontal .wpml-ls-flag {
        width: 24px;
        height: 16px;
    }
    .wpml-ls-legacy-list-horizontal a {
        padding: 5px !important;
    }
    #mobile-menu .menu-bfs-mobile-menu-container li:nth-child(1n+6),
    #mobile-menu .menu-mobile-menu-container li:nth-child(1n+6),
    #mobile-menu .menu-mobile-menu-inglese-container li:nth-child(1n+6) {
        background: #1e212a;
        padding: 1.6em;
    }
    #mobile-menu .menu-bfs-mobile-menu-container li:nth-child(1n+6) a,
    #mobile-menu .menu-mobile-menu-container li:nth-child(1n+6) a,
    #mobile-menu .menu-mobile-menu-inglese-container li:nth-child(1n+6) a {
        font-size: 14px;
    }
    #mobile-menu .menu-bfs-mobile-menu-container li:nth-child(6n),
    #mobile-menu .menu-mobile-menu-container li:nth-child(6n),
    #mobile-menu .menu-mobile-menu-inglese-container li:nth-child(6n) {
        border-top: 1px solid #323644;
        margin-top: 1.6em;
    }
    #mobile-menu .social-links ul.grid.menu {
        border-top: 1px solid #323644;
    }
}

/* Mobile */
@media only screen and (max-width: 767px) {
    #page {
        padding-top: 50px;
    }
    div#mobile-header {
        height: 50px;
    }
    .mobile-header-container {
        height: 50px;
    }
    #mobile-header .logo img {
        padding: 10px 0 5px 0;
        height: 50px;
        width: unset;
        max-height: 50px;
    }
    #mobile-menu li a {
        font-size: 16px;
    }
    #mobile-menu li {
        padding: 1em 0;
    }
    #mobile-menu .menu-bfs-mobile-menu-container,
    #mobile-menu .menu-mobile-menu-container,
    #mobile-menu .menu-mobile-menu-inglese-container,
    #mobile-menu .menu-mobile-menu-pl-container,
    #mobile-menu .menu-bfs-mobile-menu-es-container {
        padding-top: 80px;
    }
    #mobile-menu .sub-menu-open .sub-menu li:first-child {
        margin-top: 1em !important;
    }
    .wpml-ls-legacy-list-horizontal a {
        padding: 0 !important;
    }
    .bf-shop {
        font-size: 16px;
    }
}


