Coppa: Juve squeeze past Cagliari