#mainnav ul li a:hover {
    color: #fff !important;
}

#mainnav .sub-menu li:hover>a {
    background-color: #ff9900 !important;
}

#mainnav ul li ul:after {
    background-color: #ff9900 !important;
}

.icon-nav {
    height: 50px;
}

#mainnav ul li ul li ul {
    max-height: 412px;
    overflow-y: auto;
    overflow-x: hidden;
}

input[type="submit"].search-submit{
    visibility: hidden;
    display: none;
}

.mobile-blog-search-form > form  > label > input , .desktop-blog-search-form > form  > label > input{

    background-image: none!important;
    color: #333;
    padding: 0 12px;
    margin: 0;
    outline: 0!important;
    height: 36px;
    min-height: 0;
    line-height: 1;
    border-radius: 0;
    border: solid 1px #ccc!important;
    font-family: arial;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    -webkit-border-radius: 0;
    border-radius: 0;
    background: #eeee !important;
    border-radius: 3px !important;
    font-size: 14px !important;
       
    }

@media only screen and (orientation: landscape) and (max-width: 1024px) {
    #masthead .header-wrap {
        background: #000;
        position: relative !important;
        height: 70px;
        z-index: 9999;
        top: 0;
        left: 0;
        right: 0;
    }
}

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

    /* NAV */
    #masthead {
        padding: 0;
    }

    #masthead .header-wrap {
        background: #000;
        height: 70px;
        position: absolute;
        z-index: 9999;
        top: 0;
        left: 0;
        right: 0;
    }

    #masthead .icon-nav {
        display: flex;
        align-items: center;
        flex: 1 0 0;
    }

    #masthead .icon-nav>a {
        height: 25px;
        margin-left: 30px;
    }

    #masthead .menu-nav {
        flex: 2 0 0%;
    }

    #masthead .menu-nav .btn-menu {
        margin: 18px 0 8px 80%;
    }

    #masthead .menu-nav .btn-menu:before {
        content: ' ';
        width: 30px;
        height: 30px;
        display: block;
        background-size: cover;
        -webkit-mask-size: contain;
        transform: scale(2);
        background-image: url('https://static.iatiseguros.pt/common/icons/menu2.svg');
    }
}

@media (max-width: 768px) {
    /* #content {
        padding-top: 70px !important;
    } */

    #masthead .icon-nav>a {
        margin-left: 0 !important;
    }

    .mobile-blog-search-form > form {
        position: absolute;
        right: 0;
        top: 60px;
        width: 100%;
        padding: 10px 18px !important;
        background-color: white;
        display: none;
    }
    .mobile-blog-search-form > form > .search-submit{
        display: none;
    }

    .mobile-blog-search-form > form  > label{
        width: 100%;
    }

    .mobile-blog-search-form > form  > label > input {
        
        height: 36px;
          
    }
    
    
    .mobile-blog-search-icon {
        position: relative;
        margin: auto;
        padding: 14px;
        filter: invert(1);
    }

    .desktop-blog-search-icon, .desktop-blog-search-form{
        display: none;
    }
    
    .media-nav > a > img {
        width: 16px;
        max-width: unset !important;
    }
}

@media only screen and (min-width: 768px) {
    #menu-blog_iati > .astm-search-menu.is-menu.is-dropdown.menu-item > form {
        margin-top: 35px;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: white;
        padding: 10px !important;
        min-width: 280px;
    }
    #menu-blog_iati > .astm-search-menu.is-menu.is-dropdown.menu-item > form > label > input {
        background: #eeee;
        border-radius: 3px;
    }
    #menu-blog_iati > .astm-search-menu.is-menu.is-dropdown.menu-item > .search-close {
        display: none;
    }
    .mobile-blog-search-icon {
        display: none;
        }
    
    .mobile-blog-search-form > form {
            display: none;
    }

    .desktop-blog-search-icon {
        position: relative;
        margin: auto;
        padding: 14px;
        filter: contrast(0.3);
        top: -18px;
    }

    .desktop-blog-search-form > form {
        position: absolute;
        right: -85px;
        top: 34px;
        width: 40%;
        padding: 10px 18px !important;
        background-color: white;
        display: none;
    }
    .desktop-blog-search-form >form > .search-submit{
        display: none;
    }

    .desktop-blog-search-form > form  > label{
        width: 100%;
    }

    .desktop-blog-search-form > form  > label > input {
        height: 43px;
    }
    
}

@media (max-width: 768px) {
    #menu-blog_iati > .astm-search-menu.is-menu.is-dropdown.menu-item > a {
        display: none;
    }
}

@media only screen and (min-width:769px) and (max-width:1023px){
    #menu-blog_iati li:last-child{
        margin-bottom: 24px;
    }
    .desktop-blog-search-icon{
        top: -13px;
    }
    .desktop-blog-search-form > form{
        position: inherit;
        width: 100%;
        padding: 0px 12px!important;
        background-color: #1c1c1c;
    }
}

/* ul#menu-main-menu > .menu-item:first-of-type a, ul#menu-main-menu > .menu-item:first-of-type a:hover  {
    color: #ff9900 !important;
  } */