Adaptation, Mitigation, and Smart Urban Metabolism towards the Ecological Transition