@import url("https://use.typekit.net/eeo6kyu.css");


:root {
    --status-true: #5cff93;
    --status-false: #dddddd;
    --status-active: #000000;
    --bg-button: #F2F2F2;
    --text-color: #000;
    --recap-color: #E8FBDC;
    --text-color: #333;

}


html, body {
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 300;
}

sub {
    letter-spacing: 0.5px;
}

#action_buttons {

    top: unset;
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    width: 80%;
}

/*.button {*/
/*    font-weight: 400;*/
/*    background-color: white;*/
/*    color: black;*/
/*    border: solid 1px black;*/
/*    text-transform: none;*/
/*    font-size: 18px;*/
/*}*/

/*.button:hover {*/
/*    background-color: black;*/
/*    color: white;*/
/*    border: solid 1px black;*/
/*}*/
.wall, .ceiling {
    display: flex;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    padding: 0.5em 1em;
    color: var(--text-color);
    border: unset;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    background: var(--bg-button);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
    text-transform: none;
    opacity: 1;
    user-select: none;
}

.button:hover {
    background-color: black;
    color: white;
    /*border: solid 1px black;*/
}


#configurator {
    border: solid 1px #eee;
}

#config_sidebar {
    background-color: #FFF;
    color: var(--text-color);
}


.panel,
.fixed_panel {
    border-color: #333 !important;
}

#panel_modello.panel p i {
    display: inline-block;
    margin: 0 auto 5px;
    font-style: normal;
    vertical-align: middle;
}

#action_buttons button {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    background-color: unset;
    padding: 1em;
}


#funnel.open {
    background: #dddddd;
    width: 100%;
    height: 90%;
    top: 0;
    transform: translate(0, 0);
    left: 0;
    display: flex;
    align-content: space-around;
    flex-direction: column;
    /*flex-wrap: wrap;*/
    justify-content: space-between;
    border-bottom: solid 1px #000;

    gap: 2em;

    .title {
        /*font-size: 2em;*/
        font-size: clamp(1.059rem, 1.736vw, 1.471rem);

        /*font-size: clamp(1.125rem, 1.302vw, 1.563rem);*/

    }

    .funnel-header {
        display: flex;
        width: 100%;
        gap: 2em;
        justify-self: flex-start;
        flex-direction: row;
        justify-content: center;

        #logo_brand {
            position: unset;
            align-self: flex-start;
        }

        .tab-title {
            /*font-weight: var(--boldsize);*/
            font-weight: 600;
            font-size: 2em;
            font-size: clamp(1.125rem, 1.302vw, 2.000rem);
            position: absolute;
            left: 2vh;

        }
    }


    .funnel-body {
        overflow-y: auto;
        height: 80%;
        scrollbar-width: none;
        /*padding: 2vh;*/

        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
    }


    .step {
        display: none;
        height: 90%;

        &.selected {
            display: flex;
            width: 100%;
            flex-direction: column;
            gap: 0.5em;
            justify-content: space-evenly

        }


        .step-options {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            padding: 2vh;
            gap: 1em 2em;


            .item {
                display: flex;
                flex-direction: column;
                flex-wrap: wrap;
                justify-content: flex-start;
                align-content: center;
                flex-basis: fit-content;
                /*gap:1.5em;*/
                /*align-items: flex-start;*/
                align-items: center;
                font-size: 1.2em;

                opacity: 0.6;

                &.collezione {
                    opacity: 1;
                    font-size: 1.2em;
                    &.selected {
                        font-weight: var(--boldsize);

                        .item-image {
                            border: solid 1px var(--maincolor);
                            background-color: rgba(29, 29, 27, 0);
                            box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.07);
                            /*border: none;*/
                        }
                    }
                }

                .num-vie & {
                    text-transform: capitalize;
                    /*flex-basis: 10%;*/
                    align-items: center;


                }

                /*flex-basis: 33.3%;*/
                /*width: 33.3%;*/

                .item-image {
                    width: clamp(5.8rem, 7vw, 9rem);
                    min-width: unset;
                    max-width: 9rem;
                    aspect-ratio: 1 / 1;
                    border-radius: 8px;
                    border: solid 1px #c7c7c7;
                    background-color: transparent;
                    background-position: center center;
                    background-size: contain;
                    background-repeat: no-repeat;
                    transform: none;
                    margin-bottom: 1rem;


                    .collezione & {
                        border-radius: 8px;
                        background-size: cover;
                        transform: unset;
                        aspect-ratio: 1;


                    }

                }


                &.collezione {


                    flex-basis: 10%;
                    align-items: center;
                    gap: 0.5em;
                    padding: 0;


                }


                &.selected {
                    opacity: 1;

                    font-weight: var(--boldsize);
                    /*&.collezione {*/
                    /*    background-color: rgba(29, 29, 27, 0); !* equivalente di fill: trasparente *!*/
                    /*    box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.07);*/
                    /*}*/

                    .item-image {
                        background-color: rgba(29, 29, 27, 0); /* equivalente di fill: trasparente */
                        box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.07);
                        border: solid 1px var(--maincolor);
                    }

                }


            }
        }
    }

    .funnel-footer {

        #funnel.is-auto-advance-step & > * {
            visibility: hidden;
            pointer-events: none;
        }

        .next-step {
            margin-left: 1em;
        }

        p {
            margin: 0;
            display: inline-block;
        }

        .description-selected {
            font-weight: var(--boldsize);
        }
    }
}


#recap-container {
    position: absolute;
    bottom: 10vh;
    left: 1vh;
    z-index: 25;

    #recap-button {

        background: var(--recap-color);
        margin: 1em 0;

        &:hover {
            background: #53ff6a;
            color: #000;
        }
    }

    #recap-body {
        display: none;
        width: 200%;

        * {
            transition: all 0.6s ease;
        }

        .recap-body-container {
            display: none;

            &.visible {
                display: block;
            }
        }

        .closex:hover {
            background: unset;
            font-weight: var(--boldsize);

        }

        &.open {
            position: relative;
            background: var(--recap-color);
            color: #000000;
            /*width: auto;*/
            height: min-content;
            padding: 2vh;
            z-index: 25;
            display: flex;
            align-content: center;
            align-content: flex-start;
            flex-direction: column;
            flex-wrap: wrap;
            justify-content: center;
            border-radius: 15px;
            gap: 1em;
            max-width: 80%;
            box-shadow: 0 4px 17px 0 rgba(0, 0, 0, 0.08);


            .title {
                font-weight: var(--boldsize);
                font-size: 1.1em;
                /*margin: 0.5em 0;*/
                margin: 0;
            }

            .description {

                * {
                    margin: 0.25em 0;
                }
            }
        }
    }
}

#panel_finitura {
    sub {
        padding: 0 1vh;
        padding-bottom: 2em;
    }

    .subpanel {
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: flex-start;
        padding: 0 1em;
        width: 100%;

        align-items: center;
        gap: 1em;


        .finiture-container {
            display: flex;

            flex-wrap: wrap;
        }
    }

    .item {
        flex-basis: 20%; /*fare per smartphone */
        width: 100%;
        min-width: 70px;

        &.muted {
            display: none;
        }

        span {
            border-radius: 50%;
        }
    }
}

#panel_esportazione {
    sub {
        padding: 1vh;
    }

    #summarize {
        padding: 1vh;
        display: flex;
        flex-direction: column;
        gap: 1em;
        width: 100%;

        .title {
            font-weight: var(--boldsize);
            font-size: 1.1em;
            margin: 0.5em 0;
        }


        .description-container {
            display: none;

            &.visible {
                display: block;
            }
        }

        b {
            display: block;
        }
    }
}


#panel_actions {
    position: absolute;
    top: 1.25vh;
    right: 1.5vh;
    z-index: 25;
    margin: 0;

    display: flex;

    /*flex-direction: column;*/
}


#progress {
    height: 10%;
    background: #fff;
    color: black;
    display: flex;
    width: 100%;
    gap: 1em;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    justify-content: space-around;

    overflow-y: hidden;
    overflow-x: auto;


    .progress-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;

        &.muted {
            pointer-events: none;
            opacity: 0.6;
        }


        &.selected .status {
            background-color: var(--status-true);
        }

        &.active {
            font-weight: var(--boldsize);

            .status {
                background: var(--status-active);
            }
        }

    }

    .status {
        border-radius: 50%;
        width: 10px;
        height: 10px;
        background-color: var(--status-false);


    }

}

#configurator {
    height: 90%
}


.button svg {
    stroke: black !important;
}

.button:hover svg:not(#recap-button svg) {
    stroke: white !important;
}


.items_list .item {
    flex-basis: 50%;

    flex-direction: column;
    align-items: flex-start;

    gap: 1em;

    &.selected{
        border: solid 1px var(--maincolor);
        border-radius: 8px;

    }
}

.items_list .item .item-finish-package {
    color: var(--maincolor);
    font-weight: 600;
}

.subpanel {
    display: flex;
    flex-wrap: wrap;
    width: 100%;

}

.collection-group {
    width: 100%;
}

.collection-group .collection-title {
    margin: 1.2em 0 0.6em;
}

.collection-group .items-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.collection-group .items-container .item {
    flex-basis: 50%;
}


#panel_modello_soffione {
    .button {
        font-size: 1.2em;

        margin: 1em 0;
    }

    #suggerimenti {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 2em 0;

        .items-container {


            display: flex;
            flex-wrap: wrap;
            padding: 1em 0px;

            .item {
                flex-basis: 33.3%;
                user-select: none;
                cursor: not-allowed;
                opacity: 0.6;


            }
        }
    }
}

#panel_modello_soffione .wall,
#panel_modello_soffione .ceiling {
    width: 100%;
}


#notification-error.open {


    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    z-index: 26;
    border-radius: 16px;
    background: #FF5656;
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
    min-height: 20vh;

    h2 {
        line-height: clamp(1.875rem, 1.528vw, 1.750rem)
    }

    & > div {
        width: 80%;

        .modale {
            display: flex;
            flex-direction: column;
        }

        & > div {
            margin: 1em 0;
            display: flex;
            flex-direction: row;
            justify-content: center;
            gap: 1em;
        }
    }

}

#blurred-window {
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    z-index: 999;
    text-align: center;
    /*cursor: wait;*/
    transform: unset;
    width: 100%;
}


@media (max-width: 1023px) {

    #progress {
        /*display: flex;*/
        /*flex-direction: row;*/ /*flex-wrap: nowrap;*/ /*align-items: center;*/ /*padding: 1vh;*/

    }

    #progress.scroll {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        padding: 1vh;

    }


    #progress.scroll::-webkit-scrollbar {
        display: none;
    }


    .progress-container {


        min-width: 25%;

        p {
            text-align: center;
        }
    }

    #recap-container  #recap-body.open {
        max-width: 100%;
    }



}


@media (max-width: 480px) {
    .tab-title {
        display: none;
    }

    #funnel.open .funnel-header {
        justify-content: flex-start;
    }

}

.step-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 28px;
}

.item {
    text-align: center;
}

.item-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;

    background-image: var(--img1);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* nei tuoi esempi è meglio "contain" */
    background-color: #fff;

    border-radius: 8px;
    overflow: hidden;
}

.item-image::after {
    content: "";
    position: absolute;
    inset: 0;

    background-image: var(--img2);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0;
    transition: opacity 220ms ease;
}

@media (hover: hover) {
    .item:hover .item-image::after {
        opacity: 1;
    }
}


@media (prefers-reduced-motion: reduce) {
    .item-image::after {
        transition: none;
    }
}

@keyframes flipFrames {
    0%, 49% {
        opacity: 0;
    }
    50%, 100% {
        opacity: 1;
    }
}

/* stesso CSS di base della soluzione 1... */

.item-image:hover::after {
    animation: flipFrames 1s steps(1, end) infinite;
}

#buttons-container {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    margin: 1em 0;
}


#container-info-vie{
    position: relative;
    top: 1.25vh;
    left: 1.5vh;
    /*z-index: 25;*/
    margin: 0;
    /*font-size: 1.2em;*/
    display: none;
    color: var(--text-color);
    width: max-content;
    gap: 0.25em;
    padding: 0.5em 1em;
    border: unset;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    background: var(--bg-button);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08);

    &.open{
        display: flex;
        /*flex-direction: column;*/
    }

    #text-vie-disponibili{
        font-weight: var(--boldsize);
    }
}



@media (max-width: 768px) {
    #progress.scroll {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Firefox */
    }

    #progress.scroll::-webkit-scrollbar {
        display: none;
    }

    /* WebKit */
    #progress .progress-container {
        flex: 0 0 auto;
        scroll-snap-align: center;
    }

    #container-info-vie {

        top: 6vh;
        left: unset;
        right: 1.5vh;
        position: absolute;

    }
}



#funnel.open .step[data-step="1"] .step-options .item.selected,
#funnel.open .step[data-step="2"] .step-options .item.selected,
#funnel.open .step[data-step="3"] .step-options .item.selected,
#funnel.open .step[data-step="6"] .step-options .item.selected {
    font-weight: 300;

}

#funnel.open .step[data-step="1"] .step-options .item:hover,
#funnel.open .step[data-step="2"] .step-options .item:hover,
#funnel.open .step[data-step="3"] .step-options .item:hover,
#funnel.open .step[data-step="6"] .step-options .item:hover{

        font-weight: 600 !important;
        opacity: 1 !important;


}

#funnel.open .step[data-step="1"] .step-options .item.selected,
#funnel.open .step[data-step="2"] .step-options .item.selected,
#funnel.open .step[data-step="6"] .step-options .item.selected {
    opacity: 0.6;
}

#funnel.open .step[data-step="3"] .step-options .item.selected {
    opacity: 1;
}

#funnel.open .step[data-step="1"] .step-options .item.selected .item-image,
#funnel.open .step[data-step="2"] .step-options .item.selected .item-image,
#funnel.open .step[data-step="3"] .step-options .item.selected .item-image,
#funnel.open .step[data-step="6"] .step-options .item.selected .item-image {
    border: solid 1px #c7c7c7;
    box-shadow: none;
}


#funnel.open .step[data-step="1"] .step-options .item[config="wall.x"],
#funnel.open .step[data-step="1"] .step-options .item[config="wall.dx"],
#funnel.open .step[data-step="1"] .step-options .item[config="wall.sx"]
{
    min-width:200px !important;
}

#iubenda-cs-banner .iub-toggle-checkbox input:disabled {
    display: block !important;
 }