Earthquake resistant design of masonry structures: rules, backgrounds, latest findings