:root {
  --forest: #123d31;
  --forest-deep: #0d2f26;
  --gold: #e5c98d;
  --ivory: #f3f4f0;
  --blue: #91b9c4;
  --ink-soft: #35574c;
  --line: #c9d7d2;
  --white: #ffffff;
  --page-max: 1440px;
  --content-max: 1180px;
  --z-header: 20;
  --z-menu: 30;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--forest);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
.brand-name,
.footer-brand strong {
  font-family: "Literata", "Iowan Old Style", serif;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: calc(var(--z-menu) + 1);
  translate: 0 -160%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  background: var(--gold);
  color: var(--forest-deep);
  font-weight: 700;
  text-decoration: none;
  transition: translate 180ms var(--ease-out);
}

.skip-link:focus {
  translate: 0;
}

.site-header {
  position: relative;
  z-index: var(--z-header);
  width: min(100%, var(--page-max));
  min-height: 78px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.brand {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img {
  width: 48px;
  height: 48px;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.brand-name span {
  display: inline;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.site-menu > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 6px;
}

.site-menu > a:not(.button):hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--forest);
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  font: 700 .95rem "Source Sans 3", system-ui, sans-serif;
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--ivory);
  font-weight: 750;
  text-decoration: none;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), translate 180ms var(--ease-out);
}

.button:hover {
  background: var(--forest-deep);
  translate: 0 -1px;
}

.button-small {
  min-height: 44px;
  padding-inline: 18px;
  font-size: .88rem;
}

.button-gold {
  background: var(--gold);
  color: var(--forest-deep);
}

.button-gold:hover {
  background: #efd8a4;
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  isolation: isolate;
  width: min(100%, var(--page-max));
  min-height: min(720px, calc(100svh - 78px));
  margin: 0 auto;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--ivory);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(58%, 760px);
  min-height: inherit;
  padding: clamp(54px, 6vw, 82px) clamp(28px, 4.4vw, 64px) 42px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero h1 {
  max-width: 620px;
  margin: 0 0 25px;
  color: var(--ivory);
  font-size: clamp(3.25rem, 5.8vw, 5.125rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
}

.hero-lead {
  max-width: 510px;
  margin: 0;
  color: rgb(243 244 240 / 92%);
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 31px;
}

.hero .button {
  background: var(--gold);
  color: var(--forest-deep);
}

.hero .button:hover {
  background: #efd8a4;
}

.hero .text-link {
  color: var(--ivory);
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.project-status {
  width: min(100%, 520px);
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgb(243 244 240 / 38%);
  display: grid;
  gap: 2px;
  color: rgb(243 244 240 / 88%);
  font-size: .95rem;
}

.project-status strong {
  color: var(--gold);
  font-size: 1.06rem;
}

.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: var(--forest-deep);
}

.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 52% center;
}

.hero-poster {
  z-index: 0;
}

.hero-video {
  z-index: 1;
}

.hero-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(7 30 24 / 91%) 0%, rgb(7 30 24 / 74%) 40%, rgb(7 30 24 / 30%) 72%, rgb(7 30 24 / 18%) 100%),
    linear-gradient(0deg, rgb(7 30 24 / 36%) 0%, transparent 42%);
  pointer-events: none;
}

.hero-media figcaption {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 8px 10px;
  background: rgb(7 30 24 / 76%);
  color: var(--ivory);
  font-size: .78rem;
  line-height: 1.3;
}

.hero-motion-control {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 58px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgb(243 244 240 / 55%);
  background: rgb(13 47 38 / 88%);
  color: var(--ivory);
  font: 700 .88rem "Source Sans 3", system-ui, sans-serif;
  cursor: pointer;
}

.section-pad {
  padding: clamp(74px, 9vw, 126px) clamp(24px, 6vw, 86px);
}

.section-label {
  margin: 0 0 13px;
  color: var(--ink-soft);
  font-weight: 700;
}

.vision {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(42px, 8vw, 100px);
  align-items: start;
}

.vision h2,
.section-heading h2,
.encounter h2,
.join h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.4vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.vision-statement {
  max-width: 650px;
  margin: 0;
  color: var(--forest);
  font-family: "Literata", "Iowan Old Style", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.12rem);
  line-height: 1.42;
}

.scenario {
  padding: clamp(62px, 7vw, 94px) max(24px, calc((100% - var(--content-max)) / 2));
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(42px, 8vw, 100px);
  background: var(--blue);
}

.scenario h2 {
  max-width: 430px;
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.08;
}

.scenario-list {
  margin: 0;
}

.scenario-list > div {
  padding: 20px 0;
  display: grid;
  grid-template-columns: minmax(160px, .7fr) 1.3fr;
  gap: 25px;
  border-top: 1px solid rgb(18 61 49 / 35%);
}

.scenario-list > div:last-child {
  border-bottom: 1px solid rgb(18 61 49 / 35%);
}

.scenario-list dt {
  font-family: "Literata", "Iowan Old Style", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.scenario-list dd {
  margin: 0;
  color: var(--forest);
  font-size: 1.08rem;
  line-height: 1.5;
}

.principles {
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 54px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: clamp(28px, 4.5vw, 58px);
  align-items: end;
}

.section-heading h2 {
  font-size: clamp(2.35rem, 4vw, 3.7rem);
}

.section-heading p {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.5;
}

.principles-video {
  margin: 0 0 clamp(46px, 6vw, 72px);
}

.principles-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--forest-deep);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 8px rgb(13 47 38 / 12%);
}

.principles-video figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: .9rem;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(34px, 7vw, 86px);
}

.principle-list article {
  padding: 25px 0 28px;
  border-top: 1px solid var(--line);
}

.principle-list h3 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.2;
}

.principle-list p {
  max-width: 50ch;
  margin: 0;
  color: var(--ink-soft);
}

.encounter {
  padding: clamp(76px, 9vw, 126px) max(24px, calc((100% - var(--content-max)) / 2));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 9vw, 120px);
  background: var(--forest);
  color: var(--ivory);
}

.encounter .section-label,
.encounter-copy {
  color: #dce7e1;
}

.encounter-copy > p {
  max-width: 62ch;
  margin: 0;
  font-size: 1.08rem;
}

.phase-list {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.phase-list > div {
  padding-top: 18px;
  border-top: 1px solid rgb(229 201 141 / 60%);
  display: grid;
  gap: 6px;
}

.phase-list strong {
  color: var(--gold);
  font-family: "Literata", "Iowan Old Style", serif;
  font-size: 1.1rem;
}

.join {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 5vw, 56px);
}

.join-heading {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: end;
}

.join-heading-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.join-heading-copy > p {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.join-heading-copy .section-label {
  margin-bottom: 0;
}

.join-heading-copy h2 {
  margin: 0;
}

.join-heading-copy .reel-intro {
  margin-top: 10px;
  color: var(--forest);
  font-family: "Literata", "Iowan Old Style", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.lite-youtube {
  margin: 0;
}

.lite-youtube button {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--forest-deep);
  border: 0;
  cursor: pointer;
  aspect-ratio: 9 / 16;
}

.lite-youtube button > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lite-youtube iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
}

.lite-youtube button > span {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--forest-deep);
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgb(13 47 38 / 28%);
}

.lite-youtube figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: .86rem;
}

.cta-reel {
  width: min(100%, 360px);
  justify-self: end;
}

.path-chooser {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.path-guidance {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  margin: 0 0 4px;
  color: var(--forest);
  font-family: "Literata", "Iowan Old Style", serif;
  font-size: clamp(1.12rem, 1.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.path-guidance-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--forest-deep);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1;
}

/* Reveal della frase all'ingresso nella viewport.
   Tecnica del demo "Image Reveal" di scroll-driven-animations.style:
   view-timeline sull'elemento + clip-path inset che si apre dal centro. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .path-guidance-text {
      /* serve un box non-inline: su uno span inline la view-timeline non avanza */
      display: inline-block;
      animation: linear path-guidance-reveal both;
      animation-timeline: view();
      animation-range: entry 20% cover 42%;
    }
  }
}

@keyframes path-guidance-reveal {
  from {
    opacity: 0;
    clip-path: inset(45% 22% 45% 22%);
  }
  to {
    opacity: 1;
    clip-path: inset(0% 0% 0% 0%);
  }
}

.path-guidance.is-guiding {
  animation: path-guidance-enter 560ms var(--ease-out) 1;
}

.path-guidance.is-guiding .path-guidance-mark {
  animation: path-guidance-mark 480ms var(--ease-out) 180ms 1;
}

.path-card {
  position: relative;
  display: block;
  min-height: 170px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.path-card:nth-of-type(1) {
  --path-index: 0;
}

.path-card:nth-of-type(2) {
  --path-index: 1;
}

.path-card:nth-of-type(3) {
  --path-index: 2;
}

.path-chooser.is-guiding .path-card:not(:has(input:checked)) {
  animation:
    path-card-guide
    520ms
    var(--ease-out)
    calc(320ms + var(--path-index) * 140ms)
    1;
}

.path-card:hover {
  border-color: var(--forest);
}

.path-card:has(input:checked) {
  background: var(--forest);
  color: var(--ivory);
  border-color: var(--forest);
}

.path-card input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.path-card:has(input:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.path-card span,
.path-card strong,
.path-card small {
  display: block;
}

.path-card strong {
  margin-bottom: 10px;
  font-family: "Literata", "Iowan Old Style", serif;
  font-size: 1.25rem;
}

.path-card small {
  color: inherit;
  font-size: .96rem;
  line-height: 1.45;
}

@keyframes path-guidance-enter {
  from {
    opacity: .72;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes path-guidance-mark {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

@keyframes path-card-guide {
  0%,
  100% {
    border-top-color: var(--blue);
    transform: translateY(0);
  }

  48% {
    border-top-color: var(--gold);
    transform: translateY(-3px);
  }
}

.participation-form-intro {
  display: grid;
  gap: 7px;
  padding: clamp(22px, 4vw, 32px);
  color: var(--forest);
  background: var(--white);
  border-top: 4px solid var(--gold);
}

.participation-form-intro strong {
  font-family: "Literata", "Iowan Old Style", serif;
  font-size: 1.3rem;
  line-height: 1.25;
}

.participation-form-intro span {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.participation-form {
  padding: clamp(22px, 4vw, 44px);
  background: var(--white);
  border-top: 4px solid var(--gold);
}

.form-grid,
.participation-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.participation-form fieldset {
  margin: 28px 0 0;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.participation-form legend {
  padding: 0 0 14px;
  font-family: "Literata", "Iowan Old Style", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.participation-form label {
  display: grid;
  gap: 7px;
  color: var(--forest-deep);
  font-weight: 600;
}

.required-note,
.field-guidance {
  color: var(--ink-soft);
  font-size: .92rem;
}

.required-note {
  margin: 0 0 22px;
}

.field-label {
  display: inline;
}

.field-label [data-required-marker] {
  color: #7a241d;
}

.field-guidance {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 400;
}

.participation-form > label:not(.check-card):not(.privacy-check) {
  margin-top: 22px;
}

.participation-form input,
.participation-form select,
.participation-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--forest);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}

.participation-form textarea {
  resize: vertical;
}

.participation-form input:focus-visible,
.participation-form select:focus-visible,
.participation-form textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue), transparent 25%);
  outline-offset: 2px;
}

.check-card,
.privacy-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  margin-top: 18px;
  padding: 16px;
  background: #eee8dc;
}

.check-card input,
.privacy-check input {
  width: 22px;
  min-height: 22px;
  margin: 1px 0 0;
}

.form-message,
.form-errors {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 16px;
  background: #eee8dc;
  border: 1px solid var(--gold);
}

.form-errors h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.form-errors ul {
  margin: 0;
  padding-left: 20px;
}

.form-errors a {
  text-underline-offset: 4px;
}

[aria-invalid="true"] {
  border-color: #a84b42 !important;
}

.form-message:empty {
  display: none;
}

.form-errors {
  margin: 22px 0;
  color: #7a241d;
  background: #fff2f0;
  border-color: #a84b42;
}

.participation-form > .button {
  margin-top: 24px;
  border: 0;
  cursor: pointer;
}

.form-success {
  padding: 26px;
  background: var(--forest);
  color: var(--ivory);
  border-top: 5px solid var(--gold);
}

.form-success h3 {
  margin: 0 0 7px;
  color: var(--gold);
  font-family: "Literata", "Iowan Old Style", serif;
}

.form-success p {
  margin: 0;
}

.response-note {
  max-width: 72ch;
  margin: 19px 0 0;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.55;
}

.response-note > span {
  display: block;
}

.participation-form[aria-busy="true"] {
  cursor: progress;
}

.participation-form[aria-busy="true"] button[type="submit"] {
  opacity: 0.72;
}

.submit-status {
  min-height: 1.5em;
  color: var(--forest);
  font-weight: 600;
}

.participation-turnstile {
  width: 100%;
  min-height: 1px;
}

.verification-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--forest);
  font-weight: 600;
}

.verification-status a {
  color: inherit;
  text-underline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.partners {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding-top: 26px;
}

.partners h2 {
  max-width: 720px;
  margin: 0 0 36px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.12;
}

.partners ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  list-style: none;
}

.partners li {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.partners li strong {
  font-family: "Literata", "Iowan Old Style", serif;
  font-size: 1.08rem;
}

.partners li span {
  color: var(--ink-soft);
}

.site-footer {
  padding: 40px max(24px, calc((100% - var(--content-max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--forest-deep);
  color: var(--ivory);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
}

.footer-brand div {
  display: grid;
  gap: 3px;
}

.footer-brand strong {
  color: var(--gold);
  font-size: 1.02rem;
}

.footer-brand span,
.site-footer > a {
  color: #d5e0db;
  font-size: .9rem;
}

.site-footer > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-underline-offset: 5px;
}

@media (max-width: 64rem) {
  .site-header {
    min-height: 70px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    line-height: 1.05;
    white-space: normal;
  }

  .brand-name span {
    display: block;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-menu {
    position: absolute;
    z-index: var(--z-menu);
    inset: 100% 0 auto;
    padding: 15px 20px 22px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    background: var(--ivory);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .site-menu[data-open="true"] {
    display: flex;
  }

  .site-menu > a {
    justify-content: flex-start;
    padding: 0 8px;
  }

  .site-menu .button {
    justify-content: center;
    margin-top: 9px;
  }

  .hero {
    min-height: min(700px, calc(100svh - 70px));
  }

  .hero-copy {
    width: min(72%, 650px);
  }
}

@media (max-width: 48rem) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header {
    padding-inline: 18px;
  }

  .brand-name {
    font-size: .94rem;
  }

  .hero-copy {
    width: 100%;
    min-height: inherit;
    padding: 44px 22px 64px;
  }

  .hero h1 {
    max-width: 520px;
    font-size: clamp(2.72rem, 13vw, 4rem);
    letter-spacing: -.03em;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .project-status {
    margin-top: 38px;
  }

  .hero-poster,
  .hero-video {
    object-position: 56% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgb(7 30 24 / 84%) 0%, rgb(7 30 24 / 60%) 100%),
      linear-gradient(0deg, rgb(7 30 24 / 52%) 0%, transparent 46%);
  }

  .hero-media figcaption {
    right: 12px;
    bottom: 12px;
  }

  .hero-motion-control {
    right: 12px;
    bottom: 56px;
  }

  .vision,
  .scenario,
  .section-heading,
  .encounter,
  .join {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 18px;
  }

  .section-heading h2 {
    font-size: clamp(2.3rem, 10vw, 2.65rem);
  }

  .join-heading,
  .path-chooser,
  .form-grid,
  .participation-form fieldset {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: auto;
  }

  .participation-form {
    padding-inline: 18px;
  }

  .response-note {
    max-width: 100%;
  }

  .response-note > span {
    display: inline;
  }

  .cta-reel {
    width: min(82vw, 360px);
    justify-self: center;
  }

  .vision,
  .scenario,
  .encounter,
  .join {
    gap: 38px;
  }

  .scenario-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .principle-list {
    grid-template-columns: 1fr;
  }

  .phase-list {
    grid-template-columns: 1fr;
  }

  .partners ul {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.privacy-page {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 0;
}

.privacy-page article {
  display: grid;
  gap: 16px;
}

.privacy-page h1,
.privacy-page h2,
.privacy-page p {
  margin: 0;
}

.privacy-page h2 {
  margin-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-video {
    display: none;
  }

  .path-guidance.is-guiding,
  .path-guidance.is-guiding .path-guidance-mark,
  .path-chooser.is-guiding .path-card {
    animation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Open day: la pagina riusa il grosso del foglio, questi sono i blocchi propri. */
.open-day-hero {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: clamp(48px, 6vw, 90px) clamp(24px, 6vw, 86px) clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.open-day-facts {
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.open-day-facts > div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(96px, 8rem) 1fr;
  gap: 16px;
}

.open-day-facts dt {
  font-family: "Literata", "Iowan Old Style", serif;
  color: var(--ink-soft);
}

.open-day-facts dd {
  margin: 0;
}

.open-day-actions {
  margin: 30px 0 0;
}

.open-day-reel {
  margin: 0;
  max-width: 520px;
}

/* Fascia del passaparola: sfondo pieno per staccarla dal modulo che la precede,
   così si legge come un capitolo a sé invece che come un'immagine avanzata. */
.open-day-poster {
  background: var(--forest-deep);
  color: var(--ivory);
}

.open-day-poster-inner {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* Trattata come un oggetto fisico appoggiato: l'inclinazione minima e l'ombra
   profonda la staccano dal fondo e suggeriscono che si può prendere in mano. */
.open-day-poster-figure {
  margin: 0;
  rotate: -1.5deg;
  transition: rotate 220ms var(--ease-out), translate 220ms var(--ease-out);
}

.open-day-poster-figure:hover,
.open-day-poster-figure:focus-within {
  rotate: 0deg;
  translate: 0 -4px;
}

.open-day-poster-figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 18px 48px rgb(7 30 24 / 55%);
}

.open-day-poster-copy h2 {
  margin: 0 0 18px;
  color: var(--ivory);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.open-day-poster-copy p {
  max-width: 46ch;
  margin: 0 0 16px;
  color: rgb(243 244 240 / 90%);
}

.open-day-poster-actions {
  margin: 26px 0 18px;
}

.open-day-poster .button {
  background: var(--gold);
  color: var(--forest-deep);
}

.open-day-poster .button:hover {
  background: #efd8a4;
}

.open-day-poster-note {
  font-size: .95rem;
}

.open-day-poster-note a {
  font-weight: 700;
  text-underline-offset: 5px;
}

.open-day-poster .muted {
  color: rgb(243 244 240 / 62%);
  font-size: .82rem;
}

.muted {
  display: block;
  color: var(--ink-soft);
  font-size: .92rem;
}

@media (max-width: 48rem) {
  .open-day-hero {
    grid-template-columns: 1fr;
  }

  .open-day-facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .open-day-reel {
    max-width: 100%;
  }

  /* Su mobile la locandina va sotto il testo: prima si capisce perché
     scaricarla, poi la si vede. E niente inclinazione, che su schermo
     stretto sembra un difetto di allineamento invece di una scelta. */
  .open-day-poster-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .open-day-poster-figure {
    order: 2;
    rotate: 0deg;
    max-width: 320px;
  }

  .open-day-poster-copy {
    order: 1;
  }
}

/* Modulo dell'open day: riusa .participation-form, questi sono i pezzi che
   sulla pagina dei percorsi vivevano nel markup e qui servono nel foglio. */
.open-day-copy .hero-lead {
  /* Il colore chiaro serve all'eroe scuro della home: qui il fondo è chiaro. */
  color: var(--ink-soft);
}

/* Fuori dallo schermo, non fuori dal documento: un bot lo compila comunque,
   una persona non lo vede e chi usa uno screen reader non lo incontra. */
.field-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.field-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 26px 0 0;
  max-width: 72ch;
  line-height: 1.6;
}

.field-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--forest);
}

.form-actions {
  margin: 26px 0 0;
}

.field-wide {
  grid-column: 1 / -1;
}

/* ── Elpis ──────────────────────────────────────────────────────────────────
   La bolla si apre solo al tocco e non blocca la pagina: chi sta leggendo può
   continuare a leggere con la conversazione aperta accanto. */

.elpis {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.elpis-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--forest);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgb(18 61 49 / 18%);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}

.elpis-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgb(18 61 49 / 24%);
}

.elpis-portrait {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ivory);
  flex: none;
  /* Il fondo dell'illustrazione è crema: senza anello, sul pulsante bianco il
     cerchio si perde e il volto sembra fluttuare. */
  box-shadow: inset 0 0 0 1px rgb(18 61 49 / 18%);
}

.elpis-panel {
  width: min(380px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgb(18 61 49 / 26%);
}

.elpis-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--forest);
  color: var(--ivory);
}

.elpis-head .elpis-portrait {
  width: 34px;
  height: 34px;
}

.elpis-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.elpis-name strong { font-size: .95rem; }

/* La dichiarazione resta sotto il nome per tutta la conversazione: non è una
   frase che scorre via dopo il primo messaggio. */
.elpis-name span {
  font-size: .78rem;
  opacity: .85;
}

.elpis-close {
  margin-left: auto;
  border: 0;
  background: none;
  color: inherit;
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 8px;
}

.elpis-log {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: .95rem;
}

.elpis-message p { margin: 2px 0 0; }

.elpis-message-who {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

.elpis-message-user {
  align-self: flex-end;
  max-width: 85%;
  text-align: right;
}

.elpis-message-user p {
  background: var(--ivory);
  border-radius: 12px 12px 4px 12px;
  padding: 8px 12px;
}

.elpis-message-assistant { max-width: 92%; }

.elpis-choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 14px 10px;
}

.elpis-choice,
.elpis-link-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--forest);
  border-radius: 12px;
  padding: 8px 12px;
  font: inherit;
  font-size: .9rem;
  text-align: left;
  cursor: pointer;
}

.elpis-choice:hover,
.elpis-link-button:hover { border-color: var(--forest); }

.elpis-handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.elpis-form {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line);
}

.elpis-form textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  font-size: .95rem;
  min-height: 44px;
  max-height: 120px;
}

.elpis-note {
  margin: 0;
  padding: 0 14px 12px;
  font-size: .78rem;
  color: var(--ink-soft);
}

.elpis :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .elpis-toggle { transition: none; }
  .elpis-toggle:hover { transform: none; }
}
