/**
 * [a360_aree] — il menu a piastrelle delle aree operative.
 *
 * Tutto dentro .ao, così non litiga con il tema né con il resto del CRM.
 */

.ao {
	--ao-ink: #1b2128;
	--ao-muted: #5c6672;
	--ao-line: #e3e7ec;
	--ao-bg: #f6f7f9;
	--ao-card: #fff;
	--ao-warn: #8f6e00;
	--ao-r: 16px;
	--ao-shadow: 0 1px 2px rgba( 16, 24, 40, .05 ), 0 10px 30px -20px rgba( 16, 24, 40, .35 );

	font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var( --ao-ink );
	font-size: 16px;
	line-height: 1.55;
	max-width: 1120px;
	margin: 0 auto;
	-webkit-font-smoothing: antialiased;
}

.ao *,
.ao *::before,
.ao *::after {
	box-sizing: border-box;
}

.ao p {
	margin: 0 0 .8em;
}

/* ------------------------------------------------ Testata */

.ao-hero {
	text-align: center;
	padding: 10px 0 30px;
}

.ao-hero__occhiello {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #2f5fd0;
	background: #eef3fd;
	border: 1px solid #dbe5fa;
	border-radius: 999px;
	padding: 4px 16px;
	margin-bottom: 16px;
}

.ao-hero__titolo {
	font-size: clamp( 30px, 5vw, 46px );
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -.025em;
	margin: 0 0 12px;
}

.ao-hero__sotto {
	color: var( --ao-muted );
	font-size: 17.5px;
	max-width: 64ch;
	margin: 0 auto;
}

/* ------------------------------------------------ Ricerca */

.ao-cerca {
	position: relative;
	max-width: 460px;
	margin: 22px auto 0;
}

.ao-cerca__lente {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY( -50% );
	width: 18px;
	height: 18px;
	color: var( --ao-muted );
	pointer-events: none;
}

.ao-cerca__lente svg {
	width: 18px;
	height: 18px;
	display: block;
}

.ao input[type="search"] {
	width: 100%;
	font: inherit;
	font-size: 16px;
	color: var( --ao-ink );
	background: var( --ao-card );
	border: 1px solid #cfd6de;
	border-radius: 12px;
	padding: 12px 14px 12px 42px;
	min-height: 50px;
	box-shadow: var( --ao-shadow );
}

.ao input[type="search"]:focus {
	outline: 2px solid #b9cbf5;
	outline-offset: 1px;
	border-color: #2f5fd0;
}

.ao-vuoto-cerca {
	text-align: center;
	color: var( --ao-muted );
	margin: 14px 0 0;
}

/* ------------------------------------------------ Griglie */

.ao-griglia {
	display: grid;
	gap: 18px;
}

.ao-griglia--settori {
	grid-template-columns: repeat( auto-fit, minmax( 320px, 1fr ) );
}

.ao-griglia--strumenti {
	grid-template-columns: repeat( auto-fit, minmax( 230px, 1fr ) );
	gap: 14px;
}

/* ------------------------------------------------ Piastrella di settore */

.ao-t {
	display: flex;
	flex-direction: column;
	background: var( --ao-card );
	border: 1px solid var( --ao-line );
	border-radius: var( --ao-r );
	box-shadow: var( --ao-shadow );
	padding: 22px;
	position: relative;
	overflow: hidden;
	transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.ao-t::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var( --c, #5c6672 );
}

.ao-t:hover {
	transform: translateY( -2px );
	border-color: var( --c, #cfd6de );
	box-shadow: 0 2px 6px rgba( 16, 24, 40, .07 ), 0 22px 40px -26px rgba( 16, 24, 40, .5 );
}

.ao-t--spenta {
	background: #fafbfc;
	box-shadow: none;
	border-style: dashed;
}

.ao-t--spenta:hover {
	transform: none;
	border-color: var( --ao-line );
	box-shadow: none;
}

.ao-t__link {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	text-decoration: none;
	color: inherit;
	margin-bottom: 14px;
}

.ao-t__ico {
	width: 46px;
	height: 46px;
	border-radius: 13px;
	display: grid;
	place-items: center;
	background: color-mix( in srgb, var( --c ) 12%, #fff );
	color: var( --c );
	flex: 0 0 auto;
}

/* Il color-mix non è ovunque: questo resta il fondo di riserva. */
@supports not ( background: color-mix( in srgb, red 10%, #fff ) ) {
	.ao-t__ico,
	.ao-s__ico {
		background: #f1f4f7;
	}
}

.ao-t__ico svg,
.ao-s__ico svg {
	width: 23px;
	height: 23px;
	display: block;
}

.ao-t__corpo {
	min-width: 0;
}

.ao-t__tit {
	display: block;
	font-size: 20px;
	font-weight: 750;
	letter-spacing: -.015em;
	margin-bottom: 3px;
}

.ao-t__txt {
	display: block;
	color: var( --ao-muted );
	font-size: 14.5px;
}

.ao-tag {
	display: inline-block;
	margin-left: 8px;
	vertical-align: 2px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var( --ao-muted );
	background: #eef1f4;
	border: 1px solid var( --ao-line );
	border-radius: 999px;
	padding: 2px 9px;
}

/* Numeri */

.ao-t__numeri {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.ao-pill {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-size: 13.5px;
	color: var( --ao-muted );
	background: #f3f5f8;
	border: 1px solid var( --ao-line );
	border-radius: 999px;
	padding: 5px 12px;
}

.ao-pill strong {
	font-size: 16px;
	font-weight: 800;
	color: var( --ao-ink );
	font-variant-numeric: tabular-nums;
}

.ao-pill--sveglia {
	background: #fdf4dd;
	border-color: #f0e0b0;
	color: var( --ao-warn );
}

.ao-pill--sveglia strong {
	color: var( --ao-warn );
}

.ao-pill--zero {
	opacity: .75;
}

/* Azioni */

/* Il comando principale prende tutta la riga, gli altri due si dividono
   quella sotto: così le piastrelle restano allineate qualunque sia la
   larghezza della colonna. */
.ao-t__azioni {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: auto;
}

.ao-t__azioni .ao-btn:first-child {
	grid-column: 1 / -1;
}

.ao-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font: inherit;
	font-size: 14.5px;
	font-weight: 650;
	line-height: 1.2;
	padding: 10px 15px;
	min-height: 42px;
	border-radius: 10px;
	border: 1px solid var( --c, #5c6672 );
	background: var( --c, #5c6672 );
	color: #fff;
	text-decoration: none;
	transition: filter .12s ease;
}

.ao-btn:hover {
	filter: brightness( 1.07 );
	color: #fff;
}

.ao-btn--piano {
	background: #fff;
	color: var( --ao-ink );
	border-color: #cfd6de;
}

.ao-btn--piano:hover {
	color: var( --ao-ink );
	border-color: var( --c, #5c6672 );
}

/* ------------------------------------------------ Strumenti */

.ao-sezione {
	margin: 36px 0 10px;
}

.ao-sezione__testa {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	padding-top: 22px;
	border-top: 1px solid var( --ao-line );
}

.ao-sezione__titolo {
	font-size: 20px;
	font-weight: 750;
	letter-spacing: -.015em;
	margin: 0;
}

.ao-sezione__nota {
	color: var( --ao-muted );
	font-size: 14px;
}

.ao-s {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 16px;
	background: var( --ao-card );
	border: 1px solid var( --ao-line );
	border-radius: 13px;
	text-decoration: none;
	color: inherit;
	transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.ao-s:hover {
	transform: translateY( -1px );
	border-color: var( --c, #cfd6de );
	box-shadow: var( --ao-shadow );
}

.ao-s__ico {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	background: color-mix( in srgb, var( --c ) 12%, #fff );
	color: var( --c );
	flex: 0 0 auto;
}

.ao-s__corpo {
	min-width: 0;
}

.ao-s__tit {
	display: block;
	font-weight: 700;
	font-size: 15.5px;
	margin-bottom: 2px;
}

.ao-s__txt {
	display: block;
	color: var( --ao-muted );
	font-size: 13.5px;
}

/* ------------------------------------------------ Stati */

.ao-avviso {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px;
	border: 1px dashed #cfd6de;
	border-radius: var( --ao-r );
	background: var( --ao-card );
	color: var( --ao-muted );
	margin-bottom: 18px;
}

.ao-avviso strong {
	color: var( --ao-ink );
	font-size: 17px;
}

.ao-nascosto {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 1px, 1px, 1px, 1px );
	white-space: nowrap;
}

[data-ao-voce][hidden] {
	display: none !important;
}

@media ( max-width: 600px ) {
	.ao-t {
		padding: 18px;
	}

	.ao-t__azioni {
		grid-template-columns: 1fr;
	}
}
