/* ==========================================================
   Vasconcelos Consultoria — estilos do site
   Paleta e tipografia tiradas do portfólio da marca
   ========================================================== */

:root {
  --carvao: #1a1919;
  --carvao-2: #232020;
  --creme: #ebddc3;
  --areia: #e4dbd2;
  --areia-2: #d9cec3;
  --cafe: #4a3a38;
  --tinta: #231f20;
  --rose: #85615a;
  --bronze: #7a654d;
  --texto: #2b2523;
  --texto-suave: #5d524c;
  --branco: #fffdf9;

  --f-display: "League Spartan", "Arial Black", system-ui, sans-serif;
  --f-texto: "Jost", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --r-grande: 34px;
  --r-medio: 22px;
  --r-pilula: 999px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--areia);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--creme); outline-offset: 3px; border-radius: 6px; }
.claro :focus-visible { outline-color: var(--rose); }

.pular { position: absolute; left: -9999px; top: 8px; background: var(--creme); color: var(--carvao); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.pular:focus { left: 8px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-texto); font-weight: 500; font-size: 1rem;
  padding: .85em 1.5em; border-radius: var(--r-pilula);
  text-decoration: none; border: 1.5px solid currentColor;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s;
  cursor: pointer;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-creme { background: var(--creme); color: var(--carvao); border-color: var(--creme); }
.btn-creme:hover { background: var(--branco); border-color: var(--branco); }
.btn-linha { color: var(--creme); background: transparent; }
.btn-linha:hover { background: var(--creme); color: var(--carvao); border-color: var(--creme); }
.btn-escuro { background: var(--carvao); color: var(--creme); border-color: var(--carvao); }
.btn-escuro:hover { background: var(--cafe); border-color: var(--cafe); }

/* ---------- Cabeçalho ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--creme);
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s;
  padding-block: 22px;
}
.topo.solido { background: rgba(26, 25, 25, .94); backdrop-filter: blur(10px); padding-block: 12px; box-shadow: 0 1px 0 rgba(235, 221, 195, .08); }
.topo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topo .marca img { height: 46px; width: auto; transition: height .35s var(--ease); }
.topo.solido .marca img { height: 38px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: .98rem; opacity: .85; transition: opacity .2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.nav .btn { opacity: 1; padding: .6em 1.2em; }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 30px; height: 30px; }

@media (max-width: 920px) {
  .menu-btn { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--carvao);
    flex-direction: column; justify-content: center; gap: 26px;
    font-size: 1.4rem; opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease);
  }
  .nav a { font-size: 1.5rem; font-family: var(--f-display); font-weight: 600; }
  .menu-aberto .nav { opacity: 1; pointer-events: auto; }
}

/* ---------- Hero (letreiro vazado sobre a foto) ---------- */
.hero {
  position: relative; min-height: 100svh; background: var(--carvao); color: var(--creme);
  overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto;
}
.hero-palco { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-palavra {
  grid-area: 1 / 1; margin: 0; position: relative;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(3.4rem, 14.2vw, 14.5rem);
  line-height: .8; letter-spacing: -0.035em; text-transform: uppercase;
  white-space: nowrap; user-select: none;
  transform: translateY(-6%);
}
.hero-palavra.cheia { color: var(--creme); z-index: 1; }
.hero-palavra.vazada { color: transparent; -webkit-text-stroke: 1.6px var(--creme); z-index: 3; pointer-events: none; }
.hero-foto {
  grid-area: 1 / 1; z-index: 2; align-self: end;
  height: min(92svh, 900px); width: auto; max-width: none;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, #000 82%, transparent);
}
.hero-base {
  position: relative; z-index: 4;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  padding-block: 0 44px; margin-top: -170px;
}
.hero-base .lema { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1rem, 1.5vw, 1.35rem); letter-spacing: .01em; margin: 0 0 10px; }
.hero-base .chamada { max-width: 30ch; font-size: 1.05rem; opacity: .82; margin: 0; }
.hero-acoes { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* animação de entrada: um único momento */
@media (prefers-reduced-motion: no-preference) {
  .hero-foto { animation: subir 1.3s var(--ease) both .15s; }
  .hero-palavra { animation: abrir 1.4s var(--ease) both; }
  .hero-base { animation: surgir 1s var(--ease) both .7s; }
  @keyframes subir { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  @keyframes abrir { from { opacity: 0; letter-spacing: .06em; } to { opacity: 1; letter-spacing: -0.035em; } }
  @keyframes surgir { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 820px) {
  .hero { min-height: auto; }
  .hero-palco { min-height: 0; padding-top: 110px; }
  .hero-palavra { transform: translateY(-40%); }
  .hero-foto { height: 62svh; min-height: 420px; }
  .hero-base { flex-direction: column; align-items: flex-start; margin-top: 0; padding-top: 28px; background: var(--carvao); }
  .hero-acoes { justify-content: flex-start; }
}

/* ---------- Seções ---------- */
.secao { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.secao-titulo { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 700; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--texto-suave); max-width: 52ch; }
.escuro { background: var(--carvao); color: var(--creme); }
.escuro .lead { color: rgba(235, 221, 195, .78); }

/* Sobre */
.sobre { background: var(--areia); }
.sobre .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.sobre-foto { position: relative; border-radius: 999px; overflow: hidden; background: #dfe5ea; aspect-ratio: 1 / 1.2; max-width: 460px; }
.sobre-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.sobre .nome { color: var(--bronze); font-size: clamp(2.6rem, 5.6vw, 4.8rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 14px; }
.sobre .papel { font-family: var(--f-display); font-weight: 500; color: var(--bronze); font-size: clamp(1.1rem, 1.8vw, 1.4rem); margin-bottom: 30px; }
.sobre .lema-grande { font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; color: var(--cafe); margin-top: 34px; line-height: 1.2; }
@media (max-width: 820px) {
  .sobre .wrap { grid-template-columns: 1fr; }
  .sobre-foto { max-width: 320px; }
}

/* Pilares */
.pilares { background: var(--areia); padding-top: 0; overflow: hidden; }
.ornamento { position: absolute; width: clamp(260px, 34vw, 520px); opacity: .55; pointer-events: none; }
.pilares .ornamento { right: -220px; top: -200px; opacity: .3; }
.pilares .wrap, .contato .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .ornamento { animation: girar 90s linear infinite; }
  @keyframes girar { to { transform: rotate(360deg); } }
}
.pilares-topo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; position: relative; }
.pilares-topo .lead { margin: 0; }
.pilares-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); position: relative; }
.pilar {
  border-radius: var(--r-grande); padding: 34px 16px 16px; color: #fff;
  display: flex; flex-direction: column; text-decoration: none; min-height: 100%;
}
.pilar.talk { background: #4a3a3a; }
.pilar.tech { background: #221e1f; }
.pilar.ci { background: #835e55; }
.pilar-marca { display: flex; justify-content: center; padding: 4px 0 28px; }
.pilar-marca img { width: min(200px, 70%); height: auto; aspect-ratio: auto; }
.pilar-corpo {
  background: var(--areia); color: var(--texto); border-radius: var(--r-medio);
  padding: 26px 24px; flex: 1; display: flex; flex-direction: column; gap: 14px;
}
.pilar-corpo h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.15; color: var(--carvao); }
.pilar-corpo p { margin: 0; color: var(--texto-suave); font-size: 1rem; }
.pilar-acao {
  margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 600; color: var(--rose); border-top: 1px solid rgba(133, 97, 90, .25);
}
.pilar-acao .seta { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; transition: transform .3s var(--ease); }
.pilar-acao .seta svg { width: 20px; height: 20px; }
.pilar.ci { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pilar.ci:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(74, 58, 56, .6); }
.pilar.ci:hover .seta { transform: rotate(-45deg); }
.pilar-tag { align-self: flex-start; font-size: .85rem; font-weight: 500; background: rgba(133, 97, 90, .12); color: var(--rose); padding: 4px 12px; border-radius: var(--r-pilula); }
.modos { display: flex; justify-content: center; gap: clamp(30px, 8vw, 120px); margin-top: 46px; color: var(--bronze); font-family: var(--f-display); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.05; text-align: center; text-transform: uppercase; }
@media (max-width: 920px) {
  .pilares-topo { grid-template-columns: 1fr; }
  .pilares-grade { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .pilar-marca img { width: 170px; }
  }

/* Formatos */
.formatos .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.formatos .secao-titulo { font-weight: 300; font-size: clamp(2.8rem, 6.4vw, 5.6rem); text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 30px; }
.formatos-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formatos-lista li {
  border: 1.5px solid var(--creme); border-radius: var(--r-pilula);
  padding: 18px 22px; text-align: center; font-size: 1.05rem; line-height: 1.25;
  display: grid; place-items: center; min-height: 76px;
}
.formatos-lista li:nth-child(4n+2), .formatos-lista li:nth-child(4n+3) { background: var(--creme); color: var(--carvao); }
@media (max-width: 820px) {
  .formatos .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 460px) { .formatos-lista { grid-template-columns: 1fr; } .formatos-lista li:nth-child(n) { background: transparent; color: var(--creme); } .formatos-lista li:nth-child(odd) { background: var(--creme); color: var(--carvao); } }

/* Temas */
.temas { background: var(--areia); overflow: hidden; }
.temas .wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.temas .secao-titulo { grid-column: 1 / -1; margin-bottom: 10px; color: var(--carvao); }
.temas-painel { background: var(--carvao); color: var(--creme); border-radius: var(--r-grande); padding: clamp(28px, 4vw, 52px); }
.temas-painel ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.temas-painel li { break-inside: avoid; padding: 14px 0; border-bottom: 1px solid rgba(235, 221, 195, .14); font-size: 1.05rem; line-height: 1.35; }
.temas-lado p.grande { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2.05rem); line-height: 1.2; color: var(--carvao); margin-bottom: 26px; }
.temas-lado p.miuda { color: var(--texto-suave); margin-bottom: 18px; }
@media (max-width: 920px) {
  .temas .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .temas-painel ul { columns: 1; } }

/* Parceiros */
.parceiros .topo-secao { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 48px; flex-wrap: wrap; }
.parceiros .secao-titulo { font-weight: 300; text-transform: uppercase; }
.logos {
  background: #fff; border-radius: var(--r-grande); padding: clamp(24px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(22px, 3vw, 44px) clamp(18px, 3vw, 40px); align-items: center; list-style: none; margin: 0;
}
.logos li { display: grid; place-items: center; height: 84px; }
.logos img { max-height: 76px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .78; transition: filter .3s, opacity .3s; }
.logos li:hover img { filter: none; opacity: 1; }
@media (max-width: 920px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .logos { grid-template-columns: repeat(2, 1fr); } .logos li { height: 70px; } }

/* Contato */
.contato { background: var(--creme); overflow: hidden; }
.contato .ornamento { left: auto; right: -230px; bottom: -260px; opacity: .45; }
.contato .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contato .secao-titulo { color: var(--cafe); font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 6.5vw, 5.6rem); }
.contato .lema { color: var(--texto-suave); margin-top: 14px; font-size: 1.15rem; }
.zap {
  display: flex; align-items: center; gap: 22px; text-decoration: none; color: var(--cafe);
  background: var(--branco); border-radius: var(--r-grande); padding: 28px 30px; transition: transform .3s var(--ease), box-shadow .3s;
}
.zap:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(74, 58, 56, .55); }
.zap-icone { width: 72px; height: 72px; border-radius: 50%; background: var(--cafe); color: var(--creme); display: grid; place-items: center; flex: none; }
.zap-icone svg { width: 36px; height: 36px; }
.zap small { display: block; color: var(--texto-suave); font-size: 1rem; }
.zap strong { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
@media (max-width: 820px) { .contato .wrap { grid-template-columns: 1fr; } }

/* Rodapé */
.rodape { background: var(--carvao); color: rgba(235, 221, 195, .75); padding-block: 48px; font-size: .95rem; }
.rodape .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.rodape img { height: 44px; width: auto; }
.rodape nav { display: flex; gap: 22px; flex-wrap: wrap; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: var(--creme); }

/* ==========================================================
   Página VC+CI — vídeos e materiais
   ========================================================== */
.ci-hero { background: #835e55; color: #fff; padding-top: clamp(130px, 16vw, 190px); padding-bottom: clamp(60px, 8vw, 100px); position: relative; overflow: hidden; }
.ci-hero .ornamento { right: -150px; top: 40px; filter: brightness(0) invert(1); opacity: .12; }
.ci-hero .wrap { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.ci-selo { display: flex; flex-direction: column; align-items: flex-end; }
.ci-selo img { width: clamp(160px, 20vw, 260px); height: auto; }
.ci-hero h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 700; margin-bottom: 22px; max-width: 18ch; }
.ci-hero .intro { font-size: clamp(1.08rem, 1.4vw, 1.25rem); max-width: 58ch; opacity: .92; }
.ci-hero .intro p:last-child { margin-bottom: 0; }
.voltar { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; opacity: .85; margin-bottom: 26px; font-size: .98rem; }
.voltar:hover { opacity: 1; }
.voltar svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .ci-hero .wrap { grid-template-columns: 1fr; } .ci-selo { align-items: flex-start; } }

.ci-corpo { padding-block: clamp(56px, 8vw, 110px); }
.ci-corpo .wrap { display: grid; grid-template-columns: 260px 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.indice { position: sticky; top: 96px; }
.indice h2 { font-size: 1.1rem; font-weight: 600; color: var(--bronze); margin-bottom: 14px; font-family: var(--f-texto); }
.indice ol { list-style: none; margin: 0; padding: 0; counter-reset: ind; }
.indice li { counter-increment: ind; }
.indice a {
  display: grid; grid-template-columns: 30px 1fr; gap: 6px; padding: 11px 0; text-decoration: none;
  color: var(--texto-suave); border-bottom: 1px solid var(--areia-2); line-height: 1.3; font-size: .98rem;
  transition: color .2s;
}
.indice a::before { content: counter(ind, decimal-leading-zero); font-family: var(--f-display); font-weight: 600; color: var(--rose); opacity: .7; }
.indice a:hover, .indice a.ativo { color: var(--carvao); }
.indice a.ativo { font-weight: 600; }
.indice a.ativo::before { opacity: 1; }
@media (max-width: 960px) {
  .ci-corpo .wrap { grid-template-columns: 1fr; }
  .indice { position: static; }
}

.videos { display: flex; flex-direction: column; gap: clamp(70px, 9vw, 120px); counter-reset: vid; }
.video { scroll-margin-top: 100px; counter-increment: vid; }
.video-cabeca { display: flex; gap: 20px; align-items: baseline; margin-bottom: 18px; }
.video-num { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 4vw, 3.6rem); color: var(--rose); line-height: .9; flex: none; }
.video-num::before { content: counter(vid, decimal-leading-zero); }
.video h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; color: var(--carvao); }
.video-texto { color: var(--texto-suave); font-size: 1.08rem; max-width: 68ch; margin-bottom: 28px; }
.video-texto p:last-child { margin-bottom: 0; }

.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-medio); overflow: hidden;
  background: var(--carvao); box-shadow: 0 30px 60px -32px rgba(35, 31, 32, .65);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-capa {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer;
  background: var(--carvao) center / cover no-repeat; color: #fff;
  display: grid; place-items: center;
}
.player-capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 25, 25, .05), rgba(26, 25, 25, .55)); transition: background .3s; }
.player-capa:hover::after { background: linear-gradient(180deg, rgba(26, 25, 25, 0), rgba(26, 25, 25, .35)); }
.player-play {
  position: relative; z-index: 1; width: clamp(68px, 9vw, 96px); height: clamp(68px, 9vw, 96px); border-radius: 50%;
  background: var(--creme); color: var(--carvao); display: grid; place-items: center;
  transition: transform .35s var(--ease); box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.player-play svg { width: 36%; height: 36%; margin-left: 6%; }
.player-capa:hover .player-play { transform: scale(1.08); }
.player-rotulo { position: absolute; z-index: 1; left: 22px; bottom: 18px; font-size: .95rem; opacity: .9; }
.player-vazio { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgba(235, 221, 195, .7); padding: 24px; }

.materiais { margin-top: 28px; }
.materiais h3 { font-family: var(--f-texto); font-size: 1.05rem; font-weight: 600; color: var(--bronze); margin-bottom: 14px; }
.materiais ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.arquivo {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 14px; text-decoration: none;
  background: var(--branco); border-radius: 16px; border: 1px solid transparent; color: var(--carvao);
  transition: border-color .2s, transform .25s var(--ease);
}
.arquivo:hover { border-color: var(--rose); transform: translateY(-2px); }
.arquivo-icone { width: 46px; height: 54px; flex: none; border-radius: 8px; background: var(--rose); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: .8rem; letter-spacing: .04em; position: relative; }
.arquivo-icone::before { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 12px 12px 0; border-color: var(--branco) var(--branco) #b08a82 #b08a82; border-radius: 0 8px 0 3px; }
.arquivo-info { flex: 1; min-width: 0; }
.arquivo-info strong { display: block; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.arquivo-info small { color: var(--texto-suave); font-size: .88rem; }
.arquivo-baixar { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--areia); display: grid; place-items: center; color: var(--cafe); }
.arquivo-baixar svg { width: 18px; height: 18px; }

.ci-fim { background: var(--carvao); color: var(--creme); padding-block: clamp(60px, 8vw, 100px); }
.ci-fim .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.ci-fim h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 600; max-width: 22ch; }

.aviso-vazio { background: var(--branco); border-radius: var(--r-medio); padding: 40px; text-align: center; color: var(--texto-suave); }

/* Certificado */
.certificado { padding-bottom: clamp(70px, 9vw, 120px); }
.cert-card {
  background: var(--branco); border-radius: var(--r-grande); padding: clamp(22px, 3vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: center;
  border: 1.5px solid rgba(133, 97, 90, .25);
}
.cert-previa { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 20px 44px -24px rgba(74, 58, 56, .55); border: 1px solid var(--areia-2); transform: rotate(-1.5deg); }
.cert-texto h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; color: var(--carvao); margin-bottom: 16px; }
.cert-texto p { color: var(--texto-suave); max-width: 46ch; }
.cert-dica { font-size: .95rem; }
.btn-rose { background: var(--rose); color: #fff; border-color: var(--rose); margin-top: 8px; }
.btn-rose:hover { background: var(--cafe); border-color: var(--cafe); }
@media (max-width: 820px) { .cert-card { grid-template-columns: 1fr; } .cert-previa { transform: none; } }

/* Caixa de diálogo do certificado */
.dlg {
  border: 0; padding: 0; border-radius: var(--r-grande); width: min(480px, calc(100% - 32px));
  background: var(--branco); color: var(--texto); box-shadow: 0 40px 80px -30px rgba(26, 25, 25, .6);
}
.dlg::backdrop { background: rgba(26, 25, 25, .62); backdrop-filter: blur(3px); }
.dlg form { padding: clamp(24px, 4vw, 36px); }
.dlg h2 { font-size: 1.9rem; font-weight: 700; color: var(--carvao); margin-bottom: 10px; }
.dlg p { color: var(--texto-suave); margin-bottom: 20px; }
.dlg label { display: block; font-weight: 600; color: var(--cafe); margin-bottom: 8px; }
.dlg input {
  width: 100%; font: inherit; font-size: 1.1rem; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--areia-2); background: #fff; color: var(--carvao);
}
.dlg input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(133, 97, 90, .18); }
.dlg .dlg-erro { color: #b3261e; font-size: .95rem; min-height: 1.4em; margin: 10px 0 14px; }
.dlg-acoes { display: flex; justify-content: flex-end; gap: 10px; }
.dlg .btn[disabled] { opacity: .7; cursor: progress; }
.btn-linha-escura { background: transparent; color: var(--cafe); border-color: var(--areia-2); }
.btn-linha-escura:hover { border-color: var(--cafe); }
@media (prefers-reduced-motion: no-preference) {
  .dlg[open] { animation: dlg-abrir .25s var(--ease); }
  @keyframes dlg-abrir { from { opacity: 0; transform: translateY(12px) scale(.98); } }
}
