/* ==========================================================================
   Sezione 7 — FAQ (Figma 254:2189)
   ========================================================================== */

.faq-section { background: var(--color-surface); }
.faq-section__inner {
  max-width: 950px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.faq-head { display: flex; flex-direction: column; gap: 11px; text-align: center; }
.faq-head__eyebrow { font-size: var(--fs-body); color: var(--color-text); letter-spacing: 0.06em; }
.faq-head__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-light);
  line-height: var(--lh-h2);
  color: var(--color-text);
}
.faq-head__title strong {
  font-weight: var(--fw-bold);
  background: linear-gradient(178deg, #9cd8e8 0%, #37b1d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Accordion: card bianche (Figma 365:2645) ---- */
.faq { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--color-surface);
  border-radius: 36px;
  box-shadow: 0 0 26.4px rgba(74, 85, 89, 0.16);
  padding: 40px;
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding: 0;
  text-align: left;
  color: var(--color-text);
}
.faq__question { font-size: var(--fs-p22); font-weight: var(--fw-bold); line-height: 1.3; color: #4a5559; }

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  margin-top: 2px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  background: var(--color-text);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq__icon { background: var(--color-info); border-color: var(--color-info); }
.faq-item.is-open .faq__icon::before,
.faq-item.is-open .faq__icon::after { background: #fff; }
.faq-item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

/* risposta: animazione altezza con grid-rows */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a-inner p {
  padding-top: 16px;
  font-size: var(--fs-p22);
  line-height: 1.4;
  color: #4a5559;
}

/* ---- Banner contatto (Figma 365:2681) ---- */
.faq-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 40px;
  border-radius: 36px;
  text-align: center;
  background: linear-gradient(176deg, #9cd8e8 0%, #37b1d3 100%);
  color: #fff;
}
.faq-contact__title { font-size: var(--fs-p28); line-height: 1.2; color: #fff; }
.faq-contact__text { font-size: var(--fs-p20); line-height: 1.2; color: #fff; }
.faq-contact__text a { text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 600px) {
  .faq__question, .faq__a-inner p { font-size: var(--fs-p20); }
  .faq-item{
    padding: 24px;
  }
}
