.casco-mag-metodologie {
	--casco-mag-separator-color: #d7d7d7;
	--casco-mag-overlay-color: rgba(0, 0, 0, 0.72);
	box-sizing: border-box;

	border: 1px solid #bdbdbd;
    padding: 20px;
    border-radius: 20px;

}

.casco-mag-metodologie *,
.casco-mag-metodologie *::before,
.casco-mag-metodologie *::after {
	box-sizing: border-box;
}


.casco-mag-metodologie__heading-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;

    background-color: #f2f2f2;
    padding: 8px;
    border-radius: 10px;
    margin: -10px -10px 15px -10px;
    width: calc(100% + 20px);
}

.casco-mag-metodologie__heading {
	margin-top: 0;
	margin-bottom: 0!important;

}

.casco-mag-metodologie__heading-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;

	font-size: 20px;
	line-height: 1;
	color: #c8c8c8;
}


.casco-mag-metodologie__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.casco-mag-metodologie__item {
	margin: 0;
	padding: 0;
}

.casco-mag-metodologie--separators .casco-mag-metodologie__item + .casco-mag-metodologie__item::before {
	content: "";
	display: block;
	width: 100%;
	height: 1px;
	margin: 8px auto;
	background-color: var(--casco-mag-separator-color);
}

.casco-mag-metodologie__trigger {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	margin: 0;
	padding: 10px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font: inherit;
	text-align: inherit;
	color: inherit;
	cursor: pointer;
}

.casco-mag-metodologie__trigger:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.casco-mag-metodologie__item-title,
.casco-mag-metodologie__excerpt {
	display: block;
}

.casco-mag-metodologie__item-title {
	margin-bottom: 6px;
	font-weight: 700;
	transition: color 160ms ease;
	text-wrap: balance;
}

.casco-mag-metodologie__item:hover .casco-mag-metodologie__item-title {
	text-decoration: underline;
}

.casco-mag-metodologie__excerpt {
	margin: 0;

	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;	
}

.casco-mag-metodologie template {
	display: none;
}

.casco-mag-modal {
	width: 760px;
	max-width: calc(100vw - 32px);
	max-height: 88vh;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 16px;
	background-color: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
	overflow: auto;
	overscroll-behavior: contain;
}

.casco-mag-modal:not([open]) {
	display: none;
}

.casco-mag-modal::backdrop {
	background-color: var(--casco-mag-overlay-color);
	backdrop-filter: blur(1px);
}

.casco-mag-modal__panel {
	position: relative;
	min-height: 100%;
	padding: 40px;
}

.casco-mag-modal__close {
	-webkit-appearance: none;
	appearance: none;

	position: absolute;
    right: 10px;
    top: 10px;

	z-index: 2;
	display: flex;
	align-items: center;
	gap: 7px;
	width: max-content;
	margin: 0 0 16px auto;
	padding: 10px 13px!important;
	border: 0;
	border-radius: 999px;
	background-color: #f1f1f1;
	color: #111;
	font: inherit;
	line-height: 1;
	cursor: pointer;
}

.casco-mag-modal__close:hover {
	filter: brightness(0.96);
}

.casco-mag-modal__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.casco-mag-modal__close-icon {
	font-size: 1.35em;
	line-height: 0.8;
}

.casco-mag-modal__title {
	margin-top: 0;
	margin-bottom: 20px;
}

.casco-mag-modal__content > :first-child,
.casco-mag-modal__bibliography > :first-child {
	margin-top: 0;
}

.casco-mag-modal__content > :last-child,
.casco-mag-modal__bibliography > :last-child {
	margin-bottom: 0;
}

.casco-mag-modal__content a,
.casco-mag-modal__bibliography a {
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.casco-mag-modal__bibliography-section {
	margin-top: 30px;
    background-color: #f2f2f2;
    padding: 24px;
    border-radius: 18px;
}

.casco-mag-modal__bibliography-label {
	margin-top: 0;
	margin-bottom: 0px;
}


.casco-mag-modal__bibliography-label-secondary {
	margin-top: 0;
	margin-bottom: 20px;
	color: var( --e-global-color-6ea796d );
}

.casco-mag-modal__bibliography ul,
.casco-mag-modal__bibliography ol {
	padding-inline-start: 1.4em;
}

body.casco-mag-modal-open {
	overflow: hidden;
}

.casco-mag-modal.casco-mag-modal--fallback {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 999999;
	display: block;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 100vmax var(--casco-mag-overlay-color), 0 24px 80px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
	.casco-mag-modal {
		max-width: calc(100vw - 20px);
		max-height: calc(100vh - 20px);
	}

	.casco-mag-modal__panel {
		padding: 24px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.casco-mag-modal[open]:not(.casco-mag-modal--fallback) {
		animation: casco-mag-modal-in 160ms ease-out;
	}

	@keyframes casco-mag-modal-in {
		from {
			opacity: 0;
			transform: translateY(8px) scale(0.99);
		}
		to {
			opacity: 1;
			transform: translateY(0) scale(1);
		}
	}
}
