I tend to use this quite a lot; It does not harm Search Engines, what is important is that only inline elements are contained within an H1 tag, that is span
is a perfectly valid element, however a div
is not. In your case you should use multiple spans with separate class names.
You should also consider splitting it into H1 / H2 depending on your site structure and navigation as it might make more sense in some cases.