/* Pagina "Trova un Tech Partner" – stile coerente con le pagine informative del sito. */

.pcr-tp {
	--tp-blue: #2271b1;
	--tp-blue-dark: #1a5c94;
	--tp-green: #1e9e6b;
	--tp-card: #f7f7f8;
	--tp-border: #e6e6e6;
	--tp-muted: #5c6670;
	max-width: 1100px;
	margin: 0 auto;
	color: #1d2327;
}

.pcr-tp__head {
	padding: 28px 24px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--tp-blue-dark), var(--tp-blue));
	color: #fff;
	margin-bottom: 18px;
}

.pcr-tp__title {
	margin: 0 0 6px;
	color: #fff;
}

.pcr-tp__intro {
	margin: 0;
	opacity: 0.92;
}

.pcr-tp__search {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 8px;
}

.pcr-tp__search input[type="text"] {
	flex: 1 1 260px;
	padding: 10px 12px;
	border: 1px solid #ccd2d9;
	border-radius: 8px;
	font-size: 16px;
}

.pcr-tp__feedback {
	min-height: 1.4em;
	margin: 0 0 10px;
	color: var(--tp-muted);
}

.pcr-tp__body {
	display: grid;
	grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
	gap: 16px;
}

.pcr-tp__body[hidden] {
	display: none;
}

.pcr-tp__list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 520px;
	overflow-y: auto;
}

.pcr-tp__map {
	min-height: 520px;
	border-radius: 14px;
	border: 1px solid var(--tp-border);
	z-index: 0;
}

.pcr-tp-card {
	padding: 14px 16px;
	margin: 0 0 10px;
	background: var(--tp-card);
	border: 1px solid var(--tp-border);
	border-radius: 14px;
}

.pcr-tp-card__name {
	margin: 0 0 2px;
	font-size: 17px;
}

.pcr-tp-card__address {
	margin: 0 0 8px;
	color: var(--tp-muted);
	font-size: 14px;
}

.pcr-tp-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
}

.pcr-tp-badge {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	background: #e8f5ee;
	color: #146c49;
	font-size: 12px;
	font-weight: 600;
}

.pcr-tp-badge--alt {
	background: #e7f0f9;
	color: var(--tp-blue-dark);
}

.pcr-tp-badge--warn {
	margin-left: 6px;
	background: #fff6e5;
	color: #8a5a00;
}

.pcr-tp-service.is-required {
	cursor: default;
}

.pcr-tp-required-note {
	margin: 0 0 6px;
	padding: 8px 10px;
	background: #fff6e5;
	border-radius: 8px;
	font-size: 14px;
}

.pcr-tp-consent--wa {
	margin-top: 4px;
}

.pcr-tp-badge--muted {
	background: #eef0f2;
	color: var(--tp-muted);
}

.pcr-tp-popup__open,
.pcr-tp-link,
.pcr-tp-back {
	background: none;
	border: 0;
	padding: 0;
	color: var(--tp-blue);
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

.pcr-tp-popup__open {
	margin-top: 6px;
}

.pcr-tp-back {
	margin: 0 0 14px;
}

.pcr-tp-shop {
	padding: 18px 20px;
	margin-bottom: 18px;
	background: var(--tp-card);
	border: 1px solid var(--tp-border);
	border-radius: 14px;
}

.pcr-tp-shop__name {
	margin: 0 0 4px;
}

.pcr-tp-shop__address,
.pcr-tp-shop__notes {
	margin: 0 0 6px;
	color: var(--tp-muted);
}

.pcr-tp-shop__hours dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 2px 14px;
	margin: 8px 0 0;
}

.pcr-tp-shop__hours dd {
	margin: 0;
}

.pcr-tp-products {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}

.pcr-tp-product {
	display: flex;
	flex-direction: column;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--tp-border);
	border-radius: 14px;
}

.pcr-tp-product.is-selected {
	border-color: var(--tp-green);
	box-shadow: 0 0 0 2px var(--tp-green);
}

.pcr-tp-product img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	margin-bottom: 8px;
}

.pcr-tp-product__name {
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.35;
	flex: 1 0 auto;
}

.pcr-tp-product__info {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 6px;
}

.pcr-tp-product__price {
	margin: 0 0 10px;
}

.pcr-tp-product__price strong {
	font-size: 18px;
}

.pcr-tp-product__price small {
	color: var(--tp-muted);
}

.pcr-tp-empty {
	color: var(--tp-muted);
}

.pcr-tp-form {
	padding: 20px;
	background: var(--tp-card);
	border: 1px solid var(--tp-border);
	border-radius: 14px;
}

.pcr-tp-form h4 {
	margin: 0 0 6px;
}

.pcr-tp-form__intro {
	margin: 0 0 12px;
}

.pcr-tp-form__product {
	padding: 10px 12px;
	background: #fff;
	border: 1px dashed #ccd2d9;
	border-radius: 8px;
}

.pcr-tp-services {
	margin: 16px 0;
	padding: 0;
	border: 0;
}

.pcr-tp-services legend {
	font-weight: 700;
	margin-bottom: 6px;
}

.pcr-tp-service {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 8px 0;
	border-bottom: 1px solid var(--tp-border);
	cursor: pointer;
}

.pcr-tp-service input {
	margin-top: 4px;
}

.pcr-tp-service__desc {
	display: block;
	color: var(--tp-muted);
}

.pcr-tp-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 14px;
}

.pcr-tp-field {
	margin: 0 0 12px;
}

.pcr-tp-field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.pcr-tp-field input,
.pcr-tp-field textarea {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #ccd2d9;
	border-radius: 8px;
	font-size: 16px;
	box-sizing: border-box;
}

.pcr-tp-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pcr-tp-terms {
	margin: 6px 0 12px;
	padding: 10px 12px;
	background: #fff6e5;
	border-radius: 8px;
	font-size: 14px;
}

.pcr-tp-terms summary {
	cursor: pointer;
	font-weight: 600;
}

.pcr-tp-terms ol {
	margin: 8px 0 0 18px;
	padding: 0;
}

.pcr-tp-terms li {
	margin-bottom: 6px;
}

.pcr-tp-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0 0 12px;
}

.pcr-tp-consent input {
	margin-top: 4px;
}

.pcr-tp-form__error {
	min-height: 1.2em;
	margin: 0 0 10px;
	color: #b32d2e;
	font-weight: 600;
}

.pcr-tp-form__submit {
	width: 100%;
	padding: 12px 16px !important;
	font-size: 16px !important;
}

.pcr-tp-done {
	padding: 26px 22px;
	text-align: center;
	background: #e8f5ee;
	border: 1px solid #bfe3d0;
	border-radius: 14px;
}

.pcr-tp-done__code {
	margin: 4px 0 14px;
	font-size: 32px;
	font-weight: 800;
	letter-spacing: 3px;
	color: #146c49;
}

.pcr-tp-done__shop {
	margin: 14px auto;
	max-width: 420px;
	padding: 12px;
	background: #fff;
	border-radius: 8px;
}

.pcr-tp-notice {
	padding: 14px 16px;
	background: #fff6e5;
	border-radius: 8px;
}

@media (max-width: 782px) {
	.pcr-tp__body {
		grid-template-columns: 1fr;
	}

	.pcr-tp__map {
		min-height: 320px;
		order: -1;
	}

	.pcr-tp__list {
		max-height: none;
	}

	.pcr-tp-form__grid {
		grid-template-columns: 1fr;
	}

	.pcr-tp-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.pcr-tp-product {
		padding: 8px;
	}

	.pcr-tp-product__name {
		font-size: 12px;
	}

	.pcr-tp-product__price strong {
		font-size: 16px;
	}

	.pcr-tp__head {
		padding: 22px 16px;
	}
}

/* ------------------------------------------------------------------
 * Ricerca in tre passi: prodotto, citta', indirizzo (2.0.0-rc1)
 * ------------------------------------------------------------------ */

.pcr-tp__finder {
	display: grid;
	gap: 18px;
	padding: 22px 24px;
	margin: 0 0 12px;
	background: #fff;
	border: 1px solid var(--tp-border);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(26, 92, 148, 0.08);
}

.pcr-tp__finder label,
.pcr-tp__label {
	display: block;
	margin: 0 0 6px;
	font-weight: 700;
	color: #1d2327;
}

.pcr-tp__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pcr-tp__row input[type="search"],
.pcr-tp__row input[type="text"] {
	flex: 1 1 260px;
	padding: 12px 14px;
	border: 1px solid #ccd2d9;
	border-radius: 10px;
	font-size: 16px;
}

.pcr-tp__psearch input[type="search"] {
	border: 2px solid var(--tp-blue);
	font-size: 17px;
}

.pcr-tp__row .button {
	border-radius: 10px !important;
	padding: 0 18px !important;
	min-height: 46px;
}

.pcr-tp__search {
	margin: 0;
}

.pcr-tp__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pcr-tp-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid #cfe3f3;
	border-radius: 999px;
	background: #eef6fb;
	color: var(--tp-blue-dark);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.pcr-tp-chip:hover,
.pcr-tp-chip.is-active {
	background: var(--tp-blue);
	border-color: var(--tp-blue);
	color: #fff;
}

.pcr-tp-chip.is-empty {
	background: #f7f7f8;
	border-color: var(--tp-border);
	color: var(--tp-muted);
}

.pcr-tp-chip__count {
	min-width: 22px;
	padding: 1px 7px;
	border-radius: 999px;
	background: #1e9e6b;
	color: #fff;
	font-size: 12px;
	text-align: center;
}

.pcr-tp__presults[hidden],
.pcr-tp__finder[hidden] {
	display: none;
}

.pcr-tp-products--results {
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.pcr-tp-product__where {
	margin: 4px 0 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--tp-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.pcr-tp-product__shops {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.pcr-tp-shop-btn {
	width: 100%;
	display: grid;
	gap: 2px;
	padding: 9px 11px;
	text-align: left;
	background: #f7f7f8;
	border: 1px solid var(--tp-border);
	border-radius: 10px;
	cursor: pointer;
	font: inherit;
	color: #1d2327;
}

.pcr-tp-shop-btn:hover {
	border-color: var(--tp-green);
	background: #e8f5ee;
}

.pcr-tp-shop-btn span {
	font-size: 13px;
	color: var(--tp-muted);
}

.pcr-tp-shop-btn em {
	font-style: normal;
	font-size: 13px;
	font-weight: 700;
	color: var(--tp-green);
}

/* Mappa piu' sobria: colori attenuati e segnaposto del sito. */
.pcr-tp__map {
	box-shadow: 0 8px 24px rgba(29, 35, 39, 0.08);
	overflow: hidden;
}

.pcr-tp-tiles {
	filter: saturate(0.35) brightness(1.05) contrast(0.95);
}

.pcr-tp-pin {
	background: none;
	border: 0;
}

.pcr-tp-pin svg {
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
}

.pcr-tp .leaflet-popup-content-wrapper {
	border-radius: 12px;
}

@media (max-width: 782px) {
	.pcr-tp__finder {
		padding: 16px;
	}

	.pcr-tp__row .button {
		flex: 1 1 auto;
	}

	.pcr-tp-products--results {
		grid-template-columns: 1fr;
	}
}

.pcr-tp__finder .pcr-tp__search {
	display: block;
}

.pcr-tp-badge--cert {
	background: #e8f5ee;
	color: #146c49;
}

.pcr-tp-cert-note {
	margin: -6px 0 20px;
	padding: 10px 12px;
	background: #e8f5ee;
	border-radius: 10px;
	color: #146c49;
	font-size: 14px;
}
