/* O CRESPO: estilo do site */
:root {
  --fundo: #0a0606;
  --fundo-2: #120a0a;
  --cartao: #170d0d;
  --borda: #2a1717;
  --texto: #eee4dc;
  --texto-2: #b9aaa0;
  --texto-3: #85766d;
  --vermelho: #9b1212;
  --vermelho-forte: #c41a1a;
  --vermelho-claro: #e0453f;
  --raio: 10px;
  --largura: 1240px;
  /* Mesmas fontes dos vídeos (combinação "estudio" do projeto de vídeo) */
  --serifa: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;   /* texto */
  --titulo: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;   /* títulos: Inter Display */
  --acento: "Instrument Serif", Georgia, serif;                          /* palavra de destaque em itálico */
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;            /* rótulos e números */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--serifa);
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--vermelho-claro); outline-offset: 3px; }

.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 16px; } body { font-size: 16px; } }

/* ---------- Topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(10,6,6,.92), rgba(10,6,6,.6));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(155,18,18,.25);
  transition: background .3s;
}
.topo.rolou { background: rgba(10,6,6,.97); }
.topo .container { display: flex; align-items: center; gap: 32px; height: 76px; }
.marca { display: flex; align-items: center; gap: 12px; font-family: var(--titulo); font-size: 23px; letter-spacing: .04em; white-space: nowrap; }
.marca img { width: 44px; height: auto; }
.menu { display: flex; gap: 6px; margin: 0 auto; }
.menu a { position: relative; padding: 8px 16px; font-size: 16px; color: var(--texto-2); transition: color .2s; }
.menu a:hover, .menu a.ativo { color: var(--texto); }
.menu a.ativo::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -18px; height: 3px; background: var(--vermelho-forte); }
.topo .botao { padding: 9px 20px; font-size: 15px; }
.abrir-menu { display: none; width: 44px; height: 44px; margin-left: auto; }
.abrir-menu span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--texto); transition: transform .25s, opacity .25s; }
.abrir-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.abrir-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.abrir-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .abrir-menu { display: block; }
  .topo .botao-topo { display: none; }
  .menu {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(10,6,6,.98); border-bottom: 1px solid var(--borda);
    padding: 8px 16px 20px; transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .menu.aberto { transform: none; }
  .menu a { padding: 14px 8px; font-size: 18px; border-bottom: 1px solid var(--borda); }
  .menu a.ativo::after { display: none; }
  .menu .botao { margin-top: 16px; text-align: center; justify-content: center; }
}
@media (min-width: 981px) { .menu .botao { display: none; } }
@media (max-width: 640px) { .marca { font-size: 19px; } .marca img { width: 38px; } .topo .container { height: 66px; } .menu { top: 66px; } }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 6px; font-size: 17px; font-weight: 500;
  transition: background .2s, border-color .2s, transform .2s;
}
.botao svg { width: 18px; height: 18px; flex: none; }
.botao-cheio { background: var(--vermelho); border: 1px solid var(--vermelho-forte); color: #fff; }
.botao-cheio:hover { background: var(--vermelho-forte); }
.botao-vazado { border: 1px solid rgba(238,228,220,.75); }
.botao-vazado:hover { background: rgba(238,228,220,.08); border-color: #fff; }
.botao-grande { padding: 18px 38px; font-size: 18px; }
.botao-whats { background: #1f7a43; border: 1px solid #27a058; color: #fff; }
.botao-whats:hover { background: #26914f; }

/* ---------- Capa (início) ---------- */
.capa {
  position: relative; min-height: min(86vh, 680px); display: flex; align-items: center;
  padding: 110px 0 48px; overflow: hidden;
}
.capa-fundo {
  position: absolute; top: 0; bottom: 0; right: 0; left: 36%;
  background: url("../img/capa.webp") 18% center / cover no-repeat;
}
.capa-fundo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--fundo) 0%, rgba(10,6,6,.75) 18%, rgba(10,6,6,.1) 45%, rgba(10,6,6,0) 100%),
    linear-gradient(0deg, var(--fundo) 0%, rgba(10,6,6,0) 28%);
}
.capa .container { position: relative; }
.capa h1 { font-size: clamp(37px, 5.4vw, 63px); line-height: 1.05; font-weight: 800; max-width: 11.5em; letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(10,6,6,.6); }
.capa .apoio { margin-top: 20px; max-width: 30em; font-size: clamp(17px, 2vw, 20px); color: var(--texto-2); }
.capa .acoes { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.pilares { display: flex; flex-wrap: wrap; margin-top: 44px; }
.pilares li { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 30px; font-size: 16px; color: var(--texto-2); }
.pilares li + li { border-left: 1px solid rgba(196,26,26,.35); }
.pilares li:first-child { padding-left: 0; }
.pilares svg { width: 34px; height: 34px; color: var(--texto); }
@media (max-width: 760px) {
  .capa { min-height: auto; padding: 110px 0 40px; }
  .capa-fundo { left: 0; background-position: 42% top; background-size: auto 62%; }
  .capa-fundo::after {
    background: linear-gradient(0deg, var(--fundo) 30%, rgba(10,6,6,.7) 55%, rgba(10,6,6,.25) 100%);
  }
  .capa .container { padding-top: 34vh; }
  .capa .acoes .botao { flex: 1 1 100%; justify-content: center; }
  .pilares { justify-content: space-between; }
  .pilares li { padding: 0 8px; font-size: 13px; text-align: center; flex: 1; }
}

/* ---------- Seções ---------- */
.secao { padding: 72px 0; }
.titulo-secao { display: flex; align-items: center; gap: 28px; margin-bottom: 28px; }
.titulo-secao h2 { font-size: clamp(26px, 3.4vw, 37px); font-weight: 800; line-height: 1.15; }
.titulo-secao::after { content: ""; flex: 0 1 140px; height: 1px; background: linear-gradient(90deg, var(--vermelho-forte), transparent); }
.olho { font-family: var(--titulo); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--vermelho-claro); margin-bottom: 12px; }
.texto-secao { color: var(--texto-2); max-width: 40em; }

/* ---------- Cards principais ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative; display: block; border-radius: var(--raio); overflow: hidden;
  border: 1px solid var(--borda); background: var(--cartao); aspect-ratio: 4 / 4.1;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card img { width: 100%; height: 72%; object-fit: cover; transition: transform .6s; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,6,6,.98) 26%, rgba(10,6,6,.6) 48%, transparent 68%); }
.card-texto { position: absolute; left: 22px; right: 50px; bottom: 20px; z-index: 1; }
.card h3 { font-size: 21px; font-weight: 700; line-height: 1.15; }
.card p { font-size: 14px; color: var(--texto-2); margin-top: 4px; }
.card .seta { position: absolute; right: 20px; bottom: 26px; z-index: 1; width: 24px; color: var(--vermelho-claro); transition: transform .3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(196,26,26,.6); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.card:hover img { transform: scale(1.05); }
.card:hover .seta { transform: translateX(4px); }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .card { aspect-ratio: 16 / 10; } }

/* ---------- Fileiras de vídeo ---------- */
.fileira { margin-top: 40px; }
.fileira-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.fileira-topo h3 { font-size: 23px; font-weight: 700; }
.fileira-topo a { font-size: 15px; color: var(--vermelho-claro); white-space: nowrap; }
.fileira-topo a:hover { text-decoration: underline; }
.trilho-caixa { position: relative; }
.trilho {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 18px; scrollbar-width: none;
}
.trilho::-webkit-scrollbar { display: none; }
.trilho > * { scroll-snap-align: start; flex: none; }
.passar {
  position: absolute; top: 6px; bottom: 18px; width: 52px; z-index: 2; display: grid; place-items: center;
  background: linear-gradient(90deg, rgba(10,6,6,.95), rgba(10,6,6,0)); opacity: 0; transition: opacity .2s;
}
.passar svg { width: 30px; height: 30px; }
.passar.dir { right: 0; background: linear-gradient(270deg, rgba(10,6,6,.95), rgba(10,6,6,0)); }
.passar.esq { left: 0; }
.trilho-caixa:hover .passar:not([hidden]) { opacity: 1; }
@media (hover: none) { .passar { display: none; } }

.video {
  position: relative; width: 340px; border-radius: 8px; overflow: hidden; background: var(--cartao);
  border: 1px solid var(--borda); text-align: left; transition: transform .25s, border-color .25s;
}
.video:hover { transform: scale(1.03); border-color: rgba(196,26,26,.6); }
.video .miniatura { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1c1010; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video .play {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s;
  background: rgba(10,6,6,.35);
}
.video .play span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(155,18,18,.9); }
.video .play svg { width: 22px; height: 22px; margin-left: 3px; }
.video:hover .play, .video:focus-visible .play { opacity: 1; }
.video .legenda { padding: 12px 14px 14px; font-size: 15px; line-height: 1.3; }
.video .legenda small { display: block; margin-top: 4px; font-size: 12px; color: var(--texto-3); }
.video.curto { width: 200px; }
.video.curto .miniatura { aspect-ratio: 9 / 16; }
.video.curto .legenda { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; font-size: 13px; background: linear-gradient(0deg, rgba(10,6,6,.95), transparent); text-transform: none; }
.video.destaque { width: 520px; }
@media (max-width: 640px) {
  .video { width: 78vw; }
  .video.destaque { width: 86vw; }
  .video.curto { width: 42vw; }
}

.rede {
  width: 260px; padding: 26px 22px; border-radius: 8px; border: 1px solid var(--borda); background: var(--cartao);
  display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, transform .25s;
}
.rede:hover { border-color: rgba(196,26,26,.6); transform: translateY(-3px); }
.rede svg { width: 34px; height: 34px; color: var(--vermelho-claro); }
.rede strong { font-size: 19px; font-weight: 700; }
.rede span { font-size: 14px; color: var(--texto-2); }

/* ---------- Faixa do livro ---------- */
.faixa-livro {
  position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--borda);
  background: radial-gradient(ellipse at 75% 50%, rgba(155,18,18,.45), transparent 60%), var(--fundo-2);
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding: 56px;
}
.faixa-livro img { max-height: 400px; width: auto; margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.6)); }
.faixa-livro h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; font-weight: 800; }
.faixa-livro p { color: var(--texto-2); margin-top: 16px; max-width: 30em; }
.faixa-livro .preco-linha { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.preco { font-family: var(--titulo); font-size: 30px; color: #fff; }
.preco small { display: block; font-family: var(--serifa); font-size: 13px; color: var(--texto-3); letter-spacing: 0; }
@media (max-width: 860px) { .faixa-livro { grid-template-columns: 1fr; padding: 32px 22px; } .faixa-livro img { order: -1; max-width: 460px; margin: 0 auto; } }

/* ---------- Comunidade ---------- */
.comunidade {
  position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--borda);
  display: grid; grid-template-columns: 1fr 1fr; min-height: 460px;
}
.comunidade-foto { background: url("../img/card-comunidade.webp") center / cover; position: relative; }
.comunidade-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, var(--fundo-2)); }
.comunidade-texto { background: var(--fundo-2); padding: 52px 48px; }
.comunidade-texto h2 { font-size: clamp(26px, 3.2vw, 35px); line-height: 1.12; font-weight: 800; }
.comunidade-texto p { color: var(--texto-2); margin-top: 14px; }
.lista-marcada { list-style: none; margin: 20px 0 28px; display: grid; gap: 8px; }
.lista-marcada li { position: relative; padding-left: 26px; }
.lista-marcada li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; background: var(--vermelho-forte); transform: rotate(45deg); }
.nota { margin-top: 14px; font-size: 13px; color: var(--texto-3); }
@media (max-width: 860px) {
  .comunidade { grid-template-columns: 1fr; }
  .comunidade-foto { min-height: 220px; }
  .comunidade-foto::after { background: linear-gradient(0deg, var(--fundo-2), transparent 60%); }
  .comunidade-texto { padding: 28px 22px 34px; }
  .comunidade .botao { width: 100%; justify-content: center; }
}

/* ---------- Sobre ---------- */
.sobre { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 56px; align-items: center; }
.sobre-selo { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(155,18,18,.35), transparent 70%); }
.sobre-selo img { width: 72%; }
.sobre p + p { margin-top: 14px; }
.sobre p { color: var(--texto-2); }
.sobre .destaque-frase { font-size: 21px; color: var(--texto); font-style: italic; border-left: 3px solid var(--vermelho-forte); padding-left: 18px; margin-top: 24px; }
@media (max-width: 760px) { .sobre { grid-template-columns: 1fr; gap: 20px; } .sobre-selo { width: 180px; margin: 0 auto; } }

/* ---------- Rodapé ---------- */
.rodape { border-top: 1px solid var(--borda); margin-top: 40px; padding: 48px 0 32px; background: #070404; }
.rodape-grade { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.rodape h4 { font-family: var(--titulo); font-size: 12px; letter-spacing: .18em; color: var(--texto-3); margin-bottom: 14px; font-weight: 400; }
.rodape ul { list-style: none; display: grid; gap: 8px; }
.rodape a { color: var(--texto-2); }
.rodape a:hover { color: var(--texto); }
.rodape .marca { margin-bottom: 12px; }
.rodape p { color: var(--texto-3); font-size: 14px; max-width: 24em; }
.redes { display: flex; gap: 12px; margin-top: 18px; }
.redes a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--borda); display: grid; place-items: center; transition: border-color .2s, background .2s; }
.redes a:hover { border-color: var(--vermelho-forte); background: rgba(155,18,18,.15); }
.redes svg { width: 19px; height: 19px; }
.rodape-fim { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--borda); font-size: 13px; color: var(--texto-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .rodape-grade { grid-template-columns: 1fr; } }

/* ---------- Janela de vídeo ---------- */
.janela {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(5,3,3,.88); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.janela.aberta { opacity: 1; visibility: visible; }
.janela-video { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.janela-video.vertical { width: auto; height: min(88vh, 860px); aspect-ratio: 9 / 16; max-width: 100%; }
.janela-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.fechar {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(23,13,13,.9); border: 1px solid var(--borda);
}
.fechar svg { width: 20px; height: 20px; }
.janela > .fechar { position: fixed; }

/* ---------- Entrada suave ---------- */
.surge { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.surge.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .surge { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Tipografia dos vídeos ---------- */
h1, h2, h3, .marca, .preco { font-family: var(--titulo); letter-spacing: -0.035em; }
h1, h2 { line-height: 1.05; }
.marca { font-weight: 800; letter-spacing: -0.02em; }
em.acento { font-family: var(--acento); font-style: italic; font-weight: 400; letter-spacing: -0.01em; font-size: 1.12em; color: var(--vermelho-claro); }
.olho, .rodape h4 { font-family: var(--mono); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.preco { font-weight: 800; }

/* ---------- Logo com o rosto ---------- */
.marca img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(196,26,26,.6); }
.sobre-selo { border-radius: 0; background: radial-gradient(circle at 50% 55%, rgba(155,18,18,.4), transparent 68%); }
.sobre-selo img { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
@media (max-width: 760px) { .sobre-selo { width: 280px; } }
