Prepare the dish: Line a 6x6-inch square dish with parchment paper. Lightly grease with ghee.
Mix and cook: In a nonstick pan, add condensed milk and ricotta. Stir to combine.
Thicken the mixture: Cook over medium heat, stirring often. After 10β12 minutes, the mixture will start to thicken.
Add flavor: Stir in cardamom and saffron. Continue cooking until the mixture leaves the sides of the pan (about 20β25 minutes).
Set the base: Transfer the mixture to the prepared dish. Spread it evenly with a spatula.
Garnish: Sprinkle pistachios or almonds on top, pressing them lightly.
Cool and set: Let it cool at room temperature for 1 hour, then refrigerate for 2β3 hours.
Slice and serve: Cut into squares or diamonds and enjoy.