@font-face { font-family: 'Bodoni Moda'; src: url('../fontes/bodoni-moda-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('../fontes/bodoni-moda-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('../fontes/hanken-grotesk-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('../fontes/hanken-grotesk-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('../fontes/hanken-grotesk-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* Cores extraídas da logomarca */
:root {
  --navy: #003b54;
  --navy-deep: #002a3d;
  --red: #c93414;
  --amber: #f39a0b;
  --ink: #1d2d36;
  --muted: #566a75;
  --tint: #f6f3ec;
  --line: #dcd8cd;
  --white: #fff;
  --serif: 'Bodoni Moda', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; }

a { color: var(--red); }

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

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
}
.skip-link:focus { top: 8px; }

h2, h3 { margin: 0; line-height: 1.2; }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.75rem);
  color: var(--navy);
  max-width: 24ch;
  text-wrap: balance;
}

h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }

.h3-like {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  max-width: none;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}

/* Navegação */
.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.topnav-inner::-webkit-scrollbar { display: none; }
.topnav a {
  flex: none;
  padding: 16px 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.topnav a:hover { color: var(--red); }
.topnav .topnav-doc { margin-left: auto; color: var(--red); }

/* Topo */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 88px) 0;
  background: var(--tint);
}
.hero-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1;
  opacity: .45;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero-logo { margin: 0; }
.hero-logo img { display: block; width: 100%; }
.hero-lead {
  margin: 0 0 24px;
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
  line-height: 1.35;
  color: var(--navy);
}
.hero-period {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 28px;
  padding-left: 16px;
  border-left: 4px solid var(--amber);
}
.hero-period-label { font-weight: 700; color: var(--red); }
.hero-period-dates { font-weight: 600; color: var(--navy); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions-center { justify-content: center; margin-top: 48px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #a82a0f; color: var(--white); }
.btn-accent { background: var(--amber); color: var(--navy-deep); }
.btn-accent:hover { background: #ffb02e; }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light { border-color: var(--white); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy); }

/* Seções */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); color: #e6eef2; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .eyebrow { color: var(--amber); }

.section-text { margin: 20px 0 0; max-width: 46ch; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
}
.section .container > h2 + .cols-2 { margin-top: 40px; }

.prose p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose h3, .prose .h3-like { margin-bottom: 12px; }

.prior-edition a { font-weight: 700; }

.stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.stage { display: flex; gap: 20px; }
.stage-num {
  flex: none;
  width: 36px;
  font-family: var(--serif);
  font-size: 3.25rem;
  line-height: 1;
  color: var(--amber);
}
.stage p { margin: 8px 0 0; }

/* 1ª edição */
.prior-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.prior-grid p { margin: 0 0 16px; }
.prior-grid p:last-child { margin-bottom: 0; }
.prior-number {
  margin: 0 !important;
  font-family: var(--serif);
  font-size: clamp(5rem, 3.5rem + 7vw, 9rem);
  line-height: 1;
  color: var(--white);
}
.prior-label { max-width: 24ch; font-size: 1.2rem; font-weight: 600; color: var(--white); }
.prior-edition { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.prior-edition a { color: var(--amber); }
.prior-edition a:hover { color: #ffb02e; }

.commission {
  margin: 24px 0 0;
  padding-left: 16px;
  max-width: 46ch;
  border-left: 4px solid var(--amber);
}
.commission p { margin: 0 0 8px; }
.commission .commission-title {
  margin: 0 0 12px;
  font-size: 1.2em;
  font-weight: 700;
  color: var(--amber);
}
.commission ul { margin: 0; padding: 0; list-style: none; }
.commission li { margin: 0 0 10px; }
.commission li strong { display: block; }
.commission-role {
  display: block;
  font-size: 0.88em;
  font-style: italic;
  opacity: 0.85;
}
.commission li:last-child { margin-bottom: 0; }

/* Temas */
.themes-title { margin-top: 48px; }
.themes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: tema;
}
.themes li {
  counter-increment: tema;
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy);
}
.themes li::before {
  content: counter(tema);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--red);
}
.note { margin: 16px 0 0; color: var(--muted); }

/* Passo a passo */
.howto {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  margin-top: 40px;
  align-items: start;
}
.video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, .22);
}
.video iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 16px;
  text-align: center;
}
.video-placeholder i { font-size: 3.25rem; color: var(--amber); margin-bottom: 8px; }
.video-placeholder strong { font-size: 1.2rem; color: var(--white); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: passo; }
.steps li {
  counter-increment: passo;
  position: relative;
  padding: 0 0 24px 52px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: -6px;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--amber);
}
.steps p { margin: 4px 0 0; }
.step-link { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--amber); }
.step-link:hover { color: var(--white); }
.step-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 0;
}
.step-qr img {
  flex: none;
  width: 120px;
  height: 120px;
  padding: 6px;
  background: #fff;
  border-radius: 4px;
}
.step-qr figcaption { font-size: .9rem; opacity: .85; max-width: 22ch; }

/* Critérios */
.criteria { margin: 0; padding: 0; list-style: none; }
.criteria li {
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy);
  position: relative;
}
.criteria li:first-child { border-top: 1px solid var(--line); }
.criteria li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 23px;
  width: 12px;
  height: 6px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background: var(--amber);
}

/* Premiação */
.prizes {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  align-items: stretch;
}
.prize {
  padding: clamp(24px, 3vw, 36px);
  background: var(--white);
  border-top: 4px solid var(--amber);
}
.prize p { margin: 0; }
.prize h3 { color: var(--red); }
.prize-value {
  margin: 8px 0 4px !important;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.9rem + 2vw, 3.5rem);
  line-height: 1.1;
  color: var(--navy);
  white-space: nowrap;
}
.prize-value small { font-size: .45em; }
.prize-first { background: var(--navy); color: #e6eef2; }
.prize-first h3 { color: var(--amber); }
.prize-first .prize-value {
  color: var(--white);
  font-size: clamp(3rem, 2.3rem + 3vw, 4.75rem);
}
.prize-extras { margin-top: 32px; }
.prize-extras p { display: flex; gap: 14px; margin: 0; }
.prize-extras i { margin-top: 5px; color: var(--red); font-size: 1.15rem; }

/* Cronograma */
.timeline { margin: 40px 0 0; padding: 0; list-style: none; }
.timeline li {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 8px 32px;
  padding: 20px 0 20px 20px;
  border-top: 1px solid var(--line);
  border-left: 4px solid transparent;
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font-weight: 700; color: var(--red); }
.timeline p { margin: 4px 0 0; color: var(--muted); }
.timeline .is-done h3, .timeline .is-done time { color: var(--muted); }
.timeline .is-current { background: var(--tint); border-left-color: var(--amber); }

/* Dúvidas */
.contact p { margin: 12px 0 16px; }
.contact-mail { font-weight: 700; overflow-wrap: anywhere; }
.contact-mail i { margin-right: 6px; }

/* Rodapé */
.footer { padding-top: clamp(48px, 6vw, 72px); background: var(--white); }
.footer-orgs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 40px;
}
.footer h2 {
  margin-bottom: 20px;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.logos img { height: 58px; width: auto; max-width: 150px; object-fit: contain; }
.logos .logo-lg { height: 68px; }
.logos a { display: block; transition: opacity .15s ease; }
.logos a img { display: block; }
.logos a:hover { opacity: .7; }
.footer-copy {
  margin: 48px 0 0;
  padding: 18px 16px;
  background: var(--navy);
  color: #e6eef2;
  text-align: center;
  font-size: .9rem;
}

@media (max-width: 960px) {
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .howto { grid-template-columns: minmax(0, 1fr); }
  .footer-orgs { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .hero-grid, .split, .cols-2, .stages, .prior-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-logo img { max-width: 440px; margin-inline: auto; }
  .hero-arc { display: none; }
  .themes { grid-template-columns: minmax(0, 1fr); }
  .prizes { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); padding-left: 12px; }
  .topnav-inner { gap: 20px; }
  .topnav .topnav-doc { margin-left: 0; }
  .btn { width: 100%; }
}

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

/* No celular o QR não faz sentido: o link já basta */
@media (max-width: 760px) {
  .step-qr { display: none; }
}
