Containment measures in relation to the trend of infection in Italy