Methodological approach for recovery and energetic requalification of historical buildings