/* Modo de apresentação das páginas Executivos em BIM e Residencial. */
.presentation-toggle[hidden],
.is-menu-open .service-presentation-toggle {
  display: none;
}

.is-presentation-mode .site-shell > .page-footer {
  display: none;
}

.is-presentation-mode .service-presentation-flow {
  --slide-top: max(clamp(14px, 4dvh, 52px), env(safe-area-inset-top));
  --slide-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  --slide-gap: clamp(10px, 2.4dvh, 24px);
  --slide-title: clamp(1.5rem, min(4.2vw, 7dvh), 4.25rem);
  --slide-copy: clamp(0.875rem, min(1.55vw, 3.8dvh), 1.125rem);
  position: fixed;
  inset: 0 0 auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  touch-action: pan-x pinch-zoom;
  outline: none;
}

.is-presentation-mode .service-presentation-flow::-webkit-scrollbar {
  display: none;
}

.is-presentation-mode .service-presentation-flow [data-presentation-block] {
  display: grid;
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  align-content: center;
  gap: var(--slide-gap);
  padding: var(--slide-top) max(var(--page-gutter), env(safe-area-inset-right))
    var(--slide-bottom) max(var(--page-gutter), env(safe-area-inset-left));
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.is-presentation-mode .service-presentation-flow .residential-projects,
.is-presentation-mode .service-presentation-flow .residential-more,
.is-presentation-mode .service-presentation-flow .residential-more-grid {
  display: contents;
}

.is-presentation-mode .service-presentation-flow .residential-projects > h2,
.is-presentation-mode .service-presentation-flow .residential-more > h3,
.is-presentation-mode .service-presentation-flow .bim-back,
.is-presentation-mode .service-presentation-flow .residential-back {
  display: none;
}

.is-presentation-mode .service-presentation-flow :is(h1, h2, .residential-case h3) {
  margin: 0;
  font-size: var(--slide-title);
  line-height: 1.06;
}

.is-presentation-mode .service-presentation-flow :is(p, figcaption) {
  font-size: var(--slide-copy);
  line-height: 1.45;
}

.is-presentation-mode .service-presentation-flow .eyebrow {
  font-size: var(--type-label-size);
}

.is-presentation-mode .service-presentation-flow :is(.page-intro-summary, .residential-case p, .bim-case div p, .page-next p) {
  margin-block: 10px 0;
}

.is-presentation-mode .service-presentation-flow :is(.bim-link, .residential-link) {
  margin-top: 12px;
}

.is-presentation-mode .service-presentation-flow .bim-hero {
  --text-secondary: var(--on-dark-secondary);
  color: var(--off-white);
  background: var(--surface-media);
}

.is-presentation-mode .service-presentation-flow :is(.bim-hero, .residential-hero) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
}

.is-presentation-mode .service-presentation-flow :is(.bim-hero, .residential-hero, .bim-case, .residential-case) {
  column-gap: clamp(16px, 5vw, 80px);
}

.is-presentation-mode .service-presentation-flow :is(.bim-case, .residential-case) {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
}

.is-presentation-mode .service-presentation-flow .residential-case--reverse {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.is-presentation-mode .service-presentation-flow .residential-case--reverse > img {
  grid-column: 2;
  grid-row: 1;
}

.is-presentation-mode .service-presentation-flow .residential-case--reverse > div {
  grid-column: 1;
  grid-row: 1;
}

.is-presentation-mode .service-presentation-flow :is(.residential-hero, .residential-case, .bim-case) {
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
}

.is-presentation-mode .service-presentation-flow .residential-hero-image {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.is-presentation-mode .service-presentation-flow :is(.residential-hero-image img, .residential-case > img, .bim-case > img, .residential-more-card > img) {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  background: none;
}

.is-presentation-mode .service-presentation-flow .residential-more-card {
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr) auto;
}

.is-presentation-mode .service-presentation-flow .residential-more-card > span {
  font-size: clamp(1.125rem, min(2.6vw, 6dvh), 2.5rem);
}

.is-presentation-mode .service-presentation-flow :is(.bim-comparison-heading, .residential-carousel-header) {
  margin-bottom: 0;
}

.is-presentation-mode .service-presentation-flow .bim-comparison-heading h2 {
  font-size: clamp(1.375rem, min(3.5vw, 6.5dvh), 3.375rem);
}

.is-presentation-mode .service-presentation-flow .bim-comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--slide-gap) clamp(14px, 3vw, 40px);
}

.is-presentation-mode .service-presentation-flow .bim-comparison-view img {
  max-height: max(70px, calc(100dvh - 260px));
  object-fit: contain;
  object-position: left bottom;
}

.is-presentation-mode .service-presentation-flow .bim-comparison-view figcaption {
  margin-top: 8px;
}

.is-presentation-mode .service-presentation-flow :is(.bim-process-intro, .residential-planning-intro) {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--slide-gap);
}

.is-presentation-mode .service-presentation-flow .bim-scopes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.is-presentation-mode .service-presentation-flow :is(.bim-process-steps, .residential-planning-grid) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.is-presentation-mode .service-presentation-flow :is(.bim-grid, .residential-planning-grid) {
  margin-top: 0;
  gap: var(--slide-gap) clamp(14px, 4vw, 50px);
}

.is-presentation-mode .service-presentation-flow :is(.bim-grid article, .residential-planning-grid > div) {
  padding-top: 10px;
}

.is-presentation-mode .service-presentation-flow :is(.bim-grid h3, .residential-planning-grid h3) {
  margin-bottom: 6px;
  font-size: clamp(1rem, min(2.4vw, 5.5dvh), 1.75rem);
  line-height: 1.18;
}

.is-presentation-mode .service-presentation-flow .residential-carousel-track img {
  max-height: max(76px, calc(100dvh - 220px));
}

.is-presentation-mode .service-presentation-flow ~ .presentation-hint {
  left: max(var(--page-gutter), env(safe-area-inset-left));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 720px) and (orientation: portrait) {
  .is-presentation-mode .service-presentation-flow {
    --slide-title: clamp(1.5rem, 7vw, 2.5rem);
  }

  .is-presentation-mode .service-presentation-flow [data-presentation-block] {
    grid-template-columns: minmax(0, 1fr);
  }

  .is-presentation-mode .service-presentation-flow :is(.residential-hero, .residential-case, .residential-more-card, .bim-case) {
    grid-template-rows: auto auto;
    align-content: center;
  }

  .is-presentation-mode .service-presentation-flow .residential-hero-image {
    height: auto;
    grid-template-rows: auto auto;
  }

  .is-presentation-mode .service-presentation-flow :is(.residential-hero-image img, .residential-case > img, .residential-more-card > img, .bim-case > img) {
    height: auto;
    max-height: 38dvh;
  }

  .is-presentation-mode .service-presentation-flow .residential-case--reverse > :is(img, div) {
    grid-column: auto;
    grid-row: auto;
  }

  .is-presentation-mode .service-presentation-flow :is(.bim-comparison-grid, .bim-scopes, .bim-process-intro, .bim-process-steps, .residential-planning-intro, .residential-planning-grid) {
    grid-template-columns: minmax(0, 1fr);
  }

  .is-presentation-mode .service-presentation-flow .bim-comparison-view img {
    max-height: max(64px, calc((100dvh - 400px) / 2));
  }
}

@media (max-height: 600px) {
  .is-presentation-mode .service-presentation-flow {
    --slide-top: max(12px, env(safe-area-inset-top));
    --slide-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    --slide-gap: 10px;
    --slide-copy: 0.8125rem;
  }

  .is-presentation-mode .service-presentation-flow :is(p, figcaption) {
    line-height: 1.35;
  }

  .is-presentation-mode .service-presentation-flow .bim-comparison-key {
    gap: 4px 12px;
  }
}

@media (max-height: 440px) and (orientation: landscape) {
  .is-presentation-mode .service-presentation-flow {
    --slide-bottom: calc(63px + env(safe-area-inset-bottom, 0px));
    --slide-title: clamp(1.3rem, 6.5dvh, 2rem);
    --slide-copy: 0.75rem;
  }

  .is-presentation-mode .service-presentation-toggle {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
    padding: 10px;
  }

  .is-presentation-mode .service-presentation-flow .residential-case {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: 14px;
  }

  .is-presentation-mode .service-presentation-flow .residential-case--reverse {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .is-presentation-mode .service-presentation-flow .residential-case :is(p, .residential-link) {
    margin-top: 7px;
  }

  .is-presentation-mode .service-presentation-flow .residential-case .residential-link {
    font-size: 0.8rem;
  }

  .is-presentation-mode .service-presentation-flow .bim-comparison-view img {
    max-height: max(62px, calc(100dvh - 208px));
  }

  .is-presentation-mode .service-presentation-flow .residential-carousel-track img {
    max-height: max(60px, calc(100dvh - 196px));
  }
}
