/* =========================================================
   NEWS.CSS — SOLO PAGE-SPECIFIC
   (Layout: hero/nav/page-content/max-width = SOLO base.css)
========================================================= */

/* Se vuoi geometria click hero diversa, lasciala qui.
   Altrimenti puoi anche toglierla e usare quella di base.css. */
.hero-link{
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 5;
}

/* =========================================================
   LISTA NEWS
========================================================= */

.news-list{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* CARD: deve riempire tutta la page-content */
.card{
  width: 100%;
  margin: 0;
  padding: 18px;

  background: var(--card);
  border: 1px solid var(--br);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
  overflow: hidden;

  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: start;
}

/* immagine */
.thumb{
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* testo */
.pad{
  min-width: 0; /* evita overflow in grid */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mut{
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.2;
}

.title{
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
}

.excerpt{
  margin: 0;
  color: #d7d7d7;
  line-height: 1.55;
}

/* azioni */
.actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* stato empty */
.no-news{
  width: 100%;
  margin: 0;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  border: 1px dashed var(--br);
  border-radius: 12px;
}

/* =========================================================
   BOTTONI (solo per news)
========================================================= */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .9rem;

  border-radius: 999px;
  border: 1px solid #666;
  background: #666;
  color: #fff;

  font-size: .85rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;

  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}

.btn:hover{
  background: #000;
  border-color: #000;
}

.btn:active{
  transform: scale(.98);
}

/* =========================================================
   MODALE
========================================================= */

.overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(2px);
  display: none;
  z-index: 9998;
}

.modal{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: min(92vw, 820px);
  max-height: 80vh;
  overflow: auto;

  background: #111;
  border: 2px solid #b3261e;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
  display: none;
  z-index: 9999;
}

.modal .body{
  padding: 24px;
  text-align: justify;
  line-height: 1.65;
}

.closebar{
  display: flex;
  justify-content: flex-end;
  padding: 0 24px 20px;
}

.close{
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: #1c1c1c;
  color: #fff;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px){
  .card{
    grid-template-columns: 1fr;
  }

  .thumb{
    max-width: none;   /* oppure cancella proprio la riga vecchia */
    width: 100%;
  }
}
/* =========================================================
SOLO pagina news: contenitore più stretto
.news-page .page-content{
  max-width: 800px;   
}
.overlay, .modal{
  z-index: 2147483647;
}
========================================================= */
@media (max-width: 900px){

  .news-text,
  .news-text p{
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }

}
.excerpt{
  margin:0;
  color:#d7d7d7;
  line-height:1.55;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
@media (max-width: 900px){

  .excerpt{
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }

}