Time, space and social interactions: exit mechanisms for the Covid-19 epidemics