/* ============================================================
   Radicondoli ASD – Foglio di stile globale
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	width: 100%;
	height: 100%;
}

body {
	font-family: Georgia, 'Times New Roman', serif;
	background-color: #0a0a0a;
	overflow-x: hidden;
}

/* ── SFONDO ── */
.bg-layer {
	position: fixed;
	inset: 0;
	background-image: url('/img/bg.webp');
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	z-index: 0;
}

/* Homepage: sfondo più luminoso per far risaltare il logo */
body.page-home .bg-layer {
	filter: brightness(0.55) saturate(0.85);
}

/* Pagine interne: sfondo più scuro per leggibilità testo */
body.page-inner .bg-layer {
	filter: brightness(0.35) saturate(0.7);
}

/* ── HAMBURGER BUTTON ── */
.hamburger-btn {
	position: fixed;
	top: 18px;
	left: 18px;
	z-index: 200;
	background: rgba(10, 10, 10, 0.72);
	border: 1px solid rgba(180, 20, 20, 0.6);
	border-radius: 6px;
	width: 46px;
	height: 46px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	transition: background 0.2s;
}
.hamburger-btn:hover {
	background: rgba(160, 10, 10, 0.85);
}
.hamburger-btn span {
	display: block;
	width: 22px;
	height: 2px;
	background: #e8e8e8;
	border-radius: 2px;
	transition: transform 0.3s, opacity 0.3s;
}
body.menu-open .hamburger-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .hamburger-btn span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── OVERLAY DIMMER ── */
.overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 150;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.32s;
}
body.menu-open .overlay {
	opacity: 1;
	pointer-events: all;
}

/* ── SIDE DRAWER ── */
.side-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: 260px;
	height: 100%;
	background: rgba(8, 8, 8, 0.96);
	border-right: 2px solid #8b1010;
	z-index: 190;
	transform: translateX(-100%);
	transition: transform 0.32s cubic-bezier(.4, 0, .2, 1);
	display: flex;
	flex-direction: column;
	padding-top: 80px;
}
body.menu-open .side-drawer {
	transform: translateX(0);
}
.drawer-logo {
	display: block;
	width: 90px;
	margin: 0 auto 28px;
	opacity: 0.9;
}
.drawer-nav {
	list-style: none;
}
.drawer-nav li a {
	display: block;
	padding: 14px 28px;
	color: #d4d4d4;
	text-decoration: none;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	transition: color 0.2s, padding-left 0.2s;
}
.drawer-nav li a:hover {
	color: #ffffff;
	padding-left: 36px;
	background: rgba(139, 16, 16, 0.25);
}
.drawer-nav li a.active {
	color: #c8a84b;
	border-left: 3px solid #c8a84b;
}

/* ── PAGE WRAPPER ── */
.page-wrapper {
	position: relative;
	z-index: 10;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Homepage: logo centrato verticalmente */
body.page-home .page-wrapper {
	justify-content: space-between;
}

/* ── PAGE HEADER (pagine interne) ── */
.page-header {
	width: 100%;
	padding: 30px 20px 20px;
	text-align: center;
	margin-top: 60px;
}
.page-header .logo-small {
	width: clamp(70px, 12vmin, 110px);
	height: auto;
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.8));
	margin-bottom: 14px;
}
.page-header h1 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(1.4rem, 4vw, 2.2rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #c8a84b;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}
.divider {
	width: 60px;
	height: 2px;
	background: #8b1010;
	margin: 12px auto 0;
}

/* ── CENTER LOGO (homepage) ── */
.center-logo {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.center-logo img {
	width: clamp(180px, 38vmin, 420px);
	height: auto;
	filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 6px rgba(139, 16, 16, 0.4));
}

/* ── CONTENT AREA (pagine interne) ── */
.content-area {
	flex: 1;
	width: 100%;
	max-width: 960px;
	color: #cccccc;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.95rem;
	line-height: 1.7;
}

/* ── BOTTOM BANNER ── */
.bottom-banner {
	width: 100%;
	background: rgba(0, 0, 0, 0.78);
	border-top: 1px solid rgba(139, 16, 16, 0.55);
	color: #cccccc;
	text-align: center;
	padding: 14px 20px 10px;
}
.bottom-banner p {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.78rem;
	line-height: 1.7;
	margin-bottom: 4px;
}
.bottom-banner a {
	color: #c8a84b;
	text-decoration: none;
}
.bottom-banner a:hover {
	text-decoration: underline;
}
.bottom-banner .copyright {
	font-size: 0.65rem;
	color: #888;
	font-style: italic;
	margin-top: 4px;
}

/* ── SPONSOR PAGE ── */
.content-area.sponsor-area {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 40px 24px 60px;
}
.sponsor-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	background: rgba(0, 0, 0, 0.62);
	border: 1px solid rgba(139, 16, 16, 0.5);
	border-radius: 10px;
	padding: 36px 40px;
	max-width: 780px;
	width: 100%;
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}
.sponsor-logo-link {
	display: block;
	transition: transform 0.2s;
	text-align: center;
}
.sponsor-logo-link:hover { transform: scale(1.02); }
.sponsor-logo {
	width: clamp(220px, 50%, 420px);
	height: auto;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}
.sponsor-desc {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.88rem;
	color: #cccccc;
	line-height: 1.7;
	margin: 0;
	text-align: left;
}
.sponsor-btn {
	display: inline-block;
	padding: 9px 20px;
	background: #8b1010;
	color: #ffffff;
	text-decoration: none;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 4px;
	transition: background 0.2s;
	align-self: center;
}
.sponsor-btn:hover { background: #a81414; }

/* ── CONTRIBUTI PAGE ── */
.content-area.contributi-area {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 36px;
	padding: 40px 24px 60px;
}
.contributi-section {
	width: 100%;
	max-width: 780px;
	background: rgba(0, 0, 0, 0.62);
	border: 1px solid rgba(139, 16, 16, 0.5);
	border-radius: 10px;
	padding: 32px 40px;
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}
.section-title {
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(1rem, 2.5vw, 1.3rem);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #c8a84b;
	text-align: center;
	margin-bottom: 10px;
}
.section-divider {
	width: 50px;
	height: 2px;
	background: #8b1010;
	margin: 0 auto 22px;
}
.section-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.section-body p {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.88rem;
	color: #cccccc;
	line-height: 1.75;
	text-align: left;
}
.section-body p.legal-note {
	font-size: 0.78rem;
	color: #999999;
	border-left: 2px solid #8b1010;
	padding-left: 12px;
	font-style: italic;
}
.section-logo-center {
	align-items: center;
	justify-content: center;
	min-height: 60px;
}
.contrib-logo {
	max-width: clamp(240px, 60%, 520px);
	height: auto;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}

/* ── RESPONSIVE ── */
@media (max-width: 560px) {
	.side-drawer { width: 220px; }
	.bottom-banner p { font-size: 0.7rem; }
	.sponsor-card { padding: 28px 20px; }
	.sponsor-logo { width: clamp(180px, 70%, 320px); }
	.contributi-section { padding: 24px 18px; }
	.contrib-logo { max-width: 85%; }
}

/* ── NEWS PAGE ── */
.content-area.news-area {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 36px 24px 60px;
}
.news-loading,
.news-empty {
	color: #888;
	font-size: 0.9rem;
	text-align: center;
	padding: 30px 0;
}
.news-card {
	width: 100%;
	max-width: 780px;
	background: rgba(0,0,0,0.62);
	border: 1px solid rgba(139,16,16,0.45);
	border-radius: 10px;
	padding: 22px 28px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.45);
	cursor: pointer;
	transition: border-color 0.2s, transform 0.15s;
}
.news-card:hover {
	border-color: rgba(200,168,75,0.6);
	transform: translateY(-2px);
}
.news-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}
.news-data {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.78rem;
	color: #c8a84b;
	letter-spacing: 0.04em;
}
.news-luogo {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.78rem;
	color: #999;
	letter-spacing: 0.04em;
}
.news-img {
	width: 100%;
	max-height: 220px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 12px;
}
.news-titolo {
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 8px;
	line-height: 1.3;
}
.news-sommario {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.86rem;
	color: #bbbbbb;
	line-height: 1.65;
	margin-bottom: 12px;
}
.news-leggi {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.82rem;
	color: #8b1010;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-weight: 700;
}
.news-card:hover .news-leggi { color: #c8a84b; }

/* ── NEWS DETAIL PAGE ── */
.content-area.news-detail-area {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 36px 24px 60px;
}
.news-detail-card {
	width: 100%;
	max-width: 780px;
	background: rgba(0,0,0,0.62);
	border: 1px solid rgba(139,16,16,0.45);
	border-radius: 10px;
	padding: 32px 36px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.45);
}
.news-back {
	display: inline-block;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.82rem;
	color: #c8a84b;
	text-decoration: none;
	letter-spacing: 0.04em;
	margin-bottom: 18px;
	transition: color 0.2s;
}
.news-back:hover { color: #e0c070; }
.news-detail-titolo {
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(1.2rem, 3vw, 1.7rem);
	font-weight: 700;
	color: #ffffff;
	margin: 12px 0 18px;
	line-height: 1.3;
}
.news-detail-img {
	width: 100%;
	max-height: 340px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 22px;
}
.news-detail-testo {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.92rem;
	color: #cccccc;
	line-height: 1.8;
}
.news-detail-testo p { margin-bottom: 12px; }

@media (max-width: 560px) {
	.news-card { padding: 18px 18px; }
	.news-detail-card { padding: 22px 18px; }
}

/* ── ADMIN PANEL ── */

		*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
		html, body { height: 100%; font-family: Arial, Helvetica, sans-serif; background: #0f0f0f; color: #ddd; }

		/* ── LOGIN ── */
		#login-screen {
			display: flex; align-items: center; justify-content: center;
			min-height: 100vh;
		}
		.login-box {
			background: rgba(20,20,20,0.97);
			border: 1px solid #8b1010;
			border-radius: 10px;
			padding: 40px 36px;
			width: 100%; max-width: 360px;
			text-align: center;
		}
		.login-box img { width: 80px; margin-bottom: 20px; }
		.login-box h1 { font-size: 1.1rem; color: #c8a84b; letter-spacing: 0.1em; margin-bottom: 24px; }
		.login-box input[type=password] {
			width: 100%; padding: 11px 14px;
			background: #1a1a1a; border: 1px solid #444; border-radius: 5px;
			color: #fff; font-size: 1rem; margin-bottom: 14px;
		}
		.btn-primary {
			width: 100%; padding: 11px;
			background: #8b1010; color: #fff; border: none;
			border-radius: 5px; font-size: 0.95rem; letter-spacing: 0.06em;
			text-transform: uppercase; cursor: pointer; transition: background 0.2s;
		}
		.btn-primary:hover { background: #a81414; }
		.login-error { color: #e05050; font-size: 0.85rem; margin-top: 10px; display: none; }

		/* ── ADMIN PANEL ── */
		#admin-panel { display: none; max-width: 860px; margin: 0 auto; padding: 30px 20px 60px; }

		.admin-header {
			display: flex; align-items: center; justify-content: space-between;
			border-bottom: 2px solid #8b1010; padding-bottom: 14px; margin-bottom: 28px;
		}
		.admin-header h1 { font-size: 1.2rem; color: #c8a84b; letter-spacing: 0.08em; }
		.btn-logout { background: none; border: 1px solid #555; color: #aaa; padding: 6px 14px;
			border-radius: 4px; cursor: pointer; font-size: 0.8rem; transition: border-color 0.2s; }
		.btn-logout:hover { border-color: #888; color: #fff; }

		/* ── FORM NUOVA NEWS ── */
		.news-form {
			background: rgba(255,255,255,0.04);
			border: 1px solid rgba(139,16,16,0.4);
			border-radius: 8px; padding: 24px 28px; margin-bottom: 36px;
		}
		.news-form h2 { font-size: 1rem; color: #c8a84b; margin-bottom: 18px; letter-spacing: 0.06em; }
		.form-row { display: flex; gap: 14px; margin-bottom: 14px; }
		.form-row.single { flex-direction: column; }
		.form-group { flex: 1; display: flex; flex-direction: column; gap: 5px; }
		.form-group label { font-size: 0.78rem; color: #999; text-transform: uppercase; letter-spacing: 0.05em; }
		.form-group input,
		.form-group textarea,
		.form-group select {
			background: #1a1a1a; border: 1px solid #333; border-radius: 4px;
			color: #eee; padding: 9px 12px; font-size: 0.88rem; font-family: Arial, sans-serif;
			transition: border-color 0.2s;
		}
		.form-group input:focus,
		.form-group textarea:focus { outline: none; border-color: #8b1010; }
		.form-group textarea { resize: vertical; min-height: 80px; }
		#f-testo { min-height: 140px; }

		.img-upload-area {
			border: 1px dashed #444; border-radius: 4px; padding: 14px;
			text-align: center; cursor: pointer; transition: border-color 0.2s;
			font-size: 0.82rem; color: #777;
		}
		.img-upload-area:hover { border-color: #8b1010; color: #aaa; }
		.img-upload-area input { display: none; }
		#img-preview { max-width: 180px; max-height: 120px; margin-top: 10px;
			border-radius: 4px; display: none; }

		.form-actions { display: flex; gap: 12px; margin-top: 18px; }
		.btn-save { flex: 1; padding: 10px; background: #8b1010; color: #fff; border: none;
			border-radius: 4px; font-size: 0.9rem; text-transform: uppercase;
			letter-spacing: 0.06em; cursor: pointer; transition: background 0.2s; }
		.btn-save:hover { background: #a81414; }
		.btn-reset { padding: 10px 18px; background: none; border: 1px solid #444;
			color: #aaa; border-radius: 4px; cursor: pointer; font-size: 0.88rem; }
		.btn-reset:hover { border-color: #666; color: #ddd; }
		.form-msg { font-size: 0.82rem; margin-top: 10px; display: none; }
		.form-msg.ok { color: #4caf50; }
		.form-msg.err { color: #e05050; }

		/* ── LISTA NEWS ESISTENTI ── */
		.news-list-admin h2 { font-size: 1rem; color: #c8a84b; margin-bottom: 16px; letter-spacing: 0.06em; }
		.news-admin-item {
			background: rgba(255,255,255,0.03);
			border: 1px solid rgba(255,255,255,0.07);
			border-radius: 6px; padding: 14px 18px;
			display: flex; align-items: flex-start; gap: 14px;
			margin-bottom: 10px;
		}
		.news-admin-item img { width: 64px; height: 48px; object-fit: cover;
			border-radius: 4px; flex-shrink: 0; }
		.news-admin-item .no-img { width: 64px; height: 48px; background: #1a1a1a;
			border-radius: 4px; flex-shrink: 0; display: flex; align-items: center;
			justify-content: center; font-size: 1.4rem; }
		.news-admin-info { flex: 1; min-width: 0; }
		.news-admin-info .meta { font-size: 0.75rem; color: #888; margin-bottom: 4px; }
		.news-admin-info .titolo { font-size: 0.92rem; color: #ddd; white-space: nowrap;
			overflow: hidden; text-overflow: ellipsis; }
		.news-admin-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
		.btn-edit { padding: 5px 12px; background: #1a3a5c; color: #7ab; border: none;
			border-radius: 4px; font-size: 0.78rem; cursor: pointer; transition: background 0.2s; }
		.btn-edit:hover { background: #1e4a70; }
		.btn-del { padding: 5px 12px; background: #3a1010; color: #e07070; border: none;
			border-radius: 4px; font-size: 0.78rem; cursor: pointer; transition: background 0.2s; }
		.btn-del:hover { background: #5a1515; }
		.empty-msg { color: #666; font-size: 0.88rem; padding: 16px 0; }

		@media (max-width: 560px) {
			.form-row { flex-direction: column; }
			.news-admin-item { flex-wrap: wrap; }
		}
	
/* ── STORIA PAGE ── */
.content-area.storia-area {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 36px;
	padding: 40px 24px 60px;
}
.storia-section {
	width: 100%;
	max-width: 780px;
	background: rgba(0,0,0,0.62);
	border: 1px solid rgba(139,16,16,0.5);
	border-radius: 10px;
	padding: 32px 40px;
	box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}
.libro-layout {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}
.libro-cover {
	flex-shrink: 0;
	width: clamp(140px, 25%, 200px);
}
.libro-cover img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.libro-cover-placeholder {
	width: 100%;
	aspect-ratio: 3/4;
	background: rgba(139,16,16,0.15);
	border: 2px dashed rgba(139,16,16,0.4);
	border-radius: 4px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.libro-icon { font-size: 2.4rem; }
.libro-placeholder-text {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.72rem;
	color: #777;
}
.libro-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.libro-titolo {
	font-family: Georgia, serif;
	font-size: clamp(1.3rem, 3vw, 1.8rem);
	font-weight: 700;
	color: #c8a84b;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.libro-sottotitolo {
	font-family: Georgia, serif;
	font-style: italic;
	font-size: 1rem;
	color: #dddddd;
	line-height: 1.4;
}
.libro-autore {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.82rem;
	color: #999;
}
.libro-desc {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.88rem;
	color: #cccccc;
	line-height: 1.7;
	margin-top: 6px;
}
.libro-prezzo-box {
	margin-top: 8px;
}
.libro-prezzo {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.6rem;
	font-weight: 700;
	color: #c8a84b;
}
.libro-acquisto {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.85rem;
	color: #aaa;
}
.libro-acquisto a { color: #c8a84b; }
.libro-acquisto a:hover { text-decoration: underline; }
.firma {
	text-align: right;
	color: #c8a84b;
	margin-top: 10px;
}
@media (max-width: 560px) {
	.libro-layout { flex-direction: column; align-items: center; text-align: center; }
	.libro-cover { width: clamp(140px, 50%, 200px); }
	.storia-section { padding: 24px 18px; }
}

/* ── TEAM PAGE ── */
.content-area.team-area {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	padding: 36px 24px 60px;
}
.team-reparto {
	width: 100%;
	max-width: 860px;
}
.reparto-titolo {
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(0.9rem, 2.2vw, 1.1rem);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #c8a84b;
	text-align: center;
	margin-bottom: 18px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(139,16,16,0.4);
}
.team-griglia {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}
.figurina {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 120px;
	text-decoration: none;
	background: rgba(0,0,0,0.55);
	border: 1px solid rgba(139,16,16,0.4);
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
	box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.figurina:hover {
	transform: translateY(-4px);
	border-color: rgba(200,168,75,0.6);
	box-shadow: 0 6px 24px rgba(0,0,0,0.6);
}
.figurina-foto {
	width: 100%;
	aspect-ratio: 3/4;
	overflow: hidden;
	background: rgba(30,30,30,0.8);
	display: flex;
	align-items: center;
	justify-content: center;
}
.figurina-foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.figurina-info {
	width: 100%;
	padding: 8px 6px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.figurina-numero {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.7rem;
	font-weight: 700;
	color: #c8a84b;
}
.figurina-ruolo {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.65rem;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.figurina-nome {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	color: #eeeeee;
	line-height: 1.2;
}
@media (max-width: 560px) {
	.figurina { width: 100px; }
	.figurina-nome { font-size: 0.68rem; }
}

/* ── CALENDARIO PAGE ── */
.content-area.calendario-area {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding: 36px 24px 60px;
	width: 100%;
	max-width: 860px;
}
.cal-sottotitolo {
	font-family: Georgia, serif;
	font-style: italic;
	font-size: 1rem;
	color: #c8a84b;
	text-align: center;
}
.cal-link-esterno {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.82rem;
	color: #999;
	text-align: center;
}
.cal-link-esterno a { color: #c8a84b; text-decoration: none; }
.cal-link-esterno a:hover { text-decoration: underline; }
.cal-girone {
	width: 100%;
	max-width: 780px;
	background: rgba(0,0,0,0.55);
	border: 1px solid rgba(139,16,16,0.4);
	border-radius: 10px;
	padding: 28px 30px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.cal-giornata {
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cal-giornata:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.giornata-titolo {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	color: #c8a84b;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 8px;
}
.cal-partita {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.88rem;
}
.cal-data {
	font-size: 0.78rem;
	color: #888;
	min-width: 90px;
}
.cal-ora {
	font-size: 0.78rem;
	color: #888;
	min-width: 40px;
}
.cal-squadra {
	color: #dddddd;
	min-width: 120px;
}
.cal-casa { text-align: right; }
.cal-trasferta { text-align: left; }
.cal-risultato {
	font-weight: 700;
	color: #c8a84b;
	min-width: 50px;
	text-align: center;
	font-size: 1rem;
	background: rgba(139,16,16,0.2);
	padding: 2px 10px;
	border-radius: 4px;
}
@media (max-width: 560px) {
	.cal-partita { font-size: 0.8rem; }
	.cal-squadra { min-width: 80px; }
	.cal-girone { padding: 20px 16px; }
}

/* ── PALMARES PAGE ── */
.content-area.palmares-area {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 36px;
	padding: 40px 24px 60px;
}
.palmares-section {
	width: 100%;
	max-width: 780px;
	background: rgba(0,0,0,0.62);
	border: 1px solid rgba(139,16,16,0.5);
	border-radius: 10px;
	padding: 32px 40px;
	box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}
.palmares-list {
	list-style: none;
	padding: 0;
}
.palmares-item {
	display: grid;
	grid-template-columns: 80px 1fr 150px;
	gap: 16px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.88rem;
}
.palmares-item:last-child { border-bottom: none; }
.palmares-anno {
	font-weight: 700;
	color: #c8a84b;
	font-size: 0.95rem;
}
.palmares-titolo {
	color: #dddddd;
	line-height: 1.4;
}
.palmares-categoria {
	font-size: 0.78rem;
	color: #888;
	text-align: right;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.palmares-stagioni {
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.palmares-stagione {
	background: rgba(255,255,255,0.03);
	border-left: 3px solid #8b1010;
	padding: 16px 22px;
	border-radius: 0 6px 6px 0;
}
.stagione-anno {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	color: #c8a84b;
	letter-spacing: 0.06em;
	margin-bottom: 12px;
}
.stagione-dati {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 6px 16px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.85rem;
}
.stagione-dati dt {
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.75rem;
}
.stagione-dati dd {
	color: #dddddd;
}
@media (max-width: 560px) {
	.palmares-section { padding: 24px 18px; }
	.palmares-item { grid-template-columns: 70px 1fr; }
	.palmares-categoria { grid-column: 1 / -1; text-align: left; padding-left: 86px; }
	.stagione-dati { grid-template-columns: 1fr; gap: 2px 0; }
	.stagione-dati dt { margin-top: 8px; }
}

/* ── ELENCO STORIA (presidenti, ecc.) ── */
.storia-elenco {
	list-style: none;
	padding: 0;
}
.storia-elenco li {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.88rem;
	color: #cccccc;
	line-height: 1.7;
	padding: 8px 0 8px 18px;
	border-left: 2px solid rgba(139,16,16,0.4);
	margin-bottom: 4px;
}
.storia-elenco li strong {
	color: #c8a84b;
}

/* ── PARTITA DA GIOCARE (calendario) ── */
.cal-risultato.cal-da-giocare {
	background: rgba(255,255,255,0.05);
	color: #999;
	font-weight: normal;
	font-style: italic;
	font-size: 0.85rem;
}

/* ── ADMIN RISULTATI raggruppamento ── */
.risultato-gruppo {
	margin-bottom: 24px;
}
.risultato-gruppo-titolo {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.82rem;
	color: #c8a84b;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid rgba(139,16,16,0.4);
}

/* ── BODY ADMIN (sfondo scuro semplice senza menu pubblico) ── */
body.admin-body {
	background: #0f0f0f;
	color: #ddd;
	font-family: Arial, Helvetica, sans-serif;
}

/* ── AMARCORD PAGE ── */
.content-area.amarcord-area {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding: 36px 24px 60px;
}
.amarcord-card {
	display: flex;
	flex-direction: row;
	gap: 22px;
	width: 100%;
	max-width: 820px;
	background: rgba(0,0,0,0.62);
	border: 1px solid rgba(139,16,16,0.45);
	border-radius: 10px;
	padding: 22px 24px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.45);
	transition: border-color 0.2s, transform 0.15s;
}
.amarcord-card:hover {
	border-color: rgba(200,168,75,0.6);
	transform: translateY(-2px);
}
.amarcord-img-wrap {
	flex-shrink: 0;
	width: clamp(120px, 25%, 200px);
}
.amarcord-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: rgba(20,20,20,0.6);
	border-radius: 6px;
}
.amarcord-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.amarcord-anno {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	color: #c8a84b;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.amarcord-titolo {
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(1rem, 2.4vw, 1.2rem);
	font-weight: 700;
	color: #ffffff;
	line-height: 1.3;
}
.amarcord-desc {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.86rem;
	color: #bbbbbb;
	line-height: 1.7;
}
@media (max-width: 560px) {
	.amarcord-card { flex-direction: column; padding: 18px; }
	.amarcord-img-wrap { width: 100%; max-width: 280px; align-self: center; }
}

/* ── Link "Torna alle news" in fondo all'articolo ── */
.news-back-bottom {
	margin-top: 28px;
	margin-bottom: 0;
	padding-top: 18px;
	border-top: 1px solid rgba(139,16,16,0.3);
	display: block;
}

/* ── CALENDARIO: Widget Tuttocampo ── */
.cal-evidenza {
	width: 100%;
	max-width: 1080px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 32px;
}
@media (max-width: 760px) {
	.cal-evidenza { grid-template-columns: 1fr; }
}

.cal-widget-card {
	background: rgba(0,0,0,0.55);
	border: 1px solid rgba(139,16,16,0.4);
	border-radius: 10px;
	padding: 18px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
.cal-widget-titolo {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.85rem;
	color: #c8a84b;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(139,16,16,0.4);
	text-align: center;
}

/* Iframe responsive — usa data-aspect (rapporto h/w) come padding-top dinamico */
.cal-widget-iframe {
	position: relative;
	width: 100%;
	height: 0;
	padding-top: 80%; /* default fallback */
	overflow: hidden;
	background: #ffffff;
	border-radius: 6px;
}
.cal-widget-iframe iframe {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #fff;
}

/* ── Su mobile: scroll orizzontale per i widget Tuttocampo ── */
@media (max-width: 760px) {
	.cal-widget-iframe {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}
	.cal-widget-iframe iframe {
		min-width: 500px;
	}
}


/* ── TAB classifica / risultati / marcatori ── */
.cal-tabs {
	width: 100%;
	max-width: 760px;
	background: rgba(0,0,0,0.55);
	border: 1px solid rgba(139,16,16,0.4);
	border-radius: 10px;
	padding: 18px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
.cal-tabs-nav {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
	border-bottom: 1px solid rgba(139,16,16,0.4);
	flex-wrap: wrap;
}
.cal-tab-btn {
	background: none;
	border: none;
	color: #aaa;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 10px 18px;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}
.cal-tab-btn:hover { color: #ddd; }
.cal-tab-btn.active {
	color: #c8a84b;
	border-bottom-color: #8b1010;
}
.cal-tab-panel { display: none; }
.cal-tab-panel.active { display: block; }
