:root {
  --font-sans: "optima-lt-pro", "Segoe UI", Arial, sans-serif;
  --font-display: "optima-lt-pro", "Segoe UI", Arial, sans-serif;
  --cream: #f8efed;
  --cream-deep: #f1ddd7;
  --terracotta: #c65f47;
  --terracotta-deep: #ad503b;
  --terracotta-soft: #e18c6b;
  --ink: #5a342d;
  --muted: #7a5d55;
  --line: rgba(55, 42, 36, 0.12);
  --line-strong: rgba(55, 42, 36, 0.2);
  --shadow: 0 18px 60px rgba(91, 55, 38, 0.08);
  --shadow-strong: 0 24px 70px rgba(121, 64, 45, 0.2);
  --radius: 18px;
  --container: 1536px;
  --content: 980px;
  --nav-height: 64px;
  --nav-height-mobile: 58px;
  --reveal-distance: 28px;
  --reveal-duration: 760ms;
  --reveal-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.55;
  background:
    radial-gradient(circle at top, rgba(255, 250, 248, 0.72), transparent 32%),
    linear-gradient(180deg, #fcf4f2 0%, var(--cream) 28%, #f4e5df 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(198, 95, 71, 0.3);
  outline-offset: 3px;
}

.page-shell {
  overflow: clip;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: clamp(4.4rem, 6vw, 5.9rem) 0;
  scroll-margin-top: calc(var(--nav-height) + 18px);
}

.presentation-section {
  padding-top: clamp(3.6rem, 5.6vw, 4.6rem);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--terracotta);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  line-height: 0.94;
  font-weight: 400;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.02;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 0.55rem;
}

p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

body.is-ready .reveal-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-item {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 700ms ease,
    transform 700ms var(--reveal-ease);
}

.reveal-sequence .reveal-item:nth-child(1) { transition-delay: 80ms; }
.reveal-sequence .reveal-item:nth-child(2) { transition-delay: 160ms; }
.reveal-sequence .reveal-item:nth-child(3) { transition-delay: 240ms; }
.reveal-sequence .reveal-item:nth-child(4) { transition-delay: 320ms; }
.reveal-sequence .reveal-item:nth-child(5) { transition-delay: 400ms; }
.reveal-sequence .reveal-item:nth-child(6) { transition-delay: 480ms; }

.section-reveal {
  opacity: 0;
  transform: translate3d(0, var(--reveal-distance), 0);
  transition:
    opacity var(--reveal-duration) ease,
    transform var(--reveal-duration) var(--reveal-ease);
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero {
  position: relative;
  min-height: 118svh;
  padding: 1.2rem 0 4.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.7), transparent 24%),
    linear-gradient(180deg, rgba(255, 250, 245, 0.35), rgba(255, 250, 245, 0));
}

.hero-shell {
  position: relative;
  z-index: 3;
}

.hero-landscape {
  position: absolute;
  inset: -18vh 0 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.layer {
  position: absolute;
  left: 0;
  width: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center bottom;
  backface-visibility: hidden;
}

.layer-sky {
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 253, 252, 0.82), transparent 24%),
    linear-gradient(180deg, #fff6f3 0%, #fdece6 56%, #f7d7c8 100%);
}

.layer-bg,
.layer-mid,
.layer-village,
.layer-foreground {
  bottom: 0;
  aspect-ratio: 16 / 9;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}

.layer-bg {
  background-image: url("./img/risorsa-6.svg");
  opacity: 0.98;
  z-index: 1;
}

.layer-mid {
  background-image: url("./img/risorsa-5.svg");
  opacity: 0.98;
  z-index: 2;
}

.layer-village {
  background-image: url("./img/risorsa-4.svg");
  opacity: 1;
  z-index: 4;
  background-size: 108% auto;
}

.layer-foreground {
  background-image: url("./img/risorsa-3.svg");
  opacity: 0.99;
  z-index: 5;
}

.site-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: min(100%, 760px);
  min-height: var(--nav-height);
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(252, 245, 242, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(91, 55, 38, 0.05);
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.site-nav.is-scrolled {
  background: rgba(252, 245, 242, 0.88);
  border-color: rgba(184, 95, 66, 0.12);
  box-shadow: 0 12px 28px rgba(91, 55, 38, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  padding-inline: 0.45rem;
}

.logo {
  width: 118px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 1rem;
}

.nav-links > a:not(.button-nav) {
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-links > a:not(.button-nav):hover,
.nav-links > a:not(.button-nav):focus-visible {
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(184, 95, 66, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.92);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(91, 55, 38, 0.08);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 1rem 2rem;
  border: 0;
  border-radius: 12px;
  background: var(--terracotta);
  color: #fff8f1;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 30px rgba(151, 73, 50, 0.18);
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(151, 73, 50, 0.24);
}

.button-nav {
  min-height: 36px;
  padding: 0.55rem 0.8rem;
  font-size: 0.76rem;
  margin-left: 0.1rem;
  margin-right: 0.3rem;
  box-shadow: none;
}

.button-secondary {
  border: 1px solid rgba(184, 95, 66, 0.16);
  background: rgba(255, 250, 245, 0.78);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(91, 55, 38, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(250, 240, 234, 0.98);
  color: var(--terracotta-deep);
  box-shadow: 0 14px 32px rgba(91, 55, 38, 0.12);
}

.button-inline {
  min-height: 46px;
  padding: 0.85rem 1.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button-inline::after {
  content: "→";
  margin-left: 0.15rem;
  font-size: 0.95em;
}

.hero-grid {
  display: grid;
  place-items: center;
  min-height: calc(112svh - 7rem);
}

.hero-copy {
  width: min(100%, 56rem);
  margin-top: -16vh;
  padding: clamp(3rem, 8vw, 6rem) 1.4rem 0;
  text-align: center;
}

.hero-kicker {
  margin: 0 auto 1.15rem;
  color: var(--terracotta);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 16ch);
  margin-inline: auto;
  line-height: 0.92;
  text-align: center;
}

.hero-title-line {
  display: block;
  width: auto;
  white-space: nowrap;
}

.hero-title-line-top {
  align-self: center;
}

.hero-title-line-middle {
  align-self: center;
}

.hero-title-line-bottom {
  align-self: center;
  font-size: 1em;
  letter-spacing: inherit;
}

.hero-subtitle {
  max-width: 39rem;
  margin: 1.5rem auto 0;
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
  line-height: 1.68;
  color: var(--ink);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  width: min(100%, 44rem);
  margin-top: 1.7rem;
  margin-inline: auto;
  padding: 0;
}

.hero-meta-item {
  min-width: 180px;
  padding: 0.7rem 0.95rem 0.75rem;
  border: 1px solid rgba(184, 95, 66, 0.08);
  border-radius: 16px;
  background: rgba(255, 249, 244, 0.46);
  text-align: left;
  box-shadow: 0 8px 20px rgba(91, 55, 38, 0.04);
}

.hero-meta-label {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--terracotta);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-meta-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.hero-note {
  max-width: 34rem;
  margin: 1rem auto 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2.1rem;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease;
}

.hero-link:hover,
.hero-link:focus-visible {
  color: var(--terracotta-deep);
  transform: translateY(-1px);
}

.section-heading {
  max-width: 54rem;
  margin-bottom: 2.15rem;
}

.section-lead {
  max-width: 45rem;
  font-size: 1.04rem;
  line-height: 1.72;
}

.presentation-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 1.35rem clamp(2rem, 4vw, 3.6rem);
  align-items: start;
}

.presentation-wrap .eyebrow {
  grid-column: 1;
  margin-bottom: 0.2rem;
}

.presentation-wrap h2 {
  grid-column: 1;
  max-width: none;
  margin: 0;
}

.presentation-title {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  max-width: 100%;
  font-size: 3rem;
  line-height: 1;
}

.presentation-title-line {
  display: block;
  white-space: nowrap;
}

.presentation-content {
  grid-column: 2;
  grid-row: 2 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.05rem;
  max-width: 46rem;
  align-self: start;
}

.presentation-wrap p {
  max-width: 100%;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.presentation-actions {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.presentation-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.presentation-cta {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  justify-self: start;
  margin-top: 0.5rem;
}

.presentation-point {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(184, 95, 66, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.78);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.card,
.info-card,
.program-wrap,
.speaker-chip,
.signup-form {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(250, 244, 237, 0.92), rgba(246, 237, 228, 0.96));
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(91, 55, 38, 0.1);
}

.card-index {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.card p {
  line-height: 1.65;
}

.speakers-intro {
  max-width: 42rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.speakers-band {
  position: relative;
  display: flex;
  gap: 1rem;
  overflow: hidden;
  padding: 0.35rem 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.speakers-band:hover .speakers-track {
  animation-play-state: paused;
}

.speakers-track {
  display: flex;
  flex: 0 0 auto;
  gap: 1rem;
  min-width: max-content;
  animation: speakers-marquee 28s linear infinite;
}

.speaker-chip {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  width: 350px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(250, 244, 237, 0.92), rgba(246, 237, 228, 0.98));
  box-shadow: var(--shadow);
}

.speaker-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 95, 66, 0.24);
}

.speaker-avatar {
  overflow: hidden;
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(184, 95, 66, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.speaker-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #ffffff;
  filter: grayscale(1) contrast(1.05);
}

.speaker-copy {
  min-width: 0;
  text-align: left;
}

.speaker-copy h3 {
  font-size: 1.08rem;
  margin-bottom: 0.25rem;
}

.speaker-role {
  display: inline-block;
  color: var(--terracotta);
  font-size: 0.88rem;
  font-weight: 600;
}

.section-cta {
  margin-top: 1.35rem;
  font-size: 0.96rem;
}

.section-cta-link {
  margin-left: 0.9rem;
  vertical-align: middle;
}

.program-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 2.15rem clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.program-intro {
  max-width: 40rem;
}

.program-intro-text {
  margin-top: 1.15rem;
  max-width: 33rem;
  line-height: 1.68;
}

.program-cta {
  margin-top: 1.1rem;
}

.program-wrap {
  padding: 1.7rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(249, 242, 235, 0.82);
  box-shadow: var(--shadow);
}

.program-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.program-list li {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.program-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.program-time {
  color: var(--terracotta);
  font-weight: 700;
}

.program-title {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-weight: 700;
}

.form-section {
  padding: clamp(4.5rem, 5.6vw, 5.4rem) 0 5.8rem;
  background:
    linear-gradient(180deg, rgba(248, 239, 230, 0) 0%, rgba(248, 239, 230, 0.46) 16%, rgba(244, 234, 224, 0.82) 100%);
}

.info-heading {
  margin-bottom: 1.6rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.info-card {
  min-height: 100%;
  padding: 1.45rem;
  border: 1px solid rgba(184, 95, 66, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(250, 244, 237, 0.95), rgba(245, 236, 227, 0.98));
  box-shadow: var(--shadow);
}

.info-card:hover {
  transform: translateY(-3px);
}

.info-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--terracotta);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-card strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.15;
}

.form-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
  gap: 1.4rem;
}

.form-intro {
  max-width: 48rem;
  padding: 0;
  text-align: center;
}

.form-intro > * {
  margin-inline: auto;
}

.form-intro p {
  max-width: 44rem;
}

.form-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.form-benefits li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2rem;
  border: 1px solid rgba(184, 95, 66, 0.12);
  border-radius: 999px;
  background: rgba(249, 242, 235, 0.88);
  color: var(--ink);
  font-weight: 500;
}

.form-benefits li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.95rem;
  transform: translateY(-50%);
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--terracotta);
}

.signup-form {
  width: min(100%, 860px);
  padding: 2.1rem;
  border: 1px solid rgba(184, 95, 66, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 251, 246, 0.92), transparent 26%),
    linear-gradient(180deg, rgba(249, 243, 236, 0.98), rgba(243, 233, 223, 0.98));
  box-shadow: 0 28px 68px rgba(121, 64, 45, 0.14);
}

.signup-form-title {
  margin-bottom: 1.35rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  color: var(--terracotta);
}

.signup-form-head {
  margin-bottom: 1.35rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(184, 95, 66, 0.14);
  text-align: left;
}

.signup-form-eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signup-form-head h3 {
  margin-bottom: 0.45rem;
}

.signup-form-head p {
  color: var(--muted);
}

.signup-form-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.signup-form-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(184, 95, 66, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.78);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "name surname"
    "email email"
    "phone role"
    "address address"
    "province province"
    "city postcode";
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

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

.field-name {
  grid-area: name;
}

.field-surname {
  grid-area: surname;
}

.field-email {
  grid-area: email;
}

.field-phone {
  grid-area: phone;
}

.field-address {
  grid-area: address;
}

.field-role {
  grid-area: role;
}

.field-city {
  grid-area: city;
}

.field-province {
  grid-area: province;
}

.field-postcode {
  grid-area: postcode;
}

.field span,
.checkbox-field span {
  color: var(--ink);
}

.field span {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(184, 95, 66, 0.16);
  border-radius: 12px;
  background: #faf5ef;
  color: var(--ink);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.field input:focus,
.field select:focus {
  border-color: rgba(151, 73, 50, 0.55);
  box-shadow: 0 0 0 4px rgba(184, 95, 66, 0.12);
  background: #fffaf5;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--terracotta-deep) 50%),
    linear-gradient(135deg, var(--terracotta-deep) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 3rem;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--terracotta-deep);
}

.checkbox-field span {
  font-size: 0.92rem;
  line-height: 1.5;
}

.checkbox-field a {
  color: var(--terracotta-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.checkbox-field a:hover,
.checkbox-field a:focus-visible {
  color: var(--ink);
}

.submit-button {
  width: 100%;
  margin-top: 1.3rem;
  background: var(--terracotta);
  color: #fff8f2;
  box-shadow: 0 14px 30px rgba(151, 73, 50, 0.16);
}

.submit-button:hover,
.submit-button:focus-visible {
  background: var(--terracotta-deep);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
  box-shadow: 0 10px 24px rgba(121, 64, 45, 0.12);
}

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

.form-status.is-loading {
  color: var(--muted);
}

.form-status.is-success {
  color: #2e6b3c;
}

.form-status.is-error {
  color: #9d3d2b;
}

.form-note {
  margin-top: 0.95rem;
  font-size: 0.9rem;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
  background:
    radial-gradient(circle at top, rgba(255, 250, 245, 0.18), transparent 24%),
    rgba(86, 50, 39, 0.42);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.modal-backdrop[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-panel {
  position: relative;
  width: min(100%, 34rem);
  padding: 2rem;
  border: 1px solid rgba(184, 95, 66, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at top, rgba(255, 251, 246, 0.96), transparent 34%),
    linear-gradient(180deg, rgba(251, 245, 239, 0.98), rgba(243, 233, 223, 0.98));
  box-shadow: 0 28px 70px rgba(91, 55, 38, 0.28);
  transform: translate3d(0, 18px, 0) scale(0.98);
  transition: transform 260ms var(--reveal-ease);
}

.modal-backdrop[aria-hidden="false"] .modal-panel {
  transform: translate3d(0, 0, 0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 248, 242, 0.9);
  box-shadow: 0 10px 24px rgba(121, 64, 45, 0.12);
}

.modal-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.modal-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.modal-eyebrow {
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-title {
  margin-bottom: 0.7rem;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1;
}

.modal-message {
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.modal-action {
  min-width: 11rem;
}

.modal-download-action {
  display: none;
}

.modal-download-action.is-visible {
  display: inline-flex;
}

.modal-backdrop.is-success .modal-badge {
  background: rgba(46, 107, 60, 0.12);
  color: #2e6b3c;
}

.modal-backdrop.is-success .modal-eyebrow {
  color: #2e6b3c;
}

.modal-backdrop.is-error .modal-badge {
  background: rgba(157, 61, 43, 0.12);
  color: #9d3d2b;
}

.modal-backdrop.is-error .modal-eyebrow {
  color: #9d3d2b;
}

.site-footer {
  margin-top: 1rem;
  padding-top: 2.5rem;
  background: linear-gradient(180deg, rgba(223, 196, 171, 0.24), rgba(244, 234, 224, 0.92));
  border-top: 1px solid rgba(184, 95, 66, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-title {
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}

.footer-heading {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--terracotta);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column p + p,
.footer-brand p {
  margin-top: 0.45rem;
}

.footer-column a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--terracotta);
  border-bottom-color: rgba(184, 95, 66, 0.45);
}

.footer-note {
  padding: 1rem 0 2.5rem;
  border-top: 1px solid rgba(184, 95, 66, 0.12);
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

@keyframes speakers-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-100% - 1rem), 0, 0);
  }
}

@media (max-width: 1024px) {
  .presentation-wrap {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .presentation-wrap .eyebrow,
  .presentation-wrap h2,
  .presentation-actions,
  .presentation-content,
  .presentation-points,
  .presentation-cta {
    grid-column: auto;
  }

  .presentation-wrap h2 {
    max-width: 40rem;
  }

  .presentation-title {
    width: auto;
    max-width: 40rem;
    font-size: 3rem;
  }

  .presentation-title-line {
    white-space: normal;
  }

  .presentation-content {
    grid-row: auto;
    max-width: 100%;
    gap: 0.9rem;
  }

  .presentation-actions {
    margin-top: 0;
  }

  .presentation-cta {
    grid-row: auto;
    margin-top: 0;
  }

  .program-layout {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }

  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
  }

}

@media (max-width: 920px) {
  .panel-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-areas: none;
  }

  .form-grid > .field {
    grid-area: auto;
    grid-column: 1 / -1;
    min-width: 0;
  }

  .program-list li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .site-nav {
    width: min(calc(100% - 1.4rem), 760px);
  }

  .form-benefits {
    justify-content: flex-start;
  }

  .speakers-track {
    animation-duration: 24s;
  }

  .speaker-chip {
    width: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .section {
    scroll-margin-top: calc(var(--nav-height-mobile) + 18px);
    padding: 3.9rem 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-bottom: 2.4rem;
  }

  .site-nav {
    top: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 1.2rem);
    min-height: var(--nav-height-mobile);
    padding: 0.55rem 0.7rem;
  }

  .brand {
    display: flex;
    align-items: center;
    padding-inline: 0.2rem;
  }

  .logo {
    width: 102px;
  }

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

  .nav-links {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.7rem;
    border: 1px solid rgba(184, 95, 66, 0.14);
    border-radius: 24px;
    background: rgba(252, 245, 242, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 32px rgba(91, 55, 38, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .site-nav.is-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links > a:not(.button-nav) {
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
  }

  .button-nav {
    width: 100%;
    min-height: 48px;
    margin-left: 0;
  }

  .hero {
    min-height: 70svh;
  }

  .hero-grid {
    min-height: 100svh;
    padding-top: 4.5rem;
  }

  .hero-copy {
    position: relative;
    z-index: 3;
    width: min(100%, 25rem);
    min-height: calc(100svh - 5.5rem);
    margin-inline: auto;
    margin-top: 0;
    padding: 0 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-kicker {
    margin-bottom: 0.9rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 10.2vw, 3.9rem);
    line-height: 0.98;
    text-align: center;
  }

  .hero-title {
    width: min(100%, 14ch);
    align-items: center;
  }

  .hero-title-line {
    white-space: nowrap;
    align-self: center;
  }

  .hero-title-line-bottom {
    font-size: 1em;
  }

  .hero-subtitle,
  .hero-actions {
    text-align: center;
  }

  .hero-meta {
    gap: 0.5rem;
    margin-top: 1.1rem;
    width: 100%;
  }

  .hero-meta-item {
    width: 100%;
    min-width: 0;
    text-align: center;
    padding: 0.72rem 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.45rem;
  }

  .hero-actions .button,
  .hero-link,
  .button-inline {
    width: 100%;
    justify-content: center;
  }

  .hero-link {
    min-height: auto;
    padding: 0.8rem 0;
  }

  .hero-note {
    font-size: 0.9rem;
  }

  .hero-landscape {
    inset: 0;
  }

  .layer-sky {
    inset: 0;
    background-image: url("./img/Risorsa-7.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
  }

  .layer-bg,
  .layer-mid,
  .layer-village,
  .layer-foreground {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 46svh;
    aspect-ratio: auto;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center bottom;
  }

  .layer-bg {
    background-image: url("./img/Risorsa-8.svg");
    height: 90svh;
    background-size: contain;
    background-position: center bottom;
    z-index: 2;
  }

  .layer-mid {
    background-image: url("./img/Risorsa-10.svg");
    z-index: 3;
  }

  .layer-village {
    background-image: url("./img/Risorsa-9.svg");
    z-index: 4;
  }

  .layer-foreground {
    display: none;
  }

  .signup-form {
    padding: 1.4rem;
  }

  .modal-panel {
    padding: 1.5rem;
    border-radius: 24px;
  }

  .modal-close {
    top: 0.85rem;
    right: 0.85rem;
  }

  .modal-action {
    width: 100%;
  }

  .signup-form-head {
    text-align: left;
  }

  .signup-form-meta {
    gap: 0.5rem;
  }

  .signup-form-meta span,
  .form-benefits li,
  .presentation-point {
    width: 100%;
  }

  .presentation-actions {
    width: 100%;
    align-items: stretch;
  }

  .presentation-cta {
    width: 100%;
    justify-content: center;
  }

  .program-cta {
    display: none;
  }

  .section-lead,
  .section-cta {
    max-width: 100%;
  }

  .section-cta-link {
    display: flex;
    width: 100%;
    margin: 0.85rem 0 0;
  }

  .speakers-band {
    mask-image: none;
  }

  .speakers-track {
    animation-duration: 22s;
  }

  .speaker-chip {
    width: 284px;
    padding: 0.9rem 1rem;
  }

  .speaker-avatar {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
  }
}

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

  .button,
  .reveal-item,
  .section-reveal,
  .layer,
  .nav-links,
  .site-nav,
  .card,
  .info-card,
  .speaker-chip,
  .signup-form,
  .field input,
  .hero-link {
    transition: none !important;
  }

  .reveal-item,
  .section-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .speakers-track {
    animation: none;
  }

  .layer {
    transform: translate3d(0, 0, 0) scale(1) !important;
  }
}

/* Photo request: existing form styling with a shorter first-level layout. */
.photo-form-grid {
  grid-template-areas: "name surname" "email email";
}
.photo-form-description { margin-bottom: 0.8rem; }
.photo-form-hint { margin-bottom: 1.4rem; font-size: 0.88rem; }
.form-status.is-error { position: static; width: auto; height: auto; margin: 1rem 0 0; clip: auto; white-space: normal; }
.modal-backdrop { z-index: 200; }
@media (max-width: 640px) {
  .photo-form-grid { grid-template-areas: "name" "surname" "email"; }
}

/* Event recap: native player, no autoplay or eager video download. */
.recap-container { max-width: 1120px; }
.recap-section .section-heading { max-width: 760px; }
.recap-film { margin: 2rem 0 0; }
.recap-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #211b18;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.recap-film video:focus-visible { outline: 3px solid var(--terracotta-deep); outline-offset: 5px; }
.recap-film figcaption { margin-top: 0.85rem; color: var(--muted); font-size: 0.88rem; }
.recap-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 1.7rem; }
@media (max-width: 640px) {
  .recap-actions { flex-direction: column; align-items: stretch; }
  .recap-film video { border-radius: 12px; }
}
