// Script per solucionar l'error aria-hidden en elements enfocables
document.querySelectorAll('[aria-hidden="true"]').forEach(function(parent) {
// Recorre tots els descendents enfocables dins de l'element amagat
parent.querySelectorAll('a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])').forEach(function(child) {
// Si l'element pare està amagat, també inhabilitem el focus als fills
child.setAttribute('tabindex', '-1');
child.setAttribute('data-original-tabindex', child.getAttribute('tabindex')); // Guardem l'original
});
});