/* ==========================================================================
   TEAM BLOCK - FRONTEND
   ========================================================================== */

/* Section wrapper */
.s4w-team {
	padding: 90px 0;
}

/* 3-column grid - desktop */
.s4w-team__wrapper {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Each team item */
.s4w-team__item {
	border: 1px solid #e1e1e1;
	border-left: none;
	border-top: none;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

/* Prima colonna: aggiungi bordo sinistro */
.s4w-team__item:nth-child(3n + 1) {
	border-left: 1px solid #e1e1e1;
}

/* Prima riga: aggiungi bordo top */
.s4w-team__item:nth-child(-n + 3) {
	border-top: 1px solid #e1e1e1;
}

/* CTA Item */
.s4w-team__item--cta {
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Override aspect ratio della CTA Simple nel contesto Team */
.s4w-team__item--cta .s4w-cta-simple {
	width: 100%;
    height: 100%;
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.s4w-team__item--cta .s4w-cta-simple .s4w-cta-simple__content {
	width: 100%;
	padding: 20px;
	max-width: 100%;
}

/* Team Member Item */
.s4w-team__item--member {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Image */
.s4w-team__image {
	width: 100%;
	aspect-ratio: 1 / 1;
	position: relative;
	overflow: hidden;
}

.s4w-team__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop hover: zoom immagine */
@media (hover: hover) and (min-width: 769px) {
	.s4w-team__item--member:hover .s4w-team__img {
		transform: scale(1.05);
	}
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
	.s4w-team__img {
		transition: none;
	}
}

/* Content */
.s4w-team__content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Name - Merriweather 26px */
.s4w-team__name {
	font-family: var(--font-serif);
	font-size: 26px;
	font-weight: var(--weight-regular);
	line-height: 1.2;
	letter-spacing: -0.52px;
	color: rgba(0, 0, 0, 0.8);
	margin: 0;
	padding-right: 24px;
	text-transform: none !important;
}

/* Button wrapper */
.s4w-team__button {
	display: flex;
	align-items: flex-start;
}

/* ==========================================================================
   MOBILE (<=768px)
   ========================================================================== */

@media (max-width: 768px) {

	.s4w-team {
		padding: 64px 0;
	}

	/* Stack tutto in una colonna */
	.s4w-team__wrapper {
		grid-template-columns: 1fr;
	}

	/* Tutti gli item hanno bordi */
	.s4w-team__item {
		border-left: 1px solid #e1e1e1;
		border-top: 1px solid #e1e1e1;
	}

	/* Evita doppio bordo tra item impilati */
	.s4w-team__item + .s4w-team__item {
		border-top: none;
	}

	/* Nascondi CTA su mobile */
	.s4w-team__item--cta {
		display: none;
	}





.s4w-team__item--cta .s4w-cta-simple {
	aspect-ratio: 408 / 519;
}
}

/* ==========================================================================
   BLOCK PLACEHOLDER (Editor only)
   ========================================================================== */




.s4w-block-placeholder {
	padding: 40px 20px;
	text-align: center;
	background-color: var(--bg-weak-100);
	border: 2px dashed var(--text-soft-400);
	border-radius: 4px;
}

.s4w-block-placeholder p {
	margin: 0;
	color: var(--text-sub-500);
	font-size: 14px;
}
