:root {
  --ink: #0b2540;
  --gulf: #12365a;
  --gulf-deep: #0c2a47;
  --sea: #eaf5fa;
  --paper: #ffffff;
  --lemon: #e89934;
  --sky: #1ec6ea;
  --line: #c3dbe7;
  --muted: #3f566c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sea);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--gulf); }
a:hover { color: var(--gulf-deep); }

a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--gulf);
  outline-offset: 3px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Intestazione */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--sky);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}

.brand-logo {
  display: block;
  width: auto;
  height: 52px;
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 6px 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  border-bottom-color: var(--lemon);
}

/* Titoli e testo */
h1, h2 {
  font-family: var(--serif);
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin: 0 0 20px;
}

h2 {
  font-size: 1.8rem;
  margin: 0 0 16px;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
}

p { margin: 0 0 14px; }

.lead {
  font-size: 1.15rem;
  max-width: 34rem;
}

.prose { max-width: 42rem; }

/* Pulsanti */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--gulf);
  color: #fff;
  border: 2px solid var(--gulf);
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  background: var(--gulf-deep);
  border-color: var(--gulf-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Prima schermata */
.hero { padding: 56px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

/* Tessera di esempio */
.pass {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 22px 22px 24px;
  background: var(--gulf-deep);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px -18px rgba(14, 34, 56, 0.55);
}

.pass-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--lemon);
}

.pass-logo {
  flex-shrink: 0;
  width: 44px;
  height: auto;
  padding: 3px;
  background: #fff;
  border-radius: 8px;
}

.pass-org {
  flex: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.25;
}

.pass-tag {
  flex-shrink: 0;
  padding: 2px 10px;
  background: var(--lemon);
  color: var(--ink);
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 700;
}

.pass-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  margin: 18px 0 0;
}

.pass-data dt {
  font-size: 0.76rem;
  color: #b9cce0;
}

.pass-data dd {
  margin: 2px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.pass-data .wide { grid-column: 1 / -1; }

.pass-qr {
  width: 150px;
  margin: 20px auto 0;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
}

.pass-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.pass-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.76rem;
  color: #b9cce0;
}

/* Sezioni */
.section { padding: 56px 0; }

.section-paper {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-head { padding: 48px 0 8px; }

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.cols p { color: var(--muted); }

/* Procedura */
.steps {
  list-style: none;
  counter-reset: passo;
  display: grid;
  gap: 24px;
  max-width: 44rem;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding-left: 58px;
  counter-increment: passo;
}

.steps li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--lemon);
  color: var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
}

.steps p { margin: 0; color: var(--muted); }

/* Elenchi di dati */
.facts {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 12px 24px;
  max-width: 44rem;
  margin: 0;
}

.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }

/* Domande frequenti */
.faq { max-width: 44rem; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }

.faq summary {
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* Testi legali */
.legal { max-width: 44rem; }
.legal h2 { font-size: 1.4rem; margin-top: 32px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }

/* Piè di pagina */
.site-footer {
  padding: 36px 0;
  background: var(--ink);
  color: #d8e3ee;
  font-size: 0.95rem;
}

.site-footer a { color: #fff; }

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
}

.site-footer p { margin: 0 0 6px; }
.footer-name { font-family: var(--serif); font-size: 1.1rem; color: #fff; }

@media (max-width: 820px) {
  body { font-size: 17px; }
  .hero { padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 44px 0; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 12px; }
}
