/* Editorial scenes: market chart, raised trade map, headset contact network, and growth graph. */
body[data-page="noticias"] main>section.page-intro[data-intro-scene="market"],
body[data-page="atividades"] main>section.page-intro[data-intro-scene="trade"],
body[data-page="contato"] main>section.page-intro[data-intro-scene="contact"],
body[data-page="sobre-nos"] main>section.page-intro.about-page-intro[data-intro-scene="growth"]{
  position:relative!important;
  isolation:isolate;
  overflow:hidden!important;
  min-height:clamp(300px,27vw,365px);
}
body[data-page="noticias"] main>section.page-intro[data-intro-scene="market"]>.wrap,
body[data-page="atividades"] main>section.page-intro[data-intro-scene="trade"]>.wrap,
body[data-page="contato"] main>section.page-intro[data-intro-scene="contact"]>.wrap,
body[data-page="sobre-nos"] main>section.page-intro.about-page-intro[data-intro-scene="growth"]>.wrap{
  position:relative;
  z-index:2;
}
body[data-page="noticias"] .intro-scene-canvas,
body[data-page="atividades"] .intro-scene-canvas,
body[data-page="contato"] .intro-scene-canvas,
body[data-page="sobre-nos"] .intro-scene-canvas{
  position:absolute;
  z-index:1;
  top:50%;
  right:clamp(18px,4vw,64px);
  display:block;
  width:clamp(285px,38vw,470px);
  height:clamp(218px,27vw,330px);
  transform:translateY(-50%);
  opacity:.96;
  pointer-events:none;
}
body[data-page="noticias"] .intro-scene-canvas{opacity:.92}
body[data-page="contato"] .intro-scene-canvas{opacity:.95}
body[data-page="sobre-nos"] .intro-scene-canvas{opacity:.94}
@media(min-width:1101px){
  body[data-page="sobre-nos"] .intro-scene-canvas{
    right:clamp(16px,2.6vw,36px);
    width:clamp(300px,32vw,390px);
    height:clamp(220px,26vw,320px);
  }
  /* Keep the contact network in the hero, but closer to the “Consulta comercial” copy. */
  body[data-page="contato"] .intro-scene-canvas{
    /* Anchor the illustration around 74% of the viewport, instead of a small fixed right inset. */
    right:max(88px,calc(26vw - 235px));
  }
}
@media(max-width:1100px) and (min-width:721px){
  body[data-page="noticias"] main>section.page-intro[data-intro-scene="market"],
  body[data-page="atividades"] main>section.page-intro[data-intro-scene="trade"],
  body[data-page="contato"] main>section.page-intro[data-intro-scene="contact"],
  body[data-page="sobre-nos"] main>section.page-intro.about-page-intro[data-intro-scene="growth"]{
    min-height:0;
    padding-bottom:clamp(26px,4vw,42px)!important;
  }
  body[data-page="noticias"] .intro-scene-canvas,
  body[data-page="atividades"] .intro-scene-canvas,
  body[data-page="contato"] .intro-scene-canvas,
  body[data-page="sobre-nos"] .intro-scene-canvas{
    position:relative;top:auto;right:auto;bottom:auto;
    width:min(58vw,360px);height:clamp(190px,25vw,230px);
    margin:14px clamp(22px,4vw,48px) 0 auto;
    transform:none;opacity:.86;
  }
  body[data-page="contato"] .intro-scene-canvas{margin-right:clamp(38px,7vw,72px)}
}
@media(max-width:720px){
  body[data-page="noticias"] main>section.page-intro[data-intro-scene="market"],
  body[data-page="atividades"] main>section.page-intro[data-intro-scene="trade"],
  body[data-page="contato"] main>section.page-intro[data-intro-scene="contact"],
  body[data-page="sobre-nos"] main>section.page-intro.about-page-intro[data-intro-scene="growth"]{
    min-height:0;
    padding-bottom:clamp(24px,7vw,36px)!important;
  }
  /* In normal flow, each smaller mobile scene sits below the text instead of covering it. */
  body[data-page="noticias"] .intro-scene-canvas,
  body[data-page="atividades"] .intro-scene-canvas,
  body[data-page="contato"] .intro-scene-canvas,
  body[data-page="sobre-nos"] .intro-scene-canvas{
    position:relative;top:auto;right:auto;bottom:auto;
    width:min(72vw,280px);height:clamp(126px,42vw,166px);
    margin:12px auto 0;transform:none;opacity:.9;
  }
  /* Align the network with the copy side so it feels tied to “Consulta comercial”. */
  body[data-page="contato"] .intro-scene-canvas{margin-left:clamp(18px,4vw,30px);margin-right:auto}
}
@media(max-width:390px){
  body[data-page="noticias"] .intro-scene-canvas,
  body[data-page="atividades"] .intro-scene-canvas,
  body[data-page="contato"] .intro-scene-canvas,
  body[data-page="sobre-nos"] .intro-scene-canvas{width:min(70vw,228px);height:126px;margin-top:8px}
}

@media(max-width:720px){
  body[data-page="noticias"] .intro-scene-canvas{
    width:min(80vw,320px);height:clamp(150px,48vw,184px);margin:14px auto 0;
  }
}
@media(max-width:390px){
  body[data-page="noticias"] .intro-scene-canvas{
    width:min(80vw,300px);height:154px;margin-top:12px;
  }
}
/* DASHBOARD MOBILE READABILITY: retain the below-copy layout while enlarging the number cards. */

@media(max-width:720px){
  body[data-page="noticias"] .intro-scene-canvas{
    width:min(80vw,320px);height:clamp(150px,48vw,184px);margin:14px auto 0;
  }
}
@media(max-width:390px){
  body[data-page="noticias"] .intro-scene-canvas{
    width:min(80vw,300px);height:154px;margin-top:12px;
  }
}
