/* Pagine interne — stili editoriali del progetto (non fanno parte del kit riusabile). */

.page {
  background: var(--techne-cream);
}

.page-hero {
  padding: clamp(2.75rem, 8vw, 5.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgb(74 74 66 / 12%);
}

.page-hero__inner,
.page-body {
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

.page-hero__eyebrow {
  display: inline-block;
  color: var(--techne-copper-deep);
  margin-bottom: 0.9rem;
}

.page-hero__title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
}

.page-hero__subtitle {
  max-width: 34rem;
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--techne-ink);
}

.page-body {
  padding-block: clamp(2rem, 6vw, 3.5rem) clamp(3rem, 9vw, 6rem);
}

/* Prose: tipografia leggibile per il contenuto editoriale */

.prose {
  font-size: 1.075rem;
  line-height: 1.7;
  color: var(--techne-ink);
}

.prose > * + * { margin-top: 1.15rem; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--techne-ink-deep);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin-top: 2.75rem;
  padding-top: 0.4rem;
}

.prose h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-bottom: 0.9rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--techne-sage), var(--techne-copper));
}

.prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--techne-ink-deep);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  margin-top: 1.9rem;
}

.prose a {
  color: var(--techne-copper-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.prose a:hover,
.prose a:focus-visible { color: var(--techne-copper); }

.prose strong { color: var(--techne-ink-deep); }

.prose ul,
.prose ol {
  padding-left: 1.35rem;
  margin-block: 1.15rem;
}

.prose li + li { margin-top: 0.5rem; }

.prose li::marker { color: var(--techne-sage-deep); }

.prose blockquote {
  margin: 1.6rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 3px solid var(--techne-sage);
  color: var(--techne-ink-deep);
  font-size: 1.15rem;
}

.prose hr {
  border: 0;
  height: 1px;
  background: rgb(74 74 66 / 15%);
  margin: 2.75rem 0;
}

/* Griglia di schede informative (dati ente, passi, tessere) */

.info-grid {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.info-card {
  margin: 0;
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
  background: rgb(255 255 255 / 55%);
  border: 1px solid rgb(126 155 110 / 30%);
  box-shadow: 0 12px 32px rgb(58 48 38 / 7%);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  border-color: rgb(126 155 110 / 55%);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgb(58 48 38 / 10%);
}

.info-card__k {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  color: var(--techne-copper-deep);
  margin: 0 0 0.35rem;
}

.info-card__v {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--techne-ink-deep);
  line-height: 1.15;
}

.info-card__note {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--techne-ink);
}

/* Passi numerati (es. Diventa socio) */

.step-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.6rem 0;
  display: grid;
  gap: 0.75rem;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding: 1.15rem 1.3rem 1.15rem 4.1rem;
  border-radius: 14px;
  background: rgb(255 255 255 / 50%);
  border: 1px solid rgb(74 74 66 / 10%);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.step-list li:hover {
  border-color: rgb(126 155 110 / 45%);
  background: rgb(255 255 255 / 75%);
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgb(185 130 90 / 14%);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--techne-copper-deep);
}

/* Elenco documenti scaricabili (Trasparenza) */

.doc-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  display: grid;
  gap: 0.6rem;
}

.doc-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-radius: 12px;
  background: rgb(255 255 255 / 55%);
  border: 1px solid rgb(126 155 110 / 30%);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--techne-ink-deep);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.doc-list a:hover,
.doc-list a:focus-visible {
  border-color: var(--techne-sage-deep);
  background: rgb(255 255 255 / 80%);
}

.doc-list .doc-list__meta {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--techne-copper-deep);
  white-space: nowrap;
}

/* Callout: avvisi ("in aggiornamento") e note normative */

.callout {
  margin: 1.6rem 0;
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  background: rgb(126 155 110 / 12%);
  border: 1px solid rgb(126 155 110 / 30%);
  font-size: 0.98rem;
}

.callout p { margin: 0; }
.callout p + p { margin-top: 0.6rem; }

.callout--muted {
  background: rgb(74 74 66 / 6%);
  border-color: rgb(74 74 66 / 15%);
  color: var(--techne-ink);
}

.callout__label {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  color: var(--techne-copper-deep);
  margin-bottom: 0.4rem;
}

/* CTA in coda alle pagine */

.page-cta {
  margin-top: 2.75rem;
  padding: 2rem 2.2rem;
  border-radius: 22px;
  box-shadow: 0 24px 48px -18px rgb(46 51 42 / 45%);
  background: var(--techne-ink-deep);
  color: var(--techne-cream);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.page-cta p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}

.page-cta .pill-cta {
  background: var(--techne-copper);
  color: var(--techne-cream);
}

.page-cta .pill-cta:hover,
.page-cta .pill-cta:focus-visible { background: var(--techne-copper-deep); }

/* Due colonne: il modulo di iscrizione accanto al testo (Entra in Téchne).

   Il modulo è primo nel DOM — su mobile apre la pagina, su desktop cade
   nella colonna sinistra. Sotto la soglia la pagina torna a colonna unica
   con la misura di lettura di sempre. */

.page-duo {
  display: grid;
  align-items: start;
  gap: clamp(2rem, 5vw, 3.25rem);
}

/* La colonna del modulo è un pannello: un velo sage la stacca dal cream
   della pagina e titolo, form e schede si leggono come un'unica unità. */
.page-duo__form {
  background: linear-gradient(180deg, rgb(126 155 110 / 14%), rgb(126 155 110 / 5%));
  border: 1px solid rgb(126 155 110 / 28%);
  border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 1.9rem);
}

.page-duo__form .techne-interesse {
  margin-block: 1.25rem 0;
  max-width: none;
}

.page-duo__form > :first-child { margin-top: 0; }

/* Dentro il pannello il titolo si fa etichetta: compatto, senza lo stacco
   di sezione che ha nel corpo editoriale. */
.page-duo__form h2 {
  font-size: 1.45rem;
  margin-top: 0;
  padding-top: 0;
}

.page-duo__form h2::before {
  width: 2rem;
  margin-bottom: 0.7rem;
}

.page-duo__form > p { font-size: 0.98rem; }

/* Le schede si accordano al pannello con una superficie più piena. */
.page-duo__form .info-card { background: rgb(255 255 255 / 78%); }

.page-duo__main > :first-child { margin-top: 0; }

@media (min-width: 64rem) {
  .page-duo {
    max-width: 72rem;
    grid-template-columns: 26rem minmax(0, 1fr);
  }

  /* L'hero segue la misura larga, o il suo bordo non tornerebbe con le colonne. */
  .page--duo .page-hero__inner { max-width: 72rem; }

  /* Nella colonna stretta le schede si impilano invece di stringersi. */
  .page-duo__form .info-grid { grid-template-columns: 1fr; }
}

/* Il modulo tiene la posizione solo dove ci sta tutto: la colonna misura
   circa 82rem (modulo + schede) e sotto questa soglia lo sticky resterebbe
   appeso in cima col bottone di invio fuori campo. Su schermi più bassi
   scorre col resto della pagina, che è il comportamento onesto. */
@media (min-width: 64rem) and (min-height: 88rem) {
  .page-duo__form {
    position: sticky;
    top: 2rem;
  }
}
