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

.header_home {
    opacity: 0;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    z-index: 0;
}

.header_home_visible {
    opacity: 1;
    z-index: 5;
}

#header_container {
    width: 1440px;
    height: 100%;
    margin: 0 auto;
}

.header_mobile {
    display: none;
}

.header_desktop {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.header_voice {
    flex: 1 25%;
    text-align: center;
}

.header_voice:first-of-type {
    text-align: left;
    text-transform: uppercase;
}

.header_voice img {
    width: 250px;
}

.header_voice a {
    text-decoration: none;
    color: #000;
}

.header_voice a span {
    text-transform: capitalize;
    font-size: 1.3rem;
    font-weight: 400;
    display: inline-block;
    position: relative;
    transition: 0.3s;
    -webkit-transition: 0.3s;
}

.header_voice a span:after {
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    position: absolute;
    background: #8e0700;
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
}

.header_voice a span:hover:after {
    width: 100%; 
    left: 0;
}

.header_voice a:hover {
    color: #8e0700;
}

.first {
    margin-bottom: 0;
    color: #000;
    font-weight: 600;
    font-size: 2.5rem;
    font-family: 'Rajdhani', sans-serif;
}

.second {
    margin-top: 0;
    color: #8e0700;
    letter-spacing: 2px;
    font-size: 1.5rem;
    font-family: 'Rajdhani', sans-serif;
}

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

    #header_container {
        width: 1280px;
    }

    .first {
        font-size: 2.2rem;
    }

    .second {
        font-size: 1.2rem;
    }

    .header_voice a span {
        font-size: 1.1rem;
    }

}

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

    #header_container {
        width: 1024px;
    }

    .header_voice {
        flex: 1 auto;
    }

}

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

    header {
        background: transparent;
        height: 0;
    }

    .header_home {
        opacity: 1;
        z-index: 7;
    }

    #header_container {
        width: calc(100% - 100px);
        margin: 0 auto;
        position: relative;
    }

    .header_desktop {
        display: none;
    }

    .header_mobile {
        display: block;
        width: 100%;
        height: 100%;
        position: relative;
    }

    /*RULES FOR HAMBURGER*/

    .hamburger_container {
        width: 60px;
        height: 60px;
        background-color: #fff;
        border: 2px solid #8e0700;
        border-radius: 50px;
        position: absolute;
        top: 45px;
        right: 0;
        z-index: 11;
    }
    
    .hamburger {
        padding: 18px 10px;
        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:hover {
        opacity: 0.7; 
    }

    .hamburger.is-active:hover {
        opacity: 0.7; 
    }

    .hamburger.is-active .hamburger-inner,
    .hamburger.is-active .hamburger-inner::before,
    .hamburger.is-active .hamburger-inner::after {
        background-color: #000; 
    }
    
    .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: #000;
        border-radius: 4px;
        position: absolute;
        transition-property: transform;
        transition-duration: 0.15s;
        transition-timing-function: ease; 
    }

    .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;
        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 {
        top: 0;
        transform: rotate(-90deg);
        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_menu {
        width: 70%;
        height: 100vh;
        position: fixed;
        z-index: 2;
        background-color: #fff;
        top: 0;
        right: -100%;
        transition: 0.3s;
        -webkit-transition: 0.3s;
    }

    .overlay_menu_active {
        right: 0;
    }

    .overlay_menu_content {
        width: calc(100% - 100px);
        height: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: right;
    }

    .header_voice_mobile {
        padding-bottom: 40px;
    }

    .header_voice_mobile a {
        color: #000;
        text-decoration: none;
        text-transform: capitalize;
    }

    .header_voice_mobile a span {
        font-size: 2rem;
        display: inline-block;
        position: relative;
    }

    .header_voice_mobile a span:after {
        background: none repeat scroll 0 0 transparent;
        bottom: 0;
        content: "";
        display: block;
        height: 2px;
        right: 0;
        position: absolute;
        background: #8e0700;
        transition: width 0.3s ease 0s, right 0.3s ease 0s;
        width: 0;
    }
    
    .header_voice_mobile a span:hover:after {
        width: 100%; 
        right: 0;
    }
    
    .header_voice_mobile a:hover {
        color: #8e0700;
    }

}

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

    .header_voice_mobile a span::after {
        background: transparent;
    }

    .contact_mobile {
        text-transform: lowercase;
        font-family: 'Rajdhani', sans-serif;
        font-weight: 500;
        letter-spacing: 1px;
    }

    #contatti_menu.header_voice_mobile {
        padding-bottom: 0;
    }

    #contatti_menu.header_voice_mobile a {
        display: block;
    }

    #menu_social.social_line a i {
        color: #000;
    }

}

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

    #header_container {
        width: calc(100% - 50px);
    }

    .header_voice_mobile a span {
        font-size: 1.5rem;
    }

    .overlay_menu_content {
        width: calc(100% - 50px);
    }

}

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

    .hamburger_container {
        width: 50px;
        height: 50px;
        top: 15px;
    }

    .hamburger {
        padding: 13px 6px;
    }

    .overlay_menu {
        width: 80%;
    }

}

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

    .header_voice_mobile a span {
        font-size: 1.2rem;
    }

}

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

    .overlay_menu {
        width: 100%;
    }

}