/* ALGOBÃO — alteração pontual: deslizamento contínuo entre as seções da HOME.
   Nada neste arquivo modifica header, cores, logo, fontes ou outras páginas. */

/* Em telas sensíveis ao toque ou janelas pequenas, a página continua rolável.
   Corrige o overflow:hidden permanente que existia no CSS antigo da home. */
html.ag-home-document:not(.ag-cinema-enabled),
body.home:not(.ag-cinema-enabled) {
  height:auto !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  scroll-behavior:smooth;
}
body.home:not(.ag-cinema-enabled) .ag-cinema-stage,
body.home:not(.ag-cinema-enabled) .ag-cinema-track {
  position:static !important;
  overflow:visible !important;
  height:auto !important;
  transform:none !important;
  transition:none !important;
}

@media (min-width:0px) {
  html.ag-cinema-enabled {
    height:100% !important;
    overflow:hidden !important;
    scroll-behavior:auto !important;
  }
  body.home.ag-cinema-enabled {
    height:100vh !important;
    height:100dvh !important;
    overflow:hidden !important;
    overscroll-behavior:none;
  }
  body.home.ag-cinema-enabled .ag-cinema-stage {
    position:fixed !important;
    inset:0;
    width:100%;
    height:100vh;
    height:100dvh;
    overflow:hidden !important;
    isolation:isolate;
    z-index:1;
    overscroll-behavior:contain;
  }
  body.home.ag-cinema-enabled .ag-cinema-track {
    display:block;
    position:relative;
    width:100%;
    height:auto;
    transform:translate3d(0,0,0);
    transition:transform 1650ms cubic-bezier(.38,.04,.18,1);
    will-change:transform;
    backface-visibility:hidden;
  }
  body.home.ag-cinema-enabled .ag-cinema-track.is-resizing {transition:none!important;}
  body.home.ag-cinema-enabled .ag-cinema-panel {
    position:relative;
    box-sizing:border-box;
    width:100%;
    height:100vh !important;
    height:100dvh !important;
    min-height:0 !important;
    max-height:100dvh;
    margin:0;
    overflow:hidden;
  }
  body.home.ag-cinema-enabled .maison-split.ag-cinema-panel {
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:stretch;
    gap:clamp(7px,1.2vw,17px) !important;
    padding:clamp(7px,1.2vw,17px) !important;
  }
  body.home.ag-cinema-enabled .maison-split .maison-tile {
    height:100%;min-height:0;max-height:none;
  }
  body.home.ag-cinema-enabled .maison-footer.ag-cinema-panel {
    display:flex;align-items:center;justify-content:space-between;
  }
  body.home.ag-cinema-enabled .ag-cinema-panel .maison-reveal>span {
    transition-duration:1250ms;
  }
  body.home.ag-cinema-enabled .ag-cinema-panel .maison-tile img,
  body.home.ag-cinema-enabled .ag-cinema-panel .maison-last img {
    transition-duration:2300ms;
  }
}
/* Preserve the original header above the cinema and the original intro above it. */
body.home .header {z-index:600!important;}
body.home .intro {z-index:9999!important;}

/* The existing unobtrusive scroll cue is preserved exactly. */
.maison-scroll-cue {
  position:absolute;
  bottom:clamp(18px,3.5vh,44px);
  right:clamp(20px,4vw,68px);
  z-index:45;
  color:#fff;
  font:400 10px Arial,Helvetica,sans-serif;
  letter-spacing:.18em;
  opacity:.86;
  pointer-events:none;
  display:flex;
  align-items:center;
  gap:17px;
}
.maison-scroll-cue span {font-size:18px;animation:agCueFloat 2.8s ease-in-out infinite;}
@keyframes agCueFloat {
  0%,100% {transform:translateY(-3px)}
  50% {transform:translateY(4px)}
}
@media (max-width:720px) {
  body.home .maison-scroll-cue {bottom:100px;right:18px;}
}
/* Even with a device motion-reduction setting, navigation remains usable.
   Shorten rather than abruptly disabling the page movement requested by the user. */
@media (prefers-reduced-motion:reduce) {
  body.home.ag-cinema-enabled .ag-cinema-track {transition-duration:800ms;}
  .maison-scroll-cue span {animation:none;}
}


/* ALGOBÃO — duas alterações solicitadas: cor contextual do cabeçalho e
   seções intermediárias somente com fotografia/vídeo. */
body.home .header:not(.scrolled):not(.menu-open) {
  background:transparent !important;
  background-color:transparent !important;
  color:#fff !important;
  border-bottom-color:transparent !important;
  border-bottom-width:0 !important;
  backdrop-filter:none !important;
  box-shadow:none !important;
}
body.home .header:not(.scrolled):not(.menu-open) .nav-button,
body.home .header:not(.scrolled):not(.menu-open) .nav-button[href],
body.home .header:not(.scrolled):not(.menu-open) .nav-collections-trigger {
  color:#fff !important;
}
body.home .header:not(.scrolled):not(.menu-open) .logo-link img {
  filter:brightness(0) invert(1) !important;
}
body.home .header.scrolled,
body.home .header.menu-open {
  background:#fbfbfa !important;
  background-color:#fbfbfa !important;
  color:#191919 !important;
  border-bottom:1px solid rgba(20,20,20,.055) !important;
  backdrop-filter:none !important;
}
body.home .header.scrolled .nav-button,
body.home .header.menu-open .nav-button { color:#191919 !important; }
body.home .header.scrolled .logo-link img,
body.home .header.menu-open .logo-link img { filter:brightness(0) !important; }
/* Only an existing fashion image, rather than new text or links, on screen 2. */
body.home .maison-gallery-only {
  display:block !important;
  position:relative;
  background:#201d1b;
  padding:0 !important;
  overflow:hidden;
  min-height:85svh;
}
body.home .maison-gallery-only > img {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 38%;
  filter:saturate(.88);
}
/* Screens 3 and 4 retain the photos/video, without commercial overlays. */
body.home .maison-split .maison-tile { cursor:default; }
body.home .maison-split .maison-tile:hover img { transform:scale(1); }
@media (max-width:720px) {
  body.home .maison-gallery-only {height:85svh;min-height:560px;}
}

/* Rodapé compacto, integrado à última cena; nunca é um capítulo separado. */
body.home .maison-last {position:relative;}
body.home .maison-last .maison-footer-compact {
 position:absolute;left:0;right:0;bottom:0;z-index:15;
 height:clamp(116px,16vh,158px);min-height:0!important;
 box-sizing:border-box;padding:24px clamp(24px,5vw,85px)!important;
 background:#171513!important;color:#f5f2ee;
 display:grid!important;grid-template-columns:1fr 1.3fr 1fr;
 align-items:center;gap:28px;
}
body.home .maison-last .maison-last-media,
body.home .maison-last .maison-last-overlay {bottom:clamp(116px,16vh,158px);}
body.home .maison-footer-compact .footer-brand {display:block;width:62px;height:62px;}
body.home .maison-footer-compact .footer-brand img {width:100%;height:100%;object-fit:contain;filter:brightness(0) invert(1);}
body.home .maison-footer-compact .footer-links {display:flex;justify-content:center;gap:clamp(18px,2.4vw,40px);flex-wrap:wrap;}
body.home .maison-footer-compact .footer-links a,
body.home .maison-footer-compact .footer-location {font-size:10px;letter-spacing:.14em;line-height:1.8;color:#e9e5e0;}
body.home .maison-footer-compact .footer-links a {transition:opacity .3s ease;}
body.home .maison-footer-compact .footer-links a:hover {opacity:.55;}
body.home .maison-footer-compact .footer-location {display:flex;flex-direction:column;align-items:flex-end;text-align:right;gap:5px;}
body.home .maison-footer-compact .footer-location small {font-size:9px;color:#a9a19c;letter-spacing:.15em;}
@media(max-width:720px){
 body.home .maison-last {height:85svh;min-height:590px;}
 body.home .maison-last .maison-footer-compact {
  height:auto;min-height:138px!important;padding:22px 20px!important;
  grid-template-columns:50px 1fr;gap:16px 20px;
 }
 body.home .maison-last .maison-last-media,
 body.home .maison-last .maison-last-overlay {bottom:150px;}
 body.home .maison-footer-compact .footer-brand {width:45px;height:45px;}
 body.home .maison-footer-compact .footer-links {justify-content:flex-end;gap:12px;}
 body.home .maison-footer-compact .footer-links a {font-size:9px;}
 body.home .maison-footer-compact .footer-location {grid-column:1/-1;align-items:flex-start;text-align:left;gap:0;}
}

/* Mostrar as fotografias por inteiro em qualquer proporção de tela. */
body.home .maison-gallery-only > img {object-fit:contain!important;object-position:center center!important;}
body.home .maison-split .maison-tile-media img {object-fit:contain!important;object-position:center center!important;}
body.home .maison-split .maison-tile-media {background:#292925!important;}
@media(max-width:720px){body.home .maison-gallery-only > img,body.home .maison-split .maison-tile-media img{object-fit:contain!important;}}
/* Voltar de outra página não reproduz a abertura. */
html.ag-returning-home body.home .intro {display:none!important;}


/* ALGOBÃO / REFINAMENTO PONTUAL — FOTO INTEIRA, SEM BARRAS LATERAIS.
   A própria fotografia se estende de forma suave nas margens, sem recorte do modelo.
   O cabeçalho flutua sobre a campanha em todas as telas; menu aberto permanece branco. */
body.home .maison-gallery-only {
  isolation:isolate;
  background:#292c27 !important;
}
body.home .maison-gallery-only::before {
  content:"";
  position:absolute;
  inset:-55px;
  z-index:0;
  background-image:url("assets/editorial-04.webp");
  background-size:cover;
  background-position:center 42%;
  filter:blur(48px) saturate(.72) brightness(.70);
  pointer-events:none;
}
body.home .maison-gallery-only > img {
  position:absolute;
  top:0;
  left:50%;
  right:auto;
  bottom:auto;
  display:block;
  height:100%;
  width:auto;
  max-width:100%;
  object-fit:contain !important;
  object-position:center center !important;
  transform:translateX(-50%);
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 7.5%,#000 92.5%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0%,#000 7.5%,#000 92.5%,transparent 100%);
  z-index:1;
}
/* Mesma integração nas duas imagens da vitrine, mantendo a fotografia intacta. */
body.home .maison-split .maison-tile-media {isolation:isolate; background:#333430 !important;}
body.home .maison-split .maison-tile-media::before {
  content:"";position:absolute;inset:-32px;
  background-image:var(--ag-photo);
  background-size:cover;
  background-position:center;
  filter:blur(24px) brightness(.78) saturate(.76);
  z-index:0;pointer-events:none;
}
body.home .maison-split .maison-tile:nth-child(1) .maison-tile-media {--ag-photo:url("assets/editorial-00.webp");}
body.home .maison-split .maison-tile:nth-child(2) .maison-tile-media {--ag-photo:url("assets/editorial-16.webp");}
body.home .maison-split .maison-tile-media img {
  position:relative;
  z-index:1;
  object-fit:contain !important;
  object-position:center !important;
}
/* Cabeçalho transparente em todas as cenas. Brancos ficam pretos automaticamente
   ao passar sobre regiões claras da fotografia. */
body.home .header:not(.menu-open),
body.home .header.scrolled:not(.menu-open) {
  background:transparent !important;
  background-color:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  color:white !important;
  mix-blend-mode:difference;
}
body.home .header:not(.menu-open) .nav-button,
body.home .header.scrolled:not(.menu-open) .nav-button {
  color:white !important;
}
body.home .header:not(.menu-open) .logo-link img,
body.home .header.scrolled:not(.menu-open) .logo-link img {
  filter:brightness(0) invert(1) !important;
}
body.home .header.menu-open {
  mix-blend-mode:normal !important;
  background:#fbfbfa !important;
  color:#191919 !important;
}
@media(max-width:720px){
 body.home .maison-gallery-only > img {max-width:100%;width:100%;height:100%;object-fit:contain!important;}
 body.home .maison-gallery-only::before{filter:blur(34px) saturate(.74) brightness(.72);}
}
/* Fotografia completa na vitrine dupla, integrada ao preenchimento de fundo. */
body.home .maison-split .maison-tile-media img {
  position:absolute !important;
  top:0;bottom:auto;left:50%;right:auto;
  height:100% !important;
  width:auto !important;
  max-width:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  transform:translateX(-50%) !important;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 8%,#000 92%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0%,#000 8%,#000 92%,transparent 100%);
}
body.home .maison-split .maison-tile:nth-child(2) .maison-tile-media::before {
  filter:blur(25px) saturate(.85) brightness(1);
}
@media(max-width:720px){
 body.home .maison-split .maison-tile-media img {height:100%!important;width:auto!important;max-width:100%!important;}
}

/* ALGOBÃO — correção cirúrgica: capítulos em tela cheia no mobile. */
@media (max-width:720px) {
  html.ag-cinema-enabled,body.home.ag-cinema-enabled {
    height:100% !important;
    overflow:hidden !important;
    overscroll-behavior:none !important;
  }
  body.home.ag-cinema-enabled .ag-cinema-stage {
    position:fixed !important;
    inset:0 !important;
    height:100dvh !important;
    overflow:hidden !important;
    touch-action:none;
  }
  body.home.ag-cinema-enabled .ag-cinema-track {
    display:block !important;
    transition:transform 1650ms cubic-bezier(.38,.04,.18,1) !important;
  }
  body.home.ag-cinema-enabled .ag-cinema-track.is-resizing {transition:none !important;}
  body.home.ag-cinema-enabled .ag-cinema-panel,
  body.home.ag-cinema-enabled .maison-gallery-only.ag-cinema-panel,
  body.home.ag-cinema-enabled .maison-last.ag-cinema-panel {
    height:100dvh !important;
    min-height:0 !important;
    max-height:100dvh !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }
  body.home.ag-cinema-enabled .maison-split.ag-cinema-panel {
    display:grid !important;
    grid-template-columns:1fr 1fr;
    gap:8px !important;
    padding:8px !important;
  }
  body.home.ag-cinema-enabled .maison-split .maison-tile {
    height:100% !important;
    min-height:0 !important;
  }
  body.home.ag-cinema-enabled .maison-scroll-cue {bottom:clamp(40px,9dvh,100px);}
}
@media (max-width:720px) and (prefers-reduced-motion:reduce) {
  body.home.ag-cinema-enabled .ag-cinema-track {transition-duration:800ms !important;}
}

/* ALGOBÃO MOBILE v3 — override final para as regras antigas do tema.
   A HOME inteira fica em um palco fixo, com uma única cena visível por vez. */
@media (max-width:720px) {
 html.ag-cinema-enabled, html.ag-cinema-enabled body.home.ag-cinema-enabled {
   width:100%!important;height:100%!important;overflow:hidden!important;
   overscroll-behavior:none!important;scroll-snap-type:none!important;
 }
 body.home.ag-cinema-enabled .ag-cinema-stage {
   display:block!important;position:fixed!important;inset:0!important;
   height:100dvh!important;min-height:0!important;max-height:none!important;
   overflow:hidden!important;touch-action:none!important;
   overscroll-behavior:none!important;
 }
 body.home.ag-cinema-enabled .ag-cinema-track {
   display:block!important;position:relative!important;
   height:auto!important;min-height:0!important;overflow:visible!important;
   transition:transform 1650ms cubic-bezier(.38,.04,.18,1)!important;
 }
 body.home.ag-cinema-enabled .ag-cinema-track.is-resizing {transition:none!important;}
 body.home.ag-cinema-enabled .ag-cinema-panel,
 body.home.ag-cinema-enabled .maison-gallery-only.ag-cinema-panel,
 body.home.ag-cinema-enabled .maison-split.ag-cinema-panel,
 body.home.ag-cinema-enabled .maison-last.ag-cinema-panel {
   display:block;position:relative!important;float:none!important;
   width:100%!important;height:100dvh!important;min-height:0!important;
   max-height:100dvh!important;overflow:hidden!important;
   margin:0!important;scroll-snap-align:none!important;
 }
 body.home.ag-cinema-enabled .maison-split.ag-cinema-panel {
   display:grid!important;grid-template-columns:1fr 1fr!important;
 }
 body.home.ag-cinema-enabled .maison-last.ag-cinema-panel .maison-footer-compact {
   bottom:0!important;
 }
}

/* ALGOBÃO | Mobile editorial clean: fotografia nítida sobre branco real.
   Sem fundo desfocado, molduras, máscaras ou efeitos nas margens. */
@media(max-width:720px){
 body.home .maison-gallery-only,
 body.home.ag-cinema-enabled .maison-gallery-only.ag-cinema-panel,
 body.home .maison-split.ag-mobile-single-photo,
 body.home.ag-cinema-enabled .maison-split.ag-mobile-single-photo.ag-cinema-panel{
   background:#fff!important;
   background-color:#fff!important;
   padding:0!important;
   border:0!important;
   box-shadow:none!important;
 }
 body.home .maison-gallery-only::before,
 body.home .maison-gallery-only::after,
 body.home .maison-split.ag-mobile-single-photo::before,
 body.home .maison-split.ag-mobile-single-photo::after,
 body.home .maison-split.ag-mobile-single-photo .maison-tile-media::before,
 body.home .maison-split.ag-mobile-single-photo .maison-tile-media::after{
   content:none!important;display:none!important;
   background:none!important;filter:none!important;
 }
 body.home.ag-cinema-enabled .maison-split.ag-mobile-single-photo.ag-cinema-panel{
   display:flex!important;align-items:center!important;justify-content:center!important;
   grid-template-columns:none!important;gap:0!important;
 }
 body.home .maison-gallery-only > img{
   position:absolute!important;left:50%!important;top:50%!important;
   right:auto!important;bottom:auto!important;
   width:100%!important;height:100%!important;
   max-width:100%!important;max-height:100%!important;
   object-fit:contain!important;object-position:center!important;
   transform:translate(-50%,-50%)!important;
   filter:none!important;opacity:1!important;
   -webkit-mask-image:none!important;mask-image:none!important;
 }
 body.home .maison-split.ag-mobile-single-photo .maison-tile{
   display:flex!important;position:relative!important;
   align-items:center!important;justify-content:center!important;
   flex:1 1 100%!important;width:100%!important;height:100%!important;
   min-height:0!important;max-height:100%!important;
   margin:0!important;padding:0!important;border:0!important;
   background:#fff!important;box-shadow:none!important;
 }
 body.home .maison-split.ag-mobile-single-photo .maison-tile-media{
   position:absolute!important;inset:0!important;
   display:flex!important;align-items:center!important;justify-content:center!important;
   width:100%!important;height:100%!important;
   background:#fff!important;background-image:none!important;
   border:0!important;box-shadow:none!important;
   isolation:auto!important;
 }
 body.home .maison-split.ag-mobile-single-photo .maison-tile-media img{
   position:relative!important;inset:auto!important;
   display:block!important;width:100%!important;height:100%!important;
   max-width:100%!important;max-height:100%!important;
   object-fit:contain!important;object-position:center!important;
   transform:none!important;filter:none!important;opacity:1!important;
   -webkit-mask-image:none!important;mask-image:none!important;
 }
}

/* FIX MOBILE V4: a animação por capítulos tem prioridade sobre estilos de rolagem nativos. */
@media(max-width:720px){
 html.ag-cinema-enabled,html.ag-cinema-enabled body.home{
   overflow:hidden!important;height:100%!important;overscroll-behavior:none!important;
 }
 body.home.ag-cinema-enabled .ag-cinema-stage{
   position:fixed!important;inset:0!important;overflow:hidden!important;
   height:100dvh!important;touch-action:none!important;
 }
 body.home.ag-cinema-enabled .ag-cinema-track{
   position:relative!important;display:block!important;
   transition:transform 1650ms cubic-bezier(.38,.04,.18,1)!important;
 }
 body.home.ag-cinema-enabled .ag-cinema-track.is-resizing{transition:none!important;}
 body.home.ag-cinema-enabled .ag-cinema-panel{
   display:block;position:relative!important;height:100dvh!important;
   min-height:100dvh!important;max-height:100dvh!important;
   overflow:hidden!important;flex:none!important;
 }
 body.home.ag-cinema-enabled .maison-split.ag-mobile-single-photo.ag-cinema-panel{
   display:flex!important;align-items:center!important;justify-content:center!important;
 }
}


/* V6: trava de segurança, declarada APÓS os estilos originais para não deixar o
   mobile cair no scroll nativo. Aplicada somente à HOME, nunca ao WooCommerce. */
@media (max-width:720px) {
  html.ag-home-document.ag-cinema-enabled,
  html.ag-home-document.ag-cinema-enabled body.home.ag-cinema-enabled {
    height:100% !important;
    max-height:100% !important;
    overflow:hidden !important;
    overflow-x:hidden !important;
    overflow-y:hidden !important;
    scroll-behavior:auto !important;
    overscroll-behavior:none !important;
  }
  body.home.ag-cinema-enabled #ag-cinema-stage {
    position:fixed !important;
    inset:0 !important;
    width:100% !important;
    height:100dvh !important;
    overflow:hidden !important;
    touch-action:none !important;
  }
  body.home.ag-cinema-enabled #ag-cinema-stage .ag-cinema-track {
    display:block !important;
    transition-property:transform !important;
    transition-duration:1650ms !important;
    transition-timing-function:cubic-bezier(.38,.04,.18,1) !important;
  }
  body.home.ag-cinema-enabled #ag-cinema-stage .ag-cinema-track.is-resizing {
    transition:none !important;
  }
  body.home.ag-cinema-enabled #ag-cinema-stage .ag-cinema-panel {
    width:100% !important;
    height:100dvh !important;
    min-height:0 !important;
    max-height:100dvh !important;
    overflow:hidden !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }
  body.home.ag-cinema-enabled #ag-cinema-stage .maison-split.ag-mobile-single-photo {
    display:flex !important;
    background:#fff !important;
  }
}
