/* Revista Nova Fase 0.9.4 — ajustes visuais da home e WhatsApp flutuante. */
/* Imagens do bloco triplo: mesma linguagem de cards do portal. */
.nf-home .nf-home-triple-lead-link {
  border-radius: 13px;
  overflow: hidden;
  isolation: isolate;
}
.nf-home .nf-home-triple-lead-link img { border-radius: inherit; }
.nf-home .nf-home-triple-image-placeholder { border-radius: inherit; }
/* O quadro de destaques preenche a altura livre depois do cabeçalho.
   A variável é atualizada pelo JS a partir da altura real do header. */
@media (min-width: 791px) {
  .nf-home .nf-featured-layout {
    height: var(--nf-opening-available-height, max(554px, calc(100dvh - 150px)));
    min-height: var(--nf-opening-available-height, max(554px, calc(100dvh - 150px)));
    align-items: stretch;
  }
  .nf-home .nf-featured-rotator,
  .nf-home .nf-featured-side {
    height: 100%;
    min-height: 100% !important;
    box-sizing: border-box;
  }
  .nf-home .nf-featured-side {
    overflow: hidden;
  }
}
/* No celular, o slide ocupa pelo menos o restante da primeira tela. As manchetes
   laterais seguem abaixo, sem serem cortadas para caber artificialmente. */
@media (max-width: 790px) {
  .nf-home .nf-featured-rotator,
  .nf-featured-rotator {
    min-height: var(--nf-opening-mobile-height, max(425px, calc(100dvh - 105px))) !important;
  }
}
/* WhatsApp: SEM posição no fluxo do documento; sempre no canto direito da janela. */
a.nf-wa-float.nf-wa-float--094 {
  position: fixed !important;
  inset: auto 22px calc(22px + env(safe-area-inset-bottom, 0px)) auto !important;
  z-index: 12000 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  box-sizing: border-box;
  border: 0;
  border-radius: 50%;
  background: #25D366;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 5px 17px rgba(0,0,0,.24), 0 0 0 2px rgba(255,255,255,.94);
  isolation: isolate;
  transform: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
a.nf-wa-float.nf-wa-float--094 svg { display: block; position: relative; z-index: 1; flex: none; fill: #fff; width: 31px; height: 31px; }
a.nf-wa-float.nf-wa-float--094::before,
a.nf-wa-float.nf-wa-float--094::after {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  inset: -2px;
  border: 2px solid rgba(37,211,102,.75);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: nf-wa-ripple-094 3s ease-out infinite;
}
a.nf-wa-float.nf-wa-float--094::after { animation-delay: 1.5s; }
a.nf-wa-float.nf-wa-float--094:hover,
a.nf-wa-float.nf-wa-float--094:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 23px rgba(0,0,0,.29), 0 0 0 2px rgba(255,255,255,.95);
}
a.nf-wa-float.nf-wa-float--094:focus-visible { outline: 3px solid #163f25; outline-offset: 5px; }
@keyframes nf-wa-ripple-094 {
  0% { transform: scale(1); opacity: 0; }
  12% { opacity: .75; }
  68%, 100% { transform: scale(1.8); opacity: 0; }
}
@media(max-width: 720px) {
  a.nf-wa-float.nf-wa-float--094 {
    width: 52px;
    height: 52px;
    right: 16px !important;
    bottom: calc(17px + env(safe-area-inset-bottom, 0px)) !important;
  }
  a.nf-wa-float.nf-wa-float--094 svg { width: 28px; height: 28px; }
}
@media(prefers-reduced-motion:reduce) {
  a.nf-wa-float.nf-wa-float--094,
  a.nf-wa-float.nf-wa-float--094:hover,
  a.nf-wa-float.nf-wa-float--094:focus-visible { transition: none; transform: none; }
  a.nf-wa-float.nf-wa-float--094::before,
  a.nf-wa-float.nf-wa-float--094::after { animation: none; display: none; }
}
