/* ==========================================================================
   DOBRA 04 — INSTITUTIONAL (Maio Amarelo Conscientização)
   ========================================================================== */

.fold-institutional {
  background-color: #fbf2d2; /* Amarelo da dobra um pouco mais forte para destacar os cards brancos */
  padding: 5rem 2rem; 
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.fold-institutional__bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(245, 184, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.fold-institutional__container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; 
  position: relative;
  z-index: 2;
}

/* ── Header (2 Colunas no Desktop) ── */
.fold-institutional__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.fold-institutional__header-left {
  flex: 1;
  max-width: 550px;
}

.fold-institutional__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 3rem); 
  line-height: 1.1;
  color: #111827;
  letter-spacing: -0.03em;
}

.fold-institutional__title span {
  color: var(--color-campaign-dark); 
}

.fold-institutional__header-right {
  flex: 1;
  max-width: 450px;
  padding-bottom: 0.5rem; 
}

.fold-institutional__text {
  font-family: var(--font-body);
  font-size: 1.1rem; 
  line-height: 1.6;
  color: #4b5563;
  font-weight: 500;
}

/* ── Core Central (Imagem + Cards Flutuantes) ── */
.fold-institutional__core {
  position: relative;
  width: 100%;
  min-height: 650px; /* Mais altura para suportar a imagem ainda maior */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.fold-institutional__image-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 850px; /* Imagem principal bem maior no desktop */
}

.fold-institutional__main-img {
  width: 100%;
  height: auto;
}

/* ── Cards Flutuantes ── */
.floating-card {
  position: absolute;
  z-index: 2;
  background-color: #ffffff; /* Fundo branco para destacar do amarelinho da dobra */
  border-radius: 9999px; /* Formato Pílula */
  padding: 0.75rem 1.5rem 0.75rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 15px 35px rgba(245, 184, 0, 0.15), 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(245, 184, 0, 0.2);
  width: max-content;
  max-width: 320px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.floating-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(245, 184, 0, 0.2), 0 10px 20px rgba(0,0,0,0.08);
}

/* ── Animações de Movimento Aleatório ── */
@keyframes float-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -12px); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-8px, 10px); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-6px, -8px); }
}
@keyframes float-4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, 12px); }
}

/* Posições Absolutas ao redor da imagem central (Desktop) */
.pos-top-left {
  top: 10%;
  left: 10%; 
  animation: fadeIn 0.8s ease-out 0.3s forwards, float-1 6s ease-in-out 0.3s infinite !important;
}

.pos-bottom-left {
  bottom: 12%;
  left: 5%;
  animation: fadeIn 0.8s ease-out 0.4s forwards, float-3 5.5s ease-in-out 0.4s infinite !important;
}

.pos-top-right {
  top: 15%;
  right: 10%;
  animation: fadeIn 0.8s ease-out 0.6s forwards, float-2 7s ease-in-out 0.6s infinite !important;
}

.pos-bottom-right {
  bottom: 8%;
  right: 5%;
  animation: fadeIn 0.8s ease-out 0.5s forwards, float-4 8s ease-in-out 0.5s infinite !important;
}

/* Ícone */
.floating-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--color-campaign); /* Amarelo forte para destacar */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(245, 184, 0, 0.3);
}

.floating-card__icon svg {
  color: #111827; 
  stroke: #111827;
  width: 24px;
  height: 24px;
}

/* Conteúdo do Card */
.floating-card__content {
  display: flex;
  flex-direction: column;
}

.floating-card__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #111827; 
  line-height: 1.2;
}

.floating-card__text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #4b5563; 
  line-height: 1.3;
  margin-top: 0.2rem;
}

/* ── Base CTA (Botão Centralizado) ── */
.fold-institutional__base {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.fold-institutional__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: #111827; 
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.125rem;
  padding: 1.25rem 3rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.fold-institutional__cta:hover {
  transform: scale(1.05);
  background-color: var(--color-campaign);
  color: #111827;
  box-shadow: 0 20px 40px rgba(245, 184, 0, 0.3);
}

.fold-institutional__cta svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.fold-institutional__cta:hover svg {
  transform: translateX(4px);
}

/* ── Mobile Responsiveness ── */
@media (max-width: 1024px) {
  .fold-institutional {
    padding: 3rem 1.5rem; /* Padding superior e inferior reduzidos drasticamente */
  }

  .fold-institutional__container {
    gap: 2.5rem;
  }

  .fold-institutional__header {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .fold-institutional__header-left,
  .fold-institutional__header-right {
    max-width: 100%;
    text-align: left;
  }

  .fold-institutional__core {
    min-height: 500px; /* Aumentar um pouco para dar mais pista vertical no mobile */
    flex-direction: row; 
    margin-top: 2rem;
  }

  .fold-institutional__image-wrapper {
    max-width: 120%; /* Aumenta a imagem para estourar o limite original do container */
    width: 120%;
    margin-left: 0%; /* Move slightly right compared to previous -10% */
    display: flex;
    justify-content: center;
    margin-bottom: 0;
  }

  .fold-institutional__main-img {
    max-width: 100%; 
  }

  .floating-card {
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    max-width: 240px; 
    border-radius: 9999px; 
    gap: 0.5rem;
  }

  .floating-card__icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .floating-card__icon svg {
    width: 16px;
    height: 16px;
  }

  .floating-card__title {
    font-size: 0.8rem; 
  }

  .floating-card__text {
    font-size: 0.7rem; 
    line-height: 1.2;
  }

  /* Reposiciona as coordenadas flutuantes para ficarem mais próximos em pares */
  .pos-top-left {
    top: -5%; /* Mais segurança */
    left: 2%;
  }

  .pos-top-right {
    top: 8%; /* Sua aliada - Próximo mas sem colidir */
    right: 2%;
  }

  .pos-bottom-left {
    bottom: 8%; /* Mais economia */
    left: 2%;
  }

  .pos-bottom-right {
    bottom: -5%; /* Mais tranquilidade - Próximo mas sem colidir */
    right: 2%;
  }

  .fold-institutional__base {
    margin-top: 1.5rem; /* Margem reduzida para o botão ficar mais colado */
  }

  .fold-institutional__cta {
    width: auto !important; 
    max-width: 280px !important; /* Trava o botão para nunca ficar colossal */
    padding: 0.75rem 1.25rem !important; /* Muito menos espesso */
    font-size: 0.85rem !important; /* Fonte contida */
  }
}
