Do you mean UK CAA? Or Italian authority.
In the UK, you have no time. If your medical expires, your licence is invalid - there is no leeway. However, you can simply renew the medical with a local Medical Exmainer rather than go through the initail medical.
Cheers
Whirls