Two of California’s worst wildfires in 2018 cost Allstate Corp. a half-billion dollars, but the insurance conglomerate was able to give investors some reassuring news: It had already shrunk its footprint in California by half, creating a buffer of sorts against future losses. Earlier this…