/* MODIFICAÇÕES NECESSÁRIAS NA TEMPLATE */

/* Âncoras: scroll suave + compensação do header fixo */
html {
  scroll-behavior: smooth;
}
section[id],
footer[id] {
  scroll-margin-top: 100px;
}

.margin-top-0 {
  margin-top: 0 !important;
}

/* HERO — composição com fundo transparente (sem moldura, tamanho controlado) */
.pp-hero-1 .pp-hero-image img {
  border: none !important;
  border-radius: 0 !important;
  width: 100% !important;
  height: auto !important;
  /* trava defensiva: a imagem nunca ultrapassa seu tamanho natural,
     mesmo se algum repaint (ex.: sair do preview mobile do DevTools)
     deixar o container com largura "presa" */
  max-width: 100% !important;
  aspect-ratio: 1331 / 1169;
  object-fit: contain;
}
.pp-hero-1 .pp-hero-image {
  max-width: 720px !important;
  margin: -10px auto 0 !important;
}
@media (max-width: 991px) {
  .pp-hero-1 .pp-hero-image {
    max-width: 460px !important;
    margin-top: 10px !important;
  }
}

/* HERO — layout de duas colunas no desktop (texto/botões à esquerda, imagem à direita).
   Abaixo de 1200px volta a empilhar e centralizar (comportamento mobile atual). */
@media (min-width: 1200px) {
  .pp-hero-1 {
    padding-bottom: 150px !important;
  }
  /* o gradiente de fundo cobre a seção inteira (mantendo o respiro de -15% no topo),
     senão os botões da coluna esquerda caem na faixa inferior sem fundo */
  .pp-hero-1::before {
    top: -15% !important;
    bottom: 0 !important;
    height: auto !important;
  }
  .pp-hero-1 .pp-hero-content {
    text-align: left !important;
    margin-bottom: 0 !important;
  }
  .pp-hero-1 .pp-hero-content .pp-hero-button {
    justify-content: flex-start !important;
  }
  .pp-hero-1 .pp-hero-image {
    max-width: 600px !important;
    margin: 0 auto !important;
  }
}

.pp-about-wrapper .about-image .about-shape {
  max-width: 20% !important;
  left: 215px !important;
  bottom: -30% !important;
}

/* DIGIFARMA MÓVEL */
.img_celular_app {
  max-width: 490px !important;
}
.img_celular_app img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.img_stores {
  max-width: 190px !important;
  left: -155px !important;
}
.img_stores img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.img_app_icone {
  max-width: 150px !important;
  right: -95px !important;
}
.img_app_icone img {
  border-radius: 0 !important;
}

.pp-key-feature-wrapper
  .pp-key-feature-content
  .pp-feature-list
  li:not(:last-child) {
  margin-bottom: 5px !important;
}

/* WEBGESTOR */
.img_werbGestor {
  max-width: 600px !important;
}
.img_werbGestor img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.img_cloud {
  max-width: 150px !important;
  left: -25px !important;
}
.img_cloud img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.img_dashBoard {
  max-width: 170px !important;
  right: -50px !important;
  bottom: -30px !important;
}
.img_dashBoard img {
  border-radius: 0 !important;
}

.imgParceiro {
  max-height: 70px !important;
  max-width: 100% !important;
  width: auto;
  object-fit: contain;
  margin: 18px 0;
}
/* logo circular (Rede Melhor Compra) — um pouco maior p/ equilibrar com as logos largas */
.imgParceiro-rmc {
  max-height: 88px !important;
  margin: 9px 0;
}

/* Grade de parceiros na home — célula uniforme + respiro no desktop */
#parceiros .row > [class*="col-"] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}
#parceiros .imgParceiro,
#parceiros .imgParceiro-rmc {
  margin: 0 !important;
}
@media (min-width: 992px) {
  #parceiros .row {
    max-width: 880px;
    margin-inline: auto;
  }
  #parceiros .row > [class*="col-"] {
    min-height: 150px;
  }
}

/* Integrações — resumo na home (Farmácia Popular + PBMs) */
.integ-lead {
  max-width: 720px;
  margin: 14px auto 0;
}
.integ-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.integ-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.integ-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.12);
}
.integ-card-media {
  height: 220px;
  overflow: hidden;
}
.integ-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.integ-card-media--pbm {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e50000 0%, #cc0000 100%);
}
.integ-card-media--pbm i {
  font-size: 76px;
  color: #fff;
}
.integ-card-body {
  padding: 28px 30px 32px;
}
.integ-card-body h3 {
  margin: 0 0 12px;
  color: var(--pp-header, #1a192e);
}
.integ-card-body p {
  margin: 0;
  color: var(--pp-text, #6d6b7b);
  line-height: 1.65;
}
@media (max-width: 767px) {
  .integ-cards {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 36px;
  }
  .integ-card-media {
    height: 190px;
  }
}

/* Integrações — página dedicada (integracoes.html) */
.integ-detail-media img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  display: block;
}
.integ-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 50px;
}
.integ-feat {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 18px;
  padding: 34px 26px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.integ-feat:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.12);
}
.integ-feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e50000 0%, #cc0000 100%);
  color: #fff;
  font-size: 26px;
  margin-bottom: 20px;
}
.integ-feat h3 {
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--pp-header, #1a192e);
}
.integ-feat p {
  margin: 0;
  color: var(--pp-text, #6d6b7b);
  line-height: 1.6;
}
@media (max-width: 991px) {
  .integ-feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .integ-feat-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Lista de benefícios com bolinha vermelha — funciona em qualquer página,
   inclusive fora do bloco .pp-key-feature-wrapper (ex.: integracoes.html).
   Na home as regras mais específicas do main.css continuam prevalecendo. */
.pp-feature-list {
  list-style: none;
  padding-left: 0;
  margin: 26px 0 34px;
}
.pp-feature-list li {
  position: relative;
  padding-left: 30px;
  font-size: 17px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
  color: var(--pp-header, #1a192e);
}
.pp-feature-list li:not(:last-child) {
  margin-bottom: 14px;
}
.pp-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(270deg, #e50000 0%, #cc0000 100%);
}

/* Respiro entre o título da seção e o texto quando o título usa .mb-0 */
.pp-section-title.mb-0 + .pp-text {
  margin-top: 18px;
}

/* Imagem da seção de detalhe não colar no texto quando empilha no mobile */
@media (max-width: 991px) {
  .integ-detail-media {
    margin-bottom: 34px;
  }
}

/* Parceiro em destaque (Rede Melhor Compra) */
.imgParceiro-destaque {
  max-height: 105px !important;
  transform: scale(1.15);
  transition: transform 0.3s ease;
}

/* Moldura de destaque para o parceiro principal (Rede Melhor Compra).
   Reutilizada na home (#parceiros) e na página de parceiros. */
.parceiro-featured {
  display: block;
  text-align: center;
  margin: 6px auto 14px;
}
/* Selo: inline-flex dentro de um bloco com text-align:center => encolhe para o
   tamanho do texto (shrink-to-fit) e fica centralizado. Nada de flex no pai,
   que fazia o selo esticar na largura toda da coluna. */
.parceiro-featured .parceiro-badge {
  position: static;
  transform: none;
  display: inline-flex;
}
.parceiro-featured .imgParceiro {
  display: block;
  margin: 12px auto 0 !important;
  max-height: 86px !important;
  transform: none;
  filter: drop-shadow(0 0 16px rgba(229, 0, 0, 0.55));
}
.parceiro-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(270deg, #e50000 0%, #cc0000 100%);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 13px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(204, 0, 0, 0.4);
  z-index: 2;
}

/* Destaque dentro do grid da página de parceiros */
.partner-card--destaque {
  position: relative;
  overflow: visible;
  border: 2px solid var(--pp-theme);
  background: linear-gradient(180deg, rgba(229, 0, 0, 0.2) 0%, var(--pp-header) 72%);
  box-shadow: 0 0 0 4px rgba(229, 0, 0, 0.1), 0 16px 40px rgba(229, 0, 0, 0.3);
}
.partner-card--destaque img {
  max-height: 96px;
}

/* ============================================================
   PREMIAÇÕES (home) — só as imagens dos prêmios, sem os anos
   ============================================================ */
.premios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 30px;
  margin-top: 54px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.premio-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 18px;
  padding: 22px 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.premio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.12);
}
.premio-item img {
  height: 92px;
  width: 92px;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
}
.premio-nome {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--pp-header);
}
@media (max-width: 991px) {
  .premios-grid {
    gap: 20px;
    margin-top: 40px;
  }
  .premio-item {
    padding: 18px 20px;
    gap: 18px;
  }
  .premio-item img {
    height: 76px;
    width: 76px;
  }
  .premio-nome {
    font-size: 18px;
  }
}
@media (max-width: 575px) {
  .premios-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .premio-item {
    padding: 16px;
    border-radius: 14px;
  }
  .premio-item img {
    height: 68px;
    width: 68px;
  }
  .premio-nome {
    font-size: 17px;
  }
}

.ctaParagrafo {
  color: #fff;
  font-size: 23px;
  line-height: 40px;
  margin-bottom: 40px;
  margin-top: 20px;
}

.ctaBotao .pp-theme-btn {
  background: transparent;
  border: 1px solid var(--pp-white);
}
.ctaBotao .pp-theme-btn::after {
  background: var(--pp-white);
}
.ctaBotao .pp-theme-btn:hover {
  border: 1px solid transparent;
  color: var(--pp-header);
}

.listaIA li {
  margin-bottom: 10px;
  color: #fff;
  padding-left: 0;
}
/* usa apenas o icone de check (cheak_red.svg); remove a bolinha duplicada do ::before */
.listaIA li::before {
  display: none;
}
.listaIA li img {
  margin-right: 8px;
  vertical-align: middle;
}

.listaIA p {
  margin-top: 0 !important;
  font-weight: 100;
  font-style: italic;
  margin-left: 20px;
  text-align: justify;
}

.contentIA p {
  text-align: justify;
}

.ia-image {
  position: relative;
  max-width: 700px !important;
  right: 325px;
}

.pp-cta-wrapper .pp-cta-image .imgIA_001 {
  max-width: 1000px !important;
}

.pp-cta-wrapper .pp-cta-image .imgIA_002 {
  max-width: 165px !important;
  right: -110px !important;
  bottom: 422px !important;
}


.pp-cta-wrapper .pp-cta-image img {
    width: 160% !important;
}

.pp-back-to-top{
  z-index: 9999 !important;
}


/* PLANOS */
.z999 {
  z-index: 999 !important;
}

.plan-coral .plan-tag {
    background: rgba(248, 113, 113, 0.15);
    color: #fca5a5;
}
.plan-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px !important;
    border-radius: 999px;
    margin-bottom: 14px;
}

.plan-coral .plan-badge {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.25);
    color: #fca5a5;
}
.plan-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid;
}

.pp-pricing-list {
  font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
}
.planoPopular {
  border: 5px solid #c3e6cb !important;
}

.bordaPlanos {
  border: 1px solid #ffffff !important;
}

.planosWidth {
    max-width: 1600px !important;
    --bs-gutter-x: 1.5rem  !important;
    --bs-gutter-y: 0  !important;
    width: 100%  !important;
    padding-right: calc(var(--bs-gutter-x) * .5)  !important;
    padding-left: calc(var(--bs-gutter-x) * .5)  !important;
    margin-right: auto  !important;
    margin-left: auto  !important;
}


.pp-how-work-section .line-shape {
    position: absolute;
    top: 45% !important;
    left: 14%;
    max-width: 1303px;
    z-index: -1;
}

.passo2MT {
    margin-top: 150px !important;
}

.fidelizacao-image {
    position: relative !important;
    max-width: 500px !important;
    right: 210px;
}


/* ============================================================
   AJUSTES RESPONSIVOS  (MOBILE / TABLET  <= 991px)
   Os overrides acima usam posicoes fixas de desktop
   (right: 325px, width: 160%, max-width grandes) que vazavam
   para telas pequenas e cortavam/estouravam as imagens.
   Aqui normalizamos tudo apenas no mobile. Desktop fica igual.
   ============================================================ */
@media (max-width: 991px) {

  /* ---- Blocos CTA: IA + Fidelizacao ---- */
  .ia-image,
  .fidelizacao-image {
    right: 0 !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* a imagem interna estava a 160% e estourava a tela */
  .pp-cta-wrapper .pp-cta-image img {
    width: 100% !important;
  }

  .pp-cta-wrapper .pp-cta-image .imgIA_001 {
    max-width: 100% !important;
  }

  /* imagens decorativas flutuantes que sangram a tela */
  .pp-cta-wrapper .pp-cta-image .imgIA_002 {
    display: none !important;
  }

  /* ---- App Movel: icone da App Store nao cortar ---- */
  .img_celular_app { max-width: 100% !important; }
  .img_stores {
    left: 0 !important;
    max-width: 120px !important;
  }
  .img_app_icone { right: 0 !important; max-width: 110px !important; }

  /* ---- WebGestor ---- */
  .img_werbGestor { max-width: 100% !important; }
  .img_cloud { left: 0 !important; max-width: 100px !important; }
  .img_dashBoard {
    right: 0 !important;
    bottom: 0 !important;
    max-width: 120px !important;
  }

  /* ---- O Digifarma: forma circular do logo nao vazar ---- */
  .pp-about-section .about-image .about-shape {
    left: auto !important;
    right: 0 !important;
    bottom: 0 !important;
  }

  /* ---- Sub-descricoes das listas alinhadas a esquerda ----
     (dentro do bloco centralizado, evita "rios" do justify) */
  .listaIA p {
    text-align: left !important;
  }

  /* passo 2: mesmo espacamento dos outros (gaps iguais ao empilhar) */
  .passo2MT { margin-top: 30px !important; }

  /* ---- O Digifarma: centraliza titulo + botao no mobile ---- */
  .pp-about-section .about-content .pp-section-title {
    text-align: center !important;
  }
  .pp-about-section .about-content > .pp-theme-btn {
    display: block !important;
    width: -moz-fit-content !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* ---- IA: centraliza todo o conteudo no mobile ---- */
  .contentIA {
    text-align: center !important;
  }
  /* sobrescreve o justify base dos paragrafos da IA */
  .contentIA p {
    text-align: center !important;
  }
  /* a lista de itens vira bloco centralizado, itens a esquerda */
  .contentIA .listaIA {
    display: inline-block !important;
    text-align: left !important;
  }
  /* sub-descricoes da lista permanecem a esquerda (mais especifico) */
  .contentIA .listaIA p {
    text-align: left !important;
  }
  .contentIA .pp-cta-button {
    text-align: center !important;
  }

  /* ---- App Movel + WebGestor: centraliza todo o conteudo no mobile ---- */
  .pp-key-feature-wrapper .pp-key-feature-content {
    text-align: center !important;
  }
  /* a lista de itens vira um bloco centralizado, itens alinhados
     a esquerda dentro dele (bolinhas alinhadas) */
  .pp-key-feature-wrapper .pp-key-feature-content .pp-feature-list {
    display: inline-block !important;
    text-align: left !important;
  }
  .pp-key-feature-wrapper .pp-key-feature-content > .pp-theme-btn {
    display: block !important;
    width: -moz-fit-content !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* ---- WebGestor: respiro entre a imagem e a proxima secao ---- */
  .pp-key-feature-wrapper.pp-style-2 .pp-key-feature-image {
    margin-top: 20px !important;
    margin-bottom: 30px !important;
  }

  /* ---- Fidelizacao: centraliza todo o conteudo no mobile ----
     (nao afeta a IA, que usa .pp-how-work-section/.contentIA) */
  .pp-cta-section .pp-cta-content {
    text-align: center !important;
  }
  /* a lista de beneficios vira bloco centralizado, itens a esquerda */
  .pp-cta-section .pp-cta-content .listaIA {
    display: inline-block !important;
    text-align: left !important;
  }
  .pp-cta-section .pp-cta-content .pp-cta-button {
    text-align: center !important;
  }

  /* ---- Footer: centralizado no mobile + logo menor ---- */
  .pp-footer-section .pp-footer-widget-items {
    text-align: center !important;
  }
  /* logo menor */
  .pp-footer-section .pp-footer-logo img {
    max-width: 180px !important;
    height: auto !important;
  }
  /* paragrafo descritivo centralizado */
  .pp-footer-section .pp-footer-content p {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* icones sociais centralizados */
  .pp-footer-section .social-icon {
    justify-content: center !important;
  }
  /* blocos de contato (icone + texto) centralizados */
  .pp-footer-section .pp-contact-info {
    justify-content: center !important;
  }
  /* rodape inferior (copyright + links) centralizado */
  .pp-footer-section .pp-footer-bottom-wrapper {
    justify-content: center !important;
    text-align: center !important;
  }
}


/* ============================================================
   NAVEGACAO POR ANCORAS
   Rolagem suave + compensa o header fixo para a secao nao
   ficar escondida atras dele ao clicar no menu.
   ============================================================ */
html {
  scroll-behavior: smooth;
}
#inicio,
#o-digifarma,
#nossa-ia,
#app,
#webgestor,
#contato {
  scroll-margin-top: 110px;
}

/* ---- Off-canvas (menu mobile): logo cabendo + e-mail sem capitalizar ---- */
.offcanvas__logo img {
  max-width: 150px;
  height: auto;
}
.offcanvas__contact-text a {
  text-transform: none !important;
}


/* ============================================================
   PAGINA LEGAL (Politica de Privacidade / Termos)
   ============================================================ */
.legal-hero {
  background: linear-gradient(270deg, #cc0000 0%, #4e4e4e 100%);
  color: #fff;
  padding: 200px 0 80px;
  text-align: center;
  border-radius: 0 0 48px 48px;
}
.legal-hero h1 {
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
  padding-top: 4px;
}
.legal-hero .legal-sub {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}
.legal-breadcrumb {
  margin-top: 20px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}
.legal-breadcrumb a {
  color: #fff;
  text-decoration: underline;
}

.legal-content {
  background: var(--pp-white);
}
.legal-wrapper {
  max-width: 900px;
  margin: 0 auto;
}
.legal-wrapper > p:first-child {
  margin-top: 0;
}
.legal-wrapper h2 {
  font-size: 24px;
  margin: 44px 0 16px;
  color: var(--pp-header);
  border-left: 4px solid var(--pp-theme);
  padding-left: 14px;
  line-height: 1.3;
}
.legal-wrapper h3 {
  font-size: 19px;
  margin: 28px 0 10px;
  color: var(--pp-header);
}
.legal-wrapper p,
.legal-wrapper li {
  color: var(--pp-text);
  line-height: 1.85;
  font-size: 16px;
}
.legal-wrapper p {
  margin-bottom: 16px;
}
.legal-wrapper ul {
  padding-left: 22px;
  margin-bottom: 18px;
}
.legal-wrapper li {
  margin-bottom: 8px;
}
.legal-wrapper a {
  color: var(--pp-theme);
  word-break: break-word;
}
.legal-box {
  background: var(--pp-bg);
  border: 1px solid var(--pp-border);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 24px 0;
}
.legal-box p:last-child {
  margin-bottom: 0;
}
.legal-update {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--pp-border);
  font-style: italic;
  color: var(--pp-text);
}
@media (max-width: 767px) {
  .legal-hero {
    padding: 150px 0 56px;
    border-radius: 0 0 24px 24px;
  }
  .legal-wrapper h2 {
    font-size: 21px;
  }
}
/* na pagina legal o rodape nao deve "subir" por cima do conteudo branco
   (o ::before do footer usa top:-50% para mesclar com secoes escuras) */
.legal-page .pp-footer-section::before {
  top: 0;
}

/* texto simples (nao-link) dos blocos de contato do rodape fica branco
   (nome da empresa e endereco viraram texto puro e herdavam cor escura) */
.pp-footer-section .pp-contact-info .pp-content h6 {
  color: var(--pp-white);
}


/* ============================================================
   PAGINA DE PARCEIROS
   ============================================================ */
.partners-intro {
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
}
.partners-intro .pp-sub-title {
  color: var(--pp-theme);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.partners-intro h2 {
  color: var(--pp-header);
  margin: 12px 0 16px;
}
.partners-intro p {
  color: var(--pp-text);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 0;
}
/* Grupos de parceiros (Redes Filiadas, PBM'S, Recarga) */
.partners-group {
  margin-bottom: 56px;
}
.partners-group:last-child {
  margin-bottom: 0;
}
.partners-group-title {
  color: var(--pp-header);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 26px;
  padding-left: 16px;
  border-left: 4px solid var(--pp-theme);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}
/* Cards claros para logos coloridas (PBM'S) — especificidade dupla p/ vencer o fundo escuro */
.partner-card.partner-card--light {
  background: #fff;
  border-color: #e6e8ee;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
/* Destaque com fundo claro mantém o realce vermelho */
.partner-card--destaque.partner-card--light {
  background: #fff;
  border-color: var(--pp-theme);
  box-shadow: 0 0 0 4px rgba(229, 0, 0, 0.1), 0 16px 40px rgba(229, 0, 0, 0.22);
}
.partner-card {
  background: var(--pp-header); /* fundo escuro: logos dos parceiros sao brancos */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  transition: all 0.3s ease;
}
.partner-card:hover {
  transform: translateY(-4px);
  border-color: var(--pp-theme);
  box-shadow: 0 12px 30px rgba(204, 0, 0, 0.18);
}
.partner-card img {
  max-width: 100%;
  max-height: 82px;
  width: auto;
  object-fit: contain;
}
/* CTA "Quer ser um parceiro?" */
.partners-cta {
  margin-top: 70px;
  background: linear-gradient(270deg, #cc0000 0%, #4e4e4e 100%);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
}
.partners-cta h2 {
  color: #fff;
  margin-bottom: 14px;
}
.partners-cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 17px;
  line-height: 1.7;
}
@media (max-width: 991px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}
@media (max-width: 575px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .partner-card {
    height: 108px;
    padding: 16px;
  }
  .partner-card img {
    max-height: 64px;
  }
  .partners-cta {
    padding: 40px 22px;
  }
}

/* =========================================================
   MODAL FORMULÁRIO DE CONTATO (ref. Exclusive)
   ========================================================= */
.df-form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.df-form-overlay.is-open {
  display: flex;
  opacity: 1;
}

.df-form-modal {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border: 3px solid #e50000;
  border-radius: 22px;
  padding: 40px 34px 34px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}
.df-form-overlay.is-open .df-form-modal {
  transform: translateY(0) scale(1);
}

.df-form-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  color: #1b2a4a;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.df-form-close:hover {
  opacity: 1;
}

.df-form-title {
  text-align: center;
  color: #1b2a4a;
  font-weight: 800;
  font-size: 30px;
  margin: 0 0 10px;
}
.df-form-subtitle {
  text-align: center;
  color: #3a5a7a;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 auto 26px;
  max-width: 380px;
}

.df-form-field {
  position: relative;
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.df-form-field:focus-within {
  border-color: #e50000;
  background: #fff;
}
.df-form-field input,
.df-form-field input:focus {
  flex: 1;
  border: none;
  background: transparent;
  padding: 16px 18px;
  font-size: 16px;
  color: #1b2a4a;
  outline: none;
  width: 100%;
}
.df-form-field input::placeholder {
  color: #9aa3af;
}
.df-req {
  color: #e11d2a;
  font-size: 18px;
  padding-right: 16px;
}
.df-phone-prefix {
  padding-left: 18px;
  color: #1b2a4a;
  font-weight: 600;
  font-size: 16px;
}
.df-form-phone input {
  padding-left: 8px;
}

.df-form-field.is-invalid {
  border-color: #e11d2a;
  background: #fff5f5;
}

.df-form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 22px;
  font-size: 14px;
  color: #3a5a7a;
  cursor: pointer;
}
.df-form-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #e50000;
  flex-shrink: 0;
}
.df-form-check a {
  color: #cc0000;
  text-decoration: underline;
}

.df-form-msg {
  text-align: center;
  font-size: 14px;
  min-height: 18px;
  margin: 0 0 10px;
}
.df-form-msg.is-error {
  color: #e11d2a;
}
.df-form-msg.is-success {
  color: #12855b;
}

.df-form-actions {
  text-align: center;
}
.df-form-submit {
  background: linear-gradient(270deg, #e50000 0%, #cc0000 100%);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 15px 52px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(229, 0, 0, 0.25);
  transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.df-form-submit:hover {
  filter: brightness(0.92);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(229, 0, 0, 0.35);
}
.df-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 575px) {
  .df-form-modal {
    padding: 34px 22px 26px;
    border-radius: 18px;
  }
  .df-form-title {
    font-size: 25px;
  }
}
