:root {
  --ink: #17221e;
  --muted: #52615b;
  --paper: #ffffff;
  --surface: #f5f7f2;
  --line: #d9e1db;
  --green: #127548;
  --green-dark: #0b5131;
  --mint: #dff5e9;
  --coral: #e85b45;
  --amber: #f2b84b;
  --blue: #2f6f9f;
  --red: #aa3328;
  --focus: #064fc4;
  --shadow: 0 18px 48px rgba(17, 36, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible,
label.choice:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  overflow: hidden;
  color: var(--ink);
  background: #edf5ef;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 38%, rgba(255, 255, 255, 0.2) 72%, rgba(255, 255, 255, 0.04) 100%),
    url("assets/evento-accessibile-hero.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
  align-items: end;
  padding: 64px 0 72px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 9px;
  color: var(--amber);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
legend,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2,
legend {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  margin-bottom: 26px;
  color: #33433d;
  font-size: 1.2rem;
}

.hero-actions,
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 2px solid var(--green);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  color: var(--green);
  background: #fff;
}

.button.secondary:hover {
  background: var(--mint);
}

.button.ghost {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--green-dark);
}

.button.ghost:hover {
  background: #fff;
}

.score-card,
.event-details,
.dashboard,
.category,
.result-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.score-card {
  display: flex;
  min-height: 270px;
  padding: 28px;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
}

.score-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 900;
}

.score-value {
  color: var(--green);
  font-size: 4.35rem;
  font-weight: 900;
  line-height: 1;
}

.score-status {
  min-height: 48px;
  margin: 14px 0 18px;
  color: var(--muted);
}

.progress-track {
  height: 12px;
  overflow: hidden;
  background: #e4ebe6;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--green));
  border-radius: inherit;
  transition: width 0.2s ease;
}

.quick-note {
  background: var(--green-dark);
  color: #fff;
}

.quick-note p {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  font-size: 1.04rem;
  font-weight: 800;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 48px;
  display: grid;
  gap: 20px;
}

.event-details,
.result-panel {
  padding: 24px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aeb9b2;
  border-radius: 6px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.dashboard div {
  min-height: 112px;
  padding: 22px;
  background: #fff;
}

.dashboard div:nth-child(2) {
  background: #fff7e4;
}

.dashboard div:nth-child(3) {
  background: #e8f2f6;
}

.metric {
  display: block;
  color: var(--green-dark);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
}

.dashboard p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.questions {
  display: grid;
  gap: 20px;
}

.category {
  margin: 0;
  padding: 24px;
}

.category-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.category-help {
  max-width: 840px;
  margin-bottom: 16px;
  color: var(--muted);
}

.category-score {
  min-width: 72px;
  padding: 5px 10px;
  color: var(--green-dark);
  background: var(--mint);
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
}

.items {
  display: grid;
  gap: 12px;
}

.question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 38%);
  gap: 16px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.question-row p {
  margin: 0;
  font-weight: 800;
}

.choice-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.choice {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice:has(input:checked) {
  color: #fff;
  background: var(--green);
  border-color: var(--green-dark);
}

.choice:has(input[value="partial"]:checked) {
  color: var(--ink);
  background: var(--amber);
  border-color: #9a6500;
}

.choice:has(input[value="no"]:checked) {
  color: #fff;
  background: var(--red);
  border-color: #7c2119;
}

.result-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
}

.result-panel p {
  max-width: 780px;
  color: var(--muted);
}

.priority-list {
  max-width: 880px;
  margin: 18px 0 0;
  padding-left: 24px;
}

.priority-list li {
  margin: 8px 0;
  font-weight: 800;
}

.actions {
  justify-content: flex-end;
}

.level-good .score-value {
  color: var(--green);
}

.level-mid .score-value {
  color: #9b6500;
}

.level-low .score-value {
  color: var(--red);
}

@media (max-width: 900px) {
  .hero,
  .hero-overlay {
    min-height: 720px;
  }

  .hero-overlay,
  .field-grid,
  .question-row,
  .result-panel,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .score-card {
    min-height: 220px;
  }

  .choice-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actions {
    justify-content: stretch;
  }

  .button {
    flex: 1 1 180px;
  }
}

@media (max-width: 560px) {
  .hero-overlay,
  .page-shell,
  .quick-note p {
    width: min(100% - 20px, 1180px);
  }

  .hero-overlay {
    padding: 42px 0 38px;
  }

  .event-details,
  .category,
  .result-panel,
  .score-card {
    padding: 18px;
  }

  .choice-group {
    grid-template-columns: 1fr 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .hero-actions,
  .actions,
  .hero-media {
    display: none;
  }

  .hero,
  .hero-overlay {
    min-height: auto;
    color: var(--ink);
    background: #fff;
  }

  .hero-overlay,
  .page-shell {
    width: 100%;
    padding: 0;
  }

  .lead {
    color: var(--ink);
  }

  .score-card,
  .event-details,
  .dashboard,
  .category,
  .result-panel {
    box-shadow: none;
  }
}
