:root {
  --bg: #f4f4f1;
  --paper: #ffffff;
  --soft: #eeeeeb;
  --text: #08140f;
  --muted: #5d645f;
  --line: #deded8;
  --green: #173a2a;
  --orange: #173a2a;
  --orange-soft: #2f6b4f;
  --shadow: 0 12px 28px rgba(14, 20, 16, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: 76px;
  padding: 0 clamp(24px, 5vw, 72px);
  background: #f8f8f4;
  border-bottom: 1px solid #d9d9d2;
}

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

.brand img {
  display: block;
  width: auto;
  height: 44px;
  object-fit: contain;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #eef1ea;
  border: 1px solid var(--line);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--green);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.brand strong {
  font-family: Oswald, Inter, sans-serif;
  font-size: 25px;
  letter-spacing: 0.02em;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 15px;
  font-weight: 900;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  text-transform: uppercase;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--orange-soft);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--orange-soft);
}

.header-button,
.button,
.stage-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.header-button,
.button.primary,
.stage-button.active {
  background: var(--orange);
  color: #fff;
}

.header-button {
  min-width: 158px;
  border-radius: 3px;
}

.mobile-menu-toggle {
  display: none;
}

.button.primary {
  min-width: 230px;
  min-height: 56px;
  border-radius: 4px;
  font-size: 15px;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 700px;
  overflow: hidden;
  background:
    linear-gradient(rgba(5, 8, 6, 0.42), rgba(5, 8, 6, 0.34)),
    url("../images/trail-runner-hero.png") center / cover;
  border-bottom: 1px solid #0e0e0e;
  text-align: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.36));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

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

h1,
h2,
h3 {
  font-family: Oswald, Inter, sans-serif;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(38px, 5.1vw, 58px);
  line-height: 0.98;
}

.hero p {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 300;
}

.hero .button {
  margin-top: 36px;
  animation: pulse-cta 2.4s ease-in-out infinite;
}

@keyframes pulse-cta {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(23, 58, 42, 0.36);
  }

  50% {
    transform: scale(1.035);
    box-shadow: 0 0 0 14px rgba(23, 58, 42, 0);
  }
}

.about-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 570px;
  overflow: hidden;
  background:
    linear-gradient(rgba(13, 20, 16, 0.16), rgba(13, 20, 16, 0.18)),
    url("../images/trail-runner-hero.png") center / cover no-repeat;
  text-align: center;
}

.about-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.18);
}

.about-hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 40px));
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.about-hero h1 {
  font-size: clamp(48px, 7vw, 78px);
}

.about-hero p {
  max-width: 680px;
  margin: 20px auto 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.65;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  gap: clamp(44px, 9vw, 130px);
  align-items: center;
  padding: 96px clamp(34px, 6vw, 72px);
  background: var(--soft);
}

.about-copy {
  max-width: 620px;
}

h2 {
  font-size: clamp(34px, 4vw, 45px);
  line-height: 1;
  letter-spacing: 0.02em;
}

.about-copy p {
  margin-top: 26px;
  color: var(--muted);
  line-height: 1.75;
}

.demo-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: fit-content;
  padding: 14px 16px;
  background: #ffe08a;
  color: #2f2610;
  border: 1px solid #e0b843;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.45;
}

.demo-warning span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #2f2610;
  color: #ffe08a;
  font-size: 14px;
  font-weight: 900;
}

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

.stats-grid article {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.95fr);
  gap: clamp(46px, 8vw, 112px);
  align-items: center;
  padding: 92px clamp(34px, 6vw, 72px);
  background: #f8f8f4;
}

.story-copy {
  max-width: 600px;
}

.story-copy p {
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.8;
}

.story-image {
  margin: 0;
}

.story-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 22px 42px rgba(14, 20, 16, 0.16);
}

.values-section {
  padding: 76px clamp(34px, 6vw, 72px);
  background: var(--soft);
}

.center-heading {
  width: min(760px, 100%);
  margin-inline: auto;
  text-align: center;
}

.center-heading p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 54px;
}

.values-grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 265px;
  padding: 36px 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 32px;
  border-radius: 50%;
  color: #fff;
}

.value-icon.green {
  background: var(--green);
}

.value-icon.orange {
  background: var(--orange);
}

.value-icon.purple {
  background: #41405f;
}

.value-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.values-grid h3 {
  font-size: 24px;
}

.values-grid p {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.65;
}

.team-section {
  padding: 76px clamp(34px, 6vw, 72px) 96px;
  background: #f8f8f4;
}

.team-photo {
  position: relative;
  overflow: hidden;
  width: min(1200px, 100%);
  margin: 60px auto 0;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(14, 20, 16, 0.14);
}

.team-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  filter: saturate(0.94);
}

.team-photo::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  content: "";
  background: linear-gradient(transparent, rgba(6, 16, 10, 0.78));
}

.team-stats {
  position: absolute;
  inset: auto 0 24px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0 52px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

.team-stats span {
  font-size: 11px;
  font-weight: 900;
}

.team-stats strong {
  display: block;
  font-family: Oswald, Inter, sans-serif;
  font-size: 28px;
  line-height: 1;
}

.testimonials-section {
  padding: 76px clamp(34px, 6vw, 72px) 96px;
  background: var(--soft);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 54px;
}

.testimonials-grid article {
  min-height: 250px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.testimonials-grid p {
  color: #2f3833;
  font-size: 17px;
  line-height: 1.75;
}

.testimonials-grid strong {
  display: block;
  margin-top: 30px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 22px;
  text-transform: uppercase;
}

.testimonials-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stages-page {
  background: #f8f8f4;
}

.stages-intro {
  padding: 118px clamp(34px, 6vw, 72px) 54px;
}

.stages-intro h1 {
  color: var(--green);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1;
}

.stages-intro p {
  max-width: 680px;
  margin-top: 22px;
  color: #2e3430;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0;
}

.stages-intro p span {
  display: block;
}

.stages-board {
  padding: 0 clamp(34px, 6vw, 72px) 98px;
}

.stage-tabs {
  display: flex;
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: 54px;
  border-bottom: 1px solid #cfcfc8;
}

.stage-tabs button {
  position: relative;
  padding: 0 0 24px;
  border: 0;
  background: transparent;
  color: #27302b;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.stage-tabs button::after {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 3px;
  content: "";
  background: var(--orange);
}

.stage-tabs button.active {
  color: var(--orange);
}

.stage-tabs button.active::after {
  width: 100%;
}

.stage-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.stage-panel[hidden] {
  display: none;
}

.stages-board .stage-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stage-large-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stage-large-image {
  position: relative;
  height: 320px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.08)),
    var(--large-stage-image) center / cover;
}

.stage-neblina {
  --large-stage-image: url("../images/eunamontanha.webp");
}

.stage-ventos {
  --large-stage-image: url("../images/trail-runner-hero.png");
  background-position: 55% 50%;
}

.stage-cachoeiras {
  --large-stage-image: url("../images/circuitosolidario.webp");
}

.stage-pill {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-pill.open {
  background: var(--green);
  color: #fff;
}

.stage-pill.soon {
  background: #ffa75f;
  color: #3d1f08;
}

.stage-large-body {
  padding: 34px 34px 36px;
}

.stage-large-body h2 {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1;
}

.stage-location {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: #2d332f;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.stage-location svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.stage-large-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stage-large-meta span {
  color: #7b827d;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stage-large-meta strong {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  text-transform: none;
}

.stage-large-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  margin-top: 38px;
  border: 3px solid var(--text);
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-large-button.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.contact-page {
  background: #f8f8f4;
}

.contact-intro {
  padding: 104px clamp(34px, 6vw, 72px) 54px;
}

.contact-intro h1 {
  color: var(--green);
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0.02em;
}

.contact-intro p {
  max-width: 720px;
  margin-top: 22px;
  color: #2f3430;
  font-size: 18px;
  line-height: 1.65;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.55fr);
  gap: 34px;
  padding: 0 clamp(34px, 6vw, 72px) 96px;
}

.contact-form {
  padding: clamp(30px, 4vw, 46px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form h2,
.direct-card h2,
.quick-card h2 {
  font-family: Oswald, Inter, sans-serif;
  text-transform: uppercase;
}

.contact-form h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--green);
  font-size: clamp(30px, 3vw, 38px);
}

.contact-form h2 svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.form-grid label {
  display: grid;
  gap: 12px;
}

.form-grid span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid #cfd3cb;
  background: #f8f8f4;
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0;
}

.form-grid input,
.form-grid select {
  height: 54px;
  padding: 0 16px;
}

.form-grid textarea {
  min-height: 172px;
  resize: vertical;
  padding: 16px;
  line-height: 1.55;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: #6d7483;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 220px;
  min-height: 56px;
  margin-top: 34px;
  border: 0;
  border-radius: 4px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-submit svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.contact-sidebar {
  display: grid;
  align-content: start;
  gap: 30px;
}

.direct-card {
  position: relative;
  overflow: hidden;
  padding: 34px 30px;
  background: var(--green);
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 16px 34px rgba(14, 20, 16, 0.16);
}

.direct-card h2 {
  font-size: 32px;
  line-height: 1;
}

.direct-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 30px;
}

.direct-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.direct-icon svg,
.social-row svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.direct-item small {
  display: block;
  color: #bec8bd;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.direct-item a,
.direct-item p {
  margin-top: 8px;
  color: #fff;
  font-size: 17px;
  line-height: 1.45;
}

.social-row {
  display: flex;
  gap: 22px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.quick-card {
  padding: 30px;
  background: #eeeeeb;
  border: 1px solid #d4d4ce;
  border-radius: 8px;
}

.quick-card h2 {
  padding-bottom: 16px;
  border-bottom: 1px solid #d2d2cc;
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.quick-card div {
  margin-top: 20px;
}

.quick-card h3 {
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  text-transform: none;
}

.quick-card p {
  margin-top: 8px;
  color: #242b26;
  font-size: 17px;
  line-height: 1.45;
}

.quick-card a {
  display: inline-flex;
  margin-top: 24px;
  color: var(--orange);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--text);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.9;
}

.stats-grid strong {
  margin-top: 8px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 28px;
  line-height: 1;
}

.stats-grid small {
  margin-top: 5px;
  color: #4f5752;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.stages-section {
  padding: 96px clamp(34px, 6vw, 72px) 132px;
  background: #f8f8f4;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}

.stage-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 424px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.stage-image {
  position: relative;
  overflow: hidden;
  height: 194px;
  flex: 0 0 auto;
  background:
    linear-gradient(rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18)),
    var(--stage-image) center / cover;
}

.image-cacapava {
  --stage-image: url("../images/event-cacapava.png");
}

.image-monteverde {
  --stage-image: url("../images/event-monteverde.png");
}

.image-saothome {
  --stage-image: url("../images/event-saothomedasletras.png");
}

.image-bananal {
  --stage-image: url("../images/event-bananal.png");
}

.image-aiuruoca {
  --stage-image: url("../images/event-aiuruoca.png");
}

.image-cunha {
  --stage-image: url("../images/event-cunha.png");
}

.image-goncalves {
  --stage-image: url("../images/event-goncalves.png");
  filter: grayscale(0.25);
}

.image-santoantonio {
  --stage-image: url("../images/event-santoantoniodopinhal.png");
  filter: grayscale(0.4);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stage-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  width: max-content;
  min-width: 200%;
  height: 30px;
  background: #ffd84a;
  color: #0d120e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 30px;
  text-transform: uppercase;
  animation: stage-marquee 11s linear infinite;
}

.stage-marquee span {
  display: inline-block;
  padding-inline: 22px;
  white-space: nowrap;
}

.badge.done {
  background: rgba(255, 255, 255, 0.8);
  color: #6a706c;
}

.badge.soon {
  background: #f7c08a;
  color: #6e3003;
}

.stage-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 26px;
}

.stage-body h3 {
  display: flex;
  align-items: flex-start;
  min-height: 56px;
  font-size: 23px;
  line-height: 1.08;
}

.stage-details {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.stage-details strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-family: Oswald, Inter, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.stage-button {
  width: 100%;
  margin-top: auto;
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

@keyframes stage-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.stage-button.disabled {
  border-color: transparent;
  background: #ececea;
  color: #1f241f;
}

.event-page {
  background: #f8f8f4;
}

.event-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 690px;
  padding: 0 clamp(34px, 6vw, 72px) 88px;
  background:
    linear-gradient(90deg, rgba(248, 248, 244, 0.9) 0%, rgba(248, 248, 244, 0.66) 42%, rgba(248, 248, 244, 0.18) 100%),
    linear-gradient(0deg, #f8f8f4 0%, rgba(248, 248, 244, 0) 24%),
    url("../images/event-cacapava.png") center / cover;
}

.event-hero-content {
  width: 100%;
  max-width: 840px;
  min-width: 0;
}

.event-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 14px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-hero h1 {
  margin: 26px 0 20px;
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(54px, 6vw, 76px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.event-hero p {
  max-width: 650px;
  color: #2f3833;
  font-size: 18px;
  line-height: 1.55;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

.event-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 32px;
  border: 2px solid var(--text);
  border-radius: 4px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-button.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.event-button.secondary {
  background: rgba(248, 248, 244, 0.58);
}

.event-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.event-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 44px clamp(34px, 6vw, 72px) 72px;
}

.event-info article {
  min-height: 205px;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.event-info svg {
  width: 32px;
  height: 32px;
  margin-bottom: 26px;
  fill: none;
  stroke: var(--orange);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.event-info strong {
  display: block;
  font-family: Oswald, Inter, sans-serif;
  font-size: 31px;
  line-height: 0.98;
  text-transform: uppercase;
}

.event-info article > span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.distance-tags {
  display: flex;
  gap: 12px;
}

.distance-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 8px;
  background: #edf0e9;
  font-family: Oswald, Inter, sans-serif;
  font-size: 27px;
  line-height: 1;
}

.event-details {
  padding: 84px clamp(34px, 6vw, 72px) 96px;
  background: #f8f8f4;
  text-align: center;
}

.event-details-copy {
  width: min(860px, 100%);
  margin-inline: auto;
}

.event-details h2 {
  font-size: clamp(34px, 4vw, 48px);
  text-transform: uppercase;
}

.event-details p {
  margin: 24px auto 0;
  color: #2f3833;
  font-size: 18px;
  line-height: 1.8;
}

.event-details-image {
  width: min(980px, 100%);
  margin: 48px auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.event-details-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.event-details-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 42px;
}

.event-faq {
  padding: 82px clamp(34px, 6vw, 72px);
  background: var(--soft);
}

.event-faq-heading {
  width: min(720px, 100%);
  margin-inline: auto;
  text-align: center;
}

.event-faq-heading h2 {
  font-size: clamp(34px, 4vw, 48px);
  text-transform: uppercase;
}

.event-faq-heading p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 14px;
  width: min(920px, 100%);
  margin: 44px auto 0;
}

.faq-list details {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(14, 20, 16, 0.05);
}

.faq-list details.is-animating {
  transition: height 0.3s ease;
}

.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 0 58px 0 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  right: 24px;
  width: 16px;
  height: 16px;
  content: "";
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq-list p {
  margin: 0;
  padding: 0 24px 24px;
  color: #3d4540;
  line-height: 1.7;
}

.event-base {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.6fr);
  gap: clamp(44px, 8vw, 105px);
  align-items: center;
  padding: 78px clamp(34px, 6vw, 72px);
  background: var(--soft);
}

.event-base-copy {
  max-width: 440px;
}

.event-base h2 {
  font-size: clamp(34px, 4vw, 44px);
  text-transform: uppercase;
}

.event-base p {
  margin-top: 24px;
  color: #2f3833;
  font-size: 18px;
  line-height: 1.75;
}

.event-base a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-base a svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.event-map {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 19% 74%, rgba(255, 255, 255, 0.5) 0 14px, transparent 15px),
    linear-gradient(24deg, transparent 0 36%, rgba(255, 255, 255, 0.48) 37% 42%, transparent 43%),
    linear-gradient(152deg, transparent 0 48%, rgba(139, 151, 168, 0.72) 49% 51%, transparent 52%),
    linear-gradient(18deg, transparent 0 58%, rgba(139, 151, 168, 0.62) 59% 61%, transparent 62%),
    radial-gradient(circle at 26% 30%, rgba(109, 190, 212, 0.32) 0 36px, transparent 37px),
    radial-gradient(circle at 74% 68%, rgba(109, 190, 212, 0.26) 0 60px, transparent 61px),
    #d4eadb;
  box-shadow: inset 0 0 0 1px rgba(8, 20, 15, 0.06);
}

.event-map::before,
.event-map::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.event-map::before {
  top: 39%;
  left: -8%;
  width: 116%;
  height: 18px;
  background: rgba(146, 157, 176, 0.72);
  transform: rotate(-18deg);
}

.event-map::after {
  top: 18%;
  left: 47%;
  width: 14px;
  height: 88%;
  background: rgba(126, 184, 202, 0.52);
  transform: rotate(18deg);
}

.map-label {
  position: absolute;
  z-index: 1;
  color: rgba(8, 20, 15, 0.45);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-label.one {
  top: 20%;
  right: 23%;
}

.map-label.two {
  right: 12%;
  bottom: 32%;
  font-size: 20px;
}

.map-label.three {
  top: 33%;
  left: 41%;
}

.map-pin {
  position: absolute;
  z-index: 2;
  top: 48%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 16px 28px rgba(8, 20, 15, 0.18);
}

.map-pin svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.results-page {
  padding: 22px clamp(34px, 6vw, 72px) 96px;
  background: #f8f8f4;
}

.results-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 50vh;
  overflow: hidden;
  padding: 0 54px 52px;
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(7, 48, 35, 0.9) 0%, rgba(7, 48, 35, 0.38) 32%, rgba(7, 48, 35, 0.02) 72%),
    url("../images/event-santoantoniodopinhal.png") center / cover;
  box-shadow: var(--shadow);
}

.results-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.results-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.results-hero h1 {
  max-width: 620px;
  font-size: clamp(30px, 4vw, 42px);
  color: #fff;
  text-transform: uppercase;
}

.results-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
  padding: 58px 0 74px;
}

.summary-copy,
.results-summary,
.results-stats,
.highlights-gallery {
  min-width: 0;
}

.summary-copy h2,
.athlete-hub h2,
.highlights-gallery h2 {
  font-size: 23px;
  text-transform: uppercase;
}

.summary-copy p {
  max-width: 860px;
  margin-top: 24px;
  color: #343b36;
  font-size: 16px;
  line-height: 1.8;
}

.results-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 36px;
  padding: 22px 0;
  border: 1px solid #cfd3cb;
  border-radius: 7px;
}

.results-stats article {
  min-height: 62px;
  padding: 0 24px;
  border-left: 3px solid var(--orange);
}

.results-stats span {
  display: block;
  color: #4e5751;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.results-stats strong {
  display: block;
  margin-top: 8px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 18px;
}

.athlete-hub {
  padding: 34px 28px;
  background: #f8f8f4;
  border: 1px solid #cfd3cb;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.athlete-hub h2 {
  padding-bottom: 22px;
  border-bottom: 1px solid #cfd3cb;
}

.hub-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  margin-top: 18px;
  border: 2px solid var(--text);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-button.primary {
  margin-top: 28px;
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.hub-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.athlete-hub p {
  max-width: 250px;
  margin: 34px auto 0;
  color: #4e5751;
  line-height: 1.55;
  text-align: center;
}

.highlights-gallery h2 {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.highlights-gallery h2 svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--orange);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 42px;
}

.gallery-grid figure {
  overflow: hidden;
  margin: 0;
  border-radius: 6px;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.gallery-feature {
  grid-row: span 2;
}

.gallery-feature img {
  min-height: 610px;
}

.gallery-grid figure:nth-child(3) {
  min-height: 292px;
}

.gallery-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  margin-top: 34px;
  padding: 0 34px;
  border: 2px solid var(--orange);
  border-radius: 4px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.sponsors {
  padding: 70px 34px;
  background: #f1f1ef;
  text-align: center;
}

.sponsors span {
  display: block;
  color: #2e362f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sponsor-list {
  display: flex;
  justify-content: center;
  gap: clamp(42px, 8vw, 105px);
  margin-top: 34px;
  color: #8d8d89;
  font-family: Oswald, Inter, sans-serif;
  font-size: 30px;
  font-style: italic;
}

.footer {
  padding: 58px clamp(34px, 6vw, 72px) 34px;
  background: #dddfdc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.2fr 1.35fr;
  gap: 54px;
  padding-bottom: 58px;
  border-bottom: 1px solid #c9cbc8;
}

.footer h2,
.footer h3 {
  font-family: Oswald, Inter, sans-serif;
  line-height: 1;
}

.footer h2 {
  font-size: 25px;
}

.footer h3 {
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.footer p,
.footer a {
  display: block;
  color: #4d5550;
  margin-top: 8px;
  line-height: 1.15;
}

.newsletter {
  display: flex;
  gap: 8px;
}

.newsletter input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  background: #f7f7f4;
}

.newsletter button {
  width: 48px;
  border: 0;
  background: var(--green);
  color: #fff;
  cursor: pointer;
}

.copyright {
  margin-top: 36px;
  color: #69716c;
  text-align: center;
  font-size: 13px;
}

.compact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.compact-footer h2 {
  font-size: 25px;
}

.compact-footer p {
  margin-top: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

@media (max-width: 1100px) {
  .stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stages-board .stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .event-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-base {
    grid-template-columns: 1fr;
  }

  .results-summary {
    grid-template-columns: 1fr;
  }

  .results-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .team-stats {
    padding-inline: 24px;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }

  .header-button {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    max-width: min(270px, 68vw);
    height: auto;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: calc(50% - 50vw);
    right: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100vw;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    background: #f8f8f4;
    border-bottom: 1px solid transparent;
    box-shadow: 0 18px 28px rgba(14, 20, 16, 0);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      max-height 0.32s ease,
      opacity 0.22s ease,
      transform 0.22s ease,
      padding 0.32s ease,
      border-color 0.22s ease,
      box-shadow 0.22s ease;
  }

  .main-nav a {
    width: 100%;
    padding: 16px clamp(24px, 5vw, 72px);
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a.active {
    color: var(--orange-soft);
  }

  .mobile-menu-toggle {
    display: inline-flex;
    justify-self: end;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    color: var(--green);
    cursor: pointer;
  }

  .mobile-menu-toggle span,
  .mobile-menu-toggle::before,
  .mobile-menu-toggle::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-header.menu-open .mobile-menu-toggle span {
    opacity: 0;
  }

  .site-header.menu-open .mobile-menu-toggle::before {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.menu-open .mobile-menu-toggle::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header.menu-open .main-nav {
    max-height: 340px;
    padding: 12px 0 18px;
    border-bottom-color: #d9d9d2;
    box-shadow: 0 18px 28px rgba(14, 20, 16, 0.08);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .about-section,
  .story-section,
  .stage-grid,
  .stages-board .stage-grid,
  .event-info,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .event-hero {
    min-height: 620px;
    padding-bottom: 58px;
  }

  .event-hero p {
    font-size: 17px;
  }

  .event-map {
    min-height: 300px;
  }

  .results-page {
    padding-top: 0;
  }

  .results-hero {
    min-height: 48vh;
    padding: 0 32px 42px;
    border-radius: 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-feature,
  .gallery-feature img,
  .gallery-grid img {
    min-height: 260px;
  }

  .sponsor-list {
    flex-wrap: wrap;
  }

  .team-photo img {
    aspect-ratio: 4 / 3;
  }

  .team-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-form {
    min-height: auto;
  }

  .message-field {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    height: auto;
    padding-block: 14px;
  }

  .brand strong {
    font-size: 18px;
  }

  .header-button {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .event-hero {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    min-height: 560px;
    padding-inline: 24px;
  }

  .event-hero-content,
  .event-hero h1 {
    max-width: calc(100vw - 48px);
  }

  .event-hero h1 {
    font-size: clamp(34px, 10vw, 40px);
    line-height: 1.05;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .event-hero p {
    max-width: calc(100vw - 48px);
    font-size: 16px;
  }

  .event-actions,
  .event-button {
    max-width: calc(100vw - 48px);
    width: 100%;
  }

  .event-info,
  .event-base {
    max-width: 100vw;
    overflow: hidden;
    padding-inline: 24px;
  }

  .event-details {
    padding: 58px 24px 70px;
  }

  .event-details-image img {
    aspect-ratio: 4 / 3;
  }

  .event-details-actions {
    width: 100%;
  }

  .event-faq {
    padding: 58px 24px;
  }

  .faq-list summary {
    min-height: 62px;
    padding-left: 18px;
    padding-right: 48px;
    font-size: 13px;
  }

  .faq-list p {
    padding-inline: 18px;
  }

  .results-page {
    width: calc(100% - 48px);
    margin-inline: auto;
    padding-inline: 0;
    padding-bottom: 70px;
  }

  .results-page,
  .results-summary,
  .athlete-hub,
  .highlights-gallery,
  .gallery-grid {
    max-width: 100%;
    overflow: hidden;
  }

  .summary-copy {
    max-width: 100%;
    overflow: visible;
  }

  .results-hero {
    max-width: 100%;
    min-height: 390px;
    padding-inline: 24px;
  }

  .summary-copy p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: normal;
  }

  .results-summary {
    padding: 42px 0 56px;
  }

  .results-stats {
    grid-template-columns: 1fr;
  }

  .athlete-hub {
    padding: 28px 20px;
  }

  .event-info article {
    min-height: 170px;
  }

  .event-map {
    min-height: 250px;
  }

  .stage-tabs {
    gap: 24px;
    overflow-x: auto;
  }

  .stage-tabs button {
    white-space: nowrap;
  }

  .stage-large-image {
    height: 240px;
  }

  .stage-large-meta {
    grid-template-columns: 1fr;
  }

  .about-hero {
    min-height: 460px;
    background-size: cover;
  }

  .team-stats {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    padding: 22px;
    background: var(--green);
  }

  .team-photo::after {
    display: none;
  }

  .contact-intro h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .direct-item {
    grid-template-columns: 1fr;
  }
}
