Dynamic response of buildings of the cultural heritage