﻿/* Home pÃºblica V2 â€” escopo restrito Ã  Ã¡rea central da capa. */
@media (min-width: 901px) {
  .public-wrapper:has(#coverView:not(.d-none)) > .header {
    width: min(1180px, calc(100% - 36px));
    height: auto;
    margin: 18px auto;
    padding: 18px 28px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .05);
    border-top: 5px solid var(--vermelho);
    border-radius: 12px;
    background: #fff;
    color: var(--texto);
    box-shadow: 0 4px 16px rgba(15, 23, 42, .07);
  }

  .public-wrapper:has(#coverView:not(.d-none)) > .header::after {
    display: block;
  }

  .public-wrapper:has(#coverView:not(.d-none)) .logo-wrap {
    padding: 0;
    background: transparent;
  }

  .public-wrapper:has(#coverView:not(.d-none)) .logo-public {
    width: 160px;
  }

  .public-wrapper:has(#coverView:not(.d-none)) .header-title p {
    color: var(--cinza) !important;
  }

  .public-wrapper:has(#coverView:not(.d-none)) .header-title > span:last-child {
    color: #9ca3af !important;
  }

  .public-wrapper:has(#coverView:not(.d-none)) .header-badge {
    border-color: rgba(0, 91, 170, .15);
    background: var(--azul-claro);
    color: var(--azul);
  }
}

#coverView.cover-view {
  --home-navy: #031631;
  --home-blue: #005baa;
  --home-red: #ed1c24;
  --home-orange: #f36b21;
  --home-ink: #09254a;
  --home-muted: #4f6074;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 104px);
  margin: 0;
  padding: clamp(34px, 5vh, 68px) clamp(24px, 5vw, 86px) 28px;
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(600px, 1.22fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 24px clamp(34px, 4vw, 70px);
  background:
    radial-gradient(ellipse at 82% 52%, rgba(0, 91, 170, .34), transparent 31%),
    repeating-radial-gradient(ellipse at 100% 100%, transparent 0 18px, rgba(38, 126, 225, .09) 19px 21px),
    linear-gradient(120deg, #031631 0%, #052650 64%, #07336b 100%);
  color: #fff;
  overflow: hidden;
}

#coverView .cover-hero {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 18px 0;
  display: block;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

#coverView .cover-hero::before,
#coverView .cover-hero::after {
  display: none;
}

#coverView .cover-hero h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

#coverView .cover-hero p {
  max-width: 590px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(38px, 3vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
}

#coverView .cover-hero p strong {
  color: #54aaff;
}

#coverView .cover-description {
  position: relative;
  display: block;
  max-width: 520px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  line-height: 1.55;
}

#coverView .cover-actions {
  justify-content: flex-start;
}

#coverView .cover-actions .btn {
  width: auto;
  min-width: 220px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
}

#coverView .plan-carousel {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 72px 18px 12px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 10, 30, .32);
}

#coverView .plan-tabs {
  position: absolute;
  top: 16px;
  left: 50%;
  display: flex;
  width: min(520px, calc(100% - 54px));
  padding: 3px;
  transform: translateX(-50%);
  border: 1px solid #dce4ed;
  border-radius: 999px;
  background: #f7f9fc;
  box-shadow: inset 0 2px 5px rgba(15, 35, 60, .05);
}

#coverView .plan-tabs button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 800;
}

#coverView .plan-tabs button.active[data-plan-tab="1"] {
  background: #ED6066;
  color: #fff;
  box-shadow: 0 5px 16px rgba(237, 28, 36, .24);
}

#coverView .plan-tabs button.active[data-plan-tab="0"] {
  background: #005baa;
  color: #fff;
  box-shadow: 0 5px 16px rgba(0, 91, 170, .24);
}

#coverView .carousel-progress-wrap {
  display: none;
}

#coverView .carousel-track,
#coverView .plan-slide-inner {
  min-height: clamp(350px, 42vh, 430px);
}

#coverView .plan-slide-inner,
#coverView .plan-slide-inner--familia {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8e0e9;
  border-radius: 16px;
  background: #fff;
  background-image: none;
  box-shadow: 0 10px 30px rgba(10, 37, 69, .12);
}

#coverView .plan-slide-inner::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  background-image: url("/frontend/plano-iii-bg.png");
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
}

#coverView .plan-slide-inner--familia::after {
  background-image: url("/frontend/plano-familia-bg.png");
}

#coverView .plan-slide-content {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: auto;
  max-width: none;
  min-width: 0;
  padding: clamp(24px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, #fff 0%, #f4f8fd 100%);
}

#coverView .plan-slide-badge {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 9px;
}

#coverView .plan-slide-title {
  margin-bottom: 9px;
  color: var(--home-ink);
  font-size: clamp(26px, 2vw, 36px);
}

#coverView .plan-slide-subtitle {
  max-width: 410px;
  margin-bottom: 16px;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.48;
}

#coverView .plan-slide-benefits {
  gap: 7px;
  margin-bottom: 20px;
}

#coverView .plan-slide-benefits li {
  color: #26384e;
  font-size: 12px;
  line-height: 1.35;
}

#coverView .plan-slide-cta {
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 12px;
}

#coverView .carousel-nav {
  min-height: 28px;
  padding: 5px 0 0;
  border: 0;
  background: transparent;
}

#coverView .carousel-btn {
  position: absolute;
  top: 52%;
  z-index: 4;
  width: 40px;
  height: 40px;
  background: #fff;
}

#coverView .carousel-btn:first-child { left: -21px; }
#coverView .carousel-btn:last-child { right: -21px; }

#coverView .contact-grid {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 0;
}

#coverView .contact-card {
  grid-template-columns: 42px 1fr auto;
  min-height: 72px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(0, 10, 30, .18);
}

#coverView .contact-card strong { color: var(--home-ink); }
#coverView .contact-card p { font-size: 12px; }
#coverView .contact-card a { min-height: 36px; padding: 0 18px; }
#coverView .public-cnpj { display: none; }

@media (min-width: 1500px) {
  #coverView.cover-view {
    grid-template-columns: minmax(430px, 560px) minmax(760px, 950px);
    justify-content: center;
  }
}

@media (max-width: 1100px) {
  #coverView.cover-view {
    min-height: 0;
    grid-template-columns: minmax(280px, .72fr) minmax(500px, 1.28fr);
    padding: 32px 28px 24px;
    gap: 20px 28px;
  }
  #coverView .cover-hero p { font-size: 37px; }
  #coverView .cover-description { font-size: 14px; }
  #coverView .plan-slide-inner,
  #coverView .plan-slide-inner--familia { grid-template-columns: 46% 54%; }
  #coverView .plan-slide-content { padding: 24px; }
  #coverView .plan-slide-benefits li { font-size: 11px; }
}

@media (max-width: 900px) {
  html,
  body:has(#coverView:not(.d-none)) {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .main.public-wrapper:has(#coverView:not(.d-none)) {
    width: 100%;
    max-width: none;
    overflow-x: hidden;
  }

  #coverView.cover-view {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 30px 22px 22px;
    align-content: start;
    overflow: visible;
  }
  #coverView .cover-hero {
    padding: 12px 0 8px;
  }
  #coverView .cover-hero p {
    max-width: 600px;
    font-size: clamp(34px, 6vw, 48px);
    overflow-wrap: anywhere;
  }
  #coverView .cover-description { max-width: 600px; }
  #coverView .plan-carousel { padding-top: 70px; }
  #coverView .carousel-track,
  #coverView .plan-slide-inner { min-height: 0; }
  #coverView .plan-slide-inner,
  #coverView .plan-slide-inner--familia {
    grid-template-columns: 1fr;
    grid-template-rows: clamp(220px, 43vw, 330px) auto;
  }
  #coverView .plan-slide-inner::after {
    grid-column: 1;
    grid-row: 1;
    background-size: contain;
    background-position: center;
    background-color: #eef4fa;
  }
  #coverView .plan-slide-content {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
  }
  #coverView .contact-grid { grid-column: 1; }
}

@media (max-width: 600px) {
  .public-wrapper:has(#coverView:not(.d-none)) > .header {
    width: 100%;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
    overflow: hidden;
  }
  .public-wrapper:has(#coverView:not(.d-none)) .header-title {
    min-width: 0;
    max-width: 54%;
  }
  .public-wrapper:has(#coverView:not(.d-none)) .header-title > span:last-child {
    display: none;
  }
  .public-wrapper:has(#coverView:not(.d-none)) .header-badge {
    max-width: 100%;
    white-space: nowrap;
  }
  #coverView.cover-view {
    padding: 24px 12px 16px;
    gap: 16px;
  }
  #coverView .cover-hero { padding: 8px 10px; }
  #coverView .cover-hero h2 { margin-bottom: 9px; font-size: 10px; }
  #coverView .cover-hero p { margin-bottom: 12px; font-size: 31px; }
  #coverView .cover-description { margin-bottom: 18px; font-size: 13px; }
  #coverView .cover-actions .btn { min-width: 0; min-height: 42px; font-size: 12px; }
  #coverView .plan-carousel {
    padding: 62px 9px 8px;
    border-radius: 18px;
  }
  #coverView .plan-tabs { top: 12px; width: calc(100% - 28px); }
  #coverView .plan-tabs button { min-height: 36px; font-size: 11px; }
  #coverView .carousel-track,
  #coverView .plan-slide-inner { min-height: 0; }
  #coverView .plan-slide-inner,
  #coverView .plan-slide-inner--familia {
    grid-template-columns: 1fr;
    grid-template-rows: 170px auto;
  }
  #coverView .plan-slide-inner::after {
    grid-column: 1;
    grid-row: 1;
    background-size: contain;
    background-position: center;
    background-color: #eef4fa;
  }
  #coverView .plan-slide-content {
    grid-column: 1;
    grid-row: 2;
    padding: 18px 14px;
  }
  #coverView .plan-slide-title { font-size: 24px; }
  #coverView .plan-slide-subtitle { margin-bottom: 11px; font-size: 10px; }
  #coverView .plan-slide-benefits { gap: 5px; margin-bottom: 13px; }
  #coverView .plan-slide-benefits li { font-size: 9px; }
  #coverView .plan-slide-cta { width: 100%; min-height: 40px; padding: 8px 9px; font-size: 9px; }
  #coverView .carousel-btn { display: none; }
  #coverView .contact-card { grid-template-columns: 34px 1fr; padding: 12px; }
  #coverView .contact-card a { grid-column: 1 / -1; justify-self: stretch; }
}

/* Acabamento alinhado Ã  referÃªncia aprovada. */
.public-home-footer { display: none; }

.public-wrapper:has(#coverView:not(.d-none)) .public-home-footer {
  display: block;
  padding: 30px max(24px, calc((100% - 1180px) / 2)) 18px;
  background: #fff;
  color: #34445a;
}

.public-home-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  align-items: start;
}

.public-home-footer-brand {
  display: flex;
  align-items: center;
}

.public-home-footer-brand img { width: 128px; }
.public-home-footer-brand p,
.public-home-footer span,
.public-home-footer a {
  margin: 0;
  color: #536176;
  font-size: 12px;
  line-height: 1.65;
  text-decoration: none;
}

.public-home-footer-grid > div:not(.public-home-footer-brand) {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.public-home-footer strong {
  margin-bottom: 4px;
  color: #102440;
  font-size: 12px;
}

.public-home-footer-bottom {
  margin-top: 26px;
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #dce3eb;
}

.public-home-footer-bottom nav { display: flex; gap: 32px; }

@media (min-width: 901px) {
  body:has(#coverView:not(.d-none)) { overflow-y: auto; }

  .public-wrapper:has(#coverView:not(.d-none)) > .header {
    width: 100%;
    margin: 0;
    padding-left: max(28px, calc((100% - 1360px) / 2));
    padding-right: max(28px, calc((100% - 1360px) / 2));
    border: 0;
    border-radius: 0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .08);
  }

  #coverView.cover-view {
    min-height: 670px;
    padding: 42px max(28px, calc((100% - 1360px) / 2)) 38px;
    grid-template-columns: minmax(400px, 500px) minmax(690px, 820px);
    grid-template-rows: auto auto;
    justify-content: center;
    align-content: center;
    gap: 30px 54px;
  }

  #coverView .plan-carousel {
    padding: 72px 14px 12px;
  }

  #coverView .carousel-track,
  #coverView .plan-slide-inner { min-height: 350px; }

  #coverView .plan-slide-content { padding: 28px; }
  #coverView .contact-grid { max-width: 1360px; }
}

@media (max-width: 1100px) {
  .public-home-footer-grid { grid-template-columns: repeat(3, 1fr); }
  .public-home-footer-brand { grid-column: 1 / -1; }
}

/* Mobile final â€” proporÃ§Ãµes do layout de referÃªncia. */
@media (max-width: 600px) {
  .public-wrapper:has(#coverView:not(.d-none)) > .header {
    position: relative;
    height: 108px;
    padding: 14px 16px 12px;
    align-items: flex-start;
    overflow: visible;
    background: #031631;
    border: 0;
  }

  .public-wrapper:has(#coverView:not(.d-none)) .logo-wrap {
    align-self: center;
  }

  .public-wrapper:has(#coverView:not(.d-none)) .logo-public {
    content: url('/frontend/static/admin/logo-brf-previdencia-transparente.png');
    width: 126px;
    max-height: 76px;
    object-fit: contain;
  }

  .public-wrapper:has(#coverView:not(.d-none)) .header-title {
    max-width: 54%;
    align-self: center;
    gap: 3px;
  }

  .public-wrapper:has(#coverView:not(.d-none)) .header-badge {
    align-self: flex-end;
    padding: 4px 8px;
    font-size: 8px;
  }

  .public-wrapper:has(#coverView:not(.d-none)) .header-title p {
    display: block;
    max-width: 150px;
    color: #fff !important;
    font-size: 8px;
    line-height: 1.3;
    text-align: right;
  }

  .public-wrapper:has(#coverView:not(.d-none)) .header-title > span:last-child {
    display: block;
    color: #dbe7f6 !important;
    font-size: 7px !important;
  }

  #coverView.cover-view {
    padding: 0 5px 16px;
    gap: 0;
  }

  #coverView .cover-hero {
    min-height: 300px;
    padding: 42px 18px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #coverView .cover-hero h2 {
    margin-bottom: 14px;
    font-size: 10px;
  }

  #coverView .cover-hero p {
    max-width: 340px;
    margin-bottom: 24px;
    font-size: clamp(28px, 8.2vw, 34px);
    line-height: 1.16;
  }

  #coverView .cover-hero p strong { color: inherit; }

  #coverView .cover-actions .btn {
    min-height: 48px;
    padding: 11px 18px;
    font-size: 12px;
  }

  #coverView .cover-hero::after {
    content: '';
    position: static;
    display: block;
    width: 54px;
    height: 9px;
    margin-top: 22px;
    border-radius: 999px;
    background:
      radial-gradient(circle at 5px 50%, #ff302d 0 4px, transparent 4.5px),
      radial-gradient(circle at 27px 50%, transparent 0 3px, #fff 3px 4px, transparent 4.5px),
      radial-gradient(circle at 49px 50%, transparent 0 3px, #fff 3px 4px, transparent 4.5px);
  }

  #coverView .plan-carousel {
    width: 100%;
    margin: 0;
    padding: 62px 7px 9px;
    border-radius: 20px;
    overflow: hidden;
  }

  #coverView .plan-tabs {
    top: 11px;
    width: calc(100% - 18px);
    max-width: none;
  }

  #coverView .plan-tabs button {
    min-width: 0;
    min-height: 40px;
    padding: 6px 8px;
    font-size: 11px;
  }

  #coverView .carousel-track,
  #coverView .plan-slide-inner { min-height: 455px; }

  #coverView .plan-slide-inner,
  #coverView .plan-slide-inner--familia {
    grid-template-columns: 58% 42%;
    border-radius: 13px;
  }

  #coverView .plan-slide-content {
    padding: 20px 13px 18px;
  }

  #coverView .plan-slide-badge {
    margin-bottom: 10px;
    padding: 4px 7px;
    font-size: 7px;
  }

  #coverView .plan-slide-title {
    margin-bottom: 10px;
    font-size: 24px;
  }

  #coverView .plan-slide-subtitle {
    margin-bottom: 15px;
    font-size: 10px;
    line-height: 1.45;
  }

  #coverView .plan-slide-benefits {
    gap: 9px;
    margin-bottom: 20px;
  }

  #coverView .plan-slide-benefits li {
    font-size: 9px;
    line-height: 1.4;
  }

  #coverView .plan-slide-cta {
    min-height: 47px;
    padding: 9px 10px;
    font-size: 10px;
    line-height: 1.25;
  }

  #coverView .carousel-nav { min-height: 32px; }
  #coverView .carousel-dots { min-width: 66px; }

  #coverView .contact-grid {
    margin-top: 14px;
    padding: 0;
  }

  #coverView .contact-card {
    min-height: 104px;
    padding: 15px 12px;
    border-radius: 16px;
  }
}

/* Card fotogrÃ¡fico: imagem contÃ­nua com conteÃºdo em destaque. */
#coverView .plan-slide-inner,
#coverView .plan-slide-inner--familia {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  background: #eef4fa;
}

#coverView .plan-slide-inner::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

#coverView .plan-slide-inner--familia::after {
  background-position: center;
}

#coverView .plan-slide-content {
  position: relative;
  z-index: 1;
  width: 52%;
  min-height: inherit;
  padding: clamp(24px, 3vw, 42px);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, .98) 0%,
    rgba(255, 255, 255, .95) 72%,
    rgba(255, 255, 255, .68) 90%,
    transparent 100%
  );
}

@media (max-width: 900px) {
  #coverView .plan-slide-inner::after,
  #coverView .plan-slide-inner--familia::after {
    background-size: auto 100%;
    background-position: right center;
  }

  #coverView .plan-slide-content {
    width: 62%;
    min-height: 430px;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, .98) 0%,
      rgba(255, 255, 255, .95) 74%,
      rgba(255, 255, 255, .62) 92%,
      transparent 100%
    );
  }
}

@media (max-width: 600px) {
  #coverView .plan-slide-inner::after,
  #coverView .plan-slide-inner--familia::after {
    background-size: auto 100%;
    background-position: 76% center;
  }

  #coverView .plan-slide-content {
    width: 68%;
    min-height: 455px;
    padding: 22px 14px 18px;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, .98) 0%,
      rgba(255, 255, 255, .94) 73%,
      rgba(255, 255, 255, .58) 92%,
      transparent 100%
    );
  }
}

@media (max-width: 700px) {
  .public-wrapper:has(#coverView:not(.d-none)) .public-home-footer { padding: 28px 22px 18px; }
  .public-home-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .public-home-footer-brand { align-items: flex-start; }
  .public-home-footer-bottom { flex-direction: column; }
  .public-home-footer-bottom nav { flex-wrap: wrap; gap: 12px 22px; }
}

/* Formatos finais de tablet e celular. */
@media (max-width: 900px) {
  .main.public-wrapper:has(#coverView:not(.d-none)),
  .public-wrapper:has(#coverView:not(.d-none)) > .header,
  #coverView.cover-view,
  #coverView .cover-hero,
  #coverView .plan-carousel,
  #coverView .contact-grid,
  .public-wrapper:has(#coverView:not(.d-none)) .public-home-footer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #coverView.cover-view {
    padding: 28px 12px 18px;
    gap: 18px;
  }

  #coverView .cover-hero {
    padding: 18px clamp(14px, 4vw, 30px) 20px;
    text-align: left;
  }

  #coverView .cover-hero p,
  #coverView .cover-description {
    max-width: 560px;
  }

  #coverView .plan-carousel {
    padding: 68px 10px 9px;
    overflow: hidden;
  }

  #coverView .plan-tabs {
    width: calc(100% - 28px);
    max-width: 520px;
  }

  #coverView .carousel-track,
  #coverView .plan-slide-inner { min-height: 430px; }

  #coverView .plan-slide-inner,
  #coverView .plan-slide-inner--familia {
    grid-template-columns: 56% 44%;
    grid-template-rows: 1fr;
  }

  #coverView .plan-slide-inner::after {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    background-size: auto 100%;
    background-position: right center;
  }

  #coverView .plan-slide-content {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding: 24px 20px;
  }

  #coverView .plan-slide-title { font-size: 28px; }
  #coverView .plan-slide-subtitle { font-size: 12px; }
  #coverView .plan-slide-benefits li { font-size: 11px; }
  #coverView .plan-slide-cta {
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .public-wrapper:has(#coverView:not(.d-none)) > .header {
    height: 82px;
    padding: 10px 14px;
  }

  .public-wrapper:has(#coverView:not(.d-none)) .logo-public { width: 108px; }
  .public-wrapper:has(#coverView:not(.d-none)) .header-title { max-width: 58%; }
  .public-wrapper:has(#coverView:not(.d-none)) .header-badge { font-size: 8px; }

  #coverView.cover-view {
    padding: 0 6px 14px;
    gap: 12px;
  }

  #coverView .cover-hero {
    padding: 28px 18px 30px;
    text-align: center;
  }

  #coverView .cover-hero h2 { text-align: center; }
  #coverView .cover-hero p {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.14;
    overflow-wrap: normal;
  }
  #coverView .cover-description { display: none; }
  #coverView .cover-actions { justify-content: center; }

  #coverView .plan-carousel {
    padding: 59px 6px 7px;
    border-radius: 18px;
  }

  #coverView .plan-tabs {
    top: 10px;
    width: calc(100% - 20px);
  }

  #coverView .carousel-track,
  #coverView .plan-slide-inner { min-height: 390px; }

  #coverView .plan-slide-inner,
  #coverView .plan-slide-inner--familia {
    grid-template-columns: 58% 42%;
    grid-template-rows: 1fr;
  }

  #coverView .plan-slide-inner::after {
    grid-column: 2;
    grid-row: 1;
    background-size: auto 100%;
    background-position: right center;
  }

  #coverView .plan-slide-content {
    grid-column: 1;
    grid-row: 1;
    padding: 16px 12px;
  }

  #coverView .plan-slide-badge { font-size: 7px; }
  #coverView .plan-slide-title { font-size: 22px; }
  #coverView .plan-slide-subtitle { font-size: 9px; line-height: 1.4; }
  #coverView .plan-slide-benefits { gap: 6px; }
  #coverView .plan-slide-benefits li { font-size: 8px; line-height: 1.35; }
  #coverView .plan-slide-cta { min-height: 42px; font-size: 9px; }

  #coverView .contact-card {
    grid-template-columns: 36px 1fr 34px;
    gap: 10px;
  }
  #coverView .contact-card a {
    grid-column: 3;
    width: 34px;
    min-width: 34px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    white-space: nowrap;
  }
  #coverView .contact-card a::after {
    content: "â€º";
    color: #005baa;
    font-size: 22px;
  }

  .public-home-footer-brand { grid-column: 1 / -1; }
}


/* MOBILE-FOTO-V2-INICIO */
@media (max-width: 900px) {

  /* Card passa a ser vertical no celular/tablet */
  #coverView .plan-slide-inner,
  #coverView .plan-slide-inner--familia {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    background-image: none !important;
    overflow: hidden !important;
  }

  /* Foto vira uma área própria, sem texto por cima */
  #coverView .plan-slide-inner::after {
    content: "" !important;
    display: block !important;
    position: relative !important;
    order: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    height: clamp(210px, 58vw, 310px) !important;
    min-height: 210px !important;
    flex: none !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-radius: 0 !important;
  }

  #coverView .plan-slide-inner--familia::after {
    background-image: url("/frontend/plano-familia-bg.png") !important;
  }

  #coverView .plan-slide-inner:not(.plan-slide-inner--familia)::after {
    background-image: url("/frontend/plano-iii-bg.png") !important;
  }

  /* Conteúdo fica 100% branco e separado da fotografia */
  #coverView .plan-slide-content {
    position: relative !important;
    order: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 18px 18px 22px !important;
    background: #ffffff !important;
    background-image: none !important;
    box-sizing: border-box !important;
  }

  /* CTA confortável no mobile */
  #coverView .plan-slide-cta {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}
/* MOBILE-FOTO-V2-FIM */

/* FOOTER-COMPACTO-MOBILE */
@media (max-width: 900px) {
  .public-home-footer {
    display: block !important;
    padding: 10px 14px !important;
    min-height: 0 !important;
  }

  .public-home-footer-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px 10px !important;
    text-align: center !important;
  }

  .public-home-footer-brand {
    display: none !important;
  }

  .public-home-footer-grid > div {
    display: none !important;
  }

  .public-home-footer-grid::before {
    content: "BRF Previdência · 0800 702 4422 · brfprevidencia.com.br";
    display: block;
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    color: #17365d;
    line-height: 1.35;
  }

  .public-home-footer-grid::after {
    content: "CNPJ 01.689.795/0001-50 · Política de Privacidade";
    display: block;
    width: 100%;
    font-size: 10px;
    color: #64748b;
    line-height: 1.35;
  }
}
/* FOOTER-COMPACTO-MOBILE */


/* RODAPE COMPACTO - SOMENTE MOBILE/TABLET */
@media (max-width: 900px) {

  .public-wrapper .public-home-footer {
    display: block !important;
    min-height: 0 !important;
    padding: 9px 12px !important;
    margin: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* Esconde todo o rodape completo apenas no mobile */
  .public-wrapper .public-home-footer > * {
    display: none !important;
  }

  /* Exibe somente a faixa institucional curta */
  .public-wrapper .public-home-footer::before {
    content: "BRF Previd\00EAncia  \2022  0800 702 4422  \2022  brfprevidencia.com.br";
    display: block !important;
    margin: 0 !important;
    color: #526579 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }
}
/* FIM RODAPE COMPACTO */

/* RODAPE RESPONSIVO DEFINITIVO */

/* Nunca aparece dentro do painel administrativo */
body.admin-mode .public-home-footer {
    display: none !important;
}

/* SOMENTE mobile/tablet */
@media (max-width: 900px) {

    body.public-mode .public-home-footer {
        display: block !important;
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 9px 12px !important;
        box-sizing: border-box !important;
        text-align: center !important;
        background: #fff !important;
        border-top: 1px solid #dce5ef !important;
    }

    body.public-mode .public-home-footer > * {
        display: none !important;
    }

    body.public-mode .public-home-footer::before {
        content: "BRF Previd\00EAncia  \2022  0800 702 4422  \2022  brfprevidencia.com.br";
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #526579 !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
    }
}

/* Nenhuma regra de desktop aqui */
/* FIM RODAPE RESPONSIVO DEFINITIVO */



