/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  background: #fafafa;
  color: #333;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  min-height: 100vh;
  justify-content: flex-start;
}

.logo {
  width: 240px;
  margin-bottom: 1rem;
}

.message, #quiz {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 600px;
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.qinfo {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.quiz-intro {
  font-size: 1.15rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.question {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.answers {
  list-style: none;
  text-align: left;
  margin-bottom: 1rem;
}

.answers li {
  margin-bottom: 0.75rem;
}

#next-btn {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #007aff;
  color: #fff;
}

#next-btn:disabled {
  background: #aaa;
  cursor: default;
}

@media (max-width: 480px) {
  .question { font-size: 1rem; }
  #next-btn { width: 100%; }
}

/* ── Schermata risultato ───────────────────────────────────────── */
.result-card {
  border-top: 6px solid #ccc;
  transition: border-color 0.3s;
}
.result-card.badge-danger  { border-top-color: #e53935; }
.result-card.badge-warning { border-top-color: #fb8c00; }
.result-card.badge-success { border-top-color: #43a047; }

.result-emoji {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.result-score {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.badge-danger  .result-score { color: #e53935; }
.badge-warning .result-score { color: #fb8c00; }
.badge-success .result-score { color: #43a047; }

.result-badge {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.badge-danger  .result-badge { background: #ffebee; color: #c62828; }
.badge-warning .result-badge { background: #fff3e0; color: #e65100; }
.badge-success .result-badge { background: #e8f5e9; color: #2e7d32; }

.result-desc {
  font-size: 0.97rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1.75rem;
  text-align: left;
}

.cta-btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  background: #007aff;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s;
}
.cta-btn:hover { background: #005ecb; }
