text: export default class AccordionNavigation {
    constructor(list) {
      this.accordionList = document.querySelectorAll(list);
      this.activeClass = 'ativo';
    }
  
    toggleAccordion(item) {
      item.classList.toggle(this.activeClass);
      item.nextElementSibling.classList.toggle(this.activeClass);
    }
  
    // Adiciona os eventos ao accordion
    addAccordionEvent() {
      this.accordionList.forEach((item) => {
        item.addEventListener('click', () => this.toggleAccordion(item));
      });
    }
  
    // Iniciar função
    init() {
      if (this.accordionList.length) {
        // Ativar primeiro item
        this.toggleAccordion(this.accordionList[0]);
        this.addAccordionEvent();
      }
      return this;
    }
  }
  