/* --- RESET DI BASE --- */
* {
	box-sizing: border-box;
}

/* --- CONTENITORE GRUPPO (LAYOUT) --- */
.box-gruppo-container {
	border: 1px solid #dee2e6;
	border-radius: 8px;
	background: #fff;
	margin-bottom: 20px;
	overflow: hidden;
}

.header-gruppo {
	background: #343a40;
	color: #fff;
	padding: 15px;
	font-size: 16px;
	font-weight: bold;
}

/* --- GRIGLIA RESPONSIVE --- */
.membri-grid {
	display: grid !important;
	gap: 10px !important;
	padding: 10px !important;
	width: 100% !important;
	grid-template-columns: repeat(3, 1fr) !important; /* Mobile (3 colonne) */
}

@media (min-width: 600px) {
	.membri-grid {
		grid-template-columns: repeat(5, 1fr) !important;
	}
	/* Tablet */
}

@media (min-width: 1024px) {
	.membri-grid {
		grid-template-columns: repeat(7, 1fr) !important;
	}
	/* Desktop */
}

/* --- ELEMENTI MEMBRO --- */
.membro-box {
	text-align: center;
	padding: 5px;
	transition: transform 0.2s;
}

	.membro-box:hover {
		transform: scale(1.05);
	}

.avatar-membro {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #f8f9fa;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	display: block;
	margin: 0 auto;
}

.nome-membro {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	font-weight: bold;
	color: #333;
	text-decoration: none;
}

/* --- BOTTONE ELIMINA --- */
.btn-elimina {
	color: #dc3545;
	font-size: 10px;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid #dc3545;
	padding: 2px 5px;
	border-radius: 3px;
	display: inline-block;
	margin-top: 5px;
}

	.btn-elimina:hover {
		background: #dc3545;
		color: #fff;
	}

.tabella-membri {
	background-color: #007bff; /* Il blu classico */
	color: #ffffff; /* Testo bianco */
	padding: 10px 15px; /* Spaziatura interna */
	display: flex; /* Allinea gli elementi in riga */
	align-items: center; /* Centra verticalmente */
	gap: 20px; /* Spazio tra i Label */
	font-weight: bold; /* Testo in grassetto (tipico degli header) */
}

	/* Rimuove la sottolineatura e imposta il bianco per i link all'interno */
	.tabella-membri a {
		color: #ffffff !important;
		text-decoration: none !important;
		border: none;
	}

	/* Assicura che anche i Label (che diventano <span>) siano bianchi */
	.tabella-membri span {
		color: #ffffff;
	}