/*
 * CNED 12 v0.5.2 — ajuste restrito a Sobre, Diretoria e Vídeo.
 * Base preservada: versão 0.4.0. Sem dependências externas adicionais.
 * A aparência do Confevo é referência de direção visual, não de código/imagens.
 */

/* SOBRE: textura original muito discreta e recortes independentes das fotos. */
body.home .cf-about {
  background-color: #fbfaff;
  background-image:
    linear-gradient(110deg, rgb(255 255 255 / 42%), color-mix(in srgb, var(--cned-accent) 4%, transparent)),
    url('../images/cned-about-grain.png'),
    radial-gradient(ellipse at 87% 70%, color-mix(in srgb, var(--cned-accent) 8%, white), transparent 62%);
  background-repeat: no-repeat, repeat, no-repeat;
  background-size: cover, 256px 256px, cover;
}
body.home .cf-about-media {
  width: 100%;
  max-width: 610px;
  height: 550px;
  overflow: visible;
  isolation: isolate;
}
body.home .cf-about-image {
  position: absolute; /* corrige position:relative herdada do efeito flash */
  /* A foto maior ocupa a área esquerda; a segunda foto ultrapassa sua borda. */
  inset: 0 15.5% 0 0;
  border-radius: 11px;
  overflow: hidden;
}
body.home .cf-about-inset {
  width: 35%;
  height: 40%;
  bottom: 6.5%;
  right: 0;
  border: 5px solid #fff;
  border-radius: 12px;
  box-shadow: 0 18px 43px rgb(28 20 63 / 17%);
  z-index: 2;
}
body.home .cf-about-inset img { object-position: center top; }
/* Duas marcas de conferência, sem círculo pesado e sem carregar ícone externo. */
body.home .cf-check-list li {
  position: relative;
  gap: 10px;
  align-items: flex-start;
}
body.home .cf-check-list li::before {
  content: '';
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 20px;
  margin-top: 2px;
  background: var(--cned-accent);
  border: 0;
  border-radius: 0;
  -webkit-mask: url('../images/cned-double-check.svg') center / contain no-repeat;
  mask: url('../images/cned-double-check.svg') center / contain no-repeat;
}
body.home .cf-about-copy > p:not(.cf-overline) {
  max-width: 630px;
}

/* DIRETORIA (v0.5.39) — sobreposição roxa institucional somente na foto.
   Borda, legenda e intensidade do efeito anterior preservadas. */
body.home .cf-speakers .cf-speaker-photo.cned-flash-target::before {
  display: none; /* Não reintroduzir o flash diagonal antigo. */
}
body.home .cf-speakers .cf-speaker-photo.cned-flash-target::after {
  content: '';
  display: block; /* Sobrescreve o display:none legado para ::after. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: normal;
  animation: none; /* Neutraliza a animação legado do flash no próprio retrato. */
  will-change: auto;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  /* Roxo dominante do tema, combinando primary e accent existentes. */
  --cned-director-hover-tone: color-mix(in srgb, var(--cned-primary) 30%, var(--cned-accent) 70%);
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--cned-director-hover-tone) 72%, transparent) 0%,
    color-mix(in srgb, var(--cned-director-hover-tone) 58%, transparent) 22%,
    color-mix(in srgb, var(--cned-director-hover-tone) 32%, transparent) 42%,
    color-mix(in srgb, var(--cned-director-hover-tone) 10%, transparent) 58%,
    transparent 72%
  );
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 320ms ease-out, transform 320ms ease-out;
}
body.home .cf-speakers .cf-speaker-card:is(:hover, :focus-within) .cf-speaker-photo.cned-flash-target::after {
  opacity: 1;
  transform: translateY(0);
}
body.home .cf-speakers .cf-speaker-card {
  overflow: hidden;
  isolation: isolate;
  transition: transform 300ms ease, box-shadow 320ms ease, border-color 320ms ease;
}
body.home .cf-speakers .cf-speaker-card:is(:hover, :focus-within) {
  border-color: color-mix(in srgb, var(--cned-accent) 75%, white);
  box-shadow: 0 14px 35px rgb(36 23 79 / 11%),
              inset 0 0 0 1px color-mix(in srgb, var(--cned-accent) 24%, transparent);
}
/* A legenda permanece na cor original mesmo quando o card está destacado. */
body.home .cf-speakers .cf-speaker-card:is(:hover, :focus-within) .cf-speaker-label {
  background: color-mix(in srgb, var(--cned-primary) 8%, white);
}
@media (hover: none), (pointer: coarse) {
  body.home .cf-speakers .cf-speaker-photo.cned-flash-target::after {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.home .cf-speakers .cf-speaker-card,
  body.home .cf-speakers .cf-speaker-photo.cned-flash-target::after {
    transition: none;
  }
  body.home .cf-speakers .cf-speaker-photo.cned-flash-target::after {
    transform: none;
  }
}

/* VÍDEO: largura completa, altura editorial e foto sem filtros ou véu cromático. */
body.home .cf-video {
  aspect-ratio: 2.65;
  min-height: 0;
  height: auto !important;
  background: transparent;
  background-image: none;
  overflow: hidden;
}
body.home .cf-video::before,
body.home .cf-video-shade { display: none; }
body.home .cf-video-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}
body.home .cf-video-play {
  width: clamp(76px, 6vw, 110px);
  height: clamp(76px, 6vw, 110px);
  background: var(--cned-primary);
  border: 1px solid rgb(255 255 255 / 30%);
  box-shadow: 0 8px 30px rgb(0 0 0 / 22%);
}

@media (max-width: 1100px) {
  body.home .cf-about-media { height: 480px; max-width: 570px; }
  body.home .cf-about-inset { bottom: 7%; }
  body.home .cf-video { aspect-ratio: 2.3; }
}
@media (max-width: 720px) {
  body.home .cf-about-media { height: clamp(285px, 88vw, 390px); }
  body.home .cf-about-copy { display: flex; flex-direction: column; align-items: flex-start; }
  body.home .cf-about-copy .cned-disc-play {
    position: relative;
    top: auto;
    right: auto;
    order: 1;
    flex: 0 0 auto;
    width: 112px;
    height: 112px;
    transform: none;
    margin: 12px 0 20px;
  }
  body.home .cf-about-bottom { order: 2; }
  body.home .cf-about-image { inset: 0 15% 0 0; }
  body.home .cf-about-inset { width: 38%; height: 42%; right: 0; bottom: 7%; border-width: 4px; }
  body.home .cf-video { aspect-ratio: 1.75; }
  body.home .cf-video-play { width: 84px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  body.home .cf-speaker-photo::after { transition: none; transform: none; }
}
