:root {
	--matr-jet: #3D3B3F;
	--matr-baby-powder: #FAF8F2;
	--matr-antiflash: #EBF2F2;
	--matr-cool-gray: #9E9EAB;
	--matr-desert-sand: #CBA592;
	--matr-seal-brown: #6C321D;
	--matr-dun: #DDC5A3;
	--matr-field-drab: #6A4F29;
	--matr-thistle: #C4B7CE;
	--matr-english-violet: #4D3A60;
	--matr-drab-dark-brown: #3C4022;
	--matr-ash-gray: #A8AA9C;
}

body.single-sfwd-courses.separate-containers .inside-article {
	padding: 32px;
}

.learndash-wrapper.learndash-wrapper--course {
    max-width: 905px;
    margin: 0 auto;
}

.corso-hero__image {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
}
.corso-hero__image img {
    width: 100%;
    display: block;
    height: 641px;
    object-fit: cover;
}
.corso-hero__tags {
    position: absolute;
    bottom: 16px;
    left: 24px;
    color: #fff !important;
    border-radius: 99px !important;
    background: #9E9EAB;
    height: 18px;
    max-width: 170px;
    width: 100%;
    font-family: 'Host Grotesk';
    font-weight: 400;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 20%;
}
.corso-hero__cat {
    position: absolute;
    bottom: 16px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    min-height: 33px;
    padding: 6px 8px;
    border-radius: 4px;
    font-family: 'Mona Sans';
    font-size: 14px;
    line-height: 1;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
}

span.corso-hero__cat.hicards-card__eyebrow .site-brand-wrap {
    height: 19px;
    border-right: 1px solid #FFF;
    padding-right: 6px;
    margin-right: 6px;
    display: flex;
    align-items: center;
    padding-top: 2px;
}

.learndash-wrapper .ld-course-status.ld-course-status-enrolled{
    padding: 16px 0px!important;
    background-color: #BAD9E8!important;
}

.learndash-wrapper .ld-table-list .ld-table-list-header {
    background-color: #BAD9E8!important;
    
}

.learndash-wrapper .ld-item-list .ld-item-list-item {
    margin: .5em 0!important;
    border: unset;
}

.learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-name {
    align-items: center;
}

.learndash-wrapper .ld-course-status.ld-course-status-enrolled .ld-progress {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
}

.learndash-wrapper .ld-progress.ld-progress-inline .ld-progress-bar{
    width: 100%;
}

.ld-progress-percentage.ld-secondary-color::after {
    content: '•';
    color: currentColor;
}

.learndash-wrapper .ld-progress .ld-progress-heading .ld-progress-stats{
    margin-top: 8px;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
}

.learndash-wrapper .ld-progress.ld-progress-inline .ld-progress-bar{
    margin-right: 0px!important;
}

.learndash-wrapper .ld-course-status.ld-course-status-enrolled .ld-progress{
    padding: 0 1em 0!important;
}

.learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-list-item-preview {
    padding: 9.5px 16px!important;
}

.learndash-wrapper .ld-item-list .ld-item-list-item {
    border: none!important;
}

.ld-item-list-items {
    padding-left: 23px;
}

.related-posts {
    display: none;
}

.learndash-wrapper .ld-table-list .ld-table-list-header {
    color: #474747!important;
}
.learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-list-item-preview .ld-status-icon {
    margin-right: 12px!important;
	margin-top: 0 !important;
}
.learndash-wrapper .ld-status-incomplete.ld-status-icon,
.learndash-wrapper .ld-status-complete.ld-status-icon {
    border: 1px solid #474747!important;
}

.ld-course-status-seg-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 10px;
}
.learndash-wrapper .ld-course-status.ld-course-status-not-enrolled .ld-course-status-label {
    margin-bottom: 0px!important;
    font-weight: 400!important;;
    font-size: 16px!important;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #3D3B3F!important;
}
.learndash-wrapper .ld-course-status.ld-course-status-not-enrolled>* {
    border-right: 1px solid #9E9EAB!important;
    padding-top: 12px!important;
}
.learndash-wrapper .ld-course-status.ld-course-status-not-enrolled .ld-course-status-content {
    align-items: flex-start!important;
}

.learndash-wrapper .ld-course-status.ld-course-status-not-enrolled {
    padding: 12px 20px!important;
    background: #FAF8F2!important;
}


.ld-course-status-seg-action .ld-course-status-content {
    background: #BAD9E8!important;
    padding: 0px 10px;
    border-radius: 5px;
    height: 34px!important;
    margin: 0 !important;
}

.ld-course-status-seg-action span.ld-text a {
    color: var(--black)!important;
    text-decoration: none !important;
    font-weight: 500!important;
    font-style: Medium;
    font-size: 14px!important;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;

}

.learndash-wrapper .ld-course-status.ld-course-status-not-enrolled>:last-child {
    border-right: 0!important;
}

.learndash-wrapper .ld-primary-background, .learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active:after {
    display: none!important;
}

.learndash-wrapper .ld-tabs .ld-tabs-navigation:after {
    background: #9E9EAB!important;
    height: 2px!important;
}

.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    align-items: stretch!important;
    padding: 12px 16px!important;
}

.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active {
    background: #BAD9E8;
}

.learndash-wrapper .ld-tabs {
    margin: 32px 0 0 0!important;
}
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab .ld-icon {
    margin-right: 8px!important;
}
.ld-tabs-navigation button .ld-text {
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0%;

}
.ld-status-icon.ld-status-complete.ld-secondary-background {
    background: transparent !important;
}
.learndash-wrapper .ld-status-icon .ld-icon:before {
    content: '' !important;
	width: 17px;
    height: 16px;
    display: inline-block;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='16' viewBox='0 0 17 16' fill='none'%3E%3Cpath d='M5 1C4.44687 1 4 1.44687 4 2V14C4 14.5531 4.44687 15 5 15H13C13.5531 15 14 14.5531 14 14V2C14 1.44687 13.5531 1 13 1H5ZM3 2C3 0.896875 3.89688 0 5 0H13C14.1031 0 15 0.896875 15 2V14C15 15.1031 14.1031 16 13 16H5C3.89688 16 3 15.1031 3 14V2ZM6.5 4H11.5C11.775 4 12 4.225 12 4.5C12 4.775 11.775 5 11.5 5H6.5C6.225 5 6 4.775 6 4.5C6 4.225 6.225 4 6.5 4ZM6.5 7H11.5C11.775 7 12 7.225 12 7.5C12 7.775 11.775 8 11.5 8H6.5C6.225 8 6 7.775 6 7.5C6 7.225 6.225 7 6.5 7ZM6.5 10H9.5C9.775 10 10 10.225 10 10.5C10 10.775 9.775 11 9.5 11H6.5C6.225 11 6 10.775 6 10.5C6 10.225 6.225 10 6.5 10Z' fill='%233D3B3F'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 17px 16px;
}
.learndash-incomplete > .ld-table-list-item-quiz {
	background-color: #BAD9E8;
}
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab span {
    display: flex;
    align-items: center;
}
.ld-icon-content:before {
    content: url("data:image/svg+xml,%3Csvg width='12' height='16' viewBox='0 0 12 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 1C1.44687 1 1 1.44687 1 2V14C1 14.5531 1.44687 15 2 15H10C10.5531 15 11 14.5531 11 14V2C11 1.44687 10.5531 1 10 1H2ZM0 2C0 0.896875 0.896875 0 2 0H10C11.1031 0 12 0.896875 12 2V14C12 15.1031 11.1031 16 10 16H2C0.896875 16 0 15.1031 0 14V2ZM3.5 4H8.5C8.775 4 9 4.225 9 4.5C9 4.775 8.775 5 8.5 5H3.5C3.225 5 3 4.775 3 4.5C3 4.225 3.225 4 3.5 4ZM3.5 7H8.5C8.775 7 9 7.225 9 7.5C9 7.775 8.775 8 8.5 8H3.5C3.225 8 3 7.775 3 7.5C3 7.225 3.225 7 3.5 7ZM3.5 10H6.5C6.775 10 7 10.225 7 10.5C7 10.775 6.775 11 6.5 11H3.5C3.225 11 3 10.775 3 10.5C3 10.225 3.225 10 3.5 10Z' fill='%233D3B3F'/%3E%3C/svg%3E")!important;
}

.ld-icon-requisiti:before {
    content: url("data:image/svg+xml,%3Csvg width='14' height='16' viewBox='0 0 14 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 2C0 0.896875 0.847937 0 1.89087 0H11.8179C12.6009 0 13.2361 0.671875 13.2361 1.5V11.5C13.2361 12.1531 12.8402 12.7094 12.2906 12.9156V15H12.7634C13.0234 15 13.2361 15.225 13.2361 15.5C13.2361 15.775 13.0234 16 12.7634 16H1.89087C0.847937 16 0 15.1031 0 14V2ZM9.45435 1H6.61804V5.5L7.75256 4.6C7.92097 4.46562 8.15142 4.46562 8.31982 4.6L9.45435 5.5V1ZM5.67261 1H1.89087C1.36793 1 0.945435 1.44687 0.945435 2V12.2688C1.22316 12.1 1.54519 12 1.89087 12H11.8179C12.0779 12 12.2906 11.775 12.2906 11.5V1.5C12.2906 1.225 12.0779 1 11.8179 1H10.3998V6.5C10.3998 6.69063 10.2993 6.8625 10.1398 6.94688C9.98024 7.03125 9.7882 7.0125 9.64343 6.9L8.03619 5.625L6.42896 6.9C6.28714 7.0125 6.0951 7.03125 5.9326 6.94688C5.77011 6.8625 5.67261 6.69063 5.67261 6.5V1ZM1.89087 13C1.36793 13 0.945435 13.4469 0.945435 14C0.945435 14.5531 1.36793 15 1.89087 15H11.3452V13H1.89087Z' fill='%233D3B3F'/%3E%3C/svg%3E");
}

.learndash-wrapper .ld-item-list .ld-expand-button .ld-text {
	font-size: 0;
	line-height: 0;
}

.learndash-wrapper .ld-item-list .ld-expand-button::after {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	margin-left: 4px;
}

.learndash-wrapper .ld-item-list .ld-expand-button[aria-expanded="true"]::after,
.learndash-wrapper .ld-item-list .ld-item-list-item.ld-expanded .ld-expand-button::after,
.learndash-wrapper .ld-item-list .ld-item-list-item-expanded:not([hidden]) ~ .ld-item-list-item-preview .ld-expand-button::after {
	transform: rotate(-135deg);
}

.learndash-wrapper .ld-expand-button:focus,
.learndash-wrapper .ld-expand-button:focus-visible {
    outline: unset!important;
}

#ld-focus-header {
    display: none!important;
}

@media (max-width: 640px) {
    .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-list-item-preview {
        align-items: center!important; 
        flex-direction: row!important;
    }
}

.matr-course-add-to-cart {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	padding: 12px 16px !important;
	border: 0;
	border-radius: 6px !important;
	background: #bad9e8 !important;
	color: #3d3b3f !important;
	font-family: "Mona Sans", sans-serif;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	transition:
		background-color 0.25s ease,
		opacity 0.25s ease;
}

.matr-course-add-to-cart:hover,
.matr-course-add-to-cart:focus {
	background: #a9cddd !important;
	color: #3d3b3f !important;
}

@media (max-width: 768px) {
	.matr-course-add-to-cart {
		width: 100%;
	}
}

.single-sfwd-courses {
    background: #EBF2F2;
    color: #3D3B3F;
}

.single-sfwd-courses h1.entry-title,
.single-sfwd-courses .entry-header h1 {
    margin-bottom: 32px;
    color: #3D3B3F;
    font-family: "Mona Sans", sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
}

.corso-hero {
    width: 100%;
    max-width: 1378px;
    margin: 0 auto;
}

.corso-hero__image {
    border-radius: 6px;
}

.corso-hero__tags {
    width: auto;
    max-width: min(50%, 240px);
    min-width: 0;
    padding: 4px 8px;
    border-radius: 6px !important;
    font-family: "Mona Sans", sans-serif;
    line-height: 1;
    letter-spacing: 2.4px;
    white-space: nowrap;
}

.learndash-wrapper.learndash-wrapper--course {
    width: 100%;
    max-width: 910px;
}

.learndash-wrapper--course .ld-course-status.ld-course-status-not-enrolled.ld-course-status-custom {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 !important;
    width: 100%;
    max-width: 914px;
    margin: 0 auto !important;
    padding: 12px 32px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #FAF8F2 !important;
    box-shadow: none !important;
}

.learndash-wrapper--course .ld-course-status-custom > .ld-course-status-segment {
    display: flex !important;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-right: 1px solid #9E9EAB !important;
}

.learndash-wrapper--course .ld-course-status-custom > .ld-course-status-segment:first-child {
    padding-left: 0 !important;
}

.learndash-wrapper--course .ld-course-status-custom > .ld-course-status-segment:last-child {
    padding-right: 0 !important;
    border-right: 0 !important;
}

.learndash-wrapper--course .ld-course-status-custom .ld-course-status-seg-icon {
    min-height: 20px;
    margin: 0 0 8px;
    gap: 6px;
}

.learndash-wrapper--course .ld-course-status-custom .ld-course-status-label,
.learndash-wrapper--course .ld-course-status-custom .ld-course-status-value {
    color: #3D3B3F !important;
    font-family: "Host Grotesk", sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.learndash-wrapper--course .ld-course-status-custom .ld-course-status-content {
    width: 100%;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    background: transparent !important;
}

.learndash-wrapper--course .ld-course-status-custom .ld-course-status-action {
    width: 100%;
}

.learndash-wrapper--course .ld-course-status-custom del,
.learndash-wrapper--course .ld-course-status-custom ins {
    color: inherit;
    font-weight: 400;
}

.learndash-wrapper--course .ld-course-status-custom ins {
    margin-left: 4px;
    text-decoration: none;
}

.learndash-wrapper--course .ld-course-status-custom .ld-course-status-seg-action .ld-course-status-content {
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
}

.learndash-wrapper--course .ld-course-status-custom .matr-course-add-to-cart {
    min-height: 34px;
    padding: 10px 8px !important;
}

.learndash-wrapper--course .ld-tabs {
    margin-top: 32px !important;
}

.learndash-wrapper--course .ld-tabs .ld-tabs-navigation {
    gap: 2px;
}

.learndash-wrapper--course .ld-tabs .ld-tabs-navigation .ld-tab {
    min-height: 42px;
    padding: 12px 16px !important;
    border-radius: 6px 6px 0 0;
    color: #3D3B3F !important;
}

.learndash-wrapper--course .ld-tabs .ld-tabs-navigation .ld-tab.ld-active {
    background: #BAD9E8 !important;
}

.learndash-wrapper--course .ld-tabs .ld-tabs-navigation .ld-tab .ld-text {
    font-family: "Mona Sans", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

.learndash-wrapper--course .ld-tabs-content {
    padding-top: 24px;
}

.learndash-wrapper--course .ld-tabs-content,
.learndash-wrapper--course .ld-tabs-content p,
.learndash-wrapper--course .ld-tabs-content li {
    color: #3D3B3F;
    font-family: "Host Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
}

.learndash-wrapper--course .ld-lesson-list {
    margin-top: 24px !important;
}

.learndash-wrapper--course .ld-lesson-list .ld-section-heading {
    margin-bottom: 8px !important;
}

.learndash-wrapper--course .ld-lesson-list .ld-section-heading h2 {
    margin: 0 !important;
    color: #3D3B3F !important;
    font-family: "Mona Sans", sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

.learndash-wrapper--course .ld-lesson-list > .ld-section-heading .ld-item-list-actions {
    display: none !important;
}

.learndash-wrapper--course .ld-lesson-list > .ld-item-list-items {
    padding-left: 0 !important;
}

.learndash-wrapper--course .ld-lesson-list > .ld-item-list-items > .ld-item-list-item {
    margin: 8px 0 !important;
    border: 1px solid #EBF2F2 !important;
    border-radius: 6px !important;
    background: #FAF8F2 !important;
    box-shadow: none !important;
}

.learndash-wrapper--course .ld-lesson-list > .ld-item-list-items > .ld-item-list-item > .ld-item-list-item-preview {
    min-height: 40px;
    padding: 9px 16px !important;
    background: #FFF !important;
}

.learndash-wrapper--course .ld-lesson-list .ld-item-list-item-preview .ld-item-name,
.learndash-wrapper--course .ld-lesson-list .ld-item-list-item-preview .ld-item-title {
    color: #3D3B3F !important;
    font-family: "Host Grotesk", sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.learndash-wrapper--course .ld-lesson-list .ld-status-icon {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    margin-right: 12px !important;
    border-color: #474747 !important;
	flex-basis: auto;
}

.learndash-wrapper--course .ld-lesson-list .ld-status-icon.ld-status-complete .ld-icon-checkmark:before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5L9.5 17L19 7.5' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.learndash-wrapper--course .ld-lesson-list .ld-expand-button {
    color: #3D3B3F !important;
}

.learndash-wrapper--course .ld-lesson-list .ld-item-list-item-expanded,
.learndash-wrapper--course .ld-lesson-list .ld-item-list-item-expanded[style] {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #EBF2F2 !important;
}

.learndash-wrapper--course .ld-lesson-list .ld-item-list-item-expanded .ld-table-list,
.learndash-wrapper--course .ld-lesson-list .ld-item-list-item-expanded .ld-table-list-items {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #EBF2F2 !important;
}

.learndash-wrapper--course .ld-lesson-list .ld-item-list-item-expanded .ld-table-list-header {
    min-height: 36px;
    padding: 8px 24px 8px 44px !important;
    border: 0 !important;
    background: #BAD9E8 !important;
    color: #3D3B3F !important;
    font-family: "Host Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.learndash-wrapper--course .ld-lesson-list .ld-item-list-item-expanded .ld-table-list-items {
    padding: 0 !important;
}

.learndash-wrapper--course .ld-lesson-list .ld-item-list-item-expanded .ld-table-list-item {
    min-height: 36px;
    border: 0 !important;
    border-bottom: 1px solid #9E9EAB !important;
    background: transparent !important;
	margin: 0 !important;
}

.learndash-wrapper--course .ld-lesson-list .ld-item-list-item-expanded .ld-table-list-item:last-child {
    border-bottom: 0 !important;
}

.learndash-wrapper--course .ld-lesson-list .ld-item-list-item-expanded .ld-table-list-item-preview {
    min-height: 36px;
    padding: 16px 0 16px 44px !important;
    color: #3D3B3F !important;
    font-family: "Host Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-list-item-expanded:before {
	height: 10px !important;
    left: 49px !important;
    top: -7px !important;
    width: 18px !important;
}

/* ---------- Mobile price row above hero ---------- */
.matr-course-mobile-price {
    display: none;
}

/* ---------- Recently viewed courses ---------- */
.matr-recent-courses {
    margin: 112px auto 72px;
}

.matr-recent-courses__title {
    margin: 0 0 48px;
    color: #3D3B3F;
    font-family: "Mona Sans", sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
}

.matr-recent-courses__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.matr-recent-course-card {
    min-width: 0;
    background: #FAF8F2;
    border-radius: 6px;
    overflow: hidden;
}

.matr-recent-course-card .matr-course-card__image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 310 / 227;
    margin: 8px;
    overflow: hidden;
    border-radius: 6px;
    background: #DDE5E2;
}

.matr-recent-course-card .matr-course-card__image {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.matr-recent-course-card:hover .matr-course-card__image {
    transform: scale(1.025);
}

.matr-recent-course-card__shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(0, 0, 0, .2);
    pointer-events: none;
}

.matr-recent-course-card .matr-course-card__badge {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    min-height: 33px;
    padding: 6px 8px;
    border-radius: 4px;
    font-family: "Mona Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.matr-recent-course-card .matr-course-card__badge .site-brand-wrap {
    display: flex;
    align-items: center;
    height: 19px;
    margin-right: 8px;
    padding-right: 8px;
    border-right: 1px solid currentColor;
}

.matr-recent-course-card .matr-course-card__badge svg {
    display: block;
}

.matr-recent-course-card .matr-course-card__meta {
    position: absolute;
    z-index: 3;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    color: #FAF8F2;
    font-family: "Host Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.1;
}

.matr-recent-course-card .matr-course-card__meta-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 4px;
}

.matr-recent-course-card .matr-course-card__meta-item svg {
    width: 20px;
    min-width: 20px;
    height: 20px;
}

.matr-recent-course-card .matr-course-card__content {
    padding: 0 16px 16px;
}

.matr-recent-course-card .matr-course-card__title {
    min-height: 44px;
    margin: 0 0 8px;
    font-family: "Mona Sans", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
}

.matr-recent-course-card .matr-course-card__title a {
    color: #3D3B3F;
    text-decoration: none;
}

.matr-recent-course-card .matr-course-card__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 24px;
    margin-bottom: 8px;
    color: #3D3B3F;
    font-family: "Host Grotesk", sans-serif;
    font-size: 16px;
}

.matr-recent-course-card .matr-course-card__price del {
    margin-right: 4px;
}

.matr-recent-course-card .matr-course-card__discount {
    padding: 4px 8px;
    border-radius: 6px;
    background: #EBF2F2;
    font-family: "Mona Sans", sans-serif;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
}

.matr-recent-course-card .matr-course-card__actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.matr-recent-course-card .matr-course-card__actions .default-btn {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #3D3B3F;
    border-radius: 6px;
    background: transparent;
    color: #3D3B3F;
    font-family: "Mona Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.matr-recent-course-card .matr-course-card__discover {
    flex: 1 1 auto;
}

.matr-recent-course-card .matr-course-card__plus {
    width: 40px;
    min-width: 40px;
    padding: 8px !important;
    font-size: 20px !important;
    font-weight: 400 !important;
}

.matr-recent-courses__pagination,
.matr-course-mobile-sticky {
    display: none;
}

.course__badge--adulti {
	background: var(--matr-desert-sand) !important;
	color: var(--matr-seal-brown) !important;
}

.course__badge--infanzia {
	background: var(--matr-dun) !important;
	color: var(--matr-field-drab) !important;
}

.course__badge--azienda {
	background: var(--matr-thistle) !important;
	color: var(--matr-english-violet) !important;
}

.course__badge--sport {
	background: var(--matr-drab-dark-brown) !important;
	color: var(--matr-ash-gray) !important;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .matr-recent-courses__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
	body.single-sfwd-courses.separate-containers .inside-article {
		padding: 16px;
	}
}

@media (max-width: 768px) {
    .single-sfwd-courses h1.entry-title,
    .single-sfwd-courses .entry-header h1 {
        margin-bottom: 16px;
        font-size: 20px;
        line-height: 1.15;
    }

    .matr-course-mobile-price {
        display: flex;
        width: 100%;
        margin: 0 0 16px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: #3D3B3F;
        font-family: "Host Grotesk", sans-serif;
        font-size: 16px;
        font-weight: 700;
        line-height: 1;
    }

    .matr-course-mobile-price__amount {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .matr-course-mobile-price__amount ins {
        text-decoration: none;
    }

    .matr-course-mobile-price__promo {
        padding: 4px 8px;
        border-radius: 6px;
        background: #FAF8F2;
        font-family: "Mona Sans", sans-serif;
        font-size: 12px;
        font-weight: 400;
        line-height: 1;
        text-transform: uppercase;
    }

    .corso-hero,
    .learndash-wrapper.learndash-wrapper--course {
        width: 100%;
        max-width: none;
    }

    .corso-hero__image {
        margin-bottom: 16px;
    }

    .corso-hero__image img {
        height: 386px;
    }

    .corso-hero__tags {
        left: 16px;
        bottom: 16px;
        max-width: 55%;
    }

    .corso-hero__cat {
        right: 16px;
        bottom: 16px;
    }

    .learndash-wrapper--course .ld-course-status.ld-course-status-not-enrolled.ld-course-status-custom {
        display: grid !important;
        grid-template-columns: 1fr;
        padding: 16px !important;
    }

    .learndash-wrapper--course .ld-course-status-custom > .ld-course-status-segment,
    .learndash-wrapper--course .ld-course-status-custom > .ld-course-status-segment:first-child,
    .learndash-wrapper--course .ld-course-status-custom > .ld-course-status-segment:last-child {
        width: 100%;
        min-height: 74px;
        padding: 16px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #9E9EAB !important;
    }

    .learndash-wrapper--course .ld-course-status-custom > .ld-course-status-segment:first-child {
        padding-top: 0 !important;
    }

    .learndash-wrapper--course .ld-course-status-custom > .ld-course-status-segment:last-child {
        min-height: 0;
        padding-bottom: 0 !important;
        border-bottom: 0 !important;
    }

    .learndash-wrapper--course .ld-course-status-custom .matr-course-add-to-cart {
        min-height: 40px;
        padding: 12px 16px !important;
    }

    .learndash-wrapper--course .ld-tabs {
        margin-top: 32px !important;
    }

    .learndash-wrapper--course .ld-tabs .ld-tabs-navigation {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .learndash-wrapper--course .ld-tabs .ld-tabs-navigation::-webkit-scrollbar {
        display: none;
    }

    .learndash-wrapper--course .ld-tabs .ld-tabs-navigation .ld-tab {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 12px 16px !important;
    }

    .learndash-wrapper--course .ld-tabs .ld-tabs-navigation .ld-tab .ld-text {
        font-size: 16px;
    }

    .learndash-wrapper--course .ld-tabs-content {
        padding-top: 24px;
    }

    .learndash-wrapper--course .ld-lesson-list {
        margin-top: 24px !important;
    }

    .learndash-wrapper--course .ld-lesson-list .ld-section-heading h2 {
        font-size: 18px !important;
    }

    .learndash-wrapper--course .ld-lesson-list .ld-item-list-item-expanded .ld-table-list-header {
        padding-right: 16px !important;
        padding-left: 44px !important;
    }

    .learndash-wrapper--course .ld-lesson-list .ld-item-list-item-expanded .ld-table-list-items {
        padding-left: 44px !important;
    }

    .matr-recent-courses {
        width: 100%;
        margin-top: 112px;
        overflow: hidden;
    }

    .matr-recent-courses__title {
        margin-bottom: 32px;
        padding-right: 16px;
        font-size: 20px;
        line-height: 1.15;
    }

    .matr-recent-courses__viewport {
        width: 100%;
        overflow-x: auto;
        padding-right: 16px;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .matr-recent-courses__viewport::-webkit-scrollbar {
        display: none;
    }

    .matr-recent-courses__grid {
        display: flex;
        width: max-content;
        gap: 16px;
    }

    .matr-recent-course-card {
        width: min(342px, calc(100vw - 48px));
        flex: 0 0 min(342px, calc(100vw - 48px));
        scroll-snap-align: start;
    }

    .matr-recent-course-card .matr-course-card__title {
        min-height: 0;
    }

    .matr-recent-courses__pagination {
        display: flex;
        margin-top: 16px;
        align-items: center;
        gap: 4px;
    }

    .matr-recent-courses__pagination span {
        width: 3px;
        height: 3px;
        border-radius: 999px;
        background: #BAD9E8;
        transition: width .2s ease;
    }

    .matr-recent-courses__pagination span.is-active {
        width: 37px;
    }

    .matr-course-mobile-sticky {
        position: fixed;
        z-index: 9990;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        padding: 16px;
        background: #FAF8F2;
        box-shadow: 0 -6px 20px rgba(61, 59, 63, .08);
        transition: transform .25s ease, opacity .25s ease;
    }

    .matr-course-mobile-sticky.is-hidden {
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
    }

    .matr-course-mobile-sticky__button {
        display: flex;
        min-height: 40px;
        width: 100%;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        border-radius: 6px;
        background: #BAD9E8;
        color: #3D3B3F;
        font-family: "Mona Sans", sans-serif;
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        text-align: center;
        text-decoration: none;
        text-transform: uppercase;
    }
}

.learndash-wrapper.learndash-wrapper--course .ld-course-status.ld-course-status-not-enrolled.ld-course-status-custom {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 914px !important;
    margin: 0 auto 32px !important;
    padding: 12px 32px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #FAF8F2 !important;
    box-shadow: none !important;
}

.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom > .ld-course-status-segment {
    box-sizing: border-box !important;
    display: flex !important;
    flex: none !important;
    flex-basis: auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-right: 1px solid #9E9EAB !important;
    background: transparent !important;
    text-align: left !important;
}

.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom > .ld-course-status-segment:first-child {
    padding-left: 0 !important;
	min-height: 72px;
}

.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom > .ld-course-status-segment:last-child {
    padding-right: 0 !important;
    border-right: 0 !important;
}

.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .ld-course-status-seg-icon {
    display: flex !important;
    flex: none !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    min-height: 20px !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    text-align: left !important;
}

.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .ld-course-status-seg-icon svg {
    display: block !important;
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
}

.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .ld-course-status-label,
.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .ld-course-status-value {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #3D3B3F !important;
    font-family: "Host Grotesk", sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
}

@media (min-width: 768px) {
    .learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .ld-course-status-label,
    .learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .ld-course-status-value {
        white-space: nowrap !important;
    }
}

.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .ld-course-status-content {
    box-sizing: border-box !important;
    display: flex !important;
    flex: none !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
	height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
}

.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .ld-course-status-action {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .ld-course-status-seg-action .ld-course-status-content {
    height: auto !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom del,
.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom ins,
.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .woocommerce-Price-amount {
    color: #3D3B3F !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom del {
    margin-right: 6px !important;
}

.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom ins {
    margin-left: 0 !important;
    text-decoration: none !important;
}

.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .matr-course-add-to-cart,
.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .ld-course-status-action > .ld-button,
.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .ld-course-status-action .ld-button {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #BAD9E8 !important;
    box-shadow: none !important;
    color: #3D3B3F !important;
    font-family: "Mona Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .matr-course-add-to-cart:hover,
.learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .ld-course-status-action .ld-button:hover {
    background: #A9CDDD !important;
    color: #3D3B3F !important;
}

@media (max-width: 767px) {
    .learndash-wrapper.learndash-wrapper--course .ld-course-status.ld-course-status-not-enrolled.ld-course-status-custom {
        grid-template-columns: 1fr !important;
        max-width: none !important;
        margin-bottom: 32px !important;
        padding: 16px !important;
    }

    .learndash-wrapper.learndash-wrapper--course .ld-course-status-custom > .ld-course-status-segment,
    .learndash-wrapper.learndash-wrapper--course .ld-course-status-custom > .ld-course-status-segment:first-child,
    .learndash-wrapper.learndash-wrapper--course .ld-course-status-custom > .ld-course-status-segment:last-child {
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 0 16px !important;
        border: 0 !important;
        border-bottom: 1px solid #9E9EAB !important;
    }

    .learndash-wrapper.learndash-wrapper--course .ld-course-status-custom > .ld-course-status-segment:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: 0 !important;
    }

    .learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .ld-course-status-label,
    .learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .ld-course-status-value {
        white-space: normal !important;
    }

    .learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .matr-course-add-to-cart,
    .learndash-wrapper.learndash-wrapper--course .ld-course-status-custom .ld-course-status-action .ld-button {
        min-height: 40px !important;
        padding: 12px 16px !important;
    }
}

/* =========================================================
   Course status box – "Aggiungi al carrello" (Figma 11214:5805)
   Overrides LearnDash's inline .ld-button colour (#474747 !important).
   ========================================================= */
#page .learndash-wrapper .ld-course-status-custom .ld-course-status-action a.matr-course-add-to-cart,
#page .learndash-wrapper .ld-course-status-custom .ld-course-status-action a.matr-course-add-to-cart:hover,
#page .learndash-wrapper .ld-course-status-custom .ld-course-status-action a.matr-course-add-to-cart:focus {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	padding: 12px !important;
	background: #bad9e8 !important;
	background-color: #bad9e8 !important;
	color: #3d3b3f !important;
	border: 0 !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	font-family: "Mona Sans", sans-serif !important;
	font-weight: 500 !important;
	font-size: 14px !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	white-space: nowrap;
	opacity: 1 !important;
	transition: 0.4s;
}

/* Hover: rounded like the product cards SCOPRI button (product-list-block-style.css) */
#page .learndash-wrapper .ld-course-status-custom .ld-course-status-action a.matr-course-add-to-cart:hover {
	border-radius: 50px !important;
}

#page .learndash-wrapper .ld-course-status-custom .ld-course-status-action a.matr-course-add-to-cart:focus-visible {
	outline: 2px solid #3d3b3f !important;
	outline-offset: 2px;
}

/* =========================================================
   Recent courses cards – category label colours (same as course archive)
   ========================================================= */
.matr-recent-course-card .matr-course-card__badge--adulti {
    background: var(--matr-desert-sand, #CBA592) !important;
    color: var(--matr-seal-brown, #6C321D) !important;
}
.matr-recent-course-card .matr-course-card__badge--infanzia {
    background: var(--matr-dun, #DDC5A3) !important;
    color: var(--matr-field-drab, #6A4F29) !important;
}
.matr-recent-course-card .matr-course-card__badge--azienda {
    background: var(--matr-thistle, #C4B7CE) !important;
    color: var(--matr-english-violet, #4D3A60) !important;
}
.matr-recent-course-card .matr-course-card__badge--sport {
    background: var(--matr-drab-dark-brown, #3C4022) !important;
    color: var(--matr-ash-gray, #A8AA9C) !important;
}
.matr-recent-course-card .matr-course-card__badge .site-brand-wrap {
    border-right-color: currentColor !important;
}
.matr-recent-course-card .matr-course-card__badge svg path {
    fill: currentColor;
}

/* Recent courses cards – owned courses: Continua / Completato with progress fill */
.matr-recent-course-card .matr-course-card__continue {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.matr-recent-course-card .matr-course-card__continue-progress {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--course-progress, 0%);
    background: #d2e6ed;
    z-index: -1;
    transition: width 0.3s ease;
}
.matr-recent-course-card .matr-course-card__continue-label {
    position: relative;
    z-index: 1;
}

/* =========================================================
   Mobile: hide the sticky "Aggiungi al carrello" while the
   hamburger menu is open (the menu sits below it otherwise).
   ========================================================= */
body.menu-open .matr-course-mobile-sticky {
	display: none !important;
}

/* Tab selezionato: testo scuro come gli altri tab */
html body .learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active,
html body .learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active .ld-text,
html body .learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active .ld-icon {
	color: #3D3B3F !important;
}
