/* News & Eventi (page-news-eventi.php) e articolo singolo (single.php): misure da post-1207.css, loop 91009 e 92341. */
.smg-news { padding: 120px 15px; }
.smg-news__wrap { max-width: 1300px; margin: 0 auto; }
.smg-news__filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 30px; }
.smg-news__fbtn { padding: 0; font: 500 16px/1.5 var(--smg-f-body); color: var(--smg-text); transition: color .3s; }
.smg-news__fbtn:hover, .smg-news__fbtn[aria-current] { color: var(--smg-blue); text-decoration: underline; text-underline-offset: 4px; }
.smg-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }

/* Card articolo (stesso aspetto delle card eventi in home) */
.smg-nc { position: relative; display: flex; flex-direction: column; padding: 20px; border: 1px solid #f5f5f5; border-radius: 20px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .1); }
.smg-nc__cats { position: absolute; top: 30px; left: 30px; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; }
.smg-nc__cats a { padding: 6px 10px; background: var(--smg-orange); font: 400 16px/19px Roboto, sans-serif; color: #fff; }
.smg-nc__img img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.smg-nc__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 20px; padding: 10px; }
.smg-nc__title { margin: 0; font-size: 22px; line-height: 28.6px; font-weight: 600; color: #54595f; }
.smg-nc__title a { color: inherit; }
.smg-nc__body > p, .smg-nc .box_evento { margin: 0; }
.smg-nc .box_evento h4 { font-size: 16px; line-height: 1.5; }
.smg-nc__more { margin-top: auto; }

/* Paginazione */
.smg-news .smg-pagination { margin-top: 50px; }
.smg-news .smg-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.smg-news .smg-pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 22px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .1); font: 700 16px/1 var(--smg-f-body); color: var(--smg-blue); }
.smg-news .smg-pagination .page-numbers.current, .smg-news .smg-pagination a.page-numbers:hover { background: var(--smg-orange); color: #fff; }

/* Articolo singolo */
.smg-post__content { max-width: 1140px; margin: 60px auto 30px; padding: 0 10px; }
.smg-post__content img { height: auto; }
.smg-postnav { display: flex; align-items: stretch; max-width: 1140px; margin: 0 auto 90px; padding: 0 10px; }
.smg-postnav > div { padding: 10px 0; border-top: 1px solid #d5d8dc; border-bottom: 1px solid #d5d8dc; }
.smg-postnav__prev, .smg-postnav__next { flex: 1 1 0; min-width: 0; }
.smg-postnav__next { text-align: right; }
.smg-postnav__sep { flex: none; width: 1px; padding: 0; background: #d5d8dc; }
.smg-postnav a { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; color: var(--smg-blue); }
.smg-postnav__arrow { font-size: 30px; line-height: 1; }
.smg-postnav__label { display: block; font: 400 14px/1.5 var(--smg-f-body); text-transform: uppercase; color: var(--smg-text); }
.smg-postnav__title { display: block; overflow: hidden; font: 600 16px/1.5 var(--smg-f-body); text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1024px) { .smg-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.smg-news { padding: 80px 15px; }
	.smg-news__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.smg-nc__title { font-size: 20px; line-height: 26px; }
	.smg-postnav__title { display: none; }
}

/* --- Giro correzioni 1 --- */
@media (max-width: 767px) { .smg-news { padding: 120px 15px; } }
.smg-news__fbtn { line-height: 28px; }
.smg-post__content img { display: inline; vertical-align: baseline; max-width: 100%; height: auto; }
.smg-post__content p { margin: 0 0 20px; }

/* Giro finitore: su mobile 30px fra foto e titolo e 40px fra le card (come l'originale) */
@media (max-width: 767px) { .smg-nc__body { padding-top: 30px; } .smg-news__grid { gap: 40px; } }
