.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e60012;
  padding: 10px 24px;
  border-bottom: 4px solid #222;
  border-radius: 0 0 20px 20px;
  position: relative;
  z-index: 100;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-logo img {
  height: 48px;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #ffe657;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-icon {
  font-size: 18px;
  color: #ffffff;
}

.search-input {
  background: #ffffff;
  border: none;
  outline: none;
  height: 36px;
  width: 170px;
  border-radius: 20px;
  padding: 0 16px;
  font-size: 13px;
  transition: width 0.2s ease;
}

.search-input:focus {
  width: 200px;
}

/* Avatar Trigger */
.avatar {
  width: 42px;
  height: 42px;
  background: #d1d5db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid #ffffff;
  flex-shrink: 0;
}

.default-avatar-icon {
  font-size: 20px;
  color: #ffffff;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Pop-up de Escolha de Avatar */
.avatar-popup {
  display: none;
  position: fixed;
  top: 85px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e2e8f0;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  max-width: 90vw;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.avatar-option {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid transparent;
  object-fit: cover;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.avatar-option:hover {
  transform: scale(1.08);
  border-color: #e60012;
}

/* RESPONSIVIDADE NAVBAR */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
    justify-content: space-around;
  }

  .nav-menu {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .search-input {
    width: 120px;
  }

  .search-input:focus {
    width: 140px;
  }

  .avatar-option {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .nav-menu a {
    font-size: 12px;
  }

  .search-input {
    display: none; /* Em telas muito estreitas, oculta a barra genérica */
  }

  .search-icon {
    display: none;
  }
}

/* BOTÃO E MENU DE IDIOMA */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lang-menu {
  display: none;
  position: absolute;
  top: 42px;
  right: 0;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 6px 0;
  z-index: 1001;
  min-width: 130px;
}

.lang-menu.show {
  display: block;
}

.lang-option {
  width: 100%;
  padding: 9px 14px;
  background: none;
  border: none;
  text-align: left;
  font-size: 13px;
  color: #222;
  cursor: pointer;
  display: block;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.lang-option:hover {
  background-color: #f3f4f6;
  color: #e60012;
}

/* OCULTAR BANNER SUPERIOR INTRUSIVO DO GOOGLE */
body {
  top: 0 !important;
}

.goog-te-banner-frame,
.skiptranslate,
#goog-gt-tt {
  display: none !important;
}

.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}