/* =========================
   app.css - Aree applicativa
   ========================= */

.app .banner {
  height: 140px;
}

.app {
  padding: 40px;
}

/* ---------- Titoli ---------- */

.app h2,
.app h4 {
  color: #1a237e;
}

/* ---------- Form ---------- */

.app label {
  font-weight: 600;
}

.app input,
.app select,
.app button {
  margin-top: 10px;
  padding: 8px;
  font-size: 16px;
}

/* ---------- Button ---------- */

.app button {
  cursor: pointer;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 4px;
}

.app button:hover {
  background-color: #2980b9;
}

/* ---------- Card applicative ---------- */

.app .card {
  background: #fff;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ---------- Menu ---------- */

.menu {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.menu button {
  padding: 0.6rem 1.2rem;
  background: #0066cc;
}

.menu button:hover {
  background: #004c99;
}

/* ---------- Summary table ---------- */

.summary-table {
  width: 100%;
  border-collapse: collapse;
  background: #f2f2f2;
}

.summary-table th,
.summary-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #ddd;
}

.summary-table th {
  text-align: left;
  background: #e0e0e0;
}

.summary-table td.num {
  text-align: right;
}

.summary-table tr.completed {
  color: green;
  font-weight: 600;
}

.summary-table tr.incomplete {
  color: red;
}

.summary-table td.check {
  width: 30px;
  text-align: center;
}

/* ---------- Questionario ---------- */

.question-container {
  max-width: 700px;
  margin: auto;
  padding: 15px;
}

.question-group {
  margin-top: 30px;
  border-bottom: 3px solid #ddd;
  padding-bottom: 5px;
  font-weight: bold;
  color: #1976d2;
}

.question-item {
  margin: 20px 0;
}

.radio-row {
  display: flex;
  justify-content: space-between;
  max-width: 300px;
}

.saved-check {
  color: green;
  font-weight: bold;
  margin-right: 6px;
  display: none;
}

.btn-back {
  margin-top: 30px;
  padding: 12px;
  width: 100%;
  background: #1976d2;
  border-radius: 6px;
}

/* =========================
   MOBILE FIX
   ========================= */

@media (max-width: 768px) {

  .app {
    padding: 15px;
  }

  .app .banner {
    height: 110px;
  }

  .banner-nav a {
    font-size: 14px;
    padding: 4px 8px;
  }

  /* Menu verticale pulito */
  .menu {
    flex-direction: column;
  }

  .menu button {
    width: 100%;
    text-align: left;
    padding: 14px;
    font-size: 16px;
  }

  /* Tabella scrollabile */
  .card {
    overflow-x: auto;
  }

  .summary-table {
    min-width: 550px;
  }
}