
/* ================== HEADER ESTÁTICO ESTILO FERRARI (ISOLADO) ================== */
#rb-static-header.rbf1-header {
  width: 100%;
  background: #000;
  color: #fff;
  font-family: inherit;
}

/* TOP BAR */
.rbf1-topbar {
  height: 64px;
  padding: 0 4vw;
  background: rgba(5, 5, 5, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 10;
}

.rbf1-logo img {
  height: 70px;
  width: auto;
  display: block;
}

/* NAV PRINCIPAL */
.rbf1-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.rbf1-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.rbf1-nav a {
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.rbf1-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #ff7a00; /* sua cor de destaque */
  transition: width 0.22s ease;
}

.rbf1-nav a:hover {
  color: #ffffff;
}

.rbf1-nav a:hover::after,
.rbf1-link-active::after {
  width: 100%;
}

/* LADO DIREITO (login, ícones, etc.) */
.rbf1-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rbf1-login {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
}

/* BOTÃO MOBILE */
.rbf1-mobile-toggle {
  display: none;
  margin-left: 0.5rem;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

/* SUB-BAR TIPO "SCUDERIA FERRARI HP" */
.rbf1-subbar {
  height: 52px;
  padding: 0 4vw;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);

  display: flex;
  align-items: center;
  gap: 1rem;
}

.rbf1-subbar-menu {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: none;
  color: #ffffff;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rbf1-subbar-title {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 500;
}

/* HERO IMAGEM */
.rbf1-hero {
  position: relative;
  width: 100%;
  height: 52vh;
  min-height: 260px;
  max-height: 480px;
  overflow: hidden;
  background: #000;
}

.rbf1-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Degradê por cima da imagem (embaixo mais escuro) */
.rbf1-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.0) 40%,
    rgba(0, 0, 0, 0.75) 100%
  );
  pointer-events: none;
}

/* BOTÃO SHARE NO CANTO DIREITO */
.rbf1-share {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
}

/* =============== RESPONSIVO =============== */
@media (max-width: 900px) {
  .rbf1-topbar {
    padding: 0 1.5rem;
  }

  .rbf1-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 0.9rem 1.5rem 1.1rem;
    background: rgba(0, 0, 0, 0.98);
    display: none;
    justify-content: flex-start;
  }

  .rbf1-nav ul {
    flex-direction: column;
    gap: 0.9rem;
  }

  .rbf1-nav.rbf1-open {
    display: flex;
  }

  .rbf1-right {
    display: none;
  }

  .rbf1-mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .rbf1-subbar {
    padding: 0 1.5rem;
  }

  .rbf1-hero {
    height: 38vh;
    min-height: 220px;
  }
}
/* escondido no desktop */
.mobile-only {
    display: none;
}

/* aparece apenas no mobile */
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .rb-mobile-logout {
        display: block;
        padding: 12px 16px;
        color: #ff8a00;
        font-weight: 600;
        font-size: 16px;
        text-decoration: none;
    }

    .rb-mobile-logout:hover {
        color: #ffa94c;
    }
}
/* Esconde no desktop – APENAS no painel */
.dashboard-mobile-only {
    display: none !important;
}

/* Mostra no mobile – APENAS no painel */
@media (max-width: 900px) {
    #rb-static-header .dashboard-mobile-only {
        display: block !important;
    }

    #rb-static-header .rb-mobile-login {
        display: block !important;
        padding: 0.6rem 0 !important;
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: #ff8a00;
        font-weight: 600;
        text-decoration: none;
    }

    #rb-static-header .rb-mobile-login:hover {
        color: #ffb86c;
    }
}
/* ===== FORCE: remove qualquer espaço acima do header ===== */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}

/* se algum tema/framework estiver empurrando a página */
body::before,
body::after {
  content: none !important;
  display: none !important;
}

/* força o header a encostar no topo */
#rb-static-header.rbf1-header {
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
}

/* remove qualquer margem colapsada vindo de elementos internos */
#rb-static-header.rbf1-header,
#rb-static-header.rbf1-header * {
  box-sizing: border-box;
}

/* se existir algum wrapper acima do header (muito comum em temas) */
#wpadminbar,
.wp-site-blocks,
.site,
.site-header,
header,
#page,
#content,
#main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
