/* Pagina pubblica Report Prezzi */
.cam-report-prezzi {
	margin: 1.5rem 0 2.5rem;
}

.cam-report-intro {
	margin-bottom: 2rem;
	font-size: 1.05rem;
	line-height: 1.6;
}

.cam-report-section-title {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 1.25rem;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid #006838;
}

.cam-report-latest {
	margin-bottom: 3rem;
}

.cam-report-latest__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

@media (max-width: 768px) {
	.cam-report-latest__grid {
		grid-template-columns: 1fr;
	}
}

.cam-report-card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.75rem 1.5rem;
	border-radius: 10px;
	border: 2px solid transparent;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	min-height: 180px;
}

.cam-report-card:hover,
.cam-report-card:focus {
	text-decoration: none;
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
	outline: none;
}

.cam-report-card--orto {
	background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
	border-color: #66bb6a;
	color: #1b5e20;
}

.cam-report-card--orto:hover,
.cam-report-card--orto:focus {
	color: #1b5e20;
}

.cam-report-card--ittico {
	background: linear-gradient(145deg, #e3f2fd 0%, #bbdefb 100%);
	border-color: #42a5f5;
	color: #0d47a1;
}

.cam-report-card--ittico:hover,
.cam-report-card--ittico:focus {
	color: #0d47a1;
}

.cam-report-card--empty {
	background: #f6f7f7;
	border-color: #dcdcde;
	color: #50575e;
	cursor: default;
	box-shadow: none;
}

.cam-report-card--empty:hover {
	transform: none;
	box-shadow: none;
}

.cam-report-card__label {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.85;
}

.cam-report-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.cam-report-card__date {
	font-size: 1rem;
	opacity: 0.9;
}

.cam-report-card__cta {
	margin-top: auto;
	padding-top: 0.75rem;
	font-weight: 700;
	font-size: 0.95rem;
}

.cam-report-table th {
	background: #006838;
	color: #fff;
	vertical-align: middle;
}

.cam-report-prezzi .cam-report-table.table > :not(caption) > thead > tr > th {
	background-color: #006838;
	color: #fff;
	border-color: #005a30;
}

.cam-report-table td {
	vertical-align: middle;
}

.cam-report-link {
	font-weight: 600;
	text-decoration: none;
}

.cam-report-link--orto {
	color: #2e7d32;
}

.cam-report-link--ittico {
	color: #1565c0;
}

.cam-report-link:hover,
.cam-report-link:focus {
	text-decoration: underline;
}

.cam-report-empty {
	color: #50575e;
	font-style: italic;
}

.cam-report-period {
	margin-bottom: 3rem;
}

.cam-report-filters__grid {
	display: grid;
	grid-template-columns: minmax(160px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
	gap: 12px 16px;
	align-items: end;
}

.cam-report-filters__actions .btn {
	white-space: nowrap;
}

.cam-report-period-table thead th {
	background-color: #17324d;
	color: #fff;
	vertical-align: middle;
	white-space: nowrap;
	border-color: #2e4761;
}

/* Bootstrap Italia imposta bg/color su .table > * > * > *: serve maggiore specificità. */
.cam-report-prezzi .cam-report-period-table.table > :not(caption) > thead > tr > th {
	background-color: #17324d;
	color: #fff;
	border-color: #2e4761;
}

.cam-report-prezzi .cam-report-period-table.table > :not(caption) > tbody > tr.cam-report-period-section > td {
	background-color: #1a3a6b;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85rem;
	border-color: #2e4761;
}

.cam-report-prezzi .cam-report-period-table.table > :not(caption) > tbody > tr.cam-report-period-category > td {
	background-color: #e8eef5;
	color: #17324d;
	font-weight: 600;
	border-color: #d4dce8;
}

.cam-report-period-table td {
	vertical-align: middle;
}

.cam-report-period-table .cam-report-col-mean {
	background-color: rgba(23, 50, 77, 0.08);
	color: #17324d;
}

.cam-report-period-table .cam-report-col-mean strong {
	color: #17324d;
}

.cam-report-prezzi .cam-report-period-table.table > :not(caption) > thead > tr > th.cam-report-col-mean {
	background-color: #e8eef5;
	color: #17324d;
	font-weight: 700;
}

.cam-report-period-section td {
	background: #1a3a6b;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85rem;
}

.cam-report-period-category td {
	background: #e8eef5;
	font-weight: 600;
	color: #17324d;
}

@media (max-width: 768px) {
	.cam-report-filters__grid {
		grid-template-columns: 1fr 1fr;
	}

	.cam-report-filters__field:first-child,
	.cam-report-filters__actions {
		grid-column: 1 / -1;
	}
}

/* Pagina Listino Prezzi (shortcode legacy) */
.cam-listino-prezzi {
	margin: 1.5rem 0;
}

.cam-listino-intro {
	margin-bottom: 1rem;
}

.cam-listino-table th {
	background: #006838;
	color: #fff;
}

.cam-listino-note {
	margin-top: 1rem;
	font-size: 0.85rem;
}
