Time and idea: the theory of history in Giambattista Vico