/* --- VARIABILI E RESET --- */
:root {
	--gold-color: #d5a00d;
	--gold-hover: #b38508;
	--bg-warm: #fcfcfc;
	--bg-card: #ffffff;
	--bg-accent: #faf9f6;
	--text-main: #333333;
	--text-sub: #666666;
	--shadow-card: 0 15px 35px rgba(0, 0, 0, 0.08);
	--shadow-header: 0 4px 20px rgba(0, 0, 0, 0.04);
	--radius-card: 20px;
	--radius-inner: 12px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--bg-warm);
	color: var(--text-main);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	padding-bottom: 40px;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--gold-color);
	font-weight: 700;
	text-align: center;
}

h1 {
	font-size: 42px;
	color: black;
}

h4 {
	font-size: 1.25rem;
}

a {
	color: var(--gold-color);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--gold-hover);
}

/* --- WRAPPER E HEADER --- */
main {
	display: block;
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

header {
	display: block;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 0, 0, 0.05);
	padding: 20px;
	border-radius: var(--radius-inner);
	margin-bottom: 25px;
	box-shadow: var(--shadow-header);
	text-align: center;
}

header img {
	height: 55px;
	margin-bottom: 10px;
	transition: transform 0.3s ease;
}

header img:hover {
	transform: scale(1.03);
}

header p {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--gold-color);
	font-weight: 500;
}

/* Blocchi coro (fallback HTML) */
article {
	display: block;
	background: var(--bg-accent);
	border-radius: var(--radius-inner);
	padding: 25px;
	margin-bottom: 20px;
	border: 1px solid rgba(0, 0, 0, 0.02);
}

article > h1:first-child {
	margin-bottom: 32px;
	display: none;
}

article h2 {
	font-size: 32px;
	color: var(--gold-color);
	margin-bottom: 5px;
}

/* Paragrafo per le informazioni sul direttore dentro l'articolo */
article p {
	font-style: italic;
	font-size: 14px;
	color: var(--text-sub);
	text-align: center;
	margin-bottom: 20px;
}

ul {
	list-style: none;
}

li {
	padding: 12px 0;
	border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
	font-size: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

li:last-child {
	border-bottom: none;
}

li strong {
	font-weight: 600;
	color: #222;
	max-width: 65%;
	text-align: left;
}

li span {
	color: var(--text-sub);
	font-size: 13px;
	text-align: right;
}

/* --- CARICATORE FILE AUTOMATICO --- */
.dynamic-loader-block {
	display: none;
	text-align: center;
	margin-bottom: 25px;
}

.program-image-render {
	width: 100%;
	max-height: 700px;
	object-fit: contain;
	border-radius: var(--radius-inner);
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
	cursor: zoom-in;
	transition: transform 0.3s ease;
}

.program-image-render:hover {
	transform: scale(1.01);
}

.image-instructions {
	font-size: 13px;
	color: var(--text-sub);
	margin-top: 10px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* Immagini inserite manualmente nel pannello di controllo */
article img {
	max-width: 100%;
	width: 700px;
	height: auto;
	display: block;
	margin: 20px auto 0 auto;
	border-radius: var(--radius-inner);
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
	cursor: zoom-in;
	transition: transform 0.3s ease;
}

article img:hover {
	transform: scale(1.01);
}

/* --- MODALE ZOOM IMMAGINE --- */
.overlay-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.95);
	z-index: 9999;
	display: none;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.overlay-modal.active {
	display: flex;
	opacity: 1;
}

.overlay-modal figure {
	display: block;
	max-width: 95%;
	max-height: 90%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.overlay-modal img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 6px;
	transition: transform 0.2s ease;
}

.overlay-modal span {
	position: absolute;
	top: 20px;
	right: 20px;
	color: #fff;
	font-size: 35px;
	cursor: pointer;
	user-select: none;
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
}

.zoom-controls {
	display: block;
	margin-top: 15px;
	display: flex;
	gap: 15px;
}

.zoom-btn {
	background: rgba(255,255,255,0.2);
	border: none;
	color: #fff;
	padding: 8px 18px;
	border-radius: 20px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.3s;
}

.zoom-btn:hover {
	background: rgba(255,255,255,0.35);
}

.logo-text {
	font-family: "Times New Roman", Times, serif;
	font-size: 34px;
	color: #d5a00d;
	text-decoration: none;
	display: inline-block;
	height: 40px;
	line-height: 40px;
	margin-top: 10px;
	font-weight: normal;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
	body {
		padding-bottom: 20px;
	}
	
	main {
		padding: 12px;
	}

	article {
		padding: 15px;
	}

	li {
		flex-direction: column;
		gap: 4px;
		text-align: center;
	}

	li strong {
		max-width: 100%;
	}

	li span {
		font-size: 12px;
	}
}

@media (max-width: 576px) {
	header img {
		width: 320px;
		max-width: 100%;
		height: auto !important;
	}
} 