/*
  Reset CSS Moderno (Adaptado para 2025)
  Inspirado em normalize.css e outros resets populares.
*/

*,
*::before,
*::after {
  box-sizing: border-box; /* Melhor modelo de caixa para layout */
  margin: 0;             /* Remove margens padrão */
  padding: 0;            /* Remove paddings padrão */
}

html {
  -webkit-text-size-adjust: 100%; /* Previne o ajuste automático de tamanho de texto no iOS */
  text-size-adjust: 100%;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'; /* Fonte padrão mais moderna e abrangente */
  line-height: 1.5;       /* Melhora a legibilidade do texto */
  overflow-x: hidden;
  scroll-behavior: smooth;
}

html.no-scroll {
  overflow: hidden;
}

body {
  min-height: 100vh;      /* Garante que o body ocupe pelo menos a altura da viewport */
  text-rendering: optimizeLegibility; /* Otimiza a renderização do texto */
  overflow-x: hidden;
  background: #e8e8e8;
  color: #414141;
}

body.no-scroll {
  overflow: hidden;
}

article, aside, footer, header, nav, section, main {
  display: block;         /* Define elementos semânticos como block por padrão */
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word; /* Impede que palavras longas quebrem o layout */
}

hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1); /* Estilo sutil para a linha horizontal */
  margin: 1rem 0;
}

abbr[title] {
  text-decoration: underline dotted; /* Indica abreviações com um sublinhado pontilhado */
  cursor: help;
}

address {
  font-style: normal;     /* Mantém o estilo normal para o elemento address */
}

ol, ul {
  list-style: none;       /* Remove marcadores de lista padrão */
}

a {
  text-decoration: none;  /* Remove sublinhado padrão dos links */
  color: inherit;         /* Herda a cor do texto pai por padrão */
}

b, strong {
  font-weight: bolder;    /* Define negrito mais forte */
}

code, kbd, samp, pre {
  font-family: monospace, monospace; /* Fonte monoespaçada para código */
  font-size: 1em;
}

small {
  font-size: 0.8em;       /* Reduz ligeiramente o tamanho da fonte para texto pequeno */
}

sub, sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

table {
  border-collapse: collapse; /* Colapsa as bordas da tabela */
  border-spacing: 0;
}

button,
input,
optgroup,
select,
textarea {
  -webkit-appearance: none; /* Remove estilos padrão específicos do navegador */
  appearance: none;
  background-color: transparent;
  color: inherit;
  font: inherit;
  border: none;
  padding: 0;
  margin: 0;
}

button {
  cursor: pointer;
}

.fixed-mobile-buttons {
    transition: all .2s ease;
    display: none;
}

.menu-toggle{
  display: none;
}

::-moz-focus-inner {
  border: 0; /* Remove a borda pontilhada ao focar em elementos no Firefox */
  padding: 0;
}

img,
svg,
video,
canvas,
audio,
iframe {
  display: block;        /* Remove espaçamento extra abaixo de elementos inline-block */
  max-width: 100%;        /* Impede que as imagens excedam a largura do contêiner */
  height: auto;
}

/* Melhorias de acessibilidade */
[hidden] {
  display: none !important;
}

.header-perfil-mobile {
  display: none;
}

/* Adicione outras regras conforme necessário para o seu projeto */

header {
    width: 100%;
    position: fixed;
    background: transparent;
    transition: all .2s ease-in-out;
    z-index: 2;
    height: 136px;
    
    &::before {
      position: absolute;
      width: 100%;
      height: 87px;
      background:#fff;
      content: " ";
      top: -100%;
      z-index: -1;
      transition: all .2s ease-out;
    }
    .container {
        display: flex;
        align-items: center;
        padding: 12px 0;
    }

    .logo {
      position: relative;
      padding: 6px;
      margin-right: 75px;
      img {
        width: 100%;
        transition: all .2s ease-in-out;
      }
      
    }

    nav {

        a {
          color: #414141;
          font-size: 14px;
          margin: 0 8px;
          padding: 12px 20px;
          transition: all .2s ease-in-out;
          font-weight: 500;
          position: relative;

          &::before {
            content:  " ";
            width: 0;
            height: 100%;
            background-image: linear-gradient(45deg, #9A783E, #C5A46C, #F5D092);
            position: absolute;
            top: 0;
            left: 0;
            z-index: -1;
            border-radius: 4px;
            transition: all .2s ease;
          }

          &:hover {
            color: #f1f1f1;

            &::before {
              width: 100%;
            }
          }
        }

        #logo-nav {
          display: none;
        }
    }
    
    .actions {
      align-self: center;
      display: flex;
      flex: 1;
      justify-content: end;

      .cta {
        padding: 0;
      }
    }

    

    
}

/* estilos do header após ser scrollado */

body.scrolled {

  header {
    /* background: #fff; */
    height: 82px;
    box-shadow: 0px 6px 14px rgba(3, 7, 18, 0.04),
                0px 23px 54px rgba(3, 7, 18, 0.08);

    

    &::before {
      top: -5px;
    }
  }
}

/* generic class for cta */
.cta { 
    width: auto;
    padding: 2rem 0;

    .button-cta {
        min-width: 180px;
        background: #D2001F;
        border-radius: 51px;
        padding: 12px 24px;
        color: #fff;
        transition: all .2s ease-in-out;

        &:hover {
            box-shadow: 0 3px 10px rgba(10, 37, 64, 0.25);
        }
    }
}

/* estilos de layout/grid/boxes */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}


/* estilos de titulos */

.title {
    color: #003C7F;
    position: relative;
    font-size: 48px;
    line-height: 48px;
    margin: 0 auto 2rem auto;
    font-weight: 500;
    width: fit-content;

    strong {
      font-weight: 700;
    }

    &::after {
        position: absolute;
        bottom: -1.5rem;
        content: " ";
        width: 70%;
        height: 2px;
        border-radius: 4px;
        left: 50%;
        background-image: linear-gradient(45deg, #9A783E, #C5A46C, #F5D092);
        transform: translateX(-50%);
    }
}


/* estilos padrões das sections */
sections {
    padding: 2rem 0;
}



/* banner-hero estilos */
.banner-hero {
    height: 800px;
    background: url(../images/background-banner.png) center bottom no-repeat;
    background-size: cover;
    display: grid;
    place-items: center;


    .container {
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
        padding-top: 100px;
    }

    .display {
        width: fit-content;

    }
    .title {
      font-size: 65px;
      line-height: 65px;
      font-weight: 700;
      strong {
        display: block;
        font-weight: inherit;
      }

      &::after {
        left: 0;
        transform: unset;
      }
    }

    span {
        font-size: 20px;
        color: #414141;
        line-height: 30px;
    }
}

/* procedimentos */

.procedimentos {

      position: relative;
      padding-top: 5rem;
      background: #fff url(../images/background_procedimentos.png) bottom center no-repeat;
      background-size: cover;
      border-top-left-radius: 50px;
      border-top-right-radius: 50px;
      border-top: 30px solid #003C7F;
      top: -30px;

}

.container-procedimentos {
  max-width: 1280px;
  margin: 0 auto;
}

.box-procedimentos {
    grid-template-columns: repeat(4, 1fr);
    display: grid;
    gap: 16px;
    padding: 4rem 0 2rem 0;

    .item {
      padding: 12px;
      border:1px solid rgb(0, 60, 127);
      color: #fff;
      background: #fff;
      border-radius: 8px;
      transition: all .2s ease;
      transform: scale(1);
      cursor: pointer;
      .image {
        height: 190px;
        margin: -12px;
        img {
            height: 100%;
            width: 100%;
            border-top-left-radius: 7px;
            border-top-right-radius: 7px;
            
        }
        
      }

      h2 {  
          color: #1A3E7C;
          font-size: 22px;
          line-height: 26px;
          padding: 12px;
          height: 70px;
          display: flex;
          align-items: center;
          background: #fff;
          margin: 32px 0 12px 0;
          border-radius: 4px;
          padding-left: 0;
      }

      p {
        color: #414141;
        font-size: 16px;
        line-height: 20px;
        padding: 0 2px 12px 2px;
      }

      p strong { 
        font-weight: 500;
      }
  
    }
    .item:hover {
  
        box-shadow: 0 3px 10px rgba(10, 37, 64, 0.25);
        transform: scale(1.3);
        
    }
}

    .citacao { 
       padding: 12px;
       height: fit-content;
       text-align: center;
        
       p strong { 
          font-weight: 500;
       }
    }

/* perfil */
.perfil {
    position: relative;
    background: #e7e7e7 url(../images/foto_fachada.png) left center no-repeat;
    background-size: contain;
    max-width: 1920px;
    margin: 0 auto;
    
    &::before {
      content:  " ";
      width: 100%;
      height: 40px;
      background: #e7e7e7;
      position: absolute;
      top: -40px;
    }
    .container {
        display: flex;
        align-items: center;
        background: url(../images/drclaudiogabriele.png) left bottom no-repeat;
        background-position-x: -134px;
        background-size: contain;
        flex-direction: row-reverse;
        padding: 2rem;
    }

    .title::after {
      bottom: -1rem;
    }

    p strong {
      font-weight: 500;
    }

    .image {
      width: 45%;
      position: relative;
      margin-right: 5%;

      &::before {
        /* content: url(../images/foto_fachada.png); */
        position: absolute;
        width: auto;
        height: auto;
        transform: scale(0.7) translateX(-50%);
        border-radius: 8px;
        right: -22%;
        top: -8%;
      }

      &::after {
        content: " ";
        background: #003C7F;
        width: 85%;
        height: 86%;
        position: absolute;
        bottom: 0;
        right: 0;
        z-index: -1;
        border-radius: 20px;
      }
    }
    
    .foto-perfil {
      position: relative;

    }
    .data {
      width: 44%;
      display: flex;
      flex-direction: column;
      position: relative;
        .honors {
          display: grid;
          gap: 15px;
          margin: 2rem 0 0 0;
          grid-template-columns: 1fr 1fr;
          width: fit-content;
          

          img{
            border-radius: 10px;
            transition: all .2s ease;
            &:hover {
             
            box-shadow: 0px 2px 4px rgba(3, 7, 18, 0.03), 0px 8px 18px rgba(3, 7, 18, 0.05), 0px 17px 40px rgba(3, 7, 18, 0.08);
            }
          }
          
        }

        &::before {
          content: " ";
          position: absolute;
          width: 120%;
          height: 120%;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          background: #e7e7e7;
          border-radius: 16px;
          z-index: -1;
        }

    }

    h2 {
      margin-left: 0;

      &::after {
        left: 0;
        transform: unset;
      }
    }
}

/* instagram feed */

.instagram-feed {
  text-align: center;
  padding: 4rem 0;

  .title {
    
    font-weight: 700;
    margin: 0 auto 2.5rem auto;

    &::after {
      left: 50%;
      transform: translateX(-50%);
      bottom: -1rem;
    }
  }

  img {
    margin: 0 auto;
  }

  span {
    color: #414141;
    font-weight: 500;
    font-size: 24px;
    line-height: 26px;
  }

  .curator { 
    padding: 3rem 0;

    img { 
      width: 100%;
      object-fit: cover;
      height: 277px;
    }
  }


}


/* Agende section */

.agende {
    background: #003C7F;
    padding: 3rem 0;
    text-align: center;
    color: #fff;
    
    .title {
      color: #fff;
      text-align: center;
      margin: 0 auto 2rem auto;
      font-weight: 700;
     
    }

    p {
      font-size: 20px;
      line-height: 24px;
    }

    .cta {
      padding-bottom: 0;
    }
}

/* locale (map) */

.locale {
  height: 35vh;

  iframe {
    width: 100%;
    height: 100%;
  }
}

/* footer */
footer {
    padding: 2rem 0 0 0;
    background: #E7E7E7;

    .container {
        display: flex;
        justify-content: flex-start;
        padding: 1rem 0;

    }

    .logo { 
      margin: 0 30px 0 0;
      border-right: 1px solid #D2001F;
      padding: 0 20px 0 0;
    }
    
    .container+.container {
      justify-content: space-between;
      border-top: 1px solid #D2001F;

      p {
        color: #414141;
      }
    }

    /* .logo {
      width: 250px;
    } */

    nav,
    .contact {
       display: flex;
       flex-direction: column;
    }

    a {
      font-size: 16px;
      color: #414141;
      display: flex;
      

      img {

        margin-right: 12px;
      }


    }

    nav { 
      margin-right: 150px;
      justify-content: center;

      a {
        position: relative;
        width: fit-content;

        &::after {
          content: " ";
          position: absolute;
          bottom: 0;
          width: 0;
          left: 0;
          height: 1px;
          background: #414141;
          transform-origin: bottom right;
          transition: all .2s ease;
        }

        &:hover {
          &::after {
            width: 100%;
          }
        }

      }
    }

    .contact {
        justify-content: center;
        gap: 12px;

        span {

        }

        span+span {

        }
    }

    .socials {
        align-self: center;
        display: flex;
        justify-content: end;
        flex: 1 1 0%;

        a {
          background: #003C7F;
          border-radius: 25px;
          padding: 12px;
          margin-right: 5px;
          position: relative;
          z-index: 1;

          &::before {
            width: 100%;
            height: 100%;
            content: " ";
            position: absolute;
            top: 0;
            left: 0;
            background: #000;
            z-index: -1;
            border-radius: 25px;
            transition: all .2s ease;
            transform: scale(0);
          }

          img {
            margin: 0;
            z-index: 1;
            transform: scale(1);
            transition: all .2s ease;
          }

          &:hover {

            img {
              transform: scale(0.8);
            }
            &::before {
            transform: scale(1);
          }
          }

        }
        .facebook {

        }

        .instagram {

        }

        .linkedin {

        }
    }
}

@media (max-width: 1280px) {

  

}

@media (max-width: 768px) {
  .header-perfil-mobile {
    display: flex;
  }
  .title {
        text-align: center;
  }

  .display {
    width: 80% !important;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 100%;
    height: 100vh;
    background-color: #fff;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    transition: right 0.4s ease-in-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Adicionado para rolagem suave no menu */
    margin-top: 0;
    padding-top: 80px;
    display: block;

    a {

      color: #333 !important;
      font-size: 1.5rem !important;
      font-weight: 300;
      border-bottom: 1px solid #f1f1f1;

    }

    
  }

      .nav-menu {
        right: -100%;
        flex-direction: column;
        display: flex;
        
        &.active {
          right: 0;
        }
      }

    

    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    header {
      padding: 12px ;
      &::before {
        left: -12px;
        width: calc(100% + 12px);

      }
    }
    header .logo {
        position: relative;
        padding: 0 2%;
        width: fit-content;
    }

    header .logo img {
      width: 200px;
      transition: all .2s ease-in-out;
    }

    .nav-menu {
        width: 100%;
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu ul li a {
        display: block;
        font-size: 1.4rem;
        font-weight: 300;
    }

    header .actions {
       display: none;
    }

    .cta {
      text-align: center;

      .button-cta {
        min-width: 180px;
        background: #D2001F;
        border-radius: 51px;
        padding: 12px 24px;
        color: #fff;
        transition: all .2s ease-in-out;
      }
        
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 20px;
        z-index: 9999;
        transform: translateY(-50%);
        font-size: 31px;
        background: linear-gradient(45deg, #9A783E, #C5A46C, #F5D092);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .banner-hero .cta {
      text-align: left;
    }
    .banner-hero .title{
      font-size: 55px;
      line-height: 65px;
      font-weight: 700;
      margin-left: 0;
      text-align: left;
    }

    .banner-hero span {
      font-size: 18px;
    }

    .container .title {
      font-size: 40px;
      line-height: 40px;
    }

    .container .h2 {
      font-size: 35px;
      line-height: 35px;
    }

  .banner-hero {
    background: url(../images/background_banner_mobile.png) center bottom no-repeat;
    background-size: cover;
    height: 600px
  }
  .container {
    padding: 0 12px;
    max-width: 100%;
    padding-top: 0!important;
  }

  .nav-menu #logo-nav {
    padding-top: 30%;
    display: flex;
    margin: 0 auto;
    width: 241px;
  }
  .procedimentos {
    border-top-width: 10px;
    padding-top: 2rem;
  }
  .procedimentos .container {
    position: relative;

  }
  .container-procedimentos {
    padding-left: 10px;
  }

  .box-procedimentos {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-left: 60px;
  }

  .box-procedimentos .item {
    flex: 0 0 80%;
    scroll-snap-align: start;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    padding: 10px;
  }

  .box-procedimentos::-webkit-scrollbar {
    display: none; /* esconder a barra no mobile */
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 6px;
    padding-bottom: 20px;
  }

  .carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 8px;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: all .2s ease;
  }

  .carousel-dots button.active {
    background: #1a3e7c;
    width: 22px;
  }
  .perfil {
    padding: 0 12px;
    background: unset;
  }
  .perfil .header-perfil-mobile {
    width: 100%;
    height: 350px;
    background: url(../images/foto_fachada.png) center center no-repeat;
    background-size: cover;
    margin-bottom: 1rem;
    overflow: hidden;


    img { 
      -webkit-transform: scaleX(-1);
      transform: scaleX(-1);
      width: 498px !important;
      display: flex;
      max-width: unset;
      position: relative;
      right: -33%;
    }
  }
  .perfil .container {
    flex-direction: column;
    padding: 0;
    background: unset;
  }

  .perfil .container .data {
    width: 100%;
  }

  .perfil .container .image { 
    width: unset;
  }
  .agende {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;

    p {
      font-size: 16px;
    }
  }
  footer{
    padding: 2rem 12px 5rem 12px;

    .container+.container {
      padding-top: 1rem !important;
      p {
        font-size: 14px;
      }
    }

    .container {
      flex-direction: column; 
      text-align: center;
      .logo{
        width: 100%;
        padding-bottom: 4%;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        padding-right: 0;
        border-right: 0;
      }

      nav { 
        margin: 0;
        display: flex;
        align-items: center;
      }

      .contact {
        padding: 4% 0;
        display: flex;
        align-items: center;
      }

      .socials {
        margin: 4% 0;
      }

      .container+.container {
        justify-content: space-between;
        padding-bottom: 0;
        
        
      }

      a.logo-index {
        margin: 0 auto;
      }
    }
  }
  
    .fixed-mobile-buttons {
        background: #FFF;
        bottom: 0;
        position: fixed;
        width: 100%;
        padding: 0;
        display: flex;
        gap: 5px;
        padding: 10px;
        z-index: 9999999;
    }

    .fixed-mobile-buttons a {
        width: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 66px;
        border-radius: 4px;
        color: #fff;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* Oculta o destaque ao tocar */
    }

    .fixed-mobile-buttons a:first-child {
        background-color: #003C7F;
    }

    .fixed-mobile-buttons a:last-child {
        background-color: #57c857;
    }

    .fixed-mobile-buttons a span {
        font-size: 14px;
        margin-top: 5px;
    }

    .fixed-mobile-buttons a img {
        display: block;
        width: 25px;
        height: 25px;
    }

  
}