Petar Zrinski, Croatian war hero, Thirty years war and wars against Turks