/*--------------------------------------------------------------
# Banner
--------------------------------------------------------------*/

.banner {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
}

.banner div a {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  width: 100%;
  margin: auto;
}

.banner div {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-content: center;
  justify-content: center;
  width: 545px;
  margin: auto;
}

#img-esq {
  width: 16%;
}

#img-centro {
  width: 100%;
}

#img-dir {
  width: 45%;
}


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

#header {
  position: relative;
  left: 0;
  top: 0;
  right: 0;
  transition: all 0.5s;
  z-index: 997;
  height: 70px;
  padding: 15px 0;
  transition: all 0.5s;
  box-shadow: 5px 5px 5px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
}

#header #logo img {
  padding: 0;
  margin: 0;
  max-height: 50px;
}

#header .container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 16px;
}


/*--------------------------------------------------------------
# Navigation Menu (desktop)
--------------------------------------------------------------*/

.nav-menu,
.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

#nav-menu-container {
  margin: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu > li {
  position: relative;
}

.nav-menu a {
  padding: 8px;
  text-decoration: none;
  display: inline-block;
  color: black;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 14px;
  outline: none;
}

.nav-menu .menu-active a,
.nav-menu a:hover {
  color: black;
  cursor: pointer;
}


/* Linha de destaque no hover */
.nav-menu > li > a::before,
.nav-menu > li > button.submenu-toggle::before {
  content: "";
  position: absolute;
  left: 0; 
  bottom: 0;
  width: 0; 
  height: 2px;
  background-color: #3777e6;
  visibility: hidden;
  transition: width .3s ease-in-out, visibility .3s;
}

.nav-menu > li:hover > a::before,
.nav-menu > li:hover > button.submenu-toggle::before,
.nav-menu > li.menu-active > a::before {
  visibility: visible;
  width: 100%;
}


/* Dropdown (desktop) */
.dropdown .dropdown-menu {
  position: absolute;
  display: none;
  top: 100%;
  left: 0;
  z-index: 99;
  margin: 4px 0 0 0;
  padding: 10px;
  min-width: 200px;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  background: #fff;
  border-radius: 3px;
}

.dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  transition: .3s;
}

.dropdown-menu a{
  padding: 10px;
  color: #060c22;
  display: block;
  font-size: 13px;
  border-radius: 3px;
}

.dropdown-menu a:hover {
  background: #51A2A6;
  color: #fff;
}

.dropdown-menu .dropdown-divider {
  height: 1px;
  margin: 3px 0;
  background: #eee;
}

.dropdown > a:after, 
.dropdown > button.submenu-toggle::after {
  content: "▾";
  font-size: 0.95rem;
  margin-left: 4px;
}

.submenu-toggle {
  padding: 8px;
  background: transparent;
  border: 0;
  color: black;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  outline: none !important;
  box-shadow: none !important;
}

/*--------------------------------------------------------------
# Menu Mobile
--------------------------------------------------------------*/

.menu-mobile {
  display: none; /* escondido no desktop */
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1200;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;

  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

.menu-mobile span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1B100A;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* “X” no hambúrguer quando aberto */
.menu-mobile.is-open span:nth-child(1) { 
  transform: translateY(8px) rotate(45deg); 
}

.menu-mobile.is-open span:nth-child(2) { 
  opacity: 0; 
}

.menu-mobile.is-open span:nth-child(3) { 
  transform: translateY(-8px) rotate(-45deg); 
}

/* ===== Drawer mobile independente ===== */

/* fundo escurecido do site (sempre atrás do header/nav) */
#mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1400;                 /* abaixo do botão; acima do site */
  display: none;                 /* abre com body.mobile-open */
  pointer-events: none;          /* PATCH: overlay não captura cliques */
}

#mobile-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);   /* PATCH: menos escuro */
  opacity: 0;
  transition: opacity .25s ease;
}

/* painel lateral (esquerda) */
#mobile-drawer .drawer {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 78vw;                   /* ~ 4/5 da tela */
  max-width: 320px;
  background: #081b4b;           /* azul escuro */
  box-shadow: 2px 0 24px rgba(0,0,0,.25);
  overflow-y: auto;

  transform: translateX(-100%);  /* fora da tela inicialmente */
  transition: transform .25s ease;

  pointer-events: auto;          /* PATCH: painel é que é clicável */
}

/* lista do menu dentro do painel */
#mobile-drawer .drawer-menu {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 2px;
}

#mobile-drawer .drawer-menu > li { 
  width: 100%; 
}

#mobile-drawer .drawer-menu a,
#mobile-drawer .drawer-menu .submenu-toggle {
  display: block;
  width: 100%;
  padding: 12px 10px;
  font-size: 16px;
  text-align: left;
  color: #fff;
  cursor: pointer;
}

#mobile-drawer .drawer-menu a:hover {
  background: rgba(255,255,255,.08);
  border-radius: 6px;
}

/* submenu empilhado no drawer */
#mobile-drawer .dropdown .dropdown-menu {
  position: static;
  display: none;
  background: transparent;
  box-shadow: none;
  margin: 0;
  padding: 0 0 6px 10px;        /* leve indentação */
  text-align: left;
}

#mobile-drawer .dropdown.open > .dropdown-menu { 
  display: block !important; 
}

#mobile-drawer .dropdown > .submenu-toggle::after {
  content: "▾";
  margin-left: 6px;
  color: #fff;
  transition: transform .2s;
}

#mobile-drawer .dropdown.open > .submenu-toggle::after { 
  transform: rotate(180deg); 
}

/* estado ABERTO */
body.mobile-open #mobile-drawer { display: block; }
body.mobile-open #mobile-drawer::before { opacity: 1; }
body.mobile-open #mobile-drawer .drawer { transform: translateX(0); }

/* botão hambúrguer/X sempre por cima e branco quando aberto */
@media (max-width: 991px) {

  #header {
    background: #f6f7fd;
  }

 
  body.mobile-open #header {
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden;
  }

  .menu-mobile {
    display: inline-flex;
    align-items: center; 
    justify-content: center; 
    flex-direction: column; 
    gap: 6px;
    position: fixed; 
    top: 12px; 
    right: 12px; 
    z-index: 2000;  
    color: #000 !important;
  }

  .menu-mobile span {
  background: #000 !important;
  }

.menu-mobile.is-open span {
  background: #000 !important;
}
}

/* ——— IMPORTANTÍSSIMO: neutralizar seu overlay antigo + esconder menu desktop ——— */
@media (max-width: 991px) {
  body.mobile-open #nav-menu-container {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    background: transparent !important;
    display: block !important;
    padding-top: 0 !important;

    /* PATCH: esconder o menu desktop ao abrir o drawer */
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* tira a linha decorativa do desktop dentro do mobile */
  .nav-menu > li > a::before,
  .nav-menu > li > button.submenu-toggle::before { display: none; }
}


