/* ==========================================================================
   Progetto Alpi — nuovo frontend /new
   Tema "Material Design 3" costruito sopra Bootstrap 5.3.
   Colori derivati dal brand storico: verde #007E20, arancio #FF7E00.
   ========================================================================== */

:root {
	/* palette tonale */
	--nd-primary: #006e1c;
	--nd-on-primary: #ffffff;
	--nd-primary-container: #b6f2af;
	--nd-on-primary-container: #002204;
	--nd-secondary: #a75300;
	--nd-on-secondary: #ffffff;
	--nd-secondary-container: #ffdcc2;
	--nd-on-secondary-container: #361600;
	--nd-surface: #fbfdf6;
	--nd-surface-dim: #dbdcd5;
	--nd-surface-container-lowest: #ffffff;
	--nd-surface-container-low: #f5f7f0;
	--nd-surface-container: #efF1ea;
	--nd-surface-container-high: #e9ebe4;
	--nd-on-surface: #1a1c18;
	--nd-on-surface-variant: #43483f;
	--nd-outline: #73796e;
	--nd-outline-variant: #c3c8bc;
	--nd-error: #ba1a1a;
	--nd-inverse-surface: #2f312c;
	--nd-inverse-on-surface: #f1f1ea;

	/* elevazioni */
	--nd-elevation-1: 0 1px 2px rgba(0,0,0,.10), 0 1px 3px 1px rgba(0,0,0,.07);
	--nd-elevation-2: 0 1px 2px rgba(0,0,0,.12), 0 2px 6px 2px rgba(0,0,0,.08);
	--nd-elevation-3: 0 4px 8px 3px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.14);

	/* raggi */
	--nd-radius-s: 8px;
	--nd-radius-m: 12px;
	--nd-radius-l: 16px;
	--nd-radius-xl: 28px;

	/* override variabili Bootstrap */
	--bs-body-bg: var(--nd-surface);
	--bs-body-color: var(--nd-on-surface);
	--bs-body-font-family: Arial, 'Helvetica Neue', Helvetica, system-ui, sans-serif;
	--bs-link-color: var(--nd-primary);
	--bs-link-hover-color: #00530f;
	--bs-border-radius: var(--nd-radius-m);
}

/* ------------------------------------------------------------------ base */
body.nd-body {
	background: var(--nd-surface);
	color: var(--nd-on-surface);
	font-family: var(--bs-body-font-family);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-weight: 400; color: var(--nd-on-surface); }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.material-symbols-outlined {
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
	vertical-align: -0.18em;
	font-size: 1.25em;
	line-height: 1;
}

#nd-main { min-height: 60vh; }
.nd-page { padding-top: 1.5rem; padding-bottom: 3rem; }

/* ------------------------------------------------------------- app bar */
.nd-appbar {
	background: color-mix(in srgb, var(--nd-surface) 92%, var(--nd-primary) 8%);
	transition: box-shadow .2s ease, background .2s ease;
}
.nd-appbar.is-elevated { box-shadow: var(--nd-elevation-2); background: var(--nd-surface-container-low); }
.nd-appbar .navbar { padding-top: .4rem; padding-bottom: .4rem; }
.nd-brand { display: inline-flex; align-items: center; gap: .6rem; }
.nd-brand-logo { height: 44px; width: auto; }
.nd-brand-text { font-size: 1.15rem; color: var(--nd-on-surface); letter-spacing: .01em; }
.nd-brand-text strong { color: var(--nd-primary); font-weight: 700; }
.nd-brand:hover { text-decoration: none; }

.nd-nav .nav-link {
	color: var(--nd-on-surface-variant);
	font-weight: 500;
	font-size: .95rem;
	padding: .55rem 1rem;
	border-radius: 100px;
	transition: background .15s ease, color .15s ease;
}
.nd-nav .nav-link:hover { background: var(--nd-surface-container-high); color: var(--nd-on-surface); }
.nd-nav .nav-link.active { background: var(--nd-primary-container); color: var(--nd-on-primary-container); }
.nd-dropdown {
	border: none;
	border-radius: var(--nd-radius-m);
	box-shadow: var(--nd-elevation-2);
	background: var(--nd-surface-container-lowest);
	padding: .5rem;
	margin-top: .4rem;
}
.nd-dropdown .dropdown-item {
	border-radius: var(--nd-radius-s);
	padding: .55rem .9rem;
	color: var(--nd-on-surface);
	font-size: .92rem;
}
.nd-dropdown .dropdown-item:hover { background: var(--nd-primary-container); color: var(--nd-on-primary-container); }

.nd-icon-btn {
	border: none;
	background: transparent;
	border-radius: 50%;
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--nd-on-surface-variant);
}
.nd-icon-btn:hover { background: var(--nd-surface-container-high); }
.navbar-toggler.nd-icon-btn { box-shadow: none; }

.nd-search {
	display: flex; align-items: center; gap: .4rem;
	background: var(--nd-surface-container-high);
	border-radius: 100px;
	padding: .35rem .9rem;
	margin-inline: .75rem;
}
.nd-search .material-symbols-outlined { color: var(--nd-on-surface-variant); }
.nd-search input {
	border: none; background: transparent; outline: none;
	color: var(--nd-on-surface);
	width: 9rem;
	transition: width .2s ease;
}
.nd-search input:focus { width: 13rem; }
.nd-search-drawer { margin: 0 0 1rem; }
.nd-search-drawer input { width: 100%; }

.nd-appbar-actions { display: flex; align-items: center; gap: .35rem; }
.nd-lang {
	text-transform: uppercase;
	font-size: .8rem; font-weight: 700;
	padding: .3rem .55rem;
	border-radius: var(--nd-radius-s);
	color: var(--nd-on-surface-variant);
}
.nd-lang.is-active { background: var(--nd-primary); color: var(--nd-on-primary); }
a.nd-lang:hover { background: var(--nd-surface-container-high); text-decoration: none; }

.nd-chip {
	display: inline-flex; align-items: center; gap: .35rem;
	border: 1px solid var(--nd-outline-variant);
	border-radius: var(--nd-radius-s);
	padding: .3rem .8rem;
	font-size: .85rem; font-weight: 500;
	color: var(--nd-on-surface-variant);
	background: transparent;
}
a.nd-chip:hover { background: var(--nd-surface-container-high); text-decoration: none; }
.nd-chip.is-active, .nd-chip-filter.is-active {
	background: var(--nd-secondary-container);
	color: var(--nd-on-secondary-container);
	border-color: transparent;
}
.nd-chip-admin { border-color: var(--nd-secondary); color: var(--nd-secondary); }

/* ------------------------------------------------------------- drawer */
.nd-drawer { border-radius: 0 var(--nd-radius-l) var(--nd-radius-l) 0; background: var(--nd-surface-container-low); }
.nd-drawer-nav { list-style: none; margin: 0; padding: 0; }
.nd-drawer-nav > li > a {
	display: flex; align-items: center; gap: .6rem;
	padding: .7rem 1rem;
	border-radius: 100px;
	color: var(--nd-on-surface);
	font-weight: 500;
}
.nd-drawer-nav > li > a:hover, .nd-drawer-nav > li > a.is-active {
	background: var(--nd-primary-container);
	color: var(--nd-on-primary-container);
	text-decoration: none;
}
.nd-drawer-nav ul { list-style: none; padding-left: 1.4rem; }
.nd-drawer-nav ul a {
	display: block; padding: .45rem 1rem;
	border-radius: 100px;
	color: var(--nd-on-surface-variant);
	font-size: .93rem;
}
.nd-drawer-nav ul a:hover { background: var(--nd-surface-container-high); text-decoration: none; }
.nd-drawer-footer {
	display: flex; align-items: center; gap: .5rem;
	margin-top: 1.25rem; padding-top: 1rem;
	border-top: 1px solid var(--nd-outline-variant);
}

/* ---------------------------------------------------------- breadcrumbs */
.nd-breadcrumbs { margin-bottom: 1.25rem; }
.nd-breadcrumbs ol {
	list-style: none; display: flex; flex-wrap: wrap; align-items: center;
	gap: .15rem; margin: 0; padding: 0;
	font-size: .88rem;
}
.nd-breadcrumbs li { display: flex; align-items: center; color: var(--nd-on-surface-variant); }
.nd-breadcrumbs li + li::before {
	content: 'chevron_right';
	font-family: 'Material Symbols Outlined';
	font-size: 1rem;
	margin: 0 .25rem;
	color: var(--nd-outline);
}
.nd-breadcrumbs a { color: var(--nd-on-surface-variant); }
.nd-breadcrumbs a:hover { color: var(--nd-primary); text-decoration: none; }
.nd-breadcrumbs [aria-current="page"] span { color: var(--nd-on-surface); font-weight: 500; }

/* ---------------------------------------------------------------- hero */
.nd-hero {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	min-height: 46vh;
	background-size: cover; background-position: center;
	color: #fff;
	text-align: center;
	overflow: hidden;
}
.nd-hero::before {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,20,5,.25), rgba(0,20,5,.62));
}
.nd-hero-inner { position: relative; z-index: 1; padding: 4rem 1rem; max-width: 46rem; }
.nd-hero-inner h1 { color: #fff; font-weight: 500; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.nd-hero-inner p { font-size: 1.15rem; color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.nd-hero-logo { height: 96px; margin-bottom: 1rem; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }

.nd-hero-page {
	border-radius: var(--nd-radius-xl);
	overflow: hidden;
	margin-bottom: 1.5rem;
}
.nd-hero-page img { width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------- card */
.nd-card {
	background: var(--nd-surface-container-lowest);
	border: 1px solid var(--nd-outline-variant);
	border-radius: var(--nd-radius-l);
	overflow: hidden;
	display: flex; flex-direction: column;
}
.nd-card-link { color: inherit; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.nd-card-link:hover {
	text-decoration: none;
	box-shadow: var(--nd-elevation-2);
	transform: translateY(-2px);
	border-color: transparent;
	color: inherit;
}
/* height:auto è necessario: l'attributo height= emesso da {% image %}
   altrimenti prevale sull'aspect-ratio e deforma/allunga le immagini */
.nd-card-media { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.nd-card-media-empty {
	display: flex; align-items: center; justify-content: center;
	background: var(--nd-surface-container);
	color: var(--nd-outline);
}
.nd-card-media-empty .material-symbols-outlined { font-size: 3rem; }
.nd-card-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.nd-card-overline {
	font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
	color: var(--nd-secondary);
	margin: 0;
	display: flex; align-items: center; gap: .3rem;
}
.nd-card-title { font-size: 1.15rem; font-weight: 500; margin: 0; color: var(--nd-on-surface); }
.nd-card-text { color: var(--nd-on-surface-variant); font-size: .93rem; margin: 0; }
.nd-card .nd-card-actions { margin-top: auto; padding-top: .75rem; }

/* pannello generico (testi, tabelle) */
.nd-panel {
	background: var(--nd-surface-container-lowest);
	border: 1px solid var(--nd-outline-variant);
	border-radius: var(--nd-radius-l);
	padding: clamp(1.25rem, 3vw, 2.25rem);
	margin-bottom: 1.5rem;
}

/* ------------------------------------------------------------- bottoni */
.nd-btn, .btn-nd-filled, .btn-nd-tonal, .btn-nd-outlined {
	display: inline-flex; align-items: center; gap: .45rem;
	border-radius: 100px;
	padding: .55rem 1.4rem;
	font-weight: 500; font-size: .95rem;
	border: none;
	transition: box-shadow .15s ease, background .15s ease;
}
.btn-nd-filled { background: var(--nd-primary); color: var(--nd-on-primary); }
.btn-nd-filled:hover { background: #00530f; color: var(--nd-on-primary); box-shadow: var(--nd-elevation-1); text-decoration: none; }
.btn-nd-tonal { background: var(--nd-primary-container); color: var(--nd-on-primary-container); }
.btn-nd-tonal:hover { box-shadow: var(--nd-elevation-1); color: var(--nd-on-primary-container); text-decoration: none; }
.btn-nd-outlined { background: transparent; border: 1px solid var(--nd-outline); color: var(--nd-primary); }
.btn-nd-outlined:hover { background: var(--nd-surface-container-high); color: var(--nd-primary); text-decoration: none; }

/* --------------------------------------------------------------- chips */
.nd-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }

/* ------------------------------------------------------------- banner */
.nd-banner {
	display: flex; align-items: flex-start; gap: .75rem;
	background: var(--nd-secondary-container);
	color: var(--nd-on-secondary-container);
	border: none;
	border-radius: var(--nd-radius-m);
	padding: .9rem 3rem .9rem 1.1rem;
	margin-bottom: 1.25rem;
}
.nd-banner a { color: inherit; font-weight: 500; }

/* ----------------------------------------------------------- sezioni */
.nd-home-section { margin: 2.5rem 0; }
.nd-section-head {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}
.nd-section-head h2 { margin: 0; }
.nd-section-head .nd-section-link { font-weight: 500; white-space: nowrap; }

/* ---------------------------------------------------------- side menu */
.nd-side-menu { padding: 1rem 1.1rem; }
.nd-side-menu-title { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--nd-on-surface-variant); margin-bottom: .5rem; }
.nd-side-menu ul { list-style: none; margin: 0; padding: 0; }
.nd-side-menu li a {
	display: flex; align-items: center; gap: .3rem;
	padding: .5rem .6rem;
	border-radius: var(--nd-radius-s);
	color: var(--nd-on-surface);
	font-size: .95rem;
}
.nd-side-menu li a:hover { background: var(--nd-primary-container); color: var(--nd-on-primary-container); text-decoration: none; }

/* -------------------------------------------------------- rich text */
.nd-richtext { font-size: 1.02rem; line-height: 1.7; color: var(--nd-on-surface); max-width: 72ch; }
.nd-richtext img { max-width: 100%; height: auto; border-radius: var(--nd-radius-m); }
.nd-richtext .richtext-image.full-width { width: 100%; }
.nd-richtext a { text-decoration: underline; text-underline-offset: 2px; }
.nd-richtext h2, .nd-richtext h3 { margin-top: 1.6em; }
.nd-richtext blockquote {
	border-left: 4px solid var(--nd-primary);
	background: var(--nd-surface-container-low);
	border-radius: 0 var(--nd-radius-m) var(--nd-radius-m) 0;
	padding: .75rem 1.25rem;
	color: var(--nd-on-surface-variant);
}

/* ------------------------------------------------------------ tabelle */
.nd-table-wrap { overflow-x: auto; border: 1px solid var(--nd-outline-variant); border-radius: var(--nd-radius-l); background: var(--nd-surface-container-lowest); }
.nd-table-wrap table, table.nd-table { width: 100%; margin: 0; border-collapse: collapse; font-size: .92rem; }
.nd-table-wrap th, table.nd-table th {
	background: var(--nd-surface-container-low);
	color: var(--nd-on-surface-variant);
	font-weight: 600;
	text-align: left;
	padding: .75rem .9rem;
	white-space: nowrap;
	position: sticky; top: 0;
}
.nd-table-wrap td, table.nd-table td {
	padding: .65rem .9rem;
	border-top: 1px solid var(--nd-outline-variant);
	color: var(--nd-on-surface);
}
.nd-table-wrap tbody tr:hover, table.nd-table tbody tr:hover { background: var(--nd-surface-container-low); }
.nd-table-scroll { max-height: 480px; overflow-y: auto; }

/* -------------------------------------------------------- paginazione */
.nd-pagination { display: flex; justify-content: center; margin: 2rem 0 0; }
.nd-pagination ul { list-style: none; display: flex; align-items: center; gap: .6rem; margin: 0; padding: 0; }
.nd-page-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: var(--nd-surface-container-high);
	color: var(--nd-on-surface);
}
a.nd-page-btn:hover { background: var(--nd-primary-container); color: var(--nd-on-primary-container); text-decoration: none; }
.nd-page-btn.is-disabled { opacity: .35; }
.nd-page-status { font-size: .9rem; color: var(--nd-on-surface-variant); }

/* --------------------------------------------------------------- form */
.nd-form .form-control, .nd-form .form-select, .nd-form textarea {
	border-radius: var(--nd-radius-s);
	border-color: var(--nd-outline);
	padding: .65rem .9rem;
	background: var(--nd-surface-container-lowest);
}
.nd-form .form-control:focus, .nd-form .form-select:focus {
	border-color: var(--nd-primary);
	box-shadow: 0 0 0 .15rem color-mix(in srgb, var(--nd-primary) 25%, transparent);
}
.nd-form label { font-weight: 500; font-size: .9rem; color: var(--nd-on-surface-variant); margin-bottom: .3rem; }
.nd-form .form-text, .nd-form .helptext { color: var(--nd-outline); font-size: .82rem; }

/* --------------------------------------------------------- testimonial */
.nd-testimonial .nd-card-body { align-items: flex-start; }
.nd-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.nd-testimonial-quote { color: var(--nd-primary); font-size: 2rem; }
.nd-testimonial-name { font-weight: 600; color: var(--nd-on-surface); margin: 0; }

/* -------------------------------------------------------------- footer */
.nd-footer {
	margin-top: 4rem;
	background: #14261a;
	color: #cfe8d2;
}
.nd-footer-title { font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #8fd39a; margin-bottom: .9rem; }
.nd-footer-list { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.nd-footer-list li { margin-bottom: .5rem; display: flex; align-items: baseline; gap: .4rem; }
.nd-footer-list a { color: #cfe8d2; }
.nd-footer-list a:hover { color: #ffffff; }
.nd-footer-social { display: flex; gap: .7rem; margin-top: 1rem; }
.nd-footer-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%;
	background: rgba(255,255,255,.08);
	color: #cfe8d2;
}
.nd-footer-social a:hover { background: rgba(255,255,255,.18); color: #fff; }
.nd-footer-logos {
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
	gap: 1.25rem;
	padding: 1.25rem 0 2rem;
	border-top: 1px solid rgba(255,255,255,.12);
}
.nd-footer-logos a {
	background: #ffffff;
	border-radius: var(--nd-radius-m);
	padding: .7rem 1.2rem;
	display: inline-flex; align-items: center;
}
.nd-footer-logos img { height: 56px; width: auto; }
.nd-footer-copyright {
	background: #0d1a11;
	text-align: center;
	padding: .9rem 1rem;
	font-size: .85rem;
	color: #9ab8a0;
}
.nd-footer-copyright p { margin: 0; }

/* --------------------------------------------------------- FAB torna su */
.nd-fab-top {
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1030;
	width: 52px; height: 52px;
	border: none; border-radius: var(--nd-radius-l);
	background: var(--nd-primary-container);
	color: var(--nd-on-primary-container);
	box-shadow: var(--nd-elevation-2);
	display: inline-flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nd-fab-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.nd-fab-top:hover { box-shadow: var(--nd-elevation-3); }

/* ------------------------------------------------------------- utility */
.nd-stat {
	text-align: center;
	padding: 1.25rem 1rem;
}
.nd-stat-value { font-size: 2rem; font-weight: 700; color: var(--nd-primary); line-height: 1.1; }
.nd-stat-label { font-size: .85rem; color: var(--nd-on-surface-variant); text-transform: uppercase; letter-spacing: .05em; }

.nd-empty {
	text-align: center;
	color: var(--nd-on-surface-variant);
	padding: 3rem 1rem;
}
.nd-empty .material-symbols-outlined { font-size: 3rem; color: var(--nd-outline); display: block; margin-bottom: .5rem; }

.nd-chart-card { padding: 1.25rem; }
.nd-chart-card h2, .nd-chart-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.nd-chart-wrap { position: relative; width: 100%; min-height: 280px; }

.nd-map { border-radius: var(--nd-radius-l); overflow: hidden; border: 1px solid var(--nd-outline-variant); }
.nd-map .leaflet-container { min-height: 420px; border-radius: 0; }

@media print {
	.nd-appbar, .nd-fab-top, .nd-footer, .nd-breadcrumbs, .nd-drawer { display: none !important; }
}

/* --------------------------------------------------------- autocomplete */
.nd-autocomplete {
	position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1040;
	background: var(--nd-surface-container-lowest);
	border: 1px solid var(--nd-outline-variant);
	border-radius: var(--nd-radius-m);
	box-shadow: var(--nd-elevation-2);
	overflow: hidden;
}
.nd-autocomplete-item {
	display: block; width: 100%; text-align: left;
	border: none; background: transparent;
	padding: .6rem .9rem;
	font-size: .93rem; color: var(--nd-on-surface);
	cursor: pointer;
}
.nd-autocomplete-item:hover, .nd-autocomplete-item.is-active {
	background: var(--nd-primary-container);
	color: var(--nd-on-primary-container);
}

/* card compatte (griglia stazioni) */
.nd-card-sm .nd-card-media, .nd-card-sm .nd-card-media-empty { aspect-ratio: 16 / 10; }
.nd-card-sm .nd-card-body { padding: .8rem .95rem .95rem; gap: .2rem; }
.nd-card-sm .nd-card-title { font-size: 1rem; }
.nd-card-sm .nd-card-text { font-size: .85rem; }
.nd-card-sm .nd-card-overline { font-size: .72rem; }

/* variante a piena larghezza (schede specie) */
.nd-richtext-full { max-width: none; }

/* ---------------------------------------------------- heatmap inanellati */
.nd-heatmap { overflow-x: auto; border: 1px solid var(--nd-outline-variant); border-radius: var(--nd-radius-l); background: var(--nd-surface-container-lowest); padding: .75rem; }
.nd-heatmap-row, .nd-heatmap-head { display: flex; align-items: center; gap: .5rem; min-width: 700px; }
.nd-heatmap-row + .nd-heatmap-row { margin-top: 3px; }
.nd-heatmap-label { flex: 0 0 240px; width: 240px; font-size: .78rem; line-height: 1.2; overflow-wrap: break-word; }
.nd-heatmap-label strong { display: block; }
.nd-heatmap-label em { color: var(--nd-on-surface-variant); }
.nd-heatmap-cells { display: flex; gap: 2px; flex: 1 1 auto; }
.nd-heatmap-cell { height: 20px; border-radius: 4px; background: var(--nd-surface-container); flex: 1 1 0; min-width: 14px; }
.nd-heatmap-head { margin-bottom: .4rem; }
.nd-heatmap-head .nd-heatmap-cell { background: transparent; font-size: .6rem; color: var(--nd-on-surface-variant); height: auto; text-align: center; }
.nd-heatmap-legend { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--nd-on-surface-variant); margin-top: .6rem; }
.nd-heatmap-legend span.swatch { width: 18px; height: 12px; border-radius: 3px; display: inline-block; }

/* intestazioni di colonna ruotate (heatmap con colonne testuali, es. stazioni) */
.nd-heatmap-head .nd-heatmap-colhead {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	height: 110px;
	font-size: .65rem;
	color: var(--nd-on-surface-variant);
	overflow: hidden;
	text-overflow: ellipsis;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
}
