﻿/* SAGAZ R351: composition fixes after matching photos to desktop source.
   Loaded last, ONLY on photographic pages whose existing CSS caused split panels
   or placed copy across subjects. No desktop (>1100px) changes.
*/
@media(max-width:1100px){
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.detail-hero.r351-agenda{
    display:block!important;position:relative!important;
    width:100%!important;max-width:none!important;
    height:auto!important;min-height:0!important;
    padding:0!important;margin:0!important;
    overflow:hidden!important;
    background:#083e48!important;isolation:isolate!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.detail-hero.r351-agenda > .detail-media{
    display:block!important;position:relative!important;
    width:100%!important;max-width:none!important;
    height:auto!important;min-height:0!important;
    margin:0!important;padding:0!important;
    inset:auto!important;transform:none!important;
    overflow:hidden!important;background:#083e48!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.detail-hero.r351-agenda > .detail-media picture{
    display:block!important;position:static!important;
    width:100%!important;height:auto!important;
    inset:auto!important;transform:none!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.detail-hero.r351-agenda > .detail-media img{
    display:block!important;position:static!important;
    width:100%!important;max-width:100%!important;
    height:auto!important;max-height:none!important;
    object-fit:contain!important;object-position:center!important;
    inset:auto!important;transform:none!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.detail-hero.r351-agenda > .detail-copy{
    display:block!important;position:absolute!important;
    z-index:3!important;top:clamp(35px,5vw,65px)!important;
    left:clamp(24px,5vw,45px)!important;
    right:auto!important;bottom:auto!important;
    width:min(42%,370px)!important;
    max-width:min(42%,370px)!important;
    margin:0!important;padding:0!important;
    transform:none!important;background:transparent!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.detail-hero.r351-agenda > .detail-copy h1{
    font-size:clamp(32px,4.6vw,48px)!important;
    line-height:1.08!important;letter-spacing:-.04em!important;
    color:#fff!important;text-shadow:none!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.detail-hero.r351-agenda > .detail-copy p{
    font-size:clamp(14px,1.7vw,17px)!important;
    line-height:1.48!important;color:#f2faf5!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo{
    position:relative!important;isolation:isolate!important;
    height:auto!important;min-height:0!important;
    background:#083e48!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo .seo-hero-media{
    position:relative!important;z-index:0!important;
    width:100%!important;max-width:none!important;
    height:auto!important;min-height:0!important;
    margin:0!important;padding:0!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo .seo-hero-media picture,
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo .seo-hero-media img{
    display:block!important;
    position:static!important;width:100%!important;
    height:auto!important;max-height:none!important;
    object-fit:contain!important;object-position:center!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo > .shell{
    position:absolute!important;z-index:4!important;
    top:clamp(45px,5.3vw,72px)!important;
    left:clamp(24px,4vw,40px)!important;right:auto!important;
    bottom:auto!important;max-width:42%!important;
    width:42%!important;transform:none!important;
    margin:0!important;padding:0!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo > .shell h1{
    font-size:clamp(32px,4.6vw,47px)!important;line-height:1.08!important;
    color:#fff!important;text-shadow:none!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo > .shell p{
    color:#f0f8f5!important;font-size:clamp(14px,1.8vw,17px)!important;
    line-height:1.45!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo > .shell .sagaz-hero-glow-r347{
    color:#c5ef46!important;
    background-image:linear-gradient(105deg,#c5ef46,#89c665,#eeffc3,#c5ef46)!important;
    -webkit-text-fill-color:transparent!important;
    -webkit-background-clip:text!important;background-clip:text!important;
    background-size:260% 100%!important;
  }
}
@media(max-width:760px){
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.detail-hero.r351-agenda > .detail-copy{
    top:clamp(26px,6.2vw,35px)!important;
    left:20px!important;right:20px!important;
    width:calc(100% - 40px)!important;max-width:calc(100% - 40px)!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.detail-hero.r351-agenda > .detail-copy h1{
    font-size:clamp(30px,7.5vw,37px)!important;
    max-width:32ch!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.detail-hero.r351-agenda > .detail-copy p{
    font-size:14px!important;max-width:36ch!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo > .shell{
    top:clamp(22px,5vw,36px)!important;
    left:20px!important;right:20px!important;
    width:calc(100% - 40px)!important;
    max-width:calc(100% - 40px)!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo > .shell h1{
    font-size:clamp(30px,7.4vw,37px)!important;line-height:1.06!important;
  }
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo > .shell p{
    font-size:14px!important;line-height:1.46!important;
    max-width:36ch!important;
  }
  html body :is(main#top,main:not(#top)) .about-hero h1{
    font-size:clamp(30px,7.7vw,36px)!important;
    line-height:1.045!important;letter-spacing:-.045em!important;
    max-width:340px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo > .shell .sagaz-hero-glow-r347{
    animation:none!important;background-position:50% 50%!important;
  }
}

/* Ratio reset: legacy .detail-hero tablet fixes its section to 521px while
   the approved new tablet photograph is 975px high. Preserve entire image. */
@media(max-width:1100px){
 html body :is(main#top,main:not(#top)) > #r351-photo-hero.detail-hero.r351-agenda{
  height:auto!important;max-height:none!important;
  aspect-ratio:auto!important;overflow:visible!important;
 }
 html body :is(main#top,main:not(#top)) > #r351-photo-hero.detail-hero.r351-agenda > .detail-media{
  height:auto!important;max-height:none!important;min-height:0!important;
  aspect-ratio:auto!important;overflow:visible!important;
 }
 html body :is(main#top,main:not(#top)) > #r351-photo-hero.detail-hero.r351-agenda .hero-mobile-picture{
  aspect-ratio:auto!important;height:auto!important;max-height:none!important;
 }
 html body :is(main#top,main:not(#top)) > #r351-photo-hero.detail-hero.r351-agenda .hero-mobile-picture img{
  aspect-ratio:auto!important;height:auto!important;max-height:none!important;
 }
}


/* Restore readable white typography where R321 legacy styles set WebKit text fill dark. */
@media(max-width:1100px){
 html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo > .shell h1,
 html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo > .shell h1 > span,
 html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo > .shell p,
 html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo > .shell .seo-eyebrow{
   color:#fff!important;-webkit-text-fill-color:#fff!important;
   text-shadow:none!important;
 }
 html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo > .shell .sagaz-hero-glow-r347{
   color:#c5ef46!important;
   -webkit-text-fill-color:transparent!important;
   -webkit-background-clip:text!important;background-clip:text!important;
   background-image:linear-gradient(105deg,#c5ef46,#89c665,#eeffc3,#c5ef46)!important;
   background-size:260% 100%!important;
 }
}

@media(max-width:1100px){
 html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo{
   height:auto!important;max-height:none!important;
   min-height:0!important;aspect-ratio:auto!important;
   overflow:visible!important;
 }
 html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo > .seo-hero-media{
   height:auto!important;max-height:none!important;
   min-height:0!important;aspect-ratio:auto!important;
   overflow:visible!important;
 }
 html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo .seo-hero-media picture{
   height:auto!important;max-height:none!important;
   min-height:0!important;aspect-ratio:auto!important;
   overflow:visible!important;
 }
 html body :is(main#top,main:not(#top)) > #r351-photo-hero.seo-hero.r351-seo .seo-hero-media img{
   height:auto!important;max-height:none!important;
   min-height:0!important;aspect-ratio:auto!important;
   object-fit:contain!important;object-position:center!important;
 }
}

/* R351 mobile CSS-background scenes: override legacy r280 art, never another person. */
@media(max-width:760px){
  html body main#top > #r351-bg-hero.r351-scene-home{background-image:url("/assets/home-hero-mobile-20261113.png")!important;background-repeat:no-repeat!important;background-size:cover!important;background-position:center center!important;}
  html body main#top > #r351-bg-hero.r351-scene-sobre{background-image:url("/assets/sobre-hero-mobile-r284.png")!important;background-repeat:no-repeat!important;background-size:cover!important;background-position:center center!important;}
  html body main#top > #r351-bg-hero.r351-scene-representantes{background-image:url("/assets/representantes-hero-mobile-r351.webp")!important;background-repeat:no-repeat!important;background-size:cover!important;background-position:center center!important;}
  html body main#top > #r351-bg-hero.r351-scene-presenca{background-image:url("/assets/presenca-hero-mobile-r351.webp")!important;background-repeat:no-repeat!important;background-size:cover!important;background-position:center center!important;}
  html body main#top > #r351-bg-hero.r351-scene-pedidos-reservas{background-image:url("/assets/reservas-pedidos-hero-mobile-r351.webp")!important;background-repeat:no-repeat!important;background-size:cover!important;background-position:center center!important;}
}
