/* =======================
   TYPOGRAPHY & BASE
======================= */
body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.article-meta {
  font-size: 0.9rem;
  color: #777;
  margin: 0.5rem 0;
}

/* =======================
   HERO SECTION
======================= */
.hero.featured-section {
  background-color: #f4f4f4;
  padding: 4rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  overflow: hidden;
}

.hero-slide {
  display: none;
  flex-wrap: wrap;
  gap: 6rem;
  justify-content: center;
  min-height: 300px; /* dimensione minima fissa */
}

.hero-slide.active {
  display: flex;
}

.hero-text,
.hero-image {
  flex: 1;
  min-width: 300px;
}

.hero-text {
  max-width: 500px;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 6px;
}

.hero-btn {
  padding: 0.6rem 1.2rem;
  background-color: #03b0cc;
  color: #fff;
  border-radius: 5px;
  margin-top: 1rem;
  display: inline-block;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.3);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  cursor: pointer;
  font-size: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* =======================
   LATEST NEWS SECTION
======================= */
.latest-news-section {
  padding: 3rem 0;
}

.latest-news-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.latest-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.latest-news-card {
  background-color: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  max-width: 300px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.latest-news-card img {
  width: 100%;
  border-radius: 6px;
}

.latest-news-card h3 {
  margin-top: 1rem;
}

.read-more {
  color: #03b0cc;
  font-weight: bold;
}

/* =======================
   ABOUT US SECTION
======================= */
.about-section {
  background-color: #f4f4f4;
  padding: 4rem 0;
}

.about-section .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.about-image,
.about-text {
  flex: 1;
  min-width: 300px;
}

.about-section img {
  width: 100%;
  height: auto;
  max-width: 400px;
  display: block;
  border-radius: 8px;
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 1024px) {
  .hero-slide {
    flex-direction: column;
    gap: 2rem;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .hero.featured-section {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-text,
  .hero-image {
    max-width: 100%;
  }

  .latest-news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .latest-news-card {
    max-width: 100%;
    margin: 0 auto;
  }

  .about-section .container {
    flex-direction: column;
    align-items: center;
  }
}
