svg {
    z-index: -1;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

path {
    stroke-linejoin: round;
    stroke-linecap: round;
    fill: none;
}

.hex-num {
    height: 9rem;
    -webkit-transform: rotate(30deg);
    transform: rotate(30deg);
}

.hex-num path,
.hex-slider path {
    stroke: #19a8c3;
}

.hex-num path {
    fill: #19a8c3;
}

.hex-slider path {
    fill: url(#lgrad-slid);
}

.hex-num text {
    -webkit-transform: rotate(-30deg);
    transform: rotate(-30deg);
    fill: #fff;
    color: #fff;
    font-weight: 600;
    font-size: 10rem;
}

.hex-white-stroke,
.hex-white-stroke-static,
.hex-decoration,
.hex-decoration-bottom {
    position: absolute;
}

.hex-white-stroke,
.hex-decoration,
.hex-decoration-bottom {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    will-change: stroke-dashoffset;
}

.hex-white-stroke-static,
.hex-white-stroke path {
    stroke: #fff;
}

.hex-full path {
    fill: #fff;
    fill-opacity: .1 !important;
}

.hex-area-container {
    height: 23rem;
}

#logo-hex {
    position: absolute;
    top: 4.3rem;
    left: 4.6rem;
    height: 14rem;
}

#logo-hex path,
#hex-1-4 path {
    fill: #fff;
}

#hex-1-1 {
    -webkit-transform: rotate(-3deg);
    transform: rotate(-3deg);
    height: 39rem;
    top: -14.3rem;
    left: -12.6rem;
}

#hex-1-2 {
    -webkit-transform: rotate(12deg);
    transform: rotate(12deg);
    height: 16.1rem;
    top: 2.7rem;
    left: 4rem;
    stroke-dasharray: 0;
}

#hex-1-3 {
    height: 19.9rem;
    top: 5.3rem;
    left: 14.4rem;
}

#hex-1-4 {
    height: 10rem;
    top: 25.6rem;
    left: 11.8rem;
}

#hex-1-4 path {
    fill-opacity: 0;
}

#hex-1-5 {
    height: 92rem;
    max-height: 92rem;
    top: -22.1rem;
    left: calc(100% - 67rem);
}

#img-hex {
    -webkit-transform: rotate3d(0, 0, 1, 13deg);
    transform: rotate3d(0, 0, 1, 13deg);
    height: 85rem !important;
    max-height: 85rem;
    top: -6.1rem !important;
    left: calc(100% - 63rem);
    stroke-dasharray: 0;
}

#img-hex path {
    -webkit-transition: opacity 2s linear;
    transition: opacity 2s linear;
}
#first-path {
    fill: url(#img-hex-url);
    opacity: 1;
}
#second-path {
    fill: url(#img-hex-url-2);
    opacity: 0;
}

/* Sesso */
.hex-sex {
    position: absolute;
    display: flex;
    align-items: center;
    width: 16rem;
    height: 16rem;
    z-index: 3;
    pointer-events: bounding-box;
    cursor: pointer;
}
.hex-sex-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hex-sex-contained {
    position: absolute;
    top: 0;
    left: 0;
}

.hex-area {
    position: relative;
    width: 16rem;
    height: 16rem;
    z-index: 3;
    text-align: center;
    cursor: pointer;
    pointer-events: bounding-box;
}

.hex-sex path,
.hex-area path {
    stroke: #000;
    fill: transparent;
    transition: fill .2s linear;
    pointer-events: bounding-box;
}

.hex-sex-selected path,
.hex-area-selected path {
    fill: #50b193;
}

#hex-sex-all {
    top: 10rem;
    left: calc(50% - 29rem);
}

#hex-sex-woman {
    top: 3rem;
    left: calc(50% + 18rem);
}

#hex-sex-man {
    top: 40rem;
    left: calc(50% + 12rem);
}

#sex-ext {
    position: absolute;
    z-index: 3;
    width: 40rem;
    height: 40rem;
    top: 4rem;
    left: calc(50% - 14rem);
    -webkit-transform: rotate(37deg);
    transform: rotate(37deg);
}

#sex-ext path {
    stroke: #000;
}

#sex-int {
    position: absolute;
    z-index: 3;
    width: 34rem;
    height: 34rem;
    top: 7rem;
    left: calc(50% - 11rem);
    -webkit-transform: rotate(22deg);
    transform: rotate(22deg);
}

#sex-int path {
    fill: #50b193;
    stroke: #50b193;
}

.hex-decoration-bottom path {
    stroke: url(#lgrad-bottom);
}

.hex-decoration path {
    stroke: #30b1c9;
}

.hex-decoration-full path {
    fill: #30b1c9;
    /*fill-opacity: .1;*/
    fill-opacity: 0;
    will-change: fill-opacity;
    transition: fill-opacity 4s linear;
}

#hex-2-1 {
    width: 39rem;
    top: 31rem;
    left: -31rem;
}

#hex-2-2 {
    width: 18rem;
    top: 9rem;
    right: -10rem;
    transform: rotate(10deg);
}

#hex-2-3 {
    width: 9rem;
    top: 30rem;
    right: -6rem;
    transform: rotate(42deg);
}

#hex-3-1 {
    width: 15rem;
    top: 27rem;
    left: -10rem;
    transform: rotate(44deg);
}

#hex-3-2 {
    width: 10rem;
    top: 33rem;
    left: 1rem;
    transform: rotate(44deg);
}

#hex-3-3 {
    width: 10rem;
    top: 3rem;
    right: 1rem;
    transform: rotate(44deg);
}

#hex-3-4 {
    width: 7rem;
    top: 10rem;
    left: calc(50% - 8rem);
    transform: rotate(44deg);
}

#hex-3-4 path {
    /*fill-opacity: .05;*/
    stroke-opacity: .2;
}
#hex-4-1 {
    width: 5rem;
    top: -1rem;
    right: 6rem;
    transform: rotate(44deg);
}

#hex-4-2 {
    width: 13rem;
    top: -1rem;
    right: 12rem;
    transform: rotate(48deg);
}
#hex-4-2 path {
    fill-opacity: 0;
    stroke-opacity: .3;
}

#hex-5-1 {
    width: 15rem;
    top: 28rem;
    left: 1rem;
}

#hex-5-2 {
    width: 9rem;
    top: 31.5rem;
    left: 12rem;
}

#hex-5-3 {
    width: 9rem;
    top: 41rem;
    left: -7rem;
}

#hex-5-4 {
    width: 10rem;
    top: -3.5rem;
    right: -1rem;
}

#hex-5-5 {
    width: 5rem;
    top: 3.5rem;
    right: 7rem;
}

#hex-5-6 {
    width: 71rem;
    top: -6.5rem;
    right: -42rem;
    transform: rotate(34deg);
    z-index: -1;
}

/* All the media queries */

/* quadratone con immagine */
@media screen and (max-width: 1800px) {
    #hex-1-5 {
        height: calc(66vw) !important;
        top: -16.1rem;
        left: calc(100% - 30rem);
    }

    #img-hex {
        height: calc(50vw)  !important;
        top: -2.1rem !important;
        left: calc(100% - 29rem);
    }
}

/* Tablet */
@media only screen
and (min-device-width: 481px)
and (max-device-width: 1024px) {
    #hex-1-1 {
        top: -14.3rem;
        left: -14.6rem;
    }

    #logo,
    #hex-1-2 {
        left: 2rem;
    }

    #hex-1-3 {
        left: 12.4rem;
    }

    #logo-hex {
        left: 2.6rem;
    }

    #text-1-1 {
        padding-left: 3.8rem;
    }

    .step-header,
    .step-content {
        margin-left: 2.2rem;
        margin-right: 2.2rem;
    }

    .step-header-text {
        margin-left: 1.5rem;
    }

    .step-header-text h2,
    .step-header-text p {
        font-size: 2.5rem;
    }

    .step-header p {
        line-height: 3.5rem;
    }

    .hex-num {
        height: 5rem;
    }

    #sex-ext {
        width: 31rem;
        height: 31rem;
        top: 4rem;
        left: calc(50% - 14rem);
    }

    #sex-int {
        width: 27rem;
        height: 27rem;
        top: 6.5rem;
        left: calc(50% - 12rem);
    }

    .hex-sex {
        width: 12rem;
    }

    #hex-sex-all {
        top: 5rem;
        left: calc(50% - 25rem);
    }

    #hex-sex-woman {
        top: 0;
        left: calc(50% + 11rem);
    }

    #hex-sex-man {
        top: 29rem;
        left: calc(50% + 9rem);
    }

    .icon-sex {
        height: 7.5rem;
    }

    .icon-sex-big {
        height: 15.5rem;
        top: 12rem;
        left: calc(50% - 13rem);
    }

    .span-sex {
        font-size: 2.2rem;
    }

    #span-sex-all {
        top: 18.4rem;
        left: calc(50% - 22.5rem);
    }

    #span-sex-woman {
        top: 13.4rem;
        left: calc(50% + 14rem);
    }

    #span-sex-man {
        top: 42.4rem;
        left: calc(50% + 12rem);
    }

    .hex-area {
        width: 13rem;
        height: 13rem;
    }

    .icon-area {
        top: 2.5rem;
        height: 7.5rem;
    }

    .hex-area-container {
        height: 20rem;
    }

    .deleteControl button {
        padding: .8rem;
        margin-top: .5rem;
        margin-bottom: 2.5rem;
    }

    #map {
        width: 100vw !important;
        margin: 0 -7rem 0 -7rem;
    }

    .step-content-inner {
        margin-bottom: 5.8rem;
    }

    #container-2 .step-content-inner {
        height: 43.5rem;
    }
    #container-3 .step-content-inner {
        height: 10.5rem;
    }
    #container-4 .step-content-inner {
        /*max-height: 80.5rem;*/
    }
    #span-map-filter {
        margin-left: -3rem;
    }
}

@media only screen
and (min-device-width: 481px)
and (max-device-width: 1024px)
and (orientation: landscape) {
    #hex-1-4 {
        display: none;
    }

    .step-header-text p {
        font-size: 2.3rem;
    }

    #hex-1-5 {
        height: 67rem;
        top: -13.1rem;
        left: calc(100% - 44rem);
    }

    #img-hex {
        height: 60rem !important;
        top: -0.1rem !important;
        left: calc(100% - 42rem);
    }
}

/* all the other smartphones */
@media only screen
and (min-device-width: 1px)
and (max-device-width: 736px) {
    html {
        font-size: 31%;
    }

    #hex-1-1 {
        height: 37rem;
    }

    #hex-1-2 {
        left: 3rem;
    }

    #hex-1-3 {
        left: 11.4rem;
    }

    #hex-1-5 {
        height: 48rem;
        top: -13.1rem;
        left: calc(100% - 24rem);
    }

    #img-hex {
        height: 40rem !important;
        top: -3.1rem !important;
        left: calc(100% - 22rem);
    }

    #logo-hex {
        position: absolute;
        top: 3rem;
        left: 3.6rem;
    }

    #logo {
        top: 4.2rem;
        left: 3.6rem;
        height: 12rem;
    }

    .step-header,
    .step-content {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }

    .step-header-text h2 {
        margin-top: 1.5rem;
    }

    .p-highlight,
    .step-header p {
        line-height: 5rem;
    }

    .hex-num text {
        font-size: 20rem;
    }

    .hex-sex,
    .hex-area {
        width: 13rem;
        height: 13rem;
        z-index: 4;
    }

    .icon-sex,
    .icon-area {
        height: 8rem;
        z-index: 4;
        top: 2rem;
    }

    .icon-sex-big {
        height: 15.5rem;
        top: 12rem;
        left: 53%;
        transform: translateX(-50%);
    }

    .span-sex {
        font-size: 2.8rem;
    }

    #hex-sex-all {
        top: 7rem;
        left: calc(50% - 25rem);
    }

    #hex-sex-woman {
        top: 0;
        left: calc(50% + 10rem);
    }


    #hex-sex-man {
        top: 30rem;
        left: calc(50% + 5rem);
    }

    #sex-ext {
        width: 30rem;
        height: 30rem;
        left: calc(50% - 13rem);
    }

    #sex-int {
        width: 25rem;
        height: 25rem;
        left: calc(50% - 11rem);
    }

    #span-sex-man {
        top: 43.5rem;
        left: calc(50% + 8rem);
    }

    #span-sex-woman {
        top: 14rem;
        left: calc(50% + 14rem);
    }

    #span-sex-all {
        top: 20.5rem;
        left: calc(50% - 22.2rem);
    }

    #container-2 .step-content-inner {
        height: 48.5rem;
    }
    #container-3 .step-content-inner {
        height: 10.5rem;
    }
    #container-4 .step-content-inner {
        max-height: none;
    }

    #counter {
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }

    #counter span:last-child {
        line-height: 2rem;
    }

    .span-map {
        display: flex;
        flex-direction: column;
        font-size: 2.5rem;
    }

    .span-map span:after {
        content: '';
    }

    #span-map-filter {
        margin-left: 0;
    }

    .err_box,
    .p-highlight {
        font-size: 3rem;
    }

    .p-highlight {
        margin-top: 0;
    }

    .autocomplete-container {
        flex-direction: column;
        align-items: center;
    }

    .flex-column {
        width: 100%;
    }

    .span-area {
        font-size: 2.5rem;
        padding: 3rem 0 0 0;
    }

    .pureAutocomplete input,
    .autocomplete-list-element,
    .pureAutocomplete-element {
        font-size: 3.5rem !important;
    }
    .pureAutocomplete-element {
        padding: 2rem 1rem !important;
    }

    #map {
        width: 100vw !important;
        margin: 0 -7rem 0 -6.6rem;
    }

    .autocomplete-list-element img {
        width: 4.6rem !important;
        height: 4rem !important;
    }
}

@media only screen
and (min-device-width: 1px)
and (max-device-width: 736px)
and (orientation: landscape){
    #hex-1-5 {
        height: 52rem;
        top: -13.1rem;
        left: calc(100% - 28rem);
    }

    #img-hex {
        height: 43rem !important;
        top: -0.1rem !important;
        left: calc(100% - 25rem);
    }
    .p-highlight {
        margin-top: 2rem;
    }
}
