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

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

  & a {
    gap: 5px;
  }

    .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: 1.5rem 0;
        background-color: transparent;
        border-radius: 5px;
        min-width: 20rem;
        /* translate: -50% 0; */

        & a {
            line-height: 1.2;
            padding: 0 1rem 1.5rem!important;

            @media screen and (min-width:1356px) {
                padding: 0 2rem 1.5rem!important;
            }

            &:hover {
                color: var(--verde-acceso);
                translate: 8px 0;
            }
        }
    }
}

.lingue {
    .dropdown {
        .dropdown-content {
            min-width: inherit;
        }
    }
}

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


/* RESPONSIVE */
.menuresponsive {
  display: flex;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 6rem;
  justify-content: flex-end;
  align-items: center;

  @media screen and (min-width:331px) {
      padding: 0 0 1rem;
  }
    @media screen and (min-width: 1171px) {
        display: none;
    }

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

    
}



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

.toggle {
    cursor: pointer;
}

.chevron {
    transition: all .3s;
}

.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;
        border: 0;
        padding: 0;
        cursor: pointer;
        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(51, 154, 63, 0.85);
            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:501px) {
               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:501px) {
               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: 20rem;
            height: auto;
            object-fit: contain;
            aspect-ratio: 240 / 54;
            max-width: 100%;

            @media screen and (min-width:501px) {
               width: 24rem;
            }
        }
    }
}


#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;
    }
}


.fascia_menu {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    margin: 0 auto;
    padding: 3rem 0 30%;
    background: #081A0A;
    background: -webkit-linear-gradient(0deg, rgba(8, 26, 10, 0) 0%, rgba(8, 26, 10, 1) 100%);
    background: -moz-linear-gradient(0deg, rgba(8, 26, 10, 0) 0%, rgba(8, 26, 10, 1) 100%);
    background: linear-gradient(0deg, rgba(8, 26, 10, 0) 0%, rgba(8, 26, 10, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#081A0A", endColorstr="#081A0A", GradientType=0);

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

    .container {
        max-width: 180rem;
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .border {
        border-bottom: 1px solid var(--verde);
        width: calc(100% - 20rem - 2rem);
        height: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;

        @media screen and (min-width:331px) {
            width: calc(100% - 24rem - 2rem);
        }
        @media screen and (min-width:1251px) {
            width: calc(100% - 28rem - 2rem);
        }
    }

    & nav.menu {
        width: calc(100% - 7rem - 8rem);
        display: none;

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

        & ul:not(.sub-nav) {
            display: flex;
            flex-wrap: wrap;
            height: 100%;
            justify-content: flex-end;

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

                & a {
                    display: flex;
                    align-items: center;
                    height: 100%;
                    padding: 1.5rem 1rem;
                    font-weight: 500;
                    text-transform: uppercase;

                    &:hover, &.active {
                        color: var(--verde-acceso);
                    }

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

        &.lingue {
            width: 7rem;
            display: block;
            position: absolute;
            right: 0;
            top: 7rem;

            @media screen and (min-width:331px) {
                top: 8rem;
            }
            @media screen and (min-width:411px) {
                position: relative;
                top: 0;
            }
        }
    }

    .cta_wrap {
        display: none;

        @media screen and (min-width:501px) {
            display: flex;
            align-items: center;
        }
    }
    .cta {
        padding: 6px 15px;
        border: 1px solid var(--white);
        border-radius: 2rem;
        display: inline-block;
        line-height: 1;
        transition: all 0.3s;

        &:hover {
            translate: 0 -8px;
        }
    }
    
    .logo_wrap {
        display: flex;
        align-items: flex-end;
    }

    .logo {
        width: 20rem;
        height: auto;
        aspect-ratio: 280 / 55;
        object-fit: contain;
        max-width: 100%;

        @media screen and (min-width:331px) {
            width: 24rem;
        }
        @media screen and (min-width:1251px) {
            width: 28rem;
        }
    }
}
