:root {
  --ink: #07172c;
  --deep: #0b2d58;
  --blue: #0e5e9e;
  --gold: #d7ae4a;
  --gold-soft: #f4d985;
  --paper: #f7f9fb;
  --white: #ffffff;
  --muted: #5d6880;
  --line: rgba(215, 174, 74, 0.36);
  --shadow: 0 24px 70px rgba(7, 23, 44, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.topbar {
  position: fixed;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(7, 23, 44, 0.86), rgba(7, 23, 44, 0.12));
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-soft);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

nav {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.92rem;
}

nav a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 36%, rgba(244, 217, 133, 0.38), transparent 25%),
    linear-gradient(90deg, rgba(7, 23, 44, 0.98), rgba(7, 23, 44, 0.68) 48%, rgba(7, 23, 44, 0.38)),
    linear-gradient(0deg, rgba(7, 23, 44, 0.96), rgba(7, 23, 44, 0.08) 58%),
    url("./assets/hero-risset-divino.png") center / cover no-repeat;
  filter: saturate(1.16) contrast(1.04);
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 23, 44, 0.88), transparent 44%),
    radial-gradient(circle at 75% 48%, transparent 0 18%, rgba(7, 23, 44, 0.38) 54%);
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(540px, 1.18fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: 100svh;
  padding: 126px clamp(22px, 5vw, 72px) 54px;
}

.hero-content {
  position: relative;
  max-width: 690px;
  padding: 0;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -30px -22px;
  z-index: -1;
  border: 1px solid rgba(244, 217, 133, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(7, 23, 44, 0.78), rgba(7, 23, 44, 0.24));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.4vw, 4.55rem);
  line-height: 1.03;
  text-wrap: balance;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.42);
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1.02;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.lead {
  max-width: 720px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
}

.hero-note {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--gold-soft);
  font-size: 0.98rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(244, 217, 133, 0.5);
  border-radius: 999px;
  color: #07172c;
  background: linear-gradient(135deg, #fff4c4, var(--gold));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.sound-toggle:focus-visible {
  outline: 3px solid rgba(255, 244, 196, 0.9);
  outline-offset: 4px;
}

.sound-toggle[aria-pressed="true"] .sound-icon {
  animation: soundPulse 1.45s ease-in-out infinite;
}

.sound-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #07172c;
}

.sound-icon::before,
.sound-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(7, 23, 44, 0.38);
  border-radius: 50%;
}

.sound-icon::after {
  inset: -11px;
  opacity: 0.4;
}

@keyframes soundPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(7, 23, 44, 0.28);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(7, 23, 44, 0);
  }
}

.hero-signature {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-signature span {
  border: 1px solid rgba(244, 217, 133, 0.58);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--gold-soft);
  background: rgba(7, 23, 44, 0.34);
  font-weight: 700;
}

.hero-showcase {
  position: relative;
  margin: 0;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: -4% -3%;
  z-index: -1;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 38%, rgba(244, 217, 133, 0.38), transparent 48%),
    linear-gradient(135deg, rgba(244, 217, 133, 0.34), rgba(14, 94, 158, 0.08));
  filter: blur(2px);
}

.hero-showcase img {
  width: 100%;
  border: 1px solid rgba(244, 217, 133, 0.62);
  border-radius: 8px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.45),
    0 0 0 10px rgba(255, 255, 255, 0.04);
  object-fit: contain;
}

.intro,
.visual-section,
.book,
.movement,
.final-call,
.portal-flow {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 88px);
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--white);
  background: #07172c;
  border-top: 1px solid rgba(244, 217, 133, 0.38);
  border-bottom: 1px solid rgba(244, 217, 133, 0.24);
}

.impact-strip article {
  min-height: 126px;
  padding: 28px clamp(20px, 3vw, 42px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 22% 12%, rgba(215, 174, 74, 0.16), transparent 38%);
}

.impact-strip strong {
  display: block;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 1.7vw, 1.55rem);
  line-height: 1.12;
}

.impact-strip span {
  display: block;
  max-width: 260px;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.intro {
  max-width: 1240px;
  margin: 0 auto;
}

.intro > p,
.section-copy p,
.band p,
.final-call p,
.book-card p {
  color: var(--muted);
  font-size: 1.08rem;
}

.truth-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.truth-grid article,
.movement-grid article {
  min-height: 190px;
  padding: 28px;
  border: 1px solid rgba(7, 23, 44, 0.08);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(7, 23, 44, 0.06);
}

.truth-grid span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 700;
}

.truth-grid p,
.movement-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(56px, 7vw, 92px) clamp(20px, 6vw, 88px);
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(244, 217, 133, 0.32), transparent 32%),
    linear-gradient(135deg, #07172c, #0b2d58 62%, #0e5e9e);
}

.band h2 {
  margin-bottom: 0;
}

.band p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.portal-flow {
  max-width: 1320px;
  margin: 0 auto;
}

.portal-flow h2 {
  max-width: 880px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.flow-grid article {
  position: relative;
  min-height: 220px;
  padding: 30px 26px;
  overflow: hidden;
  border: 1px solid rgba(7, 23, 44, 0.08);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(7, 23, 44, 0.07);
}

.flow-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--blue));
}

.flow-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

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

.visual-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1.22fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1480px;
  margin: 0 auto;
}

.visual-section.reverse {
  grid-template-columns: minmax(420px, 1.22fr) minmax(260px, 0.78fr);
}

.visual-section.reverse .section-copy {
  order: 2;
}

.image-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.image-frame.wide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.image-frame.wide.contain {
  background: #07172c;
}

.image-frame.wide.contain img {
  object-fit: contain;
}

.book {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 18% 20%, rgba(215, 174, 74, 0.22), transparent 34%);
}

.book-card {
  display: grid;
  grid-template-columns: minmax(220px, 390px) minmax(300px, 680px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.book-card img {
  width: 100%;
  max-height: 640px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: contain;
}

dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 0;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.movement {
  max-width: 1480px;
  margin: 0 auto;
}

.movement-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(460px, 1.22fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.movement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 34px 0 0;
}

.identity img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center top;
}

.final-call {
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(7, 23, 44, 0.9), rgba(7, 23, 44, 0.9)),
    url("./assets/hero-risset-divino.png") center / cover no-repeat;
}

.final-call p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.78);
}

.participate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 28px;
  padding: 0 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #07172c;
  background: linear-gradient(135deg, #fff4c4, var(--gold));
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 6vw, 88px);
  color: rgba(255, 255, 255, 0.74);
  background: #07172c;
  font-size: 0.92rem;
}

footer p {
  margin: 0;
}

.participation-page {
  color: var(--ink);
  background: radial-gradient(circle at 85% 4%, rgba(215, 174, 74, 0.18), transparent 24rem), var(--paper);
}

.participation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--ink);
}

.back-link {
  color: var(--gold-soft);
  font-weight: 800;
  text-decoration: none;
}

.participation-hero {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 7vw, 110px);
  color: var(--white);
  background: linear-gradient(110deg, rgba(7, 23, 44, 0.98), rgba(11, 45, 88, 0.84)),
    url("./assets/hero-risset-divino.png") center / cover;
}

.participation-hero h1,
.participation-hero > p:not(.eyebrow) { max-width: 940px; }
.participation-hero > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.participation-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.participation-pillars span {
  padding: 8px 15px;
  border: 1px solid rgba(244, 217, 133, 0.5);
  border-radius: 999px;
  color: var(--gold-soft);
  font-weight: 800;
}

.participation-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(32px, 6vw, 88px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.participation-intro {
  position: sticky;
  top: 28px;
  align-self: start;
}

.participation-intro h2 { font-size: clamp(2rem, 3.3vw, 3.5rem); }
.participation-intro > p { color: var(--muted); }

.participation-note {
  margin-top: 30px;
  padding: 24px;
  border-left: 4px solid var(--gold);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(7, 23, 44, 0.07);
}

.participation-note p {
  margin: 8px 0 0;
  color: var(--muted);
}

.participation-form {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(7, 23, 44, 0.08);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row,
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.participation-form label,
.participation-form legend {
  color: var(--deep);
  font-weight: 800;
}

.participation-form input,
.participation-form select,
.participation-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(7, 23, 44, 0.2);
  border-radius: 7px;
  color: var(--ink);
  background: #fbfcfd;
  font: inherit;
}

.participation-form input:focus,
.participation-form select:focus,
.participation-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(14, 94, 158, 0.12);
}

.participation-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-grid {
  gap: 10px 16px;
  margin-top: 12px;
}

.choice-grid label,
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 600;
}

.choice-grid input,
.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.form-submit { border: 0; cursor: pointer; }
.form-submit:disabled { cursor: wait; opacity: 0.65; }
.form-status { min-height: 1.6em; margin: 0; font-weight: 800; text-align: center; }
.form-status.success { color: #216e45; }
.form-status.error { color: #a12828; }
.honeypot { position: absolute; left: -10000px; }

@media (max-width: 980px) {
  .topbar {
    position: absolute;
  }

  nav {
    display: none;
  }

  .truth-grid,
  .movement-grid,
  .impact-strip,
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .band,
  .visual-section,
  .visual-section.reverse,
  .book-card,
  .movement-feature,
  .hero-stage {
    grid-template-columns: 1fr;
  }

  .participation-layout { grid-template-columns: 1fr; }
  .participation-intro { position: static; }

  .hero-stage {
    padding-top: 110px;
  }

  .visual-section.reverse .section-copy {
    order: 0;
  }

  .hero-showcase {
    order: -1;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 14px 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-stage {
    padding: 96px 20px 42px;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .hero-content::before {
    inset: -18px -14px;
  }

  .truth-grid,
  .movement-grid,
  .impact-strip,
  .flow-grid,
  dl {
    grid-template-columns: 1fr;
  }

  .truth-grid article,
  .movement-grid article {
    min-height: auto;
  }

  .image-frame.wide img {
    aspect-ratio: 4 / 3;
  }

  .image-frame.wide.contain img {
    aspect-ratio: auto;
  }

  footer {
    display: block;
  }

  .participation-header .brand small { display: none; }
  .back-link { font-size: 0.9rem; }
  .form-row,
  .choice-grid { grid-template-columns: 1fr; }
}
