/**
 * Amministrazione trasparente.
 *
 * Prima quello che c'e' (riquadri grandi, in italiano normale), poi la ricerca, poi
 * l'elenco di legge dentro un pannello che si apre. Palette del sito: testo #17324d,
 * secondario #5c6f82, hairline #d9dadb, accento della sezione via --f2-acc.
 */

.f2at-occhiello {
	color: #5c6f82;
	font-size: 1.05rem;
	line-height: 1.55;
	max-width: 70ch;
	margin: .6rem 0 0;
}
.f2at-occhiello strong { color: #17324d; }

.f2at-h2 { font-size: 1.3rem; font-weight: 700; color: #17324d; margin: 2.2rem 0 .35rem; }
.f2at-sotto { color: #5c6f82; font-size: .95rem; line-height: 1.5; max-width: 72ch; margin: 0 0 1.2rem; }

/* ---------- i riquadri di quello che c'e' davvero ---------- */
.f2at-riquadri {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}
@media (min-width: 576px) { .f2at-riquadri { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .f2at-riquadri { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.f2at-riquadro a {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid #d9dadb;
	border-left: 4px solid var(--f2-acc, #d8333a);
	border-radius: 4px;
	padding: 1rem 1.1rem 1.1rem;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .15s ease-in-out, border-color .15s ease-in-out;
}
.f2at-riquadro a:hover,
.f2at-riquadro a:focus-visible {
	box-shadow: 0 2px 10px rgba(23, 50, 77, .12);
	border-color: var(--f2-acc, #d8333a);
	text-decoration: none;
}
.f2at-riq-n {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	color: var(--f2-acc-scuro, #af2127);
}
.f2at-riq-t {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: #17324d;
	margin: .35rem 0 .3rem;
}
.f2at-riquadro a:hover .f2at-riq-t { text-decoration: underline; }
.f2at-riq-e { font-size: .88rem; line-height: 1.45; color: #5c6f82; }
.f2at-riq-u {
	margin-top: auto;
	padding-top: .7rem;
	font-size: .75rem;
	line-height: 1.35;
	font-weight: 400;
	color: #4a5866;
}

/* ---------- la ricerca ---------- */
.f2at-cerca {
	margin: 2.4rem 0 0;
	padding: 1.4rem 1.5rem 1.5rem;
	background: #f5f6f7;
	border-radius: 4px;
}
.f2at-cerca .f2at-h2 { margin-top: 0; }
.f2at-cerca em { font-style: normal; font-weight: 600; color: #17324d; }
.f2at-lab {
	display: block;
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #5c6f82;
	margin-bottom: .35rem;
}
.f2at-riga { display: flex; flex-wrap: wrap; gap: .6rem; }
.f2at-riga input[type="search"] {
	flex: 1 1 16rem;
	min-width: 0;
	font-family: inherit;
	font-size: 1rem;
	padding: .6rem .8rem;
	border: 1px solid #5c6f82;
	border-radius: 4px;
	background: #fff;
	color: #17324d;
}
.f2at-riga input[type="search"]:focus-visible { outline: 2px solid var(--f2-acc, #d8333a); outline-offset: 1px; }
.f2at-riga .btn { flex: 0 0 auto; }

/* ---------- l'elenco di legge, chiuso ---------- */
.f2at-dettaglio {
	margin: 2.4rem 0 0;
	border-top: 1px solid #d9dadb;
	padding-top: 1.4rem;
}
.f2at-dettaglio > summary {
	cursor: pointer;
	list-style: none;
	display: block;
	padding: .9rem 1.1rem .9rem 2.4rem;
	background: #f5f6f7;
	border-radius: 4px;
	position: relative;
}
.f2at-dettaglio > summary::-webkit-details-marker { display: none; }
.f2at-dettaglio > summary::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 1.35rem;
	width: .5rem;
	height: .5rem;
	border-right: 2px solid var(--f2-acc-scuro, #af2127);
	border-bottom: 2px solid var(--f2-acc-scuro, #af2127);
	transform: rotate(-45deg);
	transition: transform .15s ease-in-out;
}
.f2at-dettaglio[open] > summary::before { transform: rotate(45deg); top: 1.15rem; }
.f2at-dettaglio > summary:hover,
.f2at-dettaglio > summary:focus-visible { background: #eef0f2; }
.f2at-sum-t { display: block; font-weight: 700; color: #17324d; }
.f2at-sum-e { display: block; font-size: .85rem; color: #5c6f82; margin-top: .15rem; }

.f2at-totale {
	color: #5c6f82;
	font-size: .88rem;
	line-height: 1.5;
	max-width: 72ch;
	margin: 1.4rem 0 1.8rem;
}

/* Le 23 sezioni scorrono su due colonne che si riempiono da sole: con due colonne Bootstrap
   affiancate riga per riga, una sezione lunga accanto a una corta lasciava un buco bianco
   alto mezzo schermo. */
.f2at-colonne { column-gap: 3rem; }
@media (min-width: 768px) { .f2at-colonne { column-count: 2; } }
.f2at-colonne > div { break-inside: avoid; page-break-inside: avoid; }

.ammtrasm-tableclass { margin-bottom: 2rem; }
.ammtrasm-tableclass h3 { font-size: 1.05rem; line-height: 1.3; margin-bottom: .5rem; }
.ammtrasm-tableclass ul { list-style: none; padding-left: 0; margin: 0; }
.ammtrasm-tableclass ul ul { padding-left: 1.1rem; margin-top: .2rem; }
.f2at-voce { padding: .18rem 0; line-height: 1.4; }

/* Il numero: pastiglia neutra, non un allarme rosso come faceva il tema padre. */
.f2at-n {
	display: inline-block;
	min-width: 1.5rem;
	padding: 0 .35rem;
	border-radius: 10px;
	background: #eef0f2;
	color: #17324d;
	font-size: .74rem;
	font-weight: 700;
	text-align: center;
	vertical-align: .1em;
}

/* Le voci senza documenti: si leggono, non si cliccano. */
.f2at-niente { color: #5c6f82; font-size: .78rem; font-style: italic; }
.f2at-vuota .f2at-nome { color: #5c6f82; }
.f2at-sez-vuota h3 span:first-child { color: #5c6f82; }

@media (prefers-reduced-motion: reduce) {
	.f2at-riquadro a, .f2at-dettaglio > summary::before { transition: none; }
}
