/* ================================================================
   MANIFESTO UNE — Landing Page
   Todo o CSS está escopado sob .manifesto-une para não vazar
   para o resto do tema do WordPress.
================================================================= */

/* Carrega a fonte Be Vietnam Pro junto com o CSS (funciona mesmo sem o
   <link> no HTML — importante no WordPress). Deve ficar no TOPO. */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

.manifesto-une {
  /* Paleta extraída do layout */
  --blue-deep: #0B0B95;     /* fundo do hero e do formulário */
  --blue-electric: #1E1EF0; /* botões azuis, texto sobre neon */
  --yellow: #F2E436;        /* fundo da seção de introdução */
  --neon: #EEFF00;          /* botões neon e submit */
  --green: #057C42;         /* faixa de ação */
  --white: #FFFFFF;
  --ink: #121215;           /* texto escuro */

  --container: 880px;
  --radius: 6px;

  /* Fonte do projeto (usada em toda a LP e no formulário) */
  --font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  font-family: var(--font);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Reset local (evita heranças estranhas do tema) */
.manifesto-une *,
.manifesto-une *::before,
.manifesto-une *::after { box-sizing: border-box; }

/* Força a Be Vietnam Pro ACIMA do CSS global do tema (arquivo "common").
   O tema aplica a fonte direto nos elementos (p, h2, input...), então
   precisamos fazer o mesmo com especificidade maior + !important.
   Escopado em .manifesto-une para não afetar o resto do site.
   (i, svg e ícones ficam de fora para não quebrar fontes de ícone.) */
.manifesto-une,
.manifesto-une h1, .manifesto-une h2, .manifesto-une h3, .manifesto-une h4,
.manifesto-une p, .manifesto-une a, .manifesto-une span, .manifesto-une li,
.manifesto-une strong, .manifesto-une em, .manifesto-une small,
.manifesto-une label, .manifesto-une input, .manifesto-une select,
.manifesto-une textarea, .manifesto-une button {
  font-family: var(--font) !important;
}

.manifesto-une p {margin: 0 0 1.1em;color: black;letter-spacing: normal;}
.manifesto-une h2 { margin: 0; }
.manifesto-une img { max-width: 100%; display: block; }

/* Container */
.mlp-container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}
.mlp-container--narrow { max-width: var(--container); }

/* ----------------------------------------------------------------
   1. HERO / BANNER
----------------------------------------------------------------- */
.mlp-hero {
  position: relative;
  overflow: hidden;
  background: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 96px) clamp(20px, 5vw, 64px);
  min-height: min(88vh, 760px);
}
/* Logo da UNE vazado como marca d'água */
.mlp-hero__watermark {
  position: absolute;
  top: 50%;
  right: -6%;
  height: 92%;
  width: auto;
  transform: translateY(-50%) rotate(-6deg);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
/* Ilustração do Manifesto (centralizada) */
.mlp-hero__art {
  position: relative;
  z-index: 2;
  width: auto;
  height: auto;
  max-width: min(88%, 620px);
  max-height: 78vh;
  margin-inline: auto;
}

/* ----------------------------------------------------------------
   2. INTRODUÇÃO (amarelo)
----------------------------------------------------------------- */
.mlp-intro {
  background: var(--yellow);
  color: var(--ink);
  padding-block: clamp(40px, 7vw, 76px);
}
.mlp-intro p {
  font-size: clamp(1rem, 0.6vw + 0.95rem, 1.2rem);
  font-weight: 400;
  color: black;
  letter-spacing: normal;
}
.mlp-intro__cta {
  display: flex;
  justify-content: center;
  margin-top: 2.2rem;
}

/* ----------------------------------------------------------------
   3. PROPOSTAS (branco)
----------------------------------------------------------------- */
.mlp-points {
  background: var(--white);
}
.mlp-point { margin-bottom: 2.2rem; }
.mlp-point__title {
  font-size: clamp(1.15rem, 0.6vw + 1.05rem, 1.4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.mlp-point p {
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1rem);
  margin-bottom: 0.5em;
  color: black;
}
.mlp-points__closing {
  font-size: clamp(1.15rem, 0.8vw + 1.05rem, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* ----------------------------------------------------------------
   4. FAIXA DE AÇÃO (verde)
----------------------------------------------------------------- */
.mlp-cta {
  background: var(--green);
  padding-block: clamp(40px, 6vw, 72px);
}
.mlp-cta__buttons {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   BOTÕES
----------------------------------------------------------------- */
.mlp-btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  line-height: 1.2;
}
.mlp-btn:hover { transform: translateY(-2px); filter: brightness(1.03); }
.mlp-btn:active { transform: translateY(0); }
.mlp-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Azul (seção intro) */
.mlp-btn--blue {
  background: var(--blue-electric);
  color: var(--white);
  padding: 0.85em 1.6em;
  font-size: 0.95rem;
}

/* Neon (faixa verde + submit) */
.mlp-btn--neon {
  background: var(--neon);
  color: var(--blue-electric);
  padding: 1.05em 2em;
  font-size: clamp(0.95rem, 0.4vw + 0.9rem, 1.15rem);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
}
.mlp-btn--neon:hover { box-shadow: 0 8px 0 rgba(0, 0, 0, 0.12); }

/* ----------------------------------------------------------------
   5. SEÇÃO DO FORMULÁRIO (azul)
----------------------------------------------------------------- */
.mlp-form {
  background: var(--blue-deep);
  color: var(--white);
  padding-block: clamp(48px, 8vw, 96px);
}
.mlp-form__slot { width: 100%; }

/* ---- Prévia estática dos campos (substituída pelo WPForms) ---- */
.mlp-form-preview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px) clamp(28px, 4vw, 56px);
}
.mlp-field { display: flex; flex-direction: column; }
.mlp-field label {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.55rem;
  color: var(--white);
}
.mlp-field .req { color: var(--white); }
.mlp-field .opt { opacity: 0.8; font-weight: 400; }
.mlp-field input {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  padding: 0 16px;
  font-family: var(--font);
  font-size: 1rem;
}
.mlp-field input:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 2px;
}
.mlp-form-preview__submit {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 5vw, 56px);
}

/* ================================================================
   >>> WPFORMS OVERRIDES <<<
   Ao inserir o shortcode [wpforms id="..."] dentro de .mlp-form,
   estas regras deixam o formulário no mesmo visual do layout.
   (Ajuste os seletores se sua versão do WPForms diferir.)
================================================================= */
.mlp-form .wpforms-container { max-width: 100%; margin: 0; }

/* Fonte Be Vietnam Pro em TODO o formulário (o WPForms costuma impor a
   própria fonte, por isso o !important) */
.mlp-form .wpforms-container,
.mlp-form .wpforms-form,
.mlp-form .wpforms-form input,
.mlp-form .wpforms-form select,
.mlp-form .wpforms-form textarea,
.mlp-form .wpforms-form button,
.mlp-form .wpforms-field-label,
.mlp-form .wpforms-field-sublabel,
.mlp-form .wpforms-field-description,
.mlp-form .wpforms-field label {
  font-family: var(--font) !important;
}

/* Grid 2 colunas para os campos (dois campos lado a lado) */
.mlp-form .wpforms-form .wpforms-field-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px) clamp(28px, 4vw, 56px);
  align-items: start;           /* alinha os pares pelo topo */
}
.mlp-form .wpforms-form .wpforms-field {
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;       /* anula larguras inline do WPForms */
  clear: none !important;
}

/* Campo Nome (Nome + Sobrenome) = UM campo só, ocupando uma célula,
   com os dois inputs lado a lado dentro dela */
.mlp-form .wpforms-field-name .wpforms-field-row {
  display: flex;
  gap: 14px;
  margin: 0;
}
.mlp-form .wpforms-field-name .wpforms-field-row-block {
  flex: 1 1 0;
  float: none !important;
  width: auto !important;
  padding: 0 !important;
}

/* Consentimento / aceite: largura total e SEMPRE abaixo de todos */
.mlp-form .wpforms-field-checkbox,
.mlp-form .wpforms-field-gdpr-checkbox,
.mlp-form .wpforms-field-consent,
.mlp-form .wpforms-field-textarea,
.mlp-form .wpforms-field-address,
.mlp-form .wpforms-field.wpforms-field-full {
  grid-column: 1 / -1;          /* linha inteira */
}
.mlp-form .wpforms-field-checkbox,
.mlp-form .wpforms-field-gdpr-checkbox,
.mlp-form .wpforms-field-consent {
  order: 99;                    /* garante que fique por último */
}

/* Labels em branco */
.mlp-form .wpforms-field-label,
.mlp-form .wpforms-field-sublabel {
  color: var(--white) !important;
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 0.55rem;
}
.mlp-form .wpforms-required-label { color: var(--white) !important; }

/* Texto/descrição e itens do aceite em branco */
.mlp-form .wpforms-field-description,
.mlp-form .wpforms-field-checkbox label,
.mlp-form .wpforms-field-gdpr-checkbox label,
.mlp-form .wpforms-field-consent label {
  color: var(--white) !important;
}
.mlp-form .wpforms-field-checkbox input[type="checkbox"],
.mlp-form .wpforms-field-gdpr-checkbox input[type="checkbox"],
.mlp-form .wpforms-field-consent input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--neon);
  margin: 0 8px 0 0;
  flex: 0 0 auto;
}
/* Remove marcadores/indentação da lista do checkbox */
.mlp-form .wpforms-field-checkbox ul,
.mlp-form .wpforms-field-gdpr-checkbox ul,
.mlp-form .wpforms-field-consent ul {
  list-style: none !important;
  margin: 0 0 0.6rem !important;
  padding: 0 !important;
}
.mlp-form .wpforms-field-checkbox li,
.mlp-form .wpforms-field-gdpr-checkbox li,
.mlp-form .wpforms-field-consent li {
  display: flex;
  align-items: center;
  margin: 0 !important;
}
.mlp-form .wpforms-field-checkbox li label,
.mlp-form .wpforms-field-gdpr-checkbox li label,
.mlp-form .wpforms-field-consent li label { margin: 0 !important; }

/* Inputs / selects / textarea brancos */
.mlp-form .wpforms-field input[type="text"],
.mlp-form .wpforms-field input[type="email"],
.mlp-form .wpforms-field input[type="tel"],
.mlp-form .wpforms-field input[type="number"],
.mlp-form .wpforms-field input[type="url"],
.mlp-form .wpforms-field select,
.mlp-form .wpforms-field textarea {
  width: 100% !important;
  height: 52px;
  border: none !important;
  border-radius: 3px !important;
  background: var(--white) !important;
  color: var(--ink) !important;
  padding: 0 16px !important;
  font-size: 1rem !important;
  box-shadow: none !important;
  max-width: 100%;
}
.wpforms-container .wpforms-field .wpforms-field-row .wpforms-field-row-block:first-child{
  margin-right: 10px;
}
div.wpforms-container-full .wpforms-form .wpforms-field .wpforms-field-row:last-child, div.wpforms-container-full .wpforms-form .wpforms-field .wpforms-field-row:only-child{
  max-width: 100%;
  gap: 0;
}
.mlp-form .wpforms-field textarea { height: auto; min-height: 110px; padding: 12px 16px !important; }
.mlp-form .wpforms-field input:focus,
.mlp-form .wpforms-field select:focus,
.mlp-form .wpforms-field textarea:focus {
  outline: 3px solid var(--neon);
  outline-offset: 2px;
}
.wpforms-container input.wpforms-field-medium, .wpforms-container select.wpforms-field-medium, .wpforms-container .wpforms-field-row.wpforms-field-medium, .wp-core-ui div.wpforms-container input.wpforms-field-medium, .wp-core-ui div.wpforms-container select.wpforms-field-medium, .wp-core-ui div.wpforms-container .wpforms-field-row.wpforms-field-medium{
  max-width: 100% !important;
}

/* Botão de envio no estilo neon, centralizado */
.mlp-form .wpforms-submit-container { text-align: center; margin-top: clamp(32px, 5vw, 56px); }
.mlp-form button[type="submit"].wpforms-submit {
  background: var(--neon) !important;
  color: var(--blue-electric) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  font-family: var(--font) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 1.05em 2.4em !important;
  font-size: 1.1rem !important;
  box-shadow: 0 6px 0 rgba(0,0,0,.12);
  cursor: pointer;
  transition: transform .15s ease;
  height: auto;
  margin-top: 40px;
}
.mlp-form button[type="submit"].wpforms-submit:hover { transform: translateY(-2px); }

.mlp-signers{
  background:var(--yellow); color:var(--blue-deep);
  padding-block:clamp(44px,7vw,84px);
  border:2px solid var(--blue-deep); /* moldura da referência — remova se não quiser */
}
.mlp-signers__title{
  color:var(--blue-deep); font-weight:800; text-transform:uppercase;
  letter-spacing:.005em; font-size:clamp(1.7rem,4vw,2.75rem);
  line-height:1.08; margin: 0 0 2.5rem !important; text-align: center;
}
.mlp-signers__list{
  color:var(--blue-deep); text-align:center; font-weight:500;
  font-size:clamp(1.05rem,1.4vw,1.35rem); line-height:1.5;
}
.mlp-signers__list>*:last-child{ margin-bottom:0; }
.mlp-signers__list p{ margin:0 0 .2em; }
.mlp-signers__list ul,.mlp-signers__list ol{ list-style:none; margin:0; padding:0; }
.mlp-signers__list li{ margin:0 0 .2em; }
.mlp-signers__list a{ color:var(--blue-deep); text-decoration:underline; }

/* ----------------------------------------------------------------
   ANIMAÇÃO DE ENTRADA (reveal)
----------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {opacity: 1;transform: none;padding-top: 50px;}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------------------------------------------
   RESPONSIVO
----------------------------------------------------------------- */
@media (max-width: 680px) {
  .mlp-form-preview__grid,
  .mlp-form .wpforms-form .wpforms-field-container {
    grid-template-columns: 1fr;
  }
  .mlp-cta__buttons { flex-direction: column; align-items: stretch; }
  .mlp-cta__buttons .mlp-btn { width: 100%; }
}

@media (min-width: 700px) {
  .mlp-signers__list {
    column-count: 2;
    column-gap: clamp(32px, 6vw, 80px);
  }
  .mlp-signers__list p,
  .mlp-signers__list li {
    break-inside: avoid;            /* evita nome partido entre colunas */
    -webkit-column-break-inside: avoid;
  }
}
