/* Stili aggiuntivi per la demo simulata PhotoNorm Enroll — sopra a ../assets/css/main.css */

.pn-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5em;
	justify-content: center;
	margin: 2em 0;
}

.pn-card {
	width: 280px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
	text-align: center;
	transition: box-shadow 0.2s ease;
}

.pn-card:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.pn-card img {
	display: block;
	width: 100%;
	height: auto;
}

.pn-card .pn-card-body {
	padding: 0.9em 1em 1.2em;
}

.pn-card h4 {
	margin: 0 0 0.6em;
	font-size: 0.95em;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #777;
}

.pn-card button.pn-run {
	display: inline-block;
	padding: 0.6em 1.4em;
	background: #c0392b;
	color: #fff;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-weight: 600;
	letter-spacing: 0.03em;
}

.pn-card button.pn-run:hover {
	background: #a93226;
}

.pn-card button.pn-run:disabled {
	background: #767676;
	cursor: default;
}

/* Il main.css del sito vecchio, che questa pagina carica ancora, contiene
   `button { color: #555 !important }` e `button:hover { color: #ce1b28
   !important }`. L'!important batte qualunque specificita', quindi il bianco
   dichiarato qui sopra perdeva: grigio su rosso, 1,37 di contrasto, illeggibile,
   e rosso su rosso al passaggio del mouse. Finche' queste pagine dipendono da
   quel foglio, si vince solo con un altro !important. */
.pn-card button.pn-run,
.pn-card button.pn-run:hover,
.pn-card button.pn-run:disabled {
	color: #fff !important;
}

/* Overlay elaborazione */
.pn-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20,20,20,0.72);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.pn-overlay.active {
	display: flex;
}

.pn-overlay-box {
	background: #fff;
	border-radius: 8px;
	padding: 2.2em 2.6em;
	text-align: center;
	min-width: 280px;
}

.pn-spinner {
	width: 46px;
	height: 46px;
	margin: 0 auto 1em;
	border: 4px solid #e0e0e0;
	border-top-color: #c0392b;
	border-radius: 50%;
	animation: pn-spin 0.8s linear infinite;
}

@keyframes pn-spin {
	to { transform: rotate(360deg); }
}

.pn-overlay-ms {
	font-family: "Courier New", monospace;
	font-size: 1.3em;
	color: #333;
	margin-top: 0.3em;
}

/* Lightbox risultato */
.pn-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(10,10,10,0.88);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1001;
	padding: 2em;
	cursor: zoom-out;
}

.pn-lightbox.active {
	display: flex;
}

.pn-lightbox img {
	max-width: 100%;
	max-height: 82vh;
	box-shadow: 0 6px 30px rgba(0,0,0,0.5);
	border-radius: 4px;
	cursor: default;
}

.pn-lightbox-caption {
	position: absolute;
	bottom: 1.5em;
	left: 0;
	right: 0;
	text-align: center;
	color: #eee;
	font-size: 0.95em;
}

.pn-lightbox-close {
	position: absolute;
	top: 1.2em;
	right: 1.6em;
	color: #fff;
	font-size: 1.8em;
	cursor: pointer;
	line-height: 1;
}

.pn-note {
	background: #fbf3e6;
	border-left: 4px solid #d9a441;
	padding: 0.8em 1.2em;
	font-size: 0.92em;
	margin: 1.5em 0;
}
