/*!
 * Start Bootstrap - SB Admin 2 Bootstrap Admin Theme (http://startbootstrap.com)
 * Code licensed under the Apache License v2.0.
 * For details, see http://www.apache.org/licenses/LICENSE-2.0.
 */

/* WRAPPER LINK */
.card-link {
	display: block;
	text-decoration: none !important;
	color: inherit;
}

/* CARD BASE */
.card-custom {
	display: grid;
	grid-template-rows: auto 1fr auto;
	background: var(--surface);
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	padding: 20px;
	min-height: 300px;
	transition: all .25s ease;
	width: 350px;
	position: relative;
	overflow: hidden;
}

/* linea nascosta */
.card-custom::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--thirdary);

	transform: scaleX(0);
	transform-origin: left;

	transition: transform .3s ease;
	border-radius: 0 0 14px 14px;
}

/* linea appare al hover */
.card-custom:hover::after {
	transform: scaleX(1);
}

.card-custom:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* HEADER */
.card-header {
	display: flex;
	gap: 16px;
}

/* ICON */
.icon-wrapper {
	width: 70px;
	height: 70px;
	background: var(--thirdary);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.icon-wrapper i {
	color: var(--surface);
	font-size: 24px;
}

/* TITLE */
.card-title {
	font-size: 18px;
	font-weight: 600;
	margin: 12px 0 0;
	color: var(--text-secondary);
}

.card-divider {
	width: 42px;
	height: 3px;
	background: var(--thirdary);
	border-radius: 2px;
	margin: 12px 0;
}

/* BODY GRID */
.card-body {
	display: grid;
	grid-template-rows: auto 1fr;
}

.card-text {
	font-size: 14px;
	color: var(--text-color);
	line-height: 1.5;
	margin: 0;
	padding: 20px 0;
	min-height: 72px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* FEATURES */
.card-features {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 20px 0;
	border-top: 1px solid var(--border-color);
}

/* FEATURE ITEM */
.feature-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.feature-icon-wrapper {
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.feature-icon-wrapper i {
	color: var(--success);
	font-size: 14px;
}

.feature-text {
	font-size: 14px;
	color: var(--text-secondary);
}

/* FOOTER */
.card-footer {
	display: flex;
	justify-content: flex-end;
	padding-top: 10px;
	border-top: 1px solid var(--border-color);
}

.arrow-btn {
	width: 80px;
	height: 40px;
	border-radius: 18px;
	background: var(--surface);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	font-size: 14px;
	cursor: pointer;
}

.arrow-btn i {
	color: var(--thirdary);
}

/* DISABLED */
.card-link.disabled {
	pointer-events: none;
	opacity: .5;
	cursor: not-allowed;
}

.cards-container {
	display: flex;
	gap: 50px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 80px;
}