/* MEIDUMATO
   O barro sobe pelas letras e separa as seções. Os dados usam objetos da própria prova:
   número de peito, placa de percurso e as curvas de nível da camiseta. */
@font-face { font-family: "Big Shoulders Display"; src: url(../fontes/big-shoulders-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fontes/hanken-grotesk.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --barro: #26170c;
  --amarelo: #ffe62e;
  --mata: #0b3317;
  --folha: #0a7a1c;
  --claro: #edf1e2;
  --escuro: #2b1d05;
  --fonte-titulo: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --fonte-texto: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --margem: max(20px, env(safe-area-inset-left, 0px), calc((100vw - 1320px) / 2));
  --respiro: clamp(80px, 10vw, 152px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 48px; }
body { margin: 0; background: var(--barro); color: var(--claro); font: 400 1.0625rem/1.6 var(--fonte-texto); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }
.so-leitor, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pular { position: fixed; left: 12px; top: -90px; z-index: 50; background: var(--amarelo); color: var(--escuro); padding: 12px 16px; }
.pular:focus { top: 12px; }

/* Base dos blocos */
.mdm { --fundo: var(--barro); --tinta: var(--claro); --destaque: var(--amarelo); position: relative; background: var(--fundo); color: var(--tinta); }
.mdm :is(h1, h2, h3, p, ul, li) { margin: 0; padding: 0; }
.mdm ul { list-style: none; }
.mdm a:not(.botao) { color: inherit; text-underline-offset: .2em; }
.mdm .titulo, .pagina-topo h1 { font-family: var(--fonte-titulo); font-weight: 900; line-height: .86; letter-spacing: -.005em; text-wrap: balance; color: inherit; }
.mdm .titulo { font-size: clamp(4.25rem, 11.5vw, 10rem); }
.mdm h3 { font: 700 1.25rem/1.25 var(--fonte-texto); color: inherit; }
.mdm.secao { padding: var(--respiro) var(--margem); }
.mdm .enlameado { color: #fffdf6; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .mdm .enlameado { background: url(../img/titulo-barro.jpg) 0 0 / 100% 100% no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
}
.borda::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(40px, 5vw, 76px); background: var(--fundo); pointer-events: none; -webkit-mask: var(--forma) 0 100% / 1600px 100% repeat-x; mask: var(--forma) 0 100% / 1600px 100% repeat-x; }
.b1 { --forma: url(../img/borda-1.svg); }
.b2 { --forma: url(../img/borda-2.svg); }
.b3 { --forma: url(../img/borda-3.svg); }
.cabeca { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.mdm .cabeca p { margin-top: 18px; max-width: 46ch; font-size: 1.1875rem; }

.botao, .mdm .botao { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 12px 32px; background: var(--amarelo); color: var(--escuro); font: 700 1.1875rem/1.2 var(--fonte-texto); text-decoration: none; transition: background .15s; }
.botao:hover, .mdm .botao:hover { background: #fff; color: var(--escuro); }
.botao:focus-visible { outline-color: #fff; }
.topo .botao-p { min-height: 56px; padding: 8px 22px; font-size: 1.0625rem; }
.pausa, .pausa:focus { min-height: 44px; padding: 8px 16px; background: none; border: 1px solid currentColor; border-radius: 0; color: inherit; font: 600 .9375rem var(--fonte-texto); cursor: pointer; }
.pausa:hover { background: var(--claro); color: var(--barro); }

/* Cabeçalho */
.topo { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: flex-start; justify-content: space-between; padding: 20px var(--margem); pointer-events: none; transition: background .2s, padding .2s; }
.topo > * { pointer-events: auto; }
.admin-bar .topo { top: var(--wp-admin--admin-bar--height, 32px); }
.topo-escudo img { width: 124px; height: auto; transition: width .2s; }
.topo.rolou { align-items: center; padding-block: 8px; background: var(--barro); pointer-events: auto; }
.topo.rolou .topo-escudo img { width: 44px; }
.topo-acoes { display: flex; gap: 8px; }
.menu-icone, .menu-icone:focus { flex: none; width: 56px; height: 56px; padding: 12px; border: 0; border-radius: 0; background: var(--amarelo); color: var(--escuro); cursor: pointer; }
.menu-icone:hover { background: #fff; color: var(--escuro); }
.menu-icone:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.menu-icone svg { display: block; width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 4; }

.menu { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 96px var(--margem) 40px; border: 0; background: var(--mata); color: var(--claro); overflow: auto; }
.menu::before { content: ""; position: fixed; inset: 0; background: var(--amarelo); opacity: .16; pointer-events: none; -webkit-mask: url(../img/curvas.png) 0 0 / 1200px; mask: url(../img/curvas.png) 0 0 / 1200px; }
.menu[open] { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; animation: descer .22s ease-out; }
@keyframes descer { from { transform: translateY(-24px); } }
.menu .menu-icone { position: fixed; top: 20px; right: var(--margem); z-index: 1; }
.menu nav, .menu p { position: relative; margin: 0; }
.menu-lista { margin: 0; padding: 0; list-style: none; }
.menu-lista a { display: inline-block; padding: 4px 0; color: inherit; text-decoration: none; font: 900 clamp(3.25rem, min(15vw, 15vh), 8.5rem)/.98 var(--fonte-titulo); transition: color .15s, transform .15s; }
.menu-lista a:hover, .menu-lista a:focus-visible { color: var(--amarelo); transform: translateX(16px); }
.menu p a { color: inherit; font-weight: 700; font-size: 1.125rem; }

/* Abertura */
.abertura { height: min(100svh, 64vw); min-height: 620px; overflow: hidden; }
.abertura-imagem, .mdm .abertura-imagem img, .mdm .abertura-imagem video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.mdm .abertura-imagem img, .mdm .abertura-imagem video { object-fit: cover; object-position: 50% 78%; }
.mdm .abertura-imagem video { opacity: 0; transition: opacity .4s; }
.mdm .abertura-imagem video.pronto { opacity: 1; }
.abertura-imagem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top left, #1a0f07f5 10%, #1a0f07c2 32%, #1a0f0700 58%); }
.abertura-texto { position: absolute; z-index: 2; right: var(--margem); bottom: clamp(72px, 8.5vw, 124px); width: min(43.5vw, 648px); }
.mdm.abertura .titulo { font-size: min(9.7vw, 144px); width: max-content; max-width: 100%; white-space: nowrap; }
.mdm .abertura-texto p { margin: 16px 0 26px; font-size: clamp(1.1875rem, 1.7vw, 1.5rem); line-height: 1.35; max-width: 30ch; }
.pausa-abertura { position: absolute; z-index: 2; left: var(--margem); bottom: 96px; }

/* A prova */
.prova { --fundo: var(--amarelo); --tinta: var(--escuro); --destaque: var(--folha); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px clamp(40px, 6vw, 104px); align-items: center; }
.mdm .chamada { margin-top: 32px; font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 600; line-height: 1.22; text-wrap: pretty; }
.corrido { margin-top: 28px; max-width: 60ch; }
.mdm .corrido p + p { margin-top: 16px; }
.prova-fotos { position: relative; padding: 0 0 22% 14%; }
.mdm .prova-fotos img { aspect-ratio: 1; object-fit: cover; }
.mdm .prova-fotos .foto-1 { width: 100%; }
.mdm .prova-fotos .foto-2 { position: absolute; left: 0; bottom: 0; width: 48%; border: 10px solid var(--fundo); }
.peitos { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.peito { position: relative; display: flex; flex-direction: column; padding: 14px 14px 16px; background: #fffdf6; color: var(--escuro); text-align: center; line-height: 1.3; box-shadow: 0 10px 22px -10px #2b1d0580; transform: rotate(-1.6deg); }
.peito:nth-child(even) { transform: rotate(1.3deg); }
.peito:nth-child(3n) { transform: rotate(-.6deg); }
.peito::before, .peito::after { content: ""; position: absolute; left: 10px; right: 10px; height: 9px; background: radial-gradient(circle at 4.5px 4.5px, var(--fundo) 4px, #0000 4.6px) 0 0 / 9px 9px no-repeat, radial-gradient(circle at 4.5px 4.5px, var(--fundo) 4px, #0000 4.6px) 100% 0 / 9px 9px no-repeat; }
.peito::before { top: 10px; }
.peito::after { bottom: 10px; }
.peito-marca { align-self: center; padding: 3px 16px 2px; background: var(--destaque); color: var(--amarelo); font: 900 1.375rem/1.1 var(--fonte-titulo); }
.peito strong { display: block; margin: 10px 0 12px; padding: 12px 4px 10px; background: var(--amarelo); font: 900 clamp(3.25rem, 6.6vw, 6.25rem)/.9 var(--fonte-titulo); white-space: nowrap; }
.peito > span:last-child { font-weight: 600; padding: 0 12px; }

/* Percursos */
.percursos { isolation: isolate; }
.percursos::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #c98a52; opacity: .34; -webkit-mask: url(../img/curvas.png) 0 0 / 1200px; mask: url(../img/curvas.png) 0 0 / 1200px; }
.takes { display: flex; gap: 10px; height: clamp(420px, 39vw, 580px); }
.take { container-type: inline-size; position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: #3a2514; transition: flex-grow .35s ease; }
.take.vertical { flex-grow: .6; }
.mdm .take video, .mdm .take img { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); max-width: none; object-fit: cover; }
.take::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(#1a0f0700, #1a0f07e6); }
.take-texto { position: absolute; z-index: 1; inset: auto 18px 18px; }
.mdm .take h3 { font: 900 min(4.25rem, 22cqi)/.9 var(--fonte-titulo); color: var(--destaque); }
.mdm .take p { margin-top: 8px; line-height: 1.35; color: #fffdf6; }
@media (hover: hover) and (min-width: 761px) {
  .take:hover { flex-grow: 1.25; }
  .take.vertical:hover { flex-grow: .85; }
}
.formatos { margin-top: clamp(56px, 7vw, 104px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 104px); }
.placas { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 !important; }
.mdm .placas li { padding: 12px 34px 10px 18px; background: var(--destaque); color: var(--escuro); font: 900 clamp(2.25rem, 3.6vw, 3.25rem)/1 var(--fonte-titulo); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); }
.mdm .formatos p { max-width: 46ch; }
.mdm .formatos .data { margin: 20px 0; font: 900 clamp(2.25rem, 3.6vw, 3.25rem)/1.18 var(--fonte-titulo); color: var(--destaque); max-width: none; }
.confirmados { display: grid; gap: 14px; }
.confirmados li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.confirmados strong { font: 900 2.25rem/1 var(--fonte-titulo); }

/* Guia */
.guia { --fundo: var(--claro); --tinta: var(--mata); --destaque: var(--folha); }
.guia-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px clamp(40px, 6vw, 104px); align-items: start; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding: 22px 0; border-top: 2px solid var(--tinta); }
.mdm .item h3, .mdm .faq h3 { font: 900 2.5rem/1 var(--fonte-titulo); }
.item p, .item a { grid-column: 1; max-width: 46ch; }
.item a { font-weight: 700; }
.estado { grid-column: 2; grid-row: 1; align-self: center; padding: 4px 10px; background: var(--amarelo); color: var(--escuro); font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.mapa { margin-top: 16px; }
.faq { padding: clamp(24px, 3vw, 44px); background: var(--tinta); color: var(--fundo); }
.mdm .faq h3 { margin-bottom: 22px; }
.faq details { border-top: 1px solid #edf1e24d; }
.faq summary { position: relative; display: block; padding: 18px 44px 18px 0; cursor: pointer; font-weight: 700; font-size: 1.125rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 20px; height: 4px; margin-top: -2px; background: var(--amarelo); transition: transform .2s; }
.faq summary::after { transform: rotate(90deg); }
.faq [open] summary::after { transform: none; }
.mdm .faq details p { padding: 0 0 22px; max-width: 54ch; }

/* Galeria: de uma borda da tela à outra */
.galeria { --fundo: var(--mata); }
.mdm.galeria { padding-left: 0; padding-right: 0; padding-bottom: clamp(40px, 5vw, 76px); }
.galeria .cabeca { padding: 0 var(--margem); }
.fotos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; grid-auto-flow: dense; }
.fotos li { position: relative; aspect-ratio: 1; overflow: hidden; }
.mdm .fotos img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.fotos .larga { grid-column: span 3; grid-row: span 2; aspect-ratio: auto; }
.fotos .grande { grid-column: span 2; grid-row: span 2; }

/* Rodapé sobre o chão da prova */
.rodape { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px clamp(40px, 7vw, 120px); align-items: center; }
.mdm.rodape { background: linear-gradient(var(--barro), #26170cd9 45%, #26170cb3), url(../img/chao.jpg) 50% 100% / cover; }
.mdm.rodape > img { width: clamp(200px, 25vw, 340px); height: auto; }
.mdm.rodape .titulo { width: max-content; max-width: 100%; font-size: clamp(4rem, 12vw, 11rem); white-space: nowrap; }
.mdm.rodape p:not(.titulo) { margin-top: 20px; font-size: 1.125rem; }
.contatos { display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 700; }
.mdm.rodape .botao { margin-top: 32px; }
.creditos { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; padding: 22px var(--margem); background: #160d06; color: var(--claro); font-size: .9375rem; line-height: 1.4; }

/* Páginas comuns */
.pagina-topo { padding: 210px var(--margem) 56px; background: var(--barro); }
.pagina-topo h1 { margin: 0; font-size: clamp(3rem, 8vw, 7rem); overflow-wrap: anywhere; }
.espaco-topo { height: 190px; background: var(--barro); }
.texto-pagina { padding: 64px var(--margem) var(--respiro); background: var(--claro); color: var(--mata); min-height: 40vh; }
.texto-pagina > * { max-width: 68ch; }
.texto-pagina > .alignwide, .texto-pagina > .alignfull { max-width: none; }
.texto-pagina h2, .texto-pagina h3 { font-family: var(--fonte-titulo); font-weight: 900; line-height: 1; font-size: 2.5rem; margin: 1.4em 0 .5em; }
.texto-pagina a:not(.botao) { color: var(--folha); }

/* Os blocos ocupam a largura toda, mesmo arrastados para um container padrão do Elementor */
.elementor-widget[class*="elementor-widget-mdm-"] { width: 100%; max-width: 100%; margin-block-end: 0 !important; }
.e-con:has(> [class*="elementor-widget-mdm-"]), .e-con:has(> .e-con-inner > [class*="elementor-widget-mdm-"]) { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-block-start: 0px; --padding-block-end: 0px; --padding-inline-start: 0px; --padding-inline-end: 0px; --content-width: 100%; --container-max-width: 100%; --gap: 0px; --row-gap: 0px; }

@media (max-width: 760px) {
  .topo { padding-top: 14px; }
  .topo.rolou { padding-top: 8px; }
  .topo-escudo img { width: 88px; }
  .menu .menu-icone { top: 14px; }

  .abertura { height: 100svh; min-height: 520px; max-height: 900px; display: flex; flex-direction: column; }
  .admin-bar .abertura { height: calc(100svh - 46px); }
  .abertura-imagem { position: relative; inset: auto; flex: 1 1 0; min-height: 0; height: auto; }
  .mdm .abertura-imagem img, .mdm .abertura-imagem video { object-position: 15% 100%; }
  .abertura-imagem::after { background: linear-gradient(to top, var(--fundo), #26170c00 18%); }
  .abertura-texto { position: static; width: auto; padding: 4px 20px 58px; }
  .mdm.abertura .titulo { font-size: calc((100vw - 40px) / 4.45); }
  .mdm .abertura-texto p { margin: 8px 0 16px; }
  .mdm .abertura-texto .botao { width: 100%; }
  .pausa-abertura { left: auto; right: 20px; top: 82px; bottom: auto; }

  .prova, .formatos, .guia-grade, .rodape { grid-template-columns: minmax(0, 1fr); }
  .peitos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .peito { padding-inline: 10px; font-size: 1rem; }
  .peito strong { font-size: min(13.5vw, 5rem); }
  .peito > span:last-child { padding: 0 4px 6px; }

  .takes { flex-wrap: wrap; height: auto; gap: 8px; }
  .take { flex: 0 0 calc(60% - 4px); height: 84vw; }
  .take.vertical { flex: 0 0 calc(40% - 4px); }
  .take-texto { inset: auto 12px 12px; }
  .mdm .take p { font-size: .9375rem; }

  .fotos { grid-template-columns: 1fr 1fr; gap: 4px; }
  .fotos .larga { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
  .fotos .grande { grid-column: 1 / -1; grid-row: auto; }
  .mdm.rodape .titulo { font-size: calc((100vw - 40px) / 4.45); }
  .faq { margin-inline: -20px; padding: 40px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu[open] { animation: none; }
  .take, .menu-lista a, .topo, .topo-escudo img { transition: none; }
}


/* Preserve the upper part of the original photo on desktop displays. */
@media (min-width: 761px) {
  .mdm .abertura-imagem picture img { object-position: 50% 9%; }
}
/* The control is visible only while a clip is playing. */
.mdm .pausa[hidden] { display: none !important; }

/* Instagram da organização e crédito do site */
.mdm.vpc-social { padding: 42px var(--margem) 56px; background: #edeede; color: #26170c; }
.vpc-social-inner { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 1.6fr); align-items: center; gap: 22px 34px; max-width: 1160px; margin-inline: auto; }
.vpc-social-tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #4b5135; margin: 0 0 6px; }
.vpc-social h2 { font-size: clamp(1.35rem, 2.7vw, 2.3rem); line-height: 1.05; margin: 0 0 10px; }
.vpc-social-follow, .creditos a { color: inherit; text-decoration: underline; text-underline-offset: .2em; font-weight: 700; }
.vpc-social-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mdm .vpc-social-post { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 76px; padding: 8px; border: 1px solid #c5c7ae; color: #26170c; text-decoration: none; background: #f8f9ed; }
.mdm .vpc-social-post:hover { border-color: #75482a; }
.mdm .vpc-social-post img { width: 62px; height: 62px; flex: 0 0 62px; object-fit: cover; }
.vpc-social-post span { font-size: .92rem; font-weight: 800; line-height: 1.18; }
.vpc-social-post small { display: block; margin-bottom: 3px; font-size: .68rem; color: #535a40; text-transform: uppercase; letter-spacing: .08em; }
.vpc-social-post b { color: #765234; }
@media (max-width: 760px) {
  .mdm.vpc-social { padding-top: 28px; padding-bottom: 44px; }
  .vpc-social-inner { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .mdm .vpc-social-post { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mdm .vpc-social-post img { width: 100%; height: 58px; flex: none; }
}