/* ============================================
   Language Selector - SOLO BANDIERINE
   ============================================ */
.lang-selector {
  position: relative;
  z-index: 100;
  margin-left: 20px;
}

.lang-current {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.lang-current:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  transform: scale(1.05);
}

.lang-flag {
  font-size: 1.3rem;
  line-height: 1;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  flex-direction: row;
  gap: 5px;
  padding: 8px;
  background: #111;
  border: 1px solid rgba(212, 175, 55, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.lang-selector:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #999;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.lang-option:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: scale(1.1);
}

.lang-option.active {
  background: rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 0 2px var(--gold);
}

.lang-option .lang-flag {
  font-size: 1.2rem;
}

/* Header layout fix */
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Mobile */
@media (max-width: 992px) {
  .lang-selector {
    position: fixed;
    top: 18px;
    left: 15px;
    right: auto;
    margin-left: 0;
    z-index: 1001;
  }
  
  .lang-current {
    width: 38px;
    height: 38px;
  }
  
  .lang-dropdown {
    left: 0;
    right: auto;
  }
}

@media (max-width: 576px) {
  .lang-selector {
    left: 12px;
    top: 15px;
  }
  
  .lang-current {
    width: 35px;
    height: 35px;
  }
  
  .lang-flag {
    font-size: 1.1rem;
  }
}
