/* Tendina personalizzata per la scelta del tema (icone Font Awesome) */

/* Il menu desktop nasconde l'overflow: serve visibile per il pannello a tendina */
#header-desktop .header-wrapper .menu {
  overflow: visible;
}

.theme-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.theme-dropdown-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: .5rem;
  min-width: 11rem;
  padding: .4rem 0;
  background-color: #fff;
  border: 1px solid #f0f0f0;
  border-radius: .25rem;
  box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .15);
  z-index: 300;
  text-align: left;
}

.theme-dropdown-panel.open {
  display: block;
}

.theme-dropdown-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .4rem 1rem;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: #161209;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.6rem;
  cursor: pointer;
  text-transform: none;
  white-space: nowrap;
}

.theme-dropdown-item:hover {
  background-color: #f8f8f8;
  color: #161209;
}

.theme-dropdown-item.active {
  color: #2d96bd;
  font-weight: 600;
}

[theme=dark] .theme-dropdown-panel {
  background-color: #252627;
  border-color: #363636;
}

[theme=dark] .theme-dropdown-item {
  color: #a9a9b3;
}

[theme=dark] .theme-dropdown-item:hover {
  background-color: #292a2d;
  color: #fff;
}

[theme=dark] .theme-dropdown-item.active {
  color: #55bde2;
}

[theme=black] .theme-dropdown-panel {
  background-color: #000;
  border-color: #363636;
}

[theme=black] .theme-dropdown-item {
  color: #d9d9d9;
}

[theme=black] .theme-dropdown-item:hover {
  background-color: #111;
  color: #fff;
}

[theme=black] .theme-dropdown-item.active {
  color: #55bde2;
}
