Allegri thanks Milan for 'gift'