You need to create a display driver that is interrupt based, and once that is done you no longer need to worry about the display. You write data to a 'display buffer' (4 x 8 segments = 4 bytes), the display interrupt code then simply shows what is in the display buffer. The only timing you have to worry about is to get a refresh rate high enough so you cannot see any flicker (as high as required, no need for excessive).
The display driver is also not in charge of putting segment data into the display buffer, that job belongs to other code. Somewhere you will move data into that display buffer based on a value and a lookup table, and you will also have access to all segments so can individually set the dp or any other segment that you want.
Simple 'display driver' example using what looks like code provided to you for pin usage, although it seems you complicated the pin_t a bit-
https://godbolt.org/z/9Yr6jvojzThe pin_t only really needs to store one of the pin registers (like PINx which is the lowest member of the always consecutive PIN/DDR/PORT set). Once you have PINx, you can get at DDR and PORT with no more information needed. To make things easier, use pinFunctions as in the example to handle the pin tasks so you then have no need to manipulate registers on your own. The use of the pin_t like this requires that you keep in mind that if you have an array of them you access by a variable index, or otherwise get to a point where the compiler cannot know any of these values at compile time, the resulting code could possibly lose its atomic properties for dealing with a pin. This is why the example code is not using loops which would normally be used, although in this case the code is inside an interrupt so atomic not as important at that point (but if using loops you then will also get storage used for the pin_t data)-
https://godbolt.org/z/KnK7YqxaeThere are a hundred other ways to deal with pins on the avr which has specific atomic instructions (sbi/cbi), but not atomic specific registers (such as SET/CLR/TGL such as an avr0/1). Always keep in mind you will either get atomic sbi/cbi instructions produced by the compiler to deal with pins, or you don't. You have to look at the asm if there is any doubt, and if manipulating pins both inside and outside of interrupt code it becomes important.
Now that you have a display driver that is set and forget, you can add some more code (functions) to put values into the 'display ram' so they are human readable (a lookup table for segment data, like 0-9 for example, but a 7segment can display quite a lot of things other than numbers). Once you can display numbers as you wish, then start adding more code to get data you wish to see (your temp sensor data). And so on. Each piece you assemble can be tested on its own, and in the end you will not have the tangled (isr) mess you have now.