/* Training packages, text-only intro blocks and FAQ of the commercial landing pages. Colours only through semantic tokens. */

/* Packages: one card per course level, buttons aligned at the bottom */
.thriveo-packages {
	display: grid;
	gap: var(--thriveo-space-6);
	grid-template-columns: minmax(0, 1fr);
}

.thriveo-package {
	background: var(--thriveo-color-surface);
	border: 1px solid var(--thriveo-color-hairline);
	border-radius: var(--thriveo-radius-lg);
	box-shadow: var(--thriveo-shadow-sm);
	display: flex;
	flex-direction: column;
	gap: var(--thriveo-space-4);
	padding: var(--thriveo-space-6);
	position: relative;
	transition: border-color var(--thriveo-duration-base) var(--thriveo-ease-out),
		box-shadow var(--thriveo-duration-base) var(--thriveo-ease-out);
}

.thriveo-package:hover,
.thriveo-package:focus-within {
	border-color: var(--thriveo-color-accent-line);
	box-shadow: var(--thriveo-shadow-md);
}

.thriveo-package__level {
	color: var(--thriveo-color-link);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	margin: 0;
	text-transform: uppercase;
}

.thriveo-package__title {
	font-size: clamp(1.5rem, 2.4vw, 1.875rem);
	line-height: 1.15;
	margin: 0;
}

.thriveo-package__audience {
	color: var(--thriveo-color-text-secondary);
	margin: 0;
}

.thriveo-package__tagline {
	color: var(--thriveo-color-text);
	font-weight: 600;
	margin: 0;
}

.thriveo-package__meta {
	border-bottom: 1px solid var(--thriveo-color-hairline);
	border-top: 1px solid var(--thriveo-color-hairline);
	display: grid;
	gap: var(--thriveo-space-2);
	list-style: none;
	margin: 0;
	padding: var(--thriveo-space-3) 0;
}

.thriveo-package__meta li {
	color: var(--thriveo-color-text-secondary);
	font-size: 0.9375rem;
	margin: 0;
}

.thriveo-package__heading {
	color: var(--thriveo-color-muted);
	font-family: var(--thriveo-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin: 0;
	text-transform: uppercase;
}

.thriveo-package__list {
	display: grid;
	gap: var(--thriveo-space-2);
	margin: 0;
	padding-left: 1.25rem;
}

.thriveo-package__list li {
	margin: 0;
}

.thriveo-package__outcome {
	background: var(--thriveo-color-surface-tint);
	border-left: 2px solid var(--thriveo-color-accent-line);
	border-radius: var(--thriveo-radius-sm);
	margin: 0;
	padding: var(--thriveo-space-3) var(--thriveo-space-4);
}

.thriveo-package__legal {
	color: var(--thriveo-color-muted);
	font-size: 0.875rem;
	margin: 0;
}

.thriveo-package__price {
	margin: auto 0 0;
}

.thriveo-package__price-label {
	color: var(--thriveo-color-muted);
	display: block;
	font-size: 0.8125rem;
}

.thriveo-package__price-value {
	color: var(--thriveo-color-accent);
	font-family: var(--thriveo-font-heading);
	font-size: 1.5rem;
	font-weight: 600;
}

.thriveo-package__price-note {
	color: var(--thriveo-color-muted);
	font-size: 0.875rem;
}

.thriveo-package__cta {
	margin: 0;
}

.thriveo-package__cta .wp-block-button__link,
.thriveo-package__cta a {
	display: inline-block;
}

.thriveo-packages__note {
	color: var(--thriveo-color-muted);
	font-size: 0.9375rem;
	margin-top: var(--thriveo-space-6);
	max-width: 70ch;
}

/* Statement lines of a landing page (problem, method) */
.thriveo-points {
	display: grid;
	gap: var(--thriveo-space-6);
	grid-template-columns: minmax(0, 1fr);
	list-style: none;
	margin: 0;
	padding: 0;
}

.thriveo-points__item {
	border-top: 1px solid var(--thriveo-color-hairline);
	margin: 0;
	padding-top: var(--thriveo-space-4);
}

.thriveo-points__title {
	font-family: var(--thriveo-font-body);
	font-size: 1.0625rem;
	font-weight: 600;
	margin: 0 0 var(--thriveo-space-2);
}

.thriveo-points__text {
	color: var(--thriveo-color-text-secondary);
	margin: 0;
}

/* FAQ */
.wp-block-details.thriveo-faq {
	border-bottom: 1px solid var(--thriveo-color-hairline);
	margin: 0;
	padding: var(--thriveo-space-4) 0;
}

.wp-block-details.thriveo-faq summary {
	cursor: pointer;
	font-weight: 600;
}

.wp-block-details.thriveo-faq summary:focus-visible {
	outline: 2px solid var(--thriveo-color-focus);
	outline-offset: 4px;
}

.wp-block-details.thriveo-faq > :not(summary) {
	color: var(--thriveo-color-text-secondary);
	margin-top: var(--thriveo-space-3);
}

/* Split band: text on the left, action on the right, vertically centred; stacked on mobile */
.wp-block-group.thriveo-split {
	align-items: center;
	gap: var(--thriveo-space-8);
}

.thriveo-split > * {
	margin: 0;
	min-width: 0;
}

.thriveo-split__text {
	flex: 1 1 0;
}

.thriveo-split__text > * {
	margin-bottom: 0;
	margin-top: 0;
}

.thriveo-split__text > * + * {
	margin-top: var(--thriveo-space-4);
}

.thriveo-split__action {
	flex: 0 0 auto;
}

.thriveo-split__action .wp-block-buttons {
	align-items: stretch;
	flex-direction: column;
}

.thriveo-split__action .wp-block-button__link {
	text-align: center;
	width: 100%;
}

.hero-section.thriveo-hero--formazione-ai {
	background-image: url("../images/landing/formazione-ai-hero.webp");
	background-position: right center;
}

.hero-box .thriveo-flow__launch {
	display: block;
	font-size: var(--wp--preset--font-size--medium, 1rem);
	margin-inline: auto;
	margin-top: var(--thriveo-space-6);
	padding: var(--thriveo-space-3) var(--thriveo-space-8);
}

.thriveo-section--bg {
	isolation: isolate;
	overflow: hidden;
	position: relative;
}

.thriveo-section--bg::before {
	background-position: right center;
	background-repeat: no-repeat;
	background-size: cover;
	content: "";
	inset: 0;
	-webkit-mask-image: linear-gradient(to left, black 0%, transparent 75%);
	mask-image: linear-gradient(to left, black 0%, transparent 75%);
	opacity: 0.5;
	position: absolute;
	z-index: -1;
}

.thriveo-section--bg-dati::before {
	background-image: url("../images/landing/formazione-ai-dati.webp");
}

.thriveo-section--bg-competenze::before {
	background-image: url("../images/landing/formazione-ai-competenze.webp");
}

.thriveo-trainer__certifications {
	margin-top: var(--thriveo-space-10);
}

@media (max-width: 781px) {
	.thriveo-section--bg::before {
		opacity: 0.35;
	}

	.wp-block-group.thriveo-split {
		align-items: stretch;
		flex-direction: column;
	}
}

@media (min-width: 900px) {
	.thriveo-packages {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.thriveo-package {
		padding: var(--thriveo-space-8);
	}

	.thriveo-points {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
