/* TOP BAR */
.top-bar {
  position:relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #002d62;
  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;
  margin-left: auto;
}

.top-icons a {
  margin-left: 0.8rem;
  color: #fff;
  text-decoration: none;
}

.lang-switcher {
  font-size: 1rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}

/* HEADER PRINCIPAL */
.header {
  position: relative;
  width: 100%;
  background-color: white;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 0px; /* Altura da top-bar */
}

.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;
  margin-left: 1.2rem;
  color: #002d62;
  font-weight: 500;
  text-decoration: none;
}

.nav-desktop a:hover {
  color: #ff9900;
}

/* BOTÃO INSCRIÇÃO */
.btn-inscricao {
  left: 14.2rem !important;
  background-color: #002d62;
  color: #fff !important;
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
  margin-top: -9px;
}

.btn-wrapper.desktop-only {
  margin-left: 2.5rem;
}

.logo img {
  width: 80px;
  height: 80px;
  margin-left: 5rem;
}

.header-icons {
  display: none;
}

.menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

/* MOBILE: Ajustes Top Bar */
@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .header {
    margin-top: 0px; /* Ajuste específico para mobile */
  }

  .header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    position: relative;
    height: 60px;
  }

  .logo {
    flex: 1;
    flex-shrink: 0;
  }

  .logo img {
    width: 60px;
    height: 40px;
    margin-left: 0px;
  }

  .nav-wrapper {
    display: none;
  }

  .btn-inscricao.mobile-only {
    display: block;
    position: absolute;
    left: 50% !important;
    margin-right: 10px;
    top: 40px!important;
    transform: translate(-50%, -50%);
    background-color: #002d62;
    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: #002d62;
  }

  .desktop-only {
    display: none;
  }
}

/* OFFCANVAS MENU */
.offcanvas-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 270px;
  height: 50%;
  background-color: #0c1a2c;
  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: 400px) {
  .top-bar {
    display: none;
  }
  .header {
    top: 0px; /* altura real do top-bar em dispositivos pequenos */
  }
}