/**
 * Amministrazione Trasparente — typography and in-page structure.
 */

.apsp-at-layout__main .page-content h3 {
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--bs-gray-800, #262626);
}

.apsp-at-layout__main .page-content h3:first-child {
	margin-top: 0;
}

.apsp-at-layout__main .page-content p + h3,
.apsp-at-layout__main .page-content ul + h3,
.apsp-at-layout__main .page-content table + h3 {
	margin-top: 2rem;
	padding-top: 0.25rem;
	border-top: 1px solid var(--bs-gray-200, #e6e6e6);
}

.apsp-at-layout__main .page-content .apsp-callout-title,
.apsp-at-layout__main .page-content h2 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-top: 1.75rem;
	margin-bottom: 0.75rem;
}

.apsp-at-layout__main .cmp-icon-link-list.apsp-documents {
	margin: 0.75rem 0 1.5rem;
}

.apsp-at-layout__main .cmp-icon-link-list.apsp-documents .cmp-icon-link + .cmp-icon-link {
	margin-top: 0.5rem;
}

.apsp-at-layout__main .cmp-icon-link-list.apsp-documents .list-item {
	display: block;
	padding: 0.875rem 1rem;
	border: 1px solid var(--bs-gray-200, #e6e6e6);
	border-radius: 4px;
	background: #fff;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.apsp-at-layout__main .cmp-icon-link-list.apsp-documents .list-item:hover {
	border-color: var(--bs-primary, #0066cc);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	text-decoration: none;
}

.apsp-at-layout__main .cmp-icon-link-list.apsp-documents .list-item-title-icon-wrapper {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.apsp-at-layout__main .cmp-icon-link-list.apsp-documents .icon {
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
}

.apsp-at-layout__main .cmp-icon-link-list.apsp-documents .list-item .list-item {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-weight: 600;
	line-height: 1.4;
}

.apsp-at-root-sections {
	margin-top: 2rem;
}

@media (min-width: 992px) {
	.apsp-at-layout__main .page-content .apsp-subpages {
		display: none;
	}

	.apsp-at-layout__main .page-content h3.apsp-subpages-heading {
		display: none;
	}
}

@media (max-width: 991.98px) {
	.apsp-at-layout__main .page-content .apsp-subpages {
		margin-top: 1rem;
		padding: 0.75rem 1rem;
		background: var(--bs-gray-100, #f5f5f5);
		border-radius: 4px;
	}

	.apsp-at-layout__main .page-content .apsp-subpages a {
		font-weight: 500;
	}
}
