/* =========================================================
   SISTEMA MULTILINGUA — Selettore, font, supporto RTL
========================================================= */

/* --- Font specifici per lingua (caricati solo se usati) --- */
html.lang-bn, html.lang-bn body { font-family: 'Hind Siliguri', 'Inter', sans-serif; }
html.lang-ur, html.lang-ur body { font-family: 'Noto Nastaliq Urdu', 'Inter', sans-serif; line-height: 2; }
html.lang-ar, html.lang-ar body { font-family: 'Noto Naskh Arabic', 'Inter', sans-serif; }
html.lang-ur h1, html.lang-ur h2, html.lang-ur h3, html.lang-ur h4,
html.lang-ar h1, html.lang-ar h2, html.lang-ar h3, html.lang-ar h4 { font-family: inherit; }

/* --- Selettore lingua --- */
.lang-switcher { position: relative; }
.lang-switcher-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 50px;
  background: var(--cream-2); border: 1px solid var(--line);
  font-weight: 700; font-size: .85rem; color: var(--green-dark);
  min-height: 40px;
}
.lang-switcher-code { letter-spacing: .5px; }
.lang-switcher-menu {
  list-style: none; margin: 0; padding: 8px;
  position: fixed;
  background: #fff; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
  min-width: 180px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 2000;
}
.lang-switcher-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 10px; font-size: .9rem; font-weight: 600;
  color: var(--ink); text-align: start;
}
.lang-option:hover { background: var(--cream-2); }
@media (hover: none) { .lang-option:active { background: var(--green-soft); } }

.lang-switcher-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 20, 12, .45);
  z-index: 1999;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lang-switcher-backdrop.show { opacity: 1; visibility: visible; }

.site-header-top { position: relative; }
#langSwitcherRoot { position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 480px) {
  #langSwitcherRoot { position: static; transform: none; display: flex; justify-content: center; margin-top: 8px; }
  .site-header-top { flex-direction: column; gap: 4px; padding-bottom: 6px; }
}

/* =========================================================
   SUPPORTO RTL (Urdu e Arabo)
   Il browser gestisce già molto automaticamente grazie a dir="rtl",
   qui sistemiamo solo i punti dove serve un aiuto esplicito.
========================================================= */
[dir="rtl"] .tick li { padding-left: 0; padding-right: 36px; text-align: right; }
[dir="rtl"] .tick li:before { left: auto; right: 0; }

[dir="rtl"] .info-list li,
[dir="rtl"] .dark-info-list li,
[dir="rtl"] .why,
[dir="rtl"] .social-row,
[dir="rtl"] .foot-contact li { text-align: right; }

[dir="rtl"] .info-item,
[dir="rtl"] .why { text-align: right; }

[dir="rtl"] .site-nav a.active::after { left: 14px; right: 14px; }

[dir="rtl"] .field-icon { left: auto; right: 16px; }
[dir="rtl"] .field-input input, [dir="rtl"] .field-input textarea, [dir="rtl"] .field-input select {
  padding-left: 18px; padding-right: 48px;
}
[dir="rtl"] .select-arrow { right: auto; left: 18px; }

[dir="rtl"] .back-link span, [dir="rtl"] .link-arrow span, [dir="rtl"] .read-more span {
  transform: scaleX(-1); display: inline-block;
}

[dir="rtl"] .halal-badge { right: auto; left: -20px; }
@media (max-width: 1024px) {
  [dir="rtl"] .halal-badge { left: 10px; right: auto; }
}

[dir="rtl"] .back-to-top { right: auto; left: 30px; }
@media (max-width: 640px) {
  [dir="rtl"] .back-to-top { right: auto; left: 16px; }
}

[dir="rtl"] .cookie-banner { left: auto; right: 24px; }
@media (max-width: 640px) {
  [dir="rtl"] .cookie-banner { left: 12px; right: 12px; }
}

[dir="rtl"] .store-info-bar .social-icons { padding-left: 0; padding-right: 18px; border-left: none; border-right: 1px solid rgba(255,255,255,.25); }
@media (max-width: 640px) {
  [dir="rtl"] .store-info-bar .social-icons { padding-right: 0; border-right: none; }
}

[dir="rtl"] .shopping-list label { flex-direction: row-reverse; }
[dir="rtl"] .event-close { right: auto; left: 12px; }
[dir="rtl"] .event-banner-inner { padding: 12px 16px 12px 48px; }
@media (max-width: 640px) { [dir="rtl"] .event-banner-inner { padding: 12px 12px 12px 40px; } }

[dir="rtl"] .offline-bar .ico-emoji { transform: translateY(1px) scaleX(-1); display: inline-block; }