Today, palaces have been transformed into hotels or museums, yet they still fascinate the public, whether in Morocco, Malta or Italy