/* V82.2 - Home Hero Position Final Fix
   Escopo: somente index.php/home. Não altera hover, ativo, links ou visual global do header/menu. */

/* Marca de escopo adicionada apenas no body da home. */
html body.home-v82-2,
html body.home-v82-2 .wrapper{
  margin-top:0!important;
  padding-top:0!important;
}

/* O header da home fica apenas com a altura real da barra de menu.
   Isso neutraliza regras antigas que davam altura de hero para .header-main. */
html body.home-v82-2 .wrapper > header#home-top.header.header-main,
html body.home-v82-2 .wrapper > .header#home-top.header-main{
  display:block!important;
  position:relative!important;
  z-index:1000!important;
  width:100%!important;
  height:74px!important;
  min-height:74px!important;
  max-height:74px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  background:#03080e!important;
  background-image:none!important;
  transform:none!important;
  clear:both!important;
}
html body.home-v82-2 .wrapper > header#home-top.header.header-main::before,
html body.home-v82-2 .wrapper > header#home-top.header.header-main::after,
html body.home-v82-2 .wrapper > .header#home-top.header-main::before,
html body.home-v82-2 .wrapper > .header#home-top.header-main::after{
  content:none!important;
  display:none!important;
}
html body.home-v82-2 .wrapper > header#home-top.header.header-main > .nav,
html body.home-v82-2 .wrapper > .header#home-top.header-main > .nav{
  position:relative!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  z-index:1001!important;
  width:100%!important;
  height:74px!important;
  min-height:74px!important;
  max-height:74px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  overflow:visible!important;
}
html body.home-v82-2 .wrapper > header#home-top.header.header-main > .nav > .content-area,
html body.home-v82-2 .wrapper > .header#home-top.header-main > .nav > .content-area{
  height:74px!important;
  min-height:74px!important;
  max-height:74px!important;
}

/* Segurança: se alguma versão antiga injetar bloco de hero dentro do header, ele não cria tela vazia. */
html body.home-v82-2 .wrapper > header#home-top.header.header-main > .header__box,
html body.home-v82-2 .wrapper > header#home-top.header.header-main > .hero-media,
html body.home-v82-2 .wrapper > .header#home-top.header-main > .header__box,
html body.home-v82-2 .wrapper > .header#home-top.header-main > .hero-media{
  display:none!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
}

/* A hero real da home começa imediatamente depois do menu, sem spacer azul/escuro. */
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  z-index:1!important;
  width:100%!important;
  height:calc(100vh - 74px)!important;
  min-height:620px!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  top:auto!important;
  clear:both!important;
  overflow:hidden!important;
  isolation:isolate!important;
  background:#03080e url('../images/icarus-banner-leviathan.webp') center center/cover no-repeat!important;
  transform:none!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  pointer-events:none!important;
  background:
    radial-gradient(circle at 50% 38%,rgba(120,80,255,.12),transparent 32%),
    linear-gradient(180deg,rgba(2,6,12,.08) 0%,rgba(2,6,12,.18) 52%,rgba(2,6,12,.74) 100%)!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .hero-media{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  margin:0!important;
  padding:0!important;
  background:#03080e url('../images/icarus-banner-leviathan.webp') center center/cover no-repeat!important;
  overflow:hidden!important;
  transform:none!important;
  pointer-events:none!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .hero-media__video,
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .hero-media__image{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
  margin:0!important;
  padding:0!important;
  transform:scale(1.035)!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .hero-media__video{
  opacity:1!important;
  visibility:visible!important;
  z-index:0!important;
  filter:saturate(1.06) contrast(1.05) brightness(.82)!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .hero-media__image{
  opacity:.16!important;
  z-index:0!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .hero-media__aurora,
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .hero-media__particles{
  z-index:2!important;
}

/* Conteúdo permanece centralizado dentro da primeira dobra, como antes do bug. */
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .header__box.roi-hero-art-wrap{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  z-index:5!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:clamp(18px,3vh,38px) 20px clamp(30px,5vh,62px)!important;
  transform:none!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .header__content.roi-hero-art{
  position:relative!important;
  z-index:6!important;
  width:min(1100px,92vw)!important;
  max-width:1100px!important;
  min-height:0!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  transform:none!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .roi-hero-art__brand{
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  transform:translateY(-8px)!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .roi-hero-art__logo{
  margin:0 auto 8px!important;
  width:auto!important;
  height:auto!important;
  max-height:58px!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .roi-hero-art__logo img{
  width:auto!important;
  max-width:104px!important;
  max-height:58px!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .roi-hero-art__eyebrow{
  margin:0 auto 12px!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .hero-logo-title{
  width:min(900px,80vw)!important;
  max-width:900px!important;
  margin:0 auto 12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .hero-logo-title img{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  max-height:min(38vh,380px)!important;
  object-fit:contain!important;
  margin:0 auto!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .roi-hero-subtitle{
  max-width:720px!important;
  margin:4px auto 0!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .roi-hero-divider{
  margin:14px auto 8px!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .roi-hero-status{
  margin:0 auto 18px!important;
}
html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .button.big{
  margin:0 auto!important;
}

/* Menu flutuante continua acima da home e clicável. */
html body.home-v82-2 .v53-section-nav{
  z-index:1200!important;
  pointer-events:auto!important;
}
html body.home-v82-2 .v53-section-nav a,
html body.home-v82-2 .v53-section-nav__item{
  pointer-events:auto!important;
}

/* Ao clicar em Central, enquadra a box inteira abaixo do menu real. */
html body.home-v82-2 #home-updates{
  scroll-margin-top:12px!important;
}

@media (max-width:900px){
  html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell{
    height:auto!important;
    min-height:calc(100vh - 74px)!important;
  }
  html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .header__box.roi-hero-art-wrap{
    min-height:calc(100vh - 74px)!important;
    padding:34px 16px 54px!important;
  }
  html body.home-v82-2 .wrapper > section#home-hero-visual.v80-home-hero-shell .hero-logo-title{
    width:92vw!important;
  }
}
