/* CBMG 2027 — protótipo (hero)
   Cores e tipografia: Manual de Identidade Visual CBMG 2027 */

@font-face { font-family: Poppins; font-weight: 400; font-style: normal; font-display: swap; src: url(../assets/fonts/Poppins-Regular.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 500; font-style: normal; font-display: swap; src: url(../assets/fonts/Poppins-Medium.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 600; font-style: normal; font-display: swap; src: url(../assets/fonts/Poppins-SemiBold.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 600; font-style: italic; font-display: swap; src: url(../assets/fonts/Poppins-SemiBoldItalic.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 700; font-style: normal; font-display: swap; src: url(../assets/fonts/Poppins-Bold.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 700; font-style: italic; font-display: swap; src: url(../assets/fonts/Poppins-BoldItalic.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 900; font-style: normal; font-display: swap; src: url(../assets/fonts/Poppins-Black.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 900; font-style: italic; font-display: swap; src: url(../assets/fonts/Poppins-BlackItalic.ttf) format("truetype"); }

:root {
  --branco: #FFFFFF;
  --azul: #02113A;          /* Azul Institucional */
  --azul-2: #001B48;        /* Azul Secundário */
  --dourado: #B37C08;
  --roxo: #552A86;
  --magenta: #B80B4B;
  --amarelo: #FFB504;
  --turquesa: #01B4D3;
  --azul-claro: #3ECBDD;

  --text: var(--ink);
  --text-soft: rgba(var(--ink-rgb), .74);
  --line: rgba(var(--ink-rgb), .14);

  /* ---- tema (escuro é o padrão; o claro troca só estas variáveis) ---- */
  --ink: #FFFFFF; --ink-rgb: 255, 255, 255;        /* texto e linhas */
  --bg: var(--azul); --bg-rgb: 2, 17, 58;           /* fundo e véus atrás do texto */
  --accent: var(--amarelo);                         /* palavras de destaque */
  --kicker: var(--azul-claro);                      /* chamadas pequenas em caixa alta */
  --card: rgba(var(--ink-rgb), .06);
  --particles-bg: radial-gradient(120% 90% at 50% 110%, #00285e 0%, var(--azul-2) 35%, var(--azul) 70%);
  color-scheme: dark;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --header-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- tema claro (botão no topo; segue o tema do aparelho até a pessoa escolher) ---------- */
:root[data-theme="light"] {
  --ink: #02113A; --ink-rgb: 2, 17, 58;
  --bg: #F3F6FB; --bg-rgb: 243, 246, 251;
  --accent: #B37C08;                                /* dourado da marca: o amarelo some no fundo claro */
  --kicker: #0A7F97;                                /* turquesa escurecido para ter leitura */
  --text-soft: rgba(2, 17, 58, .72);
  --line: rgba(2, 17, 58, .12);
  --card: #FFFFFF;
  --particles-bg: linear-gradient(180deg, #FDFDFD 0%, #FDFDFD 42%, #F4FCFD 56%, #DDF7FA 72%, #B4EFF5 88%, #8EE8F1 100%); /* = KV claro */
  color-scheme: light;
}
.only-light { display: none !important; }
:root[data-theme="light"] .only-light { display: revert !important; }
:root[data-theme="light"] .only-dark { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
/* clicar e arrastar nas cenas do topo mexe nas partículas — sem selecionar logo e textos */
.stage, .header, .tabbar, .quick { -webkit-user-select: none; user-select: none; }
::selection { background: rgba(255, 181, 4, .35); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--amarelo); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- canvas de partículas ---------- */
#particles {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background: var(--particles-bg);
  transition: opacity .8s var(--ease-out);
}

/* páginas internas (sem WebGL): a tela oficial "fundo1" do manual, bem de leve, no fundo (só no tema escuro) */
.page-noticia #particles::after, .page-local #particles::after, .page-moldura #particles::after, .page-inst #particles::after {
  content: ""; position: absolute; inset: 0; background: url(../assets/img/tela-fundo-paginas.jpg) center / cover no-repeat;
  mix-blend-mode: screen; opacity: .5;
}
:root[data-theme="light"] #particles::after { display: none; }

.is-semlink { opacity: .62; cursor: default; }
/* ---------- destaque da Moldura #CBMG2027 nos menus: contorno no degradê da marca (cores do globo) ---------- */
.is-destaque {
  --grad: linear-gradient(90deg, #552A86, #B80B4B, #FF6A3D, #FFB504, #01B4D3);
  border: 1.5px solid transparent; border-radius: 999px;
  background: linear-gradient(rgba(var(--bg-rgb), .55), rgba(var(--bg-rgb), .55)) padding-box, var(--grad) border-box;
}
.nav-link.is-destaque { margin-left: .35rem; padding: .45rem .9rem; color: var(--ink); }
.nav-link.is-destaque:hover { background: linear-gradient(rgba(var(--ink-rgb), .08), rgba(var(--ink-rgb), .08)) padding-box, var(--grad) border-box; }
.menu__link.is-destaque { display: inline-flex; padding: .3rem 1.1rem; margin: .4rem 0; }
.quick__item.is-destaque { border-radius: 16px; background: linear-gradient(rgba(var(--bg-rgb), .9), rgba(var(--bg-rgb), .9)) padding-box, var(--grad) border-box; }
.quick .quick__item.is-destaque:hover { background: linear-gradient(rgba(var(--ink-rgb), .1), rgba(var(--ink-rgb), .1)) padding-box, var(--grad) border-box; }

/* ---------- cursor líquido (só ponteiro fino) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; z-index: 100; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, var(--amarelo), var(--magenta));
  mix-blend-mode: screen; opacity: 0; transition: opacity .3s, width .35s var(--ease-spring), height .35s var(--ease-spring), margin .35s var(--ease-spring);
}
.cursor.is-on { opacity: .9; }
.cursor.is-hover { width: 54px; height: 54px; margin: -27px 0 0 -27px; opacity: .35; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- botões ---------- */
.btn {
  --bg: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .7rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  background: var(--bg); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-spring), box-shadow .4s var(--ease-out), background-color .3s;
}
.btn span { position: relative; z-index: 1; display: inline-block; transition: transform .5s var(--ease-spring); }
.btn::after { /* preenchimento orgânico no hover */
  content: ""; position: absolute; z-index: 0; left: 50%; top: 100%; width: 140%; aspect-ratio: 1;
  border-radius: 45% 55% 50% 50%; transform: translate(-50%, 0) scale(.2); transition: transform .6s var(--ease-out), top .6s var(--ease-out);
}
.btn:hover::after { top: -20%; transform: translate(-50%, 0) scale(1) rotate(25deg); }
.btn:active { transform: scale(.95); }
.btn--primary { --bg: var(--amarelo); color: var(--azul); box-shadow: 0 8px 30px -8px rgba(255, 181, 4, .55); }
.btn--primary::after { background: #fff; }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), .55); }
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover span { color: var(--bg); }
.btn--lg { min-height: 54px; padding: 1rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.header {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem; padding: 0 var(--gutter);
  transition: transform .6s var(--ease-out), background-color .4s, backdrop-filter .4s;
}
.header.is-scrolled { background: rgba(var(--bg-rgb), .62); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-110%); }
.header__logo img { height: 46px; width: auto; }
.header__logo { transition: opacity .5s var(--ease-out), transform .7s var(--ease-spring), visibility 0s; }
.header--nologo .header__logo { opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.9); transition: opacity .35s, transform .35s, visibility 0s .35s; }
.header__nav { display: flex; gap: .1rem; margin-left: auto; }
.nav-link { position: relative; padding: .6rem .65rem; font-weight: 600; font-size: .88rem; white-space: nowrap; color: rgba(var(--ink-rgb),.82); transition: color .3s; }
.nav-link::after { content: ""; position: absolute; left: .65rem; right: .65rem; bottom: .35rem; height: 2px; border-radius: 2px; background: var(--amarelo); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; align-items: center; gap: .6rem; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; }
.chev { width: 12px; height: 12px; transition: transform .4s var(--ease-spring); }
.ext { width: 10px; height: 10px; margin-left: .35rem; opacity: .7; flex: none; }

/* submenus do topo */
.dd { position: relative; }
.dd__panel {
  position: absolute; top: calc(100% + 6px); left: -.4rem; min-width: 250px; padding: .5rem;
  display: flex; flex-direction: column; border-radius: 18px;
  background: rgba(var(--bg-rgb), .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px -20px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top left;
  transition: opacity .25s, transform .45s var(--ease-spring), visibility .25s;
}
.dd--right .dd__panel { left: auto; right: 0; transform-origin: top right; }
.dd.is-open .dd__panel { opacity: 1; visibility: visible; transform: none; }
.dd.is-open .chev { transform: rotate(180deg); }
.dd__link { display: flex; align-items: center; padding: .7rem .85rem; border-radius: 12px; font-size: .92rem; font-weight: 500; color: rgba(var(--ink-rgb),.9); transition: background-color .25s, color .25s, padding-left .35s var(--ease-out); }
.dd__link:hover { background: rgba(var(--ink-rgb), .07); color: var(--accent); padding-left: 1.1rem; }
.header__area .nav-link { font-size: .85rem; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb),.35); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .5s var(--ease-spring), top .5s var(--ease-spring); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- menu mobile (máscara orgânica) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 80% at 100% 0%, var(--roxo) 0%, var(--azul-2) 45%, var(--azul) 100%);
  clip-path: circle(0% at calc(100% - 2.5rem) 2.4rem); visibility: hidden;
}
.menu { overflow-y: auto; }
.menu__nav { display: flex; flex-direction: column; }
.menu__group { border-bottom: 1px solid var(--line); }
.menu__link { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 58px; font-weight: 800; font-size: clamp(1.4rem, 6.4vw, 2rem); text-align: left; }
.menu__link .chev { width: 18px; height: 18px; }
.menu__group.is-open .chev { transform: rotate(180deg); }
.menu__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.menu__sub > div { overflow: hidden; display: flex; flex-direction: column; }
.menu__group.is-open .menu__sub { grid-template-rows: 1fr; }
.menu__sublink { display: flex; align-items: center; min-height: 44px; padding-left: .2rem; font-size: 1.02rem; font-weight: 500; color: rgba(var(--ink-rgb),.82); }
.menu__sublink:last-child { margin-bottom: .8rem; }
.menu__cta { margin-top: 1.5rem; flex: none; }

/* ---------- hero / palco ---------- */
.hero { position: relative; z-index: 1; height: 300vh; height: 300svh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* vídeo do CBMG 2026 numa janela de navegador vertical, por cima do globo com o mapa do Brasil
   (cena "O congresso para…"). O painel tem largura máxima, então a posição é pela largura da tela */
/* centralizado por margem (o "translate" é usado pelo parallax do data-depth) */
.vid-mock {
  --w: min(26vw, calc((66vh - 26px) * 3 / 4));
  /* 3:4, no lugar onde ficava o globo; top = centro da área útil do painel */
  position: absolute; left: 72vw; top: calc(50% + (var(--header-h) + 1rem - clamp(2.5rem, 8vh, 5rem)) / 2); width: var(--w); margin: calc(-.5 * (var(--w) * 4 / 3 + 26px)) 0 0 calc(-.5 * var(--w));
  border-radius: 18px; overflow: hidden; background: #0B0F1A; pointer-events: auto;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .12);
}
/* no computador, o texto dessa cena fica centralizado na altura do vídeo */
@media (min-width: 768px) { .panel[data-panel="1"] { justify-content: center; } }
.vid-mock__bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: #1A1F2B; }
.vid-mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: #FF5F57; }
.vid-mock__bar i:nth-child(2) { background: #FEBC2E; }
.vid-mock__bar i:nth-child(3) { background: #28C840; }
.vid-mock__bar span { margin-left: 8px; flex: 1; height: 15px; border-radius: 6px; background: #2A3040; color: rgba(255, 255, 255, .6); font-size: 8.5px; line-height: 15px; text-align: center; }
.vid-mock video { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; }
/* o vídeo inteiro é o botão do som; o selo no canto mostra o estado */
.vid-mock__som { position: absolute; inset: 26px 0 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 10px; cursor: pointer; color: #fff; background: none; border: 0; }
.vid-mock__som svg, .vid-mock__som span { position: relative; }
.vid-mock__som::before { content: ""; position: absolute; left: 10px; bottom: 10px; height: 34px; width: var(--pill, 158px); border-radius: 999px; background: rgba(2, 17, 58, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: width .4s var(--ease-out); }
.vid-mock__som svg { width: 34px; height: 34px; padding: 8px; flex: none; }
.vid-mock__som span { font-size: .78rem; font-weight: 600; line-height: 34px; padding-right: 12px; white-space: nowrap; transition: opacity .3s; }
.vid-mock__som .som-on { display: none; }
.vid-mock__som[aria-pressed="true"] { --pill: 34px; }
.vid-mock__som[aria-pressed="true"] .som-on { display: block; }
.vid-mock__som[aria-pressed="true"] .som-off { display: none; }
.vid-mock__som[aria-pressed="true"] span { opacity: 0; }
.stage__shade { /* acalma as partículas atrás do texto */
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease-out);
  background: linear-gradient(90deg, rgba(var(--bg-rgb), .88) 0%, rgba(var(--bg-rgb), .5) 45%, transparent 66%);
}
.stage.shade-on .stage__shade { opacity: 1; }

/* nuvem das especialidades: à direita do texto, abaixo da linha do ECG */
.specs {
  /* o painel tem largura máxima (52rem): a nuvem se posiciona pela largura da tela, na metade direita */
  position: absolute; left: 54vw; width: calc(46vw - var(--gutter)); top: 45%; bottom: 9%; margin: 0; padding: 0; list-style: none; pointer-events: auto;
}
.specs__nuvem { position: relative; width: 100%; height: 100%; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { [data-panel="3"] .lead { max-width: min(36rem, 44vw); } }
/* celular de tela baixa: sem o grupo menor e com o texto mais junto, para o título caber inteiro */
@media (max-width: 767px) and (max-height: 700px) { [data-specs] .specs__w--d { display: none; } .specs { height: 7.4rem !important; } [data-panel="3"] { gap: .9rem; } }
@media (max-width: 767px) and (max-height: 600px) { [data-panel="3"] .lead { display: none; } }
/* o JS (efeito lupa) aumenta a escala e a cor (--perto: 0 longe … 1 com o mouse em cima) */
.specs__w {
  --perto: 0;
  --op: .66; position: absolute; left: var(--x); top: var(--y); width: max-content; max-width: 12em; text-align: center; text-wrap: balance;
  font-size: clamp(.9rem, min(1.05vw, 1.9vh), 1.15rem); font-weight: 600; line-height: 1.15; cursor: default;
  color: rgba(var(--ink-rgb), calc(var(--op) + (1 - var(--op)) * var(--perto)));
  text-shadow: 0 2px 14px rgba(var(--bg-rgb), .9); animation: specFloat var(--d, 8s) ease-in-out var(--delay, 0s) infinite alternate;
}
@media (max-width: 1199px) { .specs__w { left: var(--mx); top: var(--my); max-width: 7.2em; } }
.specs__w--p { --op: 1; max-width: 11em; font-size: clamp(1.4rem, min(2.35vw, 4.2vh), 2.6rem); font-weight: 800; line-height: 1.08; }
.specs__w--s { --op: .88; font-size: clamp(1.1rem, min(1.5vw, 2.7vh), 1.7rem); font-weight: 700; }
@keyframes specFloat { from { translate: 0 0; } to { translate: 7px -8px; } }

.panel {
  position: absolute; inset: 0; padding: calc(var(--header-h) + 1rem) var(--gutter) clamp(2.5rem, 8vh, 5rem);
  display: flex; flex-direction: column; pointer-events: none; visibility: hidden;
}
.panel.is-active { pointer-events: auto; visibility: visible; }
.panel--kv { align-items: center; justify-content: center; text-align: center; gap: clamp(1.5rem, 4vh, 2.5rem); }
.panel--text { justify-content: flex-end; max-width: min(52rem, 100%); gap: 1.4rem; }

.kv-logo { display: block; width: min(680px, 50vw); filter: drop-shadow(0 6px 30px rgba(var(--bg-rgb), .9)); }
.kv-logo img { width: 100%; }
.kv-sub { display: none; } /* só no celular: o logo vertical oficial não traz o nome do congresso */
.kv-ctas { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.scroll-hint { position: absolute; bottom: clamp(1.5rem, 5vh, 3rem); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .6rem; font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft); }
.scroll-hint__line { width: 1.5px; height: 46px; background: linear-gradient(var(--amarelo), transparent); transform-origin: top; animation: hint 2.2s var(--ease-out) infinite; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.kicker { margin: 0; font-weight: 600; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--kicker); }
/* tamanho pela largura E pela altura da tela: em telas baixas o título diminui e não passa por baixo da barra */
.display { margin: 0; font-weight: 900; font-size: clamp(2.4rem, min(7.4vw, 11.5vh), 7.8rem); line-height: .94; letter-spacing: -.025em; }
[data-panel="1"] .display { font-size: clamp(2.4rem, min(6vw, 10.5vh), 6.6rem); } /* cabe ao lado do globo */
.display--count { font-size: clamp(2.2rem, min(5.4vw, 9.5vh), 6.2rem); }
/* máscara da animação: corta só em cima/embaixo (com folga para acentos e pernas do g/p/ç), nunca nas laterais */
.line { display: block; clip-path: inset(-.26em -100vw -.32em -100vw); }
.li { display: inline-block; will-change: transform; }
.rotator { color: var(--accent); }
.rotator .wd { display: inline-block; white-space: nowrap; }
.rotator .ch { display: inline-block; will-change: transform; }
.accent { color: var(--accent); }
.count { font-variant-numeric: tabular-nums; }
.lead { margin: 0; max-width: 34rem; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.6; color: rgba(var(--ink-rgb),.88); }
/* legibilidade: textos sempre destacados das partículas */
.display, .lead, .kicker, .place, .countdown, .scroll-hint { text-shadow: 0 2px 18px rgba(var(--bg-rgb), .95), 0 0 2px rgba(var(--bg-rgb), .8); }

.panel--date { max-width: none; align-items: center; text-align: center; gap: 1.6rem; }
.date-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .8rem 1.2rem; }
.pill { background: var(--dourado); color: var(--ink); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.35rem); padding: .35rem 1.1rem; border-radius: 8px; }
.place { font-weight: 700; font-style: italic; color: #D9A23A; font-size: clamp(1.05rem, 1.7vw, 1.45rem); }
.countdown { display: flex; gap: clamp(.5rem, 1.5vw, 1rem); }
.countdown__item { min-width: clamp(4.2rem, 8vw, 6.2rem); padding: .8rem .4rem .7rem; border-radius: 16px; background: rgba(var(--ink-rgb),.06); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; }
.countdown__num { font-weight: 900; font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__lbl { margin-top: .35rem; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }


/* ---------- blocos da Home ---------- */
.sec { position: relative; z-index: 1; padding: clamp(3rem, 8vh, 5.5rem) var(--gutter); }
.sec__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.sec__head .kicker { margin-bottom: 1rem; }
.sec__title { margin: 0; font-weight: 900; font-size: clamp(2.3rem, min(6vw, 10vh), 5.6rem); line-height: .96; letter-spacing: -.025em; text-shadow: 0 2px 18px rgba(var(--bg-rgb),.9); }
.sec__title--xl { font-size: clamp(2.6rem, min(8vw, 13vh), 7.4rem); }

/* números */
.stats { list-style: none; margin: 0 0 clamp(2rem, 5vh, 3rem); padding: 0; display: flex; flex-wrap: wrap; gap: 1rem clamp(2rem, 6vw, 5rem); }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-weight: 900; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stats li > span { margin-top: .35rem; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); }

/* mosaico de fotos (bento) */
/* altura acompanha a largura (proporção fixa): em telas super wide as fotos não achatam nem cortam */
/* uma grande + duas empilhadas, todas em 3:2 (a proporção das fotos): nada corta em nenhuma largura de tela */
.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 2.25 / 1; gap: clamp(.6rem, 1.2vw, 1rem); }
.mosaic__item { position: relative; margin: 0; overflow: hidden; border-radius: clamp(14px, 1.6vw, 24px); background: var(--azul-2); }
.mosaic__item--big { grid-row: span 2; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; /* box em 3:2 = foto inteira; sem parallax para nunca abrir faixa vazia */ will-change: transform; transition: filter .6s var(--ease-out); }
.mosaic__item::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(var(--bg-rgb),.75)); }
.mosaic__item figcaption { position: absolute; z-index: 1; left: 1.1rem; right: 1.1rem; bottom: 1rem; font-size: .85rem; font-weight: 600; color: rgba(var(--ink-rgb),.9); }
.mosaic__item:hover img { filter: saturate(1.15) brightness(1.05); }

/* palestrantes: box com a foto (alinhada pelo topo: o rosto nunca é cortado).
   Com o recorte (fundo removido), o box fica mais baixo e a pessoa "sai" por cima dele. */
.speakers { margin: 0 calc(var(--gutter) * -1); }
.speakers__row { overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; }
.speakers__row.is-drag { cursor: grabbing; }
.speakers__track { display: flex; width: max-content; will-change: transform; }
/* a distância entre os cards é margem (não gap): a emenda do loop fica exata */
.speaker { position: relative; flex: none; width: clamp(230px, 21vw, 380px); margin: 0 clamp(.8rem, 1.6vw, 1.4rem) 0 0; }
.speaker__photo { position: relative; aspect-ratio: 4 / 5; transform-style: preserve-3d; transition: transform .6s var(--ease-out); }
.speaker__box { position: absolute; inset: 0; overflow: hidden; border-radius: clamp(14px, 1.6vw, 22px); background: var(--azul-2); transition: box-shadow .6s var(--ease-out); }
.speaker__box img, .speaker__photo > img { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: saturate(.85); transition: transform .9s var(--ease-out), filter .6s var(--ease-out); }
.speaker__box::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(var(--bg-rgb),0) 45%, rgba(var(--bg-rgb),.7) 100%); }
.speaker:hover .speaker__box { box-shadow: 0 30px 60px -25px rgba(1,180,211,.45); }
.speaker:hover .speaker__box img { filter: saturate(1.05); }
/* modo recorte */
.speaker--pop .speaker__box { top: 24%; } /* mesmo box para todos; cabeça e ombros passam por cima */
.speaker--pop .speaker__box img { height: calc(100% / .76); } /* mesma foto e enquadramento do recorte: a pessoa encaixa exatamente */
.speaker__cut { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; pointer-events: none; opacity: 0; transition: transform .8s var(--ease-spring), clip-path .8s var(--ease-spring), opacity .6s; }
.speaker--pop .speaker__box img { transition: transform .8s var(--ease-spring), filter .6s var(--ease-out); } /* mesma curva do recorte */
/* recorte: cantos de baixo arredondados como o box; cresce a partir da base (a base fica presa ao box) */
.speaker--pop .speaker__cut { opacity: 1; transform-origin: 50% 100%; clip-path: inset(-50% 0 0 0 round 0 0 clamp(14px, 1.6vw, 22px) clamp(14px, 1.6vw, 22px)); } /* mesma largura e mesmos cantos do box: não sobra faixa da foto de baixo na borda */
.speaker--pop .speaker__box img { transform-origin: 50% 100%; }
/* hover: a pessoa sobe e sai mais do box; a foto do box faz exatamente o mesmo movimento */
.speaker--pop:hover .speaker__cut { transform: scale(1.04); clip-path: inset(-50% 2% 0 2% round 0 0 clamp(14px, 1.6vw, 22px) clamp(14px, 1.6vw, 22px)); } /* cresce 4% e corta 2% de cada lado: continua na largura do box */
.speaker__box img { transition: transform .9s var(--ease-out), filter .6s var(--ease-out); }
.speaker--pop:hover .speaker__box img { filter: saturate(1.05); transform: scale(1.04); } /* mesmo movimento do recorte: foto e pessoa andam juntas */
.speaker h3 { margin: 1rem 0 .2rem; font-weight: 700; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.25; }
.speaker p { margin: 0; font-size: .86rem; color: var(--text-soft); }

/* diretoria AMB: foto inteira (sem recorte nas laterais), também no celular */
.board { position: relative; margin: 0; overflow: hidden; border-radius: clamp(14px, 1.6vw, 24px); background: var(--azul-2); }
.board img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out); }
.board::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(var(--bg-rgb),.7)); }
.board figcaption { position: absolute; z-index: 1; left: 1.2rem; bottom: 1rem; font-size: .85rem; font-weight: 600; color: rgba(var(--ink-rgb),.92); }
.board:hover img { transform: scale(1.02); }
.board__btn { position: absolute; z-index: 2; left: 50%; bottom: clamp(.8rem, 2.5vw, 1.6rem); translate: -50% 0; white-space: nowrap; }
@media (max-width: 700px) { .board figcaption { display: none; } .board__btn { font-size: .8rem; padding: .7rem 1rem; } }
.sec__more { margin-top: clamp(2rem, 5vh, 3rem); }


.sec__actions { margin-top: clamp(1.8rem, 4vh, 2.6rem); }
.mosaic__item { cursor: zoom-in; }

/* ---------- galeria "Ver mais fotos" ---------- */
.gallery {
  position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 var(--gutter) 4rem; /* sem respiro no topo: a faixa do título cola no topo e nada aparece por cima dela */
  background: radial-gradient(120% 80% at 100% 0%, rgba(85,42,134,.35), transparent 55%), rgba(var(--bg-rgb), .97);
  clip-path: circle(0% at 50% 50%); visibility: hidden;
}
.gallery__top { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0 calc(var(--gutter) * -1) 1rem; padding: clamp(1.2rem, 4vh, 2.5rem) var(--gutter) 1.2rem; background: var(--bg); box-shadow: 0 14px 24px -6px var(--bg); }
.gallery__title { margin: .4rem 0 0; font-weight: 900; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1; }
.gallery__close, .lightbox__close { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb),.35); transition: transform .5s var(--ease-spring), background-color .3s; }
.gallery__close:hover, .lightbox__close:hover { background: var(--amarelo); transform: rotate(90deg); }
.gallery__close span, .lightbox__close span { position: absolute; left: 15px; right: 15px; top: 25px; height: 2px; border-radius: 2px; background: var(--ink); }
.gallery__close span:first-child, .lightbox__close span:first-child { transform: rotate(45deg); }
.gallery__close span:last-child, .lightbox__close span:last-child { transform: rotate(-45deg); }
.gallery__close:hover span, .lightbox__close:hover span { background: var(--bg); }
/* fotos inteiras, na proporção original (sem cortar ninguém), em colunas */
.gallery__grid { columns: 4 240px; column-gap: clamp(.6rem, 1.2vw, 1rem); }
.gallery__item { display: block; width: 100%; margin: 0 0 clamp(.6rem, 1.2vw, 1rem); padding: 0; break-inside: avoid; border-radius: 14px; overflow: hidden; position: relative; cursor: zoom-in; background: var(--azul-2); }
.gallery__item img { width: 100%; height: auto; transition: transform .8s var(--ease-out), filter .5s; }
.gallery__item span { position: absolute; left: .8rem; bottom: .6rem; z-index: 1; font-size: .74rem; font-weight: 600; letter-spacing: .06em; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .45s var(--ease-out); text-shadow: 0 1px 10px rgba(var(--bg-rgb),.95); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(var(--bg-rgb),.75)); opacity: 0; transition: opacity .4s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover span, .gallery__item:hover::after, .gallery__item:focus-visible span { opacity: 1; transform: none; }

/* foto ampliada: sempre inteira (contain) */
.lightbox { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(1, 8, 30, .96); visibility: hidden; opacity: 0; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; max-width: min(92vw, 1500px); }
.lightbox__fig img { max-width: 100%; max-height: 80vh; max-height: 80svh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.lightbox__fig figcaption { font-size: .85rem; font-weight: 600; color: var(--text-soft); }
.lightbox__close { position: absolute; top: clamp(1rem, 3vh, 1.6rem); right: var(--gutter); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; font-size: 1.4rem; box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb),.35); transition: background-color .3s, color .3s, transform .5s var(--ease-spring); }
.lightbox__nav:hover { background: var(--amarelo); color: var(--azul); transform: translateY(-50%) scale(1.08); }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }

/* ---------- rodapé: apoio, realização, contatos ---------- */
.footer { position: relative; z-index: 1; padding: 0 var(--gutter) calc(1.5rem + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent 0%, rgba(var(--bg-rgb),.55) 18%, rgba(var(--bg-rgb),.85) 100%); border-top: 1px solid var(--line); }
.footer__heading { margin: 0 0 1.2rem; text-align: center; font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: -.01em; }
/* faixa das logos: sempre branca, nos dois temas (as logos vêm prontas para fundo branco) */
.footer__logos {
  --ink: #02113A; --ink-rgb: 2, 17, 58; --kicker: #0A7F97; --line: rgba(2, 17, 58, .12);
  margin: 0 calc(-1 * var(--gutter)); padding: clamp(3.5rem, 8vh, 5rem) var(--gutter) clamp(1rem, 3vh, 2rem);
  background: #fff; color: var(--ink);
}
.logo-group { margin-bottom: clamp(2rem, 5vh, 3rem); }
.logo-sub { margin: 1.4rem 0 .8rem; text-align: center; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--kicker); }
/* a imagem da logo como veio (muitas já trazem o próprio box), sem moldura nossa */
.logo-card { flex: none; width: clamp(124px, 11vw, 168px); aspect-ratio: 16 / 9; display: grid; place-items: center; transition: transform .5s var(--ease-spring); }
.logo-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-card:hover { transform: translateY(-4px); }
.logo-row { overflow: hidden; padding: .4rem 0 .8rem; }
.logo-track { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(.6rem, 1vw, .9rem); width: max-content; min-width: 100%; }
/* não coube na largura: vira esteira contínua, com as pontas se desfazendo; para no hover */
.logo-row.is-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
/* a esteira anda pelo JS (comum.js): corre sozinha e dá para arrastar para os lados */
.is-marquee { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.is-marquee.is-drag { cursor: grabbing; }
.logo-row.is-marquee .logo-track { justify-content: flex-start; will-change: transform; }
.is-marquee img { pointer-events: none; }

/* citação sobre a plateia (Home): a parede de trás da foto se desfaz no fundo e a frase fica por cima dela */
/* a foto é o fundo do bloco inteiro; a frase fica por cima, alinhada à direita (o palestrante fica à esquerda) */
.sec--citacao { display: flex; align-items: center; min-height: min(56vw, 92vh); overflow: hidden; }
.citacao__foto { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* mais de fundo: colorida, só com opacidade baixa sobre o fundo do site;
   enquadrada pelo alto para não cortar a cabeça do palestrante */
/* fundo liso do lado do palestrante (esquerda) que some para a direita: as partículas só aparecem atrás da frase */
.citacao__foto { background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 42%, rgba(var(--bg-rgb), 0) 72%); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 80%, transparent 100%); }
.citacao__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; opacity: .38; }
/* véu do lado direito para a frase ter leitura sobre a plateia */
.citacao__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 28%, rgba(var(--bg-rgb), .55) 52%, rgba(var(--bg-rgb), .82) 78%); }
.citacao { position: relative; z-index: 2; width: min(36rem, 52%); margin: 0 0 0 auto; text-align: right; }
.citacao__texto { margin: 0; }
.citacao__aspas { display: block; height: .55em; font-size: clamp(5rem, 10vw, 9rem); font-weight: 900; line-height: 1; color: var(--accent); }
/* pesos diferentes: frase em peso leve, palavras-chave (strong) em peso pesado */
.citacao__texto strong { font-weight: 900; }
.citacao__texto p { margin: 0; font-size: clamp(1.45rem, 2.6vw, 2.5rem); font-weight: 400; line-height: 1.18; letter-spacing: -.015em; text-wrap: balance; text-shadow: 0 2px 24px rgba(var(--bg-rgb), .9); }
.citacao__autor { margin-top: 1.4rem; font-size: 1.05rem; font-weight: 700; text-shadow: 0 2px 14px rgba(var(--bg-rgb), .9); }
.citacao__autor small { display: block; margin-top: .2rem; font-size: .9rem; font-weight: 500; color: var(--text-soft); }
@media (max-width: 767px) {
  .sec--citacao { min-height: 88svh; align-items: flex-end; padding-bottom: 3rem; }
  .citacao__foto img { object-position: 22% 12%; }
  .citacao__foto::after { background: linear-gradient(0deg, rgba(var(--bg-rgb), .9) 0%, rgba(var(--bg-rgb), .55) 45%, transparent 75%); }
  .citacao { width: 100%; }
}

/* cena "2027": "O #CBMG2027 está chegando" logo acima da data */
.chegando { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.9rem); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--ink-rgb), .92); text-shadow: 0 2px 18px rgba(var(--bg-rgb), .95); }
.chegando strong { font-weight: 900; color: var(--accent); letter-spacing: .08em; }

/* palestrantes: linha extra (função no CBMG), vaga de foto e linha de botões */
.speaker p.speaker__tag { margin-top: .3rem; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--kicker); }
.speaker__box--vazio { top: 24%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; background: radial-gradient(120% 90% at 50% 20%, rgba(var(--ink-rgb), .14), rgba(var(--ink-rgb), .04)); box-shadow: inset 0 0 0 1px var(--line); }
.speaker__box--vazio::after { display: none; }
.speaker__box--vazio span { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 900; letter-spacing: -.02em; color: rgba(var(--ink-rgb), .55); }
.speaker__box--vazio small { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.sec__links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(2rem, 5vh, 3rem); }

/* depoimentos (prova social): cards curtos em carrossel */
/* esteira (js/comum.js): a fileira esconde o que passa e o track anda sozinho; dá para arrastar */
.depo__row { overflow: hidden; margin: 0 calc(-1 * var(--gutter)); padding: .5rem 0 1rem; cursor: grab; touch-action: pan-y; }
.depo__row.is-drag { cursor: grabbing; }
.depo__row.is-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.depo__track { display: flex; gap: 16px; width: max-content; padding: 0 16px 0 0; } /* o respiro no fim = 1 vão: a volta da esteira emenda sem pulo */
.depo__row.is-marquee .depo__track { will-change: transform; }
.depo-card { position: relative; flex: none; width: clamp(280px, 26vw, 370px); margin: 0; user-select: none; display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem 1.4rem 1.3rem; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease-spring); }
:root[data-theme="light"] .depo-card { box-shadow: inset 0 0 0 1px var(--line), 0 16px 40px -26px rgba(2, 17, 58, .4); }
.depo-card:hover { transform: translateY(-5px); }
.depo-card__aspas { display: block; height: 1.7rem; font-size: 4.2rem; font-weight: 900; line-height: .9; color: var(--accent); }
.depo-card blockquote { flex: 1; margin: 0; }
.depo-card blockquote p { margin: 0; font-size: 1.04rem; font-weight: 500; line-height: 1.55; }
.depo-card figcaption { display: flex; align-items: center; gap: .85rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.depo-card img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.depo-card strong { display: block; font-size: .95rem; font-weight: 700; line-height: 1.25; }
.depo-card small { display: block; margin-top: .1rem; font-size: .8rem; line-height: 1.3; color: var(--text-soft); }
@media (max-width: 767px) { .depo-card { width: 82vw; } }

/* parceiros do CBMG 2026: painel claro com uma fileira (esteira arrastável) por categoria */
.parc__head { max-width: 40rem; margin-bottom: clamp(1.8rem, 4vh, 2.8rem); }
.parc__head .kicker { margin-bottom: .9rem; }
.parc__head .lead { margin: 1rem 0 1.6rem; }
.parc__painel { --ink: #02113A; --ink-rgb: 2, 17, 58; --kicker: #0A7F97; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .6); }
.parc__tier + .parc__tier { margin-top: clamp(1rem, 2.4vh, 1.6rem); padding-top: clamp(1rem, 2.4vh, 1.6rem); border-top: 1px solid rgba(2, 17, 58, .1); }
.parc__nome { margin: 0 0 .6rem; text-align: center; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--kicker); }
.parc__row { overflow: hidden; padding: .3rem 0 .5rem; }
.parc__track { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(.8rem, 1.6vw, 1.6rem); width: max-content; min-width: 100%; }
.parc__row.is-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.parc__row.is-marquee .parc__track { justify-content: flex-start; will-change: transform; }
.parc__tier--1 .logo-card, .parc__tier--2 .logo-card, .parc__tier--3 .logo-card { width: clamp(150px, 15vw, 230px); }
.parc__track .logo-card { opacity: .92; transition: opacity .3s, transform .5s var(--ease-spring); }
.parc__track .logo-card:hover { opacity: 1; }
/* Home: título à esquerda, mural de logos (trocam com fade) à direita */
.sec--parc { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .sec--parc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } .sec--parc .parc__head { margin-bottom: 0; } }
.parc__mural { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 1.4vw, 1rem); }
.parc__vaga { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px rgba(2, 17, 58, .08), 0 24px 50px -30px rgba(0, 0, 0, .6); overflow: hidden; }
.parc__vaga img { position: absolute; inset: 0; margin: auto; width: 74%; height: 62%; object-fit: contain; }
@media (max-width: 599px) { .parc__mural { grid-template-columns: repeat(2, 1fr); } }

/* notícias (Home): título à esquerda, cards rolando para o lado (como o "Fique por dentro" do Nubank) */
.news { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 2.25fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.news__head .sec__title { font-size: clamp(2.1rem, 3.3vw, 3.4rem); }
.news__head .kicker { margin-bottom: 1rem; }
.news__nav { display: flex; gap: .6rem; margin-top: 1.6rem; }
.news__arrow { width: 52px; height: 52px; border-radius: 50%; font-size: 1.3rem; box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), .4); transition: background-color .3s, color .3s, transform .4s var(--ease-spring); }
.news__arrow:hover { background: var(--amarelo); color: var(--azul); box-shadow: none; }
.news__arrow:active { transform: scale(.92); }
.news__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .5rem .2rem 1.2rem; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
.news__track::-webkit-scrollbar { display: none; }
.news-card { flex: none; width: clamp(260px, 24vw, 340px); scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease-spring), box-shadow .4s; }
:root[data-theme="light"] .news-card { box-shadow: inset 0 0 0 1px var(--line), 0 16px 40px -26px rgba(2, 17, 58, .4); }
.news-card:hover { transform: translateY(-6px); }
.news-card__foto { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.news-card__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.news-card:hover .news-card__foto img { transform: scale(1.05); }
.news-card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.news-card__body time { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--kicker); }
.news-card__body h3 { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.news-card__body p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--text-soft); }
.news-card__mais { margin-top: auto; padding-top: .4rem; font-weight: 700; font-size: .92rem; color: var(--accent); }
@media (max-width: 767px) {
  .news { grid-template-columns: 1fr; }
  .news-card { width: 80vw; }
}

/* fotos dos corredores e auditórios cheios (Home, "Como foi o CBMG 2026"): faixa de ponta a ponta */
.fotos-strip { margin: clamp(1.2rem, 3vh, 2rem) calc(-1 * var(--gutter)) 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.fotos-strip__track { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.6rem, 1vw, 1rem); width: max-content; will-change: transform; }
.fotos-strip__track li { flex: none; width: clamp(240px, 26vw, 420px); aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; background: rgba(var(--ink-rgb), .06); }
.fotos-strip__track img { width: 100%; height: 100%; object-fit: cover; }
.logo-partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem clamp(2rem, 5vw, 4.5rem); padding: clamp(1.5rem, 4vh, 2.5rem) 0; border-top: 1px solid var(--line); }
.logo-partner .logo-sub { margin-top: 0; }
.logo-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .7rem; justify-content: center; }
/* grupo sozinho na linha (Realização e Gerenciamento): título e logo maiores, no topo do rodapé */
.logo-partners:first-child { border-top: 0; }
.logo-partners--destaque .logo-sub { margin-bottom: 1.2rem; font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 800; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.logo-partners--destaque .logo-card { width: clamp(220px, 22vw, 300px); aspect-ratio: auto; }
.footer__contacts { padding: clamp(1.5rem, 4vh, 2.5rem) 0; border-top: 1px solid var(--line); text-align: center; }
.footer__contacts .footer__heading { font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 1rem; }
.footer__contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem clamp(2rem, 8vw, 7rem); }
.footer__contact-row p { margin: 0; font-size: .95rem; color: var(--text-soft); }
.footer__contact-row strong { color: var(--ink); font-weight: 700; margin-right: .3rem; }
.footer__contact-row a { color: var(--ink); transition: color .3s; }
.footer__contact-row a:hover { color: var(--accent); }
.footer__contact-row .sep { margin: 0 .35rem; opacity: .5; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.4rem 84px 0 0; border-top: 1px solid var(--line); font-size: .76rem; color: var(--text-soft); } /* 84px: espaço do botão flutuante */
.footer__brand { flex: none; }
.footer__brand img { width: 92px; }
.footer__social { display: flex; gap: .35rem; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: rgba(var(--ink-rgb),.75); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, color .3s, transform .5s var(--ease-spring); }
.footer__social a:hover { background: var(--amarelo); color: var(--azul); transform: translateY(-3px) rotate(-6deg); }
.footer__social svg { width: 16px; height: 16px; }
/* selos: recortes do site 2026 (fundo grafite próprio), então ficam numa faixa grafite nos dois temas */
.footer__selos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; margin: 1.4rem calc(-1 * var(--gutter)) 0; padding: .9rem calc(var(--gutter) + 84px) .9rem var(--gutter); background: #333B45; } /* 84px: botão flutuante */
.footer__selo { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.footer__selo p { margin: 0; font-size: .72rem; font-weight: 600; color: rgba(255, 255, 255, .78); }
.footer__selo-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.footer__selo img { width: auto; height: 30px; }
.footer__selo-row img { height: 36px; }
.footer__legal { flex: 1; min-width: 260px; font-size: .74rem; line-height: 1.6; color: var(--text-soft); } .footer__legal p { margin: 0; }

/* ---------- menu rápido ---------- */
.quick { position: fixed; z-index: 60; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); }
.quick__fab {
  position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amarelo); color: var(--azul); box-shadow: 0 14px 40px -10px rgba(255, 181, 4, .6), 0 0 0 0 rgba(255,181,4,.45);
  animation: fabPulse 3.2s var(--ease-out) infinite; transition: transform .5s var(--ease-spring);
}
.quick__fab:hover { transform: scale(1.08); }
.quick__fab:active { transform: scale(.92); }
@keyframes fabPulse { 0%, 70% { box-shadow: 0 14px 40px -10px rgba(255,181,4,.6), 0 0 0 0 rgba(255,181,4,.45); } 100% { box-shadow: 0 14px 40px -10px rgba(255,181,4,.6), 0 0 0 18px rgba(255,181,4,0); } }
/* 9 pontos da marca que se reorganizam em "X" */
.quick__dots { position: relative; width: 24px; height: 24px; }
.quick__dots i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transition: transform .55s var(--ease-spring), opacity .3s; }
.quick__dots i:nth-child(1) { left: 0; top: 0; } .quick__dots i:nth-child(2) { left: 9.5px; top: 0; } .quick__dots i:nth-child(3) { left: 19px; top: 0; }
.quick__dots i:nth-child(4) { left: 0; top: 9.5px; } .quick__dots i:nth-child(5) { left: 9.5px; top: 9.5px; } .quick__dots i:nth-child(6) { left: 19px; top: 9.5px; }
.quick__dots i:nth-child(7) { left: 0; top: 19px; } .quick__dots i:nth-child(8) { left: 9.5px; top: 19px; } .quick__dots i:nth-child(9) { left: 19px; top: 19px; }
.quick-open .quick__dots i:nth-child(1) { transform: translate(2px, 2px); } .quick-open .quick__dots i:nth-child(3) { transform: translate(-2px, 2px); }
.quick-open .quick__dots i:nth-child(7) { transform: translate(2px, -2px); } .quick-open .quick__dots i:nth-child(9) { transform: translate(-2px, -2px); }
.quick-open .quick__dots i:nth-child(2), .quick-open .quick__dots i:nth-child(4), .quick-open .quick__dots i:nth-child(6), .quick-open .quick__dots i:nth-child(8) { opacity: 0; transform: scale(0); }
.quick-open .quick__dots i:nth-child(1), .quick-open .quick__dots i:nth-child(9) { box-shadow: 0 0 0 0 currentColor; }
.quick__panel {
  position: absolute; right: 0; bottom: calc(100% + 14px); width: min(320px, calc(100vw - 2rem)); padding: 1rem;
  border-radius: 24px; visibility: hidden;
  background: radial-gradient(120% 90% at 100% 100%, rgba(85, 42, 134, .55), transparent 60%), rgba(var(--bg-rgb), .96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -20px rgba(0,0,0,.8);
}
.quick__title { margin: .2rem .4rem .7rem; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--kicker); }
.quick__item { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 .9rem; border-radius: 14px; font-weight: 600; font-size: .98rem; transition: background-color .25s, padding-left .35s var(--ease-out); }
.quick__item i { font-style: normal; opacity: .6; transition: transform .4s var(--ease-spring); }
.quick__item:hover { background: rgba(var(--ink-rgb),.07); padding-left: 1.2rem; }
.quick__item:hover i { transform: translateX(4px); }
.quick__item--cta { background: var(--amarelo); color: var(--azul); margin-bottom: .3rem; }
.quick__item--cta:hover { background: #fff; }
.quick__item--wpp { color: #7CE3A4; }

/* ---------- barra inferior mobile ---------- */
.tabbar { display: none; }

/* ---------- responsivo ---------- */
/* notebooks (1241–1520px): topo mais compacto para a logo e o "Inscreva-se" caberem inteiros */
@media (min-width: 1241px) and (max-width: 1520px) {
  .header { padding-left: 24px; padding-right: 24px; gap: 12px; }
  .header__logo { flex: none; }
  .header__logo img { height: 38px; }
  .header__nav { gap: 0; }
  .nav-link { padding-left: .42rem; padding-right: .42rem; font-size: .8rem; }
  .nav-link::after { left: .42rem; right: .42rem; }
  .nav-link.is-destaque { margin-left: .2rem; padding: .45rem .65rem; }
  .header__area .nav-link { font-size: .8rem; }
  .header__actions { flex: none; gap: .4rem; }
  .header__actions > .btn { padding-left: 1rem; padding-right: 1rem; font-size: .85rem; }
}
@media (max-width: 1240px) {
  .header__nav { display: none; }
  .header__actions { margin-left: auto; }
  .burger { display: block; }
}
@media (max-width: 1024px) {
}
@media (max-width: 767px) {
  .sec__head { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; aspect-ratio: auto; }
  .mosaic__item { aspect-ratio: 3 / 2; }
  .mosaic__item--big { grid-row: auto; grid-column: span 2; }
  .gallery__grid { columns: 2; }
  .lightbox__nav { top: auto; bottom: calc(1.5rem + env(safe-area-inset-bottom)); transform: none; }
  .lightbox__nav:hover { transform: scale(1.08); }
  :root { --header-h: 64px; }
  .header__logo img { height: 36px; }
  .header__area, .header__actions > .btn { display: none; }
  .kv-logo { width: min(80vw, 360px); }
  .kv-sub { display: flex; flex-direction: column; gap: .3rem; margin: -.6rem 0 0; font-weight: 700; font-size: .86rem; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 2px 14px rgba(var(--bg-rgb),.95); }
  .kv-sub em { font-weight: 600; font-size: .82rem; letter-spacing: .04em; color: rgba(var(--ink-rgb),.85); }
  .footer__bottom { justify-content: center; text-align: center; padding-right: 0; }
  .footer__contact-row { flex-direction: column; }
  .footer__selos { margin-bottom: 5rem; justify-content: center; }
  .quick__fab { display: none; } /* no celular o menu rápido abre pela barra inferior */
  .quick { right: .6rem; bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
  .panel--kv { justify-content: center; gap: 1.4rem; padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
  .scroll-hint { display: none; }
  .panel { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
  .stage__shade { background: linear-gradient(0deg, rgba(var(--bg-rgb),.85) 0%, rgba(var(--bg-rgb),.4) 45%, transparent 65%); }
  /* celular: a nuvem entra no fluxo, logo abaixo do botão "Garanta sua inscrição" (longe da linha do ECG) */
  .specs { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; height: 12.2rem; flex: none; }
  .specs__w { max-width: 9em; font-size: .85rem; animation: none; }
  .specs__w--p { max-width: none; white-space: nowrap; font-size: min(1.15rem, 4.8vw); } .specs__w--s { max-width: none; font-size: min(1rem, 4.1vw); }
  /* celular: vídeo grande em 3:4 (corta um pouco a altura) e o texto da cena logo abaixo, na mesma tela */
  .vid-mock { --w: min(86vw, calc((100svh - var(--header-h) - 25.5rem) * 3 / 4)); left: 50vw; top: calc(var(--header-h) + .7rem); margin: 0 0 0 calc(-.5 * var(--w)); border-radius: 16px; }
  .vid-mock__bar { height: 18px; } .vid-mock__bar span { display: none; } .vid-mock__bar i { width: 6px; height: 6px; }
  .countdown__item { min-width: 0; flex: 1; }

  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; z-index: 40; left: .6rem; right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom));
    padding: .35rem; border-radius: 22px;
    background: rgba(var(--bg-rgb), .72); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow: inset 0 0 0 1px var(--line), 0 12px 40px -10px rgba(0,0,0,.6);
  }
  .tabbar__item { font: inherit; color: inherit; background: none; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 52px; border-radius: 16px; font-size: .68rem; font-weight: 600; color: var(--text-soft); transition: transform .4s var(--ease-spring), background-color .3s; }
  .tabbar__item svg { width: 22px; height: 22px; }
  .tabbar__item:active { transform: scale(.92); }
  .tabbar__item--cta { background: var(--amarelo); color: var(--azul); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- botão de tema + ajustes do tema claro ---------- */
.theme-toggle { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), .3); transition: background-color .3s, box-shadow .3s; }
.theme-toggle:hover { background: rgba(var(--ink-rgb), .08); box-shadow: inset 0 0 0 1.5px var(--accent); }
.theme-toggle svg { position: absolute; width: 20px; height: 20px; transition: transform .6s var(--ease-spring), opacity .3s; }
.theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(.4); }          /* escuro: mostra a lua */
:root[data-theme="light"] .theme-toggle__sun { opacity: 1; transform: none; color: var(--dourado); }
:root[data-theme="light"] .theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(.4); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* no claro o menu fica sobre as partículas coloridas: barra clara fosca desde o topo, para dar leitura */
:root[data-theme="light"] .header, :root[data-theme="light"] .header.is-scrolled { background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(2, 17, 58, .35); }
:root[data-theme="light"] .menu { background: radial-gradient(120% 80% at 100% 0%, #D9F3F8 0%, #EEF3FA 45%, #F7F9FC 100%); }
:root[data-theme="light"] .place { color: var(--dourado); }
:root[data-theme="light"] .cursor { mix-blend-mode: multiply; }
:root[data-theme="light"] .btn--primary { box-shadow: 0 10px 28px -12px rgba(179, 124, 8, .55); }
:root[data-theme="light"] .btn--primary::after { background: var(--azul); }
:root[data-theme="light"] .btn--primary:hover span { color: #fff; }
:root[data-theme="light"] .speaker__box, :root[data-theme="light"] .board, :root[data-theme="light"] .mosaic__item { box-shadow: 0 18px 40px -24px rgba(2, 17, 58, .45); }
:root[data-theme="light"] .quick__item--wpp { color: #0F8A4F; }
:root[data-theme="light"] .tabbar { box-shadow: inset 0 0 0 1px var(--line), 0 12px 40px -14px rgba(2, 17, 58, .35); }
