.amb-container {
	max-width: 900px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Tabs */
.amb-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.amb-tab {
	flex: 1 1 auto;
	min-width: 180px;
	padding: 12px 18px;
	background: #f2f2f2;
	border: 2px solid transparent;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	color: #333;
	transition: all 0.2s ease;
}

.amb-tab:hover {
	background: #e6e6e6;
}

.amb-tab-attiva {
	background: #d1273d;
	color: #fff;
}

.amb-tab-attiva:hover {
	background: #b81f33;
}

/* Pannelli */
.amb-pannello {
	display: none;
}

.amb-pannello-attivo {
	display: block;
}

.amb-istruzioni {
	text-align: center;
	color: #555;
	margin-bottom: 15px;
	font-size: 14px;
}

/* Barra di ricerca */
.amb-barra-ricerca {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}

.amb-barra-ricerca input[type="text"] {
	flex: 1;
	padding: 12px 16px;
	border: 2px solid #ddd;
	border-radius: 8px;
	font-size: 15px;
}

.amb-barra-ricerca input[type="text"]:focus {
	outline: none;
	border-color: #d1273d;
}

.amb-barra-ricerca button {
	padding: 12px 24px;
	background: #d1273d;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	font-size: 15px;
	transition: background 0.2s ease;
}

.amb-barra-ricerca button:hover {
	background: #b81f33;
}

/* Mappa SVG */
.amb-mappa-svg {
	width: 100%;
	max-width: 420px;
	height: auto;
	display: block;
	margin: 0 auto;
}

.amb-regione rect {
	fill: #e8e8e8;
	stroke: #fff;
	stroke-width: 2;
	cursor: pointer;
	transition: fill 0.15s ease;
}

.amb-regione:hover rect,
.amb-regione:focus rect {
	fill: #d1273d;
}

.amb-regione.amb-regione-selezionata rect {
	fill: #8a0f22;
}

.amb-regione-label {
	font-size: 6px;
	fill: #333;
	text-anchor: middle;
	dominant-baseline: middle;
	pointer-events: none;
	font-weight: 600;
}

.amb-regione:hover .amb-regione-label,
.amb-regione:focus .amb-regione-label,
.amb-regione.amb-regione-selezionata .amb-regione-label {
	fill: #fff;
}

/* Risultati */
.amb-risultati {
	margin-top: 25px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 15px;
}

.amb-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-left: 5px solid #d1273d;
	border-radius: 10px;
	padding: 18px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.amb-card h3 {
	margin: 0 0 6px 0;
	font-size: 17px;
	color: #1a1a1a;
}

.amb-card .amb-comune {
	color: #666;
	font-size: 14px;
	margin-bottom: 4px;
}

.amb-card .amb-tipo {
	color: #999;
	font-size: 13px;
	margin-bottom: 12px;
	font-style: italic;
}

.amb-btn-chiama {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px;
	background: #1a7a3c;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	transition: background 0.2s ease;
}

.amb-btn-chiama:hover {
	background: #14602e;
	color: #fff;
}

.amb-btn-chiama.amb-btn-disabilitato {
	background: #aaa;
	pointer-events: none;
}

.amb-stato-messaggio {
	text-align: center;
	color: #777;
	padding: 30px 10px;
	font-size: 15px;
}

@media (max-width: 480px) {
	.amb-tab {
		min-width: 100%;
	}
	.amb-barra-ricerca {
		flex-direction: column;
	}
}
