header {
    width: 100%;
    height: 100px;
    background-color:#fff;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9;
    
}

.hamburger_cont  {
    display: none;
}

/*RULES FOR SWITCH*/

#lang_switch_container {
    height: 60px;
    width: 50px;
    position: absolute;
    top: 50px;
    right: 50px;
}

.wpml-ls-legacy-list-horizontal {
    padding: 0 !important;
}

#lang_switch {
    display: flex;
}

#lang_switch .wpml-ls-legacy-list-vertical ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: -21px;
    align-items: center;
    justify-content: center;
}

.wpml-ls-legacy-list-vertical .wpml-ls-item {
    opacity: 0.5;
    padding: 0 10px;
    text-align: center;
    width: 50px;
}

.wpml-ls-legacy-list-vertical .wpml-ls-current-language {
    opacity: 1;
}

.wpml-ls-legacy-list-vertical .wpml-ls-item-it {
    order: 2;
    -webkit-order: 2;
    -moz-order: 2;
}

.wpml-ls-legacy-list-vertical .wpml-ls-item-en {
    order: 1;
    -webkit-order: 1;
    -moz-order: 1;
}

.wpml-ls-legacy-list-vertical .wpml-ls-item {
    display: none;
    padding: 0 0;
    text-align: center;
    order: 2;
    width: 40px;
    height: 30px;
    border-right: 2px solid #cecece;
    border-left: 2px solid #cecece;
}

.wpml-ls-legacy-list-vertical a {
    padding: 0 !important;
}

#lang_switch:hover .wpml-ls-legacy-list-vertical .wpml-ls-item {
    display: block;
    opacity: 0.5;
}

.wpml-ls-legacy-list-vertical .wpml-ls-current-language {
    display: block;
    order: 1;
}

.wpml-ls-legacy-list-vertical a span {
    font-weight: 500;
    color: #2da749;
    line-height: 30px;
}

/**/

#header_desk {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#header_mobile {
    display: none;
}

.header_container {
    width: var(--main-width);
    height: 100%;
    margin: 0 auto;
    background-color:#fff;
    position: relative;
}

.logo {
    position: absolute;
    width: 150px;
    height: 55px;
    left: 0;
    display: flex;
}

.logo a {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.logo svg {
    height: 100%;
}

.logo svg .cls-1{
    fill: #452335;
    transition: 0.3s;
    -webkit-transition: 0.3s;
}

.logo:hover .cls-1 {
    fill-opacity: 0.7;
}

.header_voice_cont {
    display: inherit;
}

.header_voice {
    text-align: center;
    margin-right: 60px;
}

.header_voice:last-of-type {
    margin-right: 0;
}

.header_voice a {
    color: #6d6d6d;
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
    -webkit-transition: 0.3s;
}

.header_voice a:hover {
    color: #2da749;
}

@media screen and (max-width: 1280px) {

    /*RULES FOR SWITCH*/

    #lang_switch_container {
        top: 55px;
    }

    /**/

    .header_voice {
        margin-right: 50px;
    }

    .header_voice a {
        font-size: 0.8rem;
    }

}

@media screen and (max-width: 1024px) {

    /*RULES FOR SWITCH*/

    #lang_switch_container {
        top: 45px;
        right: 25px;
        transition: 0.6s;
        -webkit-transition: 0.6s;
    }

    .lang_switch_scroll {
        top: 21px !important;
    }

    #lang_switch .wpml-ls-legacy-list-vertical ul {
        background: rgb(255, 255, 255, 0.7);
        border: 2px solid #fff;
        width: 70px;
        height: auto;
        padding: 15px 0;
    }

    .wpml-ls-legacy-list-vertical .wpml-ls-item {
        border-left: 0;
        border-right: 0;
    }

    /**/

    header {
        padding: 10px 0;
        background: transparent;
    }

    #header_desk {
        display: none;
    }

    #header_mobile {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .header_container {
        background-color: transparent;
    }

    .logo_mobile {
        width: 300px;
        height: 80px;
        position: relative;
        z-index: 9;
        cursor: pointer;
        text-align: center;
        top: 0;
        transition: 0.6s;
        -webkit-transition: 0.6s;
    }

    .logo_mobile_hide {
        opacity: 0;
    }

    .logo_mobile a {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: inherit;
    }

    .logo_mobile svg {
        height: 100%;
    }

    .logo_mobile svg .cls-1 {
        fill: #2da749;
        transition: 0.3s;
        -webkit-transition: 0.3s;
    }

    .active_logo svg .cls-1 {
        fill: #fff;
    }

    /*RULES FOR BURGER MENU*/

    .hamburger_cont {
        display: block;
        position: absolute;
        left: 0;
        top: 25px;
        z-index: 9;
        width: 70px;
        height: 60px;
        background-color: rgb(255, 255, 255, 0.7);
        border: 2px solid #fff;
        transition: 0.6s;
        -webkit-transition: 0.6s;
    }

    .hamburger_scroll {
        top: 0;
    }

    .hamburger_active {
        background-color: transparent;
        border: 0;
    }

    .hamburger {
        padding: 15px;
        display: inline-block;
        cursor: pointer;
        transition-property: opacity, filter;
        transition-duration: 0.15s;
        transition-timing-function: linear;
        font: inherit;
        color: inherit;
        text-transform: none;
        background-color: transparent;
        border: 0;
        margin: 0;
        overflow: visible; 
    }

    .hamburger.is-active .hamburger-inner,
    .hamburger.is-active .hamburger-inner::before,
    .hamburger.is-active .hamburger-inner::after {
        background-color: #2da749; 
    }
    
    .hamburger-box {
        width: 40px;
        height: 24px;
        display: inline-block;
        position: relative; 
    }
    
    .hamburger-inner {
        display: block;
        top: 50%;
        margin-top: -2px; 
    }

    .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
        width: 40px;
        height: 4px;
        background-color: #2da749;
        border-radius: 4px;
        position: absolute;
        transition-property: transform;
        transition-duration: 0.15s;
        transition-timing-function: ease; 
    }

    .hamburger-inner::before {
        width: 30px;
    }

    .hamburger-inner::before, .hamburger-inner::after {
        content: "";
        display: block; 
    }
    
    .hamburger-inner::before {
        top: -10px; 
    }
    
    .hamburger-inner::after {
        bottom: -10px; 
    }

    .hamburger--collapse .hamburger-inner {
        top: auto;
        bottom: 0;
        transition-duration: 0.13s;
        transition-delay: 0.13s;
        transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); 
    }

    .hamburger--collapse .hamburger-inner::after {
        top: -20px;
        transition: top 0.2s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), opacity 0.1s linear; 
    }

    .hamburger--collapse .hamburger-inner::before {
        transition: top 0.12s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), transform 0.13s cubic-bezier(0.55, 0.055, 0.675, 0.19); 
    }
    
    .hamburger--collapse.is-active .hamburger-inner {
        transform: translate3d(0, -10px, 0) rotate(-45deg);
        transition-delay: 0.22s;
        background-color: #fff;
        transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); 
    }

    .hamburger--collapse.is-active .hamburger-inner::after {
        top: 0;
        opacity: 0;
        transition: top 0.2s cubic-bezier(0.33333, 0, 0.66667, 0.33333), opacity 0.1s 0.22s linear; 
    }

    .hamburger--collapse.is-active .hamburger-inner::before {
        width: 40px;
        top: 0;
        transform: rotate(-90deg);
        background-color: #fff;
        transition: top 0.1s 0.16s cubic-bezier(0.33333, 0, 0.66667, 0.33333), transform 0.13s 0.25s cubic-bezier(0.215, 0.61, 0.355, 1); 
    }

    /*RULES FOR OVERLAY*/
 
    .overlay_mobile {
        background-color: #2da749;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: -200vh;
        left: 0;
        z-index: 8;
        transition: 0.7s;
        -webkit-transition: 0.7s;
    }

    .overlay_mobile_active {
        top: 0;
    }

    .overlay_mobile_container {
        width: var(--main-width);
        height: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .overlay_mobile_voice {
        padding-bottom: 40px;
        margin-left: 70px;
    }

    .overlay_mobile_voice a {
        color: #fff;
        font-weight: 300;
        text-decoration: none;
        text-transform: uppercase;
        transition: 0.3s;
        -webkit-transition: 0.3s;
        font-size: 1.5rem;
    }

    .overlay_mobile_voice a:hover {
        opacity: 0.7;
    }

    .overlay_mobile_social.d_flex {
        justify-content: flex-start;
        align-items: center;
        flex-direction: row;
        padding-top: 50px;
        border-top: 1px solid #cecece;
        width: 90%;
    }

    .overlay_mobile_social.d_flex a svg {
        height: 40px;
        fill-opacity: 0.7;
        transition: 0.3s;
        -webkit-transition: 0.3s;
    }

    .overlay_mobile_social.d_flex a svg .cls-4 {
        fill: #fff;
    }

    .overlay_mobile_social.d_flex a svg:hover {
        fill-opacity: 1;
    }

    .overlay_mobile_social.d_flex a {
        margin-right: 60px;
    }

    .overlay_mobile_social.d_flex a:first-of-type {
        margin-left: 75px;
    }

    .overlay_mobile_social.d_flex a:last-of-type {
        margin-right: 0;
    }

}

@media screen and (max-width: 600px) {

    .header_container {
        width: var(--main-width);
    }

    .logo_mobile {
        width: 190px;
        height: 70px;
    }

    /*RULES FOR SWITCH*/

    #lang_switch_container {
        right: 25px;
    }

    /*RULES FOR OVERLAY*/

    .overlay_mobile {
        width: 100%;
    }

    .overlay_mobile_container {
        width: var(--main-width); 
    }

    .overlay_mobile_voice {
        padding-bottom: 40px;
    }

    .overlay_mobile_voice a {
        font-size: 1.2rem;
    }

    .overlay_mobile_social.d_flex {
        width: var(--main-width);
        padding-top: 40px;
    }

    .overlay_mobile_social.d_flex a {
        margin-right: 50px;
    }

    .overlay_mobile_social.d_flex a svg {
        height: 30px;
    }

}

@media screen and (max-width: 414px) {

    header {
        padding: 0;
    }

    .logo_mobile {
        width: 160px;
        height: 60px;
    }

    .hamburger_cont {
        top: 20px;
    }

    .hamburger_scroll {
        top: 0;
    }

    /*RULES FOR SWITCH*/

    #lang_switch_container {
        top: 35px;
    }

    /*RULES FOR OVERLAY*/

    .overlay_mobile_voice {
		margin-left: 45px;
        padding-bottom: 25px;
    }

    .overlay_mobile_voice a {
        font-size: 1rem;
    }

    .overlay_mobile_social.d_flex {
        margin-left: 20px;
    }

    .overlay_mobile_social.d_flex a:first-of-type {
        margin-left: 30px;
    }

}

@media screen and (max-width: 360px) {

    /*RULES FOR OVERLAY*/

    .overlay_mobile_voice a {
        font-size: 1rem
    }

    .overlay_mobile_voice {
        padding-bottom: 35px;
    }

    .overlay_mobile_social.d_flex {
        padding-top: 30px;
    }

    .overlay_mobile_social.d_flex a {
        margin-right: 40px;
    }

}

@media screen and (max-width: 320px) {

    /*RULES FOR SWITCH*/

    #lang_switch_container {
        top: 25px;
    }

    /**/

    header {
        height: 80px;
    }

    .logo_mobile {
        height: 45px;
    }

    .hamburger_cont {
        top: 10px;
    }

    .hamburger_scroll {
        top: 0;
    }

    /*RULES FOR OVERLAY*/

    .overlay_mobile_voice {
        padding-bottom: 20px;
    }

    .overlay_mobile_voice a {
        font-size: 0.8rem;
    }

    .overlay_mobile_social.d_flex a {
        margin-right: 30px;
    }

    .overlay_mobile_social.d_flex a svg {
        height: 25px;
    }

}