/* Area stampa (variante A): ultimo comunicato in evidenza, filtro per anno, schede, rassegne su fondo scuro.
   Colori del visual 2026; il colore di ogni anno arriva in --c. */

.pst { font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #1d1d1d; font-size: 17px; line-height: 1.5; }
.pst *, .pst *::before, .pst *::after { box-sizing: border-box; }
.pst a { color: inherit; text-decoration: none !important; }
.pst h2 { font-family: inherit; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.1; margin: 0; padding: 0; letter-spacing: -.01em; color: inherit; }
.pst h3 { font-family: inherit; margin: 0 0 10px; padding: 0; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6b6b6b; }
.pst p { padding: 0; }
.pst-nascosto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pst-data { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c, #dc1f1c); }
.pst-leggi { display: inline-flex; gap: 6px; font-weight: 700; color: #a32806; font-size: 15px; margin-top: auto; }
.pst-leggi i { font-style: normal; transition: transform .2s; }
.pst a:hover .pst-leggi i, .pst a:focus-visible .pst-leggi i { transform: translateX(5px); }
.pst a:focus-visible, .pst button:focus-visible { outline: 3px solid #dc1f1c; outline-offset: 3px; }
.pst-foto { display: block; width: 100%; height: 100%; object-fit: cover; }
.pst-foto.pst-marchio { object-fit: contain; background: #fff; padding: 14px; }
.pst-senza { background: #1e1e1e url(logo-visionaria.png) center / 40% auto no-repeat; }
.pst-vuoto { font-size: 18px; color: #555; }

/* In evidenza */
.pst-top { display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px; margin: 0 0 44px; }
.pst-ev { position: relative; display: block; border-radius: 18px; overflow: hidden; min-height: 430px; color: #fff !important; background: #1e1e1e; }
.pst-ev .pst-foto { position: absolute; inset: 0; transition: transform .6s; }
.pst-ev:hover .pst-foto { transform: scale(1.04); }
.pst-ev-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 28px 26px; background: linear-gradient(transparent, rgba(0,0,0,.88) 45%); display: flex; flex-direction: column; gap: 8px; }
.pst-chip { align-self: flex-start; background: #dc1f1c; color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pst-ev-tit { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.15; }
.pst-ev-sotto { opacity: .9; font-size: 16px; }
.pst-ev .pst-leggi { color: #fff; }
.pst-mini { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid #eee; align-items: center; }
.pst-mini .pst-foto { width: 110px; height: 78px; border-radius: 10px; }
.pst-mini-tit { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; }
.pst-mini:hover .pst-mini-tit { color: #a32806; }

/* Filtro per anno */
.pst-barra { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 0 0 8px; }
.pst-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pst-chips button { font: inherit; font-size: 15px; font-weight: 600; color: #1d1d1d; border: 1.5px solid #ddd; background: #fff; border-radius: 999px; padding: 7px 15px; min-height: 40px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.pst-chips button:hover { border-color: #1e1e1e; }
.pst-chips button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.pst-chips button small { color: #6b6b6b; font-size: 13px; font-weight: 400; }
.pst-chips button[aria-pressed="true"] { background: #1e1e1e; border-color: #1e1e1e; color: #fff; }
.pst-chips button[aria-pressed="true"] small { color: #ccc; }
.pst-esito { min-height: 1.4em; margin: 0 0 14px !important; font-size: 15px; color: #555; }

/* Schede */
.pst-griglia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pst-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border-top: 5px solid var(--c); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.07); transition: transform .25s, box-shadow .25s; }
.pst-card[hidden] { display: none; }
.pst-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.pst-ph { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.pst-ph .pst-foto { transition: transform .5s; }
.pst-card:hover .pst-ph .pst-foto { transform: scale(1.05); }
.pst-corpo { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.pst-card-tit { font-size: 19px; font-weight: 700; line-height: 1.25; }
.pst-tx { font-size: 15px; color: #555; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Rassegne */
.pst-ras { margin: 56px 0 0; background: #1e1e1e; color: #fff; border-radius: 22px; padding: 38px 34px; position: relative; overflow: hidden; }
.pst-ras::after { content: ""; position: absolute; right: -60px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: #dc1f1c; }
.pst-ras-testa { position: relative; z-index: 1; margin: 0 0 22px; }
.pst-ras-testa h2 { color: #fff; }
.pst-ras-testa p { margin: 6px 0 0 !important; opacity: .8; }
.pst-ras-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; z-index: 1; }
/* Quattro rassegne: quattro colonne sui computer larghi, due sotto i 1150px (mai una scheda sola su una riga) */
.pst-ras-g:has(> .pst-ras-c:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pst-ras-g:has(> .pst-ras-c:nth-child(4):last-child) .pst-anno { font-size: 54px; }
.pst-ras-g:has(> .pst-ras-c:nth-child(4):last-child) .pst-nums { gap: 14px; }
.pst-ras-g:has(> .pst-ras-c:nth-child(4):last-child) .pst-num b { font-size: 30px; }
@media (max-width: 1150px) { .pst-ras-g:has(> .pst-ras-c:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pst-ras-c { background: #2a2a2a; border-radius: 16px; padding: 22px; border-top: 5px solid var(--c); display: flex; flex-direction: column; min-width: 0; }
.pst-anno { font-size: 64px; font-weight: 800; line-height: 1; color: var(--c); }
.pst-ed { font-weight: 600; opacity: .8; margin: 0 0 14px; }
.pst-nums { display: flex; gap: 18px; flex-wrap: wrap; }
.pst-num { display: inline-flex; flex-direction: column; line-height: 1.05; }
.pst-num b { font-size: 34px; font-weight: 800; }
.pst-num small { font-size: 13px; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.pst-mq { overflow: hidden; margin: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pst-mq-t { display: flex; gap: 26px; width: max-content; white-space: nowrap; animation: pst-scorri 40s linear infinite; }
.pst-mq span { font-weight: 600; font-size: 15px; opacity: .85; }
.pst-mq span::before { content: "●"; color: var(--c); margin-right: 10px; font-size: 9px; vertical-align: middle; }
.pst-mq:hover .pst-mq-t { animation-play-state: paused; }
@keyframes pst-scorri { to { transform: translateX(-50%); } }
.pst-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; background: #a32806; color: #fff !important; font-weight: 700; border-radius: 999px; padding: 10px 20px; font-size: 15px; transition: background .2s, color .2s; }
.pst-btn small { font-weight: 400; opacity: .85; }
.pst-btn:hover { background: #fff; color: #1e1e1e !important; }

@media (prefers-reduced-motion: reduce) {
	.pst-mq-t { animation: none; flex-wrap: wrap; width: auto; white-space: normal; gap: 6px 18px; }
	.pst-mq .pst-bis { display: none; } /* senza movimento le testate stanno ferme, una volta sola */
	.pst *, .pst *::before { transition: none !important; }
}

/* Telefono e tablet */
@media (max-width: 900px) {
	.pst-top { grid-template-columns: 1fr; }
	.pst-ev { min-height: 360px; }
	.pst-ras-g, .pst-ras-g:has(> .pst-ras-c:nth-child(4):last-child) { grid-template-columns: 1fr; }
	.pst-ras { padding: 28px 20px; }
	/* Schede in righe con la foto piccola, senza riassunto */
	.pst-griglia { grid-template-columns: 1fr; gap: 0; }
	.pst-card { display: grid; grid-template-columns: 96px 1fr; gap: 12px; box-shadow: none; border-radius: 0; border-top: 0; border-bottom: 1px solid #eee; padding: 12px 0; }
	.pst-card:hover { transform: none; box-shadow: none; }
	.pst-ph { aspect-ratio: 1; border-radius: 10px; border-left: 4px solid var(--c); }
	.pst-corpo { padding: 0; gap: 4px; }
	.pst-card-tit { font-size: 16px; }
	.pst-card .pst-tx, .pst-card .pst-leggi { display: none; }
}
