/* Criativa landing — Lumi e topbar: alteração pontual, sem modificar cards ou
   componentes do painel autenticado. Rollback: remover este link do PHP. */

/* O tablet na vertical mostra somente marca e ações essenciais. */
@media (orientation: portrait) {
  body .cv-page .pi-topbar .pi-extra-nav { display: none !important; }
  body .cv-page .pi-topbar .pi-topbar-main { justify-content:space-between; }
  body .cv-page .pi-topbar .pi-public-actions { display:flex; margin-left:auto; }
}

/* Em paisagem, obedecer aos breakpoints da barra canônica. */

/* Figura oficial derivada da referência visual, com transparência. */
body .cv-page .lp-hero .lp-hero-image .lp-lumi {
  width: min(100%, 620px) !important;
  height: auto !important;
  max-height: 560px !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  filter: drop-shadow(0 12px 23px #001b4f84);
}

/* Quando há duas colunas, valoriza Lumi sem invadir o conteúdo. */
@media (min-width: 761px) {
  body .cv-page .lp-hero .lp-hero-image {
    display:flex !important;
    align-items:flex-end !important;
    justify-content:center !important;
    min-width:0;
    overflow:visible;
  }
  body .cv-page .lp-hero .lp-hero-image .lp-lumi {
    position:relative !important;
    inset:auto !important;
    align-self:flex-end;
    margin:0 auto !important;
    width:min(100%, 620px) !important;
    max-height:min(560px, 54vw) !important;
  }
}
@media (min-width: 761px) and (max-width: 1180px) {
  body .cv-page .lp-hero .lp-hero-image .lp-lumi {
    max-height: min(480px, 52vw) !important;
  }
}
@media (max-width: 760px) {
  body .cv-page .lp-hero .lp-hero-image {
    display:flex !important;
    justify-content:center !important;
    align-items:flex-end !important;
    overflow:hidden;
  }
  body .cv-page .lp-hero .lp-hero-image .lp-lumi {
    position:relative !important;
    inset:auto !important;
    margin:0 auto !important;
    width:min(100%, 430px) !important;
    max-height: min(335px, 84vw) !important;
  }
}

/* Lumi portrait 20261129: preserve full image and clearance above antenna. */
@media (max-width: 760px) and (orientation: portrait) {
  body .cv-page .lp-hero .lp-hero-image {
    height: calc(clamp(250px, 76vw, 335px) + 16px) !important;
    overflow: visible !important;
  }
}

/* Landing safe area 20261129: full bleed, protected content. */
@media (orientation: landscape) and (max-height: 600px) {
  body .cv-page .pi-topbar,
  body .cv-page .lp-main > section,
  body .cv-page .lp-footer {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
  body .cv-page .lp-footer { padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
}
