/* CONFIGURAÇÕES GERAIS E RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden; /* CRÍTICO: Impede que o site "dance" para os lados no celular */
  background-color: #021c3e;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Corrigido de flex para block */
}

@font-face {
  font-family: "Trench";
  src: url("trench/trench100.ttf");
}

/* TIPOGRAFIA RESPONSIVA */
h1 {
  font-family: "Trench", sans-serif;
  text-align: center;
  font-size: clamp(32px, 8vw, 60px); /* Ajusta o tamanho entre 32px e 60px dependendo da tela */
  line-height: 1.1;
  margin-bottom: 15px;
  word-wrap: break-word;
}

h1 .programacao, h1 .fullstack {
  font-size: clamp(20px, 5vw, 36px);
  display: block;
  margin-top: 5px;
}

h2 {
  font-size: clamp(24px, 6vw, 42px);
  font-weight: 400;
  text-align: center;
}

h3 {
  font-size: 22px;
}

.realce {
  color: #15b5ea;
}

/* HEADER */
header {
    padding: 20px;
    background-color: rgba(0,0,0,0.2);
}

header ul {
    list-style: none;
    text-align: center;
}

header ul a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-family: Verdana, sans-serif;
  transition: 0.3s;
}

/* SEÇÕES */
.secao {
  padding: 80px 0;
}

.secao--hero {
  background-image: linear-gradient(rgba(2, 28, 62, 0.7), rgba(2, 28, 62, 0.7)), url("img-divulga/livros_estante-azul.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* CARD */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #042a5c;
  box-shadow: 0 0 25px 5px rgba(255, 255, 255, 0.2);
  padding: 40px 30px;
  border-radius: 25px;
  width: 100%;
  max-width: 600px;
  gap: 25px;
}

.subtitulo {
  font-size: 20px;
  text-align: center;
  line-height: 1.4;
}

.lista-beneficios {
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: none;
  width: 100%;
}

.lista-beneficios li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
}

.lista-beneficios li img {
  width: 20px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* DATA E BOTÃO */
.data {
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 10px 0px #00a1ff;
  border-radius: 100px;
  padding: 10px 25px;
  font-size: 18px;
}

button {
  background-color: #214177;
  color: white;
  padding: 15px 40px;
  border-radius: 100px;
  border: 3px solid #ADD8E6;
  border-right-width: 6px;
  border-bottom-width: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  transition: 0.2s;
  width: 100%;
}

button:active {
  border-width: 3px;
  transform: translateY(2px);
}

/* IMAGEM RIBEIRO */
.ribeiro {
  max-width: 400px;
  width: 100%;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

/* PASSOS / MÓDULOS */
.passos {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
}

.passo {
  background-color: #141213;
  padding: 30px;
  border-radius: 15px;
  display: flex;
  gap: 25px;
  align-items: center;
  border: 1px solid #222;
}

.passo__icone {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background-color: #141213;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 0 10px 0px #00a1ff;
  border: 2px solid #262427;
  display: flex;
  justify-content: center;
  align-items: center;
}

.passo__cabecalho {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 280px;
}

.passo__barra {
  width: 3px;
  background-color: #333;
  align-self: stretch;
}

.passo__conteudo p {
  text-align: justify;
  line-height: 1.6;
  font-size: 15px;
}

/* DISCLAIMER E FOOTER */
.secao--disclaimer {
  background-color: rgba(0,0,0,0.1);
  padding: 40px 20px;
}

.disclaimer {
  font-size: 14px;
  opacity: 0.8;
  text-align: center;
}

.footer {
    padding: 60px 20px;
    background-color: #011126;
    text-align: center;
}

.footer a { color: #15b5ea; text-decoration: none; }
.footer p { margin-bottom: 10px; font-size: 14px; }

/* MEDIA QUERIES PARA AJUSTES FINOS */

@media (max-width: 991px) {
    .passo {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .passo__cabecalho {
        min-width: 100%;
    }

    .passo__barra {
        width: 100%;
        height: 2px;
    }

    .secao {
        padding: 50px 0;
    }
    
}

@media (max-width: 576px) {
    .card {
        padding: 30px 20px;
    }

    .data {
        padding: 10px 15px;
        font-size: 15px;
    }

    button {
        font-size: 18px;
        padding: 12px 20px;
    }

    .ribeiro {
        max-width: 280px;
    }
}