The castle dates back to the 13th century, and was formerly the residence of the ruler of Trento