
section {
  scroll-margin-top: 4.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #283960;
  padding-top: 4.5rem;
  overflow-x: hidden;
  background-color: #283960;

}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

li{
  font-weight: bold;
}

/* === NAVBAR === */
.navbar-mainbg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #021c3a;
  padding: 1rem 2rem;
  z-index: 1000;
}

.navbar-mainbg .navbar-brand {
  padding: 0;
}

.navbar-mainbg .nav-logo {
  display: block;
  width: 150px;
  height: auto;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

#navbarContent .navbar-nav {
  display: flex;
  margin: 0 auto;
  padding: 0;
}

#navbarContent .navbar-nav li {
  list-style: none;
}

#navbarContent .navbar-nav .nav-link {
  color: rgba(255,255,255,0.7);
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

#navbarContent .navbar-nav .nav-link:hover,
#navbarContent .navbar-nav .active .nav-link {
  color: #3AB7FF;
}

.hori-selector {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3AB7FF;
  transition: all 0.3s ease;
  z-index: 1;
}

@media (max-width: 991px) {
  #navbarContent .navbar-nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #021c3a;
  }
  .hori-selector {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar-mainbg .nav-logo {
    width: 80px;
  }
}

@media (max-width: 480px) {
  .navbar-mainbg .nav-logo {
    width: 60px;
  }
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible; 
  padding-bottom: 2.5rem;
}

.hero.in-view {
  opacity: 1;
  transform: translateY(0);
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s;
}

.play-button::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}

@media (min-width: 1024px) {
  .hero {
    max-height: 80vh;
  }
}

/* Nota ICAO Section */
.section-note {
  background-color: #283960;
  color: #fff;
  padding: 80px 0;
  overflow: visible;
  padding: 80px 0;
}

.note-content {
  display: flex;
  align-items: center;
  gap: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.note-content.in-view {
  opacity: 1;
  transform: translateY(0);
}

.note-img {
  width: 400px;
  max-width: 90%;
  height: auto;
}

.note-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #3AB7FF;
  text-transform: uppercase;
}

.note-text p {
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 850px) {
  .section-note .note-content {
    flex-direction: column-reverse;
    text-align: center;
  }
    .section-note {
    padding-top: 2rem;    
    padding-bottom: 1rem;  /
  }
}

@media (min-width: 1024px) {
  .section-note {
    padding-top: 18rem;
    padding-bottom: 80px; 
  }
}

/* O Que Você Vai Aprender Section */
.section-learn {
  position: relative;
  background-color: #f4f7fa;
  color: #283960;
  padding: 80px 0 100px;
  overflow: visible;
}

.learn-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.learn-content.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-learn .container {
  position: relative;
  text-align: center;
}

.section-learn h2 {
  font-size: 32px;
  margin-bottom: 40px;
  z-index: 2;
  position: relative;
}

.section-learn .learn-img {
  position: absolute;
  top: -60px;
  left: -25%;
  transform: translateX(-160%);
  width: 500px;
  height: auto;
  object-fit: contain;
  z-index: 1;
}

.section-learn ul {
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 2;
}

.section-learn ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.learn-content.in-view ul li {
  opacity: 1;
  transform: translateY(0);
}

.section-learn ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: #3AB7FF;
  font-size: 24px;
}

@media (max-width: 800px) {
  .section-learn {
    padding: 80px 0 60px;
  }
  .section-learn .learn-img {
    position: relative;
    top: -90px;
    left: 5%;
    transform: translateX(-50%);
    width: 70%;
    margin-bottom: 20px;
  }
  .section-learn ul {
    display: block;
    margin-top: -20vh;
  }
}

/* Quem Preparou o Material Section */
.section-prep {
  background-color: #283960;
  color: #fff;
  max-height: 60vh;
  overflow: visible;
  position: relative;
}

.prep-content {
  height: 60vh;
  display: flex;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.prep-content.in-view {
  opacity: 1;
  transform: translateY(0);
}

.prep-flex {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.prep-text {
  flex: 1;
}

.prep-text h2 {
  color: #3AB7FF;
}

.prep-subtitle {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.prep-content.in-view .prep-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.prep-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-self: flex-end;
}

.prep-img {
  height: 80vh;
  width: auto;
  object-fit: cover;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.prep-content.in-view .prep-img {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .section-prep {
    max-height: none;
  }
  .section-prep .prep-content {
    flex-direction: column;
    height: auto;
  }
  .section-prep .prep-image {
    align-self: center;
    margin-top: 1rem;
  }
  .section-prep .prep-img {
    height: auto;
    max-width: 80%;
  }
}

/* Pilotos Section */
.section-pilots {
  background-color: #f4f7fa;
  color: #283960;
  padding: 80px 0;
}

.pilots-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.pilots-content.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-pilots h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.pilots-flex {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.pilot {
  flex: 1;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.pilots-content.in-view .pilot {
  opacity: 1;
  transform: translateY(0);
}

.pilots-content.in-view .pilot:nth-child(1) {
  transition-delay: 0.1s;
}

.pilots-content.in-view .pilot:nth-child(2) {
  transition-delay: 0.2s;
}

.pilots-content.in-view .pilot:nth-child(3) {
  transition-delay: 0.3s;
}

.pilot img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: solid 3px #3AB7FF;
}

.pilot h3 {
  margin-top: 15px;
  font-size: 18px;
  text-transform: uppercase;
}

.pilot p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.section-pilots .pilot:nth-child(1) img {
  object-fit: cover;
  object-position: center top;
}

/* ========== Oferta Exclusiva Section ========== */
.section-offer {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  color: #fff;
}

/* fundo e overlay */
.offer-bg-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.offer-bg-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.offer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* container interno */
.offer-content {
  position: relative;
  z-index: 2;
  background-color: rgba(2, 14, 44, 0.9);
  border-radius: 3vh;
  max-width: 500px;
  margin: 0 auto;
  padding: 60px 30px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.offer-content.in-view {
  opacity: 1;
  transform: translateY(0);
}

.offer-content h2 {
  margin-bottom: 30px;
  font-size: 32px;
  text-transform: uppercase;
  color: #3AB7FF;
}

/* lista de bônus */
.offer-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  font-size: 18px;
}
.offer-list li {
  margin-bottom: 10px;
  color: #fff;
}
.offer-list li.bonus {
  font-weight: 600;
  color: #3AB7FF;
}

/* preço em linha: 3x de R$ 399 sem juros */
.offer-price {
  display: flex;
  align-items: baseline;   
  justify-content: center;
  gap: 0.8rem;
  font-weight: bold;
  margin: 1.5rem 0;
}

/* parte “3x de R$ 399” */
.offer-price__installment {
  display: flex;
  align-items: baseline; 
  gap: 0.3rem;
}
.offer-price__installment .installment {
  font-size: 1rem;
  color: #fff;
}
.offer-price__installment .currency {
  font-size: 1.2rem;
  color: #fff;
}
.offer-price__installment .price {
  font-size: 4.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

/* nota “sem juros” ao lado */
.offer-price__note {
  font-size: 1rem;
  color: #fff;
}

/* botão de ação */
.btn-offer {
  display: inline-block;
  padding: 15px 40px;
  background-color: #3AB7FF;
  color: #283960;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 2vh;
  margin-top: 10px;
  transition: background-color 0.3s;
}
.btn-offer:hover {
  background-color: #2a9bdb;
}


/* ========== Modal de Vídeo ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  position: relative;
  background: transparent;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  /* limitações relativas à viewport */
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
}

/* faz o vídeo preencher 100% do container */
.modal-content video {
  display: block;
  width: 100%;
  height: auto; 
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  padding: 0;
}

@media (min-width: 800px) {
  .modal-content {
    max-width: 80vw;
    max-height: 80vh;
  }
  .modal-content video {
    max-height: 80vh;
  }
}

/* Footer */
.site-footer {
  background-color: #021c3a;
  color: #fff;
  padding-top: 40px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.site-footer.in-view {
  opacity: 1;
  transform: translateY(0);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo img {
  max-height: 60px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-item i {
  font-size: 1.2rem;
  color: #3AB7FF;
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: #3AB7FF;
}

.footer-bottom {
  text-align: center;
  padding: 15px 0;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Botão feedback */
.btn-feedback {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #3AB7FF;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-feedback:hover {
  background-color: #2a9bdb;
}

/* Responsivo */
@media (max-width: 800px) {
  .note-content,
  .learn-flex,
  .prep-flex,
  .pilots-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .pilots-flex .pilot {
    margin-bottom: 30px;
  }
  
  .site-footer .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .site-footer .footer-contact {
    justify-content: center;
  }
}

@media (min-width: 570px) and (max-width: 800px) {
  .section-note .note-img {
    width: 300px;
    max-width: 80%;
  }

  .section-learn .learn-img {
    width: 50%;
    top: -100px;
    left: 5%;
    transform: translateX(-50%);
  }

  .section-prep .prep-img {
    height: 40vh;
    max-width: 100%;
  }

  .pilot img {
    width: 180px;
    height: 180px;
  }
  
  .pilot h3 {
    font-size: 20px;
  }
  
  .pilot p {
    font-size: 16px;
    line-height: 1.4;
  }
  
  .btn-feedback {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* Animações Gerais */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Transições para elementos filhos */
.learn-flex > *,
.prep-flex > *,
.pilots-flex > *,
.offer-list > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-up.in-view .learn-flex > *,
.animate-up.in-view .prep-flex > *,
.animate-up.in-view .pilots-flex > *,
.animate-up.in-view .offer-list > * {
  opacity: 1;
  transform: translateY(0);
}

/* Delay sequencial para itens de lista */
.learn-flex ul li {
  transition-delay: calc(var(--i) * 0.1s);
}

.developer-credit {
  text-align: center;
  margin-top: 1rem;
  opacity: 0.6;
  font-size: 0.8rem;
}
.developer-credit a {
  color: #fff;          
  text-decoration: underline;
}
.developer-credit a:hover {
  opacity: 1;
}

.learn-list {
  text-align: left;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 0;
}

.learn-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  list-style: none;
}

.learn-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #3AB7FF;
  font-size: 24px;
}

.learn-list li span {
  display: inline-block;
  width: 100%;
}