Breakdown of Apesar de o detetive estar meio desconfiado, eu dei-lhe meia tarte.
eu
I
estar
to be (temporary / location)
lhe
to him / to her / to you (formal)
dar
to give
Questions & Answers about Apesar de o detetive estar meio desconfiado, eu dei-lhe meia tarte.
Why does the sentence use meio before desconfiado, but meia before tarte?
This sentence perfectly contrasts the two uses of this word! Before desconfiado (an adjective), meio acts as an adverb meaning "kind of" or "somewhat". Adverbs are invariable, so it stays meio regardless of the subject's gender. However, before tarte (a feminine noun), it acts as an adjective meaning "half". As an adjective, it must agree in gender and number with the noun it modifies, which is why it becomes the feminine meia.
Wait, why isn't de o contracted into do here? Don't we always say apesar do?
We usually contract prepositions with articles, but there is an important exception you need to master at this level: when the article belongs to the subject of an infinitive verb. Here, o detetive is the explicit subject of the verb estar. In Portuguese, you cannot merge a preposition (like de) with the subject of a verb, so they must remain separate as apesar de o detetive.
What verb form is estar in this sentence?
It is the personal infinitive. The prepositional phrase apesar de (despite/in spite of) triggers the infinitive. Because we are explicitly stating who is performing the action (o detetive), we use the personal infinitive. For the third-person singular, the personal infinitive is just estar, which happens to look exactly like the standard (impersonal) infinitive but serves a different grammatical role here.