/* Stili locali delle pagine pubbliche «Home» e «News» (nessuna risorsa esterna).
   Si appoggiano alle classi del modello pages/static/common/servizio-pagina.php (svcSection, svcHead, svcBtn…).
   Palette: blu #0E0080, fucsia #FF0762, grigio testo #656565 (contrasto 5,7:1 su bianco). */

/* ---- schede delle news (home e /news/) ---- */
.nwGrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nwCard {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(14, 0, 128, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nwCard:hover, .nwCard:focus-within { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(14, 0, 128, 0.16); }
.nwCardImg { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0E0080, #3b2fd6); }
.nwCardImg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nwCardBody { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.nwCardBody h3 { margin: 0 0 10px; color: #0E0080; font-size: 21px; line-height: 1.25; }
.nwCardBody h3 a { color: inherit; text-decoration: none; }
.nwCardBody h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nwCardBody p { margin: 0 0 18px; flex: 1; color: #656565; }
.nwCardLink {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #0E0080;
  font-weight: 700;
  text-decoration: none;
}
.nwCardLink:hover { text-decoration: underline; text-underline-offset: 3px; }
.nwCardLink:focus-visible, .nwCardBody h3 a:focus-visible { outline: 3px solid #0E0080; outline-offset: 3px; border-radius: 6px; }
.nwMore { margin-top: 34px; text-align: center; }

/* ---- articolo singolo (/news/?post=…) ---- */
.nwArticle { max-width: 780px; margin: 0 auto; }
.nwArticle h1 { margin: 8px 0 22px; color: #0E0080; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.nwArticle figure { margin: 0 0 26px; }
.nwArticle figure img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 22px; box-shadow: 0 16px 40px rgba(14, 0, 128, 0.16); }
.nwArticleText { color: #3a3a4a; font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.nwArticleText a { color: #0E0080; font-weight: 700; text-underline-offset: 3px; }
.nwArticleFoot { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.nwVuoto { max-width: 620px; margin: 0 auto; padding: 34px; border-radius: 20px; background: #fff; box-shadow: 0 10px 26px rgba(14, 0, 128, 0.1); text-align: center; }
.nwVuoto p { margin: 0 0 18px; color: #656565; }

/* ---- «Hanno scelto Spike»: fascia di loghi (nessuno scorrimento automatico) ---- */
.hpcLoghi { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 14px; }
.hpcLoghi li { display: flex; align-items: center; justify-content: center; width: 168px; height: 84px; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(14, 0, 128, 0.07); }
.hpcLoghi img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.hpcNota { max-width: 680px; margin: 22px auto 0; color: #656565; font-size: 15px; text-align: center; }

@media (max-width: 991.98px) {
  .nwGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
  .nwGrid { grid-template-columns: 1fr; }
  .nwArticleText { font-size: 17px; }
  .hpcLoghi li { width: calc(50% - 7px); height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .nwCard { transition: none; }
  .nwCard:hover, .nwCard:focus-within { transform: none; }
}
