/* ==========================================================================
   AUTO FÁCIL - ESTILO EXCLUSIVO DE MENU & NAVBAR
   - Header escuro com redes sociais à esquerda
   - Logotipo centralizada logo acima da navbar
   - Telefone / WhatsApp de contato à direita
   - Div da navbar em formato de paralelogramo esportivo com corte chanfrado
   - Cores oficiais Auto Fácil: Vermelho (#D90D1E) e Grafite Escuro (#0D0E12)
   ========================================================================== */

/* Reset de altura legada do header para permitir fluxo perfeito */
header,
header.header-autofacil,
.header-autofacil,
.header-autofacil .header-top {
  height: auto !important;
  min-height: auto !important;
}

.header-autofacil {
  background-color: transparent !important;
  position: relative;
  width: 100%;
  z-index: 1000;
}

/* --------------------------------------------------------------------------
   1. BARRA SUPERIOR (Redes Sociais | Logo Centralizada | Contato)
   -------------------------------------------------------------------------- */
.header-autofacil-top {
  padding: 16px 0 10px 0;
  background-color: #0d0e12;
  position: relative;
}

.header-top-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

/* Lado Esquerdo: Redes Sociais */
.header-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.header-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.header-social-btn:hover {
  background-color: #d90d1e;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.header-social-btn.header-social-whatsapp:hover {
  background-color: #25D366;
  color: #ffffff !important;
}

/* Centro: Logotipo perfeitamente centralizada */
.header-top-center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.header-brand-logo {
  display: inline-block;
  transition: transform 0.25s ease;
  line-height: 1;
}

.header-brand-logo:hover {
  transform: scale(1.02);
}

.header-brand-logo img {
  height: 62px;
  max-height: 62px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* Lado Direito: Telefone / WhatsApp & Ações Rápidas */
.header-top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.header-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-decoration: none !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.header-phone-btn i {
  color: #D90D1E;
  font-size: 15px;
}

.header-phone-btn:hover {
  color: #d90d1e !important;
  transform: translateY(-1px);
}

.header-fav-link {
  color: #ffffff !important;
  font-size: 16px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.header-fav-link:hover {
  color: #FFD700 !important;
  background: rgba(255, 215, 0, 0.15);
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   2. NAVBAR EM FORMA DE PARALELOGRAMO (DIV CHANFRADA ESPORTIVA)
   -------------------------------------------------------------------------- */
.header-autofacil-navbar-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 25;
  margin-top: 0 !important;
  padding-bottom: 0px;
  background: transparent !important;
}

/* Efeito de integração: a base maior da barra vermelha fica em cima da borda inferior da área preta do header */
.banner-home {
  margin-top: -48px !important;
  position: relative;
  z-index: 10;
}

/* Container do menu chanfrado: base maior para cima e base menor para baixo */
.header-navbar-shape {
  background: #d90d1e;
  /* Base maior em cima (0% a 100%) e base menor embaixo (35px a calc(100% - 35px)) */
  clip-path: polygon(0 0, 100% 0, calc(100% - 35px) 100%, 35px 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 35px) 100%, 35px 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 42px;
  height: 50px;
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  border-bottom: 2px solid #b50b19;
  position: relative;
}

/* Lista de navegação horizontal */
.header-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

.header-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 16px;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.header-nav-link:hover {
  background-color: rgba(0, 0, 0, 0.16);
  color: #ffffff !important;
}

.header-nav-link i.nav-chevron {
  font-size: 10px;
  transition: transform 0.2s ease;
}

/* Dropdown Menu para "Busca por Motos" */
.header-dropdown:hover .header-dropdown-menu {
  display: block;
}

.header-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

.header-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: #121316;
  border-top: 3px solid #d90d1e;
  border-radius: 0 0 8px 8px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  z-index: 1001;
  animation: headerDropdownFade 0.2s ease;
}

@keyframes headerDropdownFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  color: #e5e5e5 !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.2s ease, padding-left 0.2s ease, color 0.2s ease;
}

.header-dropdown-menu li a:hover {
  background-color: #d90d1e;
  color: #ffffff !important;
  padding-left: 22px;
}

/* --------------------------------------------------------------------------
   3. MENU MOBILE & RESPONSIVIDADE
   -------------------------------------------------------------------------- */
.header-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.header-mobile-toggle:focus-visible {
  outline: 2px solid #d90d1e;
  outline-offset: 2px;
}

.header-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 2px;
  position: absolute;
  left: 10px;
  transition: all 0.25s ease;
}

.header-mobile-toggle span:nth-child(1) { top: 13px; }
.header-mobile-toggle span:nth-child(2) { top: 21px; }
.header-mobile-toggle span:nth-child(3) { top: 29px; }

.header-mobile-toggle.active span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.header-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.header-mobile-toggle.active span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Gaveta do menu mobile */
.header-mobile-drawer {
  display: none;
  background-color: #101217;
  border-top: 2px solid #d90d1e;
  padding: 16px 20px 24px 20px;
}

.header-mobile-drawer.show {
  display: block !important;
}

.header-mobile-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-mobile-list > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-mobile-list > li:last-child {
  border-bottom: none;
}

.header-mobile-list a,
.header-mobile-list summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap !important;

  min-height: 44px;
  box-sizing: border-box;}

.header-mobile-list a:hover {
  color: #d90d1e !important;
}

.header-mobile-list details summary {
  list-style: none;
}

.header-mobile-list details summary::-webkit-details-marker {
  display: none;
}

.header-mobile-sublist {
  list-style: none;
  padding: 0 0 10px 24px;
  margin: 0;
}

.header-mobile-sublist li a {
  padding: 8px 0;
  font-size: 13px;
  color: #bbb !important;
  white-space: nowrap !important;
}

.header-mobile-sublist li a:hover {
  color: #d90d1e !important;
}

.mobile-cta-sell {
  background-color: #d90d1e;
  border-radius: 6px;
  padding: 10px 14px !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-align: center;
  justify-content: center;
  margin-top: 10px;
}

.mobile-cta-sell:hover {
  background-color: #b50b19;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   4. BREAKPOINTS & RESPONSIVIDADE DO HEADER
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .header-autofacil-navbar-wrap {
    display: none !important; /* Em notebooks compactos, tablets e celulares, a barra cede espaço ao menu mobile retrátil */
  }

  .banner-home {
    margin-top: 0 !important;
  }

  .header-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-brand-logo img {
    height: 48px;
    max-height: 48px;
  }

  .header-phone-btn span {
    font-size: 12px;
    white-space: nowrap;
  }

  .header-top-grid {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }
}

@media (max-width: 575px) {
  .header-top-left {
    gap: 6px;
  }
  .header-social-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    font-size: 15px;
  }
  .header-brand-logo img {
    height: 40px;
    max-height: 40px;
  }
}

@media (max-width: 420px) {
  .header-top-left {
    gap: 4px;
  }
}

/* ==========================================================================
   TEMA DARK GLOBAL AUTO FÁCIL & AJUSTES DA HOME
   ========================================================================== */
html,
body,
main,
#page-content {
  background-color: #0d0e12 !important;
  color: #f3f4f6 !important;
}

#page-content h1,
#page-content h2,
.card-brands-header h2,
.page-type h2 {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   HERO BANNER COM VÍDEO DO YOUTUBE (LARGURA TOTAL, SEM CONTROLES, MAIOR ALTURA)
   -------------------------------------------------------------------------- */
.hero-video-banner {
  position: relative;
  width: 100%;
  height: 496px;
  max-height: 68vh;
  overflow: hidden;
  background-color: #0d0e12;
  margin-top: -48px !important;
  z-index: 10;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* Proporção 16:9 */
  min-height: 100%;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
}

.hero-video-container .hero-banner-static-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  z-index: 1;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 14, 18, 0.3);
  pointer-events: none;
}

/* Textura pixelizada (grade de minúsculos quadrículos de tela) */
.hero-pixel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0, rgba(0, 0, 0, 0.45) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0, rgba(0, 0, 0, 0.45) 1px, transparent 1px, transparent 3px);
}

@media (max-width: 991px) {
  .hero-video-banner {
    height: 352px;
    margin-top: 0 !important;
  }
}

@media (max-width: 575px) {
  .hero-video-banner {
    height: 272px;
  }
}

/* --------------------------------------------------------------------------
   BARRA DE BUSCA (WIDTH 25% MENOR, LABEL AO CENTRO, TEXTO/PLACEHOLDER À ESQUERDA)
   -------------------------------------------------------------------------- */
#search-bar .search-bar-box {
  width: 75% !important;
  max-width: 920px !important;
  margin: 0 auto !important;
  background-color: #16181f !important;
  border: 1px solid #282c37 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

#search-bar .label {
  color: #ffffff !important;
  text-align: center !important;
  width: 100%;
  display: block;
  margin-bottom: 12px !important;
}

#search-bar input,
#searchbar-brand-model {
  background-color: #0d0e12 !important;
  border: 1px solid #2b2f3c !important;
  color: #ffffff !important;
  text-align: left !important;
  padding-left: 48px !important;
  padding-right: 20px !important;
}

#search-bar input::placeholder,
#searchbar-brand-model::placeholder {
  color: #9ca3af !important;
  text-align: left !important;
}

#search-bar input:focus,
#searchbar-brand-model:focus {
  border-color: #d90d1e !important;
  background-color: #111319 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

#search-bar .autocomplete::before {
  filter: invert(1) brightness(1.8);
  opacity: 0.75;
}

#search-bar .form-row-button button,
#search-bar button[type="submit"] {
  white-space: nowrap !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}

@media (max-width: 767px) {
  #search-bar .search-bar-box {
    width: 95% !important;
    padding: 24px 16px !important;
  }
  #search-bar .form-row-button {
    width: 100% !important;
  }
  #search-bar .form-row-button button {
    width: 100% !important;
    height: 48px !important;
    white-space: nowrap !important;
  }
}

/* Autocomplete Dropdown no Tema Dark */
.autocomplete-items,
.ui-autocomplete {
  background-color: #16181f !important;
  border: 1px solid #2b2f3c !important;
  color: #f3f4f6 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.autocomplete-items div,
.ui-menu-item-wrapper {
  background-color: #16181f !important;
  color: #e5e7eb !important;
  border-bottom: 1px solid #232630 !important;
}

.autocomplete-items div:hover,
.autocomplete-active,
.ui-menu-item-wrapper.ui-state-active {
  background-color: #d90d1e !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   SEGUNDA DOBRA: TÍTULO COM MAIOR ESPAÇAMENTO E CATEGORIAS SEM ELEMENTO REPETIDO
   -------------------------------------------------------------------------- */
.section-title-home-wrap {
  margin-top: 56px !important;
  margin-bottom: 32px !important;
}

.section-title-home-wrap h1 {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -0.3px;
}

.section-categorias-home {
  padding-top: 0;
}

.categoria-banner-card {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  max-height: 315px;
  background-color: #b5b5b5;
  overflow: hidden;
  border-radius: 2px;
  text-decoration: none !important;
  border: none;
  transition: transform 0.2s ease;
}

.categoria-banner-card:hover {
  transform: translateY(-3px);
  border: none;
  text-decoration: none !important;
}

.categoria-banner-badge {
  position: absolute;
  top: 24px;
  left: 20px;
  z-index: 3;
  background-color: #db2d2e;
  padding: 14px 24px 14px 18px;
  min-width: 215px;
  max-width: 78%;
  text-align: left;
  transition: background-color 0.2s ease;
}

.categoria-banner-card:hover .categoria-banner-badge {
  background-color: #c41e1f;
}

.categoria-badge-sub {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.2;
  margin-bottom: 3px;
}

.categoria-badge-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1.15;
  margin: 0 !important;
}

.categoria-banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  filter: contrast(1.06) brightness(1.04);
  transition: transform 0.3s ease;
  display: block;
}

.categoria-banner-img.is-photo {
  object-fit: cover;
  mix-blend-mode: normal;
  filter: brightness(0.84);
}

.categoria-banner-card:hover .categoria-banner-img {
  transform: scale(1.03);
}

@media (max-width: 575px) {
  .categoria-banner-card {
    min-height: 200px;
  }
  .categoria-banner-badge {
    top: 14px;
    left: 14px;
    padding: 10px 16px;
    min-width: 170px;
  }
  .categoria-badge-sub {
    font-size: 10px;
  }
  .categoria-badge-title {
    font-size: 16px;
  }
}

/* ==========================================================================
   GRADE DE MOTOS EM DESTAQUE & RECÉM-ANUNCIADAS (DARK THEME CLEAN - SEM GLOW)
   ========================================================================== */
#motos-destaque {
  padding-bottom: 75px !important;
  margin-bottom: 0 !important;
}

@media (max-width: 767px) {
  #motos-destaque {
    padding-bottom: 48px !important;
  }
}

#motos-destaque .motos-destaque-grid {
  row-gap: 36px !important;
}

#motos-destaque .motos-destaque-grid > [class*="col-"] {
  margin-bottom: 36px !important;
}

@supports (row-gap: 36px) {
  #motos-destaque .motos-destaque-grid > [class*="col-"] {
    margin-bottom: 0 !important;
  }
}

/* Cards de veículos no Tema Dark - Sólidos e Limpos (Sem borda no hover) */
#motos-destaque .card.vehicle,
#page-content .card .card.vehicle {
  background: #16181f !important;
  border: none !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.25s ease !important;
}

#motos-destaque .card.vehicle:hover,
#page-content .card .card.vehicle:hover {
  transform: translateY(-3px) !important;
  border: none !important;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

#motos-destaque .card.vehicle .card-body {
  padding: 12px !important;
}

#motos-destaque .card.vehicle .card-body::after {
  content: "";
  display: table;
  clear: both;
}

/* Troca suave sequencial de fotos no hover dos cards (GPU 60fps sem glitches) */
#motos-destaque .card.vehicle .box-img,
#vehicles .card.vehicle .box-img,
#vehicles .box-img,
.box-img {
  position: relative !important;
  height: 185px !important;
  width: 100% !important;
  line-height: normal !important;
  overflow: hidden !important;
  border-radius: 6px !important;
  background-color: #1a1c24 !important;
}

#motos-destaque .card.vehicle .box-img img,
#vehicles .card.vehicle .box-img img,
#vehicles .box-img img,
.box-img img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.moto-result-img-box {
  position: relative !important;
  overflow: hidden !important;
  background-color: #1a1c24 !important;
}

.moto-result-img-box img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Slides pré-renderizados: transição de opacidade limpa no compositor da GPU */
.card-gallery-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: inherit !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 1 !important;
  will-change: opacity;
}

.card-gallery-slide.active {
  opacity: 1 !important;
  z-index: 2 !important;
  pointer-events: auto !important;
}

.badge-destaque-top {
  z-index: 5 !important;
}

#page-content .card .card.vehicle .card-content,
#page-content .card .card.vehicle.featured-box .card-content {
  background-color: transparent !important;
  color: #f3f4f6 !important;
  padding: 14px 4px 4px 4px;
}

#page-content .card .card.vehicle .card-content-model,
#page-content .card .card.vehicle .model {
  color: #ffffff !important;
}

#page-content .card .card.vehicle .card-content-store,
#page-content .card .card.vehicle .card-content-year,
#page-content .card .card.vehicle .store-model {
  color: #9ca3af !important;
}

#page-content .card .card.vehicle .card-content-mileage,
#page-content .card .card.vehicle .card-content-fuel,
#page-content .card .card.vehicle .card-footer p {
  color: #cbd5e1 !important;
}

/* --------------------------------------------------------------------------
   SEÇÃO INSTITUCIONAL MINIMALISTA: AUTO FÁCIL MOTOS — HÁ 16 ANOS MOVENDO SONHOS!
   -------------------------------------------------------------------------- */
.section-institucional-16anos {
  padding: 64px 0;
  background-color: #0d0e12;
  border-top: 1px solid #1f222b;
  color: #ffffff;
}

.institucional-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.institucional-title .highlight-red {
  color: #d90d1e;
}

.institucional-desc {
  font-size: 16px;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.institucional-conquista-call {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 20px;
}

.institucional-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  border-radius: 8px;
  overflow: hidden;
}

.institucional-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   SEÇÃO: MARCAS POPULARES (VISUAL MODERNO COM CARDS, BADGES E ABAS DINÂMICAS)
   ========================================================================== */
.section-marcas-populares {
  background-color: #0d0e12;
  border-top: 1px solid #1f222b;
  border-bottom: 1px solid #1f222b;
}

.marcas-section-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0;
}

.marcas-link-conferir {
  color: #d90d1e !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.marcas-link-conferir:hover {
  color: #ff3848 !important;
  transform: translateX(2px);
}

/* Abas Dinâmicas de Marcas (Pill Tabs com Scroll Horizontal Fluído) */
.marcas-tabs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 4px;
}

.marcas-tabs-wrap::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.marcas-tabs-list {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

.marca-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 24px;
  background: #151720;
  border: 1px solid #282c3c;
  color: #cbd5e1 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}

.marca-tab-pill i {
  font-size: 11px;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.marca-tab-pill:hover {
  background: #202432;
  border-color: #3f455c;
  color: #ffffff !important;
}

.marca-tab-pill:hover i {
  color: #d90d1e;
}

.marca-tab-pill.active {
  background: #d90d1e;
  border-color: #d90d1e;
  color: #ffffff !important;
}

.marca-tab-pill.active i {
  color: #ffffff;
}

/* Seta de navegação das abas */
.marcas-tabs-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.marcas-tabs-nav .marcas-tabs-wrap {
  flex: 1;
  min-width: 0;
  padding-bottom: 0;
}

.marcas-tabs-arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #151720;
  border: 1px solid #282c3c;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  outline: none;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.marcas-tabs-arrow:hover {
  background: #d90d1e;
  border-color: #d90d1e;
}

.marcas-tabs-arrow[disabled] {
  opacity: 0.35;
  cursor: default;
  background: #151720;
  border-color: #282c3c;
}

/* Cards das Marcas Populares (Estilo Screenshot com Logo Circular e Foto do Modelo) */
.col-brand-card-item {
  padding: 0 8px;
  outline: none;
}

.brand-photo-card {
  display: block;
  position: relative;
  width: 100%;
  height: 270px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  background: #161822;
  border: 1px solid #232734;
  outline: none;
  transition: none;
}

.brand-photo-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.brand-photo-card:hover::after {
  opacity: 0.35;
}

.brand-photo-card:hover {
  border-color: #232734;
}

.brand-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(8, 9, 13, 0.94) 0%, rgba(8, 9, 13, 0.45) 45%, rgba(8, 9, 13, 0) 75%);
  pointer-events: none;
  z-index: 1;
}

/* Badge Circular com o Logotipo da Marca no Canto Superior Esquerdo */
.brand-logo-circle {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  z-index: 2;
  transition: transform 0.2s ease;
}

.brand-photo-card:hover .brand-logo-circle {
  transform: none;
}

.brand-logo-circle img {
  max-width: 28px;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Legenda no Canto Inferior do Card */
.brand-photo-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
}

.brand-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px 0;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.brand-card-sub {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  display: block;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Botões de Navegação do Carrossel */
.btn-brands-prev,
.btn-brands-next {
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}

.btn-brands-prev:hover,
.btn-brands-next:hover {
  background-color: #d90d1e !important;
  border-color: #d90d1e !important;
}

/* Dots Customizados do Carrossel Slick */
.brands-slide .slick-dots {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 18px 0 0 0;
  margin: 0;
}

.brands-slide .slick-dots li {
  margin: 0;
  display: inline-block;
}

.brands-slide .slick-dots li button {
  font-size: 0;
  line-height: 0;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: #2a2e3d;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
}

.brands-slide .slick-dots li.slick-active button {
  width: 24px;
  background: #d90d1e;
  border-radius: 5px;
}

.btn-ver-mais {
  background-color: #16181f !important;
  color: #f3f4f6 !important;
  border: 1px solid #262934 !important;
}

.btn-ver-mais:hover {
  background-color: #d90d1e !important;
  color: #ffffff !important;
  border-color: #d90d1e !important;
}

/* Badge Destaque discreto e elegante */
.badge-destaque-top {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(217, 13, 30, 0.9) !important;
  color: #ffffff !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 2px 7px !important;
  border-radius: 3px !important;
  line-height: 1.3 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
  pointer-events: none !important;
  z-index: 5 !important;
  display: inline-block !important;
}

/* ==========================================================================
   CARDS DE MOTOS EM DESTAQUE: REFINAMENTO RESPONSIVO (MOBILE)
   Desktop permanece inalterado; abaixo de 767px os cards ocupam a linha
   inteira e a imagem passa a ser exibida por completo (sem corte)
   ========================================================================== */
@media (max-width: 767px) {
  #motos-destaque .motos-destaque-grid {
    row-gap: 20px !important;
  }

  #motos-destaque .motos-destaque-grid > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-bottom: 0 !important;
  }

  #motos-destaque .motos-destaque-grid > [class*="col-"] > .card.vehicle {
    margin-bottom: 0 !important;
  }

  #motos-destaque .card.vehicle .box-img {
    height: auto !important;
    aspect-ratio: 16 / 10;
  }

  #motos-destaque .card.vehicle .box-img img,
  #motos-destaque .card.vehicle .box-img .card-gallery-slide,
  #motos-destaque .card.vehicle .box-img .carousel,
  #motos-destaque .card.vehicle .box-img .carousel-inner,
  #motos-destaque .card.vehicle .box-img .carousel-item,
  #motos-destaque .card.vehicle .box-img picture {
    object-fit: contain !important;
    background-color: #1a1c24 !important;
  }

  #motos-destaque .card.vehicle .card-body {
    padding: 14px !important;
  }

  #motos-destaque .card.vehicle .card-content {
    padding: 16px !important;
  }

  #motos-destaque .card.vehicle .card-content-model {
    font-size: 16px !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
    white-space: normal !important;
  }

  #motos-destaque .card.vehicle .card-content-store,
  #motos-destaque .card.vehicle .card-content-year {
    font-size: 13px !important;
    margin-bottom: 4px !important;
  }

  #motos-destaque .card.vehicle .card-content-price {
    font-size: 21px !important;
    margin-top: 14px !important;
    margin-bottom: 6px !important;
    flex-wrap: wrap !important;
    line-height: 1.2 !important;
  }

  #motos-destaque .card.vehicle .card-content-mileage,
  #motos-destaque .card.vehicle .card-content-fuel {
    font-size: 12px !important;
  }
}

@media (max-width: 400px) {
  #motos-destaque .card.vehicle .card-content-model {
    font-size: 15px !important;
    white-space: normal !important;
  }

  #motos-destaque .card.vehicle .card-content-price {
    font-size: 19px !important;
  }
}

/* Badge do CTA Final sem preenchimento e com borda/texto brancos */
.sell-cta-badge {
  background: transparent !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* ==========================================================================
   SEÇÃO: SOLUÇÕES MOTOBILÍSTICAS
   ========================================================================== */
.section-solucoes {
  background-color: #0d0e12;
  padding: 56px 0 64px;
  border-top: 1px solid #1f222b;
}

.solucoes-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0 0 22px 0;
}

.solucao-card {
  display: block;
  position: relative;
  height: 200px;
  padding: 22px 24px;
  border-radius: 16px;
  background: #16181f;
  border: 1px solid #232734;
  overflow: hidden;
  text-decoration: none !important;
  transition: background-color 0.25s ease;
}

.solucao-card:hover {
  background: #1d2029;
}

.solucao-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
}

.solucao-card-icon {
  position: absolute;
  right: 20px;
  bottom: 14px;
  font-size: 82px;
  color: #d90d1e;
  opacity: 0.95;
}

.solucao-badge-novo {
  display: inline-block;
  background: #d90d1e;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

@media (max-width: 767px) {
  .solucao-card {
    height: 170px;
    padding: 18px;
  }
  .solucao-card-icon {
    font-size: 64px;
  }
}

/* ==========================================================================
   NAVBAR COM 7 ITENS — barra expandida e fontes maiores sem quebra ou corte
   ========================================================================== */
.header-autofacil-navbar-wrap .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  display: flex !important;
  justify-content: center !important;
}

.header-navbar-shape {
  width: 100% !important;
  max-width: 1580px !important;
  height: 50px;
  padding: 0 50px !important; /* Folga segura para não encostar no chanfro lateral de 35px */
  clip-path: polygon(0 0, 100% 0, calc(100% - 35px) 100%, 35px 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 35px) 100%, 35px 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.header-navbar-shape .header-nav-list {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-navbar-shape .header-nav-item {
  flex: 0 0 auto;
  position: relative;
}

.header-navbar-shape .header-nav-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 9px;
  background-color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.header-navbar-shape .header-nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 12.8px;
  font-weight: 700;
  letter-spacing: 0.35px;
  padding: 0 9px;
  white-space: nowrap !important;
  color: #ffffff !important;
  text-transform: uppercase;
}

@media (max-width: 1440px) {
  .header-navbar-shape {
    max-width: 98vw !important;
    padding: 0 46px !important;
  }
  .header-navbar-shape .header-nav-link {
    font-size: 12px;
    padding: 0 7px;
    letter-spacing: 0.25px;
    white-space: nowrap !important;
  }
}

@media (max-width: 1280px) {
  .header-navbar-shape {
    max-width: 99vw !important;
    padding: 0 38px !important;
  }
  .header-navbar-shape .header-nav-link {
    font-size: 11.8px;
    padding: 0 6px;
    letter-spacing: 0.15px;
    white-space: nowrap !important;
  }
}

/* ==========================================================================
   BANNERS DE VÍDEO INTERATIVOS COM CTA (FINANCIAMENTO & CONSÓRCIO)
   ========================================================================== */
.section-video-cta {
  position: relative;
  width: 100%;
  height: 380px;
  min-height: 340px;
  overflow: hidden;
  background-color: #0d0e12;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  z-index: 10;
}

.section-video-cta-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.section-video-cta-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* Proporção 16:9 */
  min-height: 100%;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
}

.section-video-cta-wrap .section-banner-static-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  z-index: 1;
}

/* Overlay escuro para garantir contraste e legibilidade impecáveis */
.section-video-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 14, 18, 0.74);
  pointer-events: none;
  z-index: 2;
}

/* Textura pixelizada sutil com minúsculos quadrículos idênticos à Hero */
.section-video-cta-pixel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  opacity: 0.65;
  z-index: 3;
}

.section-video-cta-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 960px;
  padding: 30px 20px;
}

.section-video-cta-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 auto 24px auto;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.9);
}

.btn-video-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #D90D1E;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 15px 36px;
  border-radius: 6px;
  text-decoration: none !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-video-cta:hover {
  background-color: #b50b19;
  color: #ffffff !important;
  box-shadow: none !important;
}

@media (max-width: 991px) {
  .section-video-cta {
    height: 320px;
    min-height: 290px;
  }
  .section-video-cta-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .btn-video-cta {
    font-size: 13.5px;
    padding: 13px 28px;
    white-space: nowrap !important;
  }
}

@media (max-width: 575px) {
  .section-video-cta {
    height: 270px;
    min-height: 250px;
  }
  .section-video-cta-title {
    font-size: 18px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
  }
  .btn-video-cta {
    font-size: 12px;
    padding: 11px 20px;
    white-space: nowrap !important;
  }
}

@media (max-width: 360px) {
  .btn-video-cta {
    font-size: 11px;
    padding: 10px 14px;
    white-space: nowrap !important;
  }
}
    letter-spacing: 0.5px;
  }
}

/* ==========================================================================
   PERSONALIZAÇÃO GLOBAL: SELETOR DE TEXTO E BARRA DE ROLAGEM
   ========================================================================== */

::selection {
  background-color: #D90D1E !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

::-moz-selection {
  background-color: #D90D1E !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

input, textarea, select, [contenteditable] {
  caret-color: #D90D1E;
}

html {
  scrollbar-color: #D90D1E #0d0e12;
  scrollbar-width: auto;
}

::-webkit-scrollbar {
  width: 18px;
  height: 18px;
}

::-webkit-scrollbar-track {
  background-color: #0d0e12;
}

::-webkit-scrollbar-thumb {
  background-color: #D90D1E;
  border-radius: 9px;
  border: 3px solid #0d0e12;
  min-height: 40px;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #b50b19;
}

::-webkit-scrollbar-thumb:active {
  background-color: #960914;
}

::-webkit-scrollbar-corner {
  background-color: #0d0e12;
}


/* ==========================================================================
   RESPONSIVIDADE MOBILE: IMAGENS DOS CARDS COMPLETAS (SEM CORTE)
   object-fit: contain em mobile com fundo escuro limpo (#16181f)
   ========================================================================== */
@media (max-width: 991px) {
  #motos-destaque .card.vehicle .box-img,
  #vehicles .card.vehicle .box-img,
  #vehicles .box-img,
  .box-img {
    height: 195px !important;
    background-color: #16181f !important;
  }

  #motos-destaque .card.vehicle .box-img img,
  #vehicles .card.vehicle .box-img img,
  #vehicles .box-img img,
  .box-img img,
  .box-img .card-gallery-slide {
    object-fit: contain !important;
    background-color: #16181f !important;
  }

  .moto-result-img-box,
  .motos-results-grid.view-grid .moto-result-img-box {
    width: 100% !important;
    min-width: 100% !important;
    height: 220px !important;
    background-color: #16181f !important;
    position: relative !important;
  }

  .moto-result-img-box img,
  .moto-result-img-box .card-gallery-slide {
    object-fit: contain !important;
    background-color: #16181f !important;
  }
}

@media (max-width: 575px) {
  #motos-destaque .card.vehicle .box-img,
  .box-img {
    height: 175px !important;
  }

  .moto-result-img-box,
  .motos-results-grid.view-grid .moto-result-img-box {
    height: 200px !important;
  }
}

@media (max-width: 380px) {
  #motos-destaque .card.vehicle .box-img,
  .box-img {
    height: 160px !important;
  }

  .moto-result-img-box,
  .motos-results-grid.view-grid .moto-result-img-box {
    height: 185px !important;
  }
}
