/* 🔷 FUNDO DO SETOR 3 */
.setor3 {
  background-color: #363636;
  height: 50px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}

/* 🔷 CONTAINER CENTRALIZADOR */
.container-setor3 {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 🔷 MENU */
.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
  font-family: 'Roboto', sans-serif;
}

.item {
  position: relative;
}

.item-title {
  color: white;
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 15px;
  transition: color 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.item:hover .item-title {
  color: #f58634 !important;
}

/* 🔸 SUBMENU */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 9999;
  border-radius: 4px;
}

.sub-item {
  padding: 10px 15px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
}

.sub-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.item:hover .submenu {
  display: block;
}

.item:hover .item-title {
  color: #fff;
}

/* 🔧 RESPONSIVO */
@media (max-width: 768px) {
  .menu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    gap: 12px;
    justify-content: flex-start;
    padding: 0 10px;
    white-space: nowrap;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }

  .item {
    flex: 0 0 auto;
    position: relative;
  }

  .item-title {
    font-size: 13px;
    padding: 6px 8px;
    white-space: nowrap;
  }

  .submenu {
    left: 0;
    right: auto;
    top: 100%;
    background-color: white;
    border-radius: 4px;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
  }

  .item:hover .submenu {
    display: block;
  }

  /* 🔥 ALTERA O NOME PARA "IMAGENS" APENAS NO MOBILE E ALINHA PERFEITO */
  .banco-de-imagens .item-title {
    font-size: 13px;
    padding: 6px 8px;
    position: relative;
    color: transparent;
  }

  .banco-de-imagens .item-title::after {
    content: "IMAGENS";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: white;
  }
}
