/* Refinamentos limitados à página Formações. */
.formacoes-page .page-intro { padding-block: 60px 48px; }
.formacoes-page .intro-description { max-width: 760px; font-size: 17px; line-height: 1.8; color: #5b6571; }
.formacoes-page .intro-description p { margin-bottom: 18px; }
.formacoes-page .intro-description + .text-button { margin-top: 2px; }
.formacoes-page .services { padding-block: 34px 64px; }
.formacoes-page .editorial-grid { gap: 36px; }
.formacoes-page .editorial-grid article { height: auto; min-height: 0; }
.formacoes-page .editorial-grid p { font-size: 16px; line-height: 1.75; margin-bottom: 18px; }
.formacoes-page .editorial-grid .detail { padding-top: 18px; }
.formacoes-page .editorial-grid .text-button { margin-top: 2px; }
.formacoes-page .methodology { padding-block: 64px; }
.formacoes-page .methodology .split { align-items: start; gap: 9%; }
.formacoes-page .method-steps { list-style: none; padding: 0; margin: 28px 0; }
.formacoes-page .method-steps li { display: flex; gap: 18px; border-top: 1px solid #d4d8d1; padding-top: 20px; margin-top: 20px; }
.formacoes-page .method-steps .number { margin: 6px 0 0; flex-shrink: 0; }
.formacoes-page .method-steps h3 { font: 500 14.4px/1.5 Arial,Helvetica,sans-serif; letter-spacing: 0; margin-bottom: 8px; }
.formacoes-page .method-steps p { margin: 0; font-size: 16px; line-height: 1.75; }
.formacoes-page .proposal-section { padding-block: 64px 36px; position: relative; }
.formacoes-page .legacy-anchor { position: absolute; top: 0; }
.formacoes-page .form-intro { font-size: 16px; line-height: 1.75; color: #5b6571; max-width: 680px; }
.formacoes-page .notice { font-size: 13px; line-height: 1.65; }
.formacoes-page label { font-size: 14px; line-height: 1.5; margin-bottom: 18px; min-width: 0; }
.formacoes-page .fields { gap: 4px 24px; }
.formacoes-page input, .formacoes-page select, .formacoes-page textarea { font-size: 16px; padding: 12px; min-height: 48px; max-width: 100%; }
.formacoes-page select { text-overflow: ellipsis; }
.formacoes-page .button { gap: 16px; min-height: 48px; }
.formacoes-page .text-button { min-height: 44px; }
.formacoes-page .form-status:empty { display: none; }
.formacoes-page .form-status { margin-bottom: 0; }
.formacoes-page footer { border-top: 1px solid var(--line); }
.formacoes-page .footer-main { padding-block: 32px; }
.formacoes-page .footer-main p { font-size: 13px; line-height: 1.8; }
.formacoes-page .footer-main > .text-button { align-self: center; }
.formacoes-page .footer-bottom { padding-block: 18px; }
@media (max-width: 780px) {
  .formacoes-page .page-intro { padding-block: 38px 30px; }
  .formacoes-page .page-intro h1 { font-size: clamp(30.6px, 7.65vw, 38.7px); line-height: 1.15; }
  .formacoes-page .page-intro h1 br { display: none; }
  .formacoes-page .eyebrow { letter-spacing: .16em; }
  .formacoes-page .intro-description { font-size: 16px; line-height: 1.75; }
  .formacoes-page .services { padding-block: 16px 42px; }
  .formacoes-page .editorial-grid { gap: 28px; }
  .formacoes-page .editorial-grid article { padding-top: 20px; }
  .formacoes-page .editorial-grid h2 { font-size: 28.8px; margin-bottom: 20px; }
  .formacoes-page .methodology { padding-block: 42px; }
  .formacoes-page .methodology .split { gap: 20px; }
  .formacoes-page .methodology h2 { margin-bottom: 0; }
  .formacoes-page .proposal-section { padding-block: 42px 24px; }
  .formacoes-page .form-head h2 { font-size: 28.8px; margin-bottom: 18px; }
  .formacoes-page .fields { grid-template-columns: 1fr; gap: 0; }
  .formacoes-page .button { max-width: 100%; padding: 13px 12px; line-height: 1.5; }
  .formacoes-page .footer-main { padding-block: 26px 22px; gap: 18px; }
  .formacoes-page .footer-main > .text-button { align-self: flex-start; padding-block: 8px; min-height: 40px; }
  .formacoes-page .footer-bottom { gap: 8px; padding-block: 16px; line-height: 1.6; }
}

/* Abertura do formulário: título equilibrado sem alterar campos ou envio. */
.formacoes-page #formulario-formacoes .form-head h2 { text-wrap: balance; }
@media (max-width: 780px) {
  .formacoes-page #formulario-formacoes .form-head h2 {
    font-size: clamp(25.2px, 6.93vw, 28.8px);
    line-height: 1.15;
  }
}

/* Fotografias fornecidas, preservadas integralmente e sem efeitos. */
.formacoes-page .formation-photo-section { padding-bottom: 32px; }
.formacoes-page .formation-event-photo {
  display: block;
  width: min(100%, 460px);
  height: auto;
  margin-inline: auto;
}
.formacoes-page .lecture-event-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 24px 0 18px;
}
@media (max-width: 780px) {
  .formacoes-page .formation-photo-section { padding-bottom: 24px; }
  .formacoes-page .formation-event-photo { max-width: 390px; }
}

/* Abertura editorial: proporção 43/57 entre as colunas, descontado o respiro. */
.formacoes-page .formation-opening {
  display: grid;
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.formacoes-page .formation-opening-photo {
  display: block;
  width: 100%;
  height: auto;
}
.formacoes-page .formation-opening-copy { min-width: 0; }
.formacoes-page .formation-opening h1 {
  font-size: clamp(32.4px, 3.42vw, 50.4px);
  text-wrap: balance;
}
.formacoes-page .formation-opening h1 br { display: none; }
@media (max-width: 780px) {
  .formacoes-page .formation-opening { grid-template-columns: 1fr; gap: 30px; }
  .formacoes-page .formation-opening-photo { max-width: 440px; margin-inline: auto; }
  .formacoes-page .formation-opening h1 { font-size: clamp(30.6px, 7.65vw, 38.7px); }
}

/* Modalidades em faixas editoriais alternadas. */
.formacoes-page .services .editorial-grid {
  grid-template-columns: 1fr;
  gap: 48px;
}
.formacoes-page .services :is(#formacao-continuada, #oficinas, #palestras) {
  display: grid;
  grid-template-columns: minmax(0, 57fr) minmax(0, 43fr);
  grid-template-areas: "number photo" "title photo" "main photo" "detail photo" "cta photo";
  grid-template-rows: auto auto auto auto auto;
  column-gap: clamp(28px, 4vw, 56px);
  align-content: center;
  align-self: stretch;
  min-width: 0;
  padding-top: 40px;
}
.formacoes-page .services #oficinas {
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  grid-template-areas: "photo number" "photo title" "photo main" "photo detail" "photo cta";
}
.formacoes-page .services article > .number { grid-area: number; margin-bottom: 18px; }
.formacoes-page .services article > h2 { grid-area: title; font-size: 32.4px; font-weight: 400; line-height: 1.16; margin-bottom: 24px; }
.formacoes-page .services .service-photo {
  grid-area: photo;
  align-self: center;
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  margin: 0;
}
.formacoes-page #palestras .service-photo { object-position: center 20%; }
.formacoes-page .services .service-main-copy { grid-area: main; }
.formacoes-page .services .service-main-copy p,
.formacoes-page .services article > .detail { font-size: 17px; line-height: 1.65; }
.formacoes-page .services article > .detail { grid-area: detail; margin-bottom: 22px; padding-top: 18px; }
.formacoes-page .services article > .text-button { grid-area: cta; align-self: start; justify-self: start; }
.formacoes-page .methodology { padding-block: 48px; }
.formacoes-page .methodology .split { grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); gap: 6%; }
.formacoes-page .methodology .split > div > p:not(.eyebrow),
.formacoes-page .method-steps p { font-size: 16px; line-height: 1.75; }
.formacoes-page .methodology .split > div > p:not(.eyebrow) { margin-bottom: 18px; }
.formacoes-page .method-steps { margin-block: 22px; }
.formacoes-page .method-steps li { padding-top: 16px; margin-top: 16px; }
.formacoes-page .methodology + .proposal-section { padding-top: 48px; }
@media (max-width: 780px) {
  .formacoes-page .services .editorial-grid { gap: 32px; }
  .formacoes-page .services :is(#formacao-continuada, #oficinas, #palestras) {
    grid-template-columns: 1fr;
    grid-template-areas: "number" "title" "photo" "main" "detail" "cta";
    grid-template-rows: auto;
    padding-top: 28px;
  }
  .formacoes-page .services article > .number { margin-bottom: 14px; }
  .formacoes-page .services article > h2 { font-size: 28.8px; margin-bottom: 20px; }
  .formacoes-page .services .service-photo { margin-bottom: 22px; max-width: 440px; justify-self: center; }
  .formacoes-page .services .service-main-copy p,
  .formacoes-page .services article > .detail { font-size: 16px; line-height: 1.65; }
  .formacoes-page .methodology { padding-block: 36px; }
  .formacoes-page .methodology .split { grid-template-columns: 1fr; gap: 22px; }
  .formacoes-page .methodology + .proposal-section { padding-top: 36px; }
}

/* Percurso formativo: introdução ampla e etapas conectadas. */
.formacoes-page .methodology { padding-block: 56px; }
.formacoes-page .methodology-intro {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.formacoes-page .methodology-intro h2 { margin-bottom: 0; text-wrap: balance; }
.formacoes-page .methodology-intro > div > p:not(.eyebrow) { font-size: 16px; line-height: 1.75; margin-bottom: 18px; }
.formacoes-page .methodology-intro > div > p:last-child { margin-bottom: 0; }
.formacoes-page .method-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 40px 0 30px;
}
.formacoes-page .method-steps li {
  display: block;
  position: relative;
  padding: 26px 22px;
  margin: 0;
  border: 1px solid #d4d8d1;
  min-width: 0;
}
.formacoes-page .method-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 1px;
  background: var(--gold, #b19a68);
  top: 39px;
  left: 100%;
}
.formacoes-page .method-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--gold, #b19a68);
  border-right: 1px solid var(--gold, #b19a68);
  transform: rotate(45deg);
  top: 37px;
  left: calc(100% + 23px);
}
.formacoes-page .method-steps .number { display: block; margin: 0 0 20px; }
.formacoes-page .method-steps h3 {
  font: 500 16.2px/1.4 Arial, Helvetica, sans-serif;
  color: var(--navy, #13283b);
  min-height: 2.8em;
  margin-bottom: 14px;
}
.formacoes-page .method-steps p { font-size: 16px; line-height: 1.7; margin: 0; }
.formacoes-page .methodology > .wrap > .button { display: flex; width: fit-content; margin-left: auto; }
@media (max-width: 780px) {
  .formacoes-page .methodology { padding-block: 36px; }
  .formacoes-page .methodology-intro { grid-template-columns: 1fr; gap: 24px; }
  .formacoes-page .method-steps { grid-template-columns: 1fr; gap: 28px; margin: 30px 0 26px; }
  .formacoes-page .method-steps li { padding: 24px; }
  .formacoes-page .method-steps .number { margin-bottom: 14px; }
  .formacoes-page .method-steps h3 { min-height: 0; }
  .formacoes-page .method-steps li:not(:last-child)::after { width: 1px; height: 28px; left: 31px; top: 100%; }
  .formacoes-page .method-steps li:not(:last-child)::before { left: 29px; top: calc(100% + 20px); transform: rotate(135deg); }
  .formacoes-page .methodology > .wrap > .button { margin-left: 0; }
}
