\mode<presentation>

% Title page
\defbeamertemplate*{title page}{-est}[1][]
{
  \nointerlineskip%
  \vskip-70pt%
  \hbox{\leavevmode
    \advance\beamer@leftmargin by -20bp%
    \advance\beamer@rightmargin by -20bp%
    \beamer@tempdim=\textwidth%
    \advance\beamer@tempdim by \beamer@leftmargin%
    \advance\beamer@tempdim by \beamer@rightmargin%
    \hskip-\Gm@lmargin\hbox{%
      \setbox\beamer@tempbox=\hbox{\begin{minipage}[b]{\paperwidth}%

          \begin{tikzpicture}[font=\bodyfont]
            \path[fill=white] (0,0) rectangle (\the\paperwidth,\the\paperheight) ;
            \path[fill=white, fill overzoom image=beamer-est_ipca, fill image opacity=1] (0,0cm) rectangle (\the\paperwidth-3mm ,45mm);
            \node[anchor=west] (est) at (4mm,-11mm) {\includegraphics[width=.25\textwidth]{beamer-est_est}};

            \node [anchor=west,text=estBlue] (title) at (4mm, 62mm) {\LARGE\textbf\inserttitle};
            \node [anchor=west,text=darkgray] (subtitle) at (4mm, 55mm) {\Large \insertsubtitle};
            \node [anchor=east,text=darkgray] (date) at (\the\paperwidth-3mm , 47mm) {\scriptsize \insertdate};
            \node [anchor=east] (author) at (\the\paperwidth-3mm , -8mm) {\insertauthor};
            \node [anchor=east,text=darkgray] (institute) at (\the\paperwidth-3mm , -13mm) {\small\insertinstitute};
          \end{tikzpicture}
   \end{minipage}}%
 \beamer@tempdim=\ht\beamer@tempbox%
 \advance\beamer@tempdim by 2pt%
 \begin{pgfpicture}{0pt}{0pt}{\paperwidth}{\beamer@tempdim}
   \usebeamercolor{frametitle right}
   \pgfpathrectangle{\pgfpointorigin}{\pgfpoint{\paperwidth}{\beamer@tempdim}}
   \pgfusepath{clip}
   
 \end{pgfpicture}
 \hskip-\paperwidth%
 \box\beamer@tempbox%
}%
\hskip-\Gm@rmargin%
}%
}

\setbeamertemplate{footline}%{miniframes theme}
{%
  \hfill\includegraphics[width=.25\linewidth]{beamer-est_est}
  \vspace{.3mm}
  \begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
  \end{beamercolorbox}
  \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
    leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
    {
      \usebeamerfont{title in head/foot}\insertshorttitle} \hfill     \insertframenumber%
  \end{beamercolorbox}%
  \begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
  \end{beamercolorbox}
}


\mode
<all>
