/* =================================================
   Schelp — pagina News (elenco + articolo)
   Usa i token di colors_and_type.css e le utility della landing.
   ================================================= */

.news {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(18px, 4vw, 40px) 80px;
  position: relative;
  z-index: 1;
}

.news-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--fg-1);
  margin: 8px 0 10px;
}
.news-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--fg-3);
  max-width: 60ch;
  margin: 0 0 34px;
}

/* ---- Griglia card ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2.5vw, 26px);
}
.news-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 14px -4px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(10px);
  animation: news-in 500ms var(--ease-out, cubic-bezier(.22,1,.36,1)) forwards;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.6);
}
@keyframes news-in { to { opacity: 1; transform: none; } }

.news-card-cover {
  aspect-ratio: 16 / 9;
  background: #16161a center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: rgba(255,255,255,0.25);
}
.news-card-cover.has-img { color: transparent; }
.news-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 7px; }
.news-card-date {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--coral-500);
  text-transform: uppercase;
}
.news-card-title {
  font-family: var(--font-brand, 'Poppins'), var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0;
}
.news-card-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-3);
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- Stati ---- */
.news-state { text-align: center; padding: 60px 20px; color: var(--fg-3); }
.news-state-icon { font-size: 34px; margin-bottom: 10px; }
.news-state-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--fg-1); margin: 0 0 6px; }
.news-state-sub { font-size: 14px; margin: 0; }
.news-spinner {
  width: 30px; height: 30px; margin: 0 auto 14px;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: var(--coral-500);
  border-radius: 50%;
  animation: news-spin 800ms linear infinite;
}
@keyframes news-spin { to { transform: rotate(360deg); } }

/* ---- Articolo ---- */
.news-article { max-width: 760px; margin: 0 auto; }
.news-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--fg-3); text-decoration: none;
  font-size: 14px; margin-bottom: 26px;
}
.news-back:hover { color: var(--fg-1); }
.news-hero {
  width: 100%; aspect-ratio: 16 / 8;
  border-radius: 18px;
  background: #16161a center/cover no-repeat;
  margin-bottom: 26px;
}
.news-article-date {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--coral-500);
}
.news-article-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--fg-1);
  margin: 8px 0 26px;
}

/* Prosa del corpo — coerente con la tipografia del sito */
.news-prose { font-size: 17px; line-height: 1.72; color: var(--fg-2); }
.news-prose > *:first-child { margin-top: 0; }
.news-prose p { margin: 0 0 1.15em; }
.news-prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.55em; letter-spacing: -0.02em; color: var(--fg-1); margin: 1.6em 0 0.5em; }
.news-prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25em; color: var(--fg-1); margin: 1.4em 0 0.4em; }
.news-prose a { color: var(--coral-500); text-underline-offset: 2px; }
.news-prose ul, .news-prose ol { padding-left: 1.4em; margin: 0 0 1.15em; }
.news-prose li { margin-bottom: 0.4em; }
.news-prose blockquote {
  border-left: 3px solid var(--coral-500);
  padding-left: 1.1em; margin: 0 0 1.15em;
  color: var(--fg-1); font-style: italic;
}
.news-prose img { max-width: 100%; height: auto; border-radius: 14px; margin: 1.4em 0; }
.news-prose strong { color: var(--fg-1); }

/* Allegati */
.news-attach { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-subtle); }
.news-attach h3 { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--fg-1); margin: 0 0 12px; }
.news-attach ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.news-attach li {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 10px 14px;
}
.news-attach a { color: var(--coral-500); text-decoration: none; font-weight: 600; }
.news-attach a:hover { text-decoration: underline; }
.news-attach span { color: var(--fg-4); font-size: 12px; }

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