Hello Edoardo,
I replied to your email a few minutes back. Sending the same here too:
You can create 2 separate custom shipping methods as below:
Custom shipping method 1: those who order within 3km pay the delivery of € 2.50 if they do not reach the minimum cost of € 12.00.
[costs_table prop="distance" table="0-2.5|3" key="<google distance matrix api key>" units="km"]
Max cart cost: 12
Max distance: 3
Custom shipping method 2: Those who are outside 3km pay the delivery of € 2.50 for any type of order placed
[costs_table prop="distance" table="3-2.5" key="<google distance matrix api key>" units="km"]
Min distance: 3
:Vishal