/* css/header.shtml */

/* ===== SEÇÃO HERO ===== */
.hero-section {
  position: relative;
  margin-bottom: 0 !important;
  width: 100%;
}

.image-container {
  margin: 0 auto;
  position: relative;
  background-image: url("../img/hero-banner.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 600px;
  display: flex;
  aspect-ratio: 1440 / 540;
  align-items: flex-start;
  padding: 20px;
  width: 100%;
}

.hero-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.hero-topmenu {
  display: flex; 
  justify-content: space-between; 
  margin-bottom: 20px;
}

.hero-text {
  max-width: 700px;
  color: white;
  text-align: left;
}

.corporate-logo {
  margin-bottom: 25px;
  display: block;
}

.custom-title {
  font-size: 2.5rem;
  line-height: 1.2;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-divider {
  height: 4px;
  width: 80px;
  background: #cc092f;
  margin: 20px 0;
  border-radius: 2px;
}

.custom-subtitle {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.overlay-button {
  background-color: white;
  color: #193f4d;
  border: none;
  padding: 15px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: inline-block;

  position: relative;
  z-index: 10;
}

.overlay-button:hover {
  background-color: #f0f1f5;
  color: #cc092f;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ===== HEADER ===== */
.main-header {
  position: absolute;
  top: 8%;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-top {
  display: none;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.header-logo .logo {
  /* height: 50px; */
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-item p {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-size: 12px;
}

/* ===== UTILITÁRIOS ===== */
.spacing-before-image {
  height: 0px !important;
}

/* Esconder elementos mobile no desktop */
.mobile-nav,
.mobile-menu {
  display: none;
}

.menu-toggle {
  display: none;
}

/* ===== SUBMENU DROPDOWN ===== */
.nav-item.dropdown {
  position: relative;
  cursor: pointer;
}

.dropdown-toggle {
  display: block;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dropdown-toggle p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.9;
  line-height: 1.2;
}

.dropdown-toggle:hover {
  color: #e0e0e0;
}

/* Menu dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 280px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  margin-top: 15px;
  border-bottom: 3px solid rgb(204, 9, 47);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: white;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 10px;
}

/* Itens do dropdown */
.dropdown-item {
  display: block;
  padding: 10px 25px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: #e0e0e0;
}

.dropdown-title {
  display: block;
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  color: #2e2e2e;
}

.nav-item.dropdown {
  padding: 10px 0;
}

.search-icon {
  width: 16px;
  height: 16px;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  margin-bottom: 15%;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  color: white;
}

.breadcrumbs li {
  display: inline;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
  color: white;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: #6c757d;
  font-weight: bold;
}

@media (max-width: 768px) {
  /* ===== HEADER MOBILE ===== */
  .main-header {
    position: relative;
    background: #002a3a;
  }

  .header-top {
    background-image: linear-gradient(90deg, #002a3a 0%, #335973 100%);
    padding: 15px 0;
    display: block !important;
  }

  .header-container {
    padding: 0 20px;
  }

  /* Esconder menu desktop no mobile */
  .desktop-nav {
    display: none;
  }

  /* Mostrar menu mobile */
  .mobile-nav {
    display: flex;
    gap: 15px;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
  }

  .menu-icon,
  .search-icon {
    width: 30px;
    height: 30px;
    display: block; /* Garante que a imagem apareça */
  }

  /* Botão de busca no mobile */
  .mobile-search {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
  }

  /* Menu mobile expandido */
  .mobile-menu {
    display: none;
    flex-direction: column;
    background: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 20px;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-nav-item:hover {
    background-color: #f5f5f5;
  }

  .mobile-nav-item {
    padding: 18px 0;
    color: #333;
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    text-align: left;
    transition: background-color 0.2s;
  }

  .mobile-nav-item:last-child {
    border-bottom: none;
  }

  /* Submenu mobile */
  .mobile-submenu {
    display: none;
    flex-direction: column;
    background: #f9f9f9;
    padding-left: 20px;
  }

  .mobile-submenu.active {
    display: flex;
  }

  .mobile-submenu-item {
    padding: 14px 20px;
    color: #666;
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px solid #e8e8e8;
    font-size: 15px;
  }

  .mobile-submenu-item:last-child {
    border-bottom: none;
  }

  .has-submenu {
    position: relative;
  }

  .has-submenu::after {
    content: "›";
    position: absolute;
    right: 20px;
    font-size: 18px;
    color: #999;
  }

  .back-button {
    background: #f0f0f0;
    color: #333;
    font-weight: 500;
    border-bottom: 2px solid #e0e0e0;
  }

  /* ===== SEÇÃO HERO ===== */
  .hero-content {
    padding: 15px 20px;
  }

  .hero-topmenu {
    display: none !important;
  }

  .main-header {
    top: 0;
  }

  .custom-title {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-top: 10px;
    text-align: center;
  }

  .custom-subtitle {
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
  }

  /* Breadcrumbs no mobile */
  .breadcrumbs ol {
    font-size: 16px;
    justify-content: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }

  .hero-section {
    position: relative;
  }

  .image-container {
    display: flex;
    flex-direction: column;
    background-image: url("../img/hero-banner-mobile.jpg");
    aspect-ratio: 400 / 640;
    padding: 0;
  }

  .hero-text {
    position: relative;
    top: auto;
    left: auto;
    text-align: center;
  }

  .breadcrumbs {
    margin-bottom: 70%;
  }

  .breadcrumbs a {
    color: #ffffff;
  }

  .breadcrumbs li:not(:last-child)::after {
    color: #cccccc;
  }

  .hero-divider {
    margin: 10px auto;
    background: #ffffff;
  }

  .overlay-button {
    margin: 0 auto;
    display: block;
  }
}
