/* ===== RESET ===== */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Quicksand', sans-serif;
  scroll-behavior: smooth;
}

/* ===== NAVBAR ===== */
.navbar .nav-link {
  color: rgb(31, 78, 177) !important;
  font-weight: 600;
  position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: rgb(20, 55, 130) !important;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #0d6efd;
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

.navbar .nav-link:hover::after {
  width: 100%;
}

/* ===== VIDEO BANNER ===== */
.video-banner {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  overflow: hidden;
}

.video-banner video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .video-banner {
    height: 60vh;
  }

  .banner-content h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 991px) {
  .social-icons {
    display: none !important;
  }
}

/* HISTÓRIA - logo */
.history-logo img {
  max-width: 100%;   /* não ultrapassa o container */
  height: auto;      /* mantém proporção */
  border-radius: 8px; /* opcional: arredonda cantos suavemente */
  display: block;
  margin: 0 auto;    /* centraliza horizontalmente se necessário */
}

@media (min-width: 992px) {
  .history-logo img {
    max-width: 420px; /* largura máxima na tela grande */
  }
}

/* ===== SOCIAL ===== */
.social-icons a {
  color: #333;
  font-size: 18px;
  margin-left: 15px;
  transition: color 0.3s ease;
  text-decoration: none;
}

/* ===== CARDS ===== */
.card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;

  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-img-custom {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ===== ANIMAÇÃO FADE-UP PARA CARDS ===== */
.card-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.card-animate.show {
  opacity: 1;
  transform: translateY(0);
}


/* ===== MODAL (LIMPO E CORRETO) ===== */
.modal-header {
  position: relative;
  /*display: flex;*/
  justify-content: center;
  align-items: center;
  border-bottom: none;
  padding-bottom: 0;
}

.modal-title {
  
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-weight: 600;
  font-size: 1.5rem;
}
.btn-custom {
  width: auto; /* 🔹 garante tamanho natural */
  padding: 10px 20px; /* mantém espaçamento confortável */
  border-radius: 50px; /* arredondado */
}

.modal-header .btn-close {
  position: absolute;
  right: 15px;
}

.modal-title img {
  width: 40px;
  height: auto;
  border-radius: 5px;
}


/* Newsletter */

.newsletter-card-premium {
  display: flex;
  align-items: center;      /* alinha verticalmente */
  justify-content: center;  /* centra horizontalmente */

  gap: 10px;                /* espaço entre ícone e texto */

  padding: 15px;
  border-radius: 14px;
  background: #f8f9fa;

  text-decoration: none;
  color: #333;
  font-weight: 500;

  transition: all 0.3s ease;
}

.newsletter-card-premium .icon {
  font-size: 20px;
  margin-bottom: 0; /* 🔥 remove espaço extra */
}

.newsletter-card-premium span {
  font-size: 0.95rem;
}

.modal-content {
  overflow: hidden; /* evita bugs de bordas */
}

/* --------------------- */

/* ===== FADE-UP PARA ITENS DO MODAL ===== */
.fade-item {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.5s ease forwards;
}

.fade-item.delay-1 { animation-delay: 0.1s; }
.fade-item.delay-2 { animation-delay: 0.2s; }
.fade-item.delay-3 { animation-delay: 0.3s; }
.fade-item.delay-4 { animation-delay: 0.4s; }
.fade-item.delay-5 { animation-delay: 0.5s; }
.fade-item.delay-6 { animation-delay: 0.6s; }
.fade-item.delay-7 { animation-delay: 0.7s; }
.fade-item.delay-8 { animation-delay: 0.8s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .modal-title {
    font-size: 1.2rem;
  }

  .modal-title img {
    width: 30px;
  }
}

/* ===== ANIMAÇÃO SCROLL ===== */
.card-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.card-animate.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ===== BOTÃO ===== */
.btn-custom {
  border-radius: 30px;
  padding: 8px 25px;
  font-weight: 600;
  background: linear-gradient(135deg, #0d6efd, #084298);
  border: none;
  color: white;
}

.btn-custom:hover {
  opacity: 0.9;
}

/* ===== MAPS ===== */
.maps-section {
  background-color: #f8f9fa;
}

.map-box {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.map-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}




/* ===== CONTACTOS ===== */
.contact-info i {
  color: #0d6efd;
}

.contact-info a {
  color: #0d6efd;
  text-decoration: none;
}

.contact-info a:hover {
  color: #0056b3;
}

/* ===== STUDY ===== */
.study-section {
  background-color: #f3f4f6;
}

.study-img {
  max-width: 320px;
  width: 100%;
  border-radius: 8px;
}

@media (min-width: 992px) {
  .study-text {
    padding-left: 60px;
  }
}

.contact-form-section {
  background-color: #f8f9fa; /* fundo claro */
}

.contact-form-section h2 {
  font-size: 2rem;
}

#contactForm .form-control {
  border-radius: 0.5rem;
}

#contactForm .btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  transition: all 0.3s ease;
}

#contactForm .btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* ===== LISTAS ===== */
.glass-box ul {
  padding-left: 18px;
}

/* ===== FOOTER ===== */
.footer {
  background: #084298;
  color: #ffffff;
  font-size: 14px;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 20px;
  padding-top: 15px;
  font-size: 13px;
  text-align: center;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background-color: #ffffff;
}

.newsletter-card {
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.newsletter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.newsletter-card a {
  color: #0d6efd;
  text-decoration: none;
}

.newsletter-card a:hover {
  color: #0056b3;
}