From six to four and more: massless and massive maximal super Yang-Mills amplitudes in 6d and 4d and their hidden symmetries