The co-header between a father and son of a mortgage for the purchase of the house owned exclusively by the child configures an indirect donation?

My wife and I are deciding to buy a house: the property will be owned by both but the mortgage instead, we would like to cointestarlo me and my parents. The question I ask you is: my father has debts…