Hodge theory, unlikely intersections and o-minimal geometry