/* ThinkTeam — stili base. Volutamente neutri: tutto è sovrascrivibile dai controlli Elementor o via variabili CSS. */

.thinkteam {
	--tt-accent: currentColor;
	--tt-photo-ratio: 1 / 1;
	--tt-photo-radius: 0;
	--tt-el-gap: 8px;
}

.thinkteam-grid {
	display: grid;
	grid-template-columns: repeat(var(--tt-cols, 3), minmax(0, 1fr));
	gap: var(--tt-gap, 30px);
}

.thinkteam-sc .thinkteam-grid { grid-template-columns: repeat(var(--tt-cols, 3), minmax(0, 1fr)); }
@media (max-width: 1024px) { .thinkteam-sc .thinkteam-grid { grid-template-columns: repeat(min(var(--tt-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 767px)  { .thinkteam-sc .thinkteam-grid { grid-template-columns: minmax(0, 1fr); } }

.thinkteam-grid__item { min-width: 0; display: flex; }
.thinkteam-grid__item[hidden] { display: none; }
.thinkteam-grid__item > .thinkteam-card { flex: 1 1 auto; }

/* Filtri */
.thinkteam-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}
.thinkteam-filter__btn {
	appearance: none;
	background: transparent;
	border: 1px solid currentColor;
	color: inherit;
	font: inherit;
	padding: 6px 14px;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.thinkteam-filter__btn.is-active { background: #111; border-color: #111; color: #fff; }

/* Card */
.thinkteam-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}
.thinkteam-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--tt-el-gap);
	min-width: 0;
}
.thinkteam-card--classic .thinkteam-card__body { align-items: stretch; }

.thinkteam-card--horizontal { flex-direction: row; align-items: center; gap: 24px; }
.thinkteam-card--horizontal .thinkteam-card__media { flex: 0 0 var(--tt-media-width, 35%); max-width: var(--tt-media-width, 35%); }
.thinkteam-card--horizontal .thinkteam-card__body { flex: 1 1 auto; }
@media (max-width: 767px) {
	.thinkteam-card--horizontal.thinkteam-card--stack-mobile { flex-direction: column; align-items: stretch; }
	.thinkteam-card--horizontal.thinkteam-card--stack-mobile .thinkteam-card__media { max-width: 100%; flex-basis: auto; }
}

.thinkteam-card--overlay { overflow: hidden; }
.thinkteam-card--overlay .thinkteam-card__media { position: relative; }
.thinkteam-card--overlay .thinkteam-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 20px;
	color: #fff;
	background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 65%);
	transition: opacity .3s ease, transform .3s ease;
}
.thinkteam-card--overlay .thinkteam-card__overlay a { color: inherit; }
.thinkteam-card--overlay.thinkteam-card--hover-reveal .thinkteam-card__overlay { opacity: 0; }
.thinkteam-card--overlay.thinkteam-card--hover-reveal:hover .thinkteam-card__overlay,
.thinkteam-card--overlay.thinkteam-card--hover-reveal:focus-within .thinkteam-card__overlay { opacity: 1; }
@media (hover: none) {
	.thinkteam-card--overlay.thinkteam-card--hover-reveal .thinkteam-card__overlay { opacity: 1; }
}

.thinkteam-card__cover-link { position: absolute; inset: 0; z-index: 1; }
.thinkteam-card--linked a:not(.thinkteam-card__cover-link),
.thinkteam-card--linked button { position: relative; z-index: 2; }

/* Foto */
.thinkteam-photo { position: relative; overflow: hidden; border-radius: var(--tt-photo-radius); line-height: 0; }
.thinkteam-photo__img,
.thinkteam-photo__placeholder {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--tt-photo-ratio);
	object-fit: cover;
	object-position: var(--tt-photo-position, center center);
	transition-property: transform, filter, opacity;
	transition-duration: var(--tt-photo-transition, .4s);
	transition-timing-function: ease;
}
.thinkteam-photo__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e9e9e9;
	color: #777;
	font-size: 2.5em;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .05em;
}
.thinkteam-photo__link {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	cursor: pointer;
	color: inherit;
	line-height: 0;
}

/* Elementi testuali */
.thinkteam-el { margin: 0; }
.thinkteam-el--name { margin: 0; line-height: 1.2; }
.thinkteam-el--name a { color: inherit; text-decoration: none; }
.thinkteam-name__first,
.thinkteam-name__last { display: block; }
.thinkteam-el--role { opacity: .75; }
.thinkteam-el--bio { line-height: 1.55; }
.thinkteam-el__icon { flex: 0 0 auto; }
svg.thinkteam-el__icon { width: 1em; height: 1em; fill: currentColor; }
.thinkteam-el--email a,
.thinkteam-el--phone a { display: inline-flex; align-items: center; gap: .5em; color: inherit; text-decoration: none; word-break: break-all; }
.thinkteam-el--divider { border: 0; border-top: 1px solid currentColor; opacity: .2; width: 100%; margin: 4px 0; }
.thinkteam-el__label { font-weight: 600; }
.thinkteam-tag { display: inline-block; font-size: .8em; padding: 2px 8px; margin: 0 4px 4px 0; border: 1px solid currentColor; opacity: .8; }

/* Social */
.thinkteam-socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: var(--tt-justify, flex-start); }
.thinkteam-socials li { margin: 0; padding: 0; }
.thinkteam-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45em;
	color: inherit;
	text-decoration: none;
	line-height: 1;
	transition: color .2s, background-color .2s, border-color .2s, transform .2s;
}
.thinkteam-socials--icons .thinkteam-social { width: var(--tt-social-box, auto); height: var(--tt-social-box, auto); }
.thinkteam-social__icon { font-size: var(--tt-social-size, 18px); }
.thinkteam-social svg.thinkteam-social__icon:not(.thinkteam-svg) { width: var(--tt-social-size, 18px); height: var(--tt-social-size, 18px); fill: currentColor; }
svg.thinkteam-svg {
	display: inline-block;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.125em;
}
.thinkteam-social svg.thinkteam-svg.thinkteam-social__icon {
	width: var(--tt-social-size, 18px);
	height: var(--tt-social-size, 18px);
	fill: none;
	stroke: currentColor;
}
svg.thinkteam-svg.thinkteam-el__icon {
	fill: none;
	stroke: currentColor;
}

/* Leggi di più */
.thinkteam-readmore {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* Modale */
.thinkteam-modal {
	border: 0;
	padding: 0;
	max-width: min(860px, calc(100vw - 32px));
	width: 100%;
	max-height: calc(100vh - 32px);
	background: #fff;
	color: #111;
}
.thinkteam-modal::backdrop { background: rgba(0, 0, 0, .7); }
.thinkteam-modal__inner { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.thinkteam-modal__inner:not(:has(.thinkteam-modal__photo)) { grid-template-columns: minmax(0, 1fr); }
.thinkteam-modal__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thinkteam-modal__content { padding: 32px; overflow: auto; max-height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 10px; }
.thinkteam-modal__name { margin: 0; }
.thinkteam-modal__role { opacity: .7; }
.thinkteam-modal__close {
	position: absolute; top: 8px; right: 12px; z-index: 2;
	appearance: none; background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; color: inherit;
}
@media (max-width: 767px) {
	.thinkteam-modal__inner { grid-template-columns: minmax(0, 1fr); }
	.thinkteam-modal__photo img { max-height: 45vh; }
	.thinkteam-modal__content { max-height: none; padding: 24px 20px; }
}
html.thinkteam-modal-open { overflow: hidden; }

.thinkteam-empty { opacity: .7; }

.thinkteam .screen-reader-text,
.thinkteam-modal .screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
