We used to have two Maremmas, they were lovely dogs.
I think they were born at the old home in with the chickens, so from birth they had some 'training'!
I think we just put them in with our goats we had then, and they pretty much taught themselves.
I bet there is a more scientific way of going...