/* Agrupando tudo sob o nome "Nissan Brand" */
@font-face {
  font-family: "Nissan Brand";
  src: url("../fonts/nissan-brand-light.otf");
  font-weight: 300; /* Light */
}

@font-face {
  font-family: "Nissan Brand";
  src: url("../fonts/nissan-brand-regular.otf");
  font-weight: 400; /* Regular */
}

@font-face {
  font-family: "Nissan Brand";
  src: url("../fonts/nissan-brand-bold.otf");
  font-weight: 700; /* Bold */
}

@font-face {
  font-family: "Nissan Brand";
  src: url("../fonts/nissan-brand-italic.otf");
  font-weight: 400;
  font-style: italic;
}

:root {
  /* Define a Nissan Brand como fonte principal */
  --bs-body-font-family: "Nissan Brand", system-ui, -apple-system, sans-serif;
  
  /* Garante que os títulos também usem ela */
  --bs-heading-font-family: "Nissan Brand", sans-serif;
}

/* Forçamos em todos os elementos base */
html, body, p, a, li, span, label, input, textarea, select {
    font-family: "Nissan Brand", sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "Nissan Brand", sans-serif !important;
    font-weight: 400 !important; /* Para garantir que use o Bold */
}

/* Botões e Campos de Formulário com 20px */
.btn, .form-control, .form-select {
    font-family: "Nissan Brand Bold", sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    border-radius: 20px !important;
    padding: auto 30px !important;
}

/* E-mail não deve forçar uppercase */
input[type="email"],
.form-control[type="email"] {
    text-transform: none !important;
}

/* Configuração para todos os banners do slider */
.banner-responsive {
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
  
  /* Carrega a imagem mobile por padrão */
  background-image: var(--bg-mob) !important;
}

/* Quando a tela for desktop (Bootstrap lg = 992px) */
@media (min-width: 992px) {
  .banner-responsive {
      /* Troca para a imagem desktop automaticamente */
      background-image: var(--bg-desk) !important;
  }
}

.section-destaque {
  /* Forçamos a imagem a aparecer usando a variável */
  background-image: var(--bg-destaque) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  width: 100%;
}

/* --- MOBILE (Resoluções menores) --- */
@media (max-width: 991px) {
  .section-destaque {
      /* Se a imagem sumiu, é porque a seção pode estar sem altura */
      min-height: 400px !important; 
      background-position: center center !important;
      
      /* Ajuste de padding para reduzir as margens exageradas */
      padding-top: 60px !important;
      padding-bottom: 60px !important;
  }
  
  .section-destaque .container {
      padding-left: 20px !important; /* Preserva o padding esquerdo */
  }
}

/* --- DESKTOP --- */
@media (min-width: 992px) {
  .section-destaque {
      min-height: 100vh !important;
      background-position: center left !important;
      display: flex;
      align-items: center;
  }
}

/* Estilo padrão (Mobile e Tablet) */
.navbar-brand-item {
  min-height: 45px;
  width: auto; /* Garante que a largura acompanhe a proporção da altura */
}

/* Ajuste para Desktop (Telas a partir de 992px) */
@media (min-width: 992px) {
  .navbar-brand-item {
    min-height: 65px;
  }
}

.text-primary {
  color: #404040 !important;
}

.btn-theme {
  background-color: #000;
  color: #FFF;
}

.btn-off {
  background-color: #404040;
  color: #FFF;
}

.bg-theme {
  background-color: #E00034 !important;
}

.cookies {
  position: fixed;
  bottom: 20px;
  left: -370px;
  max-width: 345px;
  width: 100%;
  background: #FFF;
  border-radius: 8px;
  padding: 15px 25px 22px;
  transition: left 0.3s ease;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.cookies.show {
  left: 20px;
}

.cookies .info {
  margin-top: 16px;
}
.cookies .info p {
  color: #333;
  font-size: 12px;
  margin: 15px auto;
}

.cookies .info p a {
  text-decoration: none;
}

.cookies .info p a:hover {
  text-decoration: underline;
}

.cookies .btns {
  margin-top: 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookies .btns .button {
  border: none;
  color: #FFF;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  width: calc(100% / 2 - 10px);
  transition: all 0.2s ease;
}

/* WhatsApp flutuante acima dos banners no mobile */
#robbu-whatsapp-button {
  z-index: 3000 !important;
}

#robbu-whatsapp-button img {
  z-index: 3001 !important;
}

