@media all {

    /* MENU */
    header {
        position: sticky;
        top: 80px;
    }

    .fascia-menu {
        position: relative;
        height: 80px;
        width: 100%;
        box-sizing: border-box;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--border);
    }

    .fascia-menu > .buttons {
        display: flex;
    }

    .fascia-menu  > .buttons > .hamburger {
        display: none;
    }

    .hamburger {
        border: 0;
        background: none;
    }

    .fascia-menu .logo {
        height: 45px;
        margin-left: 30px;
    }

    .fascia-menu > .menu {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .fascia-menu .menu-item {
        display: flex;
        align-items: center;
        font-size: 15px;
        text-decoration: none;
        color: var(--testo);
        text-transform: uppercase;
        font-weight: 500;
        transition: .2s ease opacity;
        margin: 0 15px;
        position: relative;
        height: 100%;
        cursor: pointer;
    }

    .fascia-menu .menu-item > img {
        margin-left: 7px;
    }

    .fascia-menu .menu-item:hover {
        opacity: 0.5;
    }

    .fascia-menu .menu-item.sub:hover {
        opacity: 1;
    }

    .navbar-button {
        box-sizing: border-box;
        width: 80px;
        height: 80px;
        display: flex;
        justify-content: center;
        background: none;
        border: 0;
        align-items: center;
        border-left: 1px solid var(--border);
        cursor: pointer;
    }
    
    .fascia-menu .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        display: flex;
        flex-direction: column;
        clip: rect(0px, 300px, 0, 0);
    }

    /* .fascia-menu .menu-item:hover > .submenu {
        clip: rect(0px, 300px, 1000px, 0);
    } */

    .submenu.mobile-open {
        clip: rect(0px, 300px, 1000px, 0);
    }

    .fascia-menu .submenu > a {
        width: 100%;
        min-width: 150px;
        padding: 14px 20px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        color: white;
        background-color: var(--blu);
        text-decoration: none;
        transition: .2s background-color ease;
        text-transform: none;
        font-size: 16px;
        font-weight: 400;
    }

    .fascia-menu .submenu > a:hover {
        background-color: #006fb4;
    }

    .menu-mobile {
        display: none;
    }
    /* FINE MENU */


    /* SEARCH BAR */
    .fascia-search {
        position: absolute;
        top: 0;
        right: 70px;
        width: 0;
        height: 100%;
        background-color: white;
        display: flex;
        align-items: center;
        overflow-x: hidden;
        transition: .2s ease width, .2s ease right;
    }

    .fascia-search.open {
        width: calc(100% - 320px);
    }

    .fascia-search > input {
        padding: 0 10px;
        font-family: "Readex Pro", sans-serif;
        width: 100%;
        font-size: 14px;
        border: 0;
        background: none;
    }

    .fascia-search > button {
        background: none;
        border: 0;
        cursor: pointer;
    }

    .fascia-search img {
        height: 25px;
        width: 25px;
    }
    /* FINE SEARCH BAR */
}




@media only screen and (max-width: 1600px) {

    /* MENU */
    .fascia-menu {
        height: 70px;
    }

    .fascia-menu .logo {
        height: 40px;
        margin-left: 30px;
    }

    button.language {
        height: 70px;
    }

    .fascia-menu .menu-item {
        font-size: 14px;
        margin: 0px 8px;
    }

    .fascia-menu .menu-item>img {
        margin-left: 6px;
    }

    .navbar-button {
        width: 70px;
        height: 70px;
    }

    /* FINE MENU */
}




@media only screen and (max-width: 1400px) {
    /* MENU */
    .fascia-menu {
        height: 60px;
    }

    .fascia-menu .logo {
        height: 36px;
        margin-left: 15px;
    }

    .fascia-menu .menu-item {
        text-transform: capitalize;
        margin: 0px 8px;
    }

    .fascia-menu .menu-item>img {
        margin-left: 5px;
        height: 4px;
    }

    .submenu>a {
        padding: 10px 20px;
        font-size: 14px;
    }

    .navbar-button {
        width: 60px;
        height: 60px;
    }

    button.language {
        height: 60px;
    }

    .fascia-search.open {
        right: 60px;
        width: calc(100% - 240px);
    }
    /* FINE MENU */
}




@media only screen and (max-width: 800px) {

    /* MENU */
    .fascia-menu {
        height: 56px;
    }

    .fascia-menu .logo {
        height: 28px;
        margin-left: 15px;
    }

    .fascia-menu>.menu {
        display: none;
    }

    .menu-item>img {
        margin-left: 5px;
        height: 4px;
    }

    .fascia-menu>.buttons>.language,
    .fascia-menu>.buttons>.search {
        display: none;
    }

    .fascia-menu>.buttons>.hamburger {
        display: flex;
        padding: 0px;
        width: 50px;
        height: 50px;
        justify-content: center;
        align-items: center;
        margin-right: 5px;
    }

    .fascia-menu>.buttons>.hamburger>img {
        height: 35px;
    }

    .navbar-button {
        width: 50px;
        height: 50px;
    }

    .menu-mobile {
        position: fixed;
        top: 50px;
        left: 0px;
        width: 100%;
        height: 100%;
        padding-bottom: 150px; /* è per risolvere il problema sui telefoni android quando scorri in basso e la navbar del browser scompare */
        background-color: var(--blu);
        z-index: 9999;
        flex-direction: column;
        box-sizing: border-box;
        overflow: auto;
    }

    .menu-mobile.open {
        display: flex;
    }

    .menu-mobile>.top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-left: 15px;
        min-height: 56px;
    }

    .menu-mobile>.top img {
        height: 28px;
    }

    .menu-mobile>.top>a {
        transition: .2s opacity ease;
    }

    .menu-mobile>.top>a:hover {
        opacity: 0.5;
    }

    .navbar-button.language {
        border: 0;
    }

    .menu-mobile .buttons {
        display: flex;
        justify-content: center;
    }

    .navbar-button {
        margin: 0px 8px;
        transition: .2s ease opacity;
    }

    .navbar-button:hover {
        opacity: 0.5;
    }

    .menu-mobile .buttons img {
        height: 30px;
    }

    .search-wrap {
        position: relative;
        background-color: #1985cd;
        margin: 30px;
        padding: 0px 20px;
        height: 50px;
        display: flex;
        align-items: center;
        border-radius: 100px;
    }

    .search-wrap>input::placeholder {
        color: #7cd6ff;
    }

    .search-wrap>input {
        background: none;
        border: 0px;
        font-family: "Readex Pro", sans-serif;
        font-weight: 500;
        color: white;
        height: 100%;
        width: 100%;
        padding-right: 30px;
        font-size: 15px;
    }

    .search-wrap>button {
        position: absolute;
        top: 2.5px;
        right: 8px;
        background: none;
        border: 0px;
        width: 45px;
        height: 45px;
        transition: .2s ease opacity;
    }

    .search-wrap>button>img {
        width: 28px;
        height: 28px;
    }

    .search-wrap>button:hover {
        opacity: 0.5;
    }

    .menu-mobile .hamburger {
        display: flex;
        padding: 0px;
        width: 50px;
        height: 50px;
        justify-content: center;
        align-items: center;
        margin-right: 5px;
    }

    .menu-mobile>.menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        border-top: 1px solid #1985cd;
    }

    .menu-mobile .menu-item {
        display: flex;
        flex-direction: column;
        color: white;
        font-size: 16px;
        margin: 0px;
        text-decoration: none;
        border-bottom: 1px solid #1985cd;
    }

    .menu-mobile .menu-item>p {
        display: flex;
        justify-content: space-between;
        padding: 12px 30px;
        width: 100%;
        box-sizing: border-box;
    }

    .menu-mobile .menu-item>p>img {
        z-index: -1;
    }

    .menu-mobile .submenu {
        display: flex;
        flex-direction: column;
        max-height: 0px;
        overflow-y: hidden;
    }

    .menu-mobile .submenu.open {
        max-height: unset;
    }

    .menu-mobile .submenu>a {
        color: white;
        text-decoration: none;
        padding-left: 50px;
    }

    .menu-mobile .submenu>a:hover {
        background-color: #006fb4;
    }
    /* FINE MENU */

    .fascia-search {
        display: none;
    }

    .navbar-button.language {
        display: flex !important;
        height: 50px !important;
        width: 50px !important;
        margin: 0 !important;
        border: 0 !important;
    }
}