/* ============================================================
   SITI DESIGNS — language selector
   lang.png button that opens a clean English / Italian dropdown
   ============================================================ */

/* --- Hide the Google Translate top banner + gadget entirely --- */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
iframe.skiptranslate,
.skiptranslate > iframe { display: none !important; }
body { top: 0 !important; position: static !important; }
#google_translate_element { display: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* --- Floating widget --- */
.lang-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.lang-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #E8EFF8;
  background: #FFFFFF;
  box-shadow: 0 8px 28px rgba(26, 39, 80, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.18s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s;
}
.lang-btn img {
  width: 24px;
  height: 24px;
  display: block;
  pointer-events: none;
}
.lang-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(26, 39, 80, 0.22); }
.lang-btn:active { transform: translateY(0); }
.lang-widget.open .lang-btn {
  border-color: #1E6FE8;
  box-shadow: 0 0 0 3px rgba(30,111,232,0.18), 0 12px 34px rgba(26,39,80,0.22);
}

/* --- Dropdown menu --- */
.lang-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  min-width: 210px;
  background: #FFFFFF;
  border: 1px solid #E8EFF8;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(26, 39, 80, 0.18);
  padding: 8px;
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22,1,0.36,1);
}
.lang-widget.open .lang-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-menu-head {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9AA6BF;
  padding: 8px 12px 6px;
}

.lang-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: none;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  color: #1A2750;
  transition: background 0.15s;
}
.lang-item:hover { background: #F5F8FF; }
.lang-item-native {
  font-size: 0.92rem;
  font-weight: 600;
}
.lang-item-en {
  font-size: 0.8rem;
  color: #9AA6BF;
  font-weight: 500;
  margin-right: auto;
}
.lang-check {
  width: 17px;
  height: 17px;
  color: #1E6FE8;
  opacity: 0;
  flex-shrink: 0;
}
.lang-item.is-active { color: #1E6FE8; }
.lang-item.is-active .lang-item-native { font-weight: 700; }
.lang-item.is-active .lang-check { opacity: 1; }
