Ecological transition: when mayors move faster than the government