body > header {
  /*height: 134px;*/
  background-color: var(--white);
  padding: 0;
}

body .header {
  padding-left: 20px;
  padding-right: 20px;
}

.header {
  height: 100%;
  position: relative;
  padding: 16px 0;
  margin-bottom: 60px;

  .ufg-logo {
    margin-right: 10px;

    img {
      height: 62px;
    }
  }

  .logo {
    margin-right: 20px;

    img {
      height: 46.5px;
    }
  }

  .social-icons {
    flex: 1;
  }

  .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-height: 68px;
  }

  .menu-bar {
    height: auto;
    min-height: 60px;
    border-radius: 2px;
    background-color: var(--main-color);
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    top: 100px;
    z-index: 4;

    .container {
      position: relative;
      height: 100%;
    }

    .menu-logo, .menu-logo-ufg {
      display: none;
      margin: 10px 0;

      a {
        display: block;
        font-size: 0;
      }

      img {
        height: 40px;
      }
    }

    &.fixed {
      position: fixed;
      width: 100%;
      max-width: none;
      left: 0;
      top: 0;
      z-index: 3;
      transform: none;
      padding: 0 20px;

      .menu_component {
        max-width: 940px;
        margin: 0 auto;
      }

      .menu-logo-ufg {
        img {
          height: 32px;
        }
      }

      .menu-logo {
        margin-right: 10px;

        img {
          height: 25px;
        }
      }

      .menu-logo, .menu-logo-ufg {
        display: inline-block;
        left: 0;
        top: 0;
        /*position: absolute;
        width: 83px;*/
      }

      .search_box_component {
        margin-right: 0;
      }
    }
  }

  .menu_component {
    color: var(--white);
    flex: 1;
    font-family: Lato;

    /* First level */
    > .menu-res {
      display: flex;
      flex-wrap: wrap;
      margin: 0;
      justify-content: center;

      > li {
        padding: 0;
        cursor: pointer;
        transition: .2s;

        > a {
          padding: 19px 28.5px 22px 26px;
          font-size: 0.8em;
          display: block;
          position: relative;
          white-space: nowrap;
        }

        &:hover {
          > a {
            opacity: 0.8;

            &:after {
              -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";
              -webkit-transform: rotate(180deg);
              -ms-transform: rotate(180deg);
              transform: rotate(180deg);
            }
          }
        }

        &.sub {

          > a:after{
            content: '';
            width: 24px;
            height: 24px;
            background-image: asset-url('level2/expand-more-white.png');
            position: absolute;
            right: -0.5px;
            top: 18px;
            transition: .2s;
          }

          /* First level submenu */
          .submenu {
            width: 270px;
          }
        }
      }
    }

    /* hide all submenus */
    .sub > .menu-res {
      display: none;
    }

    /* General menu rules*/
    .menu-res {
      list-style: none;
      padding: 0;
      margin: 0;

      > li {
        position: relative;

        > a {
          color: inherit;
          text-decoration: none;
          text-transform: uppercase;
          position: relative;
        }

        &:hover, &.open-menu {
          > .menu-res {
            display: block;
          }
        }
      }

      /* General submenu rules */
      &.submenu {
        border-radius: 2px;
        padding: 7px 0 9px;
        background-color: var(--white);
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
        position: absolute;
        white-space: nowrap;
        width: auto;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
        color: #666;

        > li {
          transition: .2s;

          &:hover {
            background-color: var(--main-color);
            color: var(--white);
          }

          > a {
            text-transform: none;
            display: block;
            padding: 10px 40px 10px 20px;
            color: inherit;
            /*height: 42px;
            line-height: 42px;*/
            font-size: 0.9em;
            line-height: normal;
            white-space: pre-wrap;
          }

          &.sub {
            > a:after{
              content: '';
              width: 24px;
              height: 24px;
              background-image: asset-url('level2/expand-more.png');
              position: absolute;
              right: 0;
              top: 50%;
              -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";
              -webkit-transform: translateY(-50%) rotate(270deg);
              -ms-transform: translateY(-50%) rotate(270deg);
              transform: translateY(-50%) rotate(270deg);
            }

            &:hover > a:after {
              background-image: asset-url('level2/expand-more-white.png');
            }

            > .menu-res {
              left: 100%;
              transform: none;
              top: 0;
            }
          }
        }
      }
    }
  }

  .search_box_component {
    flex: 0 0 24px;
    padding: 0;
    height: auto;

    #options {
      display: none;
    }

    [name=search]#search {
      /*display: none;*/
      width: 0;
      height: 60px;
      /*border-radius: 0 2px 2px 0;*/
      box-sizing: border-box;
      padding: 0;
      border: 0;
      outline: none;
      background-color: var(--white);
      background-image: none !important;
      position: absolute;
      top: 0;
      transform: none;
      right: 0;
      transition: .2s;
    }

    &.open {
      [name=search]#search {
        /*display: block;*/
        width: 362px;
        padding: 20px 30px 20px 20px;
      }
    }

    [type=submit] {
      display: none;
    }
  }

  .search-toggle {
    button {
      outline: none;
      border: none;
      background-color: transparent;
      background-image: asset-url('level2/search-white.svg');
      background-repeat: no-repeat;
      background-position: center;
      width: 24px;
      height: 24px;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      right: 0;
      z-index: 4;
      cursor: pointer;
    }

    &.open {
      button {
        background-image: asset-url('level2/close-gray.svg');
      }
    }
  }
}

.menu-handle {
  border: none;
  outline: none;
  background-color: transparent;
  display: none;
  font-family: Lato;
  font-size: 0.8em;
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--white);
  align-items: baseline;
  padding: 19px 0 22px;

  .icon {
    background-image: asset-url('level2/ic-menu.svg');
    width: 18px;
    height: 12px;
    opacity: 0.54;
    margin-right: 11px;
    background-repeat: no-repeat;
  }
}

.social-toggle {
  background-color: var(--main-color);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin: 0 8px 4px auto;
  display: none;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header .social-icon {
  margin-bottom: 4px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-left: 8px;
  background-color: var(--main-color);
  position: relative;
  transition: .2s;

  a {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }

  img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  &:first-child {
    margin-left: 0;
  }

  &:hover {
    background-color: var(--sub-color);
  }
}

$a11y-padding-v: 7px;
$a11y-padding-h: 16px;

.accessibility-bar {
  background-color: var(--white);
  border-bottom: solid 1px #ececec;
  display: flex;
  padding: $a11y-padding-v $a11y-padding-h;

  .image_component a {
    margin-left: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.menu_accessibility_component.bar {
  font-family: Lato;
  background-color: var(--white);
  flex: 1;
  padding: 0;

  .direct-access {
    span {
      a {
        font-size: 0.7em;
        font-weight: normal;
        font-style: normal;
        font-stretch: normal;
        line-height: normal;
        letter-spacing: normal;
        text-decoration: none;
        color: var(--grey);
      }

      &:hover {
        b {
          background-color: #666666;
        }
      }

      b {
        display: inline-block;
        margin-right: 20px;
        width: 15px;
        height: 15px;
        border-radius: 2px;
        background-color: #aaaaaa;
        font-size: 0.6em;
        font-weight: normal;
        font-style: normal;
        font-stretch: normal;
        line-height: normal;
        letter-spacing: normal;
        text-align: center;
        color: var(--white);
      }
    }
  }

  .access-actions a, .access-actions button, .accessibility_color a, .accessibility_color button {
    display: inline-block;
    border-radius: 2px;
    background-color: #aaaaaa;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    font-size: 0;
    margin-left: 6px;

    &:hover {
      background-color: #666666;
    }
  }

  .increase-font {
    background-image: asset-url('level2/ic-tipo.png');
  }

  .decrease-font {
    background-image: asset-url('level2/ic-tipo_2.png');
  }

  .accessibility_color a, .accessibility_color button {
    background-image: asset-url('level2/ic-contraste.png');
  }

  .additional-content {
    flex: 1;
    margin: -$a11y-padding-v 0;
  }

  .ai-link {
    display: inline-block;
    margin-top: 2px;
    margin-left: 5px;
    img {
      height: 34px;
      vertical-align: top;
    }
  }
}

.menu_i18n_component {
  margin-left: 16px;

  .i18n_dropdown {
    margin: 0;
    padding: 0;
    border: 0;
    background-color: rgba(255,255,255,.8);
    z-index: 5;

    > li {
      background: asset-url('level2/expand-more.png') no-repeat scroll;
      background-position: right center;
      padding-right: 14px;

      a:first-child {
        text-decoration: none;
        font-family: Lato;
        font-size: 0.8em;
        font-weight: normal;
        font-style: normal;
        font-stretch: normal;
        line-height: normal;
        letter-spacing: normal;
        color: var(--grey);
      }

      > ul > li:hover {
        background: transparent;
      }
    }

    &.code > li a:first-child {
      text-transform: uppercase;
    }
  }

  .i18n_submenu {
    position: absolute;
    margin: 0;
    padding: 0;
    background-color: rgba(255,255,255,.8);
    top: 100%;
    border-radius: 0 0 4px 4px;

    li {
      padding: 4px 0;
      &:first-child {
        margin-top: 4px;
      }
    }
  }

  img.flag {
    height: 20px;
  }
}

.breadcrumb_component {
  padding-top: 32px;
  padding-left: 20px;
  padding-right: 20px;
  background-color: var(--light-grey);
  float: none;

  ul, ol {
    max-width: 940px;
    margin: 0 auto;
    padding: 12px 0 10px;
    letter-spacing: normal;
    word-spacing: normal;
    display: flex;
  }

  li {
    font-family: Lato;
    font-size: 0.7em;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 2.14;
    letter-spacing: normal;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--grey);
    flex: 0;

    &:last-child {
      flex: 1;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
    }

    a {
      color: inherit;
      /*text-decoration: none;*/
    }
  }

  .breadcrumb-divider {
    color: inherit;
    padding: 0 11px;
  }
}
