/* Neauvia Clinical Trends
   Didot nos títulos, ITC Avant Garde no texto, carmim da marca.
   Seções alternam carmim, papel claro e vinho profundo. */

@font-face { font-family: "Didot NCT"; src: url("../fonts/didot-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Didot NCT"; src: url("../fonts/didot-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* datas: só os algarismos de estilo antigo da Didot (o "10" baixo), como nas artes */
@font-face { font-family: "Didot Data"; src: url("../fonts/didot-data.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "ITC NCT"; src: url("../fonts/itc-xlight.woff2") format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "ITC NCT"; src: url("../fonts/itc-book.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "ITC NCT"; src: url("../fonts/itc-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "ITC NCT"; src: url("../fonts/itc-medium-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "ITC NCT"; src: url("../fonts/itc-demi.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "ITC NCT"; src: url("../fonts/itc-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --carmim: #C8193F;
  --carmim-escuro: #A80D2C;
  --vinho: #5A0718;
  --vinho-fundo: #240206;
  --kv: #D21842;
  --papel: #F7F1EC;
  --tinta: #2A1418;
  --tinta-suave: #6B5458;
  --linha: rgba(42, 20, 24, .16);
  --serifa: "Didot NCT", "Didot", "Bodoni 72", "Playfair Display", Georgia, serif;
  --sem: "ITC NCT", "Century Gothic", "Avenir Next", Avenir, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--vinho-fundo); color: var(--tinta); font-family: var(--sem); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap--estreita { width: min(820px, 100% - 40px); }

/* ---------- faixa da contagem ---------- */
.faixa { position: sticky; top: 0; z-index: 30; background: var(--kv); color: #fff; display: flex; justify-content: center; align-items: center; gap: 30px; padding: 12px 16px 10px; box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .6); overflow: hidden; }
/* um fio de luz corre pela base da faixa, com o mesmo rastro esfumaçado das speakers */
@keyframes fioFaixa { from { transform: translateX(-110%); } to { transform: translateX(560%); } }
.faixa::after { content: ""; position: absolute; left: 0; bottom: 0; width: 20%; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 150, 170, .25) 35%, rgba(255, 190, 204, .8) 80%, #fff 97%, transparent 100%);
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 -2px 8px rgba(255, 220, 228, .9)); animation: fioFaixa 8s linear infinite; }
.faixa__rot { font-family: var(--serifa); font-style: italic; font-size: 26px; line-height: 1; }
.faixa__nums { display: flex; gap: 8px; }
.faixa__n { position: relative; display: grid; justify-items: center; gap: 3px; min-width: 76px; background: rgba(60, 0, 12, .38); padding: 9px 10px 7px; }
/* contorno de cada caixa: desenha-se uma vez, em sequência, quando o contador liga */
@property --volta { syntax: "<percentage>"; initial-value: 100%; inherits: false; }
@keyframes contorna { from { --volta: 0%; } to { --volta: 100%; } }
@keyframes pulsaCaixa { from { box-shadow: 0 0 0 rgba(255, 255, 255, 0); } to { box-shadow: 0 0 18px rgba(255, 235, 240, .55); } }
.faixa__n::before { content: ""; position: absolute; inset: 0; padding: 1px; pointer-events: none;
  background: conic-gradient(from -90deg, rgba(255, 214, 223, .95) var(--volta), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .7)); }
.faixa.is-ligando .faixa__n::before { animation: contorna 1.1s cubic-bezier(.45, 0, .2, 1) both; }
.faixa.is-ligando .faixa__n:nth-child(2)::before { animation-delay: .14s; } .faixa.is-ligando .faixa__n:nth-child(3)::before { animation-delay: .28s; } .faixa.is-ligando .faixa__n:nth-child(4)::before { animation-delay: .42s; }
.faixa__n b { display: flex; justify-content: center; font-family: var(--serifa); font-weight: 700; font-size: 40px; line-height: .9; font-variant-numeric: tabular-nums lining-nums; }
.faixa__n b span { display: grid; overflow: hidden; padding-block: .06em; }
.faixa__n b em { grid-area: 1 / 1; font-style: normal; display: block; }
.faixa__n i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.is-reta .faixa__n { animation: pulsaCaixa 1.6s ease-in-out infinite alternate; }
.is-reta .faixa__n:nth-child(2) { animation-delay: .2s; } .is-reta .faixa__n:nth-child(3) { animation-delay: .4s; } .is-reta .faixa__n:nth-child(4) { animation-delay: .6s; }
.faixa__cta { background: #fff; color: var(--carmim-escuro); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 13px 20px 11px; border-radius: 3px; }
.faixa__cta:hover { background: var(--papel); }

/* ---------- hero: segue o KV da edição ---------- */
.hero { position: relative; color: #fff; background: #3A0509; overflow: hidden; }
.hero__kv { position: absolute; inset: 0; background: url("../assets/kv.jpg") 50% 0 / cover no-repeat; }
.hero__kv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40, 2, 7, .9) 0%, rgba(40, 2, 7, .55) 46%, rgba(40, 2, 7, .35) 100%), linear-gradient(180deg, rgba(36, 2, 6, 0) 62%, var(--vinho-fundo) 100%); }
.hero__grade { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 64px; align-items: start; padding-block: 64px 88px; }
.hero__logo { width: 268px; }
.hero__edicao { margin-top: 26px; font-size: 13px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.hero__ante { margin-top: 44px; font-size: 21px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.hero__tema { margin-top: 8px; }
.tema__arte { display: block; }
.hero__tema img, .tema__arte svg { width: min(470px, 100%); height: auto; display: block; }
.tema__arte svg { overflow: visible; }
/* o título se desenha letra a letra, em contorno, e depois ganha o preenchimento da arte original */
@keyframes tracaTitulo { to { stroke-dashoffset: 0; } }
@keyframes encheTitulo { to { fill-opacity: 1; stroke-opacity: 0; } }
.tema__arte.is-traco path { fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: .7; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: tracaTitulo 2.1s cubic-bezier(.45, 0, .2, 1) calc(var(--d, 0s) + .55s) both, encheTitulo 1.1s ease calc(var(--d, 0s) + 2.3s) both; }
.hero__tema #evTema { display: block; font-family: var(--serifa); font-weight: 700; font-size: clamp(44px, 6vw, 84px); line-height: .98; letter-spacing: -.012em; }
.hero__sub { margin-top: 22px; max-width: 17em; font-weight: 500; font-style: italic; font-size: clamp(21px, 2.1vw, 28px); line-height: 1.22; }

.quando { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 26px 36px; }
.quando__data { font-family: "Didot Data", Didot, "Didot NCT", Georgia, serif; font-weight: 400; font-size: clamp(84px, 9.6vw, 138px); line-height: .8; letter-spacing: -.01em; }
.quando__data.is-breve { font-family: var(--serifa); font-style: italic; font-size: clamp(38px, 4.6vw, 60px); line-height: 1; letter-spacing: 0; }
.quando__hora { margin-top: 16px; text-align: right; font-weight: 500; font-style: italic; font-size: 25px; line-height: 1; }
.local { font-style: normal; display: grid; justify-items: start; gap: 8px; max-width: 250px; }
.local .local__rot { background: var(--kv); font-family: var(--serifa); font-style: italic; font-size: 38px; line-height: 1; padding: 6px 16px 9px; }
.local strong { font-weight: 500; font-style: italic; font-size: 29px; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.local img { width: 190px; margin-top: 4px; }
.local span { font-size: 14.5px; line-height: 1.4; }
.rotas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.rotas a { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: #fff; border: 1px solid rgba(255, 255, 255, .7); border-radius: 3px; padding: 9px 13px 8px; transition: background .2s, color .2s; }
.rotas a:hover { background: #fff; color: var(--carmim-escuro); }
.rotas svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.hero__chamada { margin-top: 40px; max-width: 28em; font-size: 18px; }
.vagas { margin-top: 26px; display: inline-block; border-block: 1px solid rgba(255, 255, 255, .75); padding: 10px 22px 8px; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.vagas b { font-weight: 700; }

.exclusivo { --trk: .62em; background: var(--kv); color: #fff; text-align: center; font-size: 18px; font-weight: 500; line-height: 1.2; letter-spacing: var(--trk); text-indent: var(--trk); text-transform: uppercase; padding: 21px 16px 18px; }

/* ---------- ficha de inscrição ---------- */
.ficha { background: #fff; color: var(--tinta); padding: 34px 32px 32px; border-radius: 4px; box-shadow: 0 30px 70px -30px rgba(40, 0, 10, .75); scroll-margin-top: 110px; }
.ficha__selo { display: inline-block; margin-bottom: 16px; background: var(--kv); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; padding: 8px 14px 6px; }
.ficha__tit { font-family: var(--serifa); font-weight: 700; font-size: 32px; line-height: 1.05; color: var(--carmim-escuro); }
.ficha__sub { margin-top: 8px; font-size: 15px; color: var(--tinta-suave); }
.ficha__aviso { margin-top: 16px; background: var(--papel); border-radius: 3px; padding: 14px 16px 13px; font-size: 14.5px; line-height: 1.45; color: var(--tinta); }
.ficha__aviso strong { display: block; margin-bottom: 3px; font-weight: 700; color: var(--carmim-escuro); }
form { margin-top: 22px; display: grid; gap: 14px; }
.campo { display: grid; gap: 5px; min-width: 0; }
.campo > span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-suave); }
.campo input, .campo select { width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--tinta); background: var(--papel); border: 1px solid transparent; border-radius: 3px; padding: 12px 13px 11px; appearance: none; }
.campo select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B5458' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 11px; padding-right: 30px; }
.campo input::placeholder { color: #b3a3a5; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--carmim); background: #fff; box-shadow: 0 0 0 3px rgba(200, 25, 63, .14); }
.campo.is-erro input, .campo.is-erro select { border-color: #B3261E; background: #fff; }
.msg { font-size: 13px; color: #B3261E; min-height: 0; }
.msg:empty { display: none; }
.msg--bloco { margin-top: -6px; }
.dupla { display: grid; gap: 12px; }
.dupla--cidade { grid-template-columns: minmax(0, 1fr) 104px; }
.dupla--cidade.is-fora { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dupla--crm { grid-template-columns: minmax(0, 1fr) 104px; }
.dupla--crm.is-fora { grid-template-columns: minmax(0, 1fr); }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.marca { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.4; color: var(--tinta-suave); cursor: pointer; }
.marca input { width: 20px; height: 20px; margin: 0; accent-color: var(--carmim); }
.marca i { font-style: italic; opacity: .75; margin-left: 4px; }
.erro { background: #FBEAE8; color: #8C1D18; font-size: 14px; padding: 10px 12px; border-radius: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 0; border-radius: 3px; padding: 17px 28px 15px; cursor: pointer; background: var(--carmim); color: #fff; transition: background .18s; }
.btn:hover { background: var(--carmim-escuro); }
.btn:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--carmim-escuro); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--cheio { width: 100%; margin-top: 4px; }
.btn--claro { background: #fff; color: var(--carmim-escuro); }
.btn--claro:hover { background: var(--papel); }
.btn--linha { background: none; color: var(--carmim-escuro); box-shadow: inset 0 0 0 1.5px var(--carmim-escuro); }
.btn--linha:hover { background: var(--papel); }

.ficha__estado { text-align: center; padding: 26px 4px 18px; display: grid; gap: 14px; justify-items: center; outline: none; }
.ficha__estado svg { width: 56px; height: 56px; fill: none; stroke: var(--carmim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ficha__estado h2 { font-family: var(--serifa); font-size: 32px; line-height: 1.05; color: var(--carmim-escuro); }
.ficha__estado p { color: var(--tinta-suave); max-width: 26em; }

/* ---------- inscrições encerradas ---------- */
.ficha { position: relative; }
.ficha.is-fechada #fichaForm { opacity: .3; filter: grayscale(.5); pointer-events: none; user-select: none; }
.ficha__tarja { position: absolute; left: -22px; right: -22px; top: 46%; transform: translateY(-50%) rotate(-6deg); background: var(--kv); color: #fff; text-align: center; padding: 24px 16px 22px; box-shadow: 0 22px 46px -14px rgba(60, 0, 12, .65); }
.ficha__tarja strong { display: block; font-weight: 700; font-size: clamp(22px, 2.5vw, 31px); line-height: 1.05; letter-spacing: .08em; text-transform: uppercase; }
.ficha__tarja span { display: block; margin-top: 8px; font-family: var(--serifa); font-style: italic; font-size: clamp(21px, 2.2vw, 27px); line-height: 1; }
.faixa__fim { font-size: 15px; font-weight: 500; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; padding-block: 8px 6px; text-align: center; }
.faixa__fim em { font-family: var(--serifa); font-style: italic; font-size: 21px; letter-spacing: 0; text-transform: none; margin-left: 14px; }
.is-fechado .faixa__rot, .is-fechado .faixa__nums, .is-fechado .faixa__cta, .is-fechado .vagas, .is-fechado .flutua, .is-fechado .banner__txt .btn, .is-fechado #btnFinal { display: none !important; }

/* ---------- títulos de seção ---------- */
.olho { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--carmim); }
.olho--claro { color: rgba(255, 255, 255, .7); }
.tit { margin-top: 14px; font-family: var(--serifa); font-weight: 700; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.01em; color: var(--tinta); }
.tit--claro { color: #fff; }

/* ---------- banner em vídeo ---------- */
.banner { position: relative; overflow: hidden; background: var(--vinho-fundo); color: #fff; }
.banner__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(120, 6, 28, .88) 0%, rgba(90, 4, 20, .62) 45%, rgba(60, 2, 12, .5) 100%); }
.banner__grade { position: relative; z-index: 1; min-height: 440px; padding-block: 72px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 72px; }
.banner__logo { width: clamp(220px, 27vw, 380px); }
.banner__txt { padding-left: 72px; position: relative; }
.banner__txt::before { content: ""; position: absolute; left: 0; top: -10%; bottom: -10%; width: 1px; background: rgba(255, 255, 255, .8); transform: skewX(-16deg); }
.banner__txt p { max-width: 17em; font-weight: 500; font-style: italic; font-size: clamp(24px, 2.7vw, 38px); line-height: 1.2; }
.banner__txt .btn { margin-top: 30px; }

/* ---------- tema ---------- */
.tema { background: var(--papel); padding-block: 104px; }
.tema__grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.tema__txt { margin-top: 26px; font-size: 19px; line-height: 1.6; max-width: 30em; }
.eixos { counter-reset: eixo; border-top: 1px solid var(--linha); }
.eixos li { counter-increment: eixo; display: grid; grid-template-columns: 74px 1fr; align-items: center; padding: 21px 0; border-bottom: 1px solid var(--linha); font-size: 21px; line-height: 1.3; font-weight: 500; }
.eixos li::before { content: counter(eixo, decimal-leading-zero); font-family: var(--serifa); font-style: italic; font-weight: 400; font-size: 34px; line-height: 1; font-variant-numeric: lining-nums; color: var(--carmim); }

/* ---------- speakers ---------- */
.speakers { background: var(--vinho-fundo) url("../assets/textura.png"); color: #fff; padding-block: 92px 104px; }
.speakers__nota { margin-top: 18px; max-width: 32em; color: rgba(255, 255, 255, .78); }
/* em linha e centralizados: três, quatro ou mais nomes ficam sempre equilibrados */
.sp { --col: 4; margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 44px 30px; }
.sp li { flex: 0 0 calc((100% - (var(--col) - 1) * 30px) / var(--col)); min-width: 0; }
.sp li { display: grid; gap: 14px; align-content: start; text-align: center; }
.sp__foto { position: relative; aspect-ratio: 1 / 1.16; }
.sp__foto::before { content: ""; position: absolute; inset: 0; background: var(--kv); clip-path: polygon(60% 0, 100% 44%, 63% 100%, 0 40%); }
.sp__foto img, .sp__foto span { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: polygon(57% 6%, 93% 43.5%, 60% 89%, 7% 40%); }
.sp__foto img { object-fit: cover; object-position: 50% 42%; }
.sp__foto span { display: grid; place-items: center; background: var(--vinho); font-family: var(--serifa); font-style: italic; font-size: 64px; line-height: 1; color: rgba(255, 255, 255, .45); }
/* nome sempre em uma linha, protegido por dois filetes brancos; tema logo abaixo */
.sp__nome { justify-self: center; max-width: 100%; margin-top: 4px; padding: 11px 14px 10px; border-block: 1px solid rgba(255, 255, 255, .85);
  font-size: 20px; font-weight: 500; font-style: italic; line-height: 1.2; text-wrap: nowrap; }
.sp__titulo { margin: 4px auto 0; max-width: 15em; font-size: 15.5px; line-height: 1.36; text-wrap: balance; }
.sp__titulo strong { display: block; font-weight: 700; font-size: 18px; line-height: 1.24; color: #fff; }
.sp__titulo em { display: block; margin-top: 7px; font-weight: 500; font-style: italic; color: rgba(255, 255, 255, .86); }
.sp__titulo + .sp__titulo { margin-top: 18px; }
.sp__live { display: inline-block; margin-bottom: 8px; background: var(--kv); color: #fff; font-weight: 700; font-style: normal; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; padding: 6px 11px 5px; box-shadow: 0 0 14px rgba(255, 30, 70, .45); }
.sp__titulo.is-live em { margin-top: 0; }

/* ---------- programa ---------- */
.programa { background: var(--papel); padding-block: 104px; }
.prog { margin-top: 42px; border-top: 1px solid var(--linha); }
.prog li { display: grid; grid-template-columns: 110px 1fr; gap: 6px 20px; padding: 20px 0 18px; border-bottom: 1px solid var(--linha); align-items: baseline; }
.prog__hora { font-family: var(--serifa); font-weight: 700; font-size: 26px; line-height: 1; color: var(--carmim); font-variant-numeric: tabular-nums lining-nums; }
.prog__tit { font-size: 19px; font-weight: 500; line-height: 1.3; }
.prog__sp { grid-column: 2; font-size: 15px; color: var(--tinta-suave); }

/* ---------- destaque ---------- */
.destaque { background: var(--carmim); color: #fff; text-align: center; padding-block: 84px; }
.destaque h2 { font-family: var(--serifa); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; }
.destaque p { margin-top: 16px; font-size: 20px; font-weight: 200; }

/* ---------- galeria ---------- */
.galeria { background: var(--vinho-fundo); color: #fff; padding-block: 104px 0; }
.galeria__txt { margin-top: 18px; max-width: 30em; font-size: 19px; color: rgba(255, 255, 255, .78); }
.filme { margin-top: 48px; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; display: block; }
/* a história da edição, em capítulos: legenda e um bloco de fotos sem buracos */
.cap__txt { padding-block: 58px 56px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cap__n { font-family: var(--serifa); font-style: italic; font-size: 44px; line-height: 1; color: var(--kv); }
/* com JS o número vira contorno: o traço se desenha quando o capítulo entra na tela */
.cap__n.is-tracado { font-size: clamp(72px, 8vw, 116px); margin-bottom: 4px; }
.cap__n svg { display: block; width: 1.75em; height: 1.02em; overflow: visible; }
.cap__tra { font-family: var(--serifa); font-style: italic; font-size: 100px; fill: var(--kv); fill-opacity: 0; stroke: #FF4D72; stroke-width: 1.3; stroke-linejoin: round;
  stroke-dasharray: 330; stroke-dashoffset: 330; filter: drop-shadow(0 0 5px rgba(255, 30, 70, .75)) drop-shadow(0 0 14px rgba(255, 20, 60, .35)); }
@keyframes traca { to { stroke-dashoffset: 0; } }
@keyframes enche { to { fill-opacity: .2; } }
.cap__txt.ver .cap__tra { animation: traca 2.8s cubic-bezier(.4, 0, .3, 1) .3s both, enche 1.4s ease 2.6s both; }
.cap h3 { margin: 0; font-family: var(--serifa); font-weight: 700; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; }
.cap p { margin-top: 4px; max-width: 34em; font-size: 18px; color: rgba(255, 255, 255, .78); }
.mosaico { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 16.6vw; grid-auto-flow: dense; gap: 4px; }
.mosaico img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.mosaico .g2 { grid-column: span 2; }
.mosaico .g2x2 { grid-column: span 2; grid-row: span 2; }
.mosaico .galta { grid-row: span 2; }

/* ---------- final e rodapé ---------- */
.final { background: var(--kv); color: #fff; text-align: center; padding-block: 108px; }
.final h2 { text-wrap: initial; font-family: var(--serifa); font-weight: 400; font-style: italic; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.1; }
.final .btn { margin-top: 36px; }
.rodape { background: var(--vinho-fundo); color: rgba(255, 255, 255, .78); text-align: center; padding-block: 56px 96px; font-size: 14px; }
.rodape img { width: 420px; margin-inline: auto; }
.rodape__priv { margin-top: 28px; font-size: 13px; }
.rodape__priv a { color: rgba(255, 255, 255, .62); text-decoration: underline; text-underline-offset: 3px; }
.rodape__priv a:hover { color: #fff; }
.insta { margin-top: 26px; display: inline-flex; align-items: center; gap: 14px; text-align: left; text-decoration: none; background: var(--kv); color: #fff; padding: 13px 26px 12px 20px; border-radius: 40px; font-size: 21px; font-weight: 600; line-height: 1.1; transition: background .18s; }
.insta:hover { background: var(--carmim-escuro); }
.insta svg { width: 34px; height: 34px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }
.insta small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .85; margin-bottom: 3px; }

/* ---------- página de obrigado ---------- */
.obg { background: #3A0509; }
.obg__main { position: relative; min-height: 100vh; color: #fff; display: grid; place-items: center; padding: 48px 16px 64px; overflow: hidden; }
.obg__main .hero__kv::after { background: rgba(40, 2, 7, .78); }
.obg__wrap { position: relative; width: min(620px, 100%); display: grid; justify-items: center; gap: 34px; }
.obg__logo { width: 210px; }
.obg__cartao { width: 100%; background: #fff; color: var(--tinta); border-radius: 4px; padding: 44px 40px 40px; text-align: center; box-shadow: 0 30px 70px -30px rgba(40, 0, 10, .75); }
.obg__ok { width: 60px; height: 60px; fill: none; stroke: var(--carmim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.obg__cartao h1 { margin-top: 18px; font-family: var(--serifa); font-weight: 700; font-size: clamp(30px, 5vw, 42px); line-height: 1.05; color: var(--carmim-escuro); }
.obg__txt { margin-top: 16px; font-size: 18px; }
.obg__email { margin-top: 10px; font-size: 15px; color: var(--tinta-suave); overflow-wrap: anywhere; }
.obg__aviso { margin-top: 22px; text-align: left; background: var(--papel); border-radius: 3px; padding: 14px 16px 13px; font-size: 15px; line-height: 1.45; }
.obg__aviso strong { display: block; margin-bottom: 3px; color: var(--carmim-escuro); }
.obg__det { margin: 28px 0 0; text-align: left; border-top: 1px solid var(--linha); }
.obg__det div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 13px 0 11px; border-bottom: 1px solid var(--linha); }
.obg__det dt { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-suave); padding-top: 3px; }
.obg__det dd { margin: 0; font-size: 16px; }
.obg__rotas { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.obg__rotas .btn svg { width: 15px; height: 15px; margin-right: 8px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.obg__acoes { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.obg .insta { margin-top: 0; }
.obg .btn:focus-visible { outline-color: var(--carmim); box-shadow: none; }
@media (max-width: 620px) { .obg__cartao { padding: 34px 22px 30px; } .obg__acoes .btn { width: 100%; } }

/* botão que acompanha a rolagem no celular */
.flutua { display: none; }

/* ---------- movimento ----------
   A ideia é leveza: nada entra de uma vez nem gira. As coisas surgem do desfoque,
   e o que fica na tela continua se movendo devagar (fundo, fagulhas, losangos, faixa). */
@keyframes surge { from { opacity: 0; filter: blur(12px); transform: translateY(14px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes respira { from { transform: scale(1.02); } to { transform: scale(1.1) translateY(-1.2%); } }
@keyframes flutua { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
@keyframes corre { to { transform: translateX(-50%); } }
@keyframes fagulha {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.6); }
  12% { opacity: var(--o, .8); }
  100% { opacity: 0; transform: translate3d(var(--dx, 30px), -78vh, 0) scale(1.15); }
}

/* topo: o fundo respira, o conteúdo surge em sequência curta */
.hero__kv { animation: respira 26s ease-in-out infinite alternate; transform-origin: 50% 30%; }
.hero__txt > *, .ficha { animation: surge 1.3s cubic-bezier(.22, .61, .36, 1) both; }
.hero__logo { animation-duration: 1.8s; animation-delay: .1s; }
.hero__ante { animation-delay: .45s; } .hero__tema { animation-name: aparece; animation-duration: .5s; animation-delay: .5s; } .hero__sub { animation-delay: .72s; }
.quando { animation-delay: .86s; } .hero__chamada { animation-delay: 1s; } .vagas { animation-delay: 1.12s; }
.ficha { animation-delay: .5s; }

/* fagulhas que sobem pelo topo, como as do KV */
.fagulhas { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fagulhas i { position: absolute; bottom: -12px; left: var(--x); width: var(--t); height: var(--t); border-radius: 50%; background: #FF6A4D; box-shadow: 0 0 8px 2px rgba(255, 70, 50, .65); opacity: 0; animation: fagulha var(--d) linear var(--a) infinite; }

/* exclusivo para médicos: a frase se desenha em contorno no centro da faixa e dois fios de luz
   correm pelas bordas, um em cada sentido */
@keyframes fioVolta { from { transform: translateX(560%); } to { transform: translateX(-110%); } }
.exclusivo.is-traco { position: relative; overflow: hidden; text-indent: 0; letter-spacing: 0; padding: 22px 16px 20px; }
.exclusivo.is-traco svg { display: block; margin: 0 auto; width: min(560px, 100%); height: auto; overflow: visible; }
.exclusivo.is-traco text { font-family: var(--sem); font-weight: 500; font-size: 25px; fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: .65; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; }
.exclusivo.is-traco.ver text { animation: traca 2.6s cubic-bezier(.4, 0, .3, 1) .15s both, encheTitulo 1.1s ease 2.2s both; }
.exclusivo.is-traco::before, .exclusivo.is-traco::after { content: ""; position: absolute; left: 0; width: 20%; height: 1.5px; pointer-events: none; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 9px rgba(255, 220, 228, .9)); }
.exclusivo.is-traco::before { top: 0; background: linear-gradient(90deg, transparent 0%, rgba(255, 190, 204, .5) 45%, #fff 96%, transparent 100%); animation: fioFaixa 9s linear infinite; }
.exclusivo.is-traco::after { bottom: 0; background: linear-gradient(270deg, transparent 0%, rgba(255, 190, 204, .5) 45%, #fff 96%, transparent 100%); animation: fioVolta 9s linear -4.5s infinite; }

/* speakers em neon.
   Chegada: o contorno de cada losango se desenha em luz, pisca como neon ligando, e só então
   a moldura e a foto surgem. Depois, uma luz só percorre a fileira em revezamento (js/app.js). */
@keyframes desenha { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes pisca { 0% { opacity: 1; } 12% { opacity: .15; } 24% { opacity: 1; } 40% { opacity: .35; } 55% { opacity: 1; } 70% { opacity: .6; } 100% { opacity: 1; } }
@keyframes pulsa { from { opacity: .55; } to { opacity: 1; } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes reflexo { from { background-position: 130% 0; } to { background-position: -40% 0; } }
.sp li { --t: calc(var(--i, 0) * .35s); transition: opacity .5s ease, transform .6s cubic-bezier(.22, .61, .36, 1); }
.js .speakers .wrap .sp__foto::before, .js .speakers .wrap .sp__foto img, .js .speakers .wrap .sp__foto > span,
.js .speakers .wrap .sp__nome, .js .speakers .wrap .sp__titulo, .js .speakers .wrap .sp__chao { opacity: 0; }
.js .speakers .wrap.ver .sp__foto::before, .js .speakers .wrap.ver .sp__foto img, .js .speakers .wrap.ver .sp__foto > span,
.js .speakers .wrap.ver .sp__nome, .js .speakers .wrap.ver .sp__titulo, .js .speakers .wrap.ver .sp__chao { animation: aparece 1.1s ease both; animation-delay: calc(var(--t) + 1.05s); }

.sp__neon { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sp__neon polygon { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.sp__base { stroke: rgba(255, 86, 116, .8); stroke-width: .4; filter: drop-shadow(0 0 4px rgba(255, 30, 70, .85)) drop-shadow(0 0 13px rgba(255, 20, 60, .5)); transition: stroke .4s, stroke-width .4s; }
.js .speakers .wrap .sp__base { stroke-dasharray: 100; stroke-dashoffset: 100; }
.js .speakers .wrap.ver .sp__base { animation: desenha 1.15s cubic-bezier(.5, 0, .2, 1) var(--t) both, pisca .55s linear calc(var(--t) + 1.1s), pulsa 4s ease-in-out calc(var(--t) + 1.7s) infinite alternate; }
/* a ponta é um fio fino e claro; atrás dela, três trechos cada vez mais longos, largos e apagados formam o rastro */
.sp__luz, .sp__rastro { opacity: 0; }
.sp__luz { stroke: #FFF4F6; stroke-width: .55; stroke-dasharray: 5 95; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px #FF2E5B); }
.sp__rastro { stroke: #FF4D72; }
.sp__rastro--a { stroke-width: .9; stroke-dasharray: 14 86; filter: blur(.8px) drop-shadow(0 0 5px #FF1E50); }
.sp__rastro--b { stroke-width: 1.5; stroke-dasharray: 28 72; filter: blur(2.2px) drop-shadow(0 0 9px #FF1447); }
.sp__rastro--c { stroke-width: 2.6; stroke-dasharray: 46 54; filter: blur(4.5px); }
/* reflexo no chão, logo abaixo de cada losango */
.sp__chao { fill: #FF2A55; filter: blur(5px); }
.js .speakers .wrap.ver .sp__chao { animation-name: apareceChao; }
@keyframes apareceChao { from { opacity: 0; } to { opacity: .5; } }

/* foco: o card apontado acende e ganha um reflexo atravessando a foto; os outros recuam */
.sp__foto img { transition: transform .9s cubic-bezier(.22, .61, .36, 1), filter .5s; }
.sp__brilho { position: absolute; inset: 0; clip-path: polygon(57% 6%, 93% 43.5%, 60% 89%, 7% 40%); pointer-events: none; opacity: 0;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .42) 50%, transparent 62%) 130% 0 / 260% 100% no-repeat; }
@media (hover: hover) {
  .sp:hover li:not(:hover) { opacity: .42; }
  .sp li:hover { transform: translateY(-6px); }
  .sp li:hover .sp__foto img { transform: scale(1.05); filter: brightness(1.06); }
  .sp li:hover .sp__base { stroke: #FFC2CE; stroke-width: .7; }
  .sp li:hover .sp__brilho { opacity: 1; animation: reflexo 1.1s cubic-bezier(.3, .1, .3, 1) both; }
}
.sp li:active .sp__base { stroke: #FFC2CE; stroke-width: .7; }

/* o mesmo fio de luz contorna a ficha de inscrição e o botão, onde o olhar precisa chegar */
@property --giro { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes gira { to { --giro: 360deg; } }
.ficha::before, .btn--cheio::before { content: ""; position: absolute; inset: -2px; border-radius: 6px; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--giro), transparent 0 74%, rgba(255, 46, 91, .0) 76%, #FF2E5B 90%, #FFE3E8 97%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 5px rgba(255, 30, 70, .9)); animation: gira 9s linear infinite; }
.btn--cheio { position: relative; }
.btn--cheio::before { inset: -3px; border-radius: 6px; padding: 1.5px; animation-duration: 5.5s;
  background: conic-gradient(from var(--giro), transparent 0 70%, #FF8FA6 88%, #fff 97%, transparent 100%); }
.is-fechado .ficha::before, .is-fechado .btn--cheio::before, .btn--cheio[disabled]::before { display: none; }

/* fundo das speakers com profundidade: luzes que derivam e três planos de partículas */
@keyframes deriva { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(9vw, 5vw, 0) scale(1.18); } }
@keyframes paira { 0% { opacity: 0; transform: translate3d(0, 30px, 0); } 14%, 84% { opacity: var(--o); } 100% { opacity: 0; transform: translate3d(var(--dx), -150px, 0); } }
.speakers { position: relative; overflow: hidden; }
.speakers .wrap { position: relative; z-index: 1; }
.prof { position: absolute; inset: 0; pointer-events: none; }
.prof__luz { position: absolute; width: 58vw; height: 58vw; border-radius: 50%; background: radial-gradient(circle, rgba(214, 24, 66, .36) 0%, rgba(214, 24, 66, .1) 38%, transparent 64%); animation: deriva 24s ease-in-out infinite alternate; }
.prof__luz--a { top: -24vw; left: -14vw; }
.prof__luz--b { bottom: -30vw; right: -16vw; animation-duration: 31s; animation-direction: alternate-reverse; }
.prof__c { position: absolute; inset: -5%; transform: translate3d(calc(var(--px, 0) * var(--f)), calc(var(--py, 0) * var(--f)), 0); transition: transform .7s cubic-bezier(.22, .61, .36, 1); }
.prof__c--1 { --f: -14px; } .prof__c--2 { --f: -38px; } .prof__c--3 { --f: -90px; }
.prof__c i { position: absolute; left: var(--x); top: var(--y); width: var(--t); height: var(--t); border-radius: 50%; background: #FF5A78; opacity: 0; animation: paira var(--d) linear var(--a) infinite; }
.prof__c--1 i { background: #FFB3C0; }
.prof__c--2 i { filter: blur(1.5px); box-shadow: 0 0 8px rgba(255, 60, 95, .7); }
.prof__c--3 i { filter: blur(9px); background: #E81E4E; }

/* fotos do mosaico: aproximação lenta no hover */
.mosaico { overflow: hidden; }
.mosaico img { transition: transform 1.4s cubic-bezier(.22, .61, .36, 1), filter .6s; }
@media (hover: hover) { .mosaico img:hover { transform: scale(1.045); filter: brightness(1.08); } }

/* Quem pede menos movimento no sistema continua vendo os efeitos de luz (neon, partículas,
   faixa que corre): são pequenos e lentos. Sai só o que desloca a tela inteira. */
@media (prefers-reduced-motion: reduce) {
  .hero__kv { animation: none !important; }
  .hero__txt > *, .ficha { animation-name: aparece !important; }
  .prof__c { transform: none; }
  .mosaico img, .sp__foto img { transition: none; }
}
}

/* entrada suave das seções (o JS marca .ver; sem JS, nada fica escondido) */
.js .rev { opacity: 0; filter: blur(8px); transform: translateY(14px); transition: opacity 1.1s cubic-bezier(.22, .61, .36, 1), filter 1.1s cubic-bezier(.22, .61, .36, 1), transform 1.1s cubic-bezier(.22, .61, .36, 1); }
.js .rev.ver { opacity: 1; filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .rev { filter: none; transform: none; transition: opacity .9s ease; } }

@media (max-width: 980px) {
  .hero__grade { grid-template-columns: 1fr; gap: 48px; padding-block: 48px 64px; }
  .tema__grade { grid-template-columns: 1fr; gap: 48px; }
  .banner__grade { grid-template-columns: 1fr; gap: 34px; min-height: 0; padding-block: 60px; }
  .banner__logo { width: 220px; }
  .banner__txt { padding-left: 0; }
  .banner__txt::before { display: none; }
  .hero__kv::after { background: linear-gradient(180deg, rgba(40, 2, 7, .5) 0%, rgba(40, 2, 7, .78) 55%, var(--vinho-fundo) 100%); }
  .tema, .speakers, .programa { padding-block: 76px; }
  .galeria { padding-top: 76px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap, .wrap--estreita { width: calc(100% - 32px); }
  .faixa { gap: 12px; padding: 9px 10px 8px; }
  .faixa__rot, .faixa__cta { display: none; }
  .faixa__nums { gap: 6px; }
  .faixa__n { min-width: 68px; padding: 8px 6px 6px; }
  .faixa__n b { font-size: 32px; }
  .faixa__n i { font-size: 10px; }
  .cap__txt { padding-block: 44px 42px; gap: 8px; }
  .cap__n { font-size: 36px; }
  .cap__n.is-tracado { font-size: 68px; }
  .cap p { font-size: 16px; }
  .mosaico { grid-auto-rows: 33vw; }
  .hero__logo { width: 210px; }
  .ficha__tarja { left: -10px; right: -10px; }
  .faixa__fim { font-size: 11.5px; letter-spacing: .18em; text-indent: 0; }
  .faixa__fim em { display: block; margin: 4px 0 0; font-size: 18px; }
  .hero__grade { padding-block: 40px 56px; }
  .hero__ante { margin-top: 34px; font-size: 18px; }
  .quando { gap: 26px 36px; }
  .quando__hora { font-size: 21px; }
  .local .local__rot { font-size: 30px; }
  .local strong { font-size: 24px; }
  .local img { width: 160px; }
  .exclusivo { --trk: .4em; font-size: 13px; padding: 16px 12px 14px; }
  .ficha { padding: 26px 20px 24px; }
  .sp { --col: 2; gap: 34px 18px; }
  .sp li { flex-basis: calc((100% - 18px) / 2); }
  .sp__nome { font-size: 13px; padding: 8px 2px 7px; letter-spacing: -.01em; }
  .sp__titulo { font-size: 13.5px; }
  .sp__titulo strong { font-size: 15px; }
  .eixos li { grid-template-columns: 56px 1fr; font-size: 18px; }
  .eixos li::before { font-size: 28px; }
  .prog li { grid-template-columns: 78px 1fr; }
  .prog__hora { font-size: 21px; }
  .mosaico { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final { padding-block: 80px; }
  .rodape img { width: 280px; }
  .flutua { display: block; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 20; text-align: center; text-decoration: none; background: #fff; color: var(--carmim-escuro); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; padding: 16px 12px 14px; border-radius: 3px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .55); transition: transform .25s, opacity .25s; }
  .flutua.is-fora { transform: translateY(90px); opacity: 0; pointer-events: none; }
}
