/* ========================================
   PAGINA FAQ
======================================== */

.beltomfaq-page {
  margin: 2rem 0;
}

.beltomfaq-title {
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
}

.beltomfaq-toolbar {
  margin-bottom: 1rem;
}

.beltomfaq-search {
  width: 100%;
  max-width: 420px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  background: #fff;
  box-sizing: border-box;
}

.beltomfaq-search:focus {
  outline: none;
  border-color: #999;
}

.beltomfaq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.beltomfaq-category {
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.beltomfaq-category:hover {
  border-color: #bbb;
}

.beltomfaq-category.is-active {
  background: #222;
  color: #fff;
  border-color: #222;
}

.beltomfaq-list {
  width: 100%;
}

.beltomfaq-item {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

.beltomfaq-item:hover {
  border-color: #d0d0d0;
}

.beltomfaq-question {
  display: grid;
  grid-template-columns: 1fr 20px;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  box-sizing: border-box;
  cursor: pointer;
  background: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
}

.beltomfaq-question:focus {
  outline: none;
}

.beltomfaq-question-text {
  min-width: 0;
  word-break: break-word;
}

.beltomfaq-icon {
  width: 20px;
  height: 20px;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.beltomfaq-icon svg {
  width: 18px;
  height: 18px;
}

.beltomfaq-question[aria-expanded="true"] .beltomfaq-icon {
  transform: rotate(90deg);
}

.beltomfaq-answer {
  padding: 0 18px 18px;
  line-height: 1.7;
  font-size: 15px;
  color: #555;
  box-sizing: border-box;
}

.beltomfaq-answer p:last-child {
  margin-bottom: 0;
}

/* Solo per la vecchia pagina FAQ standalone */
body#module-beltomfaq-faq #main .page-content {
  padding-top: 10px !important;
}

body#module-beltomfaq-faq .beltomfaq-title {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

body#module-beltomfaq-faq .card {
  padding-top: 15px !important;
}

/* ========================================
   BLOCCO FAQ NELLA PAGINA CONTATTI
======================================== */

.beltomfaq-contact-box {
  margin: 0 0 2rem;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fafafa;
}

.beltomfaq-contact-title {
  margin-bottom: 1rem;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.beltomfaq-contact-toolbar {
  margin-bottom: 1rem;
}

.beltomfaq-contact-search {
  width: 100%;
  max-width: 420px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  background: #fff;
  box-sizing: border-box;
}

.beltomfaq-contact-search:focus {
  outline: none;
  border-color: #999;
}

.beltomfaq-contact-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.beltomfaq-contact-category {
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.beltomfaq-contact-category:hover {
  border-color: #bbb;
}

.beltomfaq-contact-category.is-active {
  background: #222;
  color: #fff;
  border-color: #222;
}

.beltomfaq-contact-list {
  width: 100%;
}

.beltomfaq-contact-item {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.beltomfaq-contact-question {
  display: grid;
  grid-template-columns: 1fr 20px;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  box-sizing: border-box;
  cursor: pointer;
  background: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
}

.beltomfaq-contact-question-text {
  min-width: 0;
  word-break: break-word;
}

.beltomfaq-contact-icon {
  width: 20px;
  height: 20px;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.beltomfaq-contact-icon svg {
  width: 18px;
  height: 18px;
}

.beltomfaq-contact-question[aria-expanded="true"] .beltomfaq-contact-icon {
  transform: rotate(90deg);
}

.beltomfaq-contact-answer {
  padding: 0 18px 18px;
  line-height: 1.7;
  font-size: 14px;
  color: #555;
  box-sizing: border-box;
}

.beltomfaq-contact-answer p:last-child {
  margin-bottom: 0;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 991px) {
  .beltomfaq-title {
    font-size: 24px;
  }

  .beltomfaq-search,
  .beltomfaq-contact-search {
    max-width: 100%;
    font-size: 14px;
  }

  .beltomfaq-categories,
  .beltomfaq-contact-categories {
    gap: 8px;
  }

  .beltomfaq-category,
  .beltomfaq-contact-category {
    font-size: 13px;
    padding: 8px 12px;
  }

  .beltomfaq-question,
  .beltomfaq-contact-question {
    grid-template-columns: 1fr 18px;
    padding: 15px 16px;
    font-size: 15px;
  }

  .beltomfaq-icon,
  .beltomfaq-contact-icon {
    width: 18px;
    height: 18px;
  }

  .beltomfaq-icon svg,
  .beltomfaq-contact-icon svg {
    width: 16px;
    height: 16px;
  }

  .beltomfaq-answer {
    padding: 0 16px 16px;
    font-size: 14px;
  }

  .beltomfaq-contact-answer {
    padding: 0 16px 16px;
    font-size: 14px;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {
  .beltomfaq-page {
    margin: 1.5rem 0;
  }

  .beltomfaq-title {
    font-size: 22px;
    margin-bottom: 1rem;
  }

  .beltomfaq-toolbar,
  .beltomfaq-contact-toolbar {
    margin-bottom: 0.875rem;
  }

  .beltomfaq-search,
  .beltomfaq-contact-search {
    font-size: 14px;
    padding: 11px 12px;
  }

  .beltomfaq-categories,
  .beltomfaq-contact-categories {
    gap: 8px;
    margin-bottom: 1rem;
  }

  .beltomfaq-category,
  .beltomfaq-contact-category {
    font-size: 13px;
    padding: 7px 11px;
  }

  .beltomfaq-question,
  .beltomfaq-contact-question {
    grid-template-columns: 1fr 16px;
    padding: 14px 14px;
    font-size: 14px;
  }

  .beltomfaq-icon,
  .beltomfaq-contact-icon {
    width: 16px;
    height: 16px;
  }

  .beltomfaq-icon svg,
  .beltomfaq-contact-icon svg {
    width: 14px;
    height: 14px;
  }

  .beltomfaq-answer,
  .beltomfaq-contact-answer {
    padding: 0 14px 14px;
    font-size: 14px;
  }

  .beltomfaq-contact-box {
    padding: 16px;
  }

  .beltomfaq-contact-title {
    font-size: 20px;
  }
}

.beltomfaq-contact-empty {
  margin-top: 15px;
  color: #555;
}

.beltomfaq-contact-box {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
}

body#contact .beltomfaq-contact-faq-wrapper {
  background: #f5f5f5 !important;
}