/*
 * Tema "Lega Zarate" - derivato dal mockup Claude Design (KabUlk).
 * Palette verde scuro / oro, font Space Grotesk.
 */

* { box-sizing: border-box; }

body {
	margin: 0;
	background: #0a1a14;
	background: radial-gradient(circle at 15% 0%, #123a2c 0%, #0a1a14 55%) fixed;
	font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
	color: #eef3ef;
	min-height: 100vh;
}

a { color: #d4af37; text-decoration: none; }
a:hover { color: #e6c765; }

h1 { margin: 0 0 6px; font-size: 32px; font-weight: 700; }
h2.section-title {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #d4af37;
	margin: 0 0 12px;
	font-weight: 600;
}
p.subtitle { margin: 0 0 36px; color: rgba(238,243,239,0.6); font-size: 15px; }

main.page { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
main.page.wide { max-width: 960px; }
main.page.medium { max-width: 860px; }

/* --- Navbar --- */
nav.topnav {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 20px 24px;
	border-bottom: 1px solid rgba(212,175,55,0.15);
	flex-wrap: wrap;
}
nav.topnav .brand { font-weight: 700; font-size: 20px; letter-spacing: 0.01em; color: #eef3ef; }
nav.topnav .brand .dot { color: #d4af37; }
nav.topnav .nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; margin-left: 8px; }
.nav-link { position: relative; padding: 8px 2px; opacity: 0.65; transition: opacity 0.15s; color: #eef3ef; }
.nav-link:hover { opacity: 1; color: #eef3ef; }
.nav-link.active { opacity: 1; color: #f4e5ab; }
.nav-link.active::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 5px;
	height: 2px;
	background: #d4af37;
}
.btn-logout {
	margin-left: auto;
	background: transparent;
	border: 1px solid rgba(238,243,239,0.2);
	color: #eef3ef;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	padding: 9px 18px;
	border-radius: 8px;
	cursor: pointer;
}
.btn-logout:hover { border-color: rgba(238,243,239,0.4); }

/* --- Form fields --- */
label.field { display: block; }
label.field .field-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(238,243,239,0.5);
	margin-bottom: 8px;
}
.field-input {
	width: 100%;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(212,175,55,0.25);
	color: #eef3ef;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	padding: 14px 36px 14px 16px;
	border-radius: 10px;
}
select.field-input {
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 6l4 4 4-4' stroke='%23eef3ef' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
}
input.field-input::placeholder { color: rgba(238,243,239,0.4); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }

.slot-row {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 10px;
	padding: 10px 14px;
	margin-bottom: 8px;
}
.slot-index {
	width: 26px; height: 26px;
	border-radius: 50%;
	background: rgba(212,175,55,0.15);
	color: #d4af37;
	font-size: 12px;
	font-weight: 700;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.slot-row select.field-input {
	flex: 1;
	background: transparent;
	border: none;
	padding: 4px 28px 4px 0;
	cursor: pointer;
	font-size: 15px;
}

.btn-primary {
	width: 100%;
	background: #d4af37;
	color: #10221a;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	padding: 16px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	margin-top: 16px;
}
.btn-primary:hover { background: #e6c765; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Elenco --- */
.elenco-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 10px;
}
.elenco-card .partita { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.elenco-card .partita .vs { font-weight: 500; color: rgba(238,243,239,0.5); font-size: 14px; margin: 0 6px; }
.elenco-card .meta { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.elenco-card .meta .data { font-size: 13px; color: rgba(238,243,239,0.5); font-weight: 500; }
.elenco-card .meta .modulo { font-weight: 700; font-size: 14px; color: #d4af37; }
.elenco-card .giocatori { font-size: 13px; color: rgba(238,243,239,0.65); padding-top: 8px; border-top: 1px dashed rgba(255,255,255,0.08); margin-top: 8px; }

/* --- Rose --- */
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.roster-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 12px;
	padding: 16px;
}
.roster-card .team { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(238,243,239,0.45); margin-bottom: 6px; }
.roster-card .name { font-size: 16px; font-weight: 600; }

/* --- Login --- */
.login-wrap { max-width: 420px; margin: 80px auto; padding: 0 24px; }
.login-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(212,175,55,0.2);
	border-radius: 16px;
	padding: 36px 28px;
}
.login-card .field { margin-bottom: 20px; }

.esito { border-radius: 10px; padding: 14px 18px; margin: 0 auto 24px; max-width: 760px; font-size: 14px; font-weight: 600; }
.esito-ok { background: rgba(74,196,120,0.18); color: #7fe0a3; }
.esito-errore { background: rgba(224,90,90,0.18); color: #f39a9a; }

/* --- Footer --- */
.site-footer {
	text-align: center;
	padding: 28px 24px 40px;
	border-top: 1px solid rgba(212,175,55,0.15);
	margin-top: 24px;
	font-size: 14px;
}
.site-footer a { opacity: 0.75; }
.site-footer a:hover { opacity: 1; }

/* --- Gallery --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery-grid a {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.08);
	aspect-ratio: 1 / 1;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.gallery-grid a:hover img { transform: scale(1.06); }

.lightbox {
	display: none;
	position: fixed; inset: 0;
	background: rgba(6,14,10,0.92);
	z-index: 1000;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox .chiudi {
	position: absolute; top: 20px; right: 24px;
	color: #eef3ef; font-size: 32px; line-height: 1;
	cursor: pointer; opacity: 0.8;
}
.lightbox .chiudi:hover { opacity: 1; }

@media (max-width: 680px) {
	.grid-2 { grid-template-columns: 1fr !important; }
	.roster-grid { grid-template-columns: 1fr 1fr !important; }
	nav.topnav .nav-links { gap: 2px; font-size: 13px; }
	main.page { padding: 32px 16px 60px; }
}
