Adaptation of family livestock farming to climate change