/* TOPO CONTATOS */
.top-bar {
  position:absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #D5006D;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6.5rem;
}
.contact-info {
  display: flex;
  flex: 1;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}
.contact-info span {
  margin-right: 1.5rem;
  white-space: nowrap;
  font-size: 1rem;
}
.contact-info span:nth-child(3) {
  flex: 1;
  text-align: center;
}
.top-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem; /* Aumenta tamanho dos ícones */
  margin-left: auto;
}
.top-icons a {
  margin-left: 0.8rem;
  color: #fff;
  text-decoration: none;
}
.lang-switcher {
  font-size: 1rem; /* aumenta fonte */
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}
/* HEADER PRINCIPAL */
.header {
  position:relative;
  width: 100%;
  background-color: white;
  top: 42px; /* espaço para o top-bar */
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
}
.nav-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.nav-desktop {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.nav-desktop a {
  font-size: 18px;
}
/* BOTÃO INSCRIÇÃO */
.btn-inscricao {
  margin-left: 2.2rem !important; 
  background-color: #D5006D;
  color: #fff!important;
  padding: 0.4rem 1.2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
  margin-top: -9px;
}
.logo img {
  width: 100px;
  height: 80px;
  margin-left: 5rem;
}
.nav-desktop a {
  margin-left: 1.2rem;
  color: #002d62;
  font-weight: 500;
  text-decoration: none;
}
.nav-desktop a:hover {
  color: #ff9900;
}
.header-icons {
  display: none;
}
.menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #D5006D;
  cursor: pointer;
  z-index: 1001; /* Garantir que esteja acima */
  position: relative; /* Necessário para o z-index funcionar */
}
/* MOBILE: Ajustes Top Bar */
@media (max-width: 768px) {
  /* TOPO CONTATOS */
.top-bar {
  padding: 1rem 0.2rem;
}
  .top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem; 
  }
  .contact-info {
    justify-content: center;
    flex-wrap: wrap;
    margin-right: auto;
    gap: -10rem;
  }
  .contact-info span {
    margin-right: 1.5rem;
    white-space: nowrap;
    font-size: 0.8rem;
  }
  .contact-info span:nth-child(3),
  .top-icons {
    display: none;
  }
  /* HEADER MOBILE: Logo à esquerda, botão inscrição ao centro, ícones à direita */
  .header .container {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .nav-wrapper {
    flex: none;
    display: none; /* esconde menu desktop */
  }
  .header-icons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
  }
  .btn-inscricao {
    position: absolute; 
    transform: translateX(-50%);
    margin: 0;
    padding: 0.4rem 1rem;
    margin-left: 0.5rem !important; 
  }
  .logo {
    flex-shrink: 0;
  }
}
.offcanvas-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 50%;
  background-color: #0c1a2c; /* Azul sombrio */
  color: #fff;
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.offcanvas-menu.show {
  right: 0;
}
.close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  align-self: flex-end;
  cursor: pointer;
}
.menu-logo {
  max-width: 80px;
  margin: 10px auto;
  display: block;
}
.offcanvas-nav a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 10px 0;
  font-weight: bold;
  transition: color 0.2s;
}
.offcanvas-nav a:hover {
  color: #00bcd4;
}
.social-icons {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
}
.social-icons a {
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.2s;
}
.social-icons a:hover {
  color: #00bcd4;
}
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  z-index: 999;
}
.overlay.show {
  display: block;
}
.desktop-only {
  display: inline-block;
}
.mobile-only {
  display: none;
}
@media (max-width: 768px) {
  .header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.5rem;
    position: relative;
  }
  .logo {
    flex: 1;
  }
  .nav-wrapper {
    display: none; /* Esconde o menu completo no mobile */
  }
  .btn-inscricao.mobile-only {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #030303;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-size: 1rem;
    text-decoration: none;
    z-index: 10;
  }  
  .header-icons.mobile-only {
    display: flex;
    gap: 1rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
  }
  .header-icons.mobile-only a,
  .header-icons.mobile-only button {
    background: none;
    border: none;
    color: #D5006D;
  }
  .desktop-only {
    display: none;
  }
  .header .container {
    position: relative;
    height: 60px;
  }
  .logo img {
    height: 40px;
    margin-left: 0px;
  } 
}
@media (max-width: 400px) {
  .top-bar {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }
  .top-bar .container {
    padding: 0 1rem;
  }
  .contact-info span {
    font-size: 0.9rem;
    margin-right: 0.5rem;
  }
  .header {
    top: 32px; /* altura real do top-bar em dispositivos pequenos */
  }
}
