YOUR CART

(function () { // Fix scroll delle Nested Tabs SOLO su mobile document.addEventListener('click', function (event) { // 1) Controlla che il click sia su un titolo tab const tabButton = event.target.closest('.e-n-tab-title'); if (!tabButton) return; // 2) Limita a mobile / tablet (puoi regolare il breakpoint) if (window.innerWidth > 1024) { return; } // 3) Trova la barra delle tab (heading) const tabsHeading = tabButton.closest('.e-n-tabs-heading'); if (!tabsHeading) return; // 4) Dopo che Elementor ha cambiato tab, forziamo lo scroll setTimeout(function () { const headerOffset = 0; // altezza approssimativa header sticky → REGOLA TU const rect = tabsHeading.getBoundingClientRect(); const absoluteTop = rect.top + window.pageYOffset; window.scrollTo({ top: absoluteTop - headerOffset, behavior: 'smooth' }); }, 350); // ritardo più alto per sovrascrivere lo scroll di Elementor }, false); })();