/* =========================
   NIUS NEWS GRID
   Variabili sovrascrivibili dal tema
========================= */
.nius-news {
  --nius-red: var(--rosso);
  --nius-dark: #2b2b2b;
  --nius-line: #dcdcdc;
  --nius-text: #1a1a1a;
  --nius-muted: #5f5f5f;
  --nius-btn-bg: #ececec;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;                       /* le linee sottili nascono dallo sfondo */
  background: var(--nius-line);
  border-top: 1px solid var(--nius-line);
  border-bottom: 1px solid var(--nius-line);
  color: var(--nius-text);
}

/* =========================
   ITEM (base)
========================= */
.nius-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 88px 32px 32px;   /* spazio a destra per il bottone */
  background: #fff;
  min-height: 170px;
}

.nius-date {
  font-size: 14px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--nero);
  text-align: left;
}

.nius-title {
  margin: 0 0 12px;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.25;
  font-weight: 600;
  text-align: left;
}

.nius-title a {
  color: inherit;
  text-decoration: none;
}

/* l'intera card è cliccabile */
.nius-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.nius-excerpt {
  margin: 0;
  font-size: 16px; 
  line-height: 1.5;
  color: var(--nius-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

/* =========================
   FRECCIA
========================= */
.nius-arrow {
  position: absolute;
  left: 32px;
  bottom: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--nius-btn-bg);
  color: var(--nius-red);
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

/* nelle card normali la freccia sta sotto il testo, a sinistra */
.nius-item:not(.is-featured) { padding: 28px 32px 84px; }

.nius-item:hover .nius-arrow {
  background: var(--nius-red);
  color: #fff;
  transform: translateX(4px);
}

/* =========================
   CARD IN EVIDENZA
========================= */
.has-featured .nius-item.is-featured {
  grid-row: span 2;
  background: var(--nius-dark);
  color: #fff;
  justify-content: space-between;
  padding: 36px 36px 96px;
  min-height: 420px;
}
.nius-excerpt,
.nius-title{
  color: var(--nero);
}
.is-featured .nius-date,
.nius-item.is-featured .nius-title{ color: #fff; }

.is-featured .nius-title {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.15;
  margin-bottom: 20px;
}

.is-featured .nius-excerpt {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  -webkit-line-clamp: 3;
}

.is-featured .nius-arrow {
  left: 36px;
  bottom: 32px;
  background: var(--nius-red);
  color: #fff;
}

.is-featured:hover .nius-arrow {
  background: #fff;
  color: var(--nius-red);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .nius-news { grid-template-columns: 1fr; }
  .has-featured .nius-item.is-featured { grid-row: auto; min-height: 340px; }
}
