.edx-bf26[hidden]{display:none!important}
.edx-bf26{
	position:fixed;inset:0;z-index:2147483000;
	display:flex;align-items:center;justify-content:center;
	padding:12px;box-sizing:border-box;
	opacity:0;transition:opacity .35s ease;
}
.edx-bf26.is-open{opacity:1}
.edx-bf26 *,.edx-bf26 *::before,.edx-bf26 *::after{box-sizing:border-box}

.edx-bf26__backdrop{
	position:absolute;inset:0;
	background:radial-gradient(ellipse at center,rgba(60,0,0,.78) 0%,rgba(0,0,0,.88) 100%);
	-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
}

.edx-bf26__dialog{
	position:relative;display:flex;flex-direction:column;align-items:center;
	max-width:100%;max-height:100%;outline:none;
	transform:translateY(14px) scale(.96);transition:transform .35s cubic-bezier(.2,.8,.2,1);
}
.edx-bf26.is-open .edx-bf26__dialog{transform:none}

.edx-bf26__imglink{display:block;line-height:0;border-radius:18px;overflow:hidden;
	box-shadow:0 0 0 2px #d4a63a,0 0 36px rgba(212,166,58,.45),0 18px 60px rgba(0,0,0,.7)}
.edx-bf26__imglink img{
	display:block;width:auto;height:auto;
	max-width:min(94vw,600px);
	max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);
}

.edx-bf26__close{
	position:absolute;top:-10px;right:-10px;z-index:2;
	width:44px;height:44px;padding:0;margin:0;border-radius:50%;
	border:2px solid #d4a63a;background:#111;color:#fff;
	font:400 28px/1 Arial,sans-serif;cursor:pointer;
	display:flex;align-items:center;justify-content:center;
	box-shadow:0 4px 14px rgba(0,0,0,.6);transition:background .2s,color .2s;
}
.edx-bf26__close:hover,.edx-bf26__close:focus-visible{background:#b3111b;color:#fff}
.edx-bf26__close:focus-visible,.edx-bf26__cta:focus-visible,.edx-bf26__imglink:focus-visible{outline:3px solid #fff;outline-offset:3px}

.edx-bf26__cta{
	margin-top:14px;display:inline-block;padding:13px 34px;border-radius:999px;
	background:linear-gradient(180deg,#f3d27a 0%,#d4a63a 55%,#b88a22 100%);
	color:#1a1206!important;font:700 16px/1.2 Georgia,'Times New Roman',serif;letter-spacing:.06em;text-transform:uppercase;
	text-decoration:none!important;box-shadow:0 6px 22px rgba(212,166,58,.45);transition:transform .15s,box-shadow .15s;
}
.edx-bf26__cta:hover{transform:translateY(-1px);box-shadow:0 8px 26px rgba(212,166,58,.65)}

.edx-bf26__timer{
	margin:10px 0 0;padding:0;min-height:1.2em;
	color:#f3d27a;font:600 13px/1.3 Arial,sans-serif;letter-spacing:.04em;text-align:center;
	text-shadow:0 1px 3px rgba(0,0,0,.8);font-variant-numeric:tabular-nums;
}
.edx-bf26__timer:empty{display:none}

.edx-bf26__sr{
	position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
	clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

@media (max-width:640px),(max-height:520px){
	/* su schermi piccoli il pulsante sta sopra la grafica, senza coprirla */
	.edx-bf26__dialog{padding-top:50px}
	.edx-bf26__close{top:0;right:0}
	.edx-bf26__imglink img{max-height:calc(100vh - 200px);max-height:calc(100dvh - 200px)}
}
@media (max-width:480px){
	.edx-bf26{padding:10px}
	.edx-bf26__cta{padding:12px 26px;font-size:15px}
}
@media (prefers-reduced-motion:reduce){
	.edx-bf26,.edx-bf26__dialog{transition:none}
}
