/* =========================
   RESET & BASE
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #f4f6fa;
  color: #002855;
}

/* =========================
   PAGINA NEWS
========================= */
.news-page {
  padding-bottom: 80px;
}

/* =========================
   HERO
========================= */
.news-hero {
  background: linear-gradient(135deg, #004aad, #002855);
  color: white;
  text-align: center;
  padding: 80px 20px 70px;
}

.news-hero h2 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.news-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* =========================
   CONTAINER
========================= */
.news-container {
  max-width: 1000px;
  margin: -40px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* =========================
   CARD NEWS
========================= */
.news-card {
  background: linear-gradient(145deg, #ffffff, #e7f0ff);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.2);
}

.news-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: #004aad;
  display: block;
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #004aad;
}

.news-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #002855;
}

/* =========================
   LINK LEGGI DI PIÙ
========================= */
.read-more {
  display: inline-block;
  margin-top: 12px;
  color: #004aad;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.read-more:hover {
  color: #002855;
  transform: translateX(3px);
}

/* =========================
   MODAL NEWS
========================= */
.news-modal {
  display: none; /* nascosto di default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.news-modal-content {
  background-color: #f4f6fa;
  margin: 10% auto;
  padding: 30px;
  border-radius: 16px;
  max-width: 600px;
  color: #002855;
  position: relative;
  box-shadow: 0 14px 35px rgba(0,0,0,0.25);
}

.news-modal-close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #004aad;
  cursor: pointer;
}

.news-modal-close:hover {
  color: #002855;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
  .news-hero h2 {
    font-size: 2.1rem;
  }
}
