The effects of environmental risk on consumption dynamics: an empirical analysis on the Mediterranean countries