Overview of the procedures of the fMRI study and of the ART. A) During the first (day 1) and second (day 2) visits, we measured working memory capacity, psychomotor visual attention, and cognitive effort levels through the Digit Span (DS)23, the Psychomotor Visual Task (PVT)24, and the Need for Cognition Scale (NFS)25. These measurements were performed to exclude fasting effects on learning following changes in general cognitive skills. During the second visit, glucose levels were measured before and after breakfast in the Re-feeding Group and with a time interval of 20/25 minutes in the Fasting Group. Ketone levels were measured once at the beginning of the second session. After the neuropsychological assessment, participants were asked to lie inside the scanner. The intensity of the US was then calibrated following standardized procedures 26. The US was set to an intensity for which participants refer to the electrical stimulation as highly unpleasant but not painful. Following explanations about the task and relief ratings, the fMRI exam started for a total duration of about 75 minutes. After the acquisition of the anatomical scans, the participants performed the ART. Since we focused on the dynamics of learning, in the present fMRI study we did not include the test phases of the ART, as in 5. After fMRI acquisition, an explanation of hypotheses and aims was provided to each participant. B) The ART consists of three learning phases, a Pavlovian phase that uses a block-design, an avoidance learning and fear extinction learning phases that use an event-related type of presentation of the stimuli, see 5 for details. C) We applied a jittered design to better distinguish BOLD and SCR responses during US omissions. The illustration shows an example of a trial during the avoidance learning phase, where background, CS presentation (US anticipation), and CS offset (relief) were jittered events before that the online relief rating was collected.