'Italy taught Spain a lesson'