:root {
  --cinza: #2C2C2A;
  --verde: #008C42;
  --verdelight: #ACC920;
  --verdeescuro: #015423;
  --bgverde: #E9F7DC;
  --bgcinza: #E5E3DB;
  --inativo:rgba(255,255,255,.42); 
  --icone-size:60px;
  --dash:5px; 
  --scrub-por-etapa:190px;
  --etapas-total:11;
  --scrub:calc(var(--scrub-por-etapa) * var(--etapas-total));  
  --header-h:105px;

}
@keyframes bounce{
  0%,100%{transform:rotate(45deg) translate(0,0)}50%{transform:rotate(45deg) translate(5px,5px)}
}
section{
  scroll-margin-top: 70px;
}
a{
  text-decoration: none;
}
body {
  font-family: "Montserrat", sans-serif;
  background-color: #fff;
  color: var(--cinza);
}
/**MENU**/
#main-header {
  padding: 30px 0px;
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: #fff;
  .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width:  80%;
    margin: 0 auto;
    padding: 0;
    .navbar-brand{
      img{
        height: 45px;
        width: auto;
        display: block;
      }
    }
    a.cotacao {
        background: var(--verde);
        padding: 10px 20px;
        transition: .3s;
        font-weight: 600;
        color: #fff;
        border-radius: 10px;
        a {
          color: #fff;
          font-weight: 700;

          &:hover {
            color: #fff;
          }
        }

        &:hover {
          color: #fff;
          background: var(--verdeescuro);

          a {
            color: #fff;
          }
        }
    }    
  }
  nav#navbarMenu {
    display: flex;
    gap: 2rem;
    ul.nav {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      gap: 2rem;
      align-items: center;
      li.menu-item {
        a {
          text-decoration: none;
          font-weight: 500;
          font-size: 1.1rem;
          color: var(--cinza);
          transition: color 0.3s ease;
          &:hover {
            color: var(--verde);
          }
        }
      }
      li.current-menu-item{
        a{
          color: var(--verde);
        }
      } 
    }
  }
nav#navbarMenu {
    ul.nav {
      li.menu-item-has-children {
        position: relative;

        > a {
          display: inline-flex;
          align-items: center;
          gap: .4rem;

          &::after {
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            content: "\f107"; /* fa-angle-down */
            font-size: .8em;
            line-height: 1;
            transition: transform .3s ease;
          }
        }

        /* ponte invisível: evita o menu fechar ao descer o mouse */
        &::before {
          content: '';
          position: absolute;
          top: 100%;
          left: 0;
          width: 100%;
          height: 22px;
        }

        ul.sub-menu {
          list-style: none;
          margin: 0;
          padding: .5rem 0;
          position: absolute;
          top: calc(100% + 22px);
          left: 50%;
          transform: translateX(-50%) translateY(10px);
          min-width: 220px;
          background-color: #fff;
          border-radius: 10px;
          box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
          display: flex;
          flex-direction: column;
          opacity: 0;
          visibility: hidden;
          pointer-events: none;
          transition: opacity .3s ease, transform .3s ease, visibility .3s ease;

          &::before {
            content: '';
            position: absolute;
            top: -6px;
            left: 50%;
            transform: translateX(-50%) rotate(45deg);
            width: 14px;
            height: 14px;
            background-color: #fff;
            border-radius: 3px;
          }

          li.menu-item {
            a {
              display: block;
              padding: .65rem 1.25rem;
              font-size: 1rem;
              font-weight: 500;
              white-space: nowrap;
              text-decoration: none;
              color: var(--cinza);
              transition: color .3s ease, background-color .3s ease;

              &:hover {
                color: var(--verde);
                background-color: rgba(0, 0, 0, .03);
              }
            }
          }

          li.current-menu-item a {
            color: var(--verde);
          }
        }

        &:hover,
        &:focus-within {
          > a::after {
            transform: rotate(180deg);
          }
          > ul.sub-menu {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateX(-50%) translateY(0);
          }
        }
      }

      /* pai do item ativo também fica verde */
      li.current-menu-ancestor > a,
      li.current-menu-parent > a {
        color: var(--verde);
      }
    }
  }
  #toggle-theme {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, fill 0.3s ease;
    color: var(--verde);
    fill: none;
  }
  #mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    width: 24px;
    height: 24px;
    z-index: 10001;
    flex-shrink: 0;
    .navbar-toggler-icon, .navbar-toggler-icon::before, .navbar-toggler-icon::after, .navbar-toggler-icon span {
      position: absolute;
      width: 25px;
      height: 2px;
      background-color: var(--verde);
      transition: all 0.3s ease;
      content: '';
      left: 0;
    }
    .navbar-toggler-icon::before {
      top: -10px;
    }
    .navbar-toggler-icon::after {
      top: 10px;
    }
    .navbar-toggler-icon span {
      top: 0px;
    }
    &.open {
      .navbar-toggler-icon::before {
        transform: rotate(45deg);
        top: 0px;
            background-color: var(--verde);

      }
      .navbar-toggler-icon::after {
        transform: rotate(-45deg);
        background-color: var(--verde);
        top: 0px;
      }
      span.navbar-toggler-icon span{
        background-color: transparent;

      }
    }
  }
  #mobile-toggle[aria-expanded="true"] .navbar-toggler-icon::before, .navbar-toggler-icon::after{
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: var(--verde);
    transition: all 0.3s ease;
    content: '';
    left: 0;
  }
  #mobile-toggle[aria-expanded="true"] .navbar-toggler-icon{
    background: transparent;
  }
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 100vh;
    background-color: #fff;
    padding: 20px 5vw;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    z-index: 10000;
 ul.nav {
      li.menu-item-has-children {
        > a {
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: .5rem;

          &::after {
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            content: "\f107";
            font-size: .85em;
            transition: transform .3s ease;
          }
        }

        ul.sub-menu {
          list-style: none;
          margin: 0;
          padding: 0;
          max-height: 0;
          overflow: hidden;
          transition: max-height .35s ease, padding .35s ease;

          li.menu-item a {
            display: block;
            padding: .5rem 0 .5rem 1rem;
            font-size: 1rem;
            text-decoration: none;
            color: var(--cinza);
            border-left: 2px solid rgba(0, 0, 0, .08);

            &:hover {
              color: var(--verde);
            }
          }
        }

        &.open {
          > a::after {
            transform: rotate(180deg);
          }
          > a {
            color: var(--verde);
          }
          > ul.sub-menu {
            max-height: 500px;
            padding: .5rem 0;
          }
        }
      }
    }
    &.show {
      display: flex;
    }

    a.cotacao {
        background: var(--verde);
        padding: 15px 20px;
        transition: .3s;
        display: block;
        font-weight: 600;
        color: #fff;
        border-radius: 10px;
        a {
          color: #fff;
          font-weight: 700;

          &:hover {
            color: #fff;
          }
        }

        &:hover {
          color: #fff;
          background: var(--verdeescuro);

          a {
            color: #fff;
          }
        }
    }   

    .navbar-brand {
      display: flex;
      align-items: center;
      img{
        height: 45px;
        width: auto;
        margin: 0;
      }
      
    }

    ul.nav {
      list-style: none;
      padding: 0;
      margin: 30px 0;
      display: flex;
      flex-direction: column;
      gap: 1rem;

      li.menu-item a {
        font-size: 1.1rem;
        text-decoration: none;
        color: var(--cinza);

        &:hover, &.current-menu-item {
          color: var(--verde);
        }
      }
    }
  }
}
/**RODAPE**/
.rodape{
  padding: 60px 10% 40px;
  background: var(--verde);
  img.logo{
    max-height: 120px;
    height: 65px;
    margin: 0 0 5px;
    display: block;
    width: auto;
  }
  .dpo{
    margin-top: 15px;
  }
  .copy{
    margin-top: 60px;
    border-top: solid 1px var(--verdelight);
    padding-top: 30px;
    color: #fff;
    p{
      font-size: 1rem;
      margin: 0;
    }
    img{
      height: 1.2rem;
      opacity: 1;
      filter: invert(1);
    }
    a{
      color: #fff;
      text-decoration: none;
    }
  }
  p.sub{
    color: #fff;
    font-size: 1rem;
    margin: 20px 0;
    width: 90%;
  }
  h5{
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 0 15px;
  }
  ul{
    list-style: none;
    padding: 0;
    & li{
      margin: 10px 0;
      font-weight: 300;
      color: #fff;
      i{
        color: var(--verdelight);
        width: 1.2rem;
      }
      a{
        color: #fff;
        text-decoration: none;
        transition: .3s;
        &:hover{
          color: var(--verdelight);
        }

      }
    }
  }
  .redes{
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
    a{
      width: 45px;
      height: 45px;
      border-radius: 50%;
      font-size: 1.4rem;
      display: flex;
      justify-content: center;
      align-items: center;
      background: #fff;
      color: var(--verdeescuro);
      transition: .3s;
      &:hover{
        background: var(--verdelight);
      }
    }
  }
}
@media (max-width: 1580px) {
  #main-header {
    .container {
        max-width: 90%;
    }
    nav#navbarMenu {
        ul.nav {
          gap: 1.5rem;
          & li.menu-item {
            a {
              font-size: 1rem;
            }
          }
        }
    }    
  }
  .rodape {
    padding: 60px 5% 40px;
    & .certificacoes {
      img {
          height: 60px;
      }
    }      
  }          
}

@media (max-width: 1024px) {
  #main-header {
    padding: 20px 5vw;
    nav#navbarMenu {
      display: none !important;
    }
    #mobile-toggle {
      display: block;
    }
    .container {
      gap: 1rem;
      max-width: 100%;
      padding: 0;
    }
    .container{
      a.cotacao{
        display: none!important;
      }
    }
  }
  .rodape{
    .dpo {
        margin: 0 0 30px;
    }    
  }
}

@media (max-width: 768px) {
  .rodape {
    padding: 50px 60px 50px;
  }
}

@media (max-width: 480px) {
  #main-header {
    & .container {
        & .navbar-brand {
            img {
                height: 40px;
                width: auto;
                display: block;
                margin:  0;
            }
        }
    }
    & .mobile-menu {
        & .navbar-brand {
            img {
                height: 40px;
                width: auto;
                margin: 0;
            }
        }
    }
  } 
  .rodape {
    padding: 40px 25px 20px;
    .copy {
      margin-top: 40px;      
      p {
        font-size: 1rem;
        margin: 0 0 15px;
      }
    }    
  }
}

@media (prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto;
  }
}