Equilibrium statistical mechanics of bipartite spin systems