/* SAGAZ R335: owner-approved, uncropped art.
   Image is a normal full-width document element. Hero height follows the
   selected image's intrinsic ratio, never a viewport clamp.
   Marketing Automatizado R328 is the forensic master; its srcset and copy
   are preserved, and each other solution keeps its own approved artwork. */
@media (min-width:1101px){
  html body.marketing-page main#top > .marketing-hero{
    position:relative!important;display:block!important;
    width:100%!important;height:auto!important;min-height:0!important;
    max-height:none!important;overflow:visible!important;
    padding:0!important;margin:0!important;background:transparent!important;
  }
  html body.marketing-page .marketing-hero > .marketing-hero-media{
    position:relative!important;inset:auto!important;display:block!important;
    width:100%!important;height:auto!important;max-height:none!important;
    overflow:visible!important;margin:0!important;padding:0!important;
  }
  html body.marketing-page .marketing-hero > .marketing-hero-media img{
    position:relative!important;inset:auto!important;display:block!important;
    width:100%!important;height:auto!important;max-height:none!important;
    max-width:100%!important;aspect-ratio:16/9!important;
    object-fit:contain!important;object-position:center!important;
    transform:none!important;
  }
  html body.marketing-page .marketing-hero > .marketing-hero-copy{
    position:absolute!important;z-index:3!important;
    inset:50% auto auto max(24px,calc((100vw - 1160px)/2))!important;
    width:min(40.5%,525px)!important;max-width:525px!important;
    height:auto!important;min-height:0!important;
    margin:0!important;padding:0!important;
    transform:translateY(-50%)!important;background:transparent!important;
  }
}
/* Marketing's original art direction treats tablets as a separate stage.
   R331 had forced the 780x975 tablet composition into a 820x520 cover box. */
@media (min-width:761px) and (max-width:1100px){
  html body.marketing-page main#top > .marketing-hero{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    position:relative!important;width:100%!important;height:auto!important;
    min-height:0!important;max-height:none!important;overflow:visible!important;
    margin:0!important;padding:0!important;background:#083e48!important;
  }
  html body.marketing-page .marketing-hero > .marketing-hero-copy{
    position:relative!important;z-index:2!important;
    inset:auto!important;display:flex!important;flex-direction:column!important;
    transform:none!important;width:100%!important;max-width:none!important;
    height:auto!important;margin:0!important;padding:41px 7vw 42px!important;
  }
  html body.marketing-page .marketing-hero > .marketing-hero-media{
    position:relative!important;inset:auto!important;
    display:block!important;width:min(100%,760px)!important;
    height:auto!important;max-height:none!important;align-self:center!important;
    overflow:visible!important;margin:0 auto!important;padding:0!important;
  }
  html body.marketing-page .marketing-hero > .marketing-hero-media img{
    position:relative!important;inset:auto!important;
    width:100%!important;height:auto!important;max-width:100%!important;
    max-height:none!important;aspect-ratio:auto!important;
    object-fit:contain!important;object-position:center!important;
  }
}
/* Other desktop solutions: a full-width original image with intrinsic height.
   Their approved left breathing zones and R334 typography remain untouched. */
@media (min-width:761px){
  html body.seo-page main#top > .seo-hero,
  html body.solution-detail-page main#top > .detail-hero.shell,
  html body.solutions-page main#top > .hero-final.hero-split{
    position:relative!important;display:block!important;
    width:100%!important;max-width:none!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    overflow:visible!important;margin:0!important;padding:0!important;
  }
  html body.seo-page .seo-hero > figure.seo-hero-media,
  html body.solution-detail-page .detail-hero > figure.detail-media,
  html body.solutions-page .hero-final > .hero-visual.hero-media{
    display:block!important;position:relative!important;inset:auto!important;
    width:100%!important;height:auto!important;
    min-height:0!important;max-height:none!important;
    margin:0!important;padding:0!important;overflow:visible!important;
    transform:none!important;
  }
  html body.seo-page .seo-hero .seo-hero-media picture,
  html body.solution-detail-page .detail-hero .detail-media picture,
  html body.solutions-page .hero-final .hero-mobile-picture{
    display:block!important;position:relative!important;inset:auto!important;
    width:100%!important;height:auto!important;
    max-height:none!important;overflow:visible!important;margin:0!important;
  }
  html body.seo-page .seo-hero .seo-hero-media img,
  html body.solution-detail-page .detail-hero .detail-media img,
  html body.solutions-page .hero-final .hero-image{
    display:block!important;position:relative!important;inset:auto!important;
    width:100%!important;height:auto!important;
    min-width:0!important;max-width:100%!important;min-height:0!important;
    max-height:none!important;aspect-ratio:auto!important;
    object-fit:contain!important;object-position:center!important;
    transform:none!important;
  }
  html body.seo-page .seo-hero > .shell,
  html body.solution-detail-page .detail-hero > .detail-copy,
  html body.solutions-page .hero-final .hero-content.shell{
    position:absolute!important;z-index:3!important;
    top:50%!important;bottom:auto!important;
    left:max(24px,calc((100vw - 1160px)/2))!important;right:auto!important;
    width:min(40.5%,525px)!important;max-width:525px!important;
    height:auto!important;min-height:0!important;
    padding:0!important;margin:0!important;
    transform:translateY(-50%)!important;background:transparent!important;
  }
  html body.seo-page .seo-hero > .shell :is(h1,p),
  html body.solution-detail-page .detail-hero > .detail-copy :is(h1,p),
  html body.solutions-page .hero-final .hero-content.shell :is(h1,p){
    max-width:100%!important;
  }
}
/* Tablet artwork and body copy often have unlike aspect ratios. Never squeeze
   the image. Give short images their full width and stack copy when necessary. */
@media (min-width:761px) and (max-width:1100px){
  html body.seo-page.service-automacao main#top > .seo-hero{
    display:flex!important;flex-direction:column!important;
    background:#f8f3ea!important;
  }
  html body.seo-page.service-automacao .seo-hero > .shell{
    position:relative!important;top:auto!important;left:auto!important;
    transform:none!important;width:100%!important;max-width:none!important;
    padding:38px 7vw!important;height:auto!important;
    background:#f8f3ea!important;
  }
}

/* Exact, stronger variants for pre-existing global selectors. R331 assigned
   position:absolute to pictures after several specialty art-direction sheets.
   Both their picture box and their img must participate in intrinsic height. */
@media (min-width:761px) {
  html body.solution-detail-page main#top > section.detail-hero.shell > figure.detail-media > picture.hero-mobile-picture,
  html body.solution-detail-page main#top > section.detail-hero.shell > figure.detail-media > picture.hero-mobile-picture img {
    position:relative!important;inset:auto!important;display:block!important;
    width:100%!important;height:auto!important;max-height:none!important;
    min-height:0!important;max-width:100%!important;
    object-fit:contain!important;aspect-ratio:auto!important;
    overflow:visible!important;
  }
  html body.solution-detail-page main#top > section.detail-hero.shell > .detail-copy {
    position:absolute!important;top:50%!important;bottom:auto!important;
    left:max(24px,calc((100vw - 1160px)/2))!important;right:auto!important;
    width:min(40.5%,525px)!important;height:auto!important;
    margin:0!important;transform:translateY(-50%)!important;
    padding:0!important;z-index:3!important;
  }
  html body.solutions-page main#top > section.hero-final.hero-split > .hero-visual.hero-media {
    display:block!important;position:relative!important;inset:auto!important;
    width:100%!important;height:auto!important;min-height:0!important;
    max-height:none!important;overflow:visible!important;
  }
  html body.solutions-page main#top > section.hero-final.hero-split .hero-mobile-picture,
  html body.solutions-page main#top > section.hero-final.hero-split .hero-mobile-picture > img.hero-image {
    position:relative!important;inset:auto!important;display:block!important;
    width:100%!important;height:auto!important;min-height:0!important;
    max-height:none!important;max-width:100%!important;
    object-fit:contain!important;aspect-ratio:auto!important;
    overflow:visible!important;
  }
  html body.solutions-page main#top > section.hero-final.hero-split .hero-content.shell {
    position:absolute!important;top:50%!important;bottom:auto!important;
    left:max(24px,calc((100vw - 1160px)/2))!important;
    width:min(40.5%,525px)!important;height:auto!important;
    margin:0!important;padding:0!important;
    transform:translateY(-50%)!important;z-index:3!important;
  }
}

/* Automation has an older background ratio and a positional shell override
   with higher specificity. Reset that frame while retaining original artwork. */
@media (min-width:761px) {
  html body.seo-page.service-automacao.solutions-editorial-page main#top > section.seo-hero{
    display:block!important;position:relative!important;
    aspect-ratio:auto!important;height:auto!important;min-height:0!important;
    background:transparent!important;overflow:visible!important;
    margin:0!important;padding:0!important;
  }
  html body.seo-page.service-automacao.solutions-editorial-page main#top > section.seo-hero > figure.seo-hero-media{
    display:block!important;position:relative!important;
    inset:auto!important;width:100%!important;height:auto!important;
    aspect-ratio:auto!important;min-height:0!important;
    max-height:none!important;flex:none!important;
    overflow:visible!important;margin:0!important;padding:0!important;
  }
  html body.seo-page.service-automacao.solutions-editorial-page main#top > section.seo-hero > figure.seo-hero-media > picture.hero-mobile-picture,
  html body.seo-page.service-automacao.solutions-editorial-page main#top > section.seo-hero > figure.seo-hero-media > picture.hero-mobile-picture > img{
    display:block!important;position:relative!important;inset:auto!important;
    width:100%!important;height:auto!important;aspect-ratio:auto!important;
    max-width:100%!important;min-height:0!important;max-height:none!important;
    object-fit:contain!important;overflow:visible!important;
  }
  html body.seo-page.service-automacao.solutions-editorial-page main#top > section.seo-hero > .shell{
    position:absolute!important;z-index:3!important;
    display:flex!important;flex-direction:column!important;
    justify-content:center!important;align-items:flex-start!important;
    top:50%!important;bottom:auto!important;
    left:max(24px,calc((100vw - 1160px)/2))!important;right:auto!important;
    width:min(40.5%,525px)!important;max-width:525px!important;
    height:auto!important;min-height:0!important;
    padding:0!important;margin:0!important;
    transform:translateY(-50%)!important;background:transparent!important;
  }
}

/* Narrow tablets: the original 2048x768 artwork leaves a 285px image at
   761px width. Compact only this text group rather than crop any artwork. */
@media (min-width:761px) and (max-width:800px){
  html body.seo-page.service-automacao.solutions-editorial-page main#top > section.seo-hero > .shell h1{
    font-size:30px!important;line-height:1.05!important;margin:8px 0 10px!important;
  }
  html body.seo-page.service-automacao.solutions-editorial-page main#top > section.seo-hero > .shell p{
    font-size:13px!important;line-height:1.32!important;margin:0 0 10px!important;
  }
  html body.seo-page.service-automacao.solutions-editorial-page main#top > section.seo-hero > .shell .seo-actions a{
    min-height:42px!important;padding:9px 13px!important;
  }
}

/* Automation alone has a graph occupying the middle of the approved image:
   constrain the readable copy to the left breathing space without cropping it. */
@media (min-width:1101px){
  html body.seo-page.service-automacao.solutions-editorial-page main#top > section.seo-hero > .shell{
    width:min(400px,34vw)!important;max-width:400px!important;
  }
  html body.seo-page.service-automacao.solutions-editorial-page main#top > section.seo-hero > .shell :is(h1,p,.desktop-hero-title,.desktop-hero-summary){
    max-width:100%!important;
  }
}
@media (min-width:761px) and (max-width:1100px){
  html body.seo-page.service-automacao.solutions-editorial-page main#top > section.seo-hero > .shell{
    width:min(285px,35vw)!important;max-width:285px!important;
  }
  html body.seo-page.service-automacao.solutions-editorial-page main#top > section.seo-hero > .shell :is(h1,p,.desktop-hero-title,.desktop-hero-summary){
    max-width:100%!important;
  }
}

/* Preserve the safe left margin even if older titles have nowrap spans. */
@media (min-width:761px){
 html body.seo-page.service-automacao.solutions-editorial-page main#top > section.seo-hero > .shell h1,
 html body.seo-page.service-automacao.solutions-editorial-page main#top > section.seo-hero > .shell h1 span,
 html body.seo-page.service-automacao.solutions-editorial-page main#top > section.seo-hero > .shell p,
 html body.seo-page.service-automacao.solutions-editorial-page main#top > section.seo-hero > .shell p span{
  white-space:normal!important;text-wrap:wrap!important;
  overflow-wrap:break-word!important;word-break:normal!important;
  width:auto!important;max-width:100%!important;
 }
}
