**6. Conclusions**

To summarize, in our scenario, biomass containing sugars is stored around-theyear and sugar is extracted on daily basis. Sugar is converted in biorefinery to biofuels/biochemicals. Bagasse is converted to second generation biofuels/biochemicals and the by-products are sent to AD. The highly polluted solid digestate is pyrolysed to obtain process heat and the char is sent to local smelter for metal extraction. The highly polluted liquid digestate is sent to smelter for metals extraction. By-products containing low concentrations of pollutants are digested to obtain biomethane. The digestate containing low concentration of metals (within legal limits) is returned in the soil to maintain fertility and to immobilize heavy metals.

The whole biorefinery approach is an innovative aspect and can be adapted to other cases of polluted areas, to be remediated for production of edible crops for
