body {
  background: linear-gradient(160deg, #0d0b1a 0%, #1a1730 50%, #0d0b1a 100%);
  min-height: 100vh;
}

.quiz-wrapper {
  max-width: 800px;
  margin: 80px auto 40px;
  padding: 0 20px;
}

#quiz-container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  min-height: 400px;
}

/* Mode Selection */
.mode-selection h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 15px;
  color: #1a1a2e;
}

.quiz-subtitle {
  text-align: center;
  color: #21272e !important;
  margin-bottom: 40px;
  font-size: 18px;
}

.mode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.mode-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.mode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.mode-card-highlight {
  border: 2px solid #e0e0e0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.mode-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.mode-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.mode-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #1a1a2e;
}

.mode-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 15px;
}

.mode-btn {
  background: linear-gradient(135deg, #566fc8 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 14px rgba(86, 111, 200, 0.35);
}

.mode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(86, 111, 200, 0.55);
}

.mode-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #9b2d7a 100%);
  color: white;
  box-shadow:
    0 4px 16px rgba(102, 126, 234, 0.4),
    0 4px 16px rgba(155, 45, 122, 0.3);
}

.mode-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 22px rgba(102, 126, 234, 0.55),
    0 6px 22px rgba(155, 45, 122, 0.45);
}

/* Name Input Screen */
.name-input-screen {
  text-align: center;
}

.name-input-screen h2 {
  font-size: 26px;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.name-input-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.name-input-subtitle {
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
}

.name-input-form {
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
  font-size: 15px;
}

.input-optional {
  font-weight: 400;
  color: #999;
  font-size: 13px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a2e;
  background: #fafafa;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #667eea;
  background: white;
}

.input-group textarea {
  resize: none;
  line-height: 1.5;
}

.name-input-form .mode-btn {
  margin-top: 10px;
}

.btn-back {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: none;
  border: none;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: color 0.2s ease;
}

.btn-back:hover {
  color: #555;
}

.partner-message-box {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  border: 1px solid rgba(102, 126, 234, 0.25);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 auto 28px;
  max-width: 480px;
  text-align: left;
}

.partner-message-label {
  font-size: 13px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.partner-message-text {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  font-style: italic;
}

/* Quiz Question */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

.question-counter {
  text-align: center;
  color: #999;
  font-size: 14px;
  margin-bottom: 30px;
}

.question-text {
  font-size: 26px;
  text-align: center;
  margin-bottom: 40px;
  color: #1a1a2e;
  line-height: 1.4;
}

.options-container {
  display: grid;
  gap: 15px;
}

.option-button {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
  font-weight: 500;
}

.option-button:hover {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  transform: translateX(5px);
}

.option-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.option-button:disabled:hover {
  border-color: #e0e0e0;
  background: white;
  transform: none;
}

/* Results */
.result-container,
.result-view {
  text-align: center;
}

.result-animation {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.result-container h2,
.result-view h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #1a1a2e;
}

.score-display {
  background: white;
  border: 3px solid;
  border-radius: 15px;
  padding: 30px;
  margin: 30px auto;
  max-width: 400px;
}

.score-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.score-value {
  font-size: 48px;
  font-weight: 800;
  color: #1a1a2e;
}

.judgment-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  margin: 30px auto;
  max-width: 600px;
  text-align: left;
}

.judgment-box p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.share-section {
  margin: 40px auto;
  max-width: 500px;
}

.share-section h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #1a1a2e;
}

.share-section p {
  color: #666;
  margin-bottom: 20px;
}

.share-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.share-box input {
  flex: 1;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
}

.copy-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.copy-btn:hover {
  background: #5568d3;
}

.social-share {
  margin-top: 15px;
}

.share-whatsapp {
  display: inline-block;
  background: #25d366;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.share-whatsapp:hover {
  background: #20ba5a;
  transform: scale(1.05);
}

/* Social Share Buttons */
.share-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.btn-share:active {
  transform: translateY(0);
}
.btn-share svg {
  flex-shrink: 0;
}

.btn-whatsapp {
  background: #25d366;
}
.btn-whatsapp:hover {
  background: #20ba5a;
}
.btn-telegram {
  background: #0088cc;
}
.btn-telegram:hover {
  background: #0077b5;
}
.btn-messenger {
  background: linear-gradient(45deg, #00b2ff, #006aff);
}
.btn-messenger:hover {
  background: linear-gradient(45deg, #0099e6, #0055cc);
}
.btn-line {
  background: #00b900;
}
.btn-line:hover {
  background: #00a300;
}

.btn-native-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  margin: 14px 0 6px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-native-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}
.btn-native-share:active {
  transform: translateY(0);
}

.share-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px;
  color: #999;
  font-size: 13px;
}

.share-divider::before,
.share-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

@media (max-width: 480px) {
  .share-buttons {
    grid-template-columns: 1fr;
  }
  .btn-share {
    font-size: 14px;
    padding: 12px 14px;
  }
}

.cta-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 30px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cta-button.secondary {
  background: #f0f0f0;
  color: #333;
}

.cta-button.secondary:hover {
  background: #e0e0e0;
}

/* Couple Comparison */
.comparison-header {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
}

.comparison-emoji {
  font-size: 64px;
  margin-bottom: 15px;
}

.comparison-header h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #1a1a2e;
}

.comparison-header p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.couple-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.partner-result h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #666;
}

.detailed-comparison {
  margin-top: 40px;
  text-align: left;
}

.detailed-comparison h3 {
  font-size: 24px;
  margin-bottom: 25px;
  text-align: center;
  color: #1a1a2e;
}

.comparison-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid #e0e0e0;
}

.comparison-item.match {
  border-left-color: #4caf50;
  background: rgba(76, 175, 80, 0.05);
}

.comparison-item.different {
  border-left-color: #ff9800;
  background: rgba(255, 152, 0, 0.05);
}

.comparison-question {
  font-weight: 600;
  margin-bottom: 15px;
  color: #1a1a2e;
}

.comparison-answers {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.comparison-answer {
  display: flex;
  gap: 10px;
  font-size: 15px;
}

.answer-label {
  font-weight: 600;
  color: #667eea;
  min-width: 100px;
}

.match-indicator {
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}

.answers-recap {
  margin-top: 30px;
  text-align: left;
}

.answers-recap h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #1a1a2e;
}

.answer-item {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
}

.answer-question {
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.answer-response {
  color: #667eea;
  font-size: 15px;
}

.quiz-hero {
  background: linear-gradient(135deg, #4a3fa0 0%, #764ba2 40%, #9b2d7a 100%);
  padding: 60px 20px 50px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.quiz-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(255, 255, 255, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse at 75% 30%, rgba(155, 45, 122, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.quiz-hero h1 {
  font-size: clamp(26px, 12vw, 50px);
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  position: relative;
}

.quiz-hero p {
  font-size: clamp(14px, 4.5vw, 19px);
  opacity: 0.9;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  position: relative;
}

.quiz-section-title {
  text-align: center;
  color: #9b2d7a;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 28px 0 -28px;
}

body.section-soul .quiz-section-title {
  color: #1e8a5e;
}
body.section-heart .quiz-section-title {
  color: #2c85fe;
}
body.section-chemistry .quiz-section-title {
  color: #dd2476;
}
body.section-power .quiz-section-title {
  color: #ae58d5;
}
body.section-pleasure .quiz-section-title {
  color: #cc3800;
}
body.section-forbidden .quiz-section-title {
  color: #606060;
}

.quiz-grid {
  max-width: 1200px;
  margin: 48px auto 64px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.quiz-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 30px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  border-top: 4px solid #764ba2;
}

.quiz-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.35);
}

.quiz-icon {
  font-size: 64px;
  margin-bottom: 20px;
  text-align: center;
  transition: transform 0.35s ease;
}

.quiz-card:hover .quiz-icon {
  transform: scale(1.12);
}

.quiz-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #1a1a2e;
  text-align: center;
}

.quiz-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.quiz-badge {
  position: absolute;
  top: 25px;
  right: 25px;
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.quiz-level {
  position: absolute;
  top: 25px;
  left: 25px;
  display: inline-block;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
}

.quiz-level.soft {
  background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
}

.quiz-level.hot {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.quiz-level.very-hot {
  background: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);
}

.quiz-level.hard {
  background: linear-gradient(135deg, #c31432 0%, #240b36 100%);
}

.quiz-level.explicit {
  background: linear-gradient(135deg, #8e0e00 0%, #1f1c18 100%);
}

.quiz-level.very-hard {
  background: linear-gradient(135deg, #000000 0%, #434343 100%);
}

.quiz-level.xxx {
  background: linear-gradient(135deg, #8b0000 0%, #ff0040 100%);
}

.quiz-modes {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.mode-badge {
  display: block;
  margin: 20px auto 0;
  width: fit-content;
  background: linear-gradient(135deg, #667eea 0%, #9b2d7a 100%);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  color: white;
  text-align: center;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(118, 75, 162, 0.35);
}

.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.coming-soon .quiz-badge {
  background: #aaa;
}

/* ── Level-specific accent border + hover glow ── */
.quiz-card:has(.quiz-level.soft) {
  border-top-color: #43cea2;
}
.quiz-card:has(.quiz-level.soft):hover {
  box-shadow:
    0 22px 56px rgba(67, 206, 162, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.quiz-card:has(.quiz-level.hot) {
  border-top-color: #f7971e;
}
.quiz-card:has(.quiz-level.hot):hover {
  box-shadow:
    0 22px 56px rgba(247, 151, 30, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.quiz-card:has(.quiz-level.very-hot) {
  border-top-color: #ff512f;
}
.quiz-card:has(.quiz-level.very-hot):hover {
  box-shadow:
    0 22px 56px rgba(255, 81, 47, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.quiz-card:has(.quiz-level.hard) {
  border-top-color: #c31432;
}
.quiz-card:has(.quiz-level.hard):hover {
  box-shadow:
    0 22px 56px rgba(195, 20, 50, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.quiz-card:has(.quiz-level.explicit) {
  border-top-color: #8e0e00;
}
.quiz-card:has(.quiz-level.explicit):hover {
  box-shadow:
    0 22px 56px rgba(142, 14, 0, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.quiz-card:has(.quiz-level.very-hard) {
  border-top-color: #555;
}
.quiz-card:has(.quiz-level.very-hard):hover {
  box-shadow:
    0 22px 56px rgba(80, 80, 80, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.3);
}

.quiz-card:has(.quiz-level.xxx) {
  border-top-color: #ff0040;
}
.quiz-card:has(.quiz-level.xxx):hover {
  box-shadow:
    0 22px 56px rgba(255, 0, 64, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ── Navbar: dark glass, armonioso con lo sfondo scuro delle pagine quiz ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 9, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
  z-index: 1000;
  padding: 0;
}
.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-family: 'Inter', sans-serif;
}

.nav-home {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.nav-home:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.nav-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 30px;
}

.nav-icon:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.1);
}

.nav-icon.active {
  background: rgba(44, 133, 254, 0.69);
  border-color: rgba(44, 133, 254, 0.9);
  box-shadow: 0 0 12px rgba(44, 133, 254, 0.35);
}

/* ═══════════════════════════════════════
           TEMI PER SEZIONE
        ═══════════════════════════════════════ */

/* ── MAIN: hub generale — soft, viola accogliente ── */
body.section-main {
  background: linear-gradient(160deg, #14112e 0%, #1f1b3a 50%, #14112e 100%);
}

@keyframes quiz-icon-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px transparent);
  }
  50% {
    transform: scale(1.13);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
  }
}

body.section-main .quiz-icon {
  animation: quiz-icon-pulse 2.6s ease-in-out infinite;
}

/* stagger: ogni icona parte leggermente sfasata */
body.section-main .quiz-card:nth-child(1) .quiz-icon {
  animation-delay: 0s;
}
body.section-main .quiz-card:nth-child(2) .quiz-icon {
  animation-delay: 0.4s;
}
body.section-main .quiz-card:nth-child(3) .quiz-icon {
  animation-delay: 0.8s;
}
body.section-main .quiz-card:nth-child(4) .quiz-icon {
  animation-delay: 1.2s;
}
body.section-main .quiz-card:nth-child(5) .quiz-icon {
  animation-delay: 1.6s;
}
body.section-main .quiz-card:nth-child(6) .quiz-icon {
  animation-delay: 2s;
}

/* su hover l'animazione si ferma e subentra il scale fisso */
body.section-main .quiz-card:hover .quiz-icon {
  animation: none;
  transform: scale(1.15);
}

/* ── SOUL: Pulsioni & Identità — deep teal ── */
body.section-soul {
  background: linear-gradient(160deg, #071512 0%, #0d2118 50%, #071512 100%);
}
body.section-soul .quiz-hero {
  background: linear-gradient(135deg, #0d4232 0%, #1a7050 40%, #1e8a5e 100%);
}
body.section-soul .quiz-hero::before {
  background:
    radial-gradient(ellipse at 25% 60%, rgba(255, 255, 255, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse at 75% 30%, rgba(30, 138, 94, 0.28) 0%, transparent 60%);
}
body.section-soul .quiz-card {
  border-top-color: #2ec99a;
}
body.section-soul .quiz-card:hover {
  box-shadow:
    0 22px 56px rgba(46, 201, 154, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.35);
}
body.section-soul .mode-badge {
  background: linear-gradient(135deg, #1a7050 0%, #2ec99a 100%);
  box-shadow: 0 3px 12px rgba(26, 112, 80, 0.4);
}
body.section-soul .navbar {
  border-bottom-color: rgba(46, 201, 154, 0.1);
}

/* ── HEART: Amore & Legami — blu elettrico ── */
body.section-heart {
  background: linear-gradient(160deg, #080d18 0%, #0c1428 50%, #080d18 100%);
}
body.section-heart .quiz-hero {
  background: linear-gradient(135deg, #092060 0%, #1a50b8 40%, #2c85fe 100%);
}
body.section-heart .quiz-hero::before {
  background:
    radial-gradient(ellipse at 25% 60%, rgba(255, 255, 255, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse at 75% 30%, rgba(44, 133, 254, 0.28) 0%, transparent 60%);
}
body.section-heart .quiz-card {
  border-top-color: #2c85fe;
}
body.section-heart .quiz-card:hover {
  box-shadow:
    0 22px 56px rgba(44, 133, 254, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.35);
}
body.section-heart .mode-badge {
  background: linear-gradient(135deg, #1a50b8 0%, #2c85fe 100%);
  box-shadow: 0 3px 12px rgba(26, 80, 184, 0.4);
}
body.section-heart .navbar {
  border-bottom-color: rgba(44, 133, 254, 0.1);
}

/* ── CHEMISTRY: Chimica & Compatibilità — rosa/magenta ── */
body.section-chemistry {
  background: linear-gradient(160deg, #180812 0%, #22101a 50%, #180812 100%);
}
body.section-chemistry .quiz-hero {
  background: linear-gradient(135deg, #880040 0%, #bb1060 40%, #dd2476 100%);
}
body.section-chemistry .quiz-hero::before {
  background:
    radial-gradient(ellipse at 25% 60%, rgba(255, 255, 255, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse at 75% 30%, rgba(221, 36, 118, 0.28) 0%, transparent 60%);
}
body.section-chemistry .quiz-card {
  border-top-color: #e84090;
}
body.section-chemistry .quiz-card:hover {
  box-shadow:
    0 22px 56px rgba(232, 64, 144, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.35);
}
body.section-chemistry .mode-badge {
  background: linear-gradient(135deg, #bb1060 0%, #e84090 100%);
  box-shadow: 0 3px 12px rgba(187, 16, 96, 0.4);
}
body.section-chemistry .navbar {
  border-bottom-color: rgba(232, 64, 144, 0.1);
}

/* ── POWER: Seduzione & Potere — viola/porpora ── */
body.section-power {
  background: linear-gradient(160deg, #0c0614 0%, #150920 50%, #0c0614 100%);
}
body.section-power .quiz-hero {
  background: linear-gradient(135deg, #2e0858 0%, #6a1ea8 40%, #ae58d5 100%);
}
body.section-power .quiz-hero::before {
  background:
    radial-gradient(ellipse at 25% 60%, rgba(255, 255, 255, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse at 75% 30%, rgba(174, 88, 213, 0.28) 0%, transparent 60%);
}
body.section-power .quiz-card {
  border-top-color: #ae58d5;
}
body.section-power .quiz-card:hover {
  box-shadow:
    0 22px 56px rgba(174, 88, 213, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.4);
}
body.section-power .mode-badge {
  background: linear-gradient(135deg, #6a1ea8 0%, #ae58d5 100%);
  box-shadow: 0 3px 12px rgba(106, 30, 168, 0.45);
}
body.section-power .navbar {
  border-bottom-color: rgba(174, 88, 213, 0.1);
}

/* ── PLEASURE: Eros & Desiderio — fuoco/brace ── */
body.section-pleasure {
  background: linear-gradient(160deg, #160500 0%, #220b00 50%, #160500 100%);
}
body.section-pleasure .quiz-hero {
  background: linear-gradient(135deg, #681000 0%, #a02000 40%, #cc3800 100%);
}
body.section-pleasure .quiz-hero::before {
  background:
    radial-gradient(ellipse at 25% 60%, rgba(255, 255, 255, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse at 75% 30%, rgba(204, 56, 0, 0.28) 0%, transparent 60%);
}
body.section-pleasure .quiz-card {
  border-top-color: #e04000;
}
body.section-pleasure .quiz-card:hover {
  box-shadow:
    0 22px 56px rgba(224, 64, 0, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.4);
}
body.section-pleasure .mode-badge {
  background: linear-gradient(135deg, #a02000 0%, #e04000 100%);
  box-shadow: 0 3px 12px rgba(160, 32, 0, 0.45);
}
body.section-pleasure .navbar {
  border-bottom-color: rgba(224, 64, 0, 0.1);
}

/* ── FORBIDDEN: Ombra & Trasgressione — quasi-nero, acciaio ── */
body.section-forbidden {
  background: linear-gradient(160deg, #050505 0%, #0c0c0c 50%, #050505 100%);
}
body.section-forbidden .quiz-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #191919 40%, #242424 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
body.section-forbidden .quiz-hero::before {
  background:
    radial-gradient(ellipse at 25% 60%, rgba(255, 255, 255, 0.04) 0%, transparent 65%),
    radial-gradient(ellipse at 75% 30%, rgba(90, 90, 90, 0.18) 0%, transparent 60%);
}
body.section-forbidden .quiz-card {
  border-top-color: #606060;
}
body.section-forbidden .quiz-card:hover {
  box-shadow:
    0 22px 56px rgba(120, 120, 120, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.5);
}
body.section-forbidden .mode-badge {
  background: linear-gradient(135deg, #2a2a2a 0%, #555 100%);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}
body.section-forbidden .navbar {
  background: rgba(4, 4, 4, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* ── Icona navbar attiva per pagina corrente ── */
/*        body.section-main .nav-icons .nav-icon:nth-child(3) {
            background: rgba(44, 133, 254, 0.69);
            border-color: rgba(44, 133, 254, 0.90);
            box-shadow: 0 0 12px rgba(44, 133, 254, 0.35);
        } */
/* sottosezioni: ordine fisso soul/heart/chemistry/power/pleasure/forbidden */
body.section-soul .nav-icons .nav-icon:nth-child(1) {
  background: rgba(30, 138, 94, 0.48);
  border-color: rgba(30, 138, 94, 0.9);
  box-shadow: 0 0 12px rgba(30, 138, 94, 0.35);
}
body.section-heart .nav-icons .nav-icon:nth-child(2) {
  background: rgba(44, 133, 254, 0.35);
  border-color: rgba(44, 133, 254, 0.9);
  box-shadow: 0 0 12px rgba(44, 133, 254, 0.35);
}
body.section-chemistry .nav-icons .nav-icon:nth-child(3) {
  background: rgba(221, 36, 118, 0.48);
  border-color: rgba(221, 36, 118, 0.9);
  box-shadow: 0 0 12px rgba(221, 36, 118, 0.35);
}
body.section-power .nav-icons .nav-icon:nth-child(4) {
  background: rgba(139, 48, 208, 0.48);
  border-color: rgba(139, 48, 208, 0.9);
  box-shadow: 0 0 12px rgba(139, 48, 208, 0.35);
}
body.section-pleasure .nav-icons .nav-icon:nth-child(5) {
  background: rgba(204, 56, 0, 0.48);
  border-color: rgba(204, 56, 0, 0.9);
  box-shadow: 0 0 12px rgba(204, 56, 0, 0.35);
}
body.section-forbidden .nav-icons .nav-icon:nth-child(6) {
  background: rgba(96, 96, 96, 0.48);
  border-color: rgba(96, 96, 96, 0.9);
  box-shadow: 0 0 12px rgba(96, 96, 96, 0.35);
}
body.section-sin .nav-icons .nav-icon:nth-child(7) {
  background: rgba(139, 0, 0, 0.55);
  border-color: rgba(255, 0, 64, 0.9);
  box-shadow: 0 0 12px rgba(255, 0, 64, 0.4);
}

/* ── SIN: Lussuria & Peccato — rosso sangue, cremisi ── */
body.section-sin {
  background: linear-gradient(160deg, #0a0000 0%, #1a0000 50%, #0a0000 100%);
}
body.section-sin .quiz-hero {
  background: linear-gradient(135deg, #120000 0%, #2a0000 40%, #380000 100%);
  border-bottom: 1px solid rgba(255, 0, 64, 0.1);
}
body.section-sin .quiz-hero::before {
  background:
    radial-gradient(ellipse at 25% 60%, rgba(255, 0, 64, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse at 75% 30%, rgba(139, 0, 0, 0.22) 0%, transparent 60%);
}
body.section-sin .quiz-card {
  border-top-color: #8b0000;
}
body.section-sin .quiz-card:hover {
  box-shadow:
    0 22px 56px rgba(255, 0, 64, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.55);
}
body.section-sin .mode-badge {
  background: linear-gradient(135deg, #5c0000 0%, #8b0000 100%);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}
body.section-sin .navbar {
  background: rgba(10, 0, 0, 0.9);
  border-bottom-color: rgba(255, 0, 64, 0.08);
}
body.section-sin .quiz-badge {
  background: linear-gradient(135deg, #5c0000 0%, #8b0000 100%);
}
body.section-sin .quiz-section-title {
  color: #ff0040;
}

/* Responsive */
@media (max-width: 768px) {
  #quiz-container {
    padding: 20px;
  }
  body {
    padding-top: 40px;
  }
  .quiz-grid {
    margin: 24px auto 32px;
    gap: 20px;
  }
  .question-text {
    font-size: 22px;
  }
  .score-display {
    padding: 20px;
    margin: 20px auto;
    max-width: 320px;
  }
  .score-title {
    font-size: 24px;
    margin-bottom: 0px;
  }
  .score-value {
    display: none;
  }
  .mode-icon {
    font-size: 48px;
  }
  .share-box {
    flex-direction: column;
  }
  .copy-btn {
    width: 100%;
  }
  .quiz-description {
    display: none;
  }
  .quiz-icon {
    margin-bottom: 10px;
  }
  .quiz-card {
    padding: 20px 20px 20px;
  }
  .quiz-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
  }
  .quiz-card p {
    font-size: 14px;
    margin-bottom: -10px;
  }
  .quiz-subtitle {
    font-size: 16px;
    margin-bottom: -10px;
  }
  .quiz-section-title {
    margin: 10px 0 -15px;
    font-size: 18px;
  }
  .comparison-header p {
    font-size: 14px;
  }
  .mode-card {
    padding: 15px;
  }
  .mode-card p {
    font-size: 13px;
  }
  .navbar-container {
    padding: 13px 10px;
  }
  .nav-home {
    padding: 8px 18px;
    font-size: 16px;
  }
  .nav-icon {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  .nav-icons {
    gap: 4px;
  }
}

#seo-info-quiz {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
