/* ==========================================================================
   pages/faq.css
   Eccezioni della pagina faq.
   Caricato da 1 pagina.
   ========================================================================== */

.hero .hero-sub {
  margin: 0 auto 2rem;
}

.hero .hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: .4rem;
}

.section {
  padding: 52px 16px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  text-align: center;
}

.section h2::after {
  margin: 10px auto 0;
}

.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.faq-group {
  margin-bottom: 2.5rem;
}

.faq-group-title {
  color: var(--blu);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--blu);
  display: flex;
  align-items: center;
  gap: 8px;
}

details.faq-item {
  margin-bottom: 10px;
  overflow: hidden;
}

details.faq-item--principle {
  margin-bottom: 18px;
  border: 1px solid rgba(177,132,35,.38);
  border-left: 5px solid #b18423;
  border-radius: 15px;
  background: linear-gradient(135deg,#fffdf7 0%,#f5f8fc 100%);
  box-shadow: 0 10px 26px rgba(17,37,58,.06);
}

details.faq-item--principle summary {
  color: #153f6c;
  font-family: var(--v2-serif);
  font-size: 1.08rem;
}

details.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--blu);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .97rem;
  list-style: none;
  gap: 12px;
  user-select: none;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "▼";
  font-size: .8rem;
  flex-shrink: 0;
  transition: transform .25s;
  display: inline-block;
}

details.faq-item[open] summary::after {
  transform: rotate(180deg);
}

details.faq-item summary:hover {
  background: var(--bg2);
}

details.faq-item .faq-a {
  padding: 0 22px 18px;
  color: var(--txt);
}

.cta-box {
  padding: 2.2rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-box p {
  opacity: .9;
  margin-bottom: 1.2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn-w {
  background: #fff;
  color: var(--blu);
  padding: .8rem 1.5rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  transition: opacity .2s;
}

.btn-o {
  border: 2px solid rgba(255,255,255,.7);
  padding: .8rem 1.5rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: opacity .2s;
}


.store-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: var(--r-pill);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--blu);
  color: var(--blu);
  background: #fff;
  transition: background .2s,color .2s,transform .15s,box-shadow .15s;
}

.btn-store:hover {
  background: var(--blu);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.store-fa {
  border-color: #e2001a;
  color: #e2001a;
}

.store-fa:hover {
  background: #e2001a;
  color: #fff;
}

.store-amz {
  border-color: #ff9900;
  color: #c45500;
}

.store-amz:hover {
  background: #ff9900;
  color: var(--blu-notte);
}

.store-mu {
  border-color: #6a0dad;
  color: #6a0dad;
}

.store-mu:hover {
  background: #6a0dad;
  color: #fff;
}

.hero .hero-inner {
  max-width: min(880px,calc(100% - 3rem));
  margin-left: auto;
  margin-right: auto;
}

/* R5.17 · Pulsanti degli store uniformi nella tavolozza del sito (§ 3.8, proposta 9): blu notte con filetto oro e testo bianco,
   nome dello store e collegamento invariati. */
:is(#_r517_store, .btn-store),
:is(#_r517_store, .btn-store):visited {
  background: var(--blu-notte, #0a1628);
  color: #fff;
  border: 1px solid rgba(212,180,109,.6);
  text-shadow: none;
}

:is(#_r517_store, .btn-store):hover,
:is(#_r517_store, .btn-store):focus-visible {
  background: var(--blu-accent, #2c5080);
  color: #fff;
  border-color: var(--oro, #d4b46d);
}

/* Titoli semantici dei gruppi: conserva la resa del precedente DIV. */
.section h2.faq-group-title { font-family: Inter, sans-serif; font-size: 1.15rem; font-weight: 800; justify-content: center; text-align: center; text-align-last: center; margin: 0 0 1rem; }
.section h2.faq-group-title::after { display: none; }

/* R5.48 consolidata: link nel testo riconoscibili anche senza il colore. */
details.faq-item .faq-a a {
  text-decoration: underline;
  text-underline-offset: .16em;
}
