Ridgway advances to district title game with 57-40 win over Lions