/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

/* HERO */
.hero {
  width: 100%;
  height: 100vh; /* sempre ocupa toda a altura da viewport */
  background-image:
    linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.3)),
    url('../media/p100pro/P100Pro-Agricultural-Drone.jpg');
  background-repeat: no-repeat, no-repeat;
  background-position: center center, center center;
  background-size: cover, cover;
  background-attachment: fixed;
  border: none;
  border-radius: 0;
  position: relative;
  color: #fff;
}

.hero .title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Zekton W05 Black Italic', sans-serif;
  font-size: 4rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  z-index: 1;
}

/* NOTÍCIAS */
.news-container {
  width: 100%;
  background: #f5f5f5 url('../media/bgs/bg132.png') no-repeat center center;
  background-size: cover;
  padding: 4rem 1rem;
  text-align: center;
  color: #ffffff;
}

.news-title {
  font-family: 'Roboto Slab', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333;
}

.news-banner {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 3 / 1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  margin: 0 auto 2rem;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.no-banner {
  color: #555;
  font-style: italic;
  margin-top: 1rem;
}

/* FORMAÇÃO DE PILOTOS */
.training-section {
  position: relative;
  background:
    linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('../media/bgs/pilotos.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 4rem 1rem;
}

.training-content {
  text-align: center;
}

.training-title {
  font-family: 'Roboto Slab', serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.training-button {
  display: inline-block;
  font-family: 'Zekton W05 Black Italic', sans-serif;
  font-size: 1.2rem;
  background-color: #006837;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.training-button:hover {
  background-color: #00512e;
}
.news-title {
  color: #ffffff !important;
}
/* RESPONSIVIDADE */
@media (max-width: 1024px) {
  .hero .title {
    font-size: 3.5rem;
  }
  .news-container {
    padding: 3rem 1rem;
  }
  .training-title {
    font-size: 2rem;
  }
  .training-button {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}

/* NOTE: não reduzimos mais a altura do .hero nas quebras abaixo */
@media (max-width: 768px) {
  .hero .title {
    font-size: 2.5rem;
  }
  .news-banner {
    aspect-ratio: auto;
    height: 200px;
  }
  .news-container {
    padding: 2rem 0.5rem;
  }
  .training-section {
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero .title {
    font-size: 2rem;
  }
  .news-banner {
    height: 150px;
  }
  .training-title {
    font-size: 1.5rem;
  }
}
/* HERO: fallback via pseudo-element apenas no mobile */
@media (max-width: 768px) {
  .hero {
    /* Remove fundo original */
    background: none !important;
    /* Hero vai crescer conforme o pseudo-elemento */
    height: auto !important;
    padding: 0;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    display: block;
    width: 100%;
    height: 100vh; /* ocupa toda a altura da viewport */
    background: 
      url('../media/p100pro/P100Pro-Agricultural-Drone.jpg')
      no-repeat center center;
    background-size: cover;
    z-index: 0;
  }
  .hero .title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    margin: 0;
  }
}
.hero .title,
.hero h1 {
  font-family: 'Zekton W05 Black Italic', sans-serif;
  font-style: italic;
  font-weight: 900;
}
.news-title {
  font-family: 'Zekton W05 Black Italic', sans-serif;
  font-weight: 700;
}
.training-section .training-title {
  font-family: 'Zekton W05 Black Italic', sans-serif;
  font-style: italic;
  font-weight: 900;
}