/* =========================================================
   Selettore lingua (bandiere tonde in alto a destra)
   ========================================================= */
.lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lang-current,
.lang-option {
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 22, 44, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, border-color .15s;
}
.lang-current:hover,
.lang-option:hover { border-color: #E9DFC0; transform: scale(1.06); }
.lang-current[aria-expanded="true"] { border-color: #E9DFC0; }
.flag {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.flag svg { display: block; width: 100%; height: 100%; }
.lang-menu { display: flex; flex-direction: column; gap: 8px; }
.lang-menu[hidden] { display: none; }
.lang-option { animation: lang-in .15s ease-out; }
@keyframes lang-in { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 760px) {
  .lang-switch { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-option { animation: none; }
}
