/* =========================
   SEÇÃO METODOLOGIA
========================= */

.metodpg{
  position: relative;
  width: 100%;
  background: var(--nav-bg);
  color: #fff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding-top: 50px;
  padding-bottom: 50px;

  /* FIX: sticky/pin funcionar */
  overflow: visible;
}

.metodpg__wrap{
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  gap: 64px;

  /* no “estado normal” pode ficar flex-start;
     quando o JS ativa o pin, ele já coloca stretch */
  align-items: flex-start;

  /* FIX: não limitar sticky */
  overflow: visible;
}

/* =========================
   COLUNA ESQUERDA (imagem)
========================= */

.metodpg__left{
  position: relative;
  max-width: 520px;

  /* ✅ AQUI é o ajuste principal:
     remove o limitador que estava amassando o card */
  max-height: none;

  /* ajuda a preencher a “cena” quando o JS faz o pin */
  height: 100%;
}

/* card da imagem (com respiro da nav) */
.metodpg__figure{
  position: sticky;
  top: calc(var(--nav-h) + 24px); /* respiro da nav */
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);

  /* ✅ mantém o tamanho grande como “Imagem Antes” */
  height: 100%;
  display: flex;

  /* premium layers */
  isolation: isolate;
}

/* imagem preenchendo o frame */
.metodpg__img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* micro zoom cinematográfico */
  transition: transform .6s ease, filter .35s ease;
  transform: scale(1.01);
}

/* overlay leve pra contraste */
.metodpg__img-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
  pointer-events: none;
  z-index: 1;
}

/* =========================
   PREMIUM — Glass shine (hover)
========================= */

/* highlight suave no canto */
.metodpg__figure::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(700px 280px at 20% 10%,
    rgba(255,255,255,.10),
    transparent 60%
  );
  opacity: .55;
  pointer-events:none;
  z-index: 2;
}

/* brilho “vidro” */
.metodpg__figure::after{
  content:"";
  position:absolute;
  inset:-35%;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255,255,255,.18) 50%,
    transparent 65%
  );
  transform: translateX(-40%) rotate(10deg);
  opacity: 0;
  transition: opacity .25s ease, transform .75s ease;
  pointer-events:none;
  z-index: 3;
}

.metodpg__figure:hover::after{
  opacity: 1;
  transform: translateX(40%) rotate(10deg);
}

.metodpg__figure:hover .metodpg__img{
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.03);
}

/* =========================
   COLUNA DIREITA (texto)
========================= */

.metodpg__right{
  position: relative;
  max-width: 560px;
}

/* =========================
   ETAPAS
========================= */

.metodpg__steps{
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.metodpg__step{
  max-width: 520px;

  /* C: animação suave (base) */
  opacity: .35;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .55s ease;
  will-change: transform, opacity;
}

.metodpg__kicker{
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

.metodpg__step-title{
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .01em;
}

.metodpg__text{
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.75);
}

/* lista */
.metodpg__bullets{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.metodpg__bullet{
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: color .25s ease, transform .25s ease;
}

.metodpg__bullet::before{
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c700;
  box-shadow: 0 0 10px rgba(40,199,0,.6);
}

/* A: etapa ativa */
.metodpg__step.is-active{
  opacity: 1;
  transform: translateY(0);
}

.metodpg__step.is-active::before{
  content:"";
  display:block;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: rgba(40,199,0,.85);
  box-shadow: 0 0 20px rgba(40,199,0,.22);
  margin-bottom: 14px;
  opacity: .9;
}

.metodpg__step.is-active .metodpg__step-title{
  color: rgba(255,255,255,.98);
}

.metodpg__step.is-active .metodpg__bullet{
  color: rgba(255,255,255,.82);
}

.metodpg__step.is-active .metodpg__bullet::before{
  background: #28c700;
  box-shadow: 0 0 14px rgba(40,199,0,.55);
}

/* B: barra de progresso */
.metodpg__progress{
  position: absolute;
  right: -18px;
  top: 0;
  bottom: 0;
  width: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  z-index: 6;
}

.metodpg__progress-fill{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  border-radius: 999px;
  background: rgba(40,199,0,.92);
  box-shadow: 0 0 22px rgba(40,199,0,.25);
  transition: height .12s linear;
}

/* =========================
   CTA FINAL
========================= */

.metodpg__cta{
  margin-top: 120px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.metodpg__cta-text{
  margin: 0 0 20px;
  font-size: 16px;
  color: rgba(255,255,255,.8);
}

.metodpg__cta-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: #28c700;
  color: #000;
  font-weight: 500;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.metodpg__cta-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(40,199,0,.35);
}

/* =========================
   AJUSTE — imagem preencher altura no pin
========================= */

.metodpg__figure{
  height: 100%;
  display: flex;
}

.metodpg__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   AJUSTE — Travar Página da Metodologia
========================= */
/* FIX: sticky/pin funcionar (não deixar o ancestor com overflow hidden) */
.metodpg{
  overflow: visible;
}

/* se você por acaso usou class="section metodpg" no HTML */
.section.metodpg{
  overflow: visible;
}

/* segurança extra: evita limitar o sticky do wrapper */
.metodpg__wrap{
  overflow: visible;
}

#metodologia{
  overflow: visible;
}

/* ===== Espaço entre nav e imagem sticky ===== */
.metodpg__figure{
  top: calc(var(--nav-h) + 24px); /* aumenta o respiro */
}

/* =========================
   PREMIUM — Glass shine na imagem (hover)
========================= */

.metodpg__figure{
  position: relative;
  isolation: isolate; /* garante camadas certinhas */
}

/* brilho “vidro” */
.metodpg__figure::after{
  content:"";
  position:absolute;
  inset:-35%;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255,255,255,.18) 50%,
    transparent 65%
  );
  transform: translateX(-40%) rotate(10deg);
  opacity: 0;
  transition: opacity .25s ease, transform .75s ease;
  pointer-events:none;
  z-index: 3;
}

/* highlight suave no canto */
.metodpg__figure::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(700px 280px at 20% 10%,
    rgba(255,255,255,.10),
    transparent 60%
  );
  opacity: .55;
  pointer-events:none;
  z-index: 2;
}

.metodpg__figure:hover::after{
  opacity: 1;
  transform: translateX(40%) rotate(10deg);
}

/* micro zoom cinematográfico */
.metodpg__img{
  transition: transform .6s ease, filter .35s ease;
  transform: scale(1.01);
}
.metodpg__figure:hover .metodpg__img{
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.03);
}

/* mantém overlay por baixo do brilho */
.metodpg__img-overlay{
  z-index: 1;
}

/* =========================
   METODPG — PREMIUM PACK (A/B/C/D)
   A) etapa ativa (highlight)
   B) barra de progresso
   C) animação por etapa
   D) mini CTA sticky
========================= */

/* --- C: animação suave (base) --- */
.metodpg__step{
  opacity: 1;
  transform: none;
  transition: transform .4s ease;
}

.metodpg__step-title{
  color: rgba(255,255,255,.95);
}

.metodpg__text{
  color: rgba(255,255,255,.88);
}

.metodpg__bullet{
  color: rgba(255,255,255,.82);
}

/* A: etapa ativa */
.metodpg__step.is-active{
  opacity: 1;
  transform: translateY(0);
}

/* A: linha/glow sutil na etapa ativa */
.metodpg__step.is-active::before{
  content:"";
  display:block;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: rgba(40,199,0,.9);
  box-shadow: 0 0 18px rgba(40,199,0,.25);
  margin-bottom: 14px;
}

/* A: título mais forte na ativa */
.metodpg__step.is-active .metodpg__step-title{
  color: rgba(255,255,255,.98);
}

/* A: bullets “acendem” na ativa */
.metodpg__step .metodpg__bullet{
  transition: color .25s ease, transform .25s ease;
}
.metodpg__step.is-active .metodpg__bullet{
  color: rgba(255,255,255,.82);
}
.metodpg__step.is-active .metodpg__bullet::before{
  background: #28c700;
  box-shadow: 0 0 14px rgba(40,199,0,.55);
}

/* B: barra de progresso (container) */
.metodpg__progress{
  position: absolute;
  right: -18px;           /* fica coladinha na direita */
  top: 0;
  bottom: 0;
  width: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  z-index: 6;
}

/* B: “preenchimento” */
.metodpg__progress-fill{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  border-radius: 999px;
  background: rgba(40,199,0,.92);
  box-shadow: 0 0 22px rgba(40,199,0,.25);
  transition: height .12s linear;
}

/* =========================
   PATCH — Voltar tamanho da imagem (Imagem ANTES)
   Mantém os efeitos (glass/shine/zoom) intactos
   Cole no FINAL do metodologia.css
========================= */

/* o card NÃO deve ter height:100% (isso estica) */
.metodpg__figure{
  height: auto !important;
  display: block !important; /* tira flex que estica */
}

/* a imagem volta ao comportamento original */
.metodpg__img{
  height: auto !important;   /* não estica */
  width: 100% !important;
  display: block;
  object-fit: cover;         /* mantém corte bonito */
}

/* trava um tamanho igual ao “antes” (responsivo) */
.metodpg__left{
  max-height: 420px;         /* teu valor original */
}

/* garante que o figure respeite a “caixa” */
.metodpg__figure{
  max-height: 560px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

/* overlay continua perfeito */
.metodpg__img-overlay{
  position: absolute;
  inset: 0;
}









/* =========================
   RESPONSIVO — METODOLOGIA
   (somente ajustes via media queries)
   Regras:
   - não altera desktop
   - sem scroll horizontal
   - mais respiro lateral no texto
   - imagem sem distorção / sem cortes ruins
   - botões com toque confortável
========================= */


/* =========================
   MOBILE (<= 575.98px)
========================= */
@media (max-width: 575.98px){

  /* ✅ evita qualquer estouro lateral por gap/padding */
  .metodpg{
    padding-top: 40px;
    padding-bottom: 40px;
    overflow-x: clip; /* não altera desktop, só mobile */
  }

  /* ✅ vira 1 coluna e aumenta respiro nas bordas */
  .metodpg__wrap{
    grid-template-columns: 1fr;
    gap: 22px;
    padding-left: 18px;
    padding-right: 18px;
  }

  /* ✅ remove “stickiness” no mobile (melhor UX + evita bugs de altura/pin) */
  .metodpg__figure{
    position: relative;
    top: auto;
    max-height: none;
    border-radius: var(--radius);
  }

  /* ✅ garante imagem bonita e proporcional no topo */
  .metodpg__left{
    max-width: 100%;
    max-height: none;
  }

  .metodpg__img{
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;   /* mantém frame bonito sem distorcer */
    object-fit: cover;
    transform: none;         /* corta micro-zoom pra não “estourar” no mobile */
  }

  /* ✅ texto mais legível e com margem interna */
  .metodpg__right{
    max-width: 100%;
  }

  .metodpg__steps{
    gap: 44px; /* 100px fica exagerado no mobile */
  }

  .metodpg__step{
    max-width: 100%;
  }

  .metodpg__kicker{
    font-size: 11px;
  }

  .metodpg__step-title{
    font-size: 22px;
    margin-bottom: 10px;
  }

  .metodpg__text{
    font-size: 14px;
    line-height: 1.75;
  }

  .metodpg__bullet{
    font-size: 13px;
  }

  /* ✅ barra de progresso some no mobile (evita overflow e poluição visual) */
  .metodpg__progress{
    display: none;
  }

  /* ✅ CTA com toque confortável + não colar nas bordas */
  .metodpg__cta{
    margin-top: 64px;
    padding-top: 28px;
  }

  .metodpg__cta-text{
    font-size: 15px;
  }

  .metodpg__cta-btn{
    width: 100%;
    min-height: 48px;        /* alvo de toque */
    padding: 14px 18px;
    justify-content: center;
  }
}


/* =========================
   TABLET MINI (576px – 991.98px)
========================= */
@media (min-width: 576px) and (max-width: 991.98px){

  /* ✅ evita estouro lateral por grid + progress bar “fora” */
  .metodpg{
    padding-top: 46px;
    padding-bottom: 46px;
    overflow-x: clip;
  }

  /* ✅ quebra em 1 coluna (layout fica mais limpo no tablet) */
  .metodpg__wrap{
    grid-template-columns: 1fr;
    gap: 34px;
    padding-left: 22px;
    padding-right: 22px;
  }

  /* ✅ sticky no tablet costuma dar ruim com alturas/scroll story: desativa */
  .metodpg__figure{
    position: relative;
    top: auto;
    max-height: none;
  }

  /* ✅ imagem com frame consistente e sem distorção */
  .metodpg__left{
    max-width: 100%;
    max-height: none;
  }

  .metodpg__img{
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transform: none;
  }

  /* ✅ textos e espaçamentos ajustados */
  .metodpg__right{
    max-width: 100%;
  }

  .metodpg__steps{
    gap: 60px;
  }

  .metodpg__step{
    max-width: 100%;
  }

  .metodpg__step-title{
    font-size: 24px;
  }

  .metodpg__text{
    font-size: 15px;
  }

  /* ✅ barra de progresso some no tablet mini (evita overflow no lado direito) */
  .metodpg__progress{
    display: none;
  }

  /* ✅ CTA com alvo de toque melhor */
  .metodpg__cta{
    margin-top: 84px;
    padding-top: 32px;
  }

  .metodpg__cta-btn{
    min-height: 48px;
    padding: 14px 22px;
  }
}




/* =========================
   PATCH — SEM CORTE NA DIREITA
   (box-sizing no wrapper + overflow-x seguro)
========================= */

/* MOBILE (<= 575.98px) */
@media (max-width: 575.98px){
  .metodpg{
    overflow-x: hidden; /* fallback mais compatível que clip */
  }

  .metodpg__wrap{
    width: 100%;              /* evita 100% + padding */
    box-sizing: border-box;   /* padding entra dentro do 100% */
  }

  /* segurança extra: evita qualquer filho estourar */
  .metodpg__left,
  .metodpg__right,
  .metodpg__steps,
  .metodpg__step{
    max-width: 100%;
  }
}

/* TABLET MINI (576px – 991.98px) */
@media (min-width: 576px) and (max-width: 991.98px){
  .metodpg{
    overflow-x: hidden;
  }

  .metodpg__wrap{
    width: 100%;
    box-sizing: border-box;
  }

  .metodpg__left,
  .metodpg__right,
  .metodpg__steps,
  .metodpg__step{
    max-width: 100%;
  }
}