/* Strado — landing di marketing (statica, nessun framework).
   Palette "Percorso vivo": light di default, dark via prefers-color-scheme. */

:root {
  --background: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --brand: #134e4a;
  --action: #0f766e;
  --action-text: #ffffff;
  --border: #e2e8f0;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --font-wordmark: Georgia, "Times New Roman", serif;

  --max-width: 960px;
  --max-width-narrow: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0b1220;
    --surface: #151f33;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --brand: #5eead4;
    --action: #14b8a6;
    --action-text: #04211d;
    --border: #253247;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--action);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* Header */

.site-header {
  padding: 1.25rem 0;
}

.wordmark {
  display: inline-flex; align-items: center; gap: 0.45rem;

  font-family: var(--font-wordmark);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--brand);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.back-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Hero */

.hero {
  padding: 3rem 0 4rem;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  color: var(--text);
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 42em;
  margin: 0 0 2rem;
}

/* Buttons */

.btn {
  display: inline-block;
  background: var(--action);
  color: var(--action-text);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem;
  padding: 0.9rem 1.75rem;
  cursor: pointer;
  line-height: 1.2;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Sections */

section {
  padding: 3rem 0;
}

h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  color: var(--text);
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

/* Come funziona — passi */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--action);
  margin-bottom: 0.5rem;
}

.step p {
  margin: 0;
  color: var(--text-secondary);
}

.step strong.emphasis {
  color: var(--text);
}

/* Cosa trovi sul percorso — chip */

.intro-text {
  max-width: 42em;
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
}

.chip-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: var(--surface);
  font-size: 0.95rem;
}

.chip-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  flex: none;
}

.chip-dot--sagra {
  background: #f59e0b;
}
.chip-dot--sport {
  background: #22c55e;
}
.chip-dot--concerto {
  background: #a855f7;
}
.chip-dot--fiera {
  background: #3b82f6;
}
.chip-dot--chiusura {
  background: #dc2626;
}

.chip--chiusura {
  border-color: #dc2626;
}

.closing-note {
  margin: 0;
  color: var(--text-secondary);
}

/* Copertura — blocco dichiarativo */

.declaration {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
}

.declaration p {
  margin: 0;
  color: var(--text-secondary);
}

/* CTA finale */

.cta-band {
  background: var(--brand);
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--action-text);
}

@media (prefers-color-scheme: light) {
  .cta-band h2 {
    color: #ffffff;
  }
}

.cta-band .btn {
  margin-top: 0.5rem;
}

/* Perché conviene */

.honest-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1rem;
}

.honest-note p {
  margin: 0;
  color: var(--text-secondary);
}

/* Form (ripiego elenco leggibile) */

.form-legend {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

.field-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

.field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.field-example {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.required-marker {
  color: var(--action);
  font-weight: 700;
}

.timing-note {
  margin: 1rem 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.mail-note {
  margin: 0.5rem 0 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Portale in arrivo */

.discreet-block {
  color: var(--text-secondary);
  max-width: 42em;
}

/* FAQ */

.faq-item {
  margin-bottom: 1.75rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-secondary);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.site-footer a {
  color: var(--text-secondary);
}

.site-footer .footer-wordmark {
  font-family: var(--font-wordmark);
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.site-footer p {
  margin: 0.5rem 0;
}
