/*
 * Preziosissimo – Dalla Diocesi: stile di base.
 * Usa i colori del tema Preziosissimo (--pz-*) se presenti.
 */

/* Colonne delle notizie */
.pzd-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.4em;
}

.pzd-col {
	--c: var(--pz-red-fill, #8e2224);
	--ct: var(--pz-red, #8e2224);
	background: var(--pz-surface, #fff);
	border: 1px solid var(--pz-line, #e6dccf);
	border-top: 5px solid var(--c);
	border-radius: 0 0 var(--pz-radius, 14px) var(--pz-radius, 14px);
	box-shadow: var(--pz-shadow, 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .07));
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.pzd-col:nth-child(3n+2) { --c: var(--pz-c3, #3d7a8f); --ct: var(--pz-c3t, #2c5d6e); }
.pzd-col:nth-child(3n+3) { --c: var(--pz-c1, #db7c39); --ct: var(--pz-c1t, #a44f16); }

.pzd-col__title {
	margin: 0;
	padding: .9em 1.1em .7em;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.pzd-col__title a,
.pzd-col__title {
	color: var(--ct);
	text-decoration: none;
	box-shadow: none;
}

.pzd-main,
.pzd-item,
.pzd-vid {
	color: var(--pz-ink, #292422);
	text-decoration: none;
	box-shadow: none;
}

.pzd-main {
	display: flex;
	flex-direction: column;
}

.pzd-main__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	object-fit: cover;
	background: var(--pz-tint, #ece3d6);
}

.pzd-main__title {
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.3;
	padding: .8em 1.1em .2em;
	color: var(--ct);
	-webkit-hyphens: auto;
	hyphens: auto;
}

.pzd-date {
	display: block;
	font-size: .76rem;
	color: var(--pz-muted, #6b605a);
	padding: 0 1.1em .9em;
}

.pzd-item {
	display: flex;
	gap: .8em;
	align-items: flex-start;
	padding: .8em 1.1em;
	border-top: 1px solid var(--pz-line, #e6dccf);
}

.pzd-item__img {
	flex: 0 0 64px;
	width: 64px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	background: var(--pz-tint, #ece3d6);
}

.pzd-item__title {
	display: block;
	font-size: .86rem;
	font-weight: 600;
	line-height: 1.3;
	-webkit-hyphens: auto;
	hyphens: auto;
}

.pzd-item .pzd-date {
	padding: .25em 0 0;
}

.pzd-main:hover .pzd-main__title,
.pzd-item:hover .pzd-item__title,
.pzd-vid:hover .pzd-vid__title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Video */
.pzd-video {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.4em;
}

.pzd-vid {
	display: flex;
	flex-direction: column;
}

.pzd-vid__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #1a1213;
	box-shadow: var(--pz-shadow, 0 8px 24px rgba(0, 0, 0, .1));
}

.pzd-vid__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* taglia le bande nere delle miniature 4:3 */
	transition: transform .3s ease;
}

.pzd-vid:hover .pzd-vid__thumb img {
	transform: scale(1.04);
}

.pzd-vid__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: rgba(142, 34, 36, .9);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

.pzd-vid__play::after {
	content: "";
	position: absolute;
	left: 22px;
	top: 17px;
	border-style: solid;
	border-width: 11px 0 11px 17px;
	border-color: transparent transparent transparent #fff;
}

.pzd-vid__title {
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.3;
	margin-top: .7em;
	-webkit-hyphens: auto;
	hyphens: auto;
}

.pzd-vid .pzd-date {
	padding: .3em 0 0;
}

html[data-theme="dark"] .pzd-main__img,
html[data-theme="dark"] .pzd-item__img,
html[data-theme="dark"] .pzd-vid__thumb img {
	filter: brightness(.92);
}

@media (prefers-reduced-motion: reduce) {
	.pzd-vid__thumb img { transition: none; }
}
