/* Header isolado e responsivo */
/*#region Header Structures*/
.custom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
}

.custom-header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/*#endregion*/

/*#region Socials*/
.header-socials {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.header-socials a {
  color: #e7e7e7;
  font-size: 1rem;
  transition: color 0.15s;
  text-decoration: none;
}

.header-socials a:hover {
  color: #747474;
}
/*#endregion*/

.header-logo img {
  max-height: 200px;
  width: 200px;            /* Aumenta a largura proporcionalmente */
  height: auto;           /* Mantém a proporção da imagem */
}

/*#region Buttons*/
.mainButtons-headerNav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.mainButtons-headerNav li a {
  text-decoration: none;
  color: #f7f7f7;
  font-weight: 500;
  padding: 0.5rem 1rem;
  display: inline-block;
  border-bottom: 3px solid transparent;
  transition: border-bottom 0.15s ease;
}

.mainButtons-headerNav li a:hover {
  border-bottom: 3px solid #229bd3;
  color: #d1d1d1;
}

.header-sideMenuToggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #e7e7e7;
  cursor: pointer;
  transition: color 0.15s;
}

.header-sideMenuToggle a {
  font-size: 1rem;
  transition: color 0.15s;
  text-decoration: none;
}

.header-sideMenuToggle i:hover {
  color: #c0c0c0;
}
/*#endregion*/

/* Menu lateral (oculto por padrão) */
/*#region Menu Lateral*/
.mainButtons-mobileSideMenu-headerNav {
  position: fixed;
  top: 0;
  right: -300px;
  height: 100%;
  width: 250px;
  background-color: #494949;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  padding: 2rem 1rem;
  flex-direction: column;
  gap: 1rem;
  transition: right 0.3s ease-in-out;
  z-index: 1000;
}

.mainButtons-mobileSideMenu-headerNav.open {
  right: 0;
}

.mainButtons-mobileSideMenu-headerNav ul {
  flex-direction: column;
  gap: 1rem;
}

.mainButtons-mobileSideMenu-headerNav li a {
  text-decoration: none;
  color: #f7f7f7;
  font-weight: 500;
  padding: 0.5rem 1rem;
  display: inline-block;
  border-bottom: 3px solid transparent;
  transition: border-bottom 0.15s ease;
}

.mainButtons-mobileSideMenu-headerNav li a:hover {
  border-bottom: 3px solid #229bd3;
  color: #d1d1d1;
}

.header-sideMenu-closeButton {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  color: #333;
}
/*#endregion*/

/* Dropdown para nav principal */
.dropdown-headerNav {
  position: relative;
}

.dropdown-headerNav > a {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

/* Controle apenas via classe .open */
.dropdown-menu-headerNav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #353535;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 16px rgba(26,68,124,0.10);
  z-index: 100;
  flex-direction: column;
  padding: 0.5em 0;
}

.dropdown-menu-headerNav li {
  width: 100%;
}

.dropdown-menu-headerNav li a {
  color: #f7f7f7;
  padding: 0.7em 1.2em;
  display: block;
  text-decoration: none;
  font-weight: 400;
  border-bottom: none;
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu-headerNav li a:hover {
  background: #229bd3;
  color: #fff;
}

.dropdown-headerNav.open > .dropdown-menu-headerNav {
  display: flex;
}

/* Responsivo: menu lateral mobile */
@media (max-width: 768px) {
  .dropdown-headerNav {
    position: static;
  }
  .dropdown-menu-headerNav {
    position: static;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    min-width: 0;
    padding: 0;
    display: none;
  }
  .dropdown-headerNav.open .dropdown-menu-headerNav {
    display: flex;
  }
}

/* Opcional: seta para indicar dropdown */
.dropdown-headerNav > a i {
  font-size: 0.9em;
  margin-left: 0.2em;
}

/* #region Responsividade */
/* Apenas em telas pequenas */
@media (max-width: 768px) {
  .mainButtons-headerNav {
    display: none;
  }

  .header-sideMenuToggle {
    display: block;
  }

  .mainButtons-mobileSideMenu-headerNav {
    display: flex;
  }
}

/* Em telas maiores, esconda o menu lateral */
@media (min-width: 769px) {
  .mainButtons-mobileSideMenu-headerNav {
    display: none !important;
  }
}
/*#endregion*/

