/* ====================================================

* 	[Master Stylesheet]
	
	Template Name 	:  Ratio
	Version    		:  1.0
	Author     		:  W3Engineers Ltd.
	Author URI 		:  https://themeforest.net/user/w3engineers 

====================================================
	
	TOC
	
	6. MENU STYLING
		LOGO 
		MENU RIGHT AREA 
		MAIN MENU 
		DROPDOWN 
		DROPDOWN MULTI LEVEL 
		DROPDOWN HOVER EFFECT 
		NAV ICON 
		RESPONSIVE 

===================================================


/* ---------------------------------
6. MENU STYLING
--------------------------------- */
/* Dispositivos que tenham até essa largura - dispositivos menores*/
@media (max-width: 1049px) {
    header {
        position: absolute;
        top: 10px;
        left: 0;
        right: 0;
        z-index: 1000;
        text-align: center;
        font-weight: 400;
        font-size: 1.05em;
        color: #fff;
    }
}

/* Para dispositivos maiores  */
@media (min-width: 1050px) {
    header {
        position: relative;
        top: -7.5px;
        left: 0;
        right: 0;
        z-index: 1000;
        text-align: center;
        font-weight: 400;
        font-size: 1.05em;
        color: #555;
        display: inline-flex;
        justify-content: space-around;
        width: 100%
    }

}

header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    color: #fff;
    box-shadow: 1px 15px 20px rgba(0, 0, 0, .05);
    background: rgba(0, 0, 0, 0.8);
    -webkit-animation: slide-top-anim .3s forwards ease-out;
    animation: slide-top-anim .3s forwards ease-out;
}

header.fixed .logo img {
    content: url("/Portal/++theme++mpt/images/logo_padrao_branco_sombra.png");
    max-height: 6vh;
}

header.fixed .social-media-icon-noticia {
    color: rgb(238, 227, 227) !important;
    padding-bottom: 0px !important;
}

@-webkit-keyframes slide-top-anim {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes slide-top-anim {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }

    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

header.font-black {
    color: inherit;
}

header.font-black.fixed {
    background: #fff;
}


/* LOGO */

header .menu-left-area {
    float: left;
    padding-right: 40px;
}

header .logo img {
    height: 40px;
    margin: 25px 0;
    width: auto;
}


/* MENU RIGHT AREA */

header .menu-right-area {
    float: right;
    height: 90px;
    line-height: 40px;
    margin-left: 15px;
}

header .menu-right-area li>a {
    margin: 25px 0;
    padding: 0px 20px;
    position: relative;
    font-size: 1.2em;
}

header .menu-right-area li>a:hover {
    color: #ddd;
}


/* MAIN MENU */

header .main-menu {
    float: right;
}

header .main-menu>li {
    height: 90px;
}

header .main-menu li.active {
    font-weight: 500;
}

header .main-menu li {
    position: relative;
    float: left;
}

header .main-menu>li>a {
    margin: 0 10px;
    padding: 0 5px;
    height: 90px;
    line-height: 90px;
    position: relative;
    -webkit-transition: all .3s;
    transition: all .3s;
}

header .main-menu>li>a:after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #fff;
    -webkit-transform-origin: left;
    transform-origin: left;
    -webkit-transition: all .2s;
    transition: all .2s;
    -webkit-transform: scale(0);
    transform: scale(0);
}

header .main-menu li>a>i {
    font-size: 1.2em;
    margin-left: 7px;
    line-height: 1;
}

header .visible.main-menu {
    display: block;
}


/* DROPDOWN */

header .main-menu li>ul {
    display: none;
    top: 75px;
    position: absolute;
    width: 180px;
    text-align: left;
    box-shadow: 2px 4px 20px rgba(0, 0, 0, .2);
    background: #fff;
    color: #111;
}

header .main-menu ul.drop-down li {
    display: block;
    margin: 0;
    width: 100%;
    line-height: 1;
}

header .main-menu ul.drop-down li>a {
    display: block;
    padding: 17.5px 20px;
    position: relative;
    width: 100%;
    border-top: 1px solid #f1f2f3;
}

header .main-menu ul.drop-down li:first-child>a {
    border-top: 0;
}


/* DROPDOWN MULTI LEVEL */

header .main-menu .drop-down-lower {
    left: 180px;
    top: 0;
}

header .main-menu ul.drop-down li>ul.drop-down-lower li.d-hover-effect>a {
    padding-left: 25px;
}


/* DROPDOWN HOVER EFFECT */

header .main-menu li.d-hover-effect>ul {
    display: block;
    -webkit-animation: full-opacity-anim .3s forwards;
    animation: full-opacity-anim .3s forwards;
}

header .main-menu ul.drop-down li.d-hover-effect>a {
    color: #900;
    font-weight: bolder;
    cursor: pointer;
}


@-webkit-keyframes full-opacity-anim {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes full-opacity-anim {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


/* NAV ICON */

.menu-nav-icon {
    display: none;
    height: 40px;
    line-height: 40px;
    width: 50px;
    text-align: center;
    cursor: pointer;
    position: absolute;
    left: 50%;
    margin: 10px 0;
    margin-left: -25px;
    font-size: 2em;
}

.menu-nav-icon [class^="icon-"]:before,
[class*=" icon-"]:before {
    line-height: 40px;
}


/* SEARCH AREA */

.src-popup {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    display: none;
    cursor: zoom-out;
    background: #fff;
}

.src-popup .src-input-area {
    position: absolute;
    height: 60px;
    width: 800px;
    left: 50%;
    top: 50%;
    margin-top: -40px;
    margin-left: -400px;
}

.src-popup .src-input-area .label {
    position: absolute;
    font-size: 2em;
    padding: 0;
    top: -40px;
    left: 0;
    right: 0;
    text-align: left;
    cursor: context-menu;
    color: #aaa;
}

.src-popup .src-input-area input {
    height: 60px;
    position: absolute;
    width: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    outline: 0;
    border: 0;
    font-size: 1.4em;
    padding-right: 60px;
    border-bottom: 1px solid #aaa;
    -webkit-transform-origin: left;
    transform-origin: left;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
}

.src-popup .src-input-area input:focus {
    border-color: #aaa !important;
}

.src-popup .src-input-area button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    font-size: 1.7em;
    opacity: 0;
    transition: all .3s 1s ease-in;
    transition: all .3s 1s ease-in;
}

.src-popup.visible {
    display: block;
    -webkit-animation: pop-up-anim .35s cubic-bezier(.1, .84, .23, .99) forwards;
    animation: pop-up-anim .35s cubic-bezier(.1, .84, .23, .99) forwards;
}

.src-popup.visible .src-input-area input {
    -webkit-animation: scaleX .5s .2s cubic-bezier(.1, .84, .23, .99) forwards;
    animation: scaleX .5s .2s cubic-bezier(.1, .84, .23, .99) forwards;
}

.src-popup.visible .src-input-area button {
    -webkit-animation: src-btn-anim .5s .4s cubic-bezier(.1, .84, .23, .99) forwards;
    animation: src-btn-anim .5s .4s cubic-bezier(.1, .84, .23, .99) forwards;
}


@-webkit-keyframes scaleX {
    0% {
        -webkit-transform: scaleX(0);
    }

    100% {
        -webkit-transform: scaleX(1);
    }
}

@-webkit-keyframes src-btn-anim {
    0% {
        opacity: 0;
        -webkit-transform: translateY(-100px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0px);
    }
}

@-webkit-keyframes pop-up-anim {
    0% {
        opacity: 0;
        -webkit-transform: translateY(-100px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0px);
    }
}

@keyframes scaleX {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

@keyframes src-btn-anim {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes pop-up-anim {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}


/* RESPONSIVE */

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

    header {
        font-size: .95em;
        text-align: center;
    }

    header .menu-left-area {
        padding-right: 15px;
    }

    header .logo img {
        height: 35px;
        margin: 27.5px 0;
    }

    header .menu-right-area li>a {
        padding: 0 15px;
    }

    header .main-menu {
        float: none;
    }

    header .main-menu>li>a {
        padding: 0px 5px;
        margin: 0 5px;
    }


    /* SEARCH AREA */

    .src-popup .src-input-area {
        width: 80%;
        margin-left: -40%;
    }

    .src-popup .src-input-area .label {
        font-size: 1.5em;
    }

}




/*FAZ O ÍCONE DO MENU APARACER EM TAMANHOS DE TELAS MAIORES PARA EVITAR A QUEBRA DOS ITENS DO MENU*/
@media only screen and (max-width: 1050px) {

    header .menu-left-area {
        float: none;
        padding: 0 0 0 20px;
        display: inline-block;
    }

    header .logo img {
        height: 35px;
        margin: 12.5px 0;
    }

    header .menu-right-area {
        height: 60px;
    }

    header .menu-right-area li>a {
        margin: 10px 0;
    }

    header .main-menu {
        display: none;
        float: none;
        clear: both;
        max-height: 400px;
        overflow: auto;
        margin-left: -15px;
        text-align: left;
        margin-right: -15px;
        box-shadow: 0px 2px 10px rgba(0, 0, 0, .3);
        border-top: 1px solid #ccc;
        background: #fff;
        color: #111;
    }

    header .main-menu li {
        float: none;
    }

    header .main-menu>li {
        display: block;
        height: auto;
        border-bottom: 1px solid #ddd;
    }

    header .main-menu>li:last-child {
        border-bottom: 0;
    }

    header .menu-wrapper {
        height: 60px;
    }

    header .main-menu li>a {
        height: 60px;
        line-height: 60px;
    }

    header .main-menu li>a,
    header .main-menu ul.drop-down li>a {
        display: block;
        line-height: 1;
        height: auto;
        padding: 15px;
        background: none;
    }

    header .main-menu>li>a:hover {
        color: #900;
    }

    header .main-menu li ul {
        top: 60px;
        overflow: hidden;
        position: static;
        width: auto;
        box-shadow: none;
        background: none;
    }

    header .main-menu li:hover ul>li {
        margin-left: 10px;
    }

    header .main-menu ul.drop-down li:first-child>a {
        border-top: 1px solid #aaa;
    }

    header .main-menu li>a:after {
        display: none;
    }

    header .main-menu ul.drop-down li>a:after {
        display: none;
    }

    header .menu-nav-icon {
        left: 0;
        margin: 0;
        top: 0px;
        display: inline-block;
    }


    /* SEARCH AREA */

    .src-popup .src-input-area {
        width: 90%;
        margin-left: -45%;
    }

    .src-popup .src-input-area .label {
        font-size: 1.1em;
        top: -20px;
    }

}

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

    header .logo img {
        height: 30px;
        margin: 15px 0;
    }

    header .menu-right-area {
        line-height: 33px;
        margin-left: 0px;
    }

    header .menu-right-area li>a {
        margin: 12.5px 0;
        padding: 0px 10px;
    }

}

@media only screen and (min-width: 890px) {
    .menu-interno #main-menu>li>a {
        color: #f1f2f3;
    }
}
