Macroeconomics of Green and Resilient Transitions