/* ============================================================
   QUESTIONARIO «Scopri il tuo profilo dell'equilibrio»
   Usato da js/quiz.js (home IT + EN)
   ============================================================ */

/* ---- Fascia dorata in home ---- */
.quiz-band {
  background: linear-gradient(135deg, #f7c65f 0%, #ffd98b 50%, #e0a820 100%);
  padding: 34px 0;
  position: relative;
  z-index: 5;
}
.quiz-band-inner {
  width: min(calc(100% - 28px), 1100px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.quiz-band-text { color: #09201a; }
.quiz-band-kicker {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: .8;
}
.quiz-band-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 8px;
  color: #09201a;
}
.quiz-band-sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #1c3a31;
  max-width: 560px;
}
.quiz-band-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 16px 30px;
  border: 0;
  border-radius: 999px;
  background: #09201a;
  color: #f7c65f;
  font-family: 'Montserrat', sans-serif;
  font-size: .98rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(9, 32, 26, .35);
  transition: transform .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.quiz-band-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(9, 32, 26, .45); }

@media (max-width: 720px) {
  .quiz-band { padding: 28px 0; }
  .quiz-band-inner { flex-direction: column; align-items: stretch; text-align: center; gap: 18px; }
  .quiz-band-sub { margin-left: auto; margin-right: auto; }
  .quiz-band-btn { width: 100%; }
}

/* ---- Finestra del questionario ---- */
body.quiz-lock { overflow: hidden; }

.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(3, 8, 7, .86);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.quiz-overlay[hidden] { display: none !important; }

/* Forza la finestra sempre ferma sullo schermo (anche se altri CSS cambiano la posizione dei figli del body) */
body > .quiz-overlay {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  z-index: 2147483000 !important;
}

.quiz-box {
  position: relative;
  width: min(100%, 680px);
  margin: auto;
  background: linear-gradient(180deg, #0d1d19, #071512);
  border: 1px solid rgba(247, 198, 95, .38);
  border-radius: 24px;
  padding: 30px 26px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(247, 198, 95, .12);
  color: #f5fffb;
  font-family: 'Raleway', sans-serif;
}
.quiz-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.quiz-close:hover { background: rgba(255, 255, 255, .12); }

.quiz-kicker {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #f7c65f;
  margin: 0 40px 8px 0;
}
.quiz-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.35rem, 4.4vw, 1.8rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 40px 10px 0;
  color: #fff;
}
.quiz-lead {
  margin: 0 0 22px;
  color: #bdd2ca;
  line-height: 1.65;
  font-size: 1rem;
}

/* scelta uomo / donna */
.quiz-genders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.quiz-gender {
  min-height: 130px;
  border-radius: 20px;
  border: 2px solid rgba(247, 198, 95, .4);
  background: rgba(247, 198, 95, .06);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.quiz-gender span.quiz-gender-icon { font-size: 2rem; }
.quiz-gender:hover,
.quiz-gender:focus-visible {
  border-color: #f7c65f;
  background: rgba(247, 198, 95, .16);
  transform: translateY(-3px);
  outline: none;
}

/* domande */
.quiz-q {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
}
.quiz-q legend {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
  padding: 0;
  margin-bottom: 10px;
}
.quiz-q legend .quiz-num {
  color: #f7c65f;
  margin-right: 6px;
}
.quiz-opt {
  display: block;
  position: relative;
  margin-bottom: 8px;
}
.quiz-opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}
.quiz-opt span {
  display: block;
  padding: 14px 16px 14px 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  color: #dcebe5;
  font-size: .98rem;
  line-height: 1.45;
  position: relative;
  transition: all .18s ease;
}
.quiz-opt span::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  border: 2px solid rgba(247, 198, 95, .6);
  box-sizing: border-box;
}
.quiz-opt input:checked + span {
  border-color: #f7c65f;
  background: rgba(247, 198, 95, .14);
  color: #fff;
}
.quiz-opt input:checked + span::before {
  background: #f7c65f;
  box-shadow: inset 0 0 0 3px #0d1d19;
}
.quiz-opt input:focus-visible + span { outline: 2px solid #00d4aa; outline-offset: 2px; }

.quiz-foot {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.quiz-progress {
  text-align: center;
  font-size: .9rem;
  color: #7e9a91;
}
.quiz-btn {
  min-height: 56px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #f7c65f, #e1ac38);
  color: #0a0a00;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(247, 198, 95, .28);
  transition: transform .2s ease, opacity .2s ease;
}
.quiz-btn:hover:not(:disabled) { transform: translateY(-2px); }
.quiz-btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.quiz-btn-ghost {
  background: transparent;
  color: #f7c65f;
  border: 1px solid rgba(247, 198, 95, .5);
  box-shadow: none;
}
.quiz-link {
  background: none;
  border: 0;
  color: #bdd2ca;
  text-decoration: underline;
  font-size: .92rem;
  cursor: pointer;
  padding: 8px;
  align-self: center;
}

/* risultato */
.quiz-result-card {
  border: 1px solid rgba(247, 198, 95, .45);
  background: linear-gradient(135deg, rgba(247, 198, 95, .1), rgba(0, 212, 170, .07));
  border-radius: 20px;
  padding: 24px 22px;
  text-align: center;
  margin-bottom: 18px;
}
.quiz-result-icon { font-size: 2.4rem; display: block; margin-bottom: 6px; }
.quiz-result-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f7c65f;
  margin-bottom: 8px;
}
.quiz-result-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 12px;
}
.quiz-result-desc {
  margin: 0;
  color: #dcebe5;
  line-height: 1.7;
  font-size: 1rem;
}
.quiz-note {
  font-size: .82rem;
  line-height: 1.6;
  color: #7e9a91;
  text-align: center;
  margin: 14px 0 0;
}

@media (max-width: 480px) {
  .quiz-box { padding: 26px 16px 22px; border-radius: 20px; }
  .quiz-gender { min-height: 110px; font-size: 1.15rem; }
  .quiz-opt span { padding: 13px 12px 13px 42px; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-gender, .quiz-btn, .quiz-band-btn, .quiz-opt span { transition: none; }
}
