/* H2 Laser — complementos visuais + galeria 360°
   CSS isolado para não sobrescrever os componentes do catálogo. */
:root {
  --g360-bg: #101c26;
  --g360-surface: #1a2a36;
  --g360-white: #f8f8f6;
  --g360-muted: #b3bfca;
  --g360-accent: #e7bb6b;
  --g360-border: rgba(255,255,255,.15);
}
html { scroll-behavior: smooth; }
#catalogo-section, #gravacao360, #galeria, #contato { scroll-margin-top: 24px; }
:focus-visible { outline: 3px solid #e7bb6b; outline-offset: 3px; }
/* Menu de âncoras sem dependência dos estilos existentes */
.h2-nav {
  background: #fff;
  border-bottom: 1px solid #e9e9e6;
}
.h2-nav__inner {
  display: flex;
  gap: clamp(17px, 3.7vw, 46px);
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.h2-nav__inner::-webkit-scrollbar { display: none; }
.h2-nav a {
  flex: 0 0 auto;
  color: #39434d;
  text-decoration: none;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: .01em;
  transition: color .2s ease;
}
.h2-nav a:hover, .h2-nav a:focus-visible { color: #a36a22; }
.h2-nav .h2-nav__highlight { color: #aa742d; }
.h2-nav__highlight span { margin-left: 3px; }
/* Pequenos elementos de credibilidade, logo abaixo do mosaico */
.h2-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
  margin-bottom: clamp(28px, 4vw, 50px);
}
.h2-benefit {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border: 1px solid #e9e5dc;
  border-radius: 12px;
  background: #fcfbf7;
}
.h2-benefit > span {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5e8ce;
  color: #7f551f;
  font-size: 21px;
}
.h2-benefit strong, .h2-benefit small { display: block; }
.h2-benefit strong { color: #25313d; font-size: 13px; font-weight: 750; line-height: 1.4; }
.h2-benefit small { color: #707981; font-size: 11px; line-height: 1.5; margin-top: 2px; }
/* Galeria 360° */
.gallery360-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 65% at 95% 0, rgba(188,139,68,.14), transparent 65%),
              radial-gradient(ellipse 45% 70% at 0 100%, rgba(31,92,108,.23), transparent 75%),
              var(--g360-bg);
  color: var(--g360-white);
  padding: clamp(55px, 7vw, 100px) 0 clamp(44px, 6vw, 76px);
}
.gallery360-section *, .g360-modal * { box-sizing: border-box; }
.g360-heading {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: end;
  margin-bottom: clamp(32px, 4.5vw, 51px);
}
.g360-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--g360-accent);
}
.g360-eyebrow__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--g360-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(231,187,107,.12);
}
.g360-heading h2 {
  margin: 14px 0 13px;
  font-family: inherit;
  font-size: clamp(34px, 5.1vw, 62px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.09;
  color: #fff;
}
.g360-heading h2 em { color: var(--g360-accent); font-style: normal; }
.g360-heading p {
  margin: 0;
  color: var(--g360-muted);
  max-width: 620px;
  line-height: 1.7;
  font-size: clamp(13px, 1.5vw, 15px);
}
.g360-heading__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  padding: 13px 18px;
  border-radius: 7px;
  background: var(--g360-accent);
  color: #171d22;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.g360-heading__cta:hover { background: #f6d597; transform: translateY(-2px); }
.g360-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--g360-border);
}
.g360-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.g360-filter {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--g360-border);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #d7dfe3;
  padding: 10px 17px;
  font-family: inherit;
  line-height: 1.2;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.g360-filter:hover { border-color: rgba(231,187,107,.65); }
.g360-filter.is-active { color: #18232a; background: var(--g360-accent); border-color: var(--g360-accent); }
.g360-count { color: #a9b4be; font-size: 12px; white-space: nowrap; }
.g360-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(13px, 1.9vw, 23px);
}
.g360-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  background: var(--g360-surface);
  color: #fff;
  overflow: hidden;
  border: 1px solid var(--g360-border);
  border-radius: 12px;
  padding: 0;
  text-align: left;
  cursor: zoom-in;
  font-family: inherit;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.g360-card:hover {
  transform: translateY(-5px);
  border-color: rgba(231,187,107,.64);
  box-shadow: 0 18px 40px rgba(0,0,0,.21);
}
.g360-card__media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #263744;
}
.g360-card__media::after {
  content: '';
  position: absolute;
  inset: 40% 0 0;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,.28));
}
.g360-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s ease; }
.g360-card:hover .g360-card__media img { transform: scale(1.025); }
.g360-card__video-art {
  display: grid;
  gap: 12px;
  justify-items: center;
  align-content: center;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 20%, #5a4a38, transparent 52%),
              repeating-linear-gradient(125deg, #253744 0 3px, #293c47 3px 6px);
  color: #d8dfe5;
}
.g360-card__video-art span { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; font-weight: 800; }
.g360-card__video-art b, .g360-card__play {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  background: rgba(0,0,0,.37);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 22px;
  padding-left: 3px;
}
.g360-card__play {
  position: absolute;
  z-index: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.g360-card__tag {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  background: rgba(9,18,26,.83);
  color: #f2f4f5;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 7px 10px;
}
.g360-card__info { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 14px 17px; }
.g360-card__title { color: #f9f9f7; font-size: 13px; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.g360-card__arrow { color: var(--g360-accent); font-size: 19px; flex: none; }
.g360-feedback {
  margin: 10px 0 0;
  padding: clamp(28px, 5vw, 55px) 20px;
  text-align: center;
  color: #c5d0d7;
  border: 1px dashed var(--g360-border);
  border-radius: 12px;
  line-height: 1.65;
}
.g360-feedback[hidden] { display: none !important; }
.g360-bottom {
  margin-top: 33px;
  padding-top: 22px;
  border-top: 1px solid var(--g360-border);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  color: #a6b2bc;
  font-size: 12px;
}
.g360-bottom a { color: var(--g360-accent); text-decoration: none; font-weight: 800; }
.g360-bottom a:hover { text-decoration: underline; }
/* Modal de mídia. Independente do modal da galeria original */
body.g360-lock { overflow: hidden; }
.g360-modal[hidden] { display: none !important; }
.g360-modal {
  position: fixed;
  z-index: 10500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
}
.g360-modal__backdrop { position: absolute; inset: 0; background: rgba(5,10,15,.87); backdrop-filter: blur(9px); }
.g360-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1040px, 100%);
  max-height: calc(100dvh - 32px);
  background: #13212b;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.g360-modal__top {
  padding: 13px 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--g360-border);
}
.g360-modal__titles small { font-size: 9px; letter-spacing: .17em; font-weight: 850; color: var(--g360-accent); }
.g360-modal__titles h3 { font-size: 16px; font-weight: 750; line-height: 1.3; margin: 5px 0 0; color: #fff; }
.g360-modal__close {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--g360-border);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 27px;
  cursor: pointer;
}
.g360-modal__close:hover { background: rgba(255,255,255,.18); }
.g360-modal__media {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 10px;
  overflow: auto;
  background: #0a1117;
}
.g360-modal__media img, .g360-modal__media video { display: block; max-width: 100%; width: auto; height: auto; max-height: min(70dvh, 780px); object-fit: contain; }
.g360-modal__media video { width: 100%; }
.g360-modal__bottom {
  padding: 11px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--g360-border);
}
.g360-modal__bottom span { color: #adbac3; font-size: 12px; }
.g360-modal__nav { color: var(--g360-accent); border: 0; background: none; cursor: pointer; font-size: 12px; font-weight: 750; padding: 10px 0; }
.g360-modal__nav:disabled { color: #71808b; cursor: not-allowed; }
/* Responsividade */
@media (max-width: 1030px) { .g360-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 800px) {
  .h2-benefits { gap: 9px; }
  .h2-benefit { padding: 13px 12px; gap: 8px; }
  .h2-benefit > span { width: 30px; height: 30px; flex-basis: 30px; }
  .h2-benefit small { font-size: 10px; }
  .g360-heading { align-items: start; flex-direction: column; }
  .g360-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .h2-benefits { grid-template-columns: 1fr; }
  .h2-benefit { padding: 13px 15px; }
  .h2-nav__inner { gap: 22px; }
  .g360-heading { gap: 22px; }
  .g360-heading__cta { width: 100%; justify-content: space-between; }
  .g360-toolbar { align-items: start; flex-direction: column; }
  .g360-count { align-self: flex-end; }
  .g360-card__media { aspect-ratio: 1 / 1; }
  .g360-card__info { padding: 12px 10px; }
  .g360-card__title { font-size: 12px; }
  .g360-card__tag { top: 8px; left: 8px; font-size: 9px; padding: 6px 7px; }
  .g360-card__play { width: 48px; height: 48px; font-size: 17px; }
  .g360-bottom { flex-direction: column; align-items: flex-start; }
  .g360-modal { padding: 8px; }
  .g360-modal__panel { max-height: calc(100dvh - 16px); }
  .g360-modal__media img, .g360-modal__media video { max-height: 63dvh; }
  .g360-modal__top, .g360-modal__bottom { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 350px) { .g360-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g360-card, .g360-card__media img, .g360-heading__cta { transition: none; }
}

/* Galeria 360 v2: exibir toda a peça, sem nomes de arquivos */
.g360-card__media { background: #101a22; }
.g360-card__media video.g360-card__preview { display:block; width:100%; height:100%; object-fit:contain; pointer-events:none; }
.g360-card__info { display:none !important; }

/* Galeria corrigida: imagens e vídeos completos, sem nomes de arquivo */
#g360-grid .g360-card__media img, #g360-grid .g360-card__media video { width:100%; height:100%; object-fit:contain; }
#g360-grid .g360-card__info {display:none!important;}
