/* Reset e base */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  font-family: sans-serif;
  background: linear-gradient(to bottom, #ffffff, #011f3b);
}

/* Seção com os blocos alternados */
.alternating-section {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 40px;
  box-sizing: border-box;
  padding-top: 150px;
}

/* Bloco padrão: imagem à esquerda, texto à direita */
.block {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.block.reverse {
  flex-direction: row-reverse;
}

/* Estilo da imagem do bloco */
.block-image {
  flex: 1 1 45%;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.block-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  animation: pulseShadow 0.6s ease;
}

/* Estilo do texto do bloco */
.block-text {
  flex: 1 1 45%;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  scroll-margin-top: 100px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.block-text:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: liftUp 0.4s ease;
}

.block-text h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #000;
  text-align: center;
}

.block-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  text-align: justify;
}

/* Botão padrão (se desejar usar em .block-text, por exemplo) */
.block-text .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #0056b3;
  color: white;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.block-text .btn:hover {
  background-color: #003f8a;
  transform: scale(1.05);
}

/* Ícones animados (opcional) */
.icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.icon:hover {
  transform: translateY(-4px) rotate(-2deg);
}

/* Animações com keyframes */
@keyframes pulseShadow {
  0% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  100% {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  }
}

@keyframes liftUp {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-6px);
  }
}

/* Responsivo para telas pequenas */
@media (max-width: 768px) {
  .block {
    flex-direction: column;
  }

  .block.reverse {
    flex-direction: column;
  }

  .block-image,
  .block-text {
    flex: 1 1 100%;
    width: 100%;
  }

  .block-image {
    min-height: 250px; /* Garante que a imagem seja visível */
    display: block;
  }
}

