/* Menu */

.menu--desktop {
  display: block;
}

.menu--mobile {
  display: none;
}

@media (max-width: 991px) {
  .menu--desktop {
    display: none;
  }

  .menu--mobile {
    display: block;
  }
}

/* Menu items */

.menu__item {
  position: relative;
  color: white;
}

.menu__link {
  font-family: helvetica;
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 22px;
  color: black !important;
  padding: 0 0.6666666666666667rem;
  text-decoration: none;
  cursor: pointer;
}

.Navbar_with_Menu.top-nav__one .top-nav__one-wrapper a {
    font-family: 'Helvetica';
    font-weight: 400;
    font-size: 0.7777777777777778rem;
    line-height: 22px;
    color: black !important;
    padding: 0 0.6666666666666667rem;
}

.Navbar_with_Menu.top-nav__one .top-nav__one-wrapper a houver{
    font-family: 'Helvetica';
    font-weight: 400;
    font-size: 0.7777777777777778rem;
    line-height: 22px;
    color: #31508d  !important;
    padding: 0 0.6666666666666667rem;
}

.menu__link:hover,
.menu__link:focus,
.menu__link:active {
  text-decoration: none;
/*   font-family: 'MyriadBold'; */
  color: black !important;
/*   font-weight: 600; */
}
.header{transition: all .5s ease;}
.header.sticky{background: #FFFFFF !important;}    /* ------- fundo menu homepage ----------*/
.menu__link--active-link,
.menu__link--active-branch {
  font-weight: bold;
}

/***** - quando a coluna 1 - menu header faz scroll*/ 

.header.sticky .Navbar_with_Menu.top-nav__one{background: #ffffff; padding: 5px 0;}
.header.sticky .Navbar_with_Menu.top-nav__one .top-nav__one-wrapper a{color: black;}
.header.sticky .Navbar_with_Menu.top-nav__one .top-nav__one-wrapper a:hover{color: #191970;}

@media (min-width: 769px) and (max-width: 1150px) {
  .menu__link {
 
    padding: 0 9px;
  }
}

@media (max-width: 991px) {
  .header.sticky .Navbar_with_Menu.top-nav__one{padding: 0;}
  .menu__item {
    display: block;
    width: 100%;
  }

  
  .header.sticky .Navbar_with_Menu.top-nav__one .top-nav__one-wrapper a{color: white;}
  .header.sticky .Navbar_with_Menu.top-nav__one .top-nav__one-wrapper a:hover{color: #31508d;}

  .menu__link {
    display: block;
/*     font-size: 1.083rem; */
  }
  Navbar_with_Menu.top-nav__one{padding: 0;}
  .Navbar_with_Menu.top-nav__one .top-nav__one-wrapper a{
    padding: 0.35rem 1.225rem;
    display: block;
    background: white;
  }
}

/* Menu items - top level */

.menu__item--depth-1 {
  display: inline-block;
  padding: 0;
/*   text-transform: uppercase; */
}

.menu__item--depth-1 > .menu__link--active-link:after {
  bottom: -3px;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  width: 100%;

}

@media (max-width: 991px) {
  .menu__item--depth-1 {
    border-top: 0px solid #CED4DB;
    padding: 0;
    background: white;
    display: block;
  }
  .menu__link, .header.sticky .Navbar_with_Menu.top-nav__one .top-nav__one-wrapper a{font-size: 1rem !important; color: black !important}
  .Navbar_with_Menu.top-nav__one, .Navbar_with_Menu.top-nav__one .top-nav__one-wrapper{
    padding: 0;
  }

  .menu__item--depth-1 > .menu__link {
    padding: 0.35rem 1.225rem;
  }

  .menu__item--depth-1 > .menu__link--active-link: after {
    content: none;
  }
}

/* Menu items - submenus */

.menu__submenu {
  border-radius: 3px;
  display: none;
  left: 25%;
  position: absolute;
  text-align: left;
  text-transform: none;
  top: 100%;
  width: 270px;
  z-index: 99;
}
.menu__link--toggle{padding-bottom: 1rem;}
.menu__item--open > .menu__submenu {
  display: block;
}

.menu__submenu--level-2 {
  transform: translateX(-50%) translateY(5px);
}

/* Keeps the first menu item's drop down menu aligned to the left of the top level menu item */

.menu__item--depth-1:first-child .menu__submenu--level-2 {
  transform: unset;
}

/* ---------- sub menu --------------------*/
.menu__submenu .menu__item {
  border-bottom: 0.5px solid black ;
  padding: 0;
  width: 100%;
  
}


.menu__submenu .menu__link {
  display: block;
  padding: 0.7rem 1.05rem;
  background-color: white;
  width: 100%;
}

.menu__submenu--level-3 {
  left: 100%;
  top: 0;
}

/* Flyouts for the last two top level menu items go left to keep page responsive */

.menu__item--depth-1:nth-last-child(-n+2) .menu__submenu--level-3 {
  left: auto;
  right: 100%;
  top: 0;
}

/* Accounts for child toggle */

.menu__submenu .menu__item--has-submenu > .menu__link {
  padding-right: 3rem;
}

/* Creates the triangle at the top of the submenu drop down */

@media (max-width: 768px) {
  .menu__submenu--level-2 > .menu__item:first-child:before {
    border-radius: 6px;
    box-shadow: 0 2px 12px 0 rgb(0 0 0 / 20%);
    content: '';
    display: none;
    height: 30px;
    left: 125px;
    margin-left: 1rem;
    overflow: hidden;
    position: absolute;
    top: -12px;
    transform: rotate(45deg);
    transition: background-color .3s;
    width: 30px;
    z-index: 2;
  }

  /* Keeps triangle to the left for the first menu item's drop down menu */

  .menu__item--depth-1:first-child > .menu__submenu--level-2 > .menu__item:first-child:before {
    left: 0;
  }

  .menu__submenu--level-2 > .menu__item:first-child > .menu__link {
    position: relative;
    z-index: 2;
  }
}

.menu__link.menu__link--active-branch.menu__link--active-link, li.menu__item.active a.menu__link{color: #31508d !important;font-weight: 800;}
.menu .menu__item--depth-1>.menu__link--active-link:after{display:none;}
@media (max-width: 991px) {
  .menu__submenu {
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: static;
    transform: unset;
    width: 100%;
  }

  {# MENU INCIAL - ANTES DO SCROLL #}

  .menu__submenu .menu__item {
    border-bottom: none;
    border-top: 2px solid #000000;
    padding: 0;
  }

  .menu__submenu .menu__link {
    display: block;
    padding: 0.7rem 2rem;
    transition: none;
    width: 100%;
  }

  .menu__submenu .menu__item .menu__link:hover,
  .menu__submenu .menu__item .menu__link:focus {
    background-color: inherit;
    transition: none;
/*     font-family: MyriadBold; */
    color:  #31508d;
/*     font-weight: 600; */
  }

  .menu__item--has-submenu > .menu__link {
    width: 70%;
  }

  .menu__submenu--level-3 .menu__item .menu__link {
    padding: 0.7rem 3rem;
  }
}

/* Menu icons */

@media(min-width: 769px) {
  .menu__submenu .menu__child-toggle {
    margin-left: auto;
    padding: 0 1.05rem;
  }

  .menu__child-toggle {
    position: absolute;
    right: 5px;
    top: 30px;
    z-index: 2;
  }

  .menu__item--depth-1 > .menu__child-toggle {
    position: static;
    right: 0;
    top: 0;
    vertical-align: middle;
    transform: rotate(0deg);
    margin-top: 3px;
    transition: all .3s ease;
  }

/* ----------- seta-----------*/
  .menu__item--depth-1:hover > .menu__child-toggle{transform: rotate(-90deg);}
  .menu__child-toggle .menu__child-toggle-icon, .menu__child-toggle .menu__child-toggle-icon:focus, .menu__child-toggle .menu__child-toggle-icon:hover {
    border-top-color: #87ceeb !important;
  }

  .menu__child-toggle-icon {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top-style: solid;
    border-top-width: 7px;
    display: block;
    height: 0;
    margin-left: 1px;
    width: 0;
  }
}

@media (max-width: 991px) {
  .menu__child-toggle {
    background-position: center right 30px;
    background-repeat: no-repeat;
    background-size: 20px;
    border: none;
    cursor: pointer;
    height: 55px;
    padding: 15px 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 30%;
  }

  .menu__child-toggle-icon {  
    background-repeat: no-repeat;
    display: block;
    height: 20px;
    margin-left: auto;
    margin-right: 1.05rem;
    transition: transform 0.4s;
    width: 20px;
  }

  .menu__item--open > .menu__child-toggle .menu__child-toggle-icon {
    transform: rotate(45deg);
    transition: transform 0.4s;
  }
}

