Coupling linearity and twist: an extension of the Poincaré–Birkhoff theorem for Hamiltonian systems