@import "config/config.scss";
/* GRID.SCSS */

/*-- our cleafix hack -- */ 
.wkrow:before, 
.wkrow:after {
    content:"";
      display: table ;
    clear:both;
}

[class*='wkcol-'] {
    float: left; 
    min-height: 1px; 
    width: 16.66%; 
    /*-- our gutter -- */
    padding: 15px; 
    box-sizing: border-box;


    img {
    	max-width: 100%;
    }
}

.wkcol-0{ width: 4.16%; }
.wkcol-1{ width: 8.33%; }
.wkcol-2{ width: 16.66%; }
.wkcol-3{ width: 25%; }
.wkcol-4{ width: 33.33%; }
.wkcol-5{ width: 41.66%; }
.wkcol-6{ width: 50%; }
.wkcol-7{ width: 58.33%; }
.wkcol-8{ width: 66.66%; }
.wkcol-9{ width: 75%; }
.wkcol-10{ width: 83.33%; }
.wkcol-11{ width: 91.66%; }
.wkcol-12{ width: 100%; }

@include mq($to:tablet){
	.wkcol-0{ width: 50%; }
	.wkcol-1{ width: 50%; }
	.wkcol-2{ width: 100%; }
	.wkcol-3{ width: 100%; }
	.wkcol-4{ width: 100%; }
	.wkcol-5{ width: 100%; }
	.wkcol-6{ width: 100%; }
	.wkcol-7{ width: 100%; }
	.wkcol-8{ width: 100%; }
	.wkcol-9{ width: 100%; }
	.wkcol-10{ width: 100%; }
	.wkcol-11{ width: 100%; }
	.wkcol-12{ width: 100%; }
}

.spaziatura {
	padding: 0;
	position: relative;
	overflow: visible;
	margin-bottom: 30px !important;

	@include mq($from:tablet){
		margin-bottom: 50px !important;
	}
	@include mq($from:desktop){
		margin-bottom: 60px !important;
	}
	@include mq($from:wide){
		margin-bottom: 70px !important;
	}	
}

.overflow_visibile {
	overflow: visible !important;
}


/*** GRIGLIA PRODOTTI ***/


.prodotti-container {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 0 auto;
    flex-wrap: wrap;
}

ul#grid_prodotti {
    flex-grow: 1;
    padding: 0;
    margin: 0;
    list-style-type: none;
    margin-bottom: 70px;

    @include mq($from: tablet){
        margin-left: 30px;
    }
}

li.grid-item {
	margin: 0 0 10px 0;
    width: calc(50% - 5px);
    background-color: #f8f8f8;
    overflow: hidden;

    @include mq($from: tablet){
    	width: calc(33.333% - 10px);
    }

    @include mq($from: desktop){
    	width: calc(25% - 10px);
    }
}

li.grid-item-title {
	width: 100%; 
	background-color: transparent;
    text-align: right;
    padding: 20px 0px;
    margin-bottom: 0;

    @include mq($from: tablet){
        padding: 20px 10px;
    }

    h2.item_series_title {
        font-size: 1.125rem;
        margin: 0;
        font-family: 'Raleway';
        font-weight: 600;

        @include mq($from: tablet){
            font-size: 3rem;
        }
    }

    .item_series_description {
        font-family: 'Raleway';
        font-size: .75rem;
        @include mq($from: tablet){
            font-size: 1.25rem;
        }
    }
}

.item-cover {
	width: 100%;
	height: 0;
	padding-top: 70%;
    background-color: #f8f8f8;
    position: relative;

    .item-cover-bg {
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
        background-blend-mode: multiply;
        background-color: #f8f8f8;
        position: absolute;
        width: 80%;
        height: 70%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

li.grid-item h4 {
    position: absolute;
    bottom: 10px;
    left: 10px;
    margin: 0;
    font-size: .875rem;
    color: black;
    font-family: 'Raleway';
    font-weight: 400;
}

.grid-item__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #e06652;
    top: 0;
    opacity: .8;
    padding: 16px;
    transform: translateY(102%);
    @include transition;
}


.grid-item a:hover {
    opacity: 1;
}

.grid-item:hover .grid-item__overlay {
    transform: translateY(0%);
    @include transition;
}


/**** FILTRI ****/
.filters-toggle {
    width: 90%;
    margin: 0 auto;
    display: none;
}

.filtri_toggle {
    font-family: 'Raleway';
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    height: auto;
}

ul.filter-container {
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-top: 10px;
}



.filter-sidebar {
    position: fixed;
    width: 100vw;
    height: calc(100vh - 50px);
    top: 50px;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    background-color: white;
    padding: 0 5% 16px 5%;
    transform: translateY(calc(100% - 40px));
    box-shadow: 0 0 10px 0px #000000;
    @include transition(.8s);

    @include mq($from: tablet){
        display: block;
        margin-bottom: 70px;
        height: auto;
        margin-top: 20px;
        padding: 0;
        position: relative;
        top: unset;
        left: unset;
        transform: translateY(0%);
        width: 25%;
        box-shadow: unset;
    }

    &.attivo {
        transform: translateY(0);
        @include transition(.8s);

        @include mq($from: tablet){
            position: relative;
            opacity: 1;
        }
    }

    &.hide-on-desktop {
        @include mq($from: tablet){
            width: 0;
            overflow: hidden;
            position: fixed;
            opacity: 0;
            @include transition;
        }
    }
}


.filter-header {
    height: 40px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;

    @include mq($from: tablet){
        display: none;
    }
}

.filter-header-wrapper {
    margin: 0;
    font-family: 'Raleway';
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: unset;
}

.filter-header-wrapper .filter-title__arrow {
    transform: rotate(0deg);
    transition-delay: .8s;
}

.attivo .filter-header-wrapper .filter-title__arrow {
    transform: rotate(180deg);
    transition-delay: .8s;
}

.filter-content {
    flex-grow: 1;
    overflow-y: auto;
}


.filtri-gruppo {
    margin-bottom: 20px;
}

h3.filter-title {
    font-family: 'Raleway';
    font-size: 1rem;
    font-weight: 700;
    text-transform: none;
    margin-bottom: 0.5rem;
    cursor: pointer;

    @include mq($from: tablet){
        font-size: 1.25rem;
        margin-bottom: 0;
    }
}

.filter-title__arrow {
    width: 12px;
    height: 12px;
    display: inline-block;
    transform-origin: center center;
    transform: rotate(180deg);
    @include transition;

    svg {
        display: block;
        height: 100%;
        width: 100%;
    }
}

.filtri-gruppo.attivo .filter-title__arrow {
    transform: rotate(0deg);
    @include transition;
}

.filter-item {
    padding: 4px 0;
    line-height: 1.3em;

    @include mq($from: tablet){
        padding: 0;
    }

    &.attivo  .filter-item-name {
    	font-weight: bold;
    }
}

.filter-item.filter-subitem {
    text-indent: 20px;
    display: none;
}

.filter-item-name {
    cursor: pointer;
    font-family: 'Raleway';
    font-weight: 200;
    font-size: 1rem;
    line-height: 1.3em;
    @include transition;

    @include mq($from: tablet){
        font-size: 1.25rem;
    }
}

.notouch .filter-item-name:hover {
    opacity: .5;
    @include transition;
}

.filter-stile li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;

	.filter-item-name {
		font-weight: bold;
	}
}

.filter-applicazioni {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.applicazioni-item {
    display: block;
    width: 20%;
    max-width: 40px;
    height: auto;
    //border: 1px solid black;
    margin: 10px 10px 0 0;
    @include transition;

    &.attivo {
        opacity: .5;
        @include transition;
    }
}

.applicazioni-item .filter-item-name {
   width: 100%;
   height: 0;
   padding-bottom: calc(100% - 2px);
   display: block;
   font-size: 0;
   background-position: center;
   background-repeat: no-repeat;
   background-size: cover;
   border-radius: 40px;
   box-shadow: 0 0 10px -3px rgba(51, 51, 51, .5);
  // border: 1px solid #818a91;
}

/*** SEARCH ***/

.search-field {
    position: relative;
    margin-bottom: 30px;
}

input#keyword {
    border: 0;
    border-bottom: 2px solid black;
    border-radius: 0;
    padding-left: 0;
    font: normal 100%/1.5 'Raleway', sans-serif;
    font-size: 20px;
    padding: 5px 30px 0 0;
    background-position: right center;
    background-size: auto 50%;
    background-repeat: no-repeat;
    opacity: .5;
    @include transition;

    &::placeholder {
        font: normal 100%/1.5 'Raleway', sans-serif;
        font-size: 20px;
    }

    &:focus {
        opacity: 1;
        @include transition;
    }
}

.clear-search {
    display: none;
}
/*
.clear-search {
    position: absolute;
    font-size: 46px;
    top: 50%;
    line-height: 0;
    right: 0;
    z-index: 99999;
    transform: rotate(45deg);
    opacity: 0;
    @include transition;
} */


.overlay__content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

li.grid-item h4.overlay_title {
    display: block;
    width: 100%;
    position: relative !important;
    left: 0;
    top: 0;
    color: white;
    font-size: .875rem;
    font-family: 'Raleway';
    font-weight: 400;
}

span.overlay_desc {
    display: block;
    font-size: .875rem;
    color: white;
    font-family: 'Raleway';
    font-weight: 500;
    margin-top: 4px;
}