All-around effort leads Ridgefield past Hamden