/* ── Galleria in stile demo-photographer (Canvas): card img-hover ──
   Regole estratte da demos/photographer/photographer.css (solo la parte gallery,
   per non sovrapporre il resto della skin photographer alla skin yacht). */

.img-hover-wrap {
	-webkit-transition: transform .3s ease;
	-o-transition: transform .3s ease;
	transition: transform .3s ease;
	-moz-transform-style: flat !important;
	-webkit-backface-visibility: hidden;
}

.img-hover-wrap:hover {
	-webkit-transform: scale(1.06);
	-ms-transform: scale(1.06);
	-o-transform: scale(1.06);
	transform: scale(1.06);
	z-index: 2;
}

.img-hover-card > a::after {
	content: " ";
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 0;
	-webkit-transition: background-color .3s ease;
	-o-transition: background-color .3s ease;
	transition: background-color .3s ease;
}

.img-hover-wrap:hover .img-hover-card > a::after { background-color: rgba(0, 0, 0, 0.6); }

.img-hover-card {
	position: relative;
	display: block;
	will-change: transform;
	transition: all .3s ease;
	box-shadow: 0 10px 40px transparent;
}

.img-hover-card a {
	width: 100%;
	max-width: 100%;
	display: block;
	z-index: 99;
}

.img-hover-wrap:hover .img-hover-card { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); }

.img-hover-wrap .img-hover-detail {
	position: absolute;
	top: auto;
	left: 40px;
	bottom: 40px;
	pointer-events: none;
	-webkit-backface-visibility: hidden;
	-webkit-transform: scale(1) translateY(40px) translateZ(50px);
	-ms-transform: scale(1) translateY(30px) translateZ(50px);
	-o-transform: scale(1) translateY(30px) translateZ(50px);
	transform: scale(1) translateY(30px) translateZ(50px);
	-webkit-transition: transform .2s ease;
	-o-transition: transform .2s ease;
	transition: transform .2s ease;
}

.img-hover-wrap:hover .img-hover-detail {
	opacity: 1;
	-webkit-transform: scale(1.06) translateY(-5px) translateZ(50px);
	-ms-transform: scale(1.06) translateY(-5px) translateZ(50px);
	-o-transform: scale(1.06) translateY(-5px) translateZ(50px);
	transform: scale(1.06) translateY(-5px) translateZ(50px);
}

.img-hover-wrap .img-hover-title {
	margin: 0 0 6px 0;
	font-size: 17px;
	font-weight: 600;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
	z-index: 9;
	color: #FFF;
}

.img-hover-wrap .img-link {
	opacity: 0;
	width: 20px;
	height: 20px;
	border: 1px solid #FFF;
	border-radius: 50%;
	text-align: center;
	line-height: 18px;
	font-size: 11px;
	color: #FFF;
	-webkit-transition: opacity .3s ease;
	-o-transition: opacity .3s ease;
	transition: opacity .3s ease;
}

.img-hover-wrap:hover .img-link { opacity: 1; }

.img-hover-detail a { color: #FFF; }

/* ── Adattamenti TrabocchiVacanze ──
   Media uniformi in griglia (le foto hanno orientamenti misti) + badge play video */
.img-hover-card img,
.img-hover-card video {
	width: 100%;
	height: 300px;
	object-fit: cover;
	display: block;
	border-radius: inherit;
}
.img-hover-card { border-radius: 6px; overflow: hidden; }
.img-hover-wrap { margin-bottom: 30px; cursor: pointer; }

.img-hover-card .tv-play-badge {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0,0,0,.55);
	color: #fff;
	font-size: 1.1rem;
	width: 2.4rem; height: 2.4rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 5;
	backdrop-filter: blur(2px);
}

/* ── Paginazione galleria ── */
.tv-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: .4rem;
	margin-top: 1.75rem;
}
.tv-page-btn {
	min-width: 38px;
	height: 38px;
	padding: 0 .5rem;
	border: 1px solid rgba(13, 43, 78, .2);
	background: #fff;
	color: #0D2B4E;
	font-family: 'Jost', system-ui, sans-serif;
	font-size: .9rem;
	font-weight: 500;
	border-radius: 4px;
	cursor: pointer;
	transition: border-color .2s, color .2s, background .2s;
}
.tv-page-btn:hover:not(:disabled):not(.active) {
	border-color: #C9A84C;
	color: #A07828;
}
.tv-page-btn.active {
	background: #0D2B4E;
	border-color: #0D2B4E;
	color: #fff;
	cursor: default;
}
.tv-page-btn:disabled {
	opacity: .35;
	cursor: default;
}
