I'm trying to write this chart

I have to make it as close as possible as it is a transcription of a manuscript, so the text must be aligned as in the picture. I can omit the underscores.
I tried using cases in equation mode but the cases at the right side are not aligned vertically. This is the code:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\text{Idee}
\begin{cases}
\text{variabili} & \text{(lettere)}\\
\text{costanti}
\begin{cases}
\text{generali} & \text{(idee deduttive)}\\
\text{particolari}
\begin{cases}
\text{non definite} & ({}_{"} \text{primitive})\\
\text{definite} & ({}_{"} \text{derivate})\\
\end{cases}
\end{cases} \\
\end{cases}
\]
\end{document}
I also tried using the shemata package but I couldn't even write the "cases" on the right. Any suggestions? Thanks



