/* @author: Damià Llaurador Borràs */
/* @data: 11/09/2021               */
/* damia@larrelstudio.com          */

body {
    margin: 0;
}
html {
    scroll-behavior: smooth;
}
/*nav*/

nav {
    position: sticky;
    top: 0;
    z-index: 10;

    width: 100%;
    height: auto;
    background-color: white;
    border-bottom: 0.085em solid black;
}

.tnav {
    position: relative;
    padding: 1vw;
    margin: 0;
    top: 0;
    font-family: "cabinet-extrabold";
    font-weight: normal;
    left: 0;
    margin-left: 15px;
    font-size: 1.5rem;
    z-index: 10;
    width: max-content;
}

.cntnav > a {
    text-decoration: none;
    color: black;
}
.mnav,
.mnav2 {
    position: absolute;
    width: 50%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.mnav {
    display: flex;
}
.mnav2 {
    display: none;
}


.mord:hover{
    font-weight: 800;
    font-family: 'cabinet-extrabold';
    transition: 300ms all;
}

nav h2 {
    cursor: pointer;
    padding: 10px;
    right: 0;
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
    width: 33%;
    font-size: 2vw;
    position: relative;
}

h2 a {
    text-decoration: none;
    color: black;
    padding: 2vw;
    font-family: "Lato";
    font-weight: lighter;
    font-size: 1.2rem;
}

section {
    position: relative;
    top: -2vw;
}
/*secció 1*/
.s1,
.s3,
.s4,
.s5 {
    position: relative;
    display: block;
    height: min-content;
    overflow: hidden;
}

.s1 {
    height: 45vw;
}

/*ss*/
.s1 > img,
.s3 > img {
    position: relative;
    width: 50%;
    z-index: -1;
}

.s1 > img {
    top: 0.65vw;
    margin-left: 50%;
    border-left: 0.085em solid black;
}

.s11 {
    width: 50%;
    position: absolute;
    margin-left: 30px;
    bottom: 0;
}

.tweb {
    width: min-content;
    font-size: 11vw;
    margin-bottom: 4vw;
    font-family: "cabinet-extrabold";
    font-weight: 900;
    line-height: 10vw;
}

/*s2*/

.s2 {
    border-top: 0.085em solid black;
    border-bottom: 0.085em solid black;
    position: relative;
    display: block;
    height: 20vw;
}

.fg {
    position: relative;
    text-align: center;
    top: 50%;
    width: 40%;
    font-family: "cabinet-extrabold";
    font-weight: 700;
    transform: translateY(-50%);
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    font-size: 3vw;
}

.fga {
    font-weight: bold;
    font-size: 2.6vw;
}

/*s3*/

.s3 > img {
    position: relative;
    margin-bottom: -1vw;
}
.s31 {
    position: absolute;
    left: 50%;
    margin-left: 4vw;
    top: 0;
    width: 40%;
    font-family: "Lato";
}
.s31 > p {
    font-size: 1.2rem;
    margin-top: 3vw;
}

.s31 p a{
    color: black;
    
}

/*s4*/
.s4,
.ss4 {
    border-top: 0.085em solid black;
}

.s41,
.ss41 {
    width: 50%;
    margin: 0;
    position: relative;
    margin-top: 30px;
    display: inline-flex;
}

.s42,
.ss42 {
    float: right;

    margin: 0;
    margin-top: 30px;
}

.s42 {
    width: 50%;
}

.ss42 {
    width: 49%;
}
.s411,
.s511,
.s611 {
    margin-left: 4vw;
    width: 80%;
}

.s411 {
    border-top: 0.085em solid black;
    border-bottom: 0.085em solid black;
    margin-bottom: 4vw;
}
.s411 > h3 {
    font-size: 1.2rem;
    font-family: "Lato";
    font-weight: lighter;
}

.s511 > h4,
.s611 > a,
.s611 > a > h4 {
    font-size: 1.5vw;
    font-family: "Lato";
    font-weight: lighter;
    text-decoration: none;
    color: black;
}

/*s5*/
.s5 {
    border-bottom: 0.085em solid black;
    border-top: 0.085em solid black;
}

.s5 > h3 {
    font-family: "cabinet";
    font-weight: normal;

    margin-left: 4vw;
    font-size: 1.4rem;
}

/*s6*/

.s6 {
    margin-top: 8vw;
    position: relative;
    height: auto;
    display: grid;
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 8vw;
    grid-template-columns: repeat(12, 1fr);
}
.s6 > div {
    cursor: pointer;

    position: relative;
}

.tx {
    position: absolute;
    z-index: 0;
    width: 80%;
    height: 80%;
    background-color: #ffffffeb;
    text-align: center;

    top: 2.5vw;
    left: 50%;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s ease;

    transform: translateX(-50%);
}

.s6 > div:hover > .tx {
    visibility: visible;
    opacity: 1;
}
.s6 > div:hover > img {
    border: 0.085em solid black;
}
.tx > h3 {
    /*border-bottom: 1px solid black;*/
    position: relative;
    top: 40%;
    z-index: 0;
    margin-left: auto;
    font-family: "Lato";
    font-weight: lighter;
    transform: translateY(-50%);
    width: 90%;
    margin-right: auto;
}
.pi {
    width: 100%;
    height: auto;
}
.one {
    grid-column: 2 / 6;
    grid-row: 1/2;
}
.two {
    margin-top: 9vw;
    grid-column: 8 / 12;
    grid-row: 3/4;
}
.three {
    margin-top: 9vw;
    grid-column: 3/7;
    grid-row: 5/6;
}

.four {
    grid-column: 1/6;
    grid-row: 1/2;
}
.seven {
    margin-top: 9vw;
    grid-column: 7/12;
}

.five {
    grid-column: 8/12;
    grid-row: 1/2;
}
.six {
    margin-top: -9vw;
    grid-column: 2 / 6;
    grid-row: 3/4;
}
.seven {
    grid-row: 5/6;
}

.eight {
    margin-top: -7vw;
    grid-column: 1 / 5;
    grid-row: 7/9;
}

.nine {
    margin-top: 9vw;
    grid-column: 2/6;
    grid-row: 3/4;
}

.ten {
    grid-column: 5/9;
    grid-row: 1/2;
}
.eleven {
    grid-column: 1/7;
    grid-row: 3/4;
    margin-top: 14vw;
}

.twelf {
    grid-column: 8/12;
    grid-row: 5/6;
    margin-top: -11vw;
}

.thirteen {
    grid-column: 8/12;
    grid-row: 7/8;
    margin-top: 14vw;
}

.fourteen {
    grid-column: 1 / 5;
    grid-row: 1/2;
}
.fiveteen {
    margin-top: 11vw;
    grid-column: 7 / 13;
    grid-row: 3/4;
}
.sixteen {
    margin-top: 9vw;
    grid-column: 2/6;
    grid-row: 5/6;
}

.seventeen {
    margin-top: 9vw;
    grid-column: 7/11;
    grid-row: 7/9;
}

.eighteen {
    grid-column: 1/7;
    grid-row: 1/2;
}
.nineteen {
    grid-column: 8/12;
    grid-row: 3/4;
    margin-top: 11vw;
}

.twenty {
    grid-column: 1/5;
    grid-row: 5/6;
    margin-top: -6vw;
}

/*s7*/

.s412 {
    margin-left: 10%;
}
.ss41,
.ss42 {
    margin: 0;
}
.ss42 {
    border-left: 0.085em solid black;
}

.ss4 {
    border-bottom: 0.085em solid black;
}

.s412 > a {
    text-decoration: none;
}

/*s7*/
.s7 {
    position: fixed;
    background-color: white;
    z-index: 11;
    width: 100%;
    display: none;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.s71 {
    position: relative;
    box-shadow: 12px 12px 20px 2px grey;
    top: 50%;
    z-index: 100;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;

    background-color: white;
}
.s7 > h3 {
    position: relative;
    margin: 0;
    text-align: center;

    font-size: 6vw;
}

.s711 {
    position: relative;
    left: 0;
    height: 100%;
    width: min-content;
    overflow: hidden;
    float: left;
    border-right: 0.085em solid black;
}

.s711 > img {
    position: relative;
    top: 0;
    left: 0;
    height: 100%;
}
#tit {
    font-family: "cabinet";
    width: 80%;
    font-weight: lighter;
}
#tit2 {
    font-family: "cabinet";

    font-weight: lighter;
}
.cntcross {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.cross {
    position: absolute;
    top: 2vw;
    right: 2vw;
    cursor: pointer;
    z-index: 100000;
    width: 3%;
    height: auto;
}
/*transicio fotos*/

.itcnt {
    position: absolute;
    height: 0.6vw;

    left: 50%;

    bottom: 3vw;
    transform: translateX(-50%);
    overflow: hidden;
}

.itcnt2 {
    position: relative;
    display: flex;
    margin: 0;
}

.itcnt2 > img {
    position: relative;
    transition: 600ms all;
    width: 0.6vw;
    margin: 0;
    margin-left: 0.085em;
    margin-right: 0.085em;
    height: 0.6vw;
}

.s712 {
    position: relative;
    display: grid;
}
.s7121 > h3 {
    position: relative;
    margin-left: 2vw;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 2vw;
    padding-bottom: 2vw;
    font-size: 3vw;
}

.s7121 {
    position: relative;
    width: 100%;
    border-bottom: 0.085em solid black;
}

.s712 > p {
    font-family: "Lato";
    font-weight: lighter;
    margin-left: 2vw;
    margin-right: 2vw;
    text-align: inherit;
    font-size: 2vw;
}

#lt {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
}

#lt > img,
#rt > img {
    height: 3vw;
    position: absolute;
    top: 50%;

    transition: ease 300ms all;
    transform: translateY(-50%);
}
#lt:hover > img {
    left: 0.5vw;
}
#lt > img {
    left: 1.5vw;
}
#rt > img {
    right: 1.5vw;
}
#rt:hover > img {
    right: 0.5vw;
}

#rt {
    position: absolute;
    top: 0;
    margin-left: 50%;
    width: 50%;
    height: 100%;
}

#tit,
#tex {
    display: block;
}
#tit2,
#tex2 {
    display: none;
}

.titoltrans {
    font-weight: normal;
    color: black;
    margin: 0;
    font-family: "cabinet-extrabold";
    font-size: 8vw;
}

/*animations*/

.reveal,
.reveal4,
.tx.reveal5 {
    position: relative;
    transform: translateX(-4vw);

    visibility: hidden;
    opacity: 0;
}

.reveal {
    transition: visibility 0.2s, opacity 0.2s ease, transform 300ms;
}

.reveal4 {
    transition: visibility 0.3s, opacity 0.3s ease, transform 500ms;
}
.reveal.active,
.reveal4.active {
    position: relative;
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.reveal3 {
    position: relative;
    transform: translateX(-6vw);

    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s ease, transform 1s;
}
.reveal3.active {
    position: relative;
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}
.reveal2 {
    position: relative;
    transform: translateX(6vw);

    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s ease, transform 400ms;
}
.reveal2.active {
    position: relative;
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}
.lol {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: white;
    left: 0;
    top: 0;
    overflow: hidden;
}

.cnt-tit {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 100%;
    animation: transicio;
    animation-duration: 4s;
    border-left: 0.085em solid black;
    background-color: white;
}
.tit-cnt {
    position: relative;
    width: min-content;
    margin-left: auto;
    margin-right: auto;
    top: 20%;
    overflow: hidden;
}

@keyframes transicio {
    0% {
        left: 0;
    }
    5% {
        border-left: 0.085em solid rgb(255, 255, 255);
    }

    20% {
        border-left: 0.085em solid black;
    }

    35% {
        border-left: 0.085em solid rgb(255, 255, 255);
    }

    50% {
        border-left: 0.085em solid black;
    }

    65% {
        border-left: 0.085em solid rgb(255, 255, 255);
    }
    70% {
        border-left: 0.085em solid black;
    }

    100% {
        left: 100%;
        border-left: 0.085em solid rgb(255, 255, 255);
    }
}

.arrelcopi {
    position: relative;
    width: 10vw;
    left: 50%;
    padding-top: 3vw;
    padding-bottom: 3vw;
    transform: translateX(-50%);
}

.arrelref {
    text-align: center;
    color: black;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3vw;
    margin-bottom: 3vw;
    width: max-content;
    text-decoration: none;
    font-size: 1.5vw;
    font-family: 'Lato';
    display: inline-flex;
}

.arrelref2{
    font-weight: 600;
    margin: 0;
    font-family: 'Lato';
    display: inline-flex;
}

.f-flex{
    display: flex;
}
@media (max-width:700px) {
    .titoltrans {
        font-size: 14vw;
    }
    .tit-cnt{
        top: 35%;
    }
    .cross {
        width: 9%;
        position: fixed;
        padding-left: 6vw;
        padding-bottom: 6vw;
        top: 3.8vw;
        right: 3.8vw;
    }
    .s6 {
        display: block;
    }

    .s6 > div {
        margin-top: 9vw;
    }

    .tnav {
        margin-left: auto;
        margin-right: auto;
        font-size: 7vw;
    }
    .mnav {
        display: none;
    }

    .tx {
        display: none;
    }

    .s1 > img,
    .s3 > img {
        position: relative;
        width: 100%;
        z-index: -1;
    }
    .s1 > img {
        margin-left: 0;
        border: 0;
        top: 50vw;
    }
    .fg {
        font-size: 5.1vw;
        width: 70%;
    }
    .s11 {
        width: 100%;
        margin-left: 0;
    }

    .s1 {
        top: 0.2vw;
    }
    .s31 p a{
        color: white;
        
    }
    .mecnt,
    .mec,
    .me {
        transition: ease 600ms all;
        border-top: 0.085em solid black;

        z-index: 10;
    }
    .mecc {
        z-index: 100;
        padding: 3vw;
        top: 0;
        left: 0;
        cursor: pointer;
    }
    .mecnt,
    .mecc {
        position: absolute;
        left: 3vw;
        width: 9vw;
        height: 4.5vw;
        top: 2.6vw;
    }
    .fga {
        font-size: 4.5vw;
    }
    .mec {
        position: absolute;
        width: 100%;
        height: 50%;
        bottom: 0;
    }
    .me {
        position: absolute;
        width: 100%;
        height: 1%;

        bottom: 0;
    }
    nav h2 {
        margin-left: auto;
        margin-right: auto;
        font-size: 3vw;
        padding: 4vw;
    }
    .s42,
    .ss42 {
        float: unset;
    }
    .ss42 {
        border-top: 0.085em solid rgb(0, 0, 0);
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        border-left: none;
    }
    .s611 {
        display: flex;
        width: 100%;
    }
    .s611 > a {
        width: 33%;
        text-align: center;
        font-size: 3vw;
    }
    .s611 .s411,
    .s611 {
        margin-left: auto;
        margin-right: auto;
    }
    .s41,
    .s42,
    .ss41 {
        width: 100%;
        text-align: center;
    }
    .s411 > h3 {
        font-size: 6vw;
    }
    .s41 .s411 {
        border-bottom: unset;
        margin-bottom: unset;
    }

    .s42 .s411 {
        border-top: unset;
        margin-top: -6vw;
    }
    .s42 {
        margin-top: unset;
    }
    .s31 {
        left: 4vw;
        bottom: 4vw;
        width: 50%;
        top: unset;
    }
    .s31 > p {
        color: white;
        font-size: 3.5vw;
    }
    .s511 {
        margin-left: auto;
        margin-right: auto;
    }
    .s511 > h4 {
        font-size: 4vw;
        font-family: "Lato";
        font-weight: lighter;
    }

    .cnt-dibuix {
        margin-left: 0;
        border-top: 0.085em solid black;
        border-left: unset;
        width: 100%;
        bottom: 0;
    }
    .s1 {
        height: 146vw;
    }

    .s11 {
        bottom: unset;
        top: 0;
    }
    @keyframes d1 {
        0% {
            background-color: white;
        }
        25% {
            background-color: #f1ecc5;
        }
        50% {
            background-image: linear-gradient(to bottom left, #f1ecc5, #e4da9b);
        }
        75% {
            background-image: linear-gradient(to bottom, #f1ecc5, #e4da9b);
        }
        100% {
            background-image: linear-gradient(to right, #f1ecc5, #e4da9b);
        }
    }
    .arrelref2, .arrelref{
        font-size: 3vw;
    }

    .mord:hover{
        
    }
    .tweb {
        background-color: white;
        padding: 5vw;
        padding-top: 13vw;
        padding-right: 60vw;
        width: min-content;
        text-align: inherit;
        border-bottom: 0.2vw solid black;
        margin-top: 0;
        font-size: 20vw;
        line-height: 18vw;
    }

    .s411 {
        margin-left: auto;
        margin-right: auto;
    }
    .s7 {
        overflow: auto;
    }
    .s712 {
        width: unset;
        z-index: 1;
    }
    .s711 {
        width: 100%;
        height: unset;
        margin-left: auto;
        margin-right: auto;
        float: unset;

        z-index: 2;
        border-right: unset;
    }

    .s711 > img {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        height: auto;
    }
    .s712 {
        position: relative;
        width: 100%;
        left: 50%;
        transform: translateX(-50%);

        display: block;
    }

    #tit2 {
        padding-bottom: 3vw;
        margin-top: 3vw;
        margin-bottom: 1.5vw;

        width: 80%;
        font-size: 7vw;
        margin-left: 9vw;
        margin-right: 9vw;
    }
    .s7121 {
        display: none;
    }
    #lt > img,
    #rt > img {
        height: 10vw;
    }
    .s7121 > h3 {
        text-align: center;
        border-top: unset;
        font-size: 6vw;
    }
    h2 a {
        font-size: 4.5vw;
    }

    .s712 > p {
        font-size: 5vw;
    }
    .itcnt {
        height: 2.5vw;
    }
    .itcnt2 > img {
        width: 2.5vw;
        height: 2.5vw;
    }
    .s5 > h3 {
        font-size: 4.7vw;
        margin-top: 5vw;
    }
    #tit,
    #tex {
        display: none;
    }
    #tit2,
    #tex2 {
        display: block;
    }
    #tit2 {
        font-size: 10vw;
        width: 80%;
        text-align: inherit;
    }

    .s611 > a > h4 {
        font-size: 3vw;
    }
    .s7 > p {
        position: absolute;
        bottom: 4vw;
    }
    #tex2 {
        font-family: "Lato";
        font-weight: lighter;
        margin-left: 4vw;
        margin-right: 9vw;
        text-align: inherit;
        font-size: 4vw;
        position: initial;
    }
    .s2 {
        height: 30vw;
    }
    .arrelcopi {
        width: 20vw;
    }
}
