/* Sezione certificazioni: griglia di 5 card (2 grandi + 3 documenti).
   Palette e tipografia ereditate dal sito: verde #91c967, grigio-blu #323c47, testo #454545. */

.cert-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 30px;
	margin-top: 100px;
	text-align: left;
}

.cert-card {
	grid-column: span 2;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e9eff4;
	border-top: 3px solid #91c967;
	border-radius: 4px;
	box-shadow: 0 2px 14px rgba(50, 60, 71, 0.06);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}

.cert-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 28px rgba(50, 60, 71, 0.13);
}

.cert-card--wide,
.cert-card--half {
	grid-column: span 3;
}

/* testata: logo per le certificazioni, icona per i documenti */
.cert-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 130px;
	background: #f7f7f7;
	border-bottom: 1px solid #e9eff4;
}

.cert-card__media img {
	max-height: 84px;
	max-width: 70%;
	width: auto;
}

.cert-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #91c967;
	color: #91c967;
}

/* icone SVG inline: non dipendono da font esterni */
.cert-card svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cert-card__icon svg {
	width: 30px;
	height: 30px;
}

.cert-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 26px 28px 28px;
}

.cert-card__tag {
	display: block;
	margin-bottom: 8px;
	color: #91c967;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.tr-about .cert-card h2 {
	margin: 0 0 16px;
	color: #323c47;
	font-size: 21px;
	font-weight: 400;
	line-height: 1.25;
}

.cert-card p {
	margin: 0 0 24px;
	color: #454545;
	font-size: 14px;
	font-weight: 300;
	line-height: 22px;
}

/* il link resta sempre in fondo, anche se i testi hanno lunghezze diverse */
.cert-card__link {
	align-self: flex-start;
	margin-top: auto;
	padding: 9px 18px;
	border: 1px solid #91c967;
	border-radius: 3px;
	color: #91c967;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	transition: background .2s ease, color .2s ease;
}

.cert-card__link svg {
	width: 16px;
	height: 16px;
	margin-right: 8px;
	vertical-align: -3px;
}

.cert-card__link:hover,
.cert-card__link:focus {
	background: #91c967;
	color: #fff;
	text-decoration: none;
}

@media (max-width: 991px) {
	.cert-card { grid-column: span 3; }
	.cert-card:last-child { grid-column: span 6; }
	.cert-card--half:last-child { grid-column: span 3; }
}

@media (max-width: 640px) {
	.cert-grid { gap: 20px; }
	.cert-card,
	.cert-card--wide,
	.cert-card--half,
	.cert-card:last-child,
	.cert-card--half:last-child { grid-column: span 6; }
	.cert-card__body { padding: 22px 20px 24px; }
}
