/* ============================================================
   ARI Rivarolo Canavese — shared stylesheet
   Design tokens
   - Club blue:         #004086
   - Deep hover blue:   #002a5c
   - Card border:       #cfe0ee
   - Body background:   #D6E7F2
   - Text primary:      #33475c
   - Text secondary:    #5a7289
   - Text tertiary:     #7a8b9a
   - Subtle tint:       #eef5fa
   ============================================================ */

/* ---------- Base ---------- */
body, td, th {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
}
body {
	margin: 0;
	background-color: #D6E7F2;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
img {
	max-width: 100%;
	height: auto;
}
main {
	flex: 1 0 auto;
}

/* ---------- Typography ---------- */
section {
	margin-bottom: 1.5em;
}
section h2 {
	font-size: 1.4em;
	margin: 0.4em 0 0.25em;
}
section h3 {
	font-size: 1.1em;
	margin: 1em 0 0.25em;
}

/* ---------- Brand ---------- */
.site-brand {
	text-align: center;
	padding: 0.8em 1em;
	background-image: url(images/top.png);
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	position: relative;
	overflow: hidden;
}
.site-brand a {
	display: inline-block;
	line-height: 0;
	position: relative;
	z-index: 2;
}
.site-brand img {
	max-width: 180px;
	width: 100%;
	height: auto;
}
/* Radio-wave emission from the brand logo */
.site-brand::before,
.site-brand::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 140px;
	height: 140px;
	margin: -70px 0 0 -70px;
	border: 2px solid rgba(0, 64, 134, 0.28);
	border-radius: 50%;
	pointer-events: none;
	z-index: 1;
	animation: brand-wave 6s ease-out infinite;
}
.site-brand::after {
	animation-delay: 3s;
}
@keyframes brand-wave {
	0%   { transform: scale(0.35); opacity: 0; }
	15%  { opacity: 0.35; }
	100% { transform: scale(5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.site-brand::before,
	.site-brand::after { animation: none; display: none; }
}

/* ---------- Nav ---------- */
.main-nav {
	background: #004086;
	padding: 0.4em 0;
	text-align: center;
	margin-bottom: 1em;
}
.main-nav a {
	color: #fff;
	text-decoration: none;
	padding: 0.4em 0.9em;
	display: inline-block;
	font-weight: 600;
	border-radius: 3px;
	transition: background 0.15s;
}
.main-nav a:hover {
	background: rgba(255, 255, 255, 0.12);
}
.main-nav a[aria-current="page"] {
	background: rgba(255, 255, 255, 0.18);
}
@media (max-width: 640px) {
	.main-nav {
		padding: 0.4em 0.4em;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.25em;
	}
	.main-nav a {
		font-size: 0.95em;
		padding: 0.55em 0.85em;
		min-height: 38px;
		display: inline-flex;
		align-items: center;
	}
}

/* ---------- Footer ---------- */
footer {
	margin-top: 2em;
	padding-top: 1em;
	border-top: 1px solid #aac4d8;
	font-size: 0.9em;
}
footer .paypal {
	margin: 0.6em 0;
}
.footer-bar {
	background: #004086;
	color: #fff;
	padding: 0.8em 1em;
	text-align: center;
	font-size: 0.88em;
}

/* ---------- Page intro (unified: replaces .welcome, .board-intro, etc.) ---------- */
.page-intro {
	max-width: 720px;
	margin: 0.5em auto 1.5em;
	padding: 0 1em;
	text-align: center;
}
.page-intro h2 {
	margin: 0 0 0.25em;
}
.page-intro p {
	color: #556b7a;
	margin: 0 0 0.5em;
	line-height: 1.5;
}

/* ---------- Cards (shared surface) ---------- */
.board-card,
.service-card,
.soci-card,
.channel-card,
.gear-card,
.repeater-card,
.resource-card {
	background: #fff;
	border: 1px solid #cfe0ee;
	border-radius: 8px;
	padding: 1em 1.2em;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

/* Interactive hover — applied when the card is an <a> OR explicitly opts in */
a.board-card:hover,
a.service-card:hover,
a.soci-card:hover,
a.channel-card:hover,
a.resource-card:hover,
.gear-card:hover,
.repeater-card:hover {
	border-color: #004086;
	box-shadow: 0 3px 8px rgba(0, 64, 134, 0.18);
	transform: translateY(-1px);
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-secondary,
.gallery-link a.btn,
.cta-become a,
.cta-support .btn-primary,
.cta-join .btn-primary {
	display: inline-block;
	padding: 0.75em 1.6em;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1em;
	border: 1px solid transparent;
	transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn-primary,
.gallery-link a.btn,
.cta-become a,
.cta-support .btn-primary,
.cta-join .btn-primary {
	background: #004086;
	color: #fff;
}
.btn-primary:hover,
.gallery-link a.btn:hover,
.cta-become a:hover,
.cta-support .btn-primary:hover,
.cta-join .btn-primary:hover {
	background: #002a5c;
	transform: translateY(-1px);
}
.btn-secondary {
	background: #fff;
	color: #004086;
	border-color: #004086;
}
.btn-secondary:hover {
	background: #edf3f9;
	transform: translateY(-1px);
}
.btn-large {
	padding: 0.9em 1.8em;
	font-size: 1.05em;
}
/* Compact variant used inside sede card */
.sede-actions .btn-primary,
.sede-actions .btn-secondary {
	padding: 0.55em 1em;
	font-size: 0.9em;
}

/* ---------- Badges / tags (shared sizing) ---------- */
.status-tag,
.mode-tag,
.band-tag,
.proto-tag,
.parte-label {
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 0.22em 0.6em;
	border-radius: 3px;
	white-space: nowrap;
	color: #fff;
}
.proto-tag {
	font-size: 0.65em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
/* Status */
.status-active      { background: #2d9c50; }
.status-inactive    { background: #b5bfc7; }
.status-maintenance { background: #e0903a; }
/* Mode (ripetitori) */
.mode-tag        { background: #004086; }
.mode-fm         { background: #c47a00; }
.mode-dstar      { background: #3a6fb3; }
.mode-dmr        { background: #a03858; }
/* Band — sala radio */
.band-hf   { background: #002a5c; }
.band-vu   { background: #004086; }
.band-misc { background: #5a7289; }
/* Band — ripetitori */
.band-vhf  { background: #1e7a8c; }
.band-uhf  { background: #6b3d91; }
/* Proto (servizi) */
.proto-telnet { background: #eef5fa; color: #004086; border: 1px solid #cfe0ee; }
.proto-web    { background: #004086; }
.proto-sede   { background: #c47a00; }
/* Parte label (esame) */
.parte-label  { background: #004086; display: inline-block; }

/* ---------- DIRETTIVO ---------- */
.board-group {
	max-width: 960px;
	margin: 0 auto 2.5em;
	padding: 0 1em;
	text-align: center;
}
.board-group h2 {
	font-size: 1.4em;
	margin-bottom: 0.1em;
}
.board-meta {
	color: #5a7289;
	font-style: italic;
	font-size: 0.92em;
	margin: 0 0 1.2em;
}
.board-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8em;
	justify-content: center;
	align-items: stretch;
}
.board-card {
	min-width: 170px;
	min-height: 5em;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.35em;
}
.board-card.wide {
	flex: 1 1 300px;
	max-width: 400px;
	text-align: left;
}
.board-card .role {
	font-size: 0.72em;
	text-transform: uppercase;
	color: #5a7289;
	letter-spacing: 0.08em;
	font-weight: 600;
}
.board-card .role-note {
	font-size: 0.75em;
	color: #7a8b9a;
	font-style: italic;
	margin-top: -0.2em;
}
.board-card .callsign {
	font-size: 1.3em;
	font-weight: 700;
	color: #004086;
}
.board-card .callsign a {
	color: inherit;
	text-decoration: none;
}
.board-card .callsign a:hover {
	text-decoration: underline;
}
.re-list {
	list-style: none;
	padding: 0;
	margin: 0.4em 0 0;
	font-size: 0.95em;
	line-height: 1.6;
}
.re-list li       { padding: 0.1em 0; }
.re-list a,
.re-list .re-call,
.inline-calls a {
	color: #004086;
	font-weight: 700;
	text-decoration: none;
}
.re-list a:hover,
.inline-calls a:hover {
	text-decoration: underline;
}
.re-list .com {
	color: #556b7a;
	font-weight: 400;
}
.inline-calls {
	display: flex;
	gap: 0.8em;
	flex-wrap: wrap;
	margin-top: 0.2em;
	font-size: 1.15em;
}

/* ---------- SOCI ---------- */
.soci-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7em;
	max-width: 960px;
	margin: 1em auto 2em;
	padding: 0 1em;
	justify-content: center;
}
.soci-card {
	min-width: 170px;
	min-height: 5em;
	padding: 1em 1.2em;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.2em;
}
.soci-card .role {
	font-size: 0.68em;
	text-transform: uppercase;
	color: #5a7289;
	letter-spacing: 0.08em;
	font-weight: 600;
	margin-bottom: 0.15em;
}
.soci-card .callsign {
	font-size: 1.2em;
	font-weight: 700;
	color: #004086;
}
.soci-card .socio-ex {
	font-size: 0.72em;
	color: #5a7289;
	font-style: italic;
	letter-spacing: 0.02em;
}

/* ---------- ATTIVITÀ ---------- */
.activities-list {
	list-style: none;
	padding: 0;
	margin: 1em auto;
	max-width: 760px;
	text-align: left;
}
.activities-list li {
	display: flex;
	align-items: flex-start;
	gap: 1em;
	padding: 0.8em 0.2em;
	border-bottom: 1px solid #cfe0ee;
}
.activities-list li:last-child {
	border-bottom: none;
}
.activities-list .date {
	flex: 0 0 auto;
	background: #004086;
	color: #fff;
	padding: 0.25em 0.7em;
	border-radius: 4px;
	font-size: 0.85em;
	font-weight: 600;
	white-space: nowrap;
	margin-top: 0.15em;
	min-width: 5em;
	text-align: center;
}
.activities-list .desc {
	flex: 1;
	line-height: 1.4;
}
.activity-photo {
	margin: 0.7em 0 0.2em;
	max-width: 520px;
}
.activity-photo img {
	width: 100%;
	border-radius: 6px;
	border: 1px solid #cfe0ee;
	display: block;
}
.activity-photo figcaption {
	font-size: 0.82em;
	color: #5a7289;
	margin-top: 0.35em;
	font-style: italic;
}
.gallery-link {
	max-width: 720px;
	margin: 2em auto;
	padding: 0 1em;
	text-align: center;
}
.gallery-link p {
	color: #556b7a;
	margin: 0.3em 0 1em;
}

/* ---------- SALA RADIO ---------- */
.gear-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	max-width: 1000px;
	margin: 0 auto 2em;
	padding: 0 1em;
	justify-content: center;
}
.gear-card {
	flex: 1 1 260px;
	max-width: 340px;
	padding: 1.1em 1.3em;
	display: flex;
	flex-direction: column;
	gap: 0.4em;
}
.gear-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.6em;
	border-bottom: 1px solid #cfe0ee;
	padding-bottom: 0.5em;
	margin-bottom: 0.3em;
}
.gear-card h3 {
	margin: 0;
	color: #004086;
	font-size: 1.1em;
}
.gear-role {
	margin: 0;
	font-size: 0.92em;
	color: #33475c;
	line-height: 1.4;
}
.gear-desc {
	margin: 0;
	font-size: 0.9em;
	color: #33475c;
	line-height: 1.45;
}
.gear-list {
	list-style: none;
	padding: 0;
	margin: 0.2em 0 0;
	font-size: 0.92em;
	line-height: 1.55;
}
.gear-list li     { padding: 0.15em 0; }
.gear-list strong { color: #004086; font-weight: 600; }

/* ---------- RIPETITORI ---------- */
.repeater-grid {
	max-width: 960px;
	margin: 0 auto 2em;
	padding: 0 1em;
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	justify-content: center;
}
.repeater-card {
	flex: 1 1 280px;
	max-width: 380px;
}
.repeater-card.with-map {
	flex-basis: 480px;
	max-width: 520px;
}
.repeater-card .repeater-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #cfe0ee;
	padding-bottom: 0.5em;
	margin-bottom: 0.6em;
}
.repeater-card .callsign {
	font-size: 1.25em;
	font-weight: 700;
	color: #004086;
	letter-spacing: 0.02em;
}
.repeater-card .head-tags {
	display: flex;
	gap: 0.35em;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.repeater-card dl {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.3em 0.9em;
	font-size: 0.92em;
}
.repeater-card dt {
	color: #5a7289;
	font-weight: 600;
	font-size: 0.82em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.repeater-card dd {
	margin: 0;
	color: #1c2b3a;
	font-variant-numeric: tabular-nums;
}
.repeater-card dd a {
	color: #004086;
	text-decoration: none;
	border-bottom: 1px dotted #9fbad6;
	transition: border-color 0.15s, color 0.15s;
}
.repeater-card dd a:hover {
	color: #002a5c;
	border-bottom-color: #004086;
}
.repeater-card .coverage {
	margin: 0.9em 0 0;
}
.repeater-card .coverage img {
	width: 100%;
	border-radius: 6px;
	border: 1px solid #cfe0ee;
	display: block;
}
.repeater-card .coverage figcaption {
	font-size: 0.8em;
	color: #5a7289;
	margin-top: 0.35em;
	text-align: center;
}

/* ---------- SERVIZI ---------- */
.services-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9em;
	max-width: 1000px;
	margin: 1em auto 2em;
	padding: 0 1em;
	justify-content: center;
}
.service-card {
	flex: 1 1 280px;
	max-width: 340px;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 0.6em;
}
.service-card .service-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5em;
}
.service-card h3 {
	margin: 0;
	color: #004086;
	font-size: 1.1em;
}
.service-desc {
	margin: 0;
	font-size: 0.9em;
	line-height: 1.45;
	color: #33475c;
}
.service-endpoint {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.85em;
	background: #eef5fa;
	padding: 0.55em 0.75em;
	border-radius: 4px;
	color: #004086;
	word-break: break-all;
	font-weight: 600;
	margin-top: auto;
}

/* ---------- CONTATTI ---------- */
.sede-section {
	max-width: 1100px;
	margin: 0 auto 2em;
	padding: 0 1em;
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	align-items: stretch;
}
.sede-info, .sede-map-wrap {
	flex: 1 1 320px;
	background: #fff;
	border: 1px solid #cfe0ee;
	border-radius: 8px;
	overflow: hidden;
}
.sede-info {
	padding: 1.2em 1.4em;
}
.sede-info h3 {
	margin-top: 0;
	color: #004086;
}
.sede-info .block {
	margin: 1em 0;
	line-height: 1.5;
}
.sede-info .label {
	font-size: 0.72em;
	text-transform: uppercase;
	color: #5a7289;
	letter-spacing: 0.08em;
	font-weight: 600;
	display: block;
	margin-bottom: 0.3em;
}
.sede-actions {
	display: flex;
	gap: 0.6em;
	flex-wrap: wrap;
	margin-top: 1.2em;
}
.sede-map-wrap {
	padding: 0;
	min-height: 320px;
	position: relative;
}
.sede-map-wrap iframe {
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
	display: block;
}
.channels {
	max-width: 960px;
	margin: 0 auto 2em;
	padding: 0 1em;
	text-align: center;
}
.channels h3 {
	margin-bottom: 0.6em;
}
.channels-grid {
	display: flex;
	gap: 0.8em;
	flex-wrap: wrap;
	justify-content: center;
}
.channel-card {
	flex: 1 1 260px;
	max-width: 320px;
	display: flex;
	flex-direction: column;
	gap: 0.25em;
	text-align: left;
}
.channel-card .channel-label {
	font-size: 0.72em;
	text-transform: uppercase;
	color: #5a7289;
	letter-spacing: 0.08em;
	font-weight: 600;
}
.channel-card .channel-value {
	font-size: 1.05em;
	color: #004086;
	font-weight: 600;
	word-break: break-word;
}
.cta-join,
.cta-support,
.cta-become {
	max-width: 720px;
	margin: 2em auto;
	padding: 1.8em 1.5em;
	text-align: center;
	background: linear-gradient(135deg, #e8f1f9, #cfe0ee);
	border-radius: 10px;
}
.cta-join h3,
.cta-support h3 {
	margin: 0 0 0.5em;
	color: #004086;
	font-size: 1.2em;
	border-bottom: none;
}
.cta-join p,
.cta-support p {
	margin: 0 auto 1em;
	color: #33475c;
	max-width: 620px;
	line-height: 1.5;
}

/* ---------- DIVENTARE RADIOAMATORE ---------- */
.pagina-contenuto {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 1em;
	line-height: 1.5;
}
.pagina-contenuto p a,
.pagina-contenuto li a {
	color: #004086;
	text-decoration: none;
	border-bottom: 1px dotted #9fbad6;
	transition: border-color 0.15s, color 0.15s;
	word-break: break-word;
}
.pagina-contenuto p a:hover,
.pagina-contenuto li a:hover {
	color: #002a5c;
	border-bottom-color: #004086;
}
.pagina-contenuto header h1 {
	font-size: 1.6em;
	margin-bottom: 0.2em;
}
.pagina-contenuto .sottotitolo {
	font-style: italic;
	color: #556b7a;
	margin-top: 0;
}
.pagina-contenuto h2 {
	font-size: 1.25em;
	margin-top: 1.6em;
	border-bottom: 1px solid #aac4d8;
	padding-bottom: 0.15em;
}
.pagina-contenuto h3 {
	font-size: 1.05em;
	margin-top: 1.2em;
}
.quick-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8em;
	justify-content: center;
	margin: 1.5em 0;
}
.fact {
	flex: 1 1 150px;
	max-width: 190px;
	background: #fff;
	border: 1px solid #cfe0ee;
	border-left: 4px solid #004086;
	border-radius: 8px;
	padding: 0.9em 1em;
	text-align: center;
}
.fact-number {
	font-size: 1.8em;
	font-weight: 700;
	color: #004086;
	line-height: 1.1;
}
.fact-label {
	font-size: 0.85em;
	color: #556b7a;
	margin-top: 0.3em;
}
.parti-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7em;
	margin: 1em 0 1.2em;
}
.parte-card {
	flex: 1 1 220px;
	background: #fff;
	border: 1px solid #cfe0ee;
	border-radius: 8px;
	padding: 0.9em 1em;
}
.parte-card p {
	margin: 0;
	font-size: 0.92em;
	line-height: 1.5;
}
.parte-card .parte-label {
	margin-bottom: 0.4em;
}
.resource-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8em;
	margin: 0.8em 0 1em;
}
.resource-card {
	flex: 1 1 270px;
	max-width: 380px;
	display: block;
}
.resource-card h4 {
	margin: 0 0 0.15em;
	color: #004086;
	font-size: 1em;
}
.resource-card .res-meta {
	font-size: 0.82em;
	color: #556b7a;
	margin: 0 0 0.5em;
	font-style: italic;
}
.resource-card p {
	margin: 0;
	font-size: 0.92em;
	line-height: 1.5;
}
.study-steps {
	list-style: none;
	padding: 0;
	margin: 1.2em 0;
	display: flex;
	flex-direction: column;
	gap: 0.8em;
}
.study-steps li {
	background: #fff;
	border: 1px solid #cfe0ee;
	border-radius: 8px;
	padding: 1em 1.2em;
	display: flex;
	gap: 1em;
	align-items: flex-start;
}
.step-num {
	width: 2.4em;
	height: 2.4em;
	background: #004086;
	color: #fff;
	font-weight: 700;
	font-size: 1.2em;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
}
.step-content      { flex: 1; }
.step-content h4 {
	margin: 0 0 0.3em;
	color: #004086;
	font-size: 1.05em;
}
.step-content p {
	margin: 0;
	line-height: 1.5;
}

/* ---------- SK ---------- */
.sk-list {
	list-style: none;
	padding: 0;
	margin: 1em auto 2em;
	max-width: 720px;
	padding-inline: 1em;
}
.sk-list li {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 1em;
	padding: 1em 0.2em;
	border-bottom: 1px solid #cfe0ee;
}
.sk-list li:last-child {
	border-bottom: none;
}
.sk-date {
	flex: 0 0 auto;
	color: #5a7289;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	min-width: 6em;
}
.sk-entry {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.6em;
}
.sk-tag {
	background: #5a7289;
	color: #fff;
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 0.25em 0.55em;
	border-radius: 3px;
}
.sk-call            { font-weight: 700; color: #004086; }
.sk-call a          { color: #004086; text-decoration: none; }
.sk-call a:hover    { text-decoration: underline; }
.sk-name            { color: #33475c; }
.sk-role {
	color: #5a7289;
	font-style: italic;
	font-weight: 600;
}
.sk-note {
	flex-basis: 100%;
	color: #33475c;
	line-height: 1.5;
	margin-top: 0.2em;
}
