#intro {
  isolation: isolate;
  background-color: #292522 !important;
}

#intro::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-image: linear-gradient(#0009, #0009), var(--intro-photo, none);
  background-size: cover;
  background-position: center;
  filter: blur(9px);
  z-index: -1;
  pointer-events: none;
}

#intro .il {
  filter: drop-shadow(0 4px 9px #000a);
  background: transparent;
}

#intro .lo button {
  font-size: .80rem;
}

#intro.go::before {
  opacity: 0;
  transition: opacity .4s;
}
body[data-page] .hdr nav .mega {
  display: grid;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease !important;
}

body[data-page] .hdr nav .ni.hm:not(:hover) .mega {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body[data-page] .hdr nav .ni.hm:hover .mega {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  body[data-page] .hdr nav .mega {
    transition: none !important;
  }
}

/* Filtros de Móveis e Projetos: sem caixas ou bordas decorativas. */
body[data-page="products"] .catalog-filters,
body[data-page="projects"] .catalog-filters,
.catalog-filters > details,
.catalog-filters > details > summary,
.catalog-filters #filter-form,
.catalog-filters #filter-form label,
.catalog-filters #filter-form select.f,
.catalog-filters #filter-form .btn,
.catalog-meta select.f {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Libera a visão da Home durante a saída da introdução. */
#intro.go {
  background-color: transparent !important;
  background-image: none !important;
}

/* Materiais e cores sem foto correspondente ficam apenas mais apagados. */
.pill.limited {
  opacity: .45;
}

.sw.limited {
  opacity: .35;
}

/* Bolinhas pequenas de cor. */
.sw {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex: 0 0 18px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  align-self: center !important;
}

/* Zoom somente após clicar na imagem, em tela inteira. */
.photo-zoom {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  background: rgba(0, 0, 0, .92);
  cursor: zoom-out;
}

.photo-zoom.on {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-zoom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .08s linear;
  transform-origin: center center;
}
#photoGallery .gallery-stage {
  overflow: hidden;
}

#photoGallery .gallery-stage img {
  cursor: zoom-in;
  transition: transform .15s ease-out;
}

#photoGallery .gallery-stage.zoomed img {
  cursor: zoom-out;
  transform: scale(2.2);
}

#photoGallery .gallery-stage:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Select fechado transparente; só a lista aberta usa o fundo do tema. */
[data-theme="dark"] .catalog-filters #filter-form select.f,
[data-theme="dark"] .catalog-meta select.f {
  background: transparent !important;
  color: var(--fg) !important;
}

[data-theme="dark"] .catalog-filters #filter-form select.f option,
[data-theme="dark"] .catalog-meta select.f option {
  background-color: var(--bg) !important;
  color: var(--fg) !important;
}
/* Linha fina abaixo dos filtros. */
.catalog-filters #filter-form select.f,
.catalog-meta select.f {
  border-bottom: 1px solid var(--line) !important;
}
/* Mantém o degradê original; só a camada ::after faz o fade. */
body[data-page="home"] .hdr:hover,
body[data-page="home"] .hdr:has(:focus-visible) {
    background: linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,0)) !important;
}
/* Barra de leitura do cabeçalho: fade in ao entrar, fade out ao sair. */
body[data-page="home"] .hdr::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

body[data-page="home"] .hdr:hover::after,
body[data-page="home"] .hdr:has(:focus-visible)::after {
    opacity: 1;
}
@media (min-width: 1241px) {
  body[data-page] .hdr .contact-panel,
  body[data-page] .hdr .langmenu {
    top: calc(48px + (var(--actual-header, 88px) - 48px) / 2);
  }
}
@media (min-width: 561px) {
  body[data-page] .hdr .contact-panel {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

body[data-page] .hdr .contact-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
  height: 30px;
}
@media (min-width: 1241px) {
  body[data-page] .hdr .langmenu {
    right: -24px;
  }
}

@media (min-width: 561px) and (max-width: 1240px) {
  body[data-page] .hdr .langmenu {
    right: -18px;
  }
}

body[data-page] .hdr .langmenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
  height: 30px;
}
body[data-page] .hdr .langmenu {
  transform: none;
  transition: opacity .25s ease, visibility .25s ease;
}
body[data-page] .hdr .contact-menu::details-content {
  opacity: 0;
  transition:
    opacity .25s ease,
    content-visibility .25s allow-discrete;
}

body[data-page] .hdr .contact-menu[open]::details-content {
  opacity: 1;
}
.about-block[data-align="justify"] {
  text-align: justify;
  hyphens: auto;
}
body[data-page] .hdr nav .mega,
.contact-panel,
.langmenu {
  background: color-mix(in srgb, var(--bg) 80%, transparent);

  box-shadow: none;
}
