Studio Andrew Trotter transforms 19th-century school into family home in Puglia