/* GNV Group AEO FAQ Section, Article FAQ Box, Article TOC & Anchor Headings */

.gnv-home-faq-section {
  padding: clamp(48px, 6vw, 80px) 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid rgba(47, 41, 106, 0.1);
}

.gnv-faq-card,
.gnv-article-faq-box {
  max-width: 920px;
  margin: 0 auto;
  background: #f8f9fc;
  border: 1px solid rgba(47, 41, 106, 0.18);
  border-left: 4px solid #2f296a;
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.gnv-article-faq-box {
  margin: 2.5rem auto 1.5rem;
}

.gnv-faq-card-header,
.gnv-article-faq-header {
  margin-bottom: 1.25rem;
}

.gnv-faq-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(47, 41, 106, 0.12);
  color: #2f296a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.gnv-faq-title,
.gnv-article-faq-title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: #2f296a;
  margin: 0 0 0.4rem;
}

.gnv-faq-subtitle {
  font-size: 0.95rem;
  color: #475569;
  margin: 0;
}

.gnv-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gnv-faq-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gnv-faq-item[open] {
  border-color: rgba(47, 41, 106, 0.35);
  box-shadow: 0 4px 14px rgba(47, 41, 106, 0.08);
}

.gnv-faq-question {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: #0f172a;
}

.gnv-faq-question::-webkit-details-marker {
  display: none;
}

.gnv-faq-index {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2f296a;
  background: rgba(47, 41, 106, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}

.gnv-faq-q-text {
  flex: 1;
}

.gnv-faq-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #2f296a;
  border-bottom: 2px solid #2f296a;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-right: 4px;
}

.gnv-faq-item[open] .gnv-faq-chevron {
  transform: rotate(-135deg);
}

.gnv-faq-answer {
  padding: 0 1.15rem 1rem 3.25rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #334155;
}

.gnv-faq-answer p:last-child,
.gnv-faq-answer ul:last-child {
  margin-bottom: 0;
}

.gnv-faq-answer a {
  color: #2f296a;
  text-decoration: underline;
}

/* Article Table of Contents (Indice dell'articolo) */
.gnv-article-toc {
  max-width: 920px;
  margin: 0 auto 2rem;
}

.gnv-toc-card {
  background: #f8f9fc;
  border: 1px solid rgba(47, 41, 106, 0.18);
  border-left: 4px solid #2f296a;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.gnv-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1rem;
  color: #2f296a;
}

.gnv-toc-header::-webkit-details-marker {
  display: none;
}

.gnv-toc-toggle {
  width: 9px;
  height: 9px;
  border-right: 2px solid #2f296a;
  border-bottom: 2px solid #2f296a;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.gnv-toc-card[open] .gnv-toc-toggle {
  transform: rotate(-135deg);
}

.gnv-toc-list {
  margin: 0.85rem 0 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gnv-toc-item a {
  color: #1e293b;
  text-decoration: none;
  font-size: 0.94rem;
  line-height: 1.45;
  transition: color 0.15s ease;
}

.gnv-toc-item a:hover {
  color: #2f296a;
  text-decoration: underline;
}

.gnv-toc-item-sub {
  margin-left: 1rem;
  list-style-type: circle;
  font-size: 0.9rem;
}

.gnv-anchor-heading {
  scroll-margin-top: 110px;
}

.gnv-heading-anchor {
  display: inline-block;
  margin-left: 0.45rem;
  font-size: 0.75em;
  color: #2f296a;
  opacity: 0.28;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.gnv-anchor-heading:hover .gnv-heading-anchor,
.gnv-heading-anchor:focus {
  opacity: 1;
}
