/* FAQ pubblica — responsive accordion */
.faq-page {
  min-width: 0;
}
.faq-lead {
  margin: 0 0 1rem;
  color: var(--muted, #5f6368);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 42rem;
}
.faq-lead-note {
  font-size: 0.9rem;
  margin-top: -0.35rem;
}
.faq-lead-note a {
  color: var(--accent, #1292d1);
  font-weight: 600;
}
.faq-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.85rem;
  min-width: 0;
}
.faq-search {
  flex: 1 1 14rem;
  min-width: 0;
}
.faq-search input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  font: 0.95rem/1.35 var(--font, system-ui);
  background: #fff;
}
.faq-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--accent, #1292d1);
  background: var(--accent, #1292d1);
  color: #fff;
  font: 650 0.9rem/1.2 var(--font, system-ui);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.faq-btn-ghost {
  background: #fff;
  color: var(--ink, #1a1d21);
  border-color: var(--line, #e5e7eb);
}
.faq-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
}
.faq-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  min-width: 0;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line, #e5e7eb);
  background: #fff;
  color: var(--ink, #1a1d21);
  font: 600 0.82rem/1.2 var(--font, system-ui);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq-chip.is-on,
.faq-chip:hover,
.faq-chip:focus-visible {
  border-color: var(--accent, #1292d1);
  color: var(--accent, #1292d1);
  outline: none;
}
.faq-chip.is-on {
  background: color-mix(in srgb, var(--accent, #1292d1) 10%, #fff);
}
.faq-section[hidden],
.faq-item[hidden] {
  display: none !important;
}
.faq-empty-reset {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent, #1292d1);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.faq-section {
  margin: 0 0 1.35rem;
  min-width: 0;
}
.faq-section h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  line-height: 1.3;
}
.faq-list {
  display: grid;
  gap: 0.45rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  padding: 0;
  min-width: 0;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font: 650 0.98rem/1.4 var(--font, system-ui);
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  word-break: break-word;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
  border-right: 2px solid var(--muted, #6b7280);
  border-bottom: 2px solid var(--muted, #6b7280);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.25rem;
}
.faq-a {
  padding: 0 1rem 0.95rem;
  color: var(--ink, #1a1d21);
  font-size: 0.95rem;
  line-height: 1.55;
  border-top: 1px solid var(--line, #e5e7eb);
}
.faq-a p {
  margin: 0.7rem 0 0;
}
.faq-a p:first-child {
  margin-top: 0.75rem;
}
.faq-a a {
  color: var(--accent, #1292d1);
  word-break: break-word;
}
.faq-empty,
.faq-foot {
  margin: 1.25rem 0 0;
  color: var(--muted, #5f6368);
  font-size: 0.95rem;
  line-height: 1.5;
}
.faq-foot a {
  color: var(--accent, #1292d1);
  font-weight: 600;
  text-decoration: none;
}
.faq-foot a:hover,
.faq-foot a:focus-visible {
  text-decoration: underline;
}
.faq-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 480px) {
  .faq-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  /* Evita che flex-grow:1 allunghi la search in verticale (buco sotto il campo) */
  .faq-search {
    flex: 0 0 auto;
    width: 100%;
  }
  .faq-btn {
    width: 100%;
  }
  .faq-btn[hidden] {
    display: none !important;
  }
}
