


:root {
    --sinSerif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    --Nhexa: 4;
    --gap: 2vw;
    --size: calc(calc(100vw / var(--Nhexa)) - var(--gap));
}

@media only screen and (min-width: 1100px) {
    :root {
        --Nhexa: 6;
    }
}

@media only screen and (max-width: 600px) {
    :root {
        --Nhexa: 2;
    }


}




.sectioncan {
    margin: calc(var(--size) * .5) auto 0;
    width: calc(var(--size) * calc(var(--Nhexa) - 1));
    display: grid;
    grid-template-columns: repeat(var(--Nhexa), 1fr);
    grid-gap: var(--gap);
}

article {
    background: cadetblue;
    width: var(--size);
    height: calc(var(--size) / 1.1111111);
    -webkit-clip-path: url(#hexagono);
    clip-path: url(#hexagono);
    -webkit-clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    margin-right: calc(var(--size) / 2);
    color: #fff;
    overflow: hidden;
}

    article:nth-child(2n) {
        margin: calc(var(--size) * -.5) calc(var(--size) * -.25) 0 calc(var(--size) * -.75);
    }

    article::before {
        content: '';
        float: left;
        width: 25%;
        height: 100%;
        -webkit-clip-path: polygon(0% 0%, 100% 0%, 0% 50%, 100% 100%, 0% 100%);
        clip-path: polygon(0% 0%, 100% 0%, 0% 50%, 100% 100%, 0% 100%);
        shape-outside: polygon(0% 0%, 100% 0%, 0% 50%, 100% 100%, 0% 100%);
    }

.hex {
    width: var(--size);
    height: var(--size);
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transform-origin: 0% 50%;
    transform-origin: 0% 50%;
    -webkit-transition: .75s;
    transition: .75s;
    -webkit-clip-path: url(#hexagono);
    clip-path: url(#hexagono);
    -webkit-clip-path: inherit;
    clip-path: inherit;
    z-index: 10;
}

article:hover .hex {
    -webkit-transform: translate(-50%, -50%) rotate(-110deg);
    transform: translate(-50%, -50%) rotate(-110deg);
}



figure {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    flex-wrap: nowrap;
    -webkit-box-pack: center;
    justify-content: center;
    max-width: 50%;
    height: 100%;
    font-size: calc(9 / var(--Nhexa) * 1vw);

    color: #fff;
    -webkit-transition: .75s .05s;
    transition: .75s .05s;
    text-align: center;
}

    figure p {
        font-size: 70%;
        line-height: 1.2;
        width: 100%;
    }



.pcan {
    font-size: 4.5rem;
    padding-top: 84%;
    font-weight: 200;
}
