/* Padrão visual global baseado em historia.html */

body {
  margin: 0;
  padding: 0;
}

.header.w-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
  height: auto;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-logo {
  max-height: 80px;
  width: auto;
  display: block;
}

.nav-logo,
.site-logo,
.menu-link,
.dropdown-trigger,
.primary-button {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.footer a {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.menu-item-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menu-items {
  display: flex;
  gap: 30px;
  align-items: center;
}

.menu-link {
  color: var(--primary-color) !important;
  font-weight: 500;
  text-decoration: none;
  font-size: 20px;
  padding: 10px 0;
}

.nav-logo:hover,
.nav-logo:active,
.nav-logo:focus,
.w-nav-brand:hover,
.w-nav-brand:active,
.w-nav-brand:focus,
.menu-link:hover,
.menu-link:active,
.menu-link:focus,
.dropdown-trigger:hover,
.dropdown-trigger:active,
.dropdown-trigger:focus,
.dropdown-menu-wrapper > a:hover,
.dropdown-menu-wrapper > a:active,
.dropdown-menu-wrapper > a:focus {
  background-color: transparent !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.menu-link:focus-visible,
.dropdown-trigger:focus-visible,
.dropdown-link:focus-visible,
.footer a:focus-visible,
.footer a:hover,
.footer a:active,
.footer a:focus {
  background-color: transparent !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.nav-button-wrapper {
  margin-left: 20px;
}

.primary-button {
  background-color: var(--primary-color) !important;
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: background 0.3s;
}

.primary-button:hover {
  background-color: var(--secondary-color) !important;
}

.dropdown-menu-wrapper {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 59, 112, 0.08);
  border-radius: 8px;
  min-width: 180px;
  z-index: 100;
  padding: 12px 0;
  border: 1px solid #e5e5e5;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 10px 24px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.dropdown-link:hover {
  background: #f5f5f5;
  color: var(--secondary-color);
}

.page-banner {
  background: linear-gradient(135deg, #003B70 0%, #004b85 100%);
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

.page-banner h1 {
  color: #e74c3c;
}

.footer {
  background: #f5f5f5;
  color: #003B70;
  padding: 30px 20px 20px 20px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.footer-logo {
  max-width: 80px;
  margin-bottom: 15px;
}

.footer-info p {
  color: #003B70;
  margin: 5px 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #d0d0d0;
  margin-top: 15px;
}

.footer-bottom p {
  color: #003B70;
  font-size: 0.85rem;
  margin: 0;
}

.nav-trigger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
}

.nav-trigger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #003B70;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nav-trigger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.nav-trigger.active span:nth-child(2) {
  opacity: 0;
}

.nav-trigger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 1024px) {
  .nav-trigger {
    display: flex;
  }

  .menu-wrapper {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none !important;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 1000;
  }

  .menu-wrapper.open {
    display: flex !important;
  }

  .menu-item-wrapper {
    flex: 1;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .menu-items {
    flex-direction: column;
    gap: 0;
    width: 100%;
    align-items: flex-start;
  }

  .menu-link {
    width: 100%;
    padding: 18px 25px !important;
    font-size: 18px !important;
    border-bottom: 1px solid #f0f0f0;
    display: block;
  }

  .dropdown-menu-wrapper {
    width: 100%;
  }

  .dropdown-trigger {
    width: 100%;
    text-align: left;
  }

  .dropdown-menu {
    position: static;
    background: #f9f9f9;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: 100%;
    display: none;
    padding: 0;
  }

  .dropdown-menu.show {
    display: block;
  }

  .dropdown-link {
    padding: 15px 25px 15px 45px;
    font-size: 16px;
    border-bottom: 1px solid #e5e5e5;
  }

  .nav-button-wrapper {
    margin-left: 0;
    width: 100%;
    padding: 15px 25px;
    border-top: 1px solid #f0f0f0;
  }

  .nav-button-wrapper .primary-button {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }

  .header.w-nav {
    padding: 0;
  }

  .nav-wrapper {
    padding: 15px 20px;
  }

  .site-logo {
    max-height: 60px;
  }
}

@media (max-width: 768px) {
  .menu-link {
    font-size: 17px !important;
    padding: 16px 20px !important;
  }

  .dropdown-link {
    padding: 12px 20px 12px 40px;
    font-size: 15px;
  }

  .nav-button-wrapper {
    padding: 12px 20px;
  }

  .nav-wrapper {
    padding: 12px 15px;
  }

  .site-logo {
    max-height: 50px;
  }
}

@media (max-width: 480px) {
  .menu-link {
    font-size: 16px !important;
    padding: 14px 15px !important;
  }

  .dropdown-link {
    padding: 12px 15px 12px 35px;
    font-size: 14px;
  }

  .nav-button-wrapper {
    padding: 10px 15px;
  }

  .nav-wrapper {
    padding: 10px 12px;
  }

  .site-logo {
    max-height: 45px;
  }

  .nav-trigger span {
    width: 22px;
    height: 2.5px;
  }

  .menu-wrapper {
    top: 70px;
  }
}