/* ==========================================================================
   DAP Theme — mobile first. Reference widths: 390px (phones), 1440px (desktop).
   ========================================================================== */

/* The fonts of the graphic of Elena (15/10). Texts: Montserrat (SIL Open Font License), copied into
   the theme as WOFF: no request to Google. Titles: Helvetica Neue / Helvetica, the fonts of the
   devices (Apple has them; Windows and Android show Arial, the closest): they are not ours to
   publish. The phrases in MoonTime are artwork (assets/img/frase-*.svg), the font is not served. */

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/montserrat-400.woff") format("woff");
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/montserrat-600.woff") format("woff");
}


:root {
	--c-primary: #35729f;
	--c-primary-hover: #2b5d83;
	--c-primary-soft: #e9f1f7;
	--c-accent: #62a329;
	--c-accent-ink: #47761c;
	--c-accent-soft: #eff7e6;
	--c-ink-strong: #303030;
	--c-ink: #303030;
	--c-text: #4a555f;
	--c-label: #4a555f;
	/* #909090 is the grey of the brand: for small text it would stay under the 4.5:1 of WCAG AA,
	   so the text uses a slightly darker one and #909090 stays on lines and large elements. */
	--c-muted: #6b7075;
	--c-grey: #909090;
	--c-line: #e3ecf4;
	--c-card: #ffffff;
	--c-tile: #f1f6fb;
	--c-bg: #f5f9fd;
	--c-claim: #edf4f9;

	--st: #47761c;
	--st-ink: #46781c;
	--st-disc: #62a329;
	--st-halo: #dcefc9;
	--st-soft: #eff7e6;

	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-title: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--c-sky: #3194d7;
	--radius-card: 14px;
	--radius-inner: 9px;
	--radius-btn: 10px;
	--shadow-card: 0 1px 2px rgba(15, 40, 90, 0.04), 0 10px 28px rgba(15, 40, 90, 0.06);
	--shadow-btn: 0 8px 18px rgba(53, 114, 159, 0.24);
	--gutter: 18px;
}

/* Status palettes ---------------------------------------------------------- */
.punto--in_scadenza,
.pill--in_scadenza {
	--st: #a86300;
	--st-ink: #8f5400;
	--st-disc: #ef960b;
	--st-halo: #fdeac4;
	--st-soft: #fff3dc;
}

.punto--scaduto,
.pill--scaduto {
	--st: #c4361c;
	--st-ink: #b3321a;
	--st-disc: #df472a;
	--st-halo: #fbd8cf;
	--st-soft: #fde8e2;
}

.punto--nessun_dato,
.punto--non-trovato,
.pill--nessun_dato {
	--st: #4d5f86;
	--st-ink: #4d5f86;
	--st-disc: #8595b3;
	--st-halo: #e1e7f1;
	--st-soft: #edf1f7;
}

.punto--sostituito {
	--st: #35729f;
	--st-ink: #35729f;
	--st-disc: #35729f;
	--st-halo: #dbe8f1;
	--st-soft: #eaf2f8;
}

.punto--dismesso {
	--st: #4d5f86;
	--st-ink: #4d5f86;
	--st-disc: #8595b3;
	--st-halo: #e1e7f1;
	--st-soft: #edf1f7;
}

/* Base ------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	background: var(--c-bg);
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.45;
	color: var(--c-text);
	background: var(--c-bg);
	letter-spacing: -0.012em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	display: flex;
	flex-direction: column;
}

body > main {
	flex: 1 0 auto;
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: var(--c-primary);
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
ul {
	margin: 0;
}

ul {
	padding: 0;
	list-style: none;
}

button,
input {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 3px solid rgba(10, 109, 230, 0.55);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--c-ink);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: var(--radius-btn);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.012em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
	-webkit-tap-highlight-color: transparent;
}

.btn:active {
	transform: translateY(1px);
}

/* inline-flex above would show a button the markup hides (the label of the QR window). */
.btn[hidden] {
	display: none;
}

.btn--primary {
	background: var(--c-primary);
	color: #fff;
	box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
	background: var(--c-primary-hover);
}

.btn--secondary {
	background: #f4f9ff;
	color: var(--c-ink);
	border: 1.5px solid #c5dcf6;
	box-shadow: 0 4px 12px rgba(15, 40, 90, 0.04);
}

.btn--secondary .icon {
	color: var(--c-primary);
}

.btn--secondary:hover {
	background: #eaf3fe;
}

.btn--block {
	display: flex;
	width: 100%;
}

.btn--tall {
	min-height: 44px;
}

/* Header ----------------------------------------------------------------- */
.site-header {
	position: relative;
	z-index: 20;
}

.site-header--home {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}

/* Signed in with the WordPress toolbar: WordPress pushes the page down (32 px, 46 px on narrow
   screens), and the header over the photo must start below the toolbar too, not under it. */
.admin-bar .site-header--home {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .site-header--home {
		top: 46px;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 52px;
	padding: 0 12px 0 22px;
}

.site-header--home .site-header__inner {
	height: 70px;
	padding-left: 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	color: var(--c-ink-strong);
	text-decoration: none;
}

.brand__mark {
	width: 26px;
	height: 36px;
}

.site-header--home .brand__mark {
	width: 29px;
	height: 40px;
}

.brand__logo {
	width: auto;
	max-height: 40px;
}

.brand__name {
	margin-left: 8px;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
}

.site-header--home .brand__name {
	margin-left: 8px;
	font-size: 27.5px;
}

.brand__tagline {
	display: none;
	flex-direction: column;
	margin-left: 15px;
	padding-left: 16px;
	border-left: 1px solid rgba(60, 80, 125, 0.28);
	color: #4a555f;
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 14px;
	text-transform: uppercase;
	white-space: nowrap;
}

.site-header--home .brand__tagline {
	display: flex;
}

.site-nav {
	display: none;
}

.menu-toggle {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--c-ink-strong);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.menu-toggle .icon {
	width: 25px;
	height: 25px;
	stroke-width: 1.6;
}

.menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
	display: block;
}

.mobile-menu {
	position: absolute;
	top: calc(100% - 4px);
	left: 12px;
	right: 12px;
	padding: 10px;
	border: 1px solid var(--c-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 18px 40px rgba(15, 40, 90, 0.16);
}

.mobile-menu[hidden] {
	display: none;
}

.nav-list--mobile {
	margin-bottom: 10px;
}

.nav-list--mobile a {
	display: block;
	padding: 13px 12px;
	border-radius: 10px;
	color: var(--c-ink);
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
}

.nav-list--mobile a:hover {
	background: var(--c-tile);
}

.nav-list--mobile a[aria-current="page"] {
	background: var(--c-primary-soft);
	color: var(--c-primary);
}

/* Home hero ---------------------------------------------------------------- */
.home {
	background: #f7fafd;
}

.home-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	isolation: isolate;
}

.home-hero__photo,
.home-hero__photo img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.home-hero__photo {
	z-index: -1;
}

.dap-has-search .home-hero__photo {
	height: 100vh;
	height: 100svh;
	-webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
	mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

.home-hero__photo img {
	object-fit: cover;
	object-position: 100% 100%;
}

.home-hero__main {
	flex: 1 0 auto;
	padding: 115px 28px 32px;
}

.home-hero__content {
	max-width: 1280px;
}

.eyebrow {
	display: flex;
	flex-direction: column;
	color: #465989;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.24em;
	line-height: 16px;
	text-transform: uppercase;
}

.eyebrow__comma {
	display: none;
}

.eyebrow::after {
	content: "";
	width: 37px;
	height: 2px;
	margin-top: 14px;
	border-radius: 2px;
	background: var(--c-primary);
}

.home-title {
	margin-top: 21px;
	color: var(--c-ink-strong);
	font-size: 48px;
	font-weight: 800;
	letter-spacing: -0.042em;
	line-height: 0.92;
}

.home-title__line {
	display: block;
}

.home-title__accent {
	color: var(--c-primary);
}

.home-lead {
	max-width: 14.4rem;
	margin-top: 16px;
	color: var(--c-text);
	font-size: 16px;
	line-height: 21px;
	letter-spacing: -0.02em;
}

/* Search ------------------------------------------------------------------ */
.search {
	display: grid;
	gap: 7px;
	width: 100%;
	max-width: 252px;
	margin-top: 28px;
}

.search__field {
	position: relative;
	display: flex;
	align-items: center;
	height: 46px;
	border: 1px solid rgba(214, 226, 242, 0.9);
	border-radius: var(--radius-btn);
	background: #fff;
	box-shadow: 0 10px 24px rgba(15, 40, 90, 0.08);
}

.search__icon {
	position: absolute;
	left: 16px;
	width: 21px;
	height: 21px;
	color: var(--c-primary);
	pointer-events: none;
}

.search__input {
	width: 100%;
	height: 100%;
	padding: 0 10px 0 51px;
	border: 0;
	border-radius: inherit;
	background: transparent;
	color: var(--c-ink);
	font-size: 16px; /* 16px keeps iOS from zooming on focus. */
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.search__input::placeholder {
	color: #56688f;
	font-size: 13.5px;
	letter-spacing: -0.015em;
	opacity: 1;
}

.search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.search__field:focus-within {
	border-color: rgba(10, 109, 230, 0.55);
	box-shadow: 0 0 0 3px rgba(10, 109, 230, 0.16), 0 10px 24px rgba(15, 40, 90, 0.08);
}

.search__submit {
	height: 46px;
	font-size: 15.5px;
	gap: 11px;
}

.search__submit .icon {
	width: 19px;
	height: 19px;
}

.search--stacked {
	max-width: none;
	margin-top: 14px;
}

/* Home search on phones: a card as wide as the screen with a visible label, a big field and
   button, and where to find the code. From 768 px it is the single bar of the mockup: the label
   stays for screen readers, the hint goes. The field takes a code only (search-form.php). */
.search__label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.search__hint {
	display: none;
}

@media (max-width: 767px) {
	.search--hero {
		gap: 10px;
		width: auto;
		max-width: none;
		margin: 26px -12px 0;
		padding: 16px 12px 12px;
		border: 1px solid rgba(255, 255, 255, 0.9);
		border-radius: 22px;
		background: rgba(255, 255, 255, 0.97);
		box-shadow: 0 18px 44px rgba(15, 40, 90, 0.14);
		-webkit-backdrop-filter: blur(20px) saturate(1.15);
		backdrop-filter: blur(20px) saturate(1.15);
	}

	.search--hero .search__label {
		position: static;
		width: auto;
		height: auto;
		margin: 0 0 -2px 2px;
		overflow: visible;
		clip: auto;
		white-space: normal;
		color: var(--c-ink-strong);
		font-size: 15px;
		font-weight: 700;
		letter-spacing: -0.01em;
		line-height: 20px;
	}

	.search--hero .search__field {
		height: 58px;
		border: 1.5px solid #cddbee;
		border-radius: 14px;
		box-shadow: none;
	}

	.search--hero .search__field:focus-within {
		border-color: var(--c-primary);
		box-shadow: 0 0 0 4px rgba(53, 114, 159, 0.18);
	}

	.search--hero .search__icon {
		left: 17px;
		width: 22px;
		height: 22px;
	}

	.search--hero .search__input {
		padding: 0 14px 0 52px;
		font-size: 20px;
		font-weight: 600;
		letter-spacing: 0.02em;
	}

	.search--hero .search__input::placeholder {
		color: #56688f;
		font-size: 17px;
		font-weight: 500;
		letter-spacing: 0;
	}

	.search--hero .search__submit {
		height: 58px;
		border-radius: 14px;
		font-size: 18px;
	}

	.search--hero .search__hint {
		display: flex;
		align-items: flex-start;
		gap: 9px;
		margin: 2px 2px 0;
		color: var(--c-text);
		font-size: 13.5px;
		line-height: 19px;
	}

	.search--hero .search__hint-icon {
		flex: none;
		width: 18px;
		height: 18px;
		margin-top: 1px;
		color: var(--c-primary);
	}

	/* The answer to a code that matches nothing lines up with the card. */
	.home-hero .results {
		margin-left: -12px;
		margin-right: -12px;
	}

	/* Narrow phones: the title stays on two lines (about 42 px at 320 px instead of 48). */
	.home-title {
		font-size: clamp(38px, 13vw, 48px);
	}
}

/* Short phones (SE and the like): less air above, so «Verifica» stays on the first screen. */
@media (max-width: 767px) and (max-height: 700px) {
	.home-hero__main {
		padding-top: 96px;
	}

	.home-title {
		margin-top: 16px;
	}
}

/* Answer of the search: a code that matches nothing, or too many searches -- */
.results {
	max-width: 626px;
	margin-top: 22px;
	padding: 14px 6px 6px;
	border: 1px solid rgba(214, 226, 242, 0.9);
	border-radius: var(--radius-card);
	background: rgba(255, 255, 255, 0.94);
	box-shadow: var(--shadow-card);
	scroll-margin-top: 16px;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.results:focus {
	outline: none;
}

.results__title {
	padding: 0 10px 10px;
	color: var(--c-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.results__hint {
	padding: 4px 10px 10px;
	color: var(--c-muted);
	font-size: 13.5px;
	line-height: 1.45;
}

.pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--st-soft);
	color: var(--st-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

/* Home footer --------------------------------------------------------------- */
.home-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 16px;
	padding: 0 28px 30px;
	color: #5a646d;
	font-size: 11.5px;
	line-height: 1.4;
}

.home-footer__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 4px;
}

.home-footer__links li + li::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 14px;
	margin: 0 10px;
	vertical-align: middle;
	background: rgba(75, 91, 130, 0.45);
}

.home-footer a {
	color: #5a646d;
	text-decoration: none;
}

.home-footer a:hover {
	color: var(--c-ink);
	text-decoration: underline;
}

/* Water point page ---------------------------------------------------------- */
.punto {
	padding: 0 var(--gutter) 28px;
}

.punto__inner {
	max-width: 600px;
	margin: 0 auto;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 28px;
	margin-top: 4px;
	padding-right: 8px;
	color: #335ba1;
	font-size: 12.5px;
	font-weight: 500;
	text-decoration: none;
}

.back-link .icon {
	width: 17px;
	height: 17px;
}

.back-link:hover span {
	text-decoration: underline;
}

.status-hero {
	margin-top: -14px;
	text-align: center;
}

.status-hero__badge {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 auto;
	border-radius: 50%;
	background: var(--st-halo);
}

.status-hero__disc {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--st-disc);
	color: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.status-hero__disc .icon {
	width: 22px;
	height: 22px;
}

.status-hero__title {
	margin-top: 6px;
	color: var(--st);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.status-hero__subtitle {
	max-width: 250px;
	margin: 1px auto 0;
	color: #4a555f;
	font-size: 13.5px;
	line-height: 16.5px;
	letter-spacing: -0.02em;
}

.status-hero__subtitle strong {
	color: var(--c-ink);
	font-weight: 700;
}

.card {
	border: 1px solid var(--c-line);
	border-radius: var(--radius-card);
	background: var(--c-card);
	box-shadow: var(--shadow-card);
}

.facts {
	margin-top: 9px;
}

.fact {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 53px;
	padding: 7px 12px 7px 68px;
}

.fact + .fact {
	border-top: 1px solid var(--c-line);
}

.fact__label {
	color: var(--c-label);
	font-size: 11.5px;
	font-weight: 400;
	line-height: 1.3;
}

.fact__icon {
	position: absolute;
	top: 50%;
	left: 10px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	transform: translateY(-50%);
	color: var(--c-primary);
}

.fact__icon .icon {
	width: 23px;
	height: 23px;
}

.fact__icon--tile {
	border-radius: 10px;
	background: var(--c-tile);
}

.fact__icon--status {
	color: var(--st-disc);
}

.fact__icon--status .icon {
	width: 30px;
	height: 30px;
}

.fact__value {
	margin-top: 1px;
	color: var(--c-ink);
	font-size: 15.5px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.fact__sep {
	display: inline-block;
	margin: 0 0.1em;
	font-size: 0.62em;
	vertical-align: 0.18em;
}

.fact__value--status {
	color: var(--st-ink);
}

.fact__detail {
	color: var(--c-muted);
	font-size: 11.5px;
	line-height: 1.3;
}

.fact--status {
	min-height: 58px;
}

.place {
	margin-top: 11px;
	padding-bottom: 7px;
}

.fact--plain {
	min-height: 44px;
	padding: 7px 12px 7px 57px;
	border-bottom: 1px solid var(--c-line);
}

.fact--plain + .fact--plain {
	border-top: 0;
}

.fact--plain .fact__icon {
	left: 6px;
	width: 40px;
	background: none;
}

.fact--plain .fact__icon .icon {
	width: 22px;
	height: 22px;
}

.fact__value--name {
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.place__photo {
	margin: 7px 8px 0;
	overflow: hidden;
	border-radius: var(--radius-inner);
	background: #dfe6ee;
}

.place__photo img {
	width: 100%;
	height: auto;
	aspect-ratio: 702 / 239;
	object-fit: cover;
}

.claim {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 41px;
	margin: 7px 8px 0;
	padding: 7px 12px 7px 54px;
	border-radius: var(--radius-inner);
	background: var(--c-claim);
}

.claim__icon {
	position: absolute;
	left: 13px;
	top: 50%;
	width: 23px;
	height: 23px;
	transform: translateY(-50%);
	color: #303030;
}

.claim__text {
	display: grid;
	gap: 1px;
}

.claim__title {
	color: var(--c-ink);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.3;
}

.claim__detail {
	color: #4c6290;
	font-size: 10.5px;
	line-height: 1.3;
}

.punto__actions {
	display: grid;
	gap: 7px;
	margin-top: 8px;
}

.punto__actions .btn {
	font-size: 14.5px;
}

.punto__actions .btn--primary .icon {
	width: 20px;
	height: 20px;
}

.punto__actions .btn--primary .icon-arrow-right {
	width: 18px;
	height: 18px;
}

.punto__actions .btn--secondary .icon {
	width: 21px;
	height: 21px;
}

.btn--secondary.btn--tall {
	gap: 18px;
}

.toast {
	justify-self: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--c-ink);
	color: #fff;
	font-size: 13.5px;
	font-weight: 500;
}

.toast[hidden] {
	display: none;
}

/* Impact ------------------------------------------------------------------ */
.impact {
	margin-top: 18px;
	padding: 16px 14px 14px;
}

.impact__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.impact__badge {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 11px;
	background: #e3f5ea;
	color: #47761c;
}

.impact__badge .icon {
	width: 23px;
	height: 23px;
}

.impact__title {
	color: var(--c-ink);
	font-size: 16.5px;
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.25;
}

.impact__subtitle {
	color: var(--c-muted);
	font-size: 12.5px;
	line-height: 1.35;
}

.impact__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 14px;
}

.impact__stat {
	display: grid;
	align-content: start;
	gap: 2px;
	padding: 12px;
	border-radius: 11px;
	background: var(--c-tile);
}

.impact__stat-icon {
	color: var(--c-primary);
	margin-bottom: 4px;
}

.impact__stat-icon .icon {
	width: 22px;
	height: 22px;
}

.impact__value {
	color: var(--c-ink);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}

.impact__label {
	color: var(--c-label);
	font-size: 12.5px;
	line-height: 1.3;
}

.impact__notes {
	display: grid;
	gap: 3px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--c-line);
	color: var(--c-muted);
	font-size: 11.5px;
	line-height: 1.4;
}

/* Not found ------------------------------------------------------------------ */
.notfound {
	margin-top: 16px;
	padding: 16px 14px 14px;
}

.notfound__text {
	color: var(--c-text);
	font-size: 14px;
	line-height: 1.45;
}

.search--stacked .search__field {
	box-shadow: none;
	border-color: #d6e2f2;
}

/* Replaced or removed distributor ----------------------------------------------- */
.replacement {
	position: relative;
	display: grid;
	gap: 2px;
	margin-top: 12px;
	padding: 12px 44px 12px 16px;
	border-color: #cfe0f7;
	color: inherit;
	text-decoration: none;
}

.replacement__label {
	color: var(--c-label);
	font-size: 11.5px;
	line-height: 1.3;
}

.replacement__code {
	color: var(--c-primary);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.replacement__detail {
	color: var(--c-muted);
	font-size: 12px;
	line-height: 1.35;
}

.replacement__chevron {
	position: absolute;
	top: 50%;
	right: 14px;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	color: var(--c-primary);
}

.replacement:hover .replacement__code,
.replacement:focus-visible .replacement__code {
	text-decoration: underline;
}

.facts--old {
	margin-top: 12px;
}

.punto--sostituito .punto__actions {
	margin-top: 10px;
}

/* Content pages ------------------------------------------------------------------ */
.page-content {
	padding: 0 var(--gutter) 32px;
}

.page-content__inner {
	max-width: 720px;
	margin: 0 auto;
}

.entry {
	margin-top: 12px;
	padding: 20px 18px;
}

.entry__title {
	color: var(--c-ink);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.entry__content {
	margin-top: 12px;
	font-size: 16px;
	line-height: 1.65;
}

.entry__content > * + * {
	margin-top: 1em;
}

/* Wave footer ------------------------------------------------------------------ */
.wave-footer {
	position: relative;
	flex: none;
	padding: 52px 20px 18px;
	overflow: hidden;
	text-align: center;
}

.wave-footer__waves {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
}

.wave-footer__content {
	position: relative;
}

.wave-footer__brand {
	color: var(--c-ink);
	font-size: 14.5px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.wave-footer__claim {
	margin-top: 3px;
	color: #4a555f;
	font-size: 11.5px;
	line-height: 1.3;
}

.wave-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 14px;
	margin-top: 8px;
	color: #646e77;
	font-size: 11.5px;
	list-style: none;
}

.wave-footer__links a {
	color: inherit;
	text-decoration: none;
}

.wave-footer__links a:hover {
	text-decoration: underline;
}

.wave-footer {
	isolation: isolate;
}

/* ==========================================================================
   Tablet ≥ 768px
   ========================================================================== */
@media (min-width: 768px) {
	:root {
		--gutter: 32px;
	}

	.site-header__inner,
	.site-header--home .site-header__inner {
		height: 84px;
		padding: 0 24px 0 40px;
	}

	.brand__mark,
	.site-header--home .brand__mark {
		width: 34px;
		height: 47px;
	}

	.brand__name,
	.site-header--home .brand__name {
		margin-left: 10px;
		font-size: 34px;
	}

	.brand__tagline,
	.site-header--home .brand__tagline {
		display: flex;
		font-size: 10px;
		line-height: 15px;
		margin-left: 18px;
		padding-left: 18px;
	}

	.home-hero__photo img {
		object-position: 100% 50%;
	}

	.home-hero__main {
		padding: 170px 40px 40px;
	}

	.eyebrow {
		display: block;
		font-size: 13px;
		letter-spacing: 0.2em;
	}

	.eyebrow__comma {
		display: inline;
	}

	.eyebrow::after {
		display: none;
	}

	.home-title {
		margin-top: 30px;
		font-size: 68px;
		line-height: 0.9;
	}

	.home-lead {
		max-width: 30rem;
		margin-top: 20px;
		font-size: 19px;
		line-height: 28px;
	}

	.search {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0;
		max-width: 560px;
		margin-top: 36px;
		border-radius: 12px;
		box-shadow: 0 14px 34px rgba(15, 40, 90, 0.1);
	}

	.search__field {
		height: 62px;
		border-right: 0;
		border-radius: 12px 0 0 12px;
		box-shadow: none;
	}

	.search__icon {
		left: 20px;
		width: 25px;
		height: 25px;
	}

	.search__input {
		padding-left: 60px;
		font-size: 17px;
	}

	.search__input::placeholder {
		font-size: 17px;
	}

	.search__submit {
		height: 62px;
		min-width: 160px;
		border-radius: 0 12px 12px 0;
		box-shadow: none;
		font-size: 17.5px;
	}

	.search__field:focus-within {
		box-shadow: 0 0 0 3px rgba(10, 109, 230, 0.16);
	}

	.search--stacked {
		max-width: none;
		box-shadow: none;
	}

	.search--stacked .search__field,
	.search--stacked .search__submit {
		height: 54px;
	}

	.home-footer {
		max-width: 1000px;
		padding: 0 40px 34px;
		font-size: 13.5px;
	}

	.punto {
		padding-top: 12px;
	}

	.punto__inner {
		max-width: 640px;
	}

	.back-link {
		font-size: 14px;
	}

	.status-hero__badge {
		width: 68px;
		height: 68px;
	}

	.status-hero__disc {
		width: 46px;
		height: 46px;
	}

	.status-hero__disc .icon {
		width: 26px;
		height: 26px;
	}

	.status-hero__title {
		margin-top: 10px;
		font-size: 28px;
	}

	.status-hero__subtitle {
		max-width: 440px;
		margin-top: 4px;
		font-size: 16px;
		line-height: 1.4;
	}

	.facts {
		margin-top: 18px;
	}

	.fact {
		min-height: 70px;
		padding: 10px 18px 10px 84px;
	}

	.fact__icon {
		left: 16px;
		width: 48px;
		height: 48px;
	}

	.fact__icon .icon {
		width: 26px;
		height: 26px;
	}

	.fact__icon--status .icon {
		width: 32px;
		height: 32px;
	}

	.fact__label {
		font-size: 13px;
	}

	.fact__value {
		font-size: 18px;
	}

	.fact__detail {
		font-size: 13px;
	}

	.fact--status {
		min-height: 76px;
	}

	.place {
		margin-top: 14px;
		padding-bottom: 10px;
	}

	.fact--plain {
		min-height: 60px;
		padding: 10px 18px 10px 72px;
	}

	.fact--plain .fact__icon {
		left: 12px;
	}

	.fact__value--name {
		font-size: 16px;
	}

	.place__photo,
	.claim {
		margin-left: 10px;
		margin-right: 10px;
	}

	.place__photo {
		margin-top: 10px;
	}

	.claim {
		margin-top: 10px;
		min-height: 54px;
		padding: 10px 16px 10px 64px;
	}

	.claim__icon {
		left: 20px;
		width: 26px;
		height: 26px;
	}

	.claim__title {
		font-size: 15px;
	}

	.claim__detail {
		font-size: 13px;
	}

	.punto__actions {
		gap: 10px;
		margin-top: 14px;
	}

	.punto__actions .btn,
	.btn--tall {
		min-height: 52px;
		font-size: 16px;
	}

	.impact {
		padding: 20px 18px 16px;
	}

	.impact__title {
		font-size: 18px;
	}

	.impact__subtitle {
		font-size: 13.5px;
	}

	.impact__value {
		font-size: 22px;
	}

	.impact__label {
		font-size: 13px;
	}

	.impact__notes {
		font-size: 12.5px;
	}

	.notfound {
		padding: 20px 18px 18px;
	}

	.notfound__text {
		font-size: 15px;
	}

	.wave-footer__brand {
		font-size: 17px;
	}

	.wave-footer__claim {
		font-size: 13px;
	}

	.wave-footer__links {
		font-size: 12.5px;
	}

	.impact__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.wave-footer {
		padding-top: 80px;
	}
}

/* ==========================================================================
   Desktop ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
	.menu-toggle,
	.mobile-menu {
		display: none !important;
	}

	.site-nav {
		display: flex;
		align-items: center;
		gap: clamp(28px, 2.9vw, 42px);
	}

	.nav-list--desktop {
		display: flex;
		align-items: center;
		gap: clamp(28px, 3.1vw, 45px);
	}

	.nav-list--desktop a {
		color: var(--c-ink);
		font-size: 17px;
		font-weight: 500;
		text-decoration: none;
		letter-spacing: -0.01em;
	}

	.nav-list--desktop a:hover {
		color: var(--c-primary);
	}

	.nav-list--desktop a[aria-current="page"] {
		color: var(--c-primary);
		text-decoration: underline;
		text-decoration-thickness: 2px;
		text-underline-offset: 9px;
	}

	.site-nav__cta {
		min-height: 53px;
		padding: 0 27px 0 26px;
		gap: 19px;
		border-radius: 12px;
		font-size: 18px;
		font-weight: 600;
	}

	.site-nav__cta .icon {
		width: 25px;
		height: 25px;
	}

	.site-header__inner,
	.site-header--home .site-header__inner {
		height: 102px;
		max-width: 1440px;
		margin: 0 auto;
		padding: 0 clamp(40px, 5.55vw, 80px);
	}

	.brand__mark,
	.site-header--home .brand__mark {
		width: 45px;
		height: 62px;
	}

	.brand__name,
	.site-header--home .brand__name {
		margin-left: 13px;
		font-size: 48px;
	}

	.brand__tagline,
	.site-header--home .brand__tagline {
		margin-left: 12px;
		padding-left: 15px;
		font-size: 11.5px;
		line-height: 17px;
		letter-spacing: 0.2em;
	}

	.home-hero {
		min-height: max(100vh, 720px);
	}

	.home-hero__main {
		padding: 176px clamp(40px, 5.55vw, 80px) 40px;
	}

	.home-hero__content {
		margin: 0 auto;
		max-width: 1280px;
	}

	.eyebrow {
		font-size: 13.5px;
		letter-spacing: 0.19em;
		line-height: 18px;
	}

	.home-title {
		margin-top: 26px;
		font-size: clamp(62px, 6.25vw, 90px);
		letter-spacing: -0.045em;
		line-height: 0.9;
	}

	.home-lead {
		max-width: 35rem;
		margin-top: 26px;
		font-size: clamp(19px, 1.67vw, 24px);
		line-height: 1.43;
		letter-spacing: -0.005em;
	}

	.search {
		max-width: 626px;
		margin-top: 36px;
	}

	.search__field,
	.search__submit {
		height: 69px;
	}

	.search__icon {
		left: 22px;
		width: 30px;
		height: 30px;
	}

	.search__input {
		padding-left: 77px;
		font-size: 19px;
	}

	.search__input::placeholder {
		font-size: 19px;
	}

	.search__submit {
		min-width: 178px;
		font-size: 19.5px;
		gap: 16px;
	}

	.search__submit .icon {
		width: 22px;
		height: 22px;
	}

	/* The links stop short of the photo subject, as in the mockup. */
	.home-footer {
		width: 100%;
		max-width: 1076px;
		margin: 0 0 0 max(0px, calc((100% - 1440px) / 2));
		padding: 0 0 34px clamp(40px, 5.55vw, 80px);
		font-size: 13.5px;
	}

	.home-footer__links {
		gap: 32px;
	}

	.home-footer__links li + li::before {
		display: none;
	}

	.punto {
		padding-top: 24px;
	}
}

@media (min-width: 768px) {
	.replacement {
		padding: 16px 52px 16px 20px;
	}

	.replacement__label {
		font-size: 13px;
	}

	.replacement__code {
		font-size: 24px;
	}

	.replacement__detail {
		font-size: 13.5px;
	}
}

/* Enti area ---------------------------------------------------------------- */
.pill--inattivo,
.area-machine--inattivo,
.area-machine--nessun_dato {
	--st: #4d5f86;
	--st-ink: #4d5f86;
	--st-disc: #8595b3;
	--st-halo: #e1e7f1;
	--st-soft: #edf1f7;
}

.area-machine--in_scadenza {
	--st: #a86300;
	--st-ink: #8f5400;
	--st-disc: #ef960b;
}

.area-machine--scaduto {
	--st: #c4361c;
	--st-ink: #b3321a;
	--st-disc: #df472a;
}

.area {
	padding: 6px var(--gutter) 28px;
}

.area__inner {
	max-width: 760px;
	margin: 0 auto;
}

.area__inner--narrow {
	max-width: 420px;
}

/* Sign in */
.area-login {
	margin-top: 14px;
	padding: 20px 18px 18px;
	text-align: center;
}

.area-login__badge {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin: 0 auto 8px;
	border-radius: 50%;
	background: var(--c-primary-soft);
	color: var(--c-primary);
}

.area-login__title {
	color: var(--c-ink);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.area-login__text {
	margin-top: 4px;
	color: var(--c-text);
	font-size: 14px;
	line-height: 1.4;
}

.area-login__error,
.area-login__notice {
	margin-top: 12px;
	padding: 9px 12px;
	border-radius: var(--radius-inner);
	font-size: 13.5px;
	text-align: left;
}

.area-login__error {
	background: #fde8e2;
	color: #a2301a;
}

.area-login__notice {
	background: var(--c-claim);
	color: #303030;
}

.area-login__form {
	margin-top: 14px;
	text-align: left;
}

.area-login__remember {
	margin: 8px 0 12px;
	color: var(--c-text);
	font-size: 13px;
}

.area-login__links {
	margin-top: 12px;
	font-size: 13.5px;
}

.area-field {
	margin-bottom: 10px;
}

.area-field__label {
	display: block;
	margin-bottom: 4px;
	color: var(--c-label);
	font-size: 12.5px;
}

.area-field__input {
	width: 100%;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid #d6e2f2;
	border-radius: var(--radius-btn);
	background: #fff;
	font-size: 15px;
}

select.area-field__input {
	padding: 0 10px;
}

/* Header of the area */
.area-top {
	margin-top: 10px;
}

.area-top__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
}

.area-top__title {
	color: var(--c-ink);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.area-top__user {
	margin-top: 2px;
	color: var(--c-text);
	font-size: 13.5px;
}

.area-top__badge,
.area-top__clients {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--c-tile);
	color: #4a555f;
	font-size: 12px;
}

.area-top__badge--warn {
	background: #fff3dc;
	color: #8f5400;
}

.area-top__logout {
	min-height: 38px;
	padding: 0 14px;
	font-size: 13.5px;
}

.area-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
	padding-bottom: 2px;
}

.area-nav__link {
	padding: 7px 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--c-line);
	color: #4a555f;
	font-size: 13.5px;
	font-weight: 500;
	text-decoration: none;
}

.area-nav__link.is-current {
	background: var(--c-primary);
	border-color: var(--c-primary);
	color: #fff;
}

/* Counters */
.area-section {
	margin-top: 16px;
}

.area-section__title,
.area-card__title {
	color: var(--c-ink);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.area-kpis {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 8px;
}

.area-kpi {
	padding: 12px 14px;
}

.area-kpi__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.area-kpi__value {
	display: block;
	color: var(--c-ink);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.area-kpi__label {
	display: block;
	margin-top: 4px;
	color: var(--c-muted);
	font-size: 12.5px;
}

.area-kpi__note {
	display: block;
	margin-top: 2px;
	color: var(--c-muted);
	font-size: 11.5px;
}

.area-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.area-grid {
	display: grid;
	gap: 10px;
	margin-top: 16px;
}

.area-card {
	padding: 14px 16px 16px;
}

.area-card__note {
	margin-top: 8px;
	color: var(--c-muted);
	font-size: 12.5px;
	line-height: 1.4;
}

.area-empty {
	margin-top: 8px;
	color: var(--c-muted);
	font-size: 13.5px;
}

.area-empty--box {
	margin-top: 12px;
	padding: 18px 16px;
	text-align: center;
}

.area-list {
	margin-top: 8px;
}

.area-list__item {
	display: flex;
	gap: 10px;
	justify-content: space-between;
	padding: 8px 0;
	border-top: 1px solid var(--c-line);
	font-size: 13.5px;
}

.area-list__item:first-child {
	border-top: 0;
}

.area-list__detail {
	display: block;
	color: var(--c-muted);
	font-size: 12px;
	line-height: 1.35;
}

.area-list__side {
	text-align: right;
	white-space: nowrap;
}

.area-list__date {
	color: var(--c-ink);
	font-weight: 600;
}

.area-sync {
	margin-top: 8px;
	font-size: 13.5px;
}

.area-sync--stale {
	color: #8f5400;
}

/* Chart */
.area-chart {
	margin-top: 10px;
	overflow-x: auto;
}

.chart {
	width: 100%;
	min-width: 520px;
	height: auto;
}

.chart__grid {
	stroke: var(--c-line);
	stroke-width: 1;
}

.chart__axis,
.chart__label,
.chart__value {
	fill: var(--c-muted);
	font-size: 11px;
	font-family: var(--font);
}

.chart__value {
	fill: var(--c-ink);
	font-weight: 700;
}

.chart__bar {
	fill: var(--c-primary);
}

.chart__bar--install {
	fill: #47761c;
}

.chart__bar--other {
	fill: #8595b3;
}

.area-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 8px;
	color: var(--c-muted);
	font-size: 12.5px;
}

.area-legend__item--sanificazioni::before,
.area-legend__item--installazioni::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 6px;
	border-radius: 3px;
	background: var(--c-primary);
}

.area-legend__item--installazioni::before {
	background: #47761c;
}

.area-table-details {
	margin-top: 10px;
	font-size: 13px;
}

.area-table-details summary {
	cursor: pointer;
	color: var(--c-primary);
}

.area-table {
	width: 100%;
	margin-top: 8px;
	border-collapse: collapse;
	font-size: 13px;
}

.area-table th,
.area-table td {
	padding: 6px 8px 6px 0;
	text-align: left;
	border-bottom: 1px solid var(--c-line);
	vertical-align: top;
}

.area-table thead th {
	color: var(--c-label);
	font-size: 11.5px;
	font-weight: 500;
}

/* List of distributors */
.area-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-end;
	margin-top: 14px;
}

.area-filters .area-field {
	flex: 1 1 200px;
	margin: 0;
}

.area-filters .btn {
	min-height: 46px;
}

.area-views {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

.area-views__link {
	padding: 5px 12px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--c-line);
	color: #4a555f;
	font-size: 12.5px;
	text-decoration: none;
}

.area-views__link.is-current {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: #fff;
}

.area-count {
	margin-top: 12px;
	color: var(--c-muted);
	font-size: 13px;
}

.area-count__export {
	margin-left: 10px;
}

.area-machines {
	display: grid;
	gap: 8px;
	margin-top: 8px;
}

.area-machine {
	padding: 12px 14px;
	border-left: 4px solid var(--st-disc);
}

.area-machine__head {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
}

.area-machine__code {
	color: var(--c-ink);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.area-machine__name {
	margin-top: 2px;
	color: var(--c-text);
	font-size: 13.5px;
}

.area-machine__address,
.area-machine__client {
	color: var(--c-muted);
	font-size: 12.5px;
	line-height: 1.35;
}

.area-machine__status {
	margin-top: 6px;
	font-size: 12.5px;
}

.area-machine__date {
	display: block;
	color: var(--c-ink);
	font-weight: 600;
}

.area-machine__detail {
	color: var(--c-muted);
}

.area-machine__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.area-machine__actions .btn {
	min-height: 38px;
	padding: 0 14px;
	font-size: 13px;
}

.area-pages {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 14px;
}

.area-pages__link {
	min-width: 38px;
	padding: 7px 10px;
	border: 1px solid var(--c-line);
	border-radius: 8px;
	background: #fff;
	color: #4a555f;
	font-size: 13px;
	text-align: center;
	text-decoration: none;
}

.area-pages__link.is-current {
	background: var(--c-primary);
	border-color: var(--c-primary);
	color: #fff;
}

@media (min-width: 768px) {
	.area {
		padding-top: 12px;
	}

	.area__inner {
		max-width: 980px;
	}

	.area-kpis {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.area-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.area-machines {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.area-top__title {
		font-size: 26px;
	}

	.area-machine__code {
		font-size: 17px;
	}
}

/* ==========================================================================
   F5 — Green Division: logo, public card without alarms, light animations.
   ========================================================================== */

/* Brand -------------------------------------------------------------------- */
.brand__logo {
	display: block;
	width: auto;
	height: 34px;
}

.brand-drop {
	width: 20px;
	height: auto;
	color: var(--c-primary);
}

.site-header--home .brand__logo {
	height: 32px;
}

/* Public card: heading and badge ------------------------------------------- */
.punto-hero {
	margin-top: -10px;
	text-align: center;
}

.punto-hero__badge {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 auto;
	border-radius: 50%;
	background: var(--c-accent-soft);
}

.punto-hero__disc {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--c-accent);
	color: #fff;
	box-shadow: 0 4px 10px rgba(77, 131, 31, 0.28);
}

.punto-hero__check {
	width: 22px;
	height: 22px;
}

.punto-hero__title {
	margin-top: 8px;
	color: var(--c-ink-strong);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.punto-hero__state {
	max-width: 280px;
	margin: 4px auto 0;
	color: var(--c-text);
	font-size: 13.5px;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.punto-hero__state-strong {
	color: var(--c-accent-ink);
	font-weight: 700;
}

/* Public card: photo and facts --------------------------------------------- */
/* The blocks of the card share one column: same width, same inner padding, same gap. */
.punto--scheda .punto-card,
.punto--scheda .hygiene,
.punto--scheda .claim--card,
.punto--scheda .impact {
	margin: 14px 0 0;
}

.punto--scheda .punto-card,
.punto--scheda .hygiene,
.punto--scheda .impact {
	padding: 14px;
}

.punto-card__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 216px;
	margin: 0 0 8px;
	padding: 12px;
	border-radius: var(--radius-inner);
	background: linear-gradient(180deg, #f6fafd 0%, #eaf2f9 100%);
}

.punto-card__photo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 192px;
	object-fit: contain;
}

.punto-card__photo .punto-card__drawing {
	max-height: 172px;
	opacity: 0.92;
}

.punto-card__facts {
	margin: 0;
}

/* Every fact of the card: the same tile, so labels and values start on one edge. */
.punto-card .fact {
	min-height: 58px;
	padding: 8px 4px 8px 58px;
}

.punto-card .fact__icon {
	left: 0;
	width: 44px;
	height: 44px;
}

/* The blocks below follow the same two lines: tiles centred on one axis, text on the next. */
.punto--scheda .hygiene__item {
	gap: 14px;
}

.punto--scheda .hygiene__icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
}

.punto--scheda .claim--card {
	padding-left: 72px;
}

.punto--scheda .claim--card .claim__icon {
	left: 24px;
}

.punto--scheda .impact__head {
	gap: 14px;
}

.fact__value--date {
	color: var(--c-ink-strong);
	font-weight: 700;
}

/* How it is sanitized ------------------------------------------------------ */
.hygiene {
	padding: 14px;
}

.hygiene__title {
	color: var(--c-ink-strong);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.hygiene__list {
	margin-top: 10px;
	display: grid;
	gap: 12px;
}

.hygiene__item {
	display: flex;
	align-items: flex-start;
	gap: 11px;
}

.hygiene__icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--c-primary-soft);
	color: var(--c-primary);
}

.hygiene__icon .icon {
	width: 18px;
	height: 18px;
}

.hygiene__text {
	display: block;
}

.hygiene__step {
	display: block;
	color: var(--c-ink-strong);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.3;
}

.hygiene__detail {
	display: block;
	margin-top: 2px;
	color: var(--c-text);
	font-size: 13px;
	line-height: 1.45;
}

/* Claim and telephone ------------------------------------------------------ */
.claim--card {
	border: 1px solid var(--c-line);
	border-radius: var(--radius-card);
}

.help-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 20px;
	color: var(--c-muted);
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}

.help-line__icon {
	width: 15px;
	height: 15px;
	color: var(--c-primary);
}

.help-line__number {
	color: var(--c-primary);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.help-line__number:hover {
	text-decoration: underline;
}

/* Footer with the company data --------------------------------------------- */
.wave-footer__logo {
	display: block;
	width: auto;
	height: 38px;
	margin: 0 auto 6px;
}

.wave-footer__address {
	display: grid;
	gap: 2px;
	margin-top: 8px;
	color: var(--c-muted);
	font-size: 12px;
	font-style: normal;
	line-height: 1.5;
}

.wave-footer__address a {
	color: var(--c-primary);
	font-weight: 600;
	text-decoration: none;
}

.wave-footer__copy {
	margin-top: 8px;
	color: var(--c-muted);
	font-size: 11.5px;
}

@media (min-width: 768px) {
	.punto--scheda .punto-card,
	.punto--scheda .hygiene,
	.punto--scheda .claim--card,
	.punto--scheda .impact {
		margin-top: 16px;
	}

	.punto--scheda .punto-card,
	.punto--scheda .hygiene,
	.punto--scheda .impact {
		padding: 18px;
	}

	/* Picture and facts side by side: the picture panel is as tall as the facts, and the
	   machine sits in its middle. */
	.punto-card {
		display: grid;
		grid-template-columns: 232px minmax(0, 1fr);
		align-items: stretch;
		gap: 20px;
	}

	.punto-card__photo {
		height: auto;
		min-height: 300px;
		margin: 0;
	}

	.punto-card__photo img {
		max-height: 300px;
	}

	.punto-card__photo .punto-card__drawing {
		max-height: 260px;
	}

	.punto-card .fact {
		min-height: 64px;
		padding: 10px 4px 10px 64px;
	}

	.punto-card .fact__icon {
		width: 48px;
		height: 48px;
	}

	.punto--scheda .hygiene__icon {
		width: 48px;
		height: 48px;
	}

	.punto--scheda .claim--card {
		padding-left: 82px;
	}

	.punto--scheda .claim--card .claim__icon {
		left: 29px;
	}

	.punto--scheda .impact__head {
		gap: 16px;
	}

	.punto--scheda .impact__badge {
		width: 48px;
		height: 48px;
	}

	.hygiene__list {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}

	.hygiene__item {
		flex-direction: column;
		gap: 8px;
	}

	.punto-hero__title {
		font-size: 26px;
	}

	.punto-hero__state {
		max-width: none;
		font-size: 14.5px;
	}
}

@media (min-width: 1024px) {
	.punto--scheda .punto__inner {
		max-width: 720px;
	}
}

/* Light animations (only when the visitor did not ask for less motion) ------ */
@media (prefers-reduced-motion: no-preference) {
	.punto__inner > * {
		animation: dap-rise 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
	}

	.punto__inner > :nth-child(2) {
		animation-delay: 0.05s;
	}

	.punto__inner > :nth-child(3) {
		animation-delay: 0.1s;
	}

	.punto__inner > :nth-child(4) {
		animation-delay: 0.15s;
	}

	.punto__inner > :nth-child(5) {
		animation-delay: 0.2s;
	}

	.punto__inner > :nth-child(n + 6) {
		animation-delay: 0.25s;
	}

	.punto-hero__badge {
		animation: dap-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
	}

	.punto-hero__check path {
		stroke-dasharray: 30;
		stroke-dashoffset: 30;
		animation: dap-draw 0.45s 0.3s ease-out forwards;
	}

	.hygiene__item {
		animation: dap-rise 0.4s var(--dap-delay, 0s) ease-out both;
	}

	.home-hero__content > * {
		animation: dap-rise 0.5s ease-out both;
	}

	.home-hero__content > :nth-child(2) {
		animation-delay: 0.06s;
	}

	.home-hero__content > :nth-child(3) {
		animation-delay: 0.12s;
	}

	.home-hero__content > :nth-child(4) {
		animation-delay: 0.18s;
	}

	.wave-footer__waves path {
		animation: dap-wave 14s ease-in-out infinite alternate;
		transform-origin: center bottom;
	}

	.wave-footer__waves path:last-child {
		animation-duration: 18s;
		animation-direction: alternate-reverse;
	}

	.btn .icon-arrow-right {
		transition: transform 0.25s ease;
	}

	.btn:hover .icon-arrow-right {
		transform: translateX(3px);
	}

	.search-field:focus-within {
		transition: box-shadow 0.25s ease;
	}

	.impact__stat {
		animation: dap-rise 0.4s ease-out both;
	}
}

/* The fade starts from a visible opacity: an element at 0 is not painted, and the largest one
   would delay the LCP that Lighthouse measures. */
@keyframes dap-rise {
	from {
		opacity: 0.35;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes dap-pop {
	from {
		opacity: 0;
		transform: scale(0.7);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes dap-draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes dap-wave {
	from {
		transform: translateX(-8px) scaleY(1);
	}

	to {
		transform: translateX(8px) scaleY(1.04);
	}
}

/* The search is running: the arrow of the button turns into a wheel (15/10) ---------------- */
.search.is-busy .search__submit {
	cursor: progress;
}

.search.is-busy .search__submit svg {
	display: none;
}

.search.is-busy .search__submit::after {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: dap-spin 0.8s linear infinite;
}

@keyframes dap-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ==========================================================================
   F5 — Enti area: filters, KPI tiles, charts, map.
   ========================================================================== */

.area-filters {
	margin-top: 14px;
	padding: 12px 14px 14px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-card);
	background: var(--c-card);
	box-shadow: var(--shadow-card);
}

.area-filters__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 12px;
}

.area-filters__title {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--c-ink-strong);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.area-filters__title .icon {
	width: 16px;
	height: 16px;
	color: var(--c-primary);
}

.area-filters__period {
	color: var(--c-muted);
	font-size: 12.5px;
}

.area-periods {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.area-periods__link {
	padding: 6px 12px;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	background: var(--c-tile);
	color: var(--c-text);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
}

.area-periods__link.is-current {
	border-color: var(--c-primary);
	background: var(--c-primary);
	color: #fff;
}

.area-filters__form {
	display: grid;
	gap: 10px;
	margin-top: 12px;
}

.area-filters__field {
	display: grid;
	gap: 4px;
}

.area-filters__field label {
	color: var(--c-label);
	font-size: 12px;
	font-weight: 600;
}

.area-filters__field select,
.area-filters__field input {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-btn);
	background: #fff;
	color: var(--c-ink);
	font-family: inherit;
	font-size: 13.5px;
}

.area-filters__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.area-filters__reset {
	color: var(--c-muted);
	font-size: 12.5px;
}

/* KPI tiles ---------------------------------------------------------------- */
.area-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.area-tile {
	padding: 12px 12px 11px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-card);
	background: var(--c-card);
	box-shadow: var(--shadow-card);
}

.area-tile__value {
	display: block;
	color: var(--c-ink-strong);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
}

.area-tile__label {
	display: block;
	margin-top: 3px;
	color: var(--c-label);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.3;
}

.area-tile__note {
	display: block;
	margin-top: 4px;
	color: var(--c-muted);
	font-size: 11.5px;
	line-height: 1.35;
}

.area-tile__delta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 7px;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--c-tile);
	color: var(--c-muted);
	font-size: 11.5px;
	font-weight: 700;
}

.area-tile__delta .icon {
	width: 13px;
	height: 13px;
}

.area-tile__delta--up {
	background: var(--c-accent-soft);
	color: var(--c-accent-ink);
}

.area-tile__delta--down {
	background: #fdeee9;
	color: #b3321a;
}

/* Charts ------------------------------------------------------------------- */
.area-charts {
	display: grid;
	gap: 12px;
	margin-top: 16px;
}

.area-chart {
	padding: 14px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-card);
	background: var(--c-card);
	box-shadow: var(--shadow-card);
}

.area-chart__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
}

.area-chart__title {
	color: var(--c-ink-strong);
	font-size: 14.5px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.area-chart__note {
	width: 100%;
	margin-top: 2px;
	color: var(--c-muted);
	font-size: 12px;
	line-height: 1.4;
}

.area-chart__csv {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--c-primary);
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.area-chart__csv .icon {
	width: 15px;
	height: 15px;
}

.area-chart__figure {
	margin: 10px 0 0;
	overflow-x: auto;
}

/* Inside a chart card the drawing follows the width of the card (the 520px of the F3 chart
   would be cut by the two columns of the desktop grid). */
.area-chart .chart {
	min-width: 0;
}

@media (max-width: 560px) {
	/* On a phone twelve months in 360px are unreadable: those two charts scroll sideways. */
	.area-chart .chart--columns,
	.area-chart .chart--line {
		min-width: 440px;
	}
}

.area-chart__empty {
	margin-top: 10px;
	padding: 18px;
	border-radius: var(--radius-inner);
	background: var(--c-tile);
	color: var(--c-muted);
	font-size: 13px;
	text-align: center;
}

.area-chart__toggle {
	margin-top: 8px;
	color: var(--c-primary);
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
}

.area-chart__table {
	width: 100%;
	margin-top: 8px;
	border-collapse: collapse;
	font-size: 12.5px;
}

.area-chart__table th,
.area-chart__table td {
	padding: 5px 8px;
	border-bottom: 1px solid var(--c-line);
	text-align: left;
}

.area-chart__table th {
	color: var(--c-label);
	font-weight: 700;
}

.area-chart__table td + td,
.area-chart__table th + th {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.area-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-top: 8px;
}

.area-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--c-text);
	font-size: 12.5px;
}

.area-legend__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--c-muted);
}

.area-legend__dot--in_regola {
	background: #62a329;
}

.area-legend__dot--in_scadenza {
	background: #ef960b;
}

.area-legend__dot--scaduto {
	background: #df472a;
}

.area-legend__dot--nessun_dato {
	background: #8595b3;
}

.area-legend__value {
	color: var(--c-muted);
	font-variant-numeric: tabular-nums;
}

/* Chart colours ------------------------------------------------------------ */
.chart__bar--sanificazioni {
	fill: var(--c-primary);
}

.chart__bar--installazioni {
	fill: #62a329;
}

.chart__bar--h {
	fill: var(--c-primary);
}

.chart__slice {
	stroke: #8595b3;
}

.chart__slice--in_regola {
	stroke: #62a329;
}

.chart__slice--in_scadenza {
	stroke: #ef960b;
}

.chart__slice--scaduto {
	stroke: #df472a;
}

.chart__ring {
	stroke: #eef3f8;
}

.chart__center {
	fill: var(--c-ink-strong);
	font-size: 26px;
	font-weight: 800;
}

.chart__center-label {
	fill: var(--c-muted);
	font-size: 12px;
	font-weight: 600;
}

.chart__label--row {
	font-size: 12px;
}

.chart__value--row {
	font-size: 12px;
	font-weight: 700;
}

.chart__area {
	fill: rgba(53, 114, 159, 0.14);
}

.chart__line {
	stroke: var(--c-primary);
	stroke-width: 2.4;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.chart--doughnut {
	max-width: 240px;
	margin: 0 auto;
}

/* Map ---------------------------------------------------------------------- */
.area-map {
	margin-top: 16px;
	padding: 14px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-card);
	background: var(--c-card);
	box-shadow: var(--shadow-card);
}

.area-map__canvas {
	height: 340px;
	margin-top: 10px;
	border-radius: var(--radius-inner);
	background: var(--c-tile);
	z-index: 0;
}

.area-map__missing {
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: var(--radius-inner);
	background: var(--c-tile);
	color: var(--c-text);
	font-size: 12.5px;
	line-height: 1.5;
}

.area-map__missing ul {
	margin-top: 6px;
	display: grid;
	gap: 3px;
}

.area-map__missing a {
	color: var(--c-primary);
	font-weight: 600;
	text-decoration: none;
}

.dap-marker {
	display: block;
	width: 16px;
	height: 16px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #8595b3;
	box-shadow: 0 2px 5px rgba(20, 40, 60, 0.35);
}

.dap-marker--in_regola {
	background: #62a329;
}

.dap-marker--in_scadenza {
	background: #ef960b;
}

.dap-marker--scaduto {
	background: #df472a;
}

.dap-popup {
	font-family: var(--font);
	font-size: 13px;
	line-height: 1.45;
}

.dap-popup__code {
	color: var(--c-ink-strong);
	font-size: 14px;
	font-weight: 800;
}

.dap-popup__company {
	font-weight: 600;
}

.dap-popup__machine,
.dap-popup__address,
.dap-popup__last {
	color: var(--c-muted);
}

.dap-popup__status {
	margin: 4px 0;
}

.dap-popup__link a {
	color: var(--c-primary);
	font-weight: 700;
}

/* Aggregated environment --------------------------------------------------- */
.area-impact {
	margin-top: 16px;
	padding: 14px;
	border: 1px solid #dfeecd;
	border-radius: var(--radius-card);
	background: linear-gradient(180deg, #f6fbf0 0%, #eff7e6 100%);
}

.area-impact__title {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--c-accent-ink);
	font-size: 14.5px;
	font-weight: 800;
}

.area-impact__title .icon {
	width: 18px;
	height: 18px;
}

.area-impact__sentence {
	margin-top: 6px;
	color: #3f4a35;
	font-size: 13.5px;
	line-height: 1.5;
}

.area-impact__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px;
}

.area-impact__stat {
	padding: 10px;
	border-radius: var(--radius-inner);
	background: rgba(255, 255, 255, 0.72);
	text-align: center;
}

.area-impact__value {
	display: block;
	color: var(--c-accent-ink);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.area-impact__label {
	display: block;
	margin-top: 2px;
	color: #5d6a52;
	font-size: 11.5px;
	line-height: 1.35;
}

.area-impact__note {
	margin-top: 10px;
	color: #6d7a62;
	font-size: 11.5px;
	line-height: 1.45;
}

/* List: sorting and scans -------------------------------------------------- */
.area-sort {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	color: var(--c-muted);
	font-size: 12.5px;
}

.area-sort__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 10px;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	background: var(--c-card);
	color: var(--c-text);
	font-weight: 600;
	text-decoration: none;
}

.area-sort__link.is-current {
	border-color: var(--c-primary);
	color: var(--c-primary);
}

.area-sort__link .icon {
	width: 13px;
	height: 13px;
}

.area-machine__views {
	color: var(--c-muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.area-machine__views::before {
	content: "·";
	margin: 0 6px;
	color: var(--c-grey);
}

@media (min-width: 768px) {
	.area-tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px;
	}

	.area-tile__value {
		font-size: 30px;
	}

	.area-charts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.area-chart--wide {
		grid-column: 1 / -1;
	}

	.area-filters__form {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		align-items: end;
	}

	.area-map__canvas {
		height: 460px;
	}

	.area-impact__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: no-preference) {
	.chart__bar {
		transform-box: fill-box;
		transform-origin: bottom center;
		animation: dap-bar 0.55s var(--dap-delay, 0s) cubic-bezier(0.22, 0.61, 0.36, 1) both;
	}

	.chart__bar--h {
		transform-origin: left center;
		animation-name: dap-bar-h;
	}

	.chart__slice {
		stroke-dasharray: 0 var(--dap-circ, 502);
		animation: dap-slice 0.7s var(--dap-delay, 0s) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
	}

	.chart__line {
		stroke-dasharray: 2000;
		stroke-dashoffset: 2000;
		animation: dap-draw-line 1.1s 0.15s ease-out forwards;
	}

	.chart__area {
		animation: dap-fade 0.8s 0.4s ease-out both;
	}

	.area-tile {
		animation: dap-rise 0.4s ease-out both;
	}

	.area-tile:nth-child(2) {
		animation-delay: 0.04s;
	}

	.area-tile:nth-child(3) {
		animation-delay: 0.08s;
	}

	.area-tile:nth-child(4) {
		animation-delay: 0.12s;
	}

	.area-tile:nth-child(5) {
		animation-delay: 0.16s;
	}

	.area-tile:nth-child(6) {
		animation-delay: 0.2s;
	}

	.dap-marker.is-drop {
		animation: dap-pop 0.35s ease-out both;
	}
}

@keyframes dap-bar {
	from {
		transform: scaleY(0);
	}

	to {
		transform: none;
	}
}

@keyframes dap-bar-h {
	from {
		transform: scaleX(0);
	}

	to {
		transform: none;
	}
}

@keyframes dap-slice {
	to {
		stroke-dasharray: var(--dap-len, 0) var(--dap-circ, 502);
	}
}

@keyframes dap-draw-line {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes dap-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* F6: model words, water and hygiene chips, technician of the last sanitization ---------------- */
.fact__detail--model {
	color: var(--c-ink);
	font-weight: 600;
}

.fact__detail--description {
	margin-top: 2px;
	color: var(--c-text);
	font-size: 12px;
	line-height: 1.4;
}

.fact__features {
	margin-top: 6px;
}

.features {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.features__item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px 3px 6px;
	border-radius: 999px;
	background: var(--c-primary-soft);
	color: var(--c-primary-hover);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.2;
}

.features__item--igiene {
	background: var(--c-accent-soft);
	color: var(--c-accent-ink);
}

.features__item .icon {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}

.hygiene__icon--person {
	overflow: hidden;
	padding: 0;
	border-radius: 50%;
	background: var(--c-primary-soft);
}

.technician-photo {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.hygiene__person {
	display: block;
	margin-top: 2px;
	color: var(--c-ink-strong);
	font-size: 13px;
	line-height: 1.35;
}

.hygiene__name {
	font-weight: 700;
}

.hygiene__role {
	color: var(--c-muted);
}

.hygiene__role::before {
	content: " · ";
}

.fact__person {
	margin-top: 6px;
}

.technician {
	display: flex;
	gap: 10px;
	align-items: center;
}

.technician .technician-photo {
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
}

.technician__text {
	display: flex;
	flex-direction: column;
	font-size: 12px;
	line-height: 1.3;
}

.technician__label {
	color: var(--c-label);
}

.technician__name {
	color: var(--c-ink-strong);
	font-weight: 700;
}

.technician__role {
	color: var(--c-muted);
}

/* ==========================================================================
   F6 — Reserved area: table of the distributors, windows, detail, technicians.
   ========================================================================== */

/* Filters of the table ---------------------------------------------------- */
.area-tfilters {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px 12px;
	align-items: end;
}

.area-tfilters__field {
	display: grid;
	gap: 4px;
	margin: 0;
}

.area-tfilters__field--search {
	grid-column: 1 / -1;
}

.area-tfilters label,
.area-tfilters legend {
	color: var(--c-label);
	font-size: 12px;
	font-weight: 600;
}

.area-tfilters select,
.area-tfilters input[type="search"],
.area-tfilters input[type="date"] {
	width: 100%;
	min-width: 0;
	padding: 9px 10px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-btn);
	background: #fff;
	color: var(--c-ink);
	font-family: inherit;
	font-size: 13.5px;
}

.area-tfilters input[type="search"] {
	padding-left: 12px;
	font-size: 14.5px;
}

.area-tfilters__dates {
	display: flex;
	flex-wrap: wrap;
	grid-column: 1 / -1;
	gap: 6px 8px;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 0;
}

.area-tfilters__dates legend {
	float: left;
	width: 100%;
	margin-bottom: 4px;
}

.area-tfilters__dates select {
	width: 100%;
	flex: 1 1 100%;
}

.area-tfilters__dates input[type="date"] {
	width: auto;
	flex: 1 1 140px;
}

.area-tfilters__dates label {
	font-weight: 500;
}

.area-tfilters__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	margin: 0;
}

.area-tfilters.is-live [data-dap-submit] {
	display: none;
}

.area-tfilters__reset {
	color: var(--c-muted);
	font-size: 12.5px;
}

/* Bar above the table ------------------------------------------------------ */
.area-tbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
	font-size: 13px;
}

.area-tbar__count {
	color: var(--c-muted);
}

.area-tbar__count strong {
	margin-right: 6px;
	color: var(--c-ink-strong);
}

.area-tbar__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	align-items: center;
}

.area-tbar__tools label {
	color: var(--c-muted);
}

.area-tbar__tools select {
	padding: 5px 8px;
	border: 1px solid var(--c-line);
	border-radius: 8px;
	background: #fff;
	font-family: inherit;
	font-size: 13px;
}

.area-tbar .area-count__export {
	margin-left: 0;
}

/* The table ------------------------------------------------------------------ */
.area-dtable-wrap {
	position: relative;
	margin-top: 8px;
	transition: opacity 0.15s ease;
}

.area-dtable-wrap.is-loading {
	opacity: 0.55;
}

.area-dtable {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 13px;
}

.area-dtable thead th {
	padding: 8px 10px;
	color: var(--c-label);
	font-size: 11.5px;
	font-weight: 600;
	text-align: left;
	white-space: nowrap;
	border-bottom: 1px solid var(--c-line);
}

.area-dtable__sort {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.area-dtable__sort:hover,
.area-dtable__sort:focus-visible {
	color: var(--c-primary);
}

.area-dtable__arrow {
	width: 13px;
	height: 13px;
	opacity: 0.35;
}

.area-dtable th[aria-sort="ascending"] .area-dtable__arrow,
.area-dtable th[aria-sort="descending"] .area-dtable__arrow {
	opacity: 1;
	color: var(--c-primary);
}

.area-dtable th[aria-sort="ascending"],
.area-dtable th[aria-sort="descending"] {
	color: var(--c-primary);
}

.area-row__cell {
	padding: 9px 10px;
	vertical-align: middle;
	border-bottom: 1px solid var(--c-line);
	background: var(--c-card);
}

.area-row:hover .area-row__cell {
	background: #fbfdff;
}

.area-row__code {
	display: block;
	color: var(--c-ink-strong);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.area-row__code:hover {
	color: var(--c-primary);
}

.area-row__place,
.area-row__type,
.area-row__town,
.area-row__status,
.area-row__muted {
	display: block;
	color: var(--c-muted);
	font-size: 12px;
	line-height: 1.35;
}

.area-row__model,
.area-row__street {
	display: block;
	color: var(--c-ink);
	font-weight: 600;
	line-height: 1.35;
}

.col-foto {
	width: 48px;
}

.area-row__photo {
	display: block;
	width: 40px;
	height: 60px;
	object-fit: contain;
	border-radius: 6px;
	background: var(--c-tile);
}

.area-row__date {
	color: var(--c-ink);
	font-weight: 600;
}

.area-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 6px;
	border-radius: 50%;
	background: #8595b3;
	vertical-align: 1px;
}

.area-dot--in_regola {
	background: #62a329;
}

.area-dot--in_scadenza {
	background: #ef960b;
}

.area-dot--scaduto {
	background: #df472a;
}

.area-dot--inattivo {
	background: #c4c9d0;
}

.area-row__tech {
	display: inline-flex;
	gap: 7px;
	align-items: center;
}

.area-row__avatar {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	border-radius: 50%;
	object-fit: cover;
	background: var(--c-primary-soft);
}

.area-row__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: flex-end;
}

.area-act {
	display: inline-flex;
	gap: 5px;
	align-items: center;
	padding: 5px 8px;
	border: 1px solid var(--c-line);
	border-radius: 8px;
	background: #fff;
	color: var(--c-primary-hover);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.area-act:hover,
.area-act:focus-visible {
	border-color: var(--c-primary);
	background: var(--c-primary-soft);
}

.area-act .icon {
	width: 14px;
	height: 14px;
}

.area-act--edit {
	color: var(--c-accent-ink);
}

/* Below 768 px every row becomes a card. */
@media (max-width: 767px) {
	.area-dtable thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.area-dtable,
	.area-dtable tbody,
	.area-row,
	.area-row__cell {
		display: block;
		width: 100%;
	}

	.area-row {
		position: relative;
		margin-bottom: 10px;
		padding: 12px 12px 10px 66px;
		border: 1px solid var(--c-line);
		border-left: 4px solid #8595b3;
		border-radius: var(--radius-card);
		background: var(--c-card);
		box-shadow: var(--shadow-card);
	}

	.area-row--in_regola {
		border-left-color: #62a329;
	}

	.area-row--in_scadenza {
		border-left-color: #ef960b;
	}

	.area-row--scaduto {
		border-left-color: #df472a;
	}

	.area-row__cell {
		padding: 3px 0;
		border: 0;
		background: none;
	}

	.area-row:hover .area-row__cell {
		background: none;
	}

	.area-row__cell[data-label]::before {
		content: attr(data-label);
		display: block;
		color: var(--c-label);
		font-size: 11px;
	}

	.area-row__cell.col-codice::before {
		display: none;
	}

	.area-row__cell.col-foto {
		position: absolute;
		top: 12px;
		left: 12px;
		width: 44px;
		padding: 0;
	}

	.area-row__cell.col-azioni {
		padding-top: 8px;
	}

	.area-row__actions {
		justify-content: flex-start;
	}

	.area-act {
		padding: 7px 10px;
		font-size: 12.5px;
	}
}

@media (min-width: 1024px) {
	.area--distributori .area__inner {
		max-width: 1240px;
	}

	.area-tfilters {
		grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
	}

	.area-tfilters__field--search {
		grid-column: auto;
	}

	.area-tfilters__dates {
		grid-column: span 3;
	}

	.area-tfilters__dates select {
		width: auto;
		flex: 1 1 180px;
	}
}

/* Windows (dialog) -------------------------------------------------------- */
.area-modal {
	width: min(440px, calc(100vw - 24px));
	max-height: calc(100vh - 32px);
	padding: 0;
	border: 0;
	border-radius: var(--radius-card);
	background: var(--c-card);
	box-shadow: 0 24px 60px rgba(15, 40, 90, 0.28);
	color: var(--c-ink);
}

.area-modal--wide {
	width: min(640px, calc(100vw - 24px));
}

.area-modal::backdrop {
	background: rgba(20, 35, 55, 0.45);
}

.area-modal__box {
	display: grid;
	margin: 0;
}

.area-modal__head {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 10px;
	border-bottom: 1px solid var(--c-line);
}

.area-modal__title {
	color: var(--c-ink-strong);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.area-modal__close {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--c-tile);
	color: var(--c-ink);
	cursor: pointer;
}

.area-modal__close .icon {
	width: 18px;
	height: 18px;
}

.area-modal__body {
	padding: 14px 16px 16px;
	overflow: auto;
}

.area-modal__body--center {
	text-align: center;
}

.area-modal__qr {
	display: block;
	width: 220px;
	height: 220px;
	margin: 0 auto;
}

.area-modal__note {
	margin-top: 8px;
	color: var(--c-muted);
	font-size: 12.5px;
	word-break: break-all;
}

.area-modal__address {
	margin-top: 10px;
	font-weight: 600;
}

.area-modal__map,
.area-detail__map {
	height: 260px;
	border-radius: var(--radius-inner);
	background: var(--c-tile);
	z-index: 0;
}

.area-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
	justify-content: center;
	margin-top: 12px;
}

.area-edit .area-modal__actions {
	justify-content: flex-start;
}

.area-edit__grid {
	display: grid;
	gap: 16px;
}

.area-edit__photo {
	display: grid;
	gap: 8px;
	justify-items: start;
}

.area-edit__preview {
	width: 80px;
	height: 120px;
	object-fit: contain;
	border-radius: var(--radius-inner);
	background: var(--c-tile);
}

.area-edit__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.area-edit__buttons .btn {
	min-height: 38px;
	padding: 0 12px;
	font-size: 13px;
}

.area-edit__upload {
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

.area-edit__upload input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.area-edit__upload:focus-within {
	outline: 2px solid var(--c-primary);
	outline-offset: 2px;
}

.area-edit__remove,
.area-edit__admin {
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-muted);
	font-family: inherit;
	font-size: 12.5px;
	text-decoration: underline;
	cursor: pointer;
}

.area-edit__library {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
	gap: 6px;
	width: 100%;
	max-height: 220px;
	overflow: auto;
}

.area-edit__pick {
	padding: 4px;
	border: 1px solid var(--c-line);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}

.area-edit__pick:hover,
.area-edit__pick:focus-visible {
	border-color: var(--c-primary);
}

.area-edit__pick img {
	display: block;
	width: 100%;
	height: 72px;
	object-fit: contain;
}

.area-edit__field {
	display: grid;
	gap: 4px;
	margin-bottom: 10px;
}

.area-edit__field label {
	color: var(--c-label);
	font-size: 12px;
	font-weight: 600;
}

.area-edit__field select {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-btn);
	background: #fff;
	font-family: inherit;
	font-size: 13.5px;
}

.area-edit__hint {
	color: var(--c-muted);
	font-size: 12px;
	line-height: 1.4;
}

.area-edit__message {
	min-height: 1.2em;
	margin-top: 8px;
	color: var(--c-accent-ink);
	font-size: 13px;
	font-weight: 600;
}

@media (min-width: 640px) {
	.area-edit__grid {
		grid-template-columns: 200px minmax(0, 1fr);
	}
}

/* Detail of a distributor ----------------------------------------------- */
.area-detail__head {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
}

.area-detail__title {
	color: var(--c-ink-strong);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.area-detail__place {
	color: var(--c-muted);
	font-size: 13.5px;
}

.area-detail {
	display: grid;
	gap: 12px;
	margin-top: 12px;
}

.area-detail > .card {
	padding: 14px;
}

.area-detail__machine {
	display: grid;
	gap: 14px;
}

.area-detail__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 220px;
	margin: 0;
	border-radius: var(--radius-inner);
	background: linear-gradient(180deg, #f6fafd 0%, #eaf2f9 100%);
}

.area-detail__photo img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 196px;
	object-fit: contain;
}

.area-detail__label {
	color: var(--c-primary);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.area-detail__model {
	color: var(--c-ink-strong);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.area-detail__text {
	margin-top: 4px;
	color: var(--c-text);
	font-size: 13px;
	line-height: 1.45;
}

.area-detail__facts .features {
	margin-top: 8px;
}

.area-detail__list {
	display: grid;
	gap: 6px;
	margin-top: 12px;
	font-size: 13px;
}

.area-detail__list dt {
	color: var(--c-label);
	font-size: 11.5px;
}

.area-detail__list dd {
	margin: 0;
	color: var(--c-ink);
}

.area-detail__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.area-detail__links .btn {
	min-height: 38px;
	padding: 0 14px;
	font-size: 13px;
}

.area-detail__date {
	margin: 4px 0 10px;
	color: var(--c-ink-strong);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.area-detail__qrcode svg {
	display: block;
	width: 180px;
	height: auto;
	margin: 8px auto 0;
}

.area-history td {
	vertical-align: top;
}

.area-history tr.is-excluded td {
	color: var(--c-muted);
	text-decoration: line-through;
	text-decoration-color: rgba(0, 0, 0, 0.25);
}

.area-history__flag {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--c-tile);
	color: var(--c-muted);
	font-size: 11px;
	text-decoration: none;
}

@media (min-width: 768px) {
	.area-detail {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.area-detail__machine {
		grid-column: 1 / -1;
		grid-template-columns: 220px minmax(0, 1fr);
	}
}

@media (min-width: 1024px) {
	.area-detail {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.area-detail__map {
		height: 220px;
	}
}

.area--distributore .area-card {
	margin-top: 12px;
}

/* Technicians (dashboard and detail) ------------------------------------ */
.area-techs {
	margin-top: 14px;
}

.area-techs__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
	margin-top: 10px;
}

.area-tech {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.area-tech__photo {
	width: 56px;
	height: 56px;
	flex: 0 0 auto;
	border-radius: 50%;
	object-fit: cover;
	background: var(--c-primary-soft);
}

.area-tech--big .area-tech__photo {
	width: 64px;
	height: 64px;
}

.area-tech__text p {
	margin: 0;
}

.area-tech__label {
	color: var(--c-primary);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.area-tech__name {
	color: var(--c-ink-strong);
	font-size: 14.5px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.area-tech__role,
.area-tech__count {
	color: var(--c-muted);
	font-size: 12.5px;
}

.area-tech__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 10px;
	margin-top: 2px;
	font-size: 12.5px;
}

.area-tech__contacts a {
	color: var(--c-primary);
	word-break: break-all;
}

@media (prefers-reduced-motion: reduce) {
	.area-dtable-wrap {
		transition: none;
	}
}

/* Drop-down blocks under the public card (demo of 23/9) -------------------- */
/* How we sanitize (steps with photos), the environment of this water point, why water matters.
   Native <details>, one open at a time; text under the photos, never on them. */
.folds {
	display: grid;
	gap: 12px;
	margin-top: 14px;
}

.fold {
	overflow: hidden;
}

.fold__head {
	display: flex;
	align-items: center;
	gap: 13px;
	min-height: 60px;
	padding: 12px 14px;
	cursor: pointer;
	list-style: none;
	-webkit-tap-highlight-color: transparent;
}

.fold__head::-webkit-details-marker {
	display: none;
}

.fold__head::marker {
	content: "";
}

.fold__head:focus-visible {
	outline-offset: -3px;
	border-radius: var(--radius-card);
}

.fold__thumb,
.fold__icon {
	flex: none;
	width: 54px;
	height: 54px;
	border-radius: 12px;
}

.fold__thumb {
	object-fit: cover;
	background: var(--c-tile);
}

.fold__icon {
	display: grid;
	place-items: center;
}

.fold__icon .icon {
	width: 26px;
	height: 26px;
}

.fold__icon--ambiente {
	background: var(--c-accent-soft);
	color: var(--c-accent-ink);
}

.fold__icon--acqua {
	background: var(--c-primary-soft);
	color: var(--c-primary);
}

.fold__label {
	display: grid;
	flex: 1;
	gap: 3px;
	min-width: 0;
}

.fold__title {
	color: var(--c-ink-strong);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.fold__teaser {
	color: var(--c-text);
	font-size: 13.5px;
	line-height: 1.35;
}

.fold__chevron {
	flex: none;
	width: 22px;
	height: 22px;
	color: var(--c-primary);
}

.fold[open] .fold__chevron {
	transform: rotate(180deg);
}

.fold__body {
	padding: 0 0 16px;
	border-top: 1px solid var(--c-line);
}

.fold__text {
	margin: 12px 14px 0;
	color: var(--c-text);
	font-size: 15px;
	line-height: 1.5;
}

.fold__note {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 14px 0;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--c-tile);
	color: var(--c-text);
	font-size: 13.5px;
	line-height: 1.4;
}

.fold__note .icon {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--c-primary);
}

.fold__note strong {
	color: var(--c-ink-strong);
}

/* The steps: a row that scrolls sideways, one photo at a time on phones. */
.steps {
	margin-top: 14px;
}

.steps__list {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 2px 14px 4px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 14px;
	scrollbar-width: none;
	list-style: none;
}

.steps__list::-webkit-scrollbar {
	display: none;
}

.steps__list:focus-visible {
	outline-offset: -3px;
}

.step {
	flex: 0 0 78%;
	scroll-snap-align: start;
}

.step__figure {
	position: relative;
	margin: 0;
}

.step__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 12px;
	background: var(--c-tile);
}

.step__number {
	position: absolute;
	top: 10px;
	left: 10px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 12px rgba(15, 40, 90, 0.18);
	color: var(--c-primary);
	font-size: 15px;
	font-weight: 800;
}

.step__title {
	margin: 10px 2px 2px;
	color: var(--c-ink-strong);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.3;
}

.step__text {
	margin: 0 2px;
	color: var(--c-text);
	font-size: 14px;
	line-height: 1.45;
}

.steps__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 10px 14px 0;
}

.steps__nav[hidden] {
	display: none;
}

.steps__count {
	color: var(--c-muted);
	font-size: 13.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.steps__arrow {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--c-line);
	border-radius: 50%;
	background: #fff;
	color: var(--c-primary);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.steps__arrow .icon {
	width: 20px;
	height: 20px;
}

.steps__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Environment and water: a photo and the text under it. */
.fold__cover {
	display: block;
	width: calc(100% - 28px);
	height: auto;
	margin: 14px 14px 0;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 12px;
	background: var(--c-tile);
}

.fold .impact--embedded {
	margin: 14px 14px 0;
	padding: 0;
}

.fold .impact--embedded .impact__grid {
	margin-top: 0;
}

@media (min-width: 768px) {
	.step {
		flex-basis: calc((100% - 24px) / 3);
	}

	.fold__story {
		display: grid;
		grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
		gap: 18px;
		align-items: start;
		padding: 14px 14px 0;
	}

	.fold__cover {
		width: 100%;
		margin: 0;
		aspect-ratio: 4 / 3;
	}

	.fold__copy .fold__text {
		margin: 0 0 10px;
	}

	.fold .impact--embedded .impact__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: no-preference) {
	.fold__chevron {
		transition: transform 0.2s ease;
	}

	.fold[open] .fold__body {
		animation: dap-rise 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
	}
}

/* «Come lavoriamo» ---------------------------------------------------------------- */
/* What the site is for, the steps of the sanitization, the numbers of all the water points, why
   water matters, then the questions DAP writes in the editor (Details blocks). */
.how {
	padding: 0 var(--gutter) 32px;
}

.how__inner {
	max-width: 760px;
	margin: 0 auto;
}

.how__intro {
	margin-top: 10px;
	padding: 0 2px;
}

.how__title {
	color: var(--c-ink-strong);
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.how__lead {
	margin-top: 8px;
	color: var(--c-text);
	font-size: 16.5px;
	line-height: 1.5;
}

.how__cta {
	width: 100%;
	min-height: 52px;
	margin-top: 16px;
	font-size: 16px;
}

.how__section {
	margin-top: 14px;
	padding: 16px 0;
}

.how__intro + .how__section {
	margin-top: 22px;
}

.how__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 14px;
}

.how__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 11px;
	background: var(--c-primary-soft);
	color: var(--c-primary);
}

.how__icon .icon {
	width: 23px;
	height: 23px;
}

.how__icon--impatto {
	background: var(--c-accent-soft);
	color: var(--c-accent-ink);
}

.how__heading {
	color: var(--c-ink-strong);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.how__text {
	margin: 10px 14px 0;
	color: var(--c-text);
	font-size: 15px;
	line-height: 1.55;
}

/* A photo with its text: heading, photo, text on phones; photo beside the text from 768 px. */
.how__story {
	display: grid;
	grid-template-areas: "head" "cover" "body";
}

.how__story .how__head {
	grid-area: head;
}

.how__cover {
	grid-area: cover;
	display: block;
	width: calc(100% - 28px);
	height: auto;
	margin: 14px 14px 0;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 12px;
	background: var(--c-tile);
}

.how__body {
	grid-area: body;
}

.how .impact--embedded {
	margin: 14px 14px 0;
	padding: 0;
}

.how .impact--embedded .impact__grid {
	margin-top: 0;
}

/* The questions: they open like the drop-down blocks of the card, one at a time. */
.how__more {
	margin-top: 28px;
	color: var(--c-text);
	font-size: 15px;
	line-height: 1.55;
}

.how__more > * + * {
	margin-top: 10px;
}

.how__more > h2,
.how__more > h3 {
	margin: 28px 2px 12px;
	color: var(--c-ink-strong);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.how__more > :first-child {
	margin-top: 0;
}

.how__more > p {
	margin-inline: 2px;
}

.how__more a {
	color: var(--c-primary);
	font-weight: 600;
}

.how__more .wp-block-details {
	border: 1px solid var(--c-line);
	border-radius: var(--radius-card);
	background: var(--c-card);
	box-shadow: var(--shadow-card);
}

.how__more .wp-block-details > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 56px;
	padding: 12px 16px;
	color: var(--c-ink-strong);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
	-webkit-tap-highlight-color: transparent;
}

.how__more .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.how__more .wp-block-details > summary::marker {
	content: "";
}

/* The chevron of the drop-down blocks, drawn with two borders. */
.how__more .wp-block-details > summary::after {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	margin: -5px 5px 0 0;
	border-right: 2px solid var(--c-primary);
	border-bottom: 2px solid var(--c-primary);
	transform: rotate(45deg);
}

.how__more .wp-block-details[open] > summary::after {
	margin-top: 5px;
	transform: rotate(-135deg);
}

.how__more .wp-block-details > summary:focus-visible {
	outline-offset: -3px;
	border-radius: var(--radius-card);
}

.how__more .wp-block-details > :not(summary) {
	margin: 0 16px 14px;
}

@media (min-width: 768px) {
	.how {
		padding-top: 12px;
	}

	.how__intro {
		margin-top: 14px;
	}

	.how__title {
		font-size: 40px;
	}

	.how__lead {
		max-width: 36em;
		font-size: 18px;
	}

	.how__cta {
		width: auto;
		padding-inline: 26px;
	}

	.how__section {
		padding: 22px 0 20px;
	}

	.how__head,
	.how__text,
	.how .steps__nav {
		margin-inline: 22px;
	}

	.how .steps__list {
		padding-inline: 22px;
		scroll-padding-inline: 22px;
	}

	.how__heading,
	.how__more > h2,
	.how__more > h3 {
		font-size: 22px;
	}

	.how__text,
	.how__more {
		font-size: 16px;
	}

	.how__story {
		grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
		grid-template-areas: "cover head" "cover body";
		grid-template-rows: auto 1fr;
		column-gap: 22px;
		padding: 0 22px;
	}

	.how__story .how__head,
	.how__story .how__text {
		margin-inline: 0;
	}

	.how__cover {
		width: 100%;
		margin: 0;
		aspect-ratio: 4 / 3;
	}

	.how .impact--embedded {
		margin: 20px 22px 0;
	}

	.how__more .wp-block-details > summary {
		padding: 14px 20px;
		font-size: 16px;
	}

	.how__more .wp-block-details > :not(summary) {
		margin: 0 20px 16px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.how__more .wp-block-details > summary::after {
		transition: transform 0.2s ease, margin 0.2s ease;
	}

	.how__more .wp-block-details[open] > :not(summary) {
		animation: dap-rise 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
	}
}

/* Reserved area, «Sincronizzazione» (DAP only) ---------------------------------- */
/* Are the data up to date, how the imports work now, the last thirty days, what the ERP brought
   in, and the log of every run. Colours of the runs: green imported, amber warnings or old data,
   red error, grey-blue no new file. */
.area-health {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-top: 16px;
	padding: 16px;
	border-color: #d7ebc4;
	background: var(--c-accent-soft);
}

.area-health__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #62a329;
	color: #fff;
}

.area-health__icon .icon {
	width: 22px;
	height: 22px;
}

.area-health__title {
	color: var(--c-ink-strong);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.area-health__line {
	margin-top: 4px;
	color: var(--c-text);
	font-size: 14px;
	line-height: 1.45;
}

.area-health--warning,
.area-health--stale {
	border-color: #f7d9a4;
	background: #fff3dc;
}

.area-health--warning .area-health__icon,
.area-health--stale .area-health__icon {
	background: #ef960b;
}

.area-health--error {
	border-color: #f6c4b8;
	background: #fde8e2;
}

.area-health--error .area-health__icon {
	background: #df472a;
}

.area-health--running {
	border-color: #cfe0f0;
	background: var(--c-primary-soft);
}

.area-health--running .area-health__icon {
	background: var(--c-primary);
}

.area-health--never {
	border-color: var(--c-line);
	background: var(--c-tile);
}

.area-health--never .area-health__icon {
	background: #8595b3;
}

/* Facts: the label over the value. */
.area-facts {
	display: grid;
	gap: 10px;
	margin: 10px 0 0;
}

.area-facts__row dt {
	color: var(--c-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.area-facts__row dd {
	margin: 1px 0 0;
	color: var(--c-ink);
	font-size: 14px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.area-facts__row a {
	color: var(--c-primary);
}

/* Thirty squares, fifteen a row. */
.area-days {
	display: grid;
	grid-template-columns: repeat(15, minmax(0, 1fr));
	gap: 4px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.area-day {
	aspect-ratio: 1;
	border-radius: 4px;
	background: var(--c-line);
}

.area-day--ok {
	background: #62a329;
}

.area-day--warning {
	background: #ef960b;
}

.area-day--error {
	background: #df472a;
}

.area-day--retry {
	background: #a9c1d9;
}

.area-day--running {
	background: var(--c-primary);
}

.area-day.is-today {
	outline: 2px solid var(--c-ink);
	outline-offset: 1px;
}

.area-day--dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	aspect-ratio: auto;
	border-radius: 3px;
}

.area-days__ends {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	color: var(--c-muted);
	font-size: 11.5px;
}

.area-legend--days {
	margin-top: 10px;
}

.chart__bar--altri {
	fill: #9fb3c8;
}

.area-legend__dot--sanificazioni {
	border-radius: 3px;
	background: var(--c-primary);
}

.area-legend__dot--installazioni {
	border-radius: 3px;
	background: #62a329;
}

.area-legend__dot--altri {
	border-radius: 3px;
	background: #9fb3c8;
}

.area-chart--sync {
	margin-top: 16px;
}

/* On a narrow screen the chart scrolls sideways: it starts from the right, where the last days are. */
.area-chart--sync .area-chart__figure {
	overflow-x: auto;
	direction: rtl;
}

.area-chart--sync .area-chart__figure > .chart {
	direction: ltr;
}

/* The log: one card per run, the details inside. */
.area-log__head .area-card__note {
	margin-top: 2px;
}

.area-runs {
	display: grid;
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.area-run {
	overflow: hidden;
	scroll-margin-top: 16px;
}

.area-run__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	cursor: pointer;
	list-style: none;
	-webkit-tap-highlight-color: transparent;
}

.area-run__head::-webkit-details-marker {
	display: none;
}

.area-run__head::marker {
	content: "";
}

.area-run__head:focus-visible {
	outline-offset: -3px;
	border-radius: var(--radius-card);
}

/* The same width for every result, so the dates line up. */
.area-run__badge {
	flex: 0 0 118px;
	margin-top: 1px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--c-tile);
	color: #4d5f86;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
}

.area-run--ok .area-run__badge {
	background: #e3f2d6;
	color: #3f6b18;
}

.area-run--warning .area-run__badge {
	background: #fdeac4;
	color: #8f5400;
}

.area-run--error .area-run__badge {
	background: #fbd8cf;
	color: #b3321a;
}

.area-run--running .area-run__badge {
	background: var(--c-primary-soft);
	color: var(--c-primary);
}

.area-run__main {
	display: grid;
	flex: 1;
	gap: 2px;
	min-width: 0;
}

.area-run__date {
	color: var(--c-ink-strong);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.3;
}

.area-run__summary {
	color: var(--c-text);
	font-size: 13.5px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.area-run__meta {
	color: var(--c-muted);
	font-size: 12px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.area-run__chevron {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--c-primary);
}

.area-run__box[open] .area-run__chevron {
	transform: rotate(180deg);
}

.area-run__body {
	padding: 4px 14px 14px;
	border-top: 1px solid var(--c-line);
}

.area-facts--run {
	gap: 8px;
}

.area-run__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	color: var(--c-ink);
	font-size: 13.5px;
	font-weight: 800;
}

.area-run__count {
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--c-tile);
	color: var(--c-muted);
	font-size: 11.5px;
	font-weight: 600;
}

.area-run__done {
	margin-top: 6px;
}

.area-run__done li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-top: 1px solid var(--c-line);
	font-size: 13.5px;
}

.area-run__done strong {
	color: var(--c-ink-strong);
	font-variant-numeric: tabular-nums;
}

.area-run__lines {
	display: grid;
	gap: 4px;
	margin-top: 6px;
}

.area-run__lines li {
	padding: 5px 9px;
	border-left: 3px solid #a9c1d9;
	border-radius: 0 6px 6px 0;
	background: var(--c-tile);
	color: var(--c-text);
	font-size: 13px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.area-run__title--errors + .area-run__lines li {
	border-left-color: #df472a;
}

.area-run__title--discarded + .area-run__lines li,
.area-run__title--warnings + .area-run__lines li {
	border-left-color: #ef960b;
}

.area-run__title--changes + .area-run__lines li {
	border-left-color: var(--c-primary);
}

.area-run__admin {
	margin-top: 14px;
	font-size: 13px;
}

.area-run__admin a {
	color: var(--c-primary);
}

.area-pages--log {
	justify-content: space-between;
}

@media (min-width: 768px) {
	.area-health {
		align-items: center;
		padding: 18px 20px;
	}

	.area-health__title {
		font-size: 20px;
	}

	.area-grid--sync {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		align-items: start;
	}

	.area-facts--run {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 20px;
	}

	.area-run__head {
		align-items: center;
		padding: 12px 16px;
	}

	.area-run__body {
		padding: 4px 16px 16px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.area-run__chevron {
		transition: transform 0.2s ease;
	}

	.area-run__box[open] .area-run__body {
		animation: dap-rise 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
	}
}

/* «E nella tua realtà?» in the drop-down of the environment (29/9) -------------------- */
/* Six sizes as chips (radios); the chosen one shows its year. CSS only, with :has. */
.calc {
	margin: 18px 14px 0;
	padding-top: 16px;
	border-top: 1px solid var(--c-line);
}

.calc__sizes {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.calc__legend {
	padding: 0;
	color: var(--c-ink-strong);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.calc__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.calc__chip {
	position: relative;
}

/* The radio stays in the page for the keyboard and the screen readers; the chip is what shows. */
.calc__chip input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.calc__chip span {
	display: inline-grid;
	place-items: center;
	min-width: 52px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	background: #fff;
	color: var(--c-ink);
	font-size: 15px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.calc__chip input:checked + span {
	border-color: var(--c-primary);
	background: var(--c-primary);
	color: #fff;
}

.calc__chip input:focus-visible + span {
	outline: 2px solid var(--c-primary);
	outline-offset: 2px;
}

.calc__result {
	display: none;
	margin-top: 14px;
}

.calc:has(.calc__input--0:checked) .calc__result--0,
.calc:has(.calc__input--1:checked) .calc__result--1,
.calc:has(.calc__input--2:checked) .calc__result--2,
.calc:has(.calc__input--3:checked) .calc__result--3,
.calc:has(.calc__input--4:checked) .calc__result--4,
.calc:has(.calc__input--5:checked) .calc__result--5 {
	display: block;
}

/* Browsers without :has: no choice, the size shown first. */
@supports not selector(:has(*)) {
	.calc__sizes {
		display: none;
	}

	.calc__result--1 {
		display: block;
	}
}

.calc__title {
	margin-bottom: 8px;
	color: var(--c-text);
	font-size: 14px;
	font-weight: 600;
}

.calc .impact__grid {
	margin-top: 0;
}

.calc__note {
	margin-top: 10px;
	color: var(--c-muted);
	font-size: 11.5px;
	line-height: 1.4;
}

@media (min-width: 768px) {
	.calc__legend {
		font-size: 16px;
	}

	.calc__note {
		font-size: 12.5px;
	}
}

/* Reserved area, «Gestione distributori» (29/9) ------------------------------------ */
/* One card per model: the picture its distributors show, how many they are, and the form that
   changes it for all of them. */
.area-models__intro {
	margin-top: 4px;
}

.area-models {
	display: grid;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

/* A grid item grows to its widest child: the native file field would push the card off a narrow screen. */
.area-model {
	min-width: 0;
	padding: 14px;
	scroll-margin-top: 16px;
}

.area-model__head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.area-model__image {
	flex: none;
	width: 72px;
	height: 108px;
	object-fit: contain;
	border-radius: 10px;
	background: var(--c-tile);
}

.area-model__text {
	min-width: 0;
}

.area-model__name {
	color: var(--c-ink-strong);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.area-model__code {
	margin-top: 2px;
	color: var(--c-muted);
	font-size: 12.5px;
	overflow-wrap: anywhere;
}

.area-model__count {
	margin-top: 6px;
	color: var(--c-text);
	font-size: 13.5px;
}

.area-model__count strong {
	color: var(--c-ink-strong);
}

.area-model__source {
	display: block;
	color: var(--c-muted);
	font-size: 12.5px;
}

.area-model__own {
	margin-top: 2px;
	color: #8f5400;
	font-size: 12.5px;
}

.area-models__notice {
	margin-top: 12px;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 13.5px;
	line-height: 1.4;
}

.area-models__notice--ok {
	background: var(--c-accent-soft);
	color: #3f6b18;
}

.area-models__notice--error {
	background: #fde8e2;
	color: #b3321a;
}

.area-model__form {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--c-line);
}

.area-model__pick {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 8px 12px;
}

.area-model__file {
	display: grid;
	flex: 1 1 100%;
	gap: 4px;
	min-width: 0;
	color: var(--c-text);
	font-size: 13px;
}

.area-model__file input {
	width: 100%;
	max-width: 100%;
	font-size: 13px;
}

.area-model__file input::file-selector-button {
	margin-right: 10px;
	padding: 8px 12px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-btn);
	background: #fff;
	color: var(--c-ink);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.area-model__hint {
	margin-top: 6px;
	color: var(--c-muted);
	font-size: 12.5px;
}

.area-model__hint:empty {
	display: none;
}

.area-model__check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 10px;
	font-size: 13.5px;
}

.area-model__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-top: 12px;
}

.area-model__actions .btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.area-model__reset {
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-primary);
	font: inherit;
	font-size: 13.5px;
	text-decoration: underline;
	cursor: pointer;
}

@media (min-width: 768px) {
	.area-models {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Distributors, picked rows (8/10): the box on every row and the bar of the labels ------------- */
.area-dtable .col-scelta {
	width: 36px;
	padding-right: 0;
}

.area-pick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: -4px 0;
	cursor: pointer;
}

.area-pick__box {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--c-primary);
	cursor: pointer;
}

.area-row.is-picked .area-row__cell {
	background: var(--c-primary-soft);
}

.area-pickbar {
	position: sticky;
	bottom: 12px;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-top: 12px;
	padding: 10px 14px;
	border: 1px solid #cfe0ee;
	border-radius: var(--radius-card);
	background: #fff;
	box-shadow: 0 10px 30px rgba(15, 40, 90, 0.16);
}

.area-pickbar[hidden] {
	display: none;
}

.area-pickbar__count {
	margin: 0 auto 0 0;
	color: var(--c-ink-strong);
	font-size: 14px;
	font-weight: 700;
}

.area-pickbar__clear {
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-primary);
	font: inherit;
	font-size: 13.5px;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 767px) {
	.area-row__cell.col-scelta {
		position: absolute;
		top: 8px;
		right: 8px;
		width: auto;
		padding: 0;
	}

	.area-row__cell.col-codice {
		padding-right: 34px;
	}

	.area-row.is-picked {
		border-color: #9fc0da;
		background: var(--c-primary-soft);
	}

	.area-row.is-picked .area-row__cell {
		background: none;
	}

	.area-pickbar .btn {
		flex: 1 1 auto;
	}
}

/* Reserved area, «Etichette» (8/10): the form and the preview of the label ------------------- */
.area-labels__intro {
	max-width: 70ch;
}

.area-labels {
	display: grid;
	gap: 16px;
	margin-top: 14px;
}

.area-labels__form {
	min-width: 0;
	padding: 16px;
}

.area-labels__group {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px 14px;
	min-width: 0;
	margin: 0 0 16px;
	padding: 0 0 16px;
	border: 0;
	border-bottom: 1px solid var(--c-line);
}

.area-labels__group legend {
	/* Floated, the legend is a child like the others: a whole row of the grid. */
	float: left;
	grid-column: 1 / -1;
	width: 100%;
	margin-bottom: 4px;
	padding: 0;
	color: var(--c-ink-strong);
	font-size: 14.5px;
	font-weight: 700;
}

.area-labels__field {
	display: grid;
	align-content: start;
	gap: 4px;
	min-width: 0;
	margin: 0;
}

.area-labels__field--wide {
	grid-column: 1 / -1;
}

.area-labels__field > label:not(.area-labels__check) {
	color: var(--c-label);
	font-size: 12px;
	font-weight: 600;
}

.area-labels__field input[type="number"],
.area-labels__field input[type="text"],
.area-labels__field input[type="email"],
.area-labels__field input[type="password"],
.area-labels__field select,
.area-labels__field textarea {
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #d6e2f2;
	border-radius: var(--radius-btn);
	background: #fff;
	color: var(--c-ink);
	font-family: inherit;
	font-size: 14px;
}

.area-labels__field textarea {
	min-height: 72px;
	line-height: 1.4;
	resize: vertical;
}

.area-labels__field input:focus-visible,
.area-labels__field select:focus-visible,
.area-labels__field textarea:focus-visible {
	border-color: var(--c-primary);
	outline: 2px solid var(--c-primary-soft);
}

.area-labels__field input[type="file"] {
	max-width: 100%;
	font-size: 13px;
}

.area-labels__field input[type="file"]::file-selector-button {
	margin-right: 10px;
	padding: 8px 12px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-btn);
	background: #fff;
	color: var(--c-ink);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.area-labels__check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
	color: var(--c-text);
	font-size: 13.5px;
	cursor: pointer;
}

.area-labels__check input {
	margin: 0;
	accent-color: var(--c-primary);
}

.area-labels__help {
	color: var(--c-muted);
	font-size: 12px;
	line-height: 1.4;
}

.area-labels__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0;
}

.area-labels__reset {
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-primary);
	font: inherit;
	font-size: 13.5px;
	text-decoration: underline;
	cursor: pointer;
}

.area-labels__preview {
	align-self: start;
	min-width: 0;
	padding: 16px;
}

.area-labels__preview-title {
	margin: 0 0 10px;
	color: var(--c-ink-strong);
	font-size: 14.5px;
	font-weight: 700;
}

.area-labels__sheet {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	padding: 18px;
	border-radius: var(--radius-inner);
	background: var(--c-tile);
	transition: opacity 0.15s ease;
}

.area-labels__sheet svg {
	display: block;
	width: 100%;
	max-width: 420px;
	height: auto;
	max-height: 460px;
	/* The label draws its own white sheet: the shadow follows it, not the box of the svg. */
	filter: drop-shadow(0 4px 10px rgba(15, 40, 90, 0.14));
}

.area-labels__sheet.is-loading {
	opacity: 0.6;
}

.area-labels__sheet.is-failed {
	outline: 2px dashed #df472a;
	outline-offset: -2px;
}

@media (min-width: 1024px) {
	.area-labels {
		grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
		align-items: start;
	}

	.area-labels__preview {
		position: sticky;
		top: 20px;
	}
}

/* Sign in, the code of the two-step sign in (8/10) ------------------------------------------- */
.area-field__input--code {
	font-size: 22px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.18em;
	text-align: center;
}

/* Reserved area, «Profilo» (8/10): data, password, two-step sign in, devices ------------------ */
.area-profile {
	display: grid;
	gap: 16px;
	margin-top: 14px;
}

.area-profile__card {
	min-width: 0;
	padding: 16px;
	scroll-margin-top: 90px;
}

.area-profile__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	color: var(--c-ink-strong);
	font-size: 16px;
	font-weight: 700;
}

.area-profile__subtitle {
	margin: 0 0 8px;
	color: var(--c-ink-strong);
	font-size: 14px;
	font-weight: 700;
}

.area-profile__help {
	margin: 0 0 12px;
	color: var(--c-text);
	font-size: 13.5px;
	line-height: 1.5;
}

.area-profile__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px 14px;
	margin-bottom: 14px;
}

.area-profile__state {
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.area-profile__state--on {
	background: var(--c-accent-soft);
	color: #3f6b18;
}

.area-profile__state--off {
	background: var(--c-tile);
	color: var(--c-muted);
}

.area-profile__steps {
	margin: 0 0 14px;
	padding-left: 20px;
	color: var(--c-text);
	font-size: 13.5px;
	line-height: 1.55;
}

.area-profile__setup {
	display: grid;
	gap: 16px;
	align-items: start;
}

.area-profile__qr {
	width: 200px;
	max-width: 100%;
	padding: 10px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-inner);
	background: #fff;
}

.area-profile__qr svg {
	display: block;
	width: 100%;
	height: auto;
}

.area-profile__secret,
.area-profile__code-list code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 15px;
	letter-spacing: 0.04em;
	overflow-wrap: anywhere;
}

.area-profile__codes {
	margin-bottom: 14px;
	padding: 12px 14px;
	border: 1px dashed #c9a227;
	border-radius: var(--radius-inner);
	background: #fffbea;
	color: var(--c-ink);
	font-size: 13.5px;
	line-height: 1.5;
}

.area-profile__codes p {
	margin: 0 0 8px;
}

.area-profile__code-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 6px 16px;
	margin: 0;
	padding-left: 22px;
}

.area-profile__split {
	display: grid;
	gap: 18px;
}

.area-profile__split form {
	min-width: 0;
}

@media (min-width: 768px) {
	.area-profile__setup {
		grid-template-columns: 200px minmax(0, 1fr);
	}

	.area-profile__split {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.area-profile {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.area-profile__card--wide {
		grid-column: 1 / -1;
	}
}


/* ==========================================================================
   The graphic of Elena (15/10): titles in capitals (Helvetica), phrases in MoonTime, photos.
   ========================================================================== */
.home-title,
.how__title,
.how__heading,
.punto-hero__title,
.status-hero__title,
.entry__title,
.hygiene__title,
.impact__title,
.results__title {
	font-family: var(--font-title);
	font-weight: 700;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.home-title {
	color: #0d0d0d;
	letter-spacing: -0.015em;
	line-height: 0.95;
}

.home-title__accent {
	color: var(--c-sky);
}

.how__title {
	color: #0d0d0d;
}

/* A phrase in MoonTime: the drawing, its words for screen readers and search engines. */
.phrase {
	display: block;
	color: #0d0d0d;
	line-height: 0;
}

.phrase svg {
	display: block;
	width: 100%;
	height: auto;
}

.phrase--trasparenza {
	width: min(100%, 290px);
	margin-top: 18px;
}

.phrase--tecnici {
	width: min(100%, 300px);
	margin-top: 10px;
}

/* Home: the column of Green Division in the landscape. Phones and tablets get white behind the texts
   at the top; from 1024 px the photo itself is white on the left. */
.home-hero__photo img {
	object-position: 100% 100%;
}

.home-hero__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.86) 48%, rgba(255, 255, 255, 0) 74%);
	pointer-events: none;
}

@media (min-width: 768px) {
	.phrase--trasparenza {
		width: min(100%, 430px);
		margin-top: 22px;
	}

	.phrase--tecnici {
		width: min(100%, 380px);
		margin-top: 12px;
	}

	.home-hero__photo img {
		object-position: 100% 50%;
	}

	.home-hero__photo::after {
		background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0) 70%);
	}
}

/* The title of the home: in capitals it needs less size than before to say the same (15/10). */
@media (min-width: 768px) {
	.home-title {
		font-size: clamp(44px, 5.4vw, 52px);
	}
}

@media (min-width: 1024px) {
	.home-title {
		font-size: clamp(48px, 4.45vw, 64px);
	}

	.phrase--trasparenza {
		width: min(100%, 440px);
		margin-top: 24px;
	}

	.home-hero__photo::after {
		background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.62) 34%, rgba(255, 255, 255, 0) 56%);
	}
}

/* Phones: «VERIFICA IL TUO» on one line (Helvetica in capitals is wider than the old font). */
@media (max-width: 767px) {
	.home-title {
		font-size: clamp(24px, 7.6vw, 40px);
		line-height: 1;
	}
}

/* The links at the foot of the home lie on the rocks of the photo: a pale band keeps them legible. */
.home-hero .home-footer {
	position: relative;
	padding-top: 12px;
}

.home-hero .home-footer::before {
	content: "";
	position: absolute;
	top: 0;
	right: -100vw;
	bottom: 0;
	left: -100vw;
	z-index: -1;
	background: linear-gradient(to top, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72) 70%, rgba(255, 255, 255, 0));
	pointer-events: none;
}

.home-hero .home-footer,
.home-hero .home-footer a {
	color: #3d4650;
}

/* The logos of Elena (16/10): the drop above «green», so taller than the old one in the header. */
.brand__logo,
.site-header--home .brand__logo {
	height: 46px;
	max-height: none;
}

/* On phones the inner pages had a 52px bar: the stacked logo wants the 70px of the home. */
@media (max-width: 767px) {
	.site-header__inner {
		height: 70px;
	}
}

.wave-footer__logo {
	height: 92px;
	margin-bottom: 10px;
}

@media (min-width: 768px) {
	.brand__logo,
	.site-header--home .brand__logo {
		height: 56px;
	}
}
