/* RESET */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0b1d3a;
  color: #fff;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* NAVBAR */
.navbar {
  background-color: #0b1d3a;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.navbar-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  flex: 1;
}

.logo img {
  height: 50px;
}

.menu {
  flex: 2;
  text-align: center;
}

.menu ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 24px;
}

.menu-actions {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-input {
  position: absolute;
  right: 30px;
  width: 0;
  opacity: 0;
  padding: 6px 12px;
  border: none;
  border-radius: 20px;
  transition: width 0.3s ease, opacity 0.3s ease;
  background-color: #fff;
  color: #000;
  font-size: 14px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-container.active .search-input {
  width: 180px;
  opacity: 1;
  pointer-events: auto;
}

.search-input:focus {
  outline: none;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* SUBMENUS */

.chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: 4px;
}

.has-submenu {
  position: relative;
}


.has-submenu:hover .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Expande ligeiramente a área do pai para evitar perda de hover */
.has-submenu > a {
  display: inline-block;
  padding-bottom: 10px;
}

.has-submenu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  height: 20px; /* altura do buffer */
  width: 100%;
}


.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f9fafe;
  padding: 10px 0;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.has-submenu:hover .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu li {
  list-style: none;
}

.submenu li a {
  display: block;
  padding: 6px 16px;
  color: #fff;
  font-size: 13.5px;
  text-align: left;
  text-decoration: none;
  transition: background 0.2s;
  border-radius: 4px;
}


.submenu li a:hover {
  background-color: #e8ecf8;
}

/* Chevron animado ao hover */
.has-submenu:hover .chevron {
  transform: rotate(-135deg);
}
/* HERO */
.hero {
  position: relative;
  background: url('../images/background-header.png') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.overlay {
  position: relative; /* em vez de absolute */
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 60px 40px;
  gap: 40px;
}

.hero-left {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  padding-left: 80px;
  text-align: left;
}

.hero-left h1 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: 20px;
}

.hero-left p {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn {
  background-color: #0027b8;
  color: #fff;
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 600;
  display: inline-block;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #001f9c;
}

.hero-cards {
  position: absolute;
  right: 40px;
  top: calc(100% - 140px); /* ajusta mais para o fundo da secção */
  display: flex;
  gap: 20px;
  z-index: 3;
}


.cta-box {
  position: relative;
  width: 300px;
  height: 130px;
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #0027b8;
  transition: background 0.3s, transform 0.3s;
  text-decoration: none;
}

.cta-box:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.cta-box-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.cta-icon svg {
  width: 32px;
  height: 32px;
}

.cta-label {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: #0027b8;
  margin-bottom: auto;
}

.cta-arrow {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* Texto em baixo à esquerda + seta à direita */
.cta-text {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 16px 10px;
  height: 100%;
}

.cta-text p {
  font-weight: 600;
  font-size: 1rem;
}

.cta-arrow {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 12px;
}


.cta-box:hover {
  background: rgba(255, 255, 255, 0.30);
  transform: translateY(-5px);
}

.cta-box span {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.cta-box p {
  font-weight: 700;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .menu ul {
    display: none;
    flex-direction: column;
    background: #0b1d3a;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 999;
  }

  .menu ul.active {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }

  .submenu {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background: #0b1d3a;
    color: white;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
    padding: 0;
  }

  .has-submenu.active .submenu {
    display: block;
  }

  .has-submenu .chevron {
    margin-left: auto;
  }

  .has-submenu.active .chevron {
    transform: rotate(-135deg);
  }

  .overlay {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    text-align: center;
  }

  .hero {
    height: auto;
    padding-bottom: 60px;
  }

  .hero-left {
    padding: 0;
    text-align: center;
    max-width: 100%;
    width: 100%;
  }

  .hero-cards {
    position: static;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
  }

  .cta-box {
    width: 90%;
    max-width: 300px;
  }
}

    @media (min-width: 769px) {
  .has-submenu:hover .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(5px);
  }

  .has-submenu:hover .chevron {
    transform: rotate(-135deg);
  }
}

/* SEARCH */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-input {
  position: absolute;
  right: 30px;
  width: 0;
  opacity: 0;
  padding: 6px 12px;
  border: none;
  border-radius: 20px;
  transition: width 0.3s ease, opacity 0.3s ease;
  background-color: #fff;
  color: #000;
  font-size: 14px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-container.active .search-input {
  width: 180px;
  opacity: 1;
  pointer-events: auto;
}

.search-input:focus {
  outline: none;
}


/* RESPONSIVO */
@media (max-width: 768px) {
  .menu ul {
    display: none;
    flex-direction: column;
    background: #0b1d3a;
    position: absolute;
    top: 70px;
    color: #fff;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 999;
  }

  .menu ul.active {
    display: flex;
    color: #fff;
  }

  .menu-toggle {
    display: inline-block;
  }

  .submenu {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background: #0b1d3a;
    color: white;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
    padding: 0;
  }

  .has-submenu.active .submenu {
    display: block;
  }

  .has-submenu .chevron {
    margin-left: auto;
  }

  .has-submenu.active .chevron {
    transform: rotate(-135deg);
  }

  .hero {
    min-height: unset;
    height: auto;
    padding-bottom: 60px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .cta-boxes {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-box {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar-layout {
    flex-wrap: wrap;
    align-items: center;
  }

  .logo {
    flex: none;
    order: 1;
    margin-right: auto;
  }

  .menu {
    flex: 100%;
    order: 3;
    text-align: center;
    margin-top: 10px;
  }

  .menu-actions {
    flex: none;
    order: 2;
    margin-left: auto;
  }
}

.informacoes {
  padding: 60px 0;
  background-color: #fff;
  color: #0b1d3a;
}

.info-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.info-card {
  background: transparent;
  width: calc(33.333% - 20px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}


.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0027b8;
}

.info-card p {
  font-size: 0.9rem;
  color: #666;
}

.info-card a {
  font-size: 0.9rem;
  color: #0027b8;
  font-weight: 500;
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .info-grid {
    flex-direction: column;
    gap: 24px;
  }

  .info-card {
    width: 100%;
  }
}
.galeria {
  background: #fff;
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.galeria h2 {
  font-size: 35px;
  color: #0027b8;
  font-weight: 700;
  margin-bottom: 40px;
}

.galeria .divider {
  width: 100%;
  height: 1px;
  background-color: #ccc;
  margin-top: 10px; /* foi -20px antes, agora positivo */
  z-index: 0;
}


.carousel-wrapper {
  position: relative;
  margin-top: -10px; /* mais suave do que os -80px atuais */
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}


.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 640px;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 16px;
}

.carousel-item.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

@media (max-width: 768px) {
  .carousel {
    width: 90%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .carousel-btn {
    font-size: 20px;
    padding: 6px 10px;
  }
}

.stats-section {
    padding: 100px 20px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc 
  }

  .stats-container {
    display: flex;
    justify-content: center;
    gap: 140px; /* Aumentado para refletir o mockup */
    flex-wrap: wrap;
  }

  .stat-block {
    text-align: center;
    min-width: 180px;
  }

  .stat-block .value {
    font-size: 36px;
    font-weight: 700;
    color: #0027b8;
    margin-bottom: 10px;
  }

  .stat-block .label {
    font-size: 15px;
    color: #999;
  }

  @media (max-width: 768px) {
    .stats-container {
      flex-direction: column;
      align-items: center;
      gap: 40px;
    }

    .stat-block .value {
      font-size: 28px;
    }

    .stat-block .label {
      font-size: 13px;
    }
  }

/* ESTILO CONDICIONAL POR PÁGINA */

/* Página inicial - fundo escuro, texto branco */
.pagina-inicial .navbar {
  background-color: #041128;
}

.pagina-inicial .menu > li > a,
.pagina-inicial .search-icon,
.pagina-inicial .menu-toggle {
  color: #fff;
}

/* Página interna - fundo branco, texto azul escuro */
.pagina-interna .navbar {
  background-color: #fff;
}

.pagina-interna .menu > li > a,
.pagina-interna .search-icon,
.pagina-interna .menu-toggle {
  color: #041128;
}

/* Submenus — mesmas cores para todas as páginas (ex: branco sobre azul escuro) */
.menu li ul {
  background-color: #041128; /* fundo do submenu */
}

.menu li ul li a {
  color: #fff; /* texto branco no submenu */
  padding: 8px 16px;
  display: block;
}

.menu li ul li a:hover {
  background-color: #fff; /* hover mais escuro */
  color: #041128;
}

/* FUNDO DO BODY POR TIPO DE PÁGINA */
body.pagina-inicial {
  background-color: #041128;
  color: #fff;
}

body.pagina-interna {
  background-color: #fff;
  color: #041128;
}


