/* =====================================================================
   Pagina "Le tue domande" - disegno in stile Apple, compatto: ricerca sempre in vista, aree
   tematiche a lato (sul telefono in un foglio che sale dal basso), una sola area alla volta
   con le sue domande in righe che si aprono, ricerca su tutte le domande con i risultati in
   ordine di pertinenza. File aggiuntivo: per tornare indietro basta non caricarlo (la pagina
   riprende il disegno di prima). Pensato prima per il telefono (campi a 16px, aree di tocco
   da 44px, margini di sicurezza).
   Senza JavaScript tutte le aree restano nella pagina, una dopo l'altra.
   ===================================================================== */

.fq,
.fq-sheet {
  --fq-ink: #1d1d1f;
  --fq-sub: #515154;
  --fq-mute: #6e6e73;
  --fq-line: rgba(29, 29, 31, 0.1);
  --fq-bg: #fbf8f5;
  --fq-fill: rgba(120, 120, 128, 0.12);
  --fq-accent: var(--asser-primary, #7d445e);
  --fq-accent-2: var(--asser-secondary, #4b2338);
  --fq-sticky: 57px;
  --fq-barh: 72px;
  --fq-font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fq-display: "Sora", "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --fq-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--fq-ink);
  font-family: var(--fq-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fq {
  display: block;
  width: 100%;
  overflow-x: clip;
}

.fq *,
.fq *::before,
.fq *::after,
.fq-sheet *,
.fq-sheet *::before,
.fq-sheet *::after {
  box-sizing: border-box;
}

.fq a,
.fq-sheet a {
  text-underline-offset: 0.18em;
}

.fq button,
.fq-sheet button {
  font-family: inherit;
}

.fq-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.fq [hidden],
.fq-sheet[hidden] {
  display: none !important;
}

.fq-wrap {
  width: 100%;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
}

/* ---------- tinte delle icone (una per famiglia di aree) ---------- */
[data-fq-tone="plum"] { --fq-t1: #92506f; --fq-t2: #4b2338; }
[data-fq-tone="green"] { --fq-t1: #3f9486; --fq-t2: #1e5b51; }
[data-fq-tone="amber"] { --fq-t1: #e69a3a; --fq-t2: #b0600d; }
[data-fq-tone="indigo"] { --fq-t1: #6f8acb; --fq-t2: #38508f; }
[data-fq-tone="slate"] { --fq-t1: #8b909c; --fq-t2: #565a65; }

.fq-ico {
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--fq-t1, #92506f), var(--fq-t2, #4b2338));
  box-shadow: 0 3px 8px rgba(29, 29, 31, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
}

.fq-ico--lg {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  box-shadow: 0 6px 14px rgba(29, 29, 31, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.fq-svg {
  display: block;
  flex: none;
}

/* ---------- testata (compatta) ---------- */
.fq-hero {
  padding: clamp(1.7rem, 4.2vw, 2.7rem) 0 clamp(1rem, 2.2vw, 1.4rem);
  background:
    radial-gradient(900px 320px at 50% -10%, rgba(125, 68, 94, 0.12), rgba(125, 68, 94, 0) 70%),
    linear-gradient(#ffffff, var(--fq-bg));
  text-align: center;
}

.fq-kicker {
  margin: 0 0 0.7rem;
  color: var(--fq-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fq .fq-title {
  max-width: 22em;
  margin: 0 auto;
  color: var(--fq-ink);
  font-family: var(--fq-display);
  font-size: clamp(1.65rem, 3.3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.fq .fq-lead {
  max-width: 46rem;
  margin: 0.75rem auto 0;
  color: var(--fq-sub);
  font-size: clamp(0.98rem, 1.7vw, 1.1rem);
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}

.fq-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1.4rem;
  margin: 1.1rem 0 0;
  color: var(--fq-mute);
  font-size: 0.9rem;
  font-weight: 500;
}

.fq-stats b {
  color: var(--fq-ink);
  font-family: var(--fq-display);
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- barra della ricerca (resta sotto la barra del sito) ---------- */
.fq-tools {
  position: sticky;
  top: var(--fq-sticky);
  z-index: 40;
  padding: 0.7rem 0;
  border-top: 1px solid var(--fq-line);
  border-bottom: 1px solid var(--fq-line);
  background: rgba(251, 248, 245, 0.97);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

.fq:not(.fq-js) .fq-tools {
  display: none;
}

.fq-search {
  max-width: 46rem;
  margin: 0 auto;
}

.fq-search__field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0 0.55rem 0 1.05rem;
  border: 1px solid var(--fq-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04), 0 8px 22px rgba(29, 29, 31, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fq-search__field:focus-within {
  border-color: rgba(125, 68, 94, 0.55);
  box-shadow: 0 0 0 4px rgba(125, 68, 94, 0.14), 0 8px 22px rgba(29, 29, 31, 0.06);
}

.fq-search__icon {
  display: grid;
  flex: none;
  place-items: center;
  color: var(--fq-mute);
}

.fq .fq-search input[type="search"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 50px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--fq-ink);
  font-family: var(--fq-font);
  font-size: 1.02rem;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
}

.fq .fq-search input[type="search"]::placeholder {
  color: var(--fq-mute);
  opacity: 1;
}

.fq .fq-search input[type="search"]::-webkit-search-cancel-button,
.fq .fq-search input[type="search"]::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
}

.fq .fq-search__clear {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--fq-fill);
  color: var(--fq-sub);
  cursor: pointer;
}

.fq .fq-search__clear:hover {
  background-color: rgba(120, 120, 128, 0.22);
}

.fq-search__key {
  display: inline-grid;
  flex: none;
  min-width: 26px;
  height: 26px;
  margin-right: 0.35rem;
  place-items: center;
  border: 1px solid var(--fq-line);
  border-radius: 8px;
  background: #f6f3f1;
  color: var(--fq-mute);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- argomenti (filtri) e messaggio ---------- */
.fq-meta {
  padding-top: 0.95rem;
  padding-bottom: 0.1rem;
}

.fq-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.4rem;
  margin: 0;
}

.fq-topics__label {
  flex: none;
  margin-right: 0.2rem;
  color: var(--fq-mute);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* capsula con l'icona dell'argomento: tinta chiara della famiglia; "premuta" = piena, nel colore del sito */
.fq .fq-chip {
  --fq-chip-bg: #f7eff3;
  --fq-chip-line: rgba(125, 68, 94, 0.2);
  --fq-chip-ink: #4b2338;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  margin: 0;
  padding: 3px 11px 3px 3px;
  border: 1px solid var(--fq-chip-line);
  border-radius: 999px;
  background: var(--fq-chip-bg);
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.05);
  color: var(--fq-chip-ink);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.22s var(--fq-ease), box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, opacity 0.2s ease;
}

.fq .fq-chip[data-fq-tone="green"] {
  --fq-chip-bg: #ebf5f2;
  --fq-chip-line: rgba(63, 148, 134, 0.3);
  --fq-chip-ink: #1e5b51;
}

.fq .fq-chip[data-fq-tone="amber"] {
  --fq-chip-bg: #fcf3e4;
  --fq-chip-line: rgba(230, 154, 58, 0.34);
  --fq-chip-ink: #7a4508;
}

.fq .fq-chip[data-fq-tone="indigo"] {
  --fq-chip-bg: #eef1fb;
  --fq-chip-line: rgba(111, 138, 203, 0.32);
  --fq-chip-ink: #2c4276;
}

.fq .fq-chip .fq-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(29, 29, 31, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: background 0.22s ease;
}

.fq-chip__text {
  display: inline-block;
  white-space: nowrap;
}

.fq-chip__text::first-letter {
  text-transform: uppercase;
}

/* il numero di domande compare quando si cerca o si filtra: e' quello che resta con le scelte fatte */
.fq-chip__n {
  display: none;
  min-width: 1.7rem;
  padding: 3px 7px 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--fq-chip-ink);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-align: center;
}

.fq-topics.is-active .fq-chip__n {
  display: inline-block;
}

.fq .fq-chip:active {
  transform: scale(0.97);
}

.fq .fq-chip[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--fq-accent), var(--fq-accent-2));
  box-shadow: 0 8px 20px rgba(75, 35, 56, 0.28);
  color: #fff;
}

.fq .fq-chip[aria-pressed="true"] .fq-ico {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.fq .fq-chip[aria-pressed="true"] .fq-chip__n {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.fq .fq-chip[aria-disabled="true"] {
  box-shadow: none;
  cursor: default;
  opacity: 0.4;
}

@media (hover: hover) {
  .fq .fq-chip:hover {
    box-shadow: 0 8px 18px rgba(29, 29, 31, 0.12);
    transform: translateY(-1px);
  }

  .fq .fq-chip[aria-pressed="true"]:hover {
    box-shadow: 0 10px 24px rgba(75, 35, 56, 0.34);
  }

  .fq .fq-chip[aria-disabled="true"]:hover {
    box-shadow: none;
    transform: none;
  }
}

/* con i numeri (si sta cercando) le capsule diventano tessere in griglia 4 x 2: sempre in ordine, i numeri allineati a destra */
.fq-topics.is-active {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.fq-topics.is-active .fq-topics__label {
  grid-column: 1 / -1;
  margin: 0 0 -0.1rem 0.25rem;
}

.fq .fq-topics.is-active .fq-chip {
  width: 100%;
}

.fq-topics.is-active .fq-chip__n {
  margin-left: auto;
}

.fq-statusbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 0.8rem;
}

.fq .fq-status {
  margin: 0.65rem 0 0;
  color: var(--fq-sub);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.fq .fq-status strong {
  color: var(--fq-ink);
}

.fq .fq-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  margin: 0.65rem 0 0;
  padding: 0 0.9rem 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(125, 68, 94, 0.09);
  color: var(--fq-accent-2);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.fq .fq-reset:hover {
  background: rgba(125, 68, 94, 0.17);
}

.fq .fq-reset:active {
  transform: scale(0.97);
}

/* ---------- aree a lato e contenuto ---------- */
.fq-layout {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
  padding-top: 1.1rem;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.fq-nav {
  position: sticky;
  top: calc(var(--fq-sticky) + var(--fq-barh) + 14px);
  max-height: calc(100vh - var(--fq-sticky) - var(--fq-barh) - 28px);
  padding: 0.2rem 0.4rem 1rem 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.fq-nav__group + .fq-nav__group {
  margin-top: 1rem;
}

.fq-nav__title {
  margin: 0 0 0.35rem;
  padding: 0 0.6rem;
  color: var(--fq-mute);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fq-nav ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fq-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fq .fq-nav__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0.6rem;
  border-radius: 12px;
  color: var(--fq-ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.fq .fq-nav__item .fq-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.fq-nav__text {
  flex: 1 1 auto;
  min-width: 0;
}

.fq-nav__n {
  flex: none;
  color: var(--fq-mute);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fq .fq-nav__item:hover {
  background: rgba(120, 120, 128, 0.1);
}

.fq .fq-nav__item[aria-current="true"] {
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.05), 0 6px 16px rgba(75, 35, 56, 0.1);
  color: var(--fq-accent-2);
}

.fq .fq-nav__item.is-dim {
  opacity: 0.42;
}

.fq-nav__n.is-hit {
  color: var(--fq-accent);
  font-weight: 800;
}

.fq-main {
  min-width: 0;
}

/* ---------- area ---------- */
.fq-area {
  min-width: 0;
  scroll-margin-top: calc(var(--fq-sticky) + var(--fq-barh) + 14px);
}

.fq-area + .fq-area {
  margin-top: 2.6rem;
}

.fq-area__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fq-area__text {
  flex: 1 1 auto;
  min-width: 0;
}

.fq .fq-area__text h2 {
  margin: 0;
  color: var(--fq-ink);
  font-family: var(--fq-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.fq .fq-area__text p {
  margin: 0.3rem 0 0;
  color: var(--fq-sub);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

.fq-area__count {
  flex: none;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: var(--fq-fill);
  color: var(--fq-sub);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fq .fq-openall {
  flex: none;
  min-height: 34px;
  margin: 0;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--fq-line);
  border-radius: 999px;
  background: #fff;
  color: var(--fq-accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.fq .fq-openall:hover {
  border-color: rgba(125, 68, 94, 0.35);
  background: #fbf3f6;
}

/* ---------- elenco delle domande ---------- */
.fq .fq-list {
  margin: 1.1rem 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--fq-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04);
  list-style: none;
}

.fq-item {
  margin: 0;
  padding: 0;
  list-style: none;
  scroll-margin-top: calc(var(--fq-sticky) + var(--fq-barh) + 12px);
}

.fq-item + .fq-item {
  border-top: 1px solid var(--fq-line);
}

.fq-d {
  margin: 0;
  padding: 0;
}

.fq-d > summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 54px;
  padding: 0.8rem 1.1rem;
  color: var(--fq-ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

.fq-d > summary::-webkit-details-marker {
  display: none;
}

.fq-d > summary::marker {
  content: "";
}

.fq-d > summary:hover {
  background: #fcfaf9;
}

.fq-d > summary:focus-visible {
  outline: 3px solid rgba(125, 68, 94, 0.55);
  outline-offset: -3px;
  border-radius: 14px;
}

.fq-q {
  flex: 1 1 auto;
  min-width: 0;
  text-wrap: pretty;
}

.fq-sum {
  display: grid;
  flex: 1 1 auto;
  gap: 0.2rem;
  min-width: 0;
}

.fq-tag {
  color: var(--fq-mute);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fq-chev {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--fq-fill);
  transition: background-color 0.2s ease, transform 0.3s var(--fq-ease);
}

.fq-chev::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--fq-sub);
  border-bottom: 2px solid var(--fq-sub);
  content: "";
  transform: translate(-50%, -72%) rotate(45deg);
}

.fq-d[open] > summary .fq-chev {
  background: rgba(125, 68, 94, 0.14);
  transform: rotate(180deg);
}

.fq-d[open] > summary .fq-chev::before {
  border-color: var(--fq-accent-2);
}

.fq-d[open] > summary {
  background: linear-gradient(#fff, #fcfaf9);
}

.fq-a {
  padding: 0 1.1rem 1.15rem;
  overflow: hidden;
}

.fq .fq-a p {
  max-width: 68ch;
  margin: 0;
  color: var(--fq-sub);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.65;
}

.fq-a__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.fq .fq-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  margin: 0;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--fq-line);
  border-radius: 999px;
  background: #fff;
  color: var(--fq-accent-2);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.fq .fq-mini:hover {
  border-color: rgba(125, 68, 94, 0.35);
  background: #fbf3f6;
}

.fq-item.is-target {
  background: rgba(125, 68, 94, 0.07);
}

.fq mark {
  padding: 0 0.08em;
  border-radius: 4px;
  background: rgba(230, 154, 58, 0.34);
  color: inherit;
}

/* ---------- risultati della ricerca ---------- */
.fq-res__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
}

.fq .fq-res__head h2 {
  margin: 0;
  color: var(--fq-ink);
  font-family: var(--fq-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fq-res__head span {
  color: var(--fq-mute);
  font-size: 0.85rem;
  font-weight: 700;
}

.fq-res__sub {
  margin: 1.8rem 0 0;
  color: var(--fq-mute);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fq-more {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.fq-empty {
  padding: 2rem 1.4rem;
  border: 1px dashed rgba(125, 68, 94, 0.35);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.fq .fq-empty h2 {
  margin: 0;
  color: var(--fq-ink);
  font-family: var(--fq-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fq .fq-empty p {
  max-width: 34rem;
  margin: 0.6rem auto 0;
  color: var(--fq-sub);
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.55;
}

.fq-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

/* ---------- bottoni ---------- */
.fq .fq-btn,
.fq-sheet .fq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  margin: 0;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--fq-font);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.fq .fq-btn--soft {
  border-color: var(--fq-line);
  background: #fff;
  color: var(--fq-accent-2);
}

.fq .fq-btn--soft:hover {
  border-color: rgba(125, 68, 94, 0.35);
  background: #fbf3f6;
}

.fq .fq-btn--primary {
  background: linear-gradient(135deg, #8a4a69, #4b2338);
  box-shadow: 0 8px 20px rgba(75, 35, 56, 0.28);
  color: #fff;
}

.fq .fq-btn--light {
  background: #fff;
  color: var(--fq-accent-2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.fq .fq-btn:active {
  transform: scale(0.98);
}

/* ---------- tasto "Area" del telefono ---------- */
.fq .fq-areabtn {
  scroll-margin-top: calc(var(--fq-sticky) + var(--fq-barh) + 10px);
  display: none;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 52px;
  margin: 0 0 1rem;
  padding: 0 1rem 0 1.1rem;
  border: 1px solid var(--fq-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04);
  color: var(--fq-ink);
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
}

.fq-areabtn__label {
  flex: none;
  color: var(--fq-mute);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fq-areabtn b {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- avvertenza e invito finale ---------- */
.fq-note {
  padding: 0.5rem 0 1.2rem;
  background: var(--fq-bg);
}

.fq-note__box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--fq-line);
  border-radius: 22px;
  background: #fff;
}

.fq-note__ico {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: rgba(125, 68, 94, 0.1);
  color: var(--fq-accent);
}

.fq-note__box strong {
  display: block;
  color: var(--fq-ink);
  font-family: var(--fq-display);
  font-size: 1rem;
  font-weight: 650;
}

.fq .fq-note__box p {
  margin: 0.3rem 0 0;
  color: var(--fq-sub);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.6;
}

.fq-cta {
  padding: 0.6rem 0 clamp(2.6rem, 6vw, 4.2rem);
  background: var(--fq-bg);
}

.fq-cta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(1.4rem, 3.4vw, 2.2rem);
  border-radius: 28px;
  background: linear-gradient(135deg, #7d445e, #3a1b2c);
  box-shadow: 0 24px 50px rgba(75, 35, 56, 0.22);
  color: #fff;
}

.fq-cta__box .fq-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.fq .fq-cta__box h2 {
  margin: 0;
  color: #fff;
  font-family: var(--fq-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.fq .fq-cta__box p:not(.fq-kicker) {
  max-width: 38rem;
  margin: 0.6rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.55;
}

/* ---------- avviso "Link copiato" ---------- */
.fq-toast {
  position: fixed;
  right: 0;
  bottom: max(1.2rem, env(safe-area-inset-bottom, 0px));
  left: 0;
  z-index: 100001;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.fq-toast span {
  max-width: calc(100% - 2rem);
  padding: 0.6rem 1rem;
  border-radius: 14px;
  background: #1d1d1f;
  color: #f5f5f7;
  font: 600 0.86rem/1.35 "Manrope", ui-sans-serif, system-ui, sans-serif;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.fq-toast.is-on span {
  opacity: 1;
  transform: none;
}

/* =====================================================================
   Con JavaScript: una sola area alla volta
   ===================================================================== */
.fq.fq-js .fq-area:not(.is-active) {
  display: none;
}

.fq.fq-js .fq-area + .fq-area {
  margin-top: 0;
}

.fq.fq-js .fq-areas[hidden],
.fq.fq-js .fq-results[hidden] {
  display: none;
}

/* senza JavaScript la ricerca e i tasti non ci sono, e le aree stanno una dopo l'altra */
.fq:not(.fq-js) .fq-areabtn,
.fq:not(.fq-js) .fq-topics {
  display: none;
}

/* =====================================================================
   Pannello delle aree (telefono) - sta fuori dalla pagina: vive nel body
   ===================================================================== */
.fq-sheet {
  position: fixed;
  z-index: 100000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  line-height: 1.5;
  visibility: hidden;
  pointer-events: none;
}

.fq-sheet.is-open {
  visibility: visible;
  pointer-events: auto;
}

.fq-sheet__backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(29, 29, 31, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fq-sheet.is-open .fq-sheet__backdrop {
  opacity: 1;
}

.fq-sheet__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 560px);
  max-height: calc(100% - max(2.2rem, env(safe-area-inset-top, 0px)));
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #fff;
  box-shadow: 0 -20px 60px rgba(29, 29, 31, 0.28);
  opacity: 0;
  outline: 0;
  transform: translateY(40px);
  transition: opacity 0.3s ease, transform 0.34s var(--fq-ease);
}

.fq-sheet.is-open .fq-sheet__panel {
  opacity: 1;
  transform: none;
}

.fq-sheet__bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem 0.7rem 1.3rem;
  border-bottom: 1px solid var(--fq-line);
}

.fq-sheet__bar h2 {
  margin: 0;
  color: var(--fq-ink);
  font-family: var(--fq-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fq-sheet .fq-round {
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--fq-fill);
  color: var(--fq-ink);
  cursor: pointer;
}

.fq-sheet__scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.6rem 0.8rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.fq-sheet__group + .fq-sheet__group {
  margin-top: 0.8rem;
}

.fq-sheet__group p {
  margin: 0 0 0.3rem;
  padding: 0 0.6rem;
  color: var(--fq-mute);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fq-sheet__group ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fq-sheet__group li {
  margin: 0;
}

.fq-sheet .fq-pick {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--fq-ink);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.fq-sheet .fq-pick:hover {
  background: rgba(120, 120, 128, 0.1);
}

.fq-sheet .fq-pick[aria-current="true"] {
  background: #fbf3f6;
  color: var(--fq-accent-2);
}

.fq-sheet .fq-pick .fq-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.fq-pick__text {
  flex: 1 1 auto;
  min-width: 0;
}

.fq-pick__n {
  flex: none;
  color: var(--fq-mute);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fq-pick__check {
  display: none;
  flex: none;
  color: var(--fq-accent);
}

.fq-sheet .fq-pick[aria-current="true"] .fq-pick__check {
  display: block;
}

/* il pannello aperto blocca la pagina sotto; il blocco sta SOLO su "html": con "overflow: hidden" anche su "body" le barre del sito (sticky) smettono di restare in alto */
html.fq-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

/* focus da tastiera */
.fq a:focus-visible,
.fq button:focus-visible,
.fq-sheet button:focus-visible {
  outline: 3px solid rgba(125, 68, 94, 0.55);
  outline-offset: 2px;
}

/* =====================================================================
   Schermi piu' stretti
   ===================================================================== */
@media (max-width: 1199px) {
  .fq-topics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .fq-topics .fq-topics__label {
    grid-column: 1 / -1;
    margin: 0 0 -0.1rem 0.25rem;
  }

  .fq .fq-topics .fq-chip {
    width: 100%;
  }

  .fq-topics .fq-chip__n {
    margin-left: auto;
  }
}

@media (max-width: 1099px) {
  .fq-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 1.6rem;
  }
}

@media (pointer: coarse), (max-width: 920px) {
  .fq .fq-chip,
  .fq .fq-reset,
  .fq .fq-openall,
  .fq .fq-mini {
    min-height: 44px;
  }

  /* la crocetta resta un cerchio da 36 px, ma l'area che si tocca e' di 44 px */
  .fq .fq-search__clear {
    width: 44px;
    height: 44px;
    padding: 4px;
    background-clip: content-box;
  }

  .fq-d > summary {
    min-height: 56px;
  }
}

@media (max-width: 880px) {
  .fq-wrap {
    padding-right: max(var(--m-gutter, 16px), env(safe-area-inset-right, 0px));
    padding-left: max(var(--m-gutter, 16px), env(safe-area-inset-left, 0px));
  }

  .fq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  /* con lo script, le aree si scelgono dal tasto "Area" (foglio che sale dal basso) */
  .fq.fq-js .fq-nav {
    display: none;
  }

  .fq.fq-js .fq-areabtn {
    display: flex;
  }

  .fq:not(.fq-js) .fq-nav {
    position: static;
    max-height: none;
    margin-bottom: 1.4rem;
    padding: 0;
    overflow: visible;
  }

  .fq .fq-search input[type="search"] {
    font-size: 16px;
  }

  .fq-search__key {
    display: none;
  }

  .fq-meta {
    padding-top: 0.7rem;
  }

  .fq-topics,
  .fq-topics.is-active {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-right: calc(-1 * var(--m-gutter, 16px));
    margin-left: calc(-1 * var(--m-gutter, 16px));
    padding: 0.4rem var(--m-gutter, 16px) 0.65rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--m-gutter, 16px)), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - var(--m-gutter, 16px)), transparent);
  }

  .fq-topics::-webkit-scrollbar {
    display: none;
  }

  .fq-topics .fq-topics__label,
  .fq-topics.is-active .fq-topics__label {
    grid-column: auto;
    margin: 0 0.2rem 0 0;
  }

  .fq .fq-topics .fq-chip,
  .fq .fq-topics.is-active .fq-chip {
    width: auto;
  }

  .fq-topics .fq-chip__n,
  .fq-topics.is-active .fq-chip__n {
    margin-left: 0;
  }

  .fq-statusbar {
    justify-content: space-between;
  }

  .fq .fq-status {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .fq-hero {
    padding-top: 1.3rem;
    padding-bottom: 0.9rem;
  }

  .fq-kicker {
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
  }

  .fq .fq-title {
    font-size: 1.45rem;
    line-height: 1.12;
  }

  .fq .fq-lead {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .fq-stats {
    flex-wrap: nowrap;
    gap: 0.3rem 1rem;
    margin-top: 0.7rem;
    font-size: 0.8rem;
  }

  .fq-stats b {
    font-size: 0.95rem;
  }

  .fq-tools {
    padding: 0.55rem 0;
  }

  .fq-search__field {
    min-height: 50px;
    border-radius: 16px;
  }

  .fq .fq-search input[type="search"] {
    height: 48px;
  }

  .fq-area__head {
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
  }

  .fq-area__text {
    flex: 1 1 calc(100% - 60px);
  }

  /* con il tasto "Area" in cima l'icona e il titolo grande non servono (il titolo resta per chi usa la voce) */
  .fq.fq-js .fq-area__head .fq-ico,
  .fq.fq-js .fq-area__text h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .fq.fq-js .fq-area__text {
    flex: 1 1 100%;
  }

  .fq.fq-js .fq-area__text p {
    margin-top: 0;
    font-size: 0.9rem;
  }

  .fq-ico--lg {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .fq-area__count {
    order: 3;
    margin-right: auto;
  }

  .fq .fq-openall {
    order: 4;
  }

  .fq .fq-list {
    margin-top: 0.9rem;
    border-radius: 20px;
  }

  .fq-d > summary {
    gap: 0.8rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.97rem;
  }

  .fq-a {
    padding: 0 0.9rem 1rem;
  }

  .fq .fq-a p {
    font-size: 0.95rem;
  }

  .fq-note__box {
    padding: 1rem;
    border-radius: 20px;
  }

  .fq-cta__box {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px;
  }

  .fq .fq-cta__box .fq-btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .fq .fq-title {
    font-size: 1.45rem;
  }
}

/* ---------- niente movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fq-flash {
    0% { background-color: rgba(125, 68, 94, 0.2); }
    100% { background-color: rgba(125, 68, 94, 0.07); }
  }

  .fq-item.is-target {
    animation: fq-flash 1.6s ease-out both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fq,
  .fq *,
  .fq *::before,
  .fq *::after,
  .fq-sheet,
  .fq-sheet *,
  .fq-toast,
  .fq-toast * {
    scroll-behavior: auto;
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- stampa: tutte le aree, senza barre ---------- */
@media print {
  .fq .fq-tools,
  .fq .fq-nav,
  .fq.fq-js .fq-nav,
  .fq .fq-meta,
  .fq .fq-areabtn,
  .fq.fq-js .fq-areabtn,
  .fq .fq-cta,
  .fq-sheet {
    display: none;
  }

  .fq.fq-js .fq-area:not(.is-active) {
    display: block;
  }

  .fq-layout {
    display: block;
  }

  .fq-d > .fq-a {
    display: block;
  }
}
