/* ===== Home geral: caminhos por público ===== */
.hm-publicos { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.hm-publico { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 32px 28px; border-radius: 16px; text-decoration: none; color: var(--branco); }
.hm-publico h3 { margin: 4px 0 0; font: 800 24px/1.2 var(--titulo); }
.hm-publico p { margin: 0; color: var(--cinza); flex: 1; }
.hm-publico:hover .pf-ver span { transform: translateX(4px); }
@media (max-width: 1000px) { .hm-publicos { grid-template-columns: 1fr; max-width: 560px; } }

/* ===== Topo da home: réplica do frame do Figma (1080 × 1297). Tudo em % do frame ===== */
.hm-hero .feixes { display: none; }
.hm-hero h1 .nowrap { white-space: nowrap; }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 32px; align-items: center; }
.hm-visual { position: relative; margin: 0; width: min(100%, 460px); aspect-ratio: 1080 / 1297; justify-self: center;
  container-type: inline-size; --px: 0; --py: 0; clip-path: inset(-40% -40% 0 -40%); }
.hm-visual > * { position: absolute; margin: 0; }

/* camadas, de trás para a frente, na ordem do Figma */
.hm-grade   { z-index: 0; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 6.9cqw 6.9cqw; background-position: 50% 0;
  -webkit-mask-image: radial-gradient(60% 50% at 50% 55%, #000, transparent); mask-image: radial-gradient(60% 50% at 50% 55%, #000, transparent); }
.hm-estrela { z-index: 1; left: 5.926%; top: 39.784%; width: 86.389%; height: auto; transform-origin: 50% 50%;
  animation: hm-estrela 4.2s cubic-bezier(.65, 0, .35, 1) infinite; }
.hm-brilho  { z-index: 2; left: 0; top: 33.847%; width: 98.426%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255,252,235,.95) 0, rgba(255,238,175,.7) 16%, rgba(253,205,70,.35) 34%, rgba(253,200,55,.12) 50%, rgba(253,200,55,0) 68%);
  mix-blend-mode: screen; animation: hm-pulsa 4.2s ease-in-out infinite; }
.h2c, .h3c  { z-index: 3; }
.hm-visual .hm-nome { z-index: 4; left: 0; width: 100%; top: 11.6%; text-align: center; white-space: nowrap;
  font: 400 var(--hm-nome-fs, 16.55cqw)/24.074cqw "CR Impulso", var(--titulo); color: var(--amarelo); max-width: none; }
.hm-foto    { z-index: 5; left: 1.574%; top: 30.609%; width: 96.836%; height: auto; max-width: none;
  transform-origin: 50% 100%; animation: hm-respira 6s ease-in-out infinite; }
.h1c, .h4c  { z-index: 6; }
.hm-visual .hm-prazer { z-index: 7; left: 0; width: 100%; top: 10.9%; text-align: center; white-space: nowrap;
  font: 600 var(--hm-prazer-fs, 3.05cqw)/3.704cqw var(--titulo); color: #fff; max-width: none; }

/* etiquetas: tamanho e posição exatos do Figma */
.hm-card { display: flex; align-items: center; gap: 2.41cqw; box-sizing: border-box; height: 7.315cqw; padding: 0 0 0 2.13cqw;
  white-space: nowrap; border-radius: 1.3cqw; border: 1px solid rgba(255,255,255,.14);
  background: radial-gradient(55% 140% at 80% 100%, rgba(253,200,55,.30), rgba(253,200,55,0) 70%), rgba(20,20,20,.78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1.4cqw 3.6cqw rgba(0,0,0,.45);
  font: 600 var(--hm-card-fs, 1.94cqw)/1 var(--titulo); color: #fff;
  animation: hm-entra .9s cubic-bezier(.2, .9, .25, 1.25) both, hm-card 5s ease-in-out infinite;
  translate: calc(var(--px) * 14px) calc(var(--py) * 10px); transition: translate .5s cubic-bezier(.2,.8,.2,1); }
.hm-card-ic { flex: none; display: grid; place-items: center; width: 2.87cqw; height: 2.87cqw; border-radius: .55cqw; background: var(--amarelo); color: #141414; }
.hm-card-ic svg { width: 64%; height: 64%; }
.h1c { left: 3.796%;  top: 40.632%; width: 30.741cqw; animation-delay: .2s, -1s;   animation-duration: .9s, 4.6s; }
.h2c { left: 64.167%; top: 48.882%; width: 31.574cqw; animation-delay: .4s, -2.4s; animation-duration: .9s, 5.4s; animation-name: hm-entra, hm-card-b; }
.h3c { left: 12.685%; top: 66.615%; width: 25.093cqw; animation-delay: .6s, -3.1s; animation-duration: .9s, 5s;   animation-name: hm-entra, hm-card-b; }
.h4c { left: 66.389%; top: 76.484%; width: 29.352cqw; animation-delay: .8s, -.6s;  animation-duration: .9s, 5.8s; }

@keyframes hm-estrela { 0% { transform: rotate(0) scale(1); } 38% { transform: rotate(22deg) scale(1.045); } 55% { transform: rotate(30deg) scale(.985); } 70% { transform: rotate(30deg) scale(1.01); } 100% { transform: rotate(30deg) scale(1); } }
@keyframes hm-pulsa { 0%, 100% { opacity: .85; } 40% { opacity: 1; } }
@keyframes hm-respira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.01); } }
@keyframes hm-entra { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
@keyframes hm-card { 0%, 100% { transform: translate(0, 0) rotate(0); } 30% { transform: translate(.6cqw, -1.2cqw) rotate(-1deg); } 65% { transform: translate(-.4cqw, -.4cqw) rotate(.8deg); } }
@keyframes hm-card-b { 0%, 100% { transform: translate(0, 0) rotate(0); } 35% { transform: translate(-.6cqw, -1cqw) rotate(1deg); } 70% { transform: translate(.4cqw, -1.4cqw) rotate(-.8deg); } }

@media (min-width: 1001px) {
  .hm-hero { padding: clamp(24px, 3vw, 48px) 0 0; }
  .hm-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 16px; align-items: end; }
  .hm-hero h1 { font-size: clamp(44px, 4.6vw, 74px); max-width: none; }
  .hm-texto { position: relative; z-index: 8; padding-bottom: clamp(32px, 4vw, 64px); }
  .hm-texto p { max-width: 44ch; }
  .hm-visual { width: min(120%, 660px, calc((100vh - 100px) * 1080 / 1297)); justify-self: end; margin-right: -6%; }
}
@media (max-width: 1000px) {
  .hm-hero-grid { grid-template-columns: 1fr; }
  .hm-hero { padding-bottom: 0; }
  .hm-visual { margin-top: 8px; }
  /* no celular as etiquetas de trás somem e as da frente crescem para dar leitura */
  .h2c, .h3c { display: none; }
  .hm-card { --hm-card-fs: 3.4cqw; height: 10cqw; gap: 2.6cqw; padding-left: 2.8cqw; padding-right: 3.4cqw; width: auto; border-radius: 2cqw; }
  .hm-card-ic { width: 4.4cqw; height: 4.4cqw; border-radius: 1cqw; }
  .h1c { left: 1%; top: 72%; }
  .h4c { left: auto; right: 1%; top: 86%; }
}
@media (prefers-reduced-motion: reduce) { .hm-estrela, .hm-foto, .hm-card, .hm-brilho { animation: none; translate: none; } }
html[data-contrast] :is(.hm-brilho, .hm-grade) { display: none; }
html[data-contrast] .hm-card { color: #fff; border-color: rgba(255,255,255,.35); background: #181818; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-contrast="claro"] :is(.hm-nome, .hm-prazer) { color: #000; }
.hm-foto { top: calc(30.609% + 3px); }
@media (min-width: 1001px) { .hm-texto p { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; max-width: min(72ch, calc(100% - 56px)); } }
@media (min-width: 1001px) {
  .hm-texto { align-self: center; padding-bottom: 0; }
  .hm-texto p { max-width: none; white-space: nowrap; }
}
@media (max-width: 1000px) { .br-pc { display: none; } }
@media (min-width: 1001px) {
  .hm-texto .etiqueta { display: block; margin-bottom: 40px; }
  .hm-texto h1 { margin-top: 0; }
  .hm-texto p { margin-bottom: 0; }
  .hm-texto .acoes { margin-top: 40px; }
}
/* espaçamentos iguais: etiqueta → título e texto → botões */
.hm-hero .etiqueta { margin-bottom: 40px; }
.hm-hero .hm-texto p { margin-bottom: 40px; }
/* cada etiqueta reage sozinha à proximidade do mouse (valores vêm do script) */
.hm-card { translate: var(--mx, 0px) var(--my, 0px); transition: none; }

/* ===== Banners das áreas ===== */
.bn-lista { display: grid; gap: 24px; }
.bn { position: relative; display: block; min-height: clamp(300px, 34vw, 440px); border-radius: 24px; overflow: hidden; text-decoration: none; color: #fff; isolation: isolate;
  border: 1px solid var(--linha); background:
    radial-gradient(60% 90% at 85% 55%, rgba(253,200,55,.35), rgba(253,200,55,0) 60%),
    linear-gradient(120deg, #141414 0%, #1b1b1b 55%, #241e0c 100%); }
.bn-fundo { position: absolute; inset: 0; z-index: -1; }
.bn-fundo::before { content: ""; position: absolute; right: -3%; top: 50%; width: 38%; aspect-ratio: 1; translate: 0 -50%; opacity: .9;
  background: #fcc937; clip-path: polygon(50% 0%,58.6% 17.8%,75% 6.7%,73.9% 26.1%,93.3% 25%,82.2% 41.4%,100% 50%,82.2% 58.6%,93.3% 75%,73.9% 73.9%,75% 93.3%,58.6% 82.2%,50% 100%,41.4% 82.2%,25% 93.3%,26.1% 73.9%,6.7% 75%,17.8% 58.6%,0% 50%,17.8% 41.4%,6.7% 25%,26.1% 26.1%,25% 6.7%,41.4% 17.8%);
  transition: rotate .9s cubic-bezier(.2,.8,.2,1), scale .9s cubic-bezier(.2,.8,.2,1); }
.bn-fundo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .9s cubic-bezier(.2,.8,.2,1); }
.bn-fundo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.7) 42%, rgba(10,10,10,.05) 75%); }
.bn-texto { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; min-height: inherit; max-width: 560px; padding: clamp(28px, 4vw, 56px); box-sizing: border-box; }
.bn-titulo { font: 800 clamp(36px, 5vw, 68px)/.95 var(--titulo); letter-spacing: -0.03em; }
.bn-titulo em { display: block; font: 400 1.15em/.9 "CR Impulso", var(--titulo); font-style: normal; color: var(--amarelo); letter-spacing: 0; }
.bn-sinopse { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.55; color: rgba(255,255,255,.82); max-width: 46ch; }
.bn-cta { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 6px; padding: 12px 20px; border-radius: 999px; background: var(--amarelo); color: #111; font: 700 15px/1 var(--titulo); }
.bn-cta svg { width: 18px; height: 18px; transition: translate .3s; }
.bn:hover .bn-fundo img { scale: 1.05; }
.bn:hover .bn-fundo::before { rotate: 30deg; scale: 1.06; }
.bn:hover .bn-cta svg { translate: 4px 0; }
.bn:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 4px; }
@media (max-width: 700px) {
  .bn { min-height: 420px; }
  .bn-fundo::before { width: 80%; right: -25%; top: 22%; }
  .bn-fundo::after { background: linear-gradient(0deg, rgba(10,10,10,.95) 0%, rgba(10,10,10,.75) 45%, rgba(10,10,10,.1) 85%); }
}
@media (prefers-reduced-motion: reduce) { .bn-fundo img, .bn-fundo::before { transition: none; } }
html[data-contrast] .bn { background: var(--c-fundo); border: 2px solid var(--c-linha); }
html[data-contrast] .bn-fundo { display: none; }
html[data-contrast] .bn, html[data-contrast] .bn-sinopse { color: var(--c-texto, inherit); }
html[data-contrast="claro"] .bn-titulo em { color: #000; text-decoration: underline; }
.bn.luz > .bn-fundo { position: absolute; inset: 0; z-index: 0; border-radius: inherit; overflow: hidden; }
.bn.luz > .bn-texto { position: relative; z-index: 2; }

/* Banners de área (v53): fundo da arte do Figma sem o texto; título, texto e botão em HTML,
   nas mesmas proporções da arte (1920×900), escalando com a largura do banner (cqw). */
.bn.bn-arte { min-height: 0; aspect-ratio: 1920 / 900; background: #0b0b0b; container-type: inline-size; }
.bn.bn-arte > .bn-fundo { position: absolute; inset: 0; }
.bn.bn-arte > .bn-fundo::before, .bn.bn-arte > .luz-halo { display: none; }
.bn.bn-arte .bn-fundo img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.bn.bn-arte > .bn-fundo::after { background: linear-gradient(90deg, rgba(11,11,11,.55) 0%, rgba(11,11,11,.3) 38%, rgba(11,11,11,0) 58%); }
.bn.bn-arte:hover .bn-fundo img { scale: 1.02; }
@media (min-width: 701px) {
  .bn.bn-arte > .bn-texto { position: absolute; inset: 0; max-width: none; min-height: 0; justify-content: flex-start; gap: 0; padding: 8.77cqw 0 0 7.9cqw; }
  .bn.bn-arte .bn-titulo { font-size: clamp(28px, 5cqw, 96px); line-height: 1; letter-spacing: -0.035em; padding-left: 1.55cqw; }
  .bn.bn-arte .bn-titulo em { font-size: 1.62em; line-height: .95; margin: .12em 0 0 -.19em; }
  .bn.bn-arte[href="servicos/"] .bn-sinopse { max-width: 38.5cqw; }
  .bn.bn-arte:not([href="infoprodutores/"]) .bn-sinopse { margin-top: 3.14cqw; }
  .bn.bn-arte:not([href="infoprodutores/"]) .bn-cta { margin-top: 3.64cqw; }
  .bn.bn-arte .bn-sinopse { margin-top: 4.6cqw; max-width: 43cqw; font-size: clamp(14px, 1.66cqw, 32px); line-height: 1.32; color: rgba(255,255,255,.9); }
  .bn.bn-arte .bn-sinopse b { color: #fff; font-weight: 700; }
  .bn.bn-arte .bn-cta { margin-top: 3.9cqw; gap: .7em; padding: .58em 1em; letter-spacing: -0.045em; font-size: clamp(14px, 1.68cqw, 34px); box-shadow: 0 0 2.6cqw rgba(253,200,55,.45); }
  .bn.bn-arte .bn-cta svg { width: 1.1em; height: 1.1em; }
}
@media (max-width: 700px) {
  .bn.bn-arte { aspect-ratio: auto; display: flex; flex-direction: column; }
  .bn.bn-arte > .bn-fundo { position: relative; inset: auto; aspect-ratio: 920 / 900; }
  .bn.bn-arte > .bn-fundo::after { background: linear-gradient(180deg, rgba(11,11,11,0) 60%, #0b0b0b 100%); }
  .bn.bn-arte > .bn-texto { position: relative; margin-top: -56px; padding: 0 24px 28px; z-index: 2; min-height: 0; }
  .bn.bn-arte .bn-sinopse b { color: #fff; }
}
html[data-contrast] .bn.bn-arte { aspect-ratio: auto; }
html[data-contrast] .bn.bn-arte > .bn-texto { position: relative; inset: auto; margin: 0; padding: clamp(28px, 4vw, 56px); }
