Light-quark contribution to the leading hadronic vacuum polarization term of the muon g−2 from twisted-mass fermions