Seol mar théacs é seo: Generalized symmetries in F-theory and the topology of elliptic fibrations