/* ==========================================================================
   UEBYOU · LP ChatGPT Ads 01  ·  https://lp.uebyou.pt/chatgptads01/
   Correcoes de layout do Zoho Landing Pages
   Colar em: Zoho LandingPage > Definicoes > CSS personalizado (zs-customcss.css)

   Versao 2.0 · 14/09/2026
   [CONFIRMADO] medido e testado por injeccao na pagina publicada.

   Nao cria nem redefine nenhuma classe usada em corpo.html ou footer.html.
   A unica classe nova e `ueb-scrolled`, aplicada ao contentor do header.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. HEADER TRANSPARENTE, FIXO, SOBRE O HERO
   O header deixa de ocupar espaco no fluxo e passa a assentar por cima da
   imagem do hero, que ja reserva 100 px no topo.
   O `padding-top` que o script do Zoho injecta no body e anulado, para nao
   haver salto no momento em que o header passa a fixo.
   -------------------------------------------------------------------------- */
.theme-topband-container {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 900;
}
body { padding-top: 0 !important; }

.theme-topband-container .zpsection,
.theme-topband-container .zpsection.zpdark-section-bg {
  background-color: transparent !important;   /* remove o #4CB5AB do template */
  background-image: none !important;
  transition: background-color .28s ease, padding .28s ease, box-shadow .28s ease;
}

/* Ancoras (#formulario, #elegibilidade) nao ficam escondidas sob o header */
html { scroll-padding-top: 110px; }


/* --------------------------------------------------------------------------
   2. ESTADO COM SCROLL — branco a 90%
   Responde a dois gatilhos, basta um deles estar activo:
     a) `.ueb-scrolled`, aplicada pelo snippet JS do ficheiro
        uebyou-lp-chatgptads01-header.js  (recomendado, funciona em todas as
        larguras de ecra);
     b) `.theme-topband-transparent`, aplicada pelo proprio Zoho quando o
        efeito de scroll do topband esta definido como "Transparente"
        (so actua acima de 992 px de largura).
   -------------------------------------------------------------------------- */
.theme-topband-container.ueb-scrolled .zpsection,
.theme-topband-container .zpsection.theme-topband-transparent {
  background-color: rgba(255, 255, 255, .90) !important;
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
          backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 2px 14px rgba(15, 23, 41, .10);
  padding-block: 14px !important;             /* header mais compacto no scroll */
}

/* Logotipo: o negativo e branco e desapareceria sobre o branco.
   Troca automatica para a versao a cor, que existe no mesmo directorio.
   [CONFIRMADO] uebyou-dominio-cor.svg responde 200 e tem a mesma geometria. */
.theme-topband-container.ueb-scrolled [data-element-id="topband_image"] .zpimage,
.theme-topband-container .theme-topband-transparent [data-element-id="topband_image"] .zpimage {
  content: url('/Assets%20Uebyou/Logotipos/uebyou-dominio-cor.svg');
}


/* --------------------------------------------------------------------------
   3. MARGENS BRANCAS LATERAIS — 15 px de cada lado
   Medido: `.zpcontainer-fluid` tem padding 0 15px e `.zpelem-col` tem padding
   0 15px; a margem negativa da `.zprow` so anula o primeiro.
   -------------------------------------------------------------------------- */
[data-element-id="elm_EmsagY-Eb6uhwKM9tWc87g"] .zpcontainer-fluid,
[data-element-id="elm_EmsagY-Eb6uhwKM9tWc87g"] .zpelem-col {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
[data-element-id="elm_EmsagY-Eb6uhwKM9tWc87g"] .zprow {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
[data-element-id="elm_EmsagY-Eb6uhwKM9tWc87g"].zpsection {
  padding: 0 !important;
  margin: 0 !important;
}


/* --------------------------------------------------------------------------
   4. FAIXAS BRANCAS DE 20 px
   Medido: os blocos de codigo HTML do Zoho tem `margin-top: 20px` por defeito.
   -------------------------------------------------------------------------- */
.page-container .zpelem-codesnippet {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


/* --------------------------------------------------------------------------
   5. FORMULARIO ZOHO — largura total, sem folga lateral
   -------------------------------------------------------------------------- */
[data-element-id="elm_yCBSioBNYE7VJ0QYPX-Trw"] .zpiframe-container,
[data-element-id="elm_yCBSioBNYE7VJ0QYPX-Trw"] .zpiframe {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: block !important;
}


/* --------------------------------------------------------------------------
   6. SEGURANCA E TELEMOVEL
   -------------------------------------------------------------------------- */
html, body { overflow-x: hidden; }
.theme-content-area,
.theme-content-container,
.theme-content-area-inner,
.page-container { max-width: 100% !important; }

@media (max-width: 767px) {
  /* o texto do CTA final tem padding lateral de 100 px inline no editor */
  [data-element-id="elm_-bJYmLZJ4urItsGbKLWHFQ"].zpelem-text {
    padding-inline-start: 24px !important;
    padding-inline-end: 24px !important;
  }
  html { scroll-padding-top: 90px; }
}
