/* ==========================================================================
   HEADER NOVO — layout inspirado no site AAFBB
   Faixa superior branca: logo | busca | redes sociais | Lojinha | Área Restrita
   Barra azul-marinho: menu principal + CTA "Associe-se"
   ========================================================================== */

.site-header{
  position: relative;
  z-index: 900;
  background: #ffffff;
}

.site-header-container{
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Faixa superior (branca)
   -------------------------------------------------------------------------- */
.site-header-top{
  background: #ffffff;
  border-bottom: 1px solid #ececec;
}

.site-header-top__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 12px 0;
}

/* Logo */
.site-header-logo{
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}
.site-header-logo__img{
  max-height: 62px;
  width: auto;
  height: auto;
}

/* Busca */
.site-header-search{
  display: flex;
  align-items: center;
  flex: 1 1 320px;
  max-width: 420px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #d3d3d3;
  border-radius: 24px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header-search:focus-within{
  border-color: #022241;
  box-shadow: 0 0 0 3px rgba(2,34,65,.08);
}
.site-header-search__input{
  flex: 1 1 auto;
  height: 100%;
  min-width: 0;
  padding: 10px !important;
  margin-top: 5px !important;
  border: 0 !important;
  outline: 0;
  background: transparent;
  color: #383838;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 400;
  box-shadow: none !important;
}
.site-header-search__input::placeholder{ color: #9b9b9b; }
.site-header-search__btn{
  flex: 0 0 46px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c2c2c2;
  color: #ffffff;
  border: 0 !important;
  cursor: pointer;
  transition: background .2s ease;
}
.site-header-search__btn:hover{ background: #022241; }

/* Redes sociais */
.site-header-social{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.site-header-social li{ margin: 0; }
.site-header-social a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #022241;
  transition: background .2s ease, transform .2s ease;
}
.site-header-social a:hover{
  background: #0270bc;
  transform: scale(1.06);
}
.site-header-social img{
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.site-header-social .site-icon-white{
  filter: brightness(0) invert(1);
}

/* Ações: Lojinha + Área Restrita */
.site-header-actions{
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}
.site-header-actions__lojinha{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: #fff100;
  color: #022241;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 24px;
  box-shadow: 0 2px 6px rgba(2,34,65,.12);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.site-header-actions__lojinha:hover{
  background: #ffe600;
  color: #022241;
  transform: translateY(-1px);
}
.site-header-actions__area{
  color: #022241;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.site-header-actions__area:hover{
  color: #0270bc;
  border-color: #fff100;
}

/* --------------------------------------------------------------------------
   Barra de navegação (azul-marinho)
   -------------------------------------------------------------------------- */
.site-header-nav{
  background: #022241;
}
.site-header-nav__inner{
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 54px;
  gap: 8px;
}

.site-header-menu{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
}

/* Lista do menu principal */
.site-header-menu > ul{
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  flex-wrap: wrap;
}
.site-header-menu li{
  position: relative;
  margin: 0;
  padding: 0;
}
.site-header-menu li > a{
  display: block;
  padding: 19px 12px 16px;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.site-header-menu li > a:hover,
.site-header-menu li.current-menu-item > a,
.site-header-menu li.current_page_item > a,
.site-header-menu li.current-menu-ancestor > a,
.site-header-menu li.current_page_ancestor > a{
  color: #fff100;
  border-color: #fff100;
}

/* Indicador de submenu (▾) */
.site-header-menu li.menu-item-has-children > a::after{
  content: '▾';
  margin-left: 6px;
  font-size: 10px;
  color: inherit;
}

/* Dropdown */
.site-header-menu .sub-menu{
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 980;
  min-width: 250px;
  margin: 0;
  padding: 6px 0;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 14px 32px rgba(2,34,65,.2);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.site-header-menu li:hover > .sub-menu,
.site-header-menu li:focus-within > .sub-menu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-header-menu .sub-menu li{ display: block; width: 100%; }
.site-header-menu .sub-menu li > a{
  display: block;
  padding: 10px 20px;
  color: #022241;
  background: transparent;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid #eef1f4;
  white-space: normal;
}
.site-header-menu .sub-menu li > a:hover{
  background: #f2f6f9;
  color: #0270bc;
  border-color: transparent;
}
/* Submenu de 2º nível abre à direita */
.site-header-menu .sub-menu .sub-menu{
  top: 0;
  left: 100%;
}

/* CTA "Associe-se" */
.site-header-cta{
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  margin-left: 10px;
  background: #fff100;
  color: #022241 !important;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.16);
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.site-header-cta:hover{
  background: #ffffff;
  color: #022241;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}

/* Hambúrguer (somente mobile) */
.site-header-burger{
  display: none;
  align-items: center;
  justify-content: center;
  margin: auto 0 auto auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.site-header-burger:hover{ background: rgba(255,255,255,.08); }
.site-header-burger svg{ display: block; }

/* Menu fixo ao rolar (sobrescreve o .menu-fixed do tema) */
.site-header-nav.menu-fixed{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #022241 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1100px){
  .site-header-top__inner{ gap: 18px; }
  .site-header-search{ max-width: 330px; }
  .site-header-menu li > a{ padding-left: 8px; padding-right: 8px; font-size: 13px; }
}

@media screen and (max-width: 992px){
  .site-header-top__inner{
    flex-wrap: wrap;
    row-gap: 12px;
    padding: 10px 0 12px;
  }
  .site-header-logo{ order: 1; }
  .site-header-logo__img{ max-height: 50px; }
  .site-header-actions{ order: 1; margin-left: auto; gap: 10px; }
  .site-header-actions__lojinha{ padding: 8px 16px; font-size: 12px; }
  .site-header-actions__area{ font-size: 13px; }
  .site-header-search{ order: 2; flex: 1 1 100%; max-width: 100%; }
  .site-header-social{ order: 3; margin: 2px auto 0; }

  /* Menu desktop escondido na barra; fica no slide-out */
  .site-header-menu > ul{ display: none; }

  .site-header-nav__inner{ min-height: 52px; }
  .site-header-burger{ order: -1; display: flex; margin-right: auto; margin-left: 0; }
  .site-header-menu{ flex: 1 1 auto; justify-content: flex-end; }
  .site-header-cta{ margin-left: auto; padding: 10px 20px; font-size: 13px; }
}
