/* ================================
   BASE GERAL
=================================== */
body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

section {
  scroll-margin-top: 100px;
}

/* ================================
   BOTÕES
=================================== */
.btn-outline-light {
  border-color: #fff;
  color: #fff;
  font-weight: 500;
  letter-spacing: 1px;
}
.btn-outline-light:hover {
  background: #fff;
  color: #000;
}

.btn-outline-danger {
  border-color: #b12b28;
  color: #b12b28;
}
.btn-outline-danger:hover {
  background: #b12b28;
  color: #fff;
}

/* ================================
   FOOTER
=================================== */
footer {
  font-size: 0.9rem;
}
footer h6 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
}
footer a {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ================================
   HEADER (MENU PRINCIPAL)
=================================== */
#mainHeader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.3s ease;
  z-index: 9999;
}
#mainHeader.scrolled {
  background-color: #808283;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
}

/* LINKS DO MENU */
#mainHeader .nav-link {
  color: #fff !important;
  transition: color 0.3s ease;
}

/* Quando o header tiver fundo branco */
#mainHeader.bg-white .nav-link {
  color: #000 !important;
}
#mainHeader.bg-white .nav-link:hover {
  color: #303030 !important;
}

/* ================================
   DROPDOWNS E SUBMENUS
=================================== */
.navbar .dropdown-menu {
  background-color: rgba(255,255,255,0.95);
  border-radius: 0;
  transition: all 0.3s ease;
}
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -0.25rem;
}
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}
.dropdown-item:hover {
  background-color: #f5f5f5;
}
.dropdown-submenu > a::after {
  content: "›";
  float: right;
  margin-top: 4px;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ================================
   BANNERS E SEÇÕES INTERNAS
=================================== */
.internal-banner {
  position: relative;
  overflow: hidden;
}
.internal-banner .banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}
.internal-banner h1 {
  font-size: 3rem;
  letter-spacing: 2px;
}
.internal-banner p {
  font-size: 0.95rem;
  color: #e5e5e5;
}

/* Cabeçalho fixo das páginas internas */
.internal-header {
  border-bottom: 1px solid #eee;
}
.internal-header h1 {
  font-size: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ================================
   EFEITOS DE IMAGENS (HOVER)
=================================== */
.image-hover {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
}
.image-hover img {
  width: 100%;
  display: block;
  filter: grayscale(100%);
  transform: scale(1);
  transition: all 0.6s ease;
}
.image-hover .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease, background 0.4s ease;
}
.image-hover .overlay span {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.image-hover:hover img {
  filter: grayscale(0);
  transform: scale(1.08);
}
.image-hover:hover .overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
}
.image-hover:hover .overlay span {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   CARROSSEL FULL-WIDTH (3x)
=================================== */
.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
  width: max-content;        /* impede o encolhimento */
  margin: 0;
  padding: 0;
  white-space: nowrap;       /* impede quebra de linha */
}

.carousel-item {
  flex: 0 0 calc(100% / 3);
  box-sizing: border-box;
}

.carousel-item img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 4px;
}

/* Botões de navegação */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  z-index: 10;
  transition: background 0.3s ease;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-btn:hover {
  background: rgba(180,139,53,0.8); /* dourado no hover */
}

/* Responsivo */
@media (max-width: 991px) {
  .carousel-item { flex: 0 0 50%; }
}
@media (max-width: 768px) {
  .carousel-item { flex: 0 0 100%; }
  .carousel-item img { height: 360px; }
}

/* ================================
   ANIMAÇÕES
=================================== */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

.carousel-track {
  min-height: 480px;
  background: #f9f9f9; /* cor de fundo neutra enquanto carrega */
}

/* ================================
   MENU LACCA – SUBMENU COMPLETO (CORRIGIDO)
================================ */

/* Wrapper do item com submenu */
.menu-item.has-submenu {
    position: relative;
}

/* HITBOX – mantém o hover entre o menu e o submenu */
.menu-item.has-submenu::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0vw;
    width: 7vw;
    height: 50px; /* altura entre o menu e o submenu */
    background: transparent;
    pointer-events: auto;
}

/* SUBMENU */
.menu-item.has-submenu .submenu {
    position: fixed;
    top: var(--header-height, 115px);   /* altura dinâmica */
    left: 0;
    width: 100vw;
    background: #FFF;
    padding: 1rem 2rem 1rem;
    opacity: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;

    transform: translateY(10px);
    transition: 0.25s ease;
    z-index: 99999;
}

/* MOSTRAR SUBMENU */
.menu-item.has-submenu:hover .submenu,
.menu-item.has-submenu:hover::after {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* Grupos do mega menu */
.submenu-group {
    width: 25%;
    text-align: left;
}

/* Título */
.submenu-group-title {
    font-family: "Open Sans", sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    line-height: 4rem;
    position: relative;
    text-decoration: none;
}

.submenu-group-title:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
}

/* Lista */
.submenu-group-list {
    display: flex;
    flex-wrap: wrap;
}

/* Item */
.submenu-group-item {
    width: 35%;
    color: #333;
    letter-spacing: 1px;
    font-family: "Open Sans", sans-serif;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.submenu-group-item:hover {
    font-weight: 800;
}

/* Em páginas internas (header branco) */
.header-solid .nav-link {
    color: #000 !important;
}

/* ============================
   MOBILE MENU – LACCA STYLE
============================ */

.mobile-menu-btn {
    width: 32px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* Quando header for branco */
.header-solid .mobile-menu-btn span {
    background: #000;
}

/* MENU MOBILE */
.mobile-menu {
    position: fixed;
    top: var(--header-height, 120px);
    left: 0;
    width: 100%;
    background: #808283;
    padding: 3rem 0;
    transform: translateY(-140%);
    transition: 0.35s ease;
    z-index: 9998;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.mobile-menu ul li {
    margin: 1.4rem 0;
}

.mobile-menu ul li a {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
}

.mobile-menu .has-sub .sub {
    display: none;
    margin-top: 0.7rem;
}

.mobile-menu .has-sub.open .sub {
    display: block;
}

body.menu-open {
    overflow: hidden;
}

/* Esconde o menu desktop no mobile */
@media (max-width: 991px) {
    #mainHeader .navbar-nav {
        display: none !important;
    }
}