Once called Gaiola, Galliola and Gazoleto, Casteldimezzo assumed its current name in the 14th century, indicating an intermediate position between Gabicce and Fiorenzuola. Thanks to its easily defensible position and the presence of the nearby port of Vallugola, the castle was used as a residence for rustic relief by the Archbishops of Ravenna. Passed to the Malatesta family in 1356, it then became the property of the Sforza and Della Rovere families. Today only a few traces of the ancient medieval walls remain. Inside the Church of Saints Apollinare and Cristoforo, dating back to the year 1000 but rebuilt (the dedication indicates the distant origins of Ravenna), a fifteenth-century Crucifix attributed to the Venetians Antonio Bonvesin and Jacobello del Fiore is kept, found on the seashore inside a large chest wooden. According to tradition, the sculpture was the protagonist of a miraculous event: it was the year 1517 when as many as 7000 foreigners from beyond the mountains, in the pay of Lorenzo di Piero de' Medici, defeated by Francesco Maria I Della Rovere, menacingly approached the walls of Castrum Medi. but the feared and foreseeable looting of the town did not take place thanks to the grace granted by the Crucifix that came from the sea to the terrified population. The news relating to the discovery of the precious artifact is also curious: the inhabitants of Casteldimezzo and those of nearby Fiorenzuola, having sighted a chest lying on the coast at the foot of the promontory and wanting to seize its contents, ended up fighting until the oxen to which it was harnessed the load, tired of the prolonged quarrel, they decided to set off along the road to Casteldimezzo leaving the neighbors with a pinch of nose.