.navbar {
  min-height: var(--header-height);
}

.navbar .container-fluid {
  gap: 1rem;
}

.navbar-nav {
  align-items: center;
  gap: 0.15rem;
}

.navbar-nav .nav-link {
  position: relative;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem !important;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar-nav .nav-link.active {
  color: var(--vermelho-effex) !important;
  background-color: rgba(198, 40, 40, 0.08);
}

.navbar-nav .nav-link:hover {
  background-color: rgba(198, 40, 40, 0.08);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  bottom: 0.3rem;
  width: 0;
  height: 2px;
  background-color: var(--vermelho-effex);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: calc(100% - 1.4rem);
}

.nav-links a {
  position: relative;
  text-decoration: none;
  transition: 0.2s ease;
}

.icon-dropdown {
  font-size: 0.8rem;
}

.logo img {
  height: 54px;
  width: auto;
  justify-content: center;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.navbar-toggler {
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-color: rgba(198, 40, 40, 0.28);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(198, 40, 40, 0.18);
}

.navbar-toggler-icon {
  width: 1.35rem;
  height: 1.35rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c62828' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.conteudo {
  min-height: 90vh;
}

.widget-usuario {
  --user-widget-size: 35px;
  width: var(--user-widget-size) !important;
  height: var(--user-widget-size) !important;
  padding: 0 !important;
  color: var(--branco) !important;
  background-color: var(--cinza2) !important;
  border-color: var(--cinza2);
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
}

.widget-usuario:hover {
  color: var(--branco) !important;
  background-color: var(--vermelho-effex) !important;
  border-color: var(--vermelho-effex) !important;
}

.widget-usuario .fa-user {
  font-size: 1.05rem;
  line-height: 1;
}

.offcanvas .widget-usuario {
  margin: 0 auto;
}

.dropdown-menu {
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  padding: 0.45rem;
}

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
}

.dropdown-item:hover {
  color: var(--vermelho-effex);
  background-color: rgba(198, 40, 40, 0.08);
}

.bg-parallax {
  min-height: 260px;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}

.bg-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.28));
  z-index: 0;
}

.bg-parallax > .container {
  position: relative;
  z-index: 1;
}

.resource-group {
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.resource-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.resource-item {
  min-height: 68px;
  border-left: 0 !important;
  border-right: 0 !important;
}

.resource-item:first-child {
  border-top: 0 !important;
}

.resource-actions {
  gap: 0.5rem;
}

.footer {
  background-color: var(--branco-bg2);
}

.footer .logo img {
  height: 46px;
}

.footer p,
.footer .nav-link {
  line-height: 1.55;
}

.footer-icon {
  font-size: 1.6rem;
  color: var(--vermelho-effex);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-bottom: 0;
}

.footer-icon:hover {
  transform: scale(1.1);
}

.nav-footer:hover {
  color: var(--vermelho-effex) !important;
}

@media (hover: hover) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
  }

  .dropdown-menu .dropend {
    position: relative;
  }

  .dropdown-menu .dropend:hover > .dropdown-menu {
    display: block;
  }

  .dropdown-menu .dropend > .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0;
    margin-top: 0;
    transform: translateX(-1px);
  }
}

@media (max-width: 991.98px) {
  .navbar {
    min-height: 68px;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .logo img {
    height: 42px;
  }

  .offcanvas {
    width: min(88vw, 340px) !important;
    max-width: 340px;
  }

  .offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .offcanvas .navbar-nav {
    align-items: stretch;
    gap: 0.25rem;
  }

  .offcanvas .nav-link {
    min-height: 46px;
    display: flex;
    align-items: center;
  }

  .dropdown-menu .dropend > .dropdown-menu {
    position: static;
    transform: none;
    margin-left: 0;
  }

  .dropdown-menu .dropend > .dropdown-menu {
    display: none;
  }

  .dropdown-menu .dropend.show > .dropdown-menu {
    display: block;
  }

  .bg-parallax {
    min-height: 210px;
    background-attachment: scroll !important;
  }

  .footer .row,
  .footer .direitos-e-redes {
    gap: 1rem;
  }

  .footer .direitos-e-redes {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .resource-actions {
    align-items: stretch !important;
    flex-direction: column;
  }

  .resource-actions .btn {
    width: 100%;
    margin-right: 0 !important;
  }
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--vermelho-effex);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 6px var(--shadow2);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top:hover {
  background-color: var(--vermelho-bg2);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 575.98px) {
  .widget-usuario {
    --user-widget-size: 40px;
  }

  .scroll-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .footer-body .row {
    row-gap: 1.25rem;
  }

  .footer form {
    flex-direction: column;
    gap: 0.6rem;
  }

  .footer form .form-control,
  .footer form .btn {
    width: 100%;
  }
}
