<?php

    // Configurações:



    $contador = "reg.txt";	// patch do arquivo de gravação

    define ("adi", 1);	// quantidade a ser adicionada



    // Fim de configurações -------------------------------



    $id = fopen($contador, "r+");

    $conteudo = fread($id,filesize($contador));

    fclose($id);

    clearstatcache();



    $conteudo += adi;



    $id = fopen($contador, "r+");

    fwrite($id, $conteudo, strlen($conteudo) + 5);

    fclose($id);

    clearstatcache();



    //Criamos uma função que irá retornar o conteúdo do arquivo.

            function ler(){

                //Variável arquivo armazena o nome e extensão do arquivo.

                $arquivo = "reg.txt";



                //Variável $fp armazena a conexão com o arquivo e o tipo de ação.

                $fp = fopen($arquivo, "r");



                //Lê o conteúdo do arquivo aberto.

                $conteudo = fread($fp, filesize($arquivo));



                //Fecha o arquivo.

                fclose($fp);



                //retorna o conteúdo.

                return $conteudo;

            }

?>

<!DOCTYPE html>
<html lang="pt-br">
<head>

  <!-- Google Tag Manager -->
    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-M6LT9D3');</script>
  <!-- End Google Tag Manager -->


    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Oalmeida - Especialista em casas novas e reformdas">
    <meta name="robots" content="index">
    <meta name="keywords" content="html, css, js, site">
    <title>Oalmeida - Especialista em casas novas e reformdas</title>

   

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
    
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">

    <link href="css_site/geral.css" rel="stylesheet">

    

</head>
<body oncontextmenu="return false">

    <!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M6LT9D3"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->



    <header>
        <div class="tela_topo">
            <div class="tela_logo"><a href="index.php"><img src="img/longo.png" alt="longo.png">OAlmeida</a></div>
            <div class="tela_menu">
                <div class="bnt_menu_topo"><a href="https://www.instagram.com/oalmeidaimoveis/?g=5"><img src="img/instagram.png" alt="instagram.png">&nbsp;&nbsp;Instagram</a></div>
                <div class="bnt_menu_topo"><a href="https://www.youtube.com/c/OAlmeidaIm%C3%B3veis"><img src="img/youtube.png" alt="youtube.png">&nbsp;&nbsp;Youtube</a></div>
                <div class="bnt_menu_topo"><a href="https://www.tiktok.com/@oalmeidaimoveis?lang=pt-BR"><img src="img/tiktok.png" alt="tiktok.png">&nbsp;&nbsp;TikTok</a></div>
                <div class="bnt_menu_topo"><a href="tel:+556139657868"><img src="img/contato.png" alt="contato.png">&nbsp;&nbsp;Contato</a></div>
            </div>
        </div>
    </header>
    <section class="barra_site"></section>
    <main>
        <div class="tela_banner">

            <div class="container-fluid busca_banner">
                <div class="form_busca_banner container">
                  <h4>Busca de Imóveis:</h4>
                  <form action="pg_busca.php" method="get">
                    <input id="busca" name="busca" class="input_busca_banner" type=type="search" placeholder="Digite a quadra, bairro ou cidade..." aria-label="Search" title="Digite o nome da rua, bairro ou cidade...">
                    <button class="btn_busca_banner" type="submit">Busca</button>
                  </form>
                </div>
            </div>

            <div id="carouselExampleCaptions" class="carousel slide" data-bs-ride="carousel">
                <div class="carousel-indicators">
                  <button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
                  <button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="1" aria-label="Slide 2"></button>
                  <button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="2" aria-label="Slide 3"></button>
                </div>
                <div class="carousel-inner">
                  <div class="carousel-item active">
                    <img src="banner/banner-01.jpg" class="d-block w-100" alt="...">
                    <div class="carousel-caption d-none d-md-block">
                      <h5>First slide label</h5>
                      <p>Some representative placeholder content for the first slide.</p>
                    </div>
                  </div>
                  <div class="carousel-item">
                    <img src="banner/banner-02.jpg" class="d-block w-100" alt="...">
                    <div class="carousel-caption d-none d-md-block">
                      <h5>Second slide label</h5>
                      <p>Some representative placeholder content for the second slide.</p>
                    </div>
                  </div>
                  <div class="carousel-item">
                    <img src="banner/banner-03.jpg" class="d-block w-100" alt="...">
                    <di-v class="carousel-caption d-none d-md-block">
                      <h5>Third slide label</h5>
                      <p>Some representative placeholder content for the third slide.</p>
                    </di-v>
                  </div>
                </div>
              </div>
        </div>
        <div class="container-fluid texto_home_site">Especialista em Casas Novas e Reformadas</div>

        <div class="container-fluid tela_btn_home">

          <div class="container tela_btn_link">

            <div class="tela_btn_count_home">
              <a href="pg_busca.php?busca=Ceilândia"><div class="tela_link_btn_home">Ceilândia</div></a>
            </div>

            <div class="tela_btn_count_home">
              <a href="pg_busca.php?busca=Taguatinga"><div class="tela_link_btn_home">Taguatinga</div></a>
            </div>

            <div class="tela_btn_count_home">
              <a href="pg_busca.php?busca=Samambaia"><div class="tela_link_btn_home">Samambaia</div></a>
            </div>

            <div class="tela_btn_count_home">
              <a href="pg_busca.php?busca=Recanto%20das%20Emas"><div class="tela_link_btn_home">Recanto das Emas</div></a>
            </div>

            <div class="tela_btn_count_home">
              <a href="pg_busca.php?busca="><div class="tela_link_btn_home">Outras Regiões</div></a>
            </div>

          </div>

        </div>
        <div class="container-fluid texto_home_site">Lançamentos do Mês <br><h4>Venha conhecer nossa live de imóveis <br><a href="https://www.instagram.com/oalmeidaimoveis/?g=5"><img src="img/escreva-se.png" alt="escreva-se.png"></a></h4></div>

        <div class="container-fluid tela_btn_home">

          <div class="container tela_btn_link">

            <div class="tela_btn_count_video">
              <div class="embed-responsive embed-responsive-16by9">
                <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/QiJhH3syyQ4" allowfullscreen></iframe>
              </div>
            </div>

            <div class="tela_btn_count_video">
              <div class="embed-responsive embed-responsive-16by9">
                <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/-1FrH-tsxyo" allowfullscreen></iframe>
              </div>
            </div>

            <div class="tela_btn_count_video">
              <div class="embed-responsive embed-responsive-16by9">
                <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/-z2Zn-WM7eI" allowfullscreen></iframe>
              </div>
            </div>  <br>
            <div class="texto_youtube_home"><h4>Conheça nosso Canal no Youtube! <a href="https://www.youtube.com/c/OAlmeidaIm%C3%B3veis"><img src="img/tela_youtube.png" alt="tela_youtube.png"></a></h4></div>

          </div>

        </div>

        

    </main>
    <footer>
        <div class="tela_plantao_whatsap">
            <a href="http://api.whatsapp.com/send?phone=5561992255464"><img src="img/inco_whatsap.png" alt="inco_whatsap.png" title="Whatsap do Plantão"></a>
        </div>
    </footer>
   
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script> 
</body>
</html>