/* =====================================================
   FAQ Schema - Accordion
   ===================================================== */

.faq-schema {
  margin: 2rem 0;
  max-width: 860px;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-item.is-open {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

/* Domanda (clickable) */
.faq-q {
  margin: 0;
  padding: 15px 48px 15px 18px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
  background: #f9fafb;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: background 0.15s ease;
}

.faq-q:hover {
  background: #f3f4f6;
}

/* Freccia */
.faq-q::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-q::after {
  transform: translateY(-20%) rotate(-135deg);
}

/* Risposta (chiusa di default) */
.faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 0.97rem;
  line-height: 1.65;
  color: #374151;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.faq-item.is-open .faq-a {
  display: block;
  padding-top: 14px;
}

.faq-a p {
  margin: 0 0 0.7em 0;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

/* Mobile */
@media (max-width: 767px) {
  .faq-schema {
    margin: 1.5rem 0;
  }

  .faq-q {
    padding: 13px 42px 13px 14px;
    font-size: 0.98rem;
  }

  .faq-q::after {
    right: 14px;
  }

  .faq-a {
    padding-left: 14px;
    padding-right: 14px;
    font-size: 0.94rem;
  }
}