Magnetic fields in galaxy clusters and the cosmic web