/* ═══════════════════════════════════════
   faq.css — Q&A Page
   Not Visual
═══════════════════════════════════════ */

/* ── Intro ── */
.nv-faq-intro-sub {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--nv-text-muted);
  max-width: 460px;
}
@media (max-width: 991px) {
  .nv-faq-intro-sub { max-width: 100%; }
}

/* ── Category label (repeated inside the list) ── */
.nv-faq-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nv-green);
  margin: 56px 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nv-faq-category::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--nv-border);
}
.nv-faq-category:first-of-type { margin-top: 0; }

/* ── Accordion shell ── */
.nv-faq-accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-color: var(--nv-white);
  --bs-accordion-border-color: transparent;
  --bs-accordion-border-width: 0;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--nv-white);
}

.nv-faq-item {
  background: var(--nv-gray-1);
  border: 1px solid var(--nv-border);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--nv-ease-std), background var(--nv-ease-std);
}
.nv-faq-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--nv-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--nv-ease);
}
.nv-faq-item:hover {
  border-color: var(--nv-border-hover);
}
.nv-faq-item.nv-faq-open::after {
  transform: scaleX(1);
}

/* ── Header / button ── */
.nv-faq-header {
  margin: 0;
}

.nv-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  padding: 26px 28px;
  cursor: none;
  font-family: var(--nv-font);
  color: inherit;
  border-radius: 0;
}

.nv-faq-q {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--nv-white);
  transition: color var(--nv-ease-std);
}
.nv-faq-btn:hover .nv-faq-q {
  color: var(--nv-green);
}

.nv-faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color var(--nv-ease-std), background var(--nv-ease-std);
}
.nv-faq-icon::before,
.nv-faq-icon::after {
  content: '';
  position: absolute;
  background: var(--nv-white);
  transition: transform 0.35s var(--nv-ease), background var(--nv-ease-std);
}
.nv-faq-icon::before { width: 10px; height: 1px; }
.nv-faq-icon::after   { width: 1px; height: 10px; }

.nv-faq-item.nv-faq-open .nv-faq-icon {
  background: var(--nv-green);
  border-color: var(--nv-green);
}
.nv-faq-item.nv-faq-open .nv-faq-icon::before,
.nv-faq-item.nv-faq-open .nv-faq-icon::after {
  background: var(--nv-black);
}
.nv-faq-item.nv-faq-open .nv-faq-icon::after {
  transform: rotate(90deg) scaleY(0);
}

/* ── Body / answer ──
   Il padding vive SOLO sul wrapper interno (.nv-faq-body-inner).
   L'esterno (.nv-faq-body) parte da max-height:0 + overflow:hidden,
   quindi da chiuso non c'è NESSUN padding residuo che possa
   rendere visibile il testo: l'altezza reale viene impostata via
   JS (vedi faq.js) misurando lo scrollHeight del wrapper interno. */
.nv-faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--nv-ease);
}
.nv-faq-body-inner {
  padding: 0 28px 28px;
}
.nv-faq-answer {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--nv-text-muted);
  margin: 0;
  max-width: 640px;
}

/* Kill default bootstrap collapse focus ring */
.nv-faq-btn:focus {
  outline: none;
  box-shadow: none;
}

/* ── CTA strip ── */
.nv-faq-cta {
  border: 1px solid var(--nv-border);
  background: var(--nv-gray-1);
  padding: 56px 40px;
  margin-top: 80px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.nv-faq-cta-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  max-width: 460px;
}

@media (max-width: 575px) {
  .nv-faq-btn { padding: 20px 20px; gap: 14px; }
  .nv-faq-body-inner { padding: 0 20px 22px; }
  .nv-faq-q { font-size: 14px; }
  .nv-faq-cta { padding: 40px 24px; }
}

/* ── Tablet: la CTA finale può restare troppo compressa ── */
@media (min-width: 768px) and (max-width: 991px) {
  .nv-faq-cta { padding: 48px 32px; }
}

/* ── Monitor grandi: le risposte lunghe non devono
   allargarsi a dismisura ── */
@media (min-width: 1920px) {
  .nv-faq-answer { max-width: 720px; }
}
