/* Al Sicuro a Casa — Stile accessibile */

.hide { display: none !important; }

.situation-card {
  background: linear-gradient(135deg, #f8f9fa, #e8f0fe);
  border: 3px solid #003366;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}
.sit-emoji { font-size: 5rem; line-height: 1; margin-bottom: 0.75rem; }
.sit-title { font-size: 1.5rem; font-weight: 700; color: #003366; margin-bottom: 0.5rem; }
.sit-desc { font-size: 1.15rem; color: #444; margin-bottom: 0; }

.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.answer-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border: 3px solid #dee2e6;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 150px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #17324D;
}
.answer-btn:hover:not(:disabled) {
  border-color: #003366;
  transform: translateY(-3px);
}
.answer-btn:focus-visible { outline: 3px solid #ff6600; outline-offset: 2px; }
.answer-btn:disabled { cursor: default; }

.answer-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.75rem; color: #fff;
}
.answer-btn.a-safe    .answer-icon { background: #2e7d32; }
.answer-btn.a-danger  .answer-icon { background: #c62828; }

.answer-btn.correct { border-color: #2e7d32; background: #e8f5e9; animation: homePop 0.5s ease; }
@keyframes homePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.answer-btn.wrong { border-color: #dc3545; background: #fde8ea; animation: homeShake 0.4s ease; }
@keyframes homeShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.feedback-box {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 600;
}
.feedback-box.fb-ok { background: #e8f5e9; border: 2px solid #2e7d32; color: #1b5e20; }
.feedback-box.fb-no { background: #fff3e0; border: 2px solid #e65100; color: #bf360c; }

@media (max-width: 400px) {
  .answers-grid { grid-template-columns: 1fr; }
  .answer-btn { min-height: 110px; }
}
