.ico-down {
    width: 1.2rem;
    height: 1.2rem;
    object-fit: contain;
    transition: all 0.3s;
}

/* DROPDOWN */
.dropdown {
  display: inline-block;
  margin: 0;
  position: relative;

    .dropdown-content {
        position: absolute;
        z-index: 99;
        left: 0;
        width: auto;
        top: 100%;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
        opacity: 0;
        text-align: left;
        margin: 0;
        visibility: hidden;
        pointer-events: none;
        padding: 0;
        background-color: var(--white);
        text-align: left;
        min-width: 35rem;
        border-radius: 5px;

        & a {
            line-height: 1.2;
        }
    }
}

.dropdown:hover {
    .dropdown-content {
        height: auto;
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
}


.fascia_menu {
  padding: 2rem 0;
  position: relative;
  z-index: 9;

  @media screen and (min-width: 1025px) {
    padding: 5rem 0;
  }

  .container_big {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;

    @media screen and (min-width:400px) {
      align-items: center;
    }
  }
}

#header_pag {
  .fascia_menu {
    @media screen and (min-width: 1025px) {
      padding: 5rem 0 2rem;
    }
  }
}

nav.menu {
  width: calc(100% - 18rem - 13.4rem);
  display: none;

  @media screen and (min-width:1025px) {
    display: block;
  }

  & ul {
    display: flex;
    height: 100%;
    justify-content: center;

    & li {
      display: flex;
      align-items: center;
      padding: 0 1rem;

     @media screen and (min-width:1150px) {
      padding: 0 2rem;
     } 

      & a {
        display: flex;
        align-items: center;
        height: 100%;

        &:hover, &.active {
          font-weight: 700;
        }
      }
    }

    &.sub-nav {
      flex-direction: column;

      & li {
        padding: 1.5rem 2.5rem;
        position: relative;
        transition: all .3s;
        text-align: left;

        & span {
          width: 0;
          height: 3px;
          background-color: var(--red);
          display: inline-block;
          position: relative;
          transition: all .3s;
          margin: 0 5px 0 0;
        }

        &:first-of-type {
          border-radius: 5px 5px 0 0;
        }

        &:last-of-type {
          border-radius: 0 0 5px 5px;
        }

        &:hover {
          background-color: white;

          & span {
            width: 1.5rem;
          }
        }
      }
    }
  }
}

.cta_wrap {
    position: absolute;
    right: 3.8%;
    top: 7rem;
    height: auto;

  @media screen and (min-width: 400px) {
    position: relative;
    top: inherit;
    right: inherit;
    display: flex;
    height: 100%;
    align-items: center;
  }

  .cta {
    display: none;
    @media screen and (min-width: 500px) {
        display: block;
    }
  }

  .cta_tel {
    width: 3.2rem;
    height: 3.2rem;    
    display: block;
    margin: 1rem 0 0;

    @media screen and (min-width: 400px) {
      margin: 0 0 0 1rem;
    }
  }

  .cta_resp {
    display: flex;
    align-items: center;
    @media screen and (min-width: 500px) {
        display: none;
    }

    & img {
        width: 3.2rem;
        height: 3.2rem;
        object-fit: contain;
    }
  }
}





/* RESPONSIVE */
.menuresponsive {
  display: flex;
  width: calc(100% - 10rem);
  justify-content: flex-end;
  align-items: center;
  padding: 0 1%;
  transition: none;

  @media screen and (min-width: 400px) {
    width: calc(100% - 4.5rem - 13.4rem);
    padding: 0 2%;
  }
  @media screen and (min-width: 500px) {
      width: calc(100% - 18rem - 13.4rem);
  }
  @media screen and (min-width: 1025px) {
      display: none;
  }

  & img {
      width: 4rem;
      height: 4rem;
      aspect-ratio: 1/1;
  }

    
}



/* TOGGLE */
ul.accordion {
    .inner {
        overflow: hidden;
        display: none;
        padding: 1rem 0;
    }
}

.rotate {
  rotate: 180deg;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 100;
    top: 0;
    overflow-x: hidden;
    transition: 0.5s;
    right: 0;
    overflow-y: scroll;

    .closebtn {
        position: absolute;
        top: 2rem;
        color: var(--black);
        font-size: 2.6rem;
        background: var(--white);
        border-radius: 5px;
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: 1;
        right: 2rem;
        z-index: 9;
        background: transparent;
    }

    .flexnav {
        display: flex;
        position: relative;

        .bgcolor {
            position: fixed;
            background-color: rgba(207, 24, 11, 0.8);
            width: 10%;
            min-height: 100vh;
            transition-timing-function: cubic-bezier(1.28, 0.89, 0.32, 0.18);
            left: 0;
            top: 0;
            position: absolute;
            height: 100%;

            @media screen and (min-width: 400px) {
                width: 20%;
            }
        }

        .bgblack {
            background-color: var(--black);
            min-height: 100vh;
            height: 100%;
            padding: 10rem 2rem;
            margin-left: 10%;
            width: 90%;
            padding: 3rem;

            @media screen and (min-width: 400px) {
                margin-left: 20%;
                width: 80%;
            }

            & a {
                font-size: 2rem;
                color: var(--white);
                font-weight: 500;
                text-transform: uppercase;
            }
        }
    }
}

.sidenav {
    .logo-resp {
        margin: 0 0 2rem;

        & img {
            width: 12rem;
            height: auto;
            object-fit: contain;
            aspect-ratio: 1 / 1;
        }
    }
}


#myBtn {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  transition: all 0.3s;
  background: var(--black);
  border-radius: 10rem;
  height: 3.5rem;
  width: 3.5rem;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);

    & img {
        width: 2.5rem;
        height: 2.5rem;
    }

    &.arrow-visible {
        opacity: 1;
        visibility: visible;
    }
}
