/* === CARD BASE === */
.news-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #f1f1f1;
}

/* Hover elegante */
.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: #d8682b33; /* leggero bordo arancio */
}

/* Immagine */
.news-thumb {
  flex: 0 0 320px;
  overflow: hidden;
  border-radius: 10px;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Zoom morbido all’hover */
.news-item:hover img {
  transform: scale(1.05);
}

/* Contenuto */
.news-content {
  flex: 1;
}

.news-content h3 {
  color: #aa4b25;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.news-content h3:hover {
  color: #d8682b;
}

.news-content p {
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.meta {
  font-size: 0.85rem;
  color: #999;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
    padding: 1rem;
  }

  .news-thumb {
    width: 100%;
  }

  .news-content p,
  .meta {
    display: none;
  }

  .news-content h3 {
    text-align: center;
  }
}



/* FILTRI RAPIDI COME PILL BUTTON */
.event-filters {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.event-filters a {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;          /* forma pill */
  background-color: #d8682b;    /* colore di default */
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.event-filters a:hover,
.event-filters a.active,
.event-filters a.visited  {
  background-color: #7e2603;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
/* === LINK BASE NEL CORPO === */
/* LINK BASE */
a {
  color: #d8682b;          /* colore principale */
  text-decoration: none !important;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  outline: none;
}

a:hover,
a:focus {
  color: #aa4b25;
  border-bottom: 2px solid #aa4b25; /* opzionale: sottolineatura arancio */
}

/* PULSANTI STILE H&T */
a.btn-ht {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: #d8682b;
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;  /* nessuna sottolineatura */
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  outline: none;
}


/* Hover e focus coerenti */
a.btn-ht:hover,
a.btn-ht:focus {
  background-color: #aa4b25;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* Focus più accessibile (bordo visivo soft) */
a.btn-ht:focus-visible {
  outline: 3px solid rgba(216,104,43,0.4);
  outline-offset: 3px;
}


.evento-singolo {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.evento-header {
  text-align: center;
  margin-bottom: 2rem;
}

.evento-header .meta {
  color: #777;
  font-size: 0.9rem;
}

.media-block {
  margin-bottom: 2rem;
  text-align: center;
}

.media-block img,
.media-block video {
  width: 100%;
  border-radius: 12px;
  max-height: 500px;
  object-fit: cover;
}

.evento-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.evento-content figure {
  margin: 2rem 0;
  text-align: center;
}

.evento-content figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.btn-back {
  display: inline-block;
  margin-top: 2rem;
  text-decoration: none;
  color: #fff;
  background: #d8682b;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  transition: background 0.3s;
}

.btn-back:hover {
  background: #aa4b25;
}
/* Immagini generali nelle news */
.news-item img,
.news-item .project-card img {
  width: 100%;       /* occupa tutto lo spazio disponibile */
  height: auto;      /* mantiene le proporzioni */
  max-width: 100%;   /* non supera mai la dimensione originale */
  text-align: center;
  display: block;
  border-radius: 12px; /* opzionale, come nel tuo stile */
}

.news-item .project-cardmini img {
  width: 30%;       /* occupa tutto lo spazio disponibile */
  height: auto;      /* mantiene le proporzioni */
  max-width: 100%;   /* non supera mai la dimensione originale */
  text-align: center;
  display: block;
  border-radius: 12px; /* opzionale, come nel tuo stile */
}

/* Eventuali immagini nei contenuti */
.evento-content img {
  width: 100%;
  height: auto;
  max-width: 100%;
  text-align: center;
  display: block;
  border-radius: 12px;
}

/* Galleria o figure */
.evento-content figure img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

/* Opzionale: margini automatici per centrare immagini più piccole */
.evento-content figure {
  text-align: center;
  margin: 1.5rem 0;
}
.evento-tags {
  margin-top: 1.5rem;
}

.evento-tags .tag-item {
  display: inline-block;
  margin: 0.2em 0.3em;
  padding: 0.3em 0.7em;
  background-color: #d8682b;
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.evento-tags .tag-item:hover {
  background-color: #b95c1f;
}
