Itinerant theory of localized magnetism