/* Archivi di categoria (templates/archive-categoria.php) — testata, Traguardi e News. Usa anche lm-archivio.css. */
.lma { background: #fff; overflow: hidden; }

/* Testata */
.lma-hero { background: var(--blu); color: #fff; border-radius: 0 0 56px 56px; padding-bottom: 72px; }
.lma--news .lma-hero { padding-bottom: 90px; }
.lma-hero__in { max-width: 880px; margin: 0 auto; padding: 80px 64px 0; }
.lma-bc { font-size: 13px; opacity: .85; margin-bottom: 20px; }
.lma-bc a { text-decoration: underline !important; }
.lma-kick { display: inline-block; background: rgba(255,255,255,.16); border-radius: 999px; padding: 8px 18px; font-size: 13px; }
.lma .lma-title { font-size: 44px; line-height: 1.2; margin: 16px 0 20px; color: #fff; }
.lma-lead, .lma-lead p { font-size: 18px; line-height: 1.7; color: #dbe6fb; margin: 0; }

/* Testata con foto (campo "Immagine di testata" della categoria/tag): foto nella parte destra, sotto il menu,
   sfumata in blu verso il testo. Il punto focale scelto in bacheca arriva come --lm-fuoco / --lm-fuoco-mob. */
.lma-hero--foto { position: relative; overflow: hidden; isolation: isolate; min-height: 560px; display: flex; flex-direction: column; justify-content: center; padding-bottom: 80px; }
.lma-hero__foto { position: absolute; top: 100px; right: 0; bottom: 0; left: 30%; z-index: -2; }
.lma-hero__foto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--lm-fuoco, 50% 25%); }
.lma-hero--foto::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
	linear-gradient(180deg, var(--blu) 100px, rgba(10, 42, 99, 0) 180px),
	linear-gradient(90deg, var(--blu) 30%, rgba(10, 42, 99, .8) 40%, rgba(10, 42, 99, 0) 62%); }
.lma-hero--foto .lma-hero__in { width: 100%; max-width: 1152px; box-sizing: border-box; }
.lma-hero--foto .lma-hero__in > * { max-width: 560px; }
.lma-hero--foto .lma-bc { max-width: none; }

/* Link testuali */
.lmr-link { display: inline-block; font-size: 13px; font-weight: 600; }
.lmr-link:hover, .lme-card:hover .lme-card__title, .lmr-evid h2 a:hover, .lmr-riga h3 a:hover, .lmn-evid h2 a:hover { text-decoration: underline; }

/* Traguardi — in evidenza */
.lmr-evid { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--blu); color: #fff; border-radius: 36px; overflow: hidden; }
.lmr-evid__img img, .lmr-riga__img img, .lmn-evid__img img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--segnaposto); }
.lmr-evid__img { min-height: 520px; background: #4a6aab; }
.lmr-evid__txt { padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.lmr-kick { display: inline-block; background: rgba(255,255,255,.16); border-radius: 999px; padding: 8px 18px; font-size: 13px; }
.lmr-evid h2 { font-size: 38px !important; margin: 14px 0 16px !important; color: #fff !important; }
.lmr-meta { font-size: 13px; color: var(--rosa); margin-bottom: 16px !important; }
.lmr-evid p:not(.lmr-meta) { margin-bottom: 22px; }

/* Traguardi — righe numerate */
.lmr-riga { display: grid; grid-template-columns: 1fr 1fr; background: var(--azzurro); border-radius: 36px; overflow: hidden; margin-top: 24px; }
.lmr-riga--inv .lmr-riga__img { order: 2; }
.lmr-riga__img { min-height: 400px; }
.lmr-riga__txt { padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.lmr-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.lmr-pill { background: #fff; }
.lmr-riga h3 { font-size: 26px !important; line-height: 1.25 !important; margin: 12px 0 !important; }
.lmr-riga p { margin-bottom: 18px; }

/* Traguardi — "Da non dimenticare" */
.lmr-altri { margin-top: 56px !important; }
.lmr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.lmr-card__img { height: 240px; }
.lmr-card__title { font-size: 22px; }
.lmr-card__exc { font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
.lmr-data { opacity: .7; font-weight: 500; }

/* News — ricerca */
.lmn-ricerca-wrap { position: relative; max-width: 880px; margin: -44px auto 0; padding: 0 48px; }
.lmn-ricerca { display: flex; gap: 10px; background: #fff; border-radius: 999px; padding: 10px; box-shadow: 0 14px 40px rgba(10,42,99,.25); margin: 0; }
.lmn-ricerca input { flex: 1; min-width: 0; border: 0 !important; padding: 0 22px; font: 400 16px Poppins, sans-serif; color: var(--blu); background: transparent; box-shadow: none !important; outline: 0; }
.lmn-ricerca:focus-within { outline: 2px solid var(--blu-azione); outline-offset: 2px; }
.lmn-cerca-btn { background: var(--blu-azione) !important; color: #fff !important; border: 0; cursor: pointer; font-family: Poppins, sans-serif; }
.lmn-selettori { display: flex; gap: 10px; flex-wrap: wrap; }

/* News — in evidenza */
.lmn-evid { display: grid; grid-template-columns: 1fr 1fr; background: var(--azzurro); border-radius: 28px; overflow: hidden; margin-bottom: 24px; }
.lmn-evid__img { min-height: 340px; }
.lmn-evid__txt { padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.lmn-evid h2 { font-size: 26px !important; margin: 14px 0 !important; }
.lmn-evid p { margin-bottom: 18px; }
:is(.lma--news, .lma--tema) .lme-card__img { height: 180px; }

/* News — paginazione */
.lmn-pagine { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.lmn-pagine .page-numbers { width: 44px; height: 44px; border-radius: 50%; background: var(--azzurro); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.lmn-pagine .page-numbers.current { background: var(--blu-azione); color: #fff; }
.lmn-pagine .page-numbers.dots { background: none; }

.lma > .elementor { padding-top: 16px; }

@media (max-width: 1024px) {
	.lma-hero { border-radius: 0 0 40px 40px; }
	.lma-hero--foto { min-height: 480px; }
	.lma-hero__foto { top: 96px; left: 20%; }
	.lma-hero--foto::before { background:
		linear-gradient(180deg, var(--blu) 96px, rgba(10, 42, 99, 0) 170px),
		linear-gradient(90deg, var(--blu) 20%, rgba(10, 42, 99, .85) 40%, rgba(10, 42, 99, 0) 75%); }
	.lma-hero--foto .lma-hero__in > * { max-width: 440px; }
	.lma-hero__in { padding: 64px 40px 0; }
	.lma .lma-title { font-size: 38px; }
	.lmr-evid, .lmr-riga, .lmn-evid { grid-template-columns: 1fr; border-radius: 32px; }
	.lmr-evid__img, .lmr-riga__img { min-height: 300px; }
	.lmr-riga--inv .lmr-riga__img { order: 0; }
	.lmr-evid__txt, .lmr-riga__txt { padding: 36px; }
	.lmr-evid h2 { font-size: 32px !important; }
	.lmn-ricerca-wrap { padding: 0 24px; margin-top: -40px; }
	.lmn-evid__img { min-height: 260px; }
}
@media (max-width: 767px) {
	.lma-hero { border-radius: 0 0 32px 32px; padding-bottom: 56px; }
	/* Su smartphone la foto sta in alto (sotto il menu) e il testo in fondo, sulla sfumatura */
	.lma-hero--foto { min-height: 700px; justify-content: flex-end; padding-bottom: 56px; }
	.lma-hero__foto { top: 72px; bottom: auto; left: 0; height: 440px; }
	.lma-hero__foto img { object-position: var(--lm-fuoco-mob, 50% 25%); }
	.lma-hero--foto::before { top: 72px; bottom: auto; height: 441px; background: linear-gradient(180deg, var(--blu) 0%, rgba(10, 42, 99, 0) 12%, rgba(10, 42, 99, 0) 50%, var(--blu) 100%); }
	.lma-hero--foto .lma-hero__in > * { max-width: none; }
	.lma--news .lma-hero { padding-bottom: 72px; }
	.lma-hero__in { padding: 48px 20px 0; }
	.lma .lma-title { font-size: 28px; }
	.lma-lead, .lma-lead p { font-size: 16px; }
	.lmr-evid, .lmr-riga { border-radius: 28px; }
	.lmr-evid__img, .lmr-riga__img { min-height: 220px; }
	.lmr-evid__txt, .lmr-riga__txt { padding: 26px 22px; }
	.lmr-evid h2 { font-size: 26px !important; }
	.lmr-riga h3 { font-size: 22px !important; }
	.lmr-grid { grid-template-columns: 1fr; }
	.lmn-ricerca-wrap { padding: 0 12px; }
	.lmn-ricerca { flex-direction: column; border-radius: 28px; padding: 8px; }
	.lmn-ricerca input { padding: 14px 16px; }
	.lmn-evid__txt { padding: 26px; }
	.lmn-pagine .page-numbers { width: 40px; height: 40px; }
}

/* Pagina Risultati — rifiniture card 2026-10-10 (backup: backup-pagina-traguardi-prima-card-2026-10-10.css) */

/* 1. Card in evidenza: titolo e link sempre bianchi, anche se già visitati o al passaggio del mouse (il tema li colora di blu acceso). */
.lmr-evid h2 a, .lmr-evid h2 a:visited, .lmr-evid h2 a:hover, .lmr-evid h2 a:focus, .lmr-evid h2 a:active,
.lmr-evid .lmr-link, .lmr-evid .lmr-link:visited, .lmr-evid .lmr-link:hover, .lmr-evid .lmr-link:focus, .lmr-evid .lmr-link:active { color: #fff !important; opacity: 1; }
.lmr-evid a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

/* 3. "Da non dimenticare": sfondo bianco con bordo discreto nel blu del sito, per staccarle dalla pagina. */
.lmr-grid .lme-card { background: #fff; border: 1px solid rgba(10, 42, 99, .14); transition: translate .22s ease, box-shadow .22s ease, scale .16s ease, border-color .22s ease !important; }
@media (hover: hover) and (pointer: fine) { .lmr-grid .lme-card:hover { border-color: rgba(10, 42, 99, .26); } }
.lmr-grid .lme-card, .lmr-grid .lme-card:visited, .lmr-grid .lme-card:hover, .lmr-grid .lme-card:focus { color: var(--blu) !important; opacity: 1; }
.lmr-grid .lme-card:focus-visible { outline: 2px solid var(--blu-azione); outline-offset: 4px; }

/* 2. Hover discreto, come le card della homepage: leggero sollevamento, ombra morbida e zoom minimo dell'immagine. */
.lmr-evid, .lmr-riga, .lmr-grid .lme-card { transition: translate .22s ease, box-shadow .22s ease, scale .16s ease; }
.lmr-evid__img, .lmr-riga__img, .lmr-grid .lme-card { overflow: hidden; }
.lmr-evid__img img, .lmr-riga__img img, .lmr-grid .lme-card__img { transition: transform .35s ease; }
@media (hover: hover) and (pointer: fine) {
	.lmr-evid:hover { translate: 0 -3px; box-shadow: 0 18px 40px rgba(10, 42, 99, .22); }
	.lmr-riga:hover, .lmr-grid .lme-card:hover { translate: 0 -3px; box-shadow: 0 14px 32px rgba(10, 42, 99, .12); }
	.lmr-evid:hover .lmr-evid__img img, .lmr-riga:hover .lmr-riga__img img, .lmr-grid .lme-card:hover .lme-card__img { transform: scale(1.025); }
}
.lmr-grid .lme-card:active { translate: 0 1px; scale: .995; }
@media (prefers-reduced-motion: reduce) {
	.lmr-evid, .lmr-riga, .lmr-grid .lme-card, .lmr-evid__img img, .lmr-riga__img img, .lmr-grid .lme-card__img { transition: none; translate: none !important; scale: none !important; transform: none !important; }
}

/* Pagina News — rifiniture card 2026-10-10 (backup: backup-pagina-news-prima-card-2026-10-10.css) */

/* 1. Card in evidenza: titolo e link nel blu scuro del sito in ogni stato (il tema colora di blu acceso i link visitati). */
.lmn-evid h2 a, .lmn-evid h2 a:visited, .lmn-evid h2 a:hover, .lmn-evid h2 a:focus, .lmn-evid h2 a:active,
.lmn-evid .lmr-link, .lmn-evid .lmr-link:visited, .lmn-evid .lmr-link:hover, .lmn-evid .lmr-link:focus, .lmn-evid .lmr-link:active { color: var(--blu) !important; opacity: 1; }
.lmn-evid a:focus-visible { outline: 2px solid var(--blu-azione); outline-offset: 4px; border-radius: 4px; }

/* 3. Card non in evidenza: bianche con lo stesso bordo discreto delle card "Da non dimenticare"; testo sempre blu scuro. */
:is(.lma--news, .lma--tema) .lme-grid .lme-card { background: #fff; border: 1px solid rgba(10, 42, 99, .14); }
:is(.lma--news, .lma--tema) .lme-grid .lme-card, :is(.lma--news, .lma--tema) .lme-grid .lme-card:visited, :is(.lma--news, .lma--tema) .lme-grid .lme-card:hover, :is(.lma--news, .lma--tema) .lme-grid .lme-card:focus { color: var(--blu) !important; opacity: 1; }
:is(.lma--news, .lma--tema) .lme-grid .lme-card:focus-visible { outline: 2px solid var(--blu-azione); outline-offset: 4px; }

/* 2. Hover discreto, come le card della homepage: leggero sollevamento, ombra morbida, zoom minimo dell'immagine. */
.lmn-evid, :is(.lma--news, .lma--tema) .lme-grid .lme-card { transition: translate .22s ease, box-shadow .22s ease, scale .16s ease, border-color .22s ease; }
.lmn-evid__img, :is(.lma--news, .lma--tema) .lme-grid .lme-card { overflow: hidden; }
.lmn-evid__img img, :is(.lma--news, .lma--tema) .lme-grid .lme-card__img { transition: transform .35s ease; }
@media (hover: hover) and (pointer: fine) {
	.lmn-evid:hover { translate: 0 -3px; box-shadow: 0 14px 32px rgba(10, 42, 99, .12); }
	:is(.lma--news, .lma--tema) .lme-grid .lme-card:hover { translate: 0 -3px; box-shadow: 0 14px 32px rgba(10, 42, 99, .12); border-color: rgba(10, 42, 99, .26); }
	.lmn-evid:hover .lmn-evid__img img, :is(.lma--news, .lma--tema) .lme-grid .lme-card:hover .lme-card__img { transform: scale(1.025); }
}
:is(.lma--news, .lma--tema) .lme-grid .lme-card:active { translate: 0 1px; scale: .995; }
@media (prefers-reduced-motion: reduce) {
	.lmn-evid, :is(.lma--news, .lma--tema) .lme-grid .lme-card, .lmn-evid__img img, :is(.lma--news, .lma--tema) .lme-grid .lme-card__img { transition: none; translate: none !important; scale: none !important; transform: none !important; }
}

/* Pagina Tema (archivio tag) — 2026-10-10: stesse card delle News, pill con la sezione */
.lma--tema .lme-pill--sezione { background: var(--blu); color: #fff; }
