/* ============================================================
   Board Widget — frontend styles
   Caricato tramite wp_enqueue_style (frontend + editor Elementor)
   ============================================================ */

/* Griglia responsiva — le colonne sono sovrascrite da Elementor via selectors */
.board-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}

/* Card */
.board-card {
	flex: 0 0 calc(33.333% - 16px);
	background: #ffffff;
	border: 1px solid var(--e-global-color-primary, #6EC1E4);
	border-radius: 10px;
	padding: 20px 16px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
	transition: box-shadow 0.2s ease;
}
.board-card:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
}

/* Foto o pallino avatar */
.board-avatar {
	width: 120px;
	height: 120px;
	min-width: 100px;
	min-height: 100px;
	border-radius: 50% !important;
	object-fit: cover;
	object-position: center;
	margin-bottom: 12px;
	border: 2px solid var(--e-global-color-primary, #6EC1E4);
	display: block;
	flex-shrink: 0;
}
.board-avatar-fallback {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background-color: var(--e-global-color-primary, #6EC1E4);
	margin-bottom: 12px;
	flex-shrink: 0;
}

/* Nome */
.board-name {
	width: 100%;
	text-align: center;
	word-break: break-word;
}

/* Nazionalità */
.board-nationality {
	font-size: 0.82em;
	color: #888;
	margin: 0 0 10px;
}

/* Icone social */
.board-socials {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: auto;
}
.board-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--e-global-color-primary, #6EC1E4);
	color: #fff !important;
	text-decoration: none !important;
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.board-social-link:hover {
	opacity: 0.82;
	transform: scale(1.12);
}
.board-social-link svg {
	width: 14px;
	height: 14px;
	fill: #fff;
	display: block;
}

/* Responsive di default */
@media (max-width: 1024px) {
	.board-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.board-grid { grid-template-columns: 1fr; }
}