.pp-team-card {
	position: relative;
	cursor: pointer;
	overflow: hidden;
	outline: none;
}
.pp-team-card .pp-team-card__photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	position: relative;
}
.pp-team-card .pp-team-card__photo:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 30%;
    background: linear-gradient(
        to top,
        #E1EBF2 0%,
        rgba(225, 235, 242, 0) 100%
    );
}
.pp-team-card .pp-team-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform .35s ease;
}
.pp-team-card .pp-team-card__caption {
	padding: 15px 35px 30px;
	background: #E1EBF2;
	position: relative;
}
.pp-team-card .pp-team-card__name {
	margin: 0 0 4px;
	font-size: 25px;
	font-weight: 500;
	color: #1E2948;
	line-height: 2;
}
.pp-team-card .pp-team-card__role {
	display: block;
	font-size: 20px;
	color: #1D2A48;
	line-height: 1.2;
	font-weight: 400;
}
.pp-team-card .pp-team-popup__open {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 2;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: #1b2b3a;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all .2s ease;
	opacity: 0;
}
.pp-team-card:hover .pp-team-popup__open {
    opacity: 1;
}

/* ---- Popup ---- */
.pp-team-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
}
.pp-team-popup.is-open {
	display: block;
}
.pp-team-popup .pp-team-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 25, 35, .55);
}
.pp-team-popup .pp-team-popup__inner {
	position: relative;
	max-width: 1280px;
	width: 92%;
	height: 760px;
	margin: 6vh auto;
	background: #E1EAF3;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	display: flex;
	flex-direction: column;
}
.pp-team-popup .pp-team-popup__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: #1b2b3a;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .2s ease;
}
.pp-team-popup .pp-team-popup__close:hover {
	background: #33475a;
}
.pp-team-popup .pp-team-popup__grid {
	display: grid;
	grid-template-columns: 38% 62%;
	overflow-y: auto;
	height: 100%;
}
.pp-team-popup .pp-team-popup__photo {
	min-height: 100%;
}
.pp-team-popup .pp-team-popup__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pp-team-popup .pp-team-popup__info {
	padding: 35px 35px 40px;
    max-width: 720px;
}
.pp-team-popup .pp-team-popup__name {
	margin: 0 0 8px;
	font-size: 35px;
	font-weight: 500;
	color: #1E2948;
}
.pp-team-popup .pp-team-popup__role {
	margin: 0 0 20px;
	font-size: 15px;
	font-weight: 500;
	color: #232C41;
	line-height: 1.3;
}
.pp-team-popup .pp-team-popup__description {
    font-size: 15px;
    line-height: 1.3;
}
.pp-team-popup .pp-team-popup__description p {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.3;
	color: #232C41;
}
.pp-team-popup .pp-team-popup__description p:last-child {
	margin-bottom: 0;
}
.pp-team-popup .pp-team-popup__hobby {
	border-top: 2px solid #14232f;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 40px 35px 30px 0;
}
.pp-team-popup .pp-team-popup__hobby-left {
    flex: 1;
    padding-left: 48px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding-top: 40px;
}
.pp-team-popup .pp-team-popup__hobby-text {
	margin: 0 0 14px;
	font-size: 14px;
	color: #35424c;
}
.pp-team-popup .pp-team-popup__social {
	display: flex;
	gap: 10px;
}
.pp-team-popup .pp-team-popup__social-link {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #14232f;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: background .2s ease;
}
.pp-team-popup .pp-team-popup__social-link:hover {
	background: #33475a;
}
.pp-team-popup .pp-team-popup__social-link .dashicons {
	font-size: 16px;
	width: 16px; 
	height: 16px;
}
.pp-team-popup .pp-team-popup__hobby-right {
	flex-shrink: 0;
	overflow: hidden;
}
.pp-team-popup .pp-team-popup__hobby-right img {
	width: 100%;
	height: 150px;
	/*object-fit: cover;*/
	display: block;
	object-fit: contain; 
    object-position: top right;
}
.pp-team-popup__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* Body lock when popup is open */
body.pp-team-no-scroll {
	overflow: hidden;
}
.pp-team-popup .pp-team-popup__hobby-right img {
    width: 230px;
    height: 150px;
	/*object-fit: cover;*/
    display: block; 
}
/* ---- Responsive ---- */
@media (max-width: 782px) {
	.pp-team-popup .pp-team-popup__grid {
		grid-template-columns: 1fr;
	}
	.pp-team-popup .pp-team-popup__photo {
		min-height: 260px;
	}
	.pp-team-popup .pp-team-popup__content {
		padding: 20px 24px 28px;
	}
	.pp-team-popup .pp-team-popup__hobby {
		flex-direction: column;
		align-items: flex-start;
		margin-right: 0;
		margin-bottom: 20px;
	}
	.pp-team-popup .pp-team-popup__photo img {
		object-position: top center;
	}
	.pp-team-popup .pp-team-popup__inner {
		margin: 4vh auto;
	}
	.pp-team-popup .pp-team-popup__hobby-text {
		margin-top: 20px;
	}
	.pp-team-popup .pp-team-popup__info {
		padding: 0;
	}
	.pp-team-popup .pp-team-popup__hobby-left {
		padding-left: 0;
		padding-top: 0;
	}
	.pp-team-popup .pp-team-popup__hobby-right {
		width: 100px;
		aspect-ratio: 1;
	}
	.pp-team-card .pp-team-card__photo img {
		object-position: top;
	}
	.pp-team-card .pp-team-card__photo {
		aspect-ratio: 4/3;
	}
}

/* ---- Home, carosello del team: + come in Chi siamo (CT 02/11/2026) ---- */
/* Il nome si tiene sempre libero lo spazio del +, così va a capo prima di finirci sotto a qualunque larghezza */
.pp-team-slide .pp-font-h3 h3.pp-team-home-name {
	position: relative;
	padding-right: 44px;
}
/* font-size del nome: 1em = centro della prima riga (padding-top .425em + mezza riga .575em) */
.pp-team-slide .pp-team-home-open {
	position: absolute;
	top: calc(1em - 17px);
	right: 0;
	width: 34px;
	height: 34px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 50%;
	background: #1b2b3a;
	font-size: inherit;
	cursor: pointer;
	transition: all .2s ease;
	opacity: 0;
}
.pp-team-slide .pp-team-home-open span {
	display: none;
}
.pp-team-slide .pp-team-home-open::before,
.pp-team-slide .pp-team-home-open::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	background: #fff;
	transform: translate(-50%, -50%);
}
.pp-team-slide .pp-team-home-open::after {
	transform: translate(-50%, -50%) rotate(90deg);
}
.pp-team-slide .swiper-slide:hover .pp-team-home-open,
.pp-team-slide .pp-team-home-open:focus-visible {
	opacity: 1;
}
@media (max-width: 1023px) {
	.pp-team-slide .pp-team-home-open {
		opacity: 1;
	}
}
