/* portfolio in home */

:root {
    --w-star: 100vw;
}

.jelly-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative
}

.jelly {
    width: 70vw;
    height: 70vw;
    bottom: unset;
    position: absolute;
    right: -30vw;
    animation: rotate 3s ease infinite alternate;
    top: 30vh;
}

/* 
.small-jelly {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    animation: up-down 4s ease infinite alternate;

}

@keyframes up-down {
    0% {
        transform: translate(100%, 40%);
    }

    50% {
        transform: translate(100%, -30%);
    }

    100% {
        transform: translate(100%, 40%);
    }
} */

@media only screen and (max-width: 481px) {
    #portfolio {
        width: 100% !important;
        position: absolute;
        height: 50%;
        bottom: 0;
        right: 0;
    }

    .jelly {
        width: 100vw;
        height: 100vw;
    }
}


@media (min-height:1000px) and (max-width: 481px) {
    .jelly {
        width: 100vw;
        height: 100vw;
        bottom: unset;
        top: 0;
        right: -30vw
    }

}

@media only screen and (min-width: 1100px) {
    .jelly {
        width: 50vw;
        height: 50vw;
        right: -10vw;
        left: unset;
    }
}

@media only screen and (min-width: 1500px) {
    .jelly {
        width: 60vw;
        height: 60vw;
        right: -35vw;
        left: unset;
        top: 16vh;
    }
}

/* .portfolio_active .wave {
    width: 0px !important;
    height: 0px !important;
} */

@keyframes rotate {
    0% {
        border-radius: 55% 45% 66% 34% / 53% 59% 41% 47%;
        /* transform: translate(360px, 83%) scale(2) rotate(0); */
    }

    50% {
        border-radius: 45% 55% 36% 64% / 43% 49% 51% 57%;
        /* transform: translate(360px, 83%) scale(2) rotate(90deg); */
    }

    100% {
        border-radius: 55% 45% 66% 34% / 53% 59% 41% 47%;
        /* transform: translate(360px, 83%) scale(2) rotate(0); */
    }
}

/* small hero homepage */
@media only screen and (max-width: 1100px) {
    .scroll-down {
        left: 5%;
    }
}


/* first version */
.portfolio-intro-background {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 600px;
    height: 160px;
}

/* @media (min-height: 600px) {

    a#portfolio-intro {
        top: 12vh;
        height: 50px;
        right: 20vh;
    }
} */



.portfolio-scroll {
    position: absolute;
    top: 80vh;
    right: 10vw;
    z-index: 222;
    display: flex;
    gap: 20px;
    align-items: center;
    color: white;
}

.portfolio-scroll .portfolio-intro-arrow {
    transform: rotate(-90deg);
}

@media (max-width: 681px) {
    .portfolio-scroll {
        display: none;
    }
}
.space-top {
    margin-top: 6rem !important;
}

.padding-top {
    padding-top: 6rem !important;
}

.space-bottom {
    margin-bottom: 6rem !important;
}

.space-all {
    margin: 6rem auto;
}

.portfolio-template-default header {
    /* background: white; */
    background: transparent;
}

.container .subtitle {
    font-weight: 600;
    font-size: 32px;
    line-height: 36px;
}

.container.light .subtitle {
    color: white
}

.container .area-title {
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
}

.container.light .area-title {
    color: white
}

.container.light p {
    color: white;
    line-height: 32px;
}

.portfolio-template-default p {
    font-size: 20px;
    line-height: 32px;
    font-weight: 300;
}

.portfolio-template-default .footer p {
    font-size: 13px;
    line-height: unset;
    font-weight: normal;
}

.top-project-def p {
    color: white;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
}

.portfolio-template-default header .ac-container #main-menu li a {
    color: white !important;
}

.portfolio-template-default header .ac-container #main-menu li::after {
    color: white;
}

.portfolio-template-default header.sticky {
    background: #1E1E1E;
}

.project-bg,
.project-top-bg {
    position: absolute;
    width: 100vw;
    height: 772px;
    left: 0px;
    top: 0px;
    background: #1E1E1E;
    z-index: -1;
}

.row.hero {
    padding-top: 253px;
}

.big-header {
    /* font-family: 'Rubik'; */
    font-weight: 300;
    font-size: 80px;
    line-height: 70px;
    /* commentato per togliere spazio sotto */
    /* min-height: 210px; */
    margin: 0;
    padding-bottom: 10px;
}

.brand {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #727272;
}

.main-img {
    border-radius: 11px;
    margin-top: 100px;
    width: 100%;
}

#main-description h4 {
    font-weight: 600;
    font-size: 32px;
    line-height: 36px;
    display: flex;
    align-items: center;
    color: #616160;
}

/* .focus-project p,
#main-description p {
    line-height: 32px;
}

.focus-project {
    padding-top: 6rem;
    position: relative;
}

.focus-project p, 
.focus-project h3, 
.focus-project a {
    color: white;
} */
#project {
    overflow: hidden;
}

#project #project-picture {
    text-align: center;
    width: 100%;
    height: 100%;
}

#project #project-picture img {
    position: relative;
    top: 1px;
    padding-top: 100px;
    padding-bottom: 100px;
    width: 100%;
    padding-left: 14%;
    padding-right: 14%;
}

#project #project-description {
    background: #fff;
    margin-top: 100px;
    padding-left: 14%;
    padding-right: 14%;
}

#project #project-description h5 {
    color: #add2c8;
    font-weight: bold;
    font-size: 21px;
}


#project #project-description p {
    color: #FFF;
    column-count: 2;
}

#portfolio .portfolio-item .project-top-data h3,
#project #project-top .project-top-data h3 {
    color: #FFF;
    font-size: 40px;
    margin: 0px;
    text-transform: capitalize;
    font-weight: 600;
    font-size: 30px;
    line-height: 36px;
}

.portfolio-template-default #portfolio .portfolio-item .project-top-data h3,
.portfolio-template-default #project #project-top .project-top-data h3 {
    font-weight: 400;
    color: #FFF;
    font-size: 40px;
    margin: 0px;
    text-transform: capitalize;
}

#portfolio .portfolio-item .project-top-data h5,
#project #project-top .project-top-data h5 {
    color: #FFF;
    font-size: 16px;
    font-weight: 300;
    margin: 0px;
    font-size: 15px;
    line-height: 18px;
}

.portfolio-template-default #portfolio .portfolio-item .project-top-data h5,
.portfolio-template-default #project #project-top .project-top-data h5 {
    color: #FFF;
    font-size: 16px;
    font-weight: 300;
    margin: 0px;
}

#project #project-top .project-top-data p {
    margin-top: 40px;
    margin-left: 20%;
    color: #FFF;
    font-size: 19px;
    font-weight: 300;
}

#project #project-top .project-top-data a {
    margin-top: 40px;
    display: inline-block;
    font-weight: bold;
    font-size: 21px;
    color: #FFF;
    text-decoration: none;
    position: relative;
}

#project #project-top .project-top-data a:after {
    content: '';
    width: 40%;
    height: 5px;
    background: #FFF;
    position: absolute;
    bottom: -8px;
    left: 0px;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}

#project #project-top .project-top-data a:hover:after {
    width: 100%;
}

#project #project-top .project-top-data {
    position: absolute;
    max-width: 40%;
    top: 50%;
    left: 28%;
    transform: translate(-50%, -50%);
    text-align: left;
}

.portfolio-template-default #portfolio .portfolio-item .project-top-data {
    position: absolute;
    max-width: 66% !important;
    top: 50%;
    left: -22%;
    transform: translate(-50%, -50%);
    text-align: left;
}

/* marketing */

#marketing,
#web,
#grafica,
#social,
#social-light {
    position: relative;
}

#social {
    overflow: hidden;
}

.bestway-2 #grafica .area-title,
.bestway #grafica .area-title {
    display: none;
}

.bestway #grafica p,
.bestway #grafica .subtitle,
.bestway-2 #grafica p,
.bestway-2 #grafica .subtitle {
    color: white;
}

.sito-img-dx {
    position: absolute;
    bottom: -102px;
    right: 0;
    z-index: -1;
    /* height: 70vh; */
    width: auto;
}

#social h3,
#social p:first-child {
    margin-top: 0;
    margin-bottom: 0;
}

#gallery .gallery-containter {
    display: flex;
    flex-wrap: wrap;
	padding: 0;
}

#gallery .el {
    flex-basis: 33.333333%;
	padding: 5px;
}

#gallery .el img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#gallery .el p {
    margin: 0;
	line-height: 0;
}

#gallery .el.el-25 {
    flex-basis: 25%;
}

#gallery .el video {
    width: 100%;
	height: 100%;
}

#general .general-content {
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* * */
#project-forward {
    position: relative;
    width: 100%;
    min-height: fit-content;
    top: -100px;

    justify-content: space-between;
    align-items: flex-end;
}

#project-next,
#project-previous {
    position: relative;
    width: 45%;
    height: 100%;
    background: white;
    padding: 40px;
    margin: 7rem 0;
}

#project-next {
    text-align: right;
    float: left;
}

#project-previous {
    float: right;
    text-align: left;
}

#project-previous a,
#project-next a {
    text-decoration: none;
    color: #616060;
    font-weight: 600;
    font-size: 32px;
    line-height: 47px;
    color: #3E4043;
}

#project-next:hover a:before {
    right: 50%;
}

#project-previous:hover a:after {
    left: 50%;
}

#project-next a:before {
    content: '';
    width: 127px;
    height: 23px;
    background: url(../images/new-single-arrow-left.png) center center no-repeat;
    position: absolute;
    top: 84%;
    right: 10%;
    transform: rotate(180deg);
    transition: all 1s ease;
}

#project-previous a:after {
    content: '';
    width: 127px;
    height: 23px;
    background: url(../images/new-single-arrow-left.png) center center no-repeat;
    position: absolute;
    top: 84%;
    left: 10%;
    transition: all 1s ease;
}


@media (max-width: 1784px) {
    #project-previous.to-clients {
        margin-top: 9rem;
    }
}

#project-previous.to-clients a {
    color: #616060;
}

#project-previous.to-clients a:after {
    filter: contrast(0.2);
}

.slick-prev {
    left: 15% !important;
    z-index: 222;
    transform: rotate(180degr);
}

.slick-next {
    right: 15% !important;
    z-index: 222;
}

.slick-next:before,
.slick-prev:before {
    content: url(../img/arrow.svg) !important;
    filter: invert(1);
    opacity: 1 !important;
}

button.slick-prev.slick-arrow {
    transform: rotate(0.5turn);
}

.slick-next:before,
.slick-prev:before {
    color: black;
}

.slick-slide img {
    display: block;
    transform: scale(0.8);
    margin: 0 auto;
}

.slick-current img {
    transform: scale(1) !important;
    filter: drop-shadow(0px 4px 50px rgba(0, 0, 0, 0.4))
}

.slick-list {
    overflow: visible !important;
    transition: all 0.5s;
}

.slick-slide {
    transition: all 0.5s;
}

/* Med */
@media only screen and (max-width: 991px) {

    .space-top {
        margin-top: 3rem;
    }

    .padding-top {
        padding-top: 3rem;
    }

    .space-bottom {
        margin-bottom: 3rem;
    }

    .padding-bottom {
        padding-bottom: 3rem;
    }

    .space-all {
        margin: 3rem auto;
    }

    .project-bg {
        height: 700px;
    }

    .order-md-2 {
        order: 2;
    }

    .row.hero {
        margin-top: 130px;
    }

    h3.brand {
        display: none;
    }

    .big-header {
        font-size: 44px;
        line-height: 48px;
    }

    .main-img {
        margin-top: 50px;
    }

    body:not(.habitat-italia-2) .space-mobile-bottom {
        margin-bottom: 25rem;
    }

    .sito-img-dx {
        position: absolute;
        bottom: -21rem;
        right: 0;
        z-index: -1;
        height: unset;
        width: 50vh;
    }

    .social-img-dx {
        position: absolute;
        bottom: -102px;
        left: -30vw;
        z-index: -1;
        width: auto;
        max-width: 50vh;
    }

    .social-img-container {
        min-height: 40vh !important;
    }

    /* pagination */

    #project-forward {
        display: flex;
        gap: 20px;
    }

    #project-next,
    #project-previous {
        position: relative;
        width: 100%;
        height: 100%;
        background: white;
        padding: 40px;
        margin: 1rem 0;
    }

    #project-previous a,
    #project-next a {
        font-size: 22px;
        line-height: 26px;
    }

    /* gallery */
    /* gallery */
    .arlatighislandi .el.e1,
    .arlatighislandi .el.e2,
    .arlatighislandi .el.e3,
    .arlatighislandi .el.e4,
    .arlatighislandi .el.e5,
    .arlatighislandi .el.e6,
    .citylab-cosmetics .el.e1,
    .citylab-cosmetics .el.e2,
    .citylab-cosmetics .el.e3,
    .citylab-cosmetics .el.e4,
    .citylab-cosmetics .el.e5,
    .citylab-cosmetics .el.e6,
    .bestway .el.e1,
    .bestway .el.e2,
    .bestway .el.e3,
    .bestway .el.e4,
    .bestway .el.e5,
    .bestway .el.e6,
    .bestway-2 .el.e1,
    .bestway-2 .el.e2,
    .bestway-2 .el.e3,
    .bestway-2 .el.e4,
    .bestway-2 .el.e5,
    .bestway-2 .el.e6 {
        flex-basis: 50% !important;
    }

    .arlatighislandi .el.e7,
    .arlatighislandi .el.e8,
    .arlatighislandi .el.e9,
    .arlatighislandi .el.e10,
    .bestway .el.e7,
    .bestway .el.e8,
    .bestway .el.e9,
    .bestway-2 .el.e7,
    .bestway-2 .el.e8,
    .bestway-2 .el.e9 {
        display: none;
    }

    .bestway .el.e10,
    .bestway .el.e11,
    .bestway .el.e12,
    .bestway .el.e13,
    .bestway-2 .el.e10,
    .bestway-2 .el.e11,
    .bestway-2 .el.e12,
    .bestway-2 .el.e13 {
        flex-basis: 100% !important;
    }
}

/* X-Small */
@media only screen and (max-width: 576px) {

    .project-bg {
        height: 800px;
    }

    #project-forward {
        top: -50px;
        justify-content: center;
    }

    #project-next,
    #project-previous {
        padding: 10px;
        max-width: 50%;
    }

    #project-previous a,
    #project-next a {
        font-size: 18px;
        line-height: 22px;
    }

    #project-next a:before,
    #project-previous a:after {
        top: 100%;
        width: 112px;
        background-size: contain;
    }

    #project-previous.to-clients {
        margin-top: 0;
    }
}