/* HERO Instituto Bel Bordotti — foto e titulo IDENTICOS a vitrine; menu abaixo da foto */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@500;800&display=swap");

/* hero com o MESMO enquadramento da vitrine (aspect-ratio 2.6/1) */
#ibb-hero-capa {
  width: auto;
  margin: 0;
  position: relative;
  overflow: visible;
  height: clamp(420px, 44vw, 580px);
  background: #0d0a08;
  container-type: inline-size;
}
/* a foto (::before) fica recortada na altura do hero mesmo com overflow visivel */
#ibb-hero-capa::before {
  clip-path: inset(0);
}
#ibb-hero-capa::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("https://pixloja.institutobelbordotti.com.br/embed/capa.webp")
    center 20% / cover no-repeat;
  filter: brightness(0.88) contrast(1.04) saturate(1.03);
}
/* gradiente exato da vitrine */
#ibb-hero-capa::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.1) 16%,
    rgba(0, 0, 0, 0) 42%,
    rgba(0, 0, 0, 0.08) 70%,
    rgba(0, 0, 0, 0.4) 100%
  );
}
/* brilho dourado (hero-luz) — criado via JS */
#ibb-hero-luz {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90cqw, 1500px);
  height: 120%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    50% 54% at 50% 50%,
    rgba(237, 192, 97, 0.4),
    rgba(220, 136, 36, 0.2) 44%,
    rgba(180, 84, 27, 0.07) 62%,
    transparent 74%
  );
  mix-blend-mode: screen;
  filter: blur(10px);
}

/* topo: busca + atendimento + carrinho sobre a foto (texto branco visivel) */
#ibb-hero-capa #cabecalho {
  position: relative;
  z-index: 5;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding-top: 6px !important;
}
#ibb-hero-capa #cabecalho * {
  color: #fff !important;
}
#ibb-hero-capa #cabecalho .busca,
#ibb-hero-capa #cabecalho .busca *,
#ibb-hero-capa #cabecalho .dir-inside,
#ibb-hero-capa #cabecalho .dir-inside * {
  color: #333 !important;
}
#cabecalho .logo,
#cabecalho h1.logo,
#cabecalho h2.logo {
  display: none !important;
}

/* titulo SOBRE a foto (parte de baixo), sem faixa preta */
#ibb-hero-titulo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 33%;
  text-align: center;
  z-index: 4;
  pointer-events: none;
  font-family: Archivo, sans-serif;
  line-height: 0.9;
}
#ibb-hero-titulo b,
#ibb-hero-titulo i {
  display: block;
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.035em;
  font-size: clamp(30px, 6vw, 92px);
}
#ibb-hero-titulo b {
  color: #fefefe;
  text-shadow:
    0 0 40px rgba(237, 192, 97, 0.45),
    0 2px 20px rgba(0, 0, 0, 0.5);
}
#ibb-hero-titulo i {
  color: rgba(236, 213, 181, 0.5);
}

/* area inferior SOBRE a foto (filminho + menu) — fume transparente, foto unica atras */
#ibb-hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
}
/* filminho fumê (deixa a foto do hero aparecer) */
#ibb-tira {
  position: static;
  width: 100%;
  overflow: hidden;
  padding: 8px 0;
  background: rgba(0, 0, 0, 0.34);
}
#ibb-tira .ibb-trilho {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ibbdesliza 32s linear infinite;
}
#ibb-tira span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: #fff;
  font-family: Archivo, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}
#ibb-tira span::after {
  content: "\2022";
  margin: 0 26px;
  font-size: 9px;
  opacity: 0.75;
}
@keyframes ibbdesliza {
  to {
    transform: translateX(-50%);
  }
}

/* menu ABAIXO da foto: fundo escuro, texto branco maiusculo, com separadores e "Inicio" dourado */
.menu-desktop {
  position: static !important;
  background: rgba(10, 8, 6, 0.4) !important;
  padding: 12px 0 !important;
}
.menu-desktop .nivel-um {
  width: auto !important;
  max-width: 96% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
}
.menu-desktop .nivel-um > li {
  white-space: nowrap;
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
}
/* separador "·" entre os itens */
.menu-desktop .nivel-um > li:not(:last-child)::after {
  content: "\00b7";
  color: rgba(255, 255, 255, 0.35);
  margin: 0 2px;
  font-size: 14px;
}
.menu-desktop .nivel-um > li > a {
  padding: 6px 12px !important;
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.92) !important;
  white-space: nowrap !important;
  width: auto !important;
  min-width: 0 !important;
  display: inline-block !important;
  text-align: center !important;
  transition: color 0.2s;
}
.menu-desktop .nivel-um > li > a:hover {
  color: #c9a24a !important;
}
.menu-desktop .nivel-um > li > a span {
  white-space: nowrap !important;
  display: inline !important;
}
/* rotulo "Menu" (e outros) fica branco tambem, sem afetar o dropdown */
.menu-desktop .nivel-um > li > a strong,
.menu-desktop .nivel-um > li > a * {
  color: #fff !important;
}
/* esconde SO os icones do topo do menu (nao as fotos do dropdown) */
.menu-desktop .nivel-um > li > a img {
  display: none !important;
}
/* item "Inicio" ativo: dourado + sublinhado */
#ibb-home-link {
  color: #c9a24a !important;
  border-bottom: 2px solid #c9a24a;
  padding-bottom: 4px !important;
}

/* o filminho substitui a tarja estatica do tema */
.banner-tarja-avancada {
  display: none !important;
}

/* logo do rodape removido */
.rodape-sobre .logo {
  display: none !important;
}

/* home: sem titulos por bloco (Lancamentos, Destaques, etc.) */
body.pagina-inicial .titulo-categoria {
  display: none !important;
}

/* titulo do produto: ate 4 linhas (era 2) */
.nome-produto {
  height: auto !important;
  max-height: 72px !important;
  -webkit-line-clamp: 4 !important;
}

/* apos desmontar o carrossel (unslick): grade estatica de 4 por linha */
.vitrine-carrossel {
  display: flex !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.vitrine-carrossel > .listagem-item {
  width: 25% !important;
  flex: 0 0 25% !important;
  max-width: 25% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  float: none !important;
}
@media (max-width: 760px) {
  .vitrine-carrossel > .listagem-item {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

/* ===== PAGINAS INTERNAS (nao-home): topo enxuto, foto cortada, sem titulo/logo/brilho ===== */
body:not(.pagina-inicial) #ibb-hero-capa {
  aspect-ratio: auto !important;
  height: 230px !important;
  min-height: 0 !important;
  max-height: none !important;
}
body:not(.pagina-inicial) #ibb-hero-titulo,
body:not(.pagina-inicial) #ibb-hero-luz {
  display: none !important;
}
@media (max-width: 760px) {
  body:not(.pagina-inicial) #ibb-hero-capa {
    height: 150px !important;
  }
}

/* ===== mobile ===== */
@media (max-width: 760px) {
  #ibb-hero-capa {
    height: clamp(220px, 58vw, 340px);
  }
  /* no celular usa o menu hamburguer do tema (esconde o menu desktop que sobrepunha a foto) */
  .menu-desktop {
    display: none !important;
  }
  #ibb-hero-titulo {
    padding: 18px 16px 8px;
  }
  #ibb-hero-titulo b,
  #ibb-hero-titulo i {
    font-size: clamp(30px, 11vw, 58px);
  }
  #ibb-tira {
    padding: 6px 0 12px;
  }
  #ibb-tira span {
    font-size: 12px;
    letter-spacing: 2px;
  }
  #ibb-tira span::after {
    margin: 0 16px;
  }
}

/* ===== TODOS os botoes lilas -> dourado (estilo vitrine) ===== */
:root {
  --cBotoes: #c9a24a !important;
  --cBotoesTxt: #241a08 !important;
  --cBannerB: #c9a24a !important;
  --cInfoDestaqueIcone: #c9a24a !important;
  --cPixIcone: #c9a24a !important;
  --cTodasCategoriasIcone: #c9a24a !important;
  --cSuporte: #c9a24a !important;
  --cBandeiraDesconto: #c9a24a !important;
}
.botao.principal,
.botao-comprar,
.botao-comprar-ajax,
.ir-carrinho,
.newsletter-assinar,
.botao-input,
.fundo-principal,
.botao.fundo-principal,
.banner .botao,
button.principal,
.principal.botao,
.bandeira-promocao,
.suporte-botao,
.suporte-header {
  background: #c9a24a !important;
  border-color: #c9a24a !important;
  color: #241a08 !important;
}
.botao.principal:hover,
.botao-comprar:hover,
.botao-comprar-ajax:hover,
.ir-carrinho:hover,
.fundo-principal:hover {
  background: #b78f3c !important;
  border-color: #b78f3c !important;
}

/* ===== HARMONIZAR CORES com a marca (escuro/dourado) — 06/09 ===== */
:root, html, body {
  --cCab: #1a140e !important;            /* cabecalho escuro */
  --cCabTxt: #f3ece0 !important;
  --cCabIcones: #e9c46a !important;
  --cBotoes: #b8860b !important;         /* botoes/caixinhas -> dourado */
  --cBotoesTxt: #ffffff !important;
  --cBannerB: #b8860b !important;
  --cBandeiraDesconto: #b8860b !important;
  --cInfoDestaqueIcone: #b8860b !important;
}

/* ===== SEM SUBMENU no menu do topo — 06/09 ===== */
.menu.superior .nivel-um .nivel-dois,
.menu.superior .nivel-um li ul,
nav.menu .nivel-um li ul,
.menu-desktop .nivel-dois,
.menu-desktop .nivel-um li ul { display: none !important; }
