/* Popup Privacy / Cookie del footer */
.mda-fl {
	--mda-fl-blue: #042464;
	--mda-fl-text: #2b2f36;
	--mda-fl-muted: #6b7280;
	--mda-fl-line: #e5e5e7;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: "Open Sans", sans-serif;
}
.mda-fl[hidden] { display: none; }
.mda-fl__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 36, 100, .55);
	animation: mda-fl-fade .2s ease-out;
}
.mda-fl__box {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 760px;
	max-height: min(86vh, 860px);
	background: #fff;
	color: var(--mda-fl-text);
	border-radius: 6px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
	animation: mda-fl-in .25s cubic-bezier(.2, .8, .2, 1);
}
.mda-fl__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px 8px;
}
.mda-fl__title {
	margin: 0;
	font-family: "Gilda Display", serif;
	font-size: 26px;
	font-weight: 400;
	color: var(--mda-fl-blue);
}
.mda-fl__x {
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--mda-fl-blue);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.mda-fl__x:hover, .mda-fl__x:focus-visible { background: #f1f2f6; }
.mda-fl__tabs {
	display: flex;
	gap: 4px;
	padding: 0 24px;
	border-bottom: 1px solid var(--mda-fl-line);
}
.mda-fl__tabs button {
	padding: 10px 14px;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	background: transparent;
	color: var(--mda-fl-muted);
	font: inherit;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
}
.mda-fl__tabs button[aria-selected="true"] {
	color: var(--mda-fl-blue);
	border-bottom-color: var(--mda-fl-blue);
	font-weight: 600;
}
.mda-fl__body {
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 20px 24px 28px;
	font-size: 14px;
	line-height: 1.65;
}
.mda-fl__panel:focus { outline: none; }
.mda-fl__panel h1, .mda-fl__panel h2, .mda-fl__panel h3, .mda-fl__panel h4, .mda-fl__panel h5 {
	margin: 1.4em 0 .4em;
	font-family: "Gilda Display", serif;
	font-weight: 400;
	line-height: 1.25;
	color: var(--mda-fl-blue);
}
.mda-fl__panel h1, .mda-fl__panel h2 { font-size: 21px; }
.mda-fl__panel h3, .mda-fl__panel h4, .mda-fl__panel h5 { font-size: 17px; }
.mda-fl__panel > :first-child, .mda-fl__panel > :first-child > :first-child { margin-top: 0; }
.mda-fl__panel p, .mda-fl__panel ul { margin: 0 0 .8em; }
.mda-fl__panel ul { padding-left: 1.2em; }
.mda-fl__panel a { color: var(--mda-fl-blue); text-decoration: underline; }
.mda-fl__group { margin-top: 18px; }
.mda-fl__group ul { list-style: none; padding: 0; }
.mda-fl__group li { padding: 8px 0; border-top: 1px solid var(--mda-fl-line); }
.mda-fl__group li strong { color: var(--mda-fl-blue); word-break: break-word; }
.mda-fl__group small { display: block; color: var(--mda-fl-muted); }
.mda-fl__empty { color: var(--mda-fl-muted); font-style: italic; }
.mda-fl__btn {
	margin-top: 18px;
	padding: 12px 20px;
	border: 0;
	border-radius: 3px;
	background: var(--mda-fl-blue);
	color: #fff;
	font: inherit;
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
}
.mda-fl__btn:hover, .mda-fl__btn:focus-visible { background: #0a3591; }
html.mda-fl-lock, html.mda-fl-lock body { overflow: hidden; }

/* Riga crediti */
.mda-fl-credits { margin: 0; line-height: 1.8; }

@keyframes mda-fl-fade { from { opacity: 0; } }
@keyframes mda-fl-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

@media (max-width: 600px) {
	.mda-fl { padding: 0; align-items: flex-end; }
	.mda-fl__box { max-height: 92vh; max-height: 92dvh; border-radius: 12px 12px 0 0; }
	.mda-fl__head { padding: 16px 16px 4px; }
	.mda-fl__title { font-size: 22px; }
	.mda-fl__tabs { padding: 0 16px; }
	.mda-fl__body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
	.mda-fl__backdrop, .mda-fl__box { animation: none; }
}
