The matter may also be referred to the judge by one of the parents or the public prosecutor, who may in turn be referred by a third party, whether a parent or not, for a ruling on the arrangements for exercising parental authority and the contribution to the child’s maintenance and education.