:root {
  --bg: #f4f2ec;
  --surface: rgba(255, 255, 255, 0.98);
  --surface-soft: #f9f7f2;
  --surface-tint: #edf3ef;
  --hero: #0a2e22;
  --hero-soft: #103f30;
  --primary: #0f6a4b;
  --primary-dark: #0b4d36;
  --gold: #b8975b;
  --text: #163128;
  --text-soft: #50655d;
  --text-muted: #72827b;
  --border: #d7dfd7;
  --border-soft: rgba(15, 106, 75, 0.1);
  --border-hero: rgba(255, 255, 255, 0.12);
  --white-soft: rgba(255, 255, 255, 0.82);
  --danger: #a63d40;
  --danger-soft: #f8edee;
  --success: #1f7a55;
  --success-soft: #edf8f1;
  --shadow-soft: 0 18px 42px rgba(15, 38, 30, 0.08);
  --shadow-strong: 0 30px 72px rgba(7, 30, 22, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(184, 151, 91, 0.1), transparent 23%),
    linear-gradient(180deg, #faf9f6 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Aptos, Arimo, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 20px 40px;
  border: 0;
  border-radius: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease, filter 220ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #22c08b 0%, #188666 50%, #0d5d45 100%);
  color: #ffffff;
  box-shadow: 0 22px 38px rgba(6, 42, 30, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, #2bd09a 0%, #1b9270 54%, #10684d 100%);
  box-shadow: 0 28px 50px rgba(6, 42, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  filter: saturate(1.06);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.84);
  color: var(--primary);
  border: 1px solid rgba(15, 106, 75, 0.14);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: rgba(15, 106, 75, 0.72);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 116px;
  background:
    radial-gradient(circle at top right, rgba(23, 112, 80, 0.18), transparent 26%),
    linear-gradient(135deg, var(--hero) 0%, var(--hero-soft) 58%, #0b3527 100%);
  color: #ffffff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  top: -180px;
  right: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(184, 151, 91, 0.12), transparent 70%);
}

.hero::after {
  left: -140px;
  bottom: -200px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 74%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.94fr);
  gap: 88px;
  align-items: start;
}

.hero-copy {
  position: relative;
  padding-top: 8px;
}

.hero-head {
  max-width: 580px;
}

.hero-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 22px;
}

.hero-event-logo {
  width: min(232px, 100%);
}

.hero-title {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: #ffffff;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero-subtitle {
  display: inline-block;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-eyebrow {
  padding-left: 1px;
}

.hero-support {
  /* max-width: 31ch; */
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.78;
}

.hero-info {
  max-width: 580px;
  margin: 48px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-info-row {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 34px;
  padding: 20px 0 22px;
}

.hero-info-row + .hero-info-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-info dt {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-info dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.9;
}

.hero-info-row-address dd {
  max-width: 46ch;
}

.hero-copy .button {
  margin-top: 54px;
  padding-inline: 46px;
}

.hero-cta {
  min-width: 264px;
  min-height: 70px;
  justify-content: center;
}

.hero-agenda {
  position: relative;
  padding: 40px 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.045) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 36px;
  box-shadow: 0 26px 56px rgba(2, 15, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hero-agenda::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  border-radius: inherit;
}

.hero-agenda-header {
  margin-bottom: 20px;
}

.hero-agenda-kicker {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-agenda-header h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.7rem, 2.3vw, 2.14rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
}

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

.hero-agenda-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  align-items: start;
  padding: 18px 0;
}

.hero-agenda-item + .hero-agenda-item {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-agenda-time {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero-agenda-text {
  position: relative;
  display: block;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.62;
}

.hero-agenda-text::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.018);
}

.confirmation-section {
  position: relative;
  z-index: 2;
  margin-top: -60px;
}

.confirmation-card,
.about-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 243, 0.94) 100%);
  border: 1px solid rgba(15, 106, 75, 0.05);
  border-radius: 40px;
  box-shadow: 0 26px 56px rgba(15, 38, 30, 0.05);
}

.confirmation-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 0.66fr);
  gap: 52px;
  padding: clamp(40px, 4vw, 56px);
}

.confirmation-copy {
  max-width: 33ch;
  padding: 10px 0 0;
}

.confirmation-title,
.about-title {
  margin: 0;
  letter-spacing: -0.03em;
}

.confirmation-title {
  max-width: 8.5ch;
  font-size: clamp(2.08rem, 2.8vw, 2.66rem);
  line-height: 1.12;
  font-weight: 500;
}

.about-title {
  max-width: 12ch;
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  line-height: 1.12;
  font-weight: 500;
}

.confirmation-copy p,
.about-copy p,
.icon-feature p,
.success-card p {
  margin: 22px 0 0;
  color: var(--text-soft);
  font-weight: 400;
  line-height: 1.84;
}

.about-copy p {
  max-width: 60ch;
}

.confirmation-title + p,
.about-title + p {
  margin-top: 30px;
}

.confirmation-note {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-top: 24px;
}

.form-shell {
  padding: clamp(32px, 3vw, 40px);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 106, 75, 0.05);
  border-radius: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

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

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

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

.field label,
.field legend {
  display: block;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.field input {
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field input::placeholder {
  color: #95a39b;
}

.field input:focus {
  border-color: rgba(15, 106, 75, 0.38);
  box-shadow: 0 0 0 4px rgba(15, 106, 75, 0.08);
}

.choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  font-weight: 700;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.choice-option:hover span,
.choice-option:focus-within span {
  transform: translateY(-1px);
}

.choice-option input:checked + span {
  background: rgba(15, 106, 75, 0.08);
  border-color: rgba(15, 106, 75, 0.34);
  box-shadow: 0 0 0 4px rgba(15, 106, 75, 0.06);
}

.field.has-error input,
.field.has-error .choice-option span {
  border-color: rgba(166, 61, 64, 0.38);
  background: var(--danger-soft);
}

.field-error {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 0.84rem;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.94rem;
  font-weight: 700;
}

.form-status.is-error {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(166, 61, 64, 0.16);
}

.form-status.is-info {
  color: var(--primary);
  background: rgba(15, 106, 75, 0.08);
  border: 1px solid rgba(15, 106, 75, 0.12);
}

.submit-button {
  width: 100%;
  margin-top: 24px;
  min-height: 68px;
  font-weight: 600;
}

.submit-button:disabled {
  cursor: wait;
}

.submit-spinner {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 12px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit-button.is-loading .submit-spinner {
  display: inline-block;
}

.success-card {
  padding: 30px;
  background: linear-gradient(180deg, rgba(237, 248, 241, 0.94) 0%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid rgba(31, 122, 85, 0.14);
  border-radius: 28px;
}

.success-logo {
  width: 140px;
}

.success-card h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.success-card .button {
  margin-top: 18px;
}

.about-section {
  padding: clamp(98px, 10vw, 142px) 0 122px;
}

.about-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 1.02fr);
  gap: 62px;
  align-items: center;
  padding: clamp(48px, 4vw, 64px);
}

.about-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom right, rgba(15, 106, 75, 0.045), transparent 36%);
  pointer-events: none;
}

.about-panel::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 34px;
  width: clamp(160px, 16vw, 220px);
  aspect-ratio: 1;
  background: url("../assets/logo-apdata-simbolo.jpg") center/contain no-repeat;
  opacity: 0.035;
  filter: grayscale(1) brightness(0.7);
  transform: none;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.about-copy,
.about-visual {
  position: relative;
  z-index: 1;
}

.about-copy {
  max-width: 61ch;
  padding-right: 8px;
}

.about-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.icon-feature {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 242px;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(184, 151, 91, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 247, 0.94) 100%);
  border: 1px solid rgba(15, 106, 75, 0.07);
  border-radius: 30px;
  box-shadow: 0 18px 34px rgba(15, 38, 30, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.icon-feature:hover,
.icon-feature:focus-within {
  transform: translateY(-2px);
  border-color: rgba(15, 106, 75, 0.12);
  box-shadow: 0 24px 44px rgba(15, 38, 30, 0.07);
}

.icon-feature img {
  width: 62px;
  height: 62px;
  padding: 10px;
  background: rgba(15, 106, 75, 0.05);
  border: 1px solid rgba(15, 106, 75, 0.06);
  border-radius: 16px;
  object-fit: contain;
}

.icon-feature h3 {
  margin: 20px 0 0;
  color: var(--text);
  font-size: 1.22rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
  font-weight: 550;
}

.icon-feature p {
  margin-top: 14px;
  font-size: 0.97rem;
  line-height: 1.76;
}

.site-footer {
  padding: 28px 0 38px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 106, 75, 0.12);
}

.footer-logo {
  width: 118px;
}

.footer-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1040px) {
  .hero-layout,
  .confirmation-card,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .confirmation-section {
    margin-top: -44px;
  }

  .about-panel {
    gap: 42px;
  }

  .about-copy {
    max-width: none;
    padding-right: 0;
  }
}

@media (max-width: 740px) {
  .container {
    width: min(100%, calc(100% - 24px));
  }

  .hero {
    padding: 28px 0 72px;
  }

  .hero-layout {
    gap: 48px;
  }

  .hero-logos {
    align-items: flex-start;
  }

  .hero-info-row,
  .hero-agenda-item,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    grid-template-columns: 1fr;
  }

  .choice-group {
    grid-template-columns: 1fr;
  }

  .hero-agenda-item {
    gap: 8px;
  }

  .hero-agenda-text {
    padding-left: 24px;
  }

  .hero-agenda-time {
    padding-left: 24px;
  }

  .about-section {
    padding-bottom: 88px;
  }

  .about-panel::after {
    top: auto;
    right: 16px;
    bottom: 18px;
    width: 132px;
    opacity: 0.03;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .button,
  .submit-button,
  .success-card .button {
    width: 100%;
  }
}
