/* [popup centrale="..."] — pulsante trigger + modale.
   Stessa resa visiva di .alp-consumo-link / .alp-consumo-modal-overlay in
   themes/alperia/assets/css/consumo-modal.css, per coerenza col resto del sito. */

.alp-centrale-popup__trigger {
	background: none;
	border: none;	
	padding: 0 12px;
	padding-top: 20px;
	margin: 0;
	font: inherit;
	font-weight: 700;
	color: var(--1, #333E48);
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}

.alp-centrale-popup__trigger:hover {
	opacity: .85;
}

.alp-centrale-popup__trigger:focus-visible {
	outline: 3px solid var(--1, #333E48);
	outline-offset: 2px;
}

.alp-centrale-popup__overlay {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .5);
	z-index: 100000;
	padding: 20px;
}

.alp-centrale-popup__overlay[hidden] {
	display: none;
}

.alp-centrale-popup__dialog {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 32px;
	max-width: 720px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
}

.alp-centrale-popup__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: var(--bluetext, #1a3a5c);
	cursor: pointer;
	padding: 4px;
}

.alp-centrale-popup__close:hover {
	opacity: .7;
}

.alp-centrale-popup__close:focus-visible {
	outline: 3px solid var(--1, #005ba1);
	outline-offset: 2px;
	border-radius: 4px;
}

.alp-centrale-popup__title {
	margin: 0 32px 16px 0;
	font-size: 22px;
	color: var(--bluetext, #1a3a5c);
}

.alp-centrale-popup__body {
	font-size: 15px;
	color: var(--bluetext, #1a3a5c);
	line-height: 1.6;
}

.alp-centrale-popup__body table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
}

.alp-centrale-popup__body table td,
.alp-centrale-popup__body table th {
	border: 1px solid var(--4, #dadfe4);
	padding: 8px 12px;
	text-align: left;
}

@media (prefers-reduced-motion: reduce) {
	.alp-centrale-popup__trigger,
	.alp-centrale-popup__close {
		transition: none;
	}
}
