/* Guerrini Multilingua v0.9.9 — selettore lingue indipendente dal tema. */
.gw-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.1;
}
.gw-lang a {
  color: inherit !important;
  text-decoration: none !important;
  opacity: .7;
  padding: 3px 0;
}
.gw-lang a.gw-active {
  opacity: 1;
  text-decoration: underline !important;
  text-underline-offset: 5px;
}
.gw-lang a:hover { opacity: 1; }
.gw-lang a:focus-visible { outline: 2px solid #54202b; outline-offset: 4px; border-radius: 2px; }
.gw-menu-lang-item { display: none !important; }
.gw-fixed-switcher {
  --gw-gap: var(--gw-gap-desktop, 16px);
  --gw-edge: var(--gw-edge-desktop, 24px);
  --gw-anchor: 0px;
  display: flex !important;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 2147482999;
  width: max-content;
  max-width: calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  border: 1px solid rgba(84,32,43,.14);
  border-radius: 5px;
  padding: 10px 15px;
  background: rgba(255,255,255,.97);
  color: #54202b;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  line-height: 1.1;
  isolation: isolate;
}
/* Non superporre il ticker: per gli ancoraggi "top" si usa il suo bordo inferiore. */
.gw-fixed-switcher[data-desktop-position="top-left"] {
  top: calc(var(--gw-anchor) + var(--gw-gap)); bottom: auto;
  left: calc(var(--gw-edge) + env(safe-area-inset-left, 0px)); right: auto;
  transform: none;
}
.gw-fixed-switcher[data-desktop-position="top-center"] {
  top: calc(var(--gw-anchor) + var(--gw-gap)); bottom: auto;
  left: 50%; right: auto;
  transform: translateX(-50%);
}
.gw-fixed-switcher[data-desktop-position="top-right"] {
  top: calc(var(--gw-anchor) + var(--gw-gap)); bottom: auto;
  left: auto; right: calc(var(--gw-edge) + env(safe-area-inset-right, 0px));
  transform: none;
}
.gw-fixed-switcher[data-desktop-position="bottom-left"] {
  top: auto; bottom: calc(var(--gw-gap) + env(safe-area-inset-bottom, 0px));
  left: calc(var(--gw-edge) + env(safe-area-inset-left, 0px)); right: auto;
  transform: none;
}
.gw-fixed-switcher[data-desktop-position="bottom-center"] {
  top: auto; bottom: calc(var(--gw-gap) + env(safe-area-inset-bottom, 0px));
  left: 50%; right: auto;
  transform: translateX(-50%);
}
.gw-fixed-switcher[data-desktop-position="bottom-right"] {
  top: auto; bottom: calc(var(--gw-gap) + env(safe-area-inset-bottom, 0px));
  left: auto; right: calc(var(--gw-edge) + env(safe-area-inset-right, 0px));
  transform: none;
}
@media (max-width:782px) {
  .gw-fixed-switcher {
    --gw-gap: var(--gw-gap-mobile, 14px);
    --gw-edge: var(--gw-edge-mobile, 14px);
    padding: 9px 12px;
  }
  .gw-fixed-switcher[data-mobile-position="top-left"] {
    top: calc(var(--gw-anchor) + var(--gw-gap)); bottom: auto;
    left: calc(var(--gw-edge) + env(safe-area-inset-left, 0px)); right: auto;
    transform: none;
  }
  .gw-fixed-switcher[data-mobile-position="top-center"] {
    top: calc(var(--gw-anchor) + var(--gw-gap)); bottom: auto;
    left: 50%; right: auto;
    transform: translateX(-50%);
  }
  .gw-fixed-switcher[data-mobile-position="top-right"] {
    top: calc(var(--gw-anchor) + var(--gw-gap)); bottom: auto;
    left: auto; right: calc(var(--gw-edge) + env(safe-area-inset-right, 0px));
    transform: none;
  }
  .gw-fixed-switcher[data-mobile-position="bottom-left"] {
    top: auto; bottom: calc(var(--gw-gap) + env(safe-area-inset-bottom, 0px));
    left: calc(var(--gw-edge) + env(safe-area-inset-left, 0px)); right: auto;
    transform: none;
  }
  .gw-fixed-switcher[data-mobile-position="bottom-center"] {
    top: auto; bottom: calc(var(--gw-gap) + env(safe-area-inset-bottom, 0px));
    left: 50%; right: auto;
    transform: translateX(-50%);
  }
  .gw-fixed-switcher[data-mobile-position="bottom-right"] {
    top: auto; bottom: calc(var(--gw-gap) + env(safe-area-inset-bottom, 0px));
    left: auto; right: calc(var(--gw-edge) + env(safe-area-inset-right, 0px));
    transform: none;
  }
}
@media (max-width:480px) {
  .gw-lang { font-size: 11px; gap: 10px; }
  .gw-fixed-switcher { padding: 8px 10px; }
}
