/* Stile ricavato dal sito mindtheaction.it, pagina /dona (rilievo del 30/10/2026). */

@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('/fonts/inter-tight-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --inchiostro: #0b1220;
  --carta: #fcf8f2;
  --avorio: #f4f1ea;
  --avorio-caldo: #f4efeb;
  --rosso: #d7392a;
  --rosso-testo: #b92c1e; /* contrasto AA per testo piccolo e pulsanti */
  --bordo: #d9d3c9;
  --grigio: #55565c;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Tight', -apple-system, system-ui, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--carta);
  color: var(--inchiostro);
  font: 400 17px/1.6 var(--sans);
  letter-spacing: -0.005em;
}
a { color: var(--rosso-testo); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--rosso-testo); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }

/* Testata e banda */
.testata { padding: 18px clamp(20px, 5vw, 56px); background: var(--avorio); }
.testata img { display: block; width: 216px; height: auto; }

.banda {
  background-color: var(--inchiostro);
  background-image:
    linear-gradient(rgba(244, 241, 234, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--avorio);
  padding: clamp(28px, 7vw, 80px) clamp(20px, 5vw, 56px);
}
.banda-interno { max-width: 1120px; margin: 0 auto; }
.banda h1 { font-size: clamp(38px, 6.4vw, 64px); line-height: 1.04; letter-spacing: -0.025em; }
.banda em { color: var(--rosso); font-style: italic; }
.banda p { margin: 14px 0 0; max-width: 60ch; color: rgba(244, 241, 234, .82); font-size: 18px; line-height: 1.5; }

/* Griglia della pagina */
.pagina {
  max-width: 1232px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) clamp(20px, 5vw, 56px);
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "procedura" "scheda" "note";
}
.procedura { grid-area: procedura; }
.scheda { grid-area: scheda; }
.note { grid-area: note; }

@media (min-width: 960px) {
  .pagina {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas: "procedura scheda" "note scheda";
    grid-template-rows: auto 1fr;
  }
}

.procedura h2, .scheda h2 {
  font-size: clamp(27px, 3vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--rosso-testo);
}

/* Passi */
.passi { list-style: none; counter-reset: passo; margin: 24px 0 0; padding: 0; }
.passi li {
  counter-increment: passo;
  position: relative;
  padding: 0 0 14px 54px;
  min-height: 50px;
}
.passi li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--inchiostro);
  font: 500 14px/1 var(--mono);
}
.passi li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 36px;
  bottom: 0;
  width: 1px;
  background: var(--bordo);
}
.passi li[aria-current="step"]::before {
  background: var(--rosso-testo);
  border-color: var(--rosso-testo);
  color: #fff;
}
.passi strong { display: block; font-weight: 600; line-height: 36px; }
.passi span { display: block; color: var(--grigio); font-size: 16px; line-height: 1.5; }

.avviso {
  margin: 8px 0 0;
  padding: 14px 18px;
  background: var(--avorio-caldo);
  border-left: 3px solid var(--rosso-testo);
  font-size: 16px;
  line-height: 1.5;
}

/* Scheda del modulo */
.scheda {
  align-self: start;
  background: #fff;
  border: 1px solid var(--bordo);
  padding: clamp(22px, 3.4vw, 40px);
}
.scheda form { display: grid; gap: 20px; }

.due-campi { display: grid; gap: 20px; }
@media (min-width: 520px) { .due-campi { grid-template-columns: 1fr 1fr; } }

.campo label:not(.spunta) { display: block; margin-bottom: 6px; font-weight: 600; font-size: 16px; }
.campo input[type="text"], .campo input[type="email"] {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #8f8d88;
  border-radius: 0;
  background: #fff;
  color: var(--inchiostro);
  font: 400 17px var(--sans);
  -webkit-appearance: none;
  appearance: none;
}
.campo input.maiuscolo { font: 500 16px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.campo input:focus { outline: 2px solid var(--inchiostro); outline-offset: -1px; }
.campo input[aria-invalid="true"] { border-color: var(--rosso-testo); box-shadow: inset 3px 0 0 var(--rosso-testo); }

.con-valuta { position: relative; }
.con-valuta span { position: absolute; left: 14px; top: 0; line-height: 52px; font-size: 18px; color: var(--grigio); }
.campo .con-valuta input { padding-left: 34px; font-size: 18px; font-weight: 500; }
.campo-importo .con-valuta { max-width: 220px; }

.aiuto { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: var(--grigio); }
.errore { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: var(--rosso-testo); font-weight: 500; }
.errore-generale { margin: 0; }

.spunta { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 16px; line-height: 1.5; }
.spunta input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--rosso-testo); }

/* Fuori schermo per le persone, visibile ai bot */
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pulsante {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  padding: 14px 24px;
  border: 1px solid var(--rosso-testo);
  border-radius: 0;
  background: var(--rosso-testo);
  color: #fff;
  font: 400 18px var(--serif);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.pulsante:hover { background: #9c2418; border-color: #9c2418; }
.pulsante:focus-visible { outline: 2px solid var(--inchiostro); outline-offset: 2px; }
.pulsante[disabled] { background: var(--grigio); border-color: var(--grigio); cursor: progress; }

/* Conferma */
.conferma:focus { outline: none; }
.conferma p { margin: 14px 0 0; }
.conferma .importo-grande { margin: 10px 0 20px; font: 400 24px/1.25 var(--serif); }
.conferma .importo-grande strong { font-weight: 600; white-space: nowrap; }
.conferma strong { overflow-wrap: anywhere; }
.collegamento {
  margin-top: 20px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--rosso-testo);
  font: 400 16px var(--sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Note */
.note section + section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--bordo); }
.note h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.012em; }
.note p { margin: 8px 0 0; max-width: 62ch; font-size: 16px; line-height: 1.55; }

/* Piede */
.piede { background: var(--inchiostro); color: rgba(244, 241, 234, .78); padding: 40px clamp(20px, 5vw, 56px); font-size: 15px; }
.piede img { display: block; width: 180px; height: auto; margin-bottom: 16px; }
.piede p { margin: 6px 0 0; }
.piede p a { color: var(--avorio); margin-right: 18px; display: inline-block; padding: 2px 0; }

/* Informativa */
.banda-bassa { padding-block: clamp(32px, 5vw, 56px); }
.banda-bassa h1 { font-size: clamp(34px, 5vw, 52px); }
.testo-legale { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 32px) clamp(48px, 7vw, 88px); }
.testo-legale h2 { margin-top: 36px; font-size: 25px; line-height: 1.2; letter-spacing: -0.014em; }
.testo-legale p, .testo-legale ul { margin: 12px 0 0; }
.testo-legale ul { padding-left: 20px; }
.testo-legale li + li { margin-top: 8px; }
.testo-legale table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.testo-legale th, .testo-legale td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--bordo); text-align: left; vertical-align: top; }
.testo-legale th { font-weight: 600; }
.aggiornamento { color: var(--grigio); font-size: 15px; }
.torna { margin-top: 40px !important; }

@media (max-width: 520px) {
  .testo-legale table, .testo-legale tbody, .testo-legale tr, .testo-legale td { display: block; }
  .testo-legale thead { display: none; }
  .testo-legale tr { padding: 10px 0; border-bottom: 1px solid var(--bordo); }
  .testo-legale td { padding: 2px 0; border: 0; }
  .testo-legale td:first-child { font-weight: 600; }
}
