Quando Mario ha telefonato a Giovanni , lui aveva appena finito di mangiare .
when Mario has telephoned to Giovanni, he had just finished to eat
When Mario has telephoned Giovanni, he had just finished eating.