/**
 * Liste FAQ (preset .mfr-faq-*; attributi data-mfr-accordion-*; runtime mfr-accordion-runtime.js).
 */
.mfr-accordion--open {
  /* override tema: max-height / transition qui se serve */
}

.mfr-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.mfr-faq-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

/* Domanda: riga pulita, testo che va a capo correttamente nel flex */
.mfr-faq-trigger {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 16px;
  text-align: left;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: inherit;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}

.mfr-faq-trigger:hover {
  background: rgba(0, 0, 0, 0.055);
}

.mfr-faq-trigger:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 2px;
}

/* Testo domanda (anche .builder-text lasciato dal builder) */
.mfr-faq-trigger > .builder-text,
.mfr-faq-trigger > span {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

/* Chevron sulla domanda */
.mfr-faq-trigger::after {
  content: "";
  flex-shrink: 0;
  width: 0.45em;
  height: 0.45em;
  margin-left: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.45;
  transform: rotate(45deg);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.mfr-faq-trigger[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  opacity: 0.65;
}

.mfr-faq-content {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 0;
  padding: 14px 16px 16px;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.55;
  color: inherit;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

.mfr-faq-content .builder-text,
.mfr-faq-content > div {
  margin: 0;
}

.mfr-faq-content[hidden] {
  display: none !important;
}
