/**
 * Life Color — 28/11/2026
 * Note: stili del popup "Panettoni 2026" e del bottone fluttuante a panettone.
 */

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

/* Popup */
.lc-panettoni-popup {
	position: fixed;
	inset: 0;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #fbf5e8;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
	width: auto;
	max-width: min(480px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: visible;
	color: #222;
}

.lc-panettoni-popup::backdrop {
	background: rgba(20, 10, 5, 0.72);
}

.lc-panettoni-popup[open] {
	display: block;
	animation: lc-panettoni-entra 0.28s ease-out;
}

.lc-panettoni-popup__link {
	display: block;
	line-height: 0;
	border-radius: 10px;
	overflow: hidden;
}

.lc-panettoni-popup__link:focus-visible {
	outline: 3px solid #a3191f;
	outline-offset: 3px;
}

.lc-panettoni-popup__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	margin: 0 auto;
}

.lc-panettoni-popup__chiudi {
	position: absolute;
	top: -14px;
	right: -14px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #a3191f;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.lc-panettoni-popup__chiudi:hover {
	background: #7d1217;
	transform: scale(1.06);
}

.lc-panettoni-popup__chiudi:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

/* Su schermi stretti la X resta dentro lo schermo, sul bordo del volantino */
@media (max-width: 600px) {
	.lc-panettoni-popup__chiudi {
		top: -12px;
		right: -10px;
		width: 40px;
		height: 40px;
	}
}

/* Pagina ferma mentre il popup è aperto */
html.lc-panettoni-aperto {
	overflow: hidden;
}

/* Bottone fluttuante: sopra il "torna su" del tema (#edgtf-back-to-top) e sopra il banner cookie */
.lc-panettoni-fab {
	position: fixed;
	right: 26px;
	bottom: 82px;
	z-index: 9990;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	padding: 0;
	border: 3px solid #a3191f;
	border-radius: 50%;
	background: #fbf5e8;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	animation: lc-panettoni-entra 0.3s ease-out;
}

.lc-panettoni-fab[hidden] {
	display: none;
}

.lc-panettoni-fab:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.lc-panettoni-fab:focus-visible {
	outline: 3px solid #a3191f;
	outline-offset: 4px;
}

@media (max-width: 600px) {
	.lc-panettoni-fab {
		right: 16px;
		bottom: 76px;
		width: 60px;
		height: 60px;
	}
}

@keyframes lc-panettoni-entra {
	from {
		opacity: 0;
		transform: scale(0.94);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.lc-panettoni-popup[open],
	.lc-panettoni-fab {
		animation: none;
	}

	.lc-panettoni-fab,
	.lc-panettoni-popup__chiudi {
		transition: none;
	}

	.lc-panettoni-fab:hover {
		transform: none;
	}
}
