/* =======================================
	Theme: Freyja
	Sparrow & Snow Responsive
========================================== */

.flex-row {
	width: 100%;  

	display: -ms-flex;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-flow: row nowrap;
	
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	
	flex-flow: row nowrap;
	
	-ms-flex-align: center;
	-webkit-box-align: center;
	align-items: center;
	
	-ms-flex-pack: justify;
	-webkit-box-pack: justify;
	justify-content: space-between;
	}
	
.flex-right {
    margin-left: auto;
}
.flex-left {
    margin-right: auto;
}
.flex-center {
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}

/* ===== Class Menu Navigation ================ */


.flex-col {
    max-height: 100%;
}
.flex-grow-1 {
	flex-grow: 1;
}
.flex-grow-2 {
	flex-grow: 2;
}
.flex-grow-min-1 {
	min-width: 230px;
	max-width: 230px; 
}



/* ===== Header Center Logo ================ */

.flexwrap-center-logo {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-align: center;
	align-items: center;
}
.flexwrap-center-logo .left, 
.flexwrap-center-logo .right {
  flex: 1;
}
.flexwrap-center-logo .right {
  justify-content: flex-end;
}


/* ===== FOOTER SIDEBAR ========================== */


.flex-column > .flex-col2.flex-footer_sedebar {
  box-sizing: border-box;
  width: calc(1/2*100% - (1 - 1/2)*120px);
}

.flex-column > .flex-col3.flex-footer_sedebar {
  box-sizing: border-box;
  width: calc(1/3*100% - (1 - 1/3)*120px);
}
.flex-column > .flex-col4.flex-footer_sedebar {
  box-sizing: border-box;
  width: calc(1/4*100% - (1 - 1/4)*120px);
}
@media (max-width: 520px){
	.flex-column > .flex-col2.flex-footer_sedebar,
	.flex-column > .flex-col3.flex-footer_sedebar,
	.flex-column > .flex-col4.flex-footer_sedebar {
		width: 100% !important;
	}
}


/* ===== COLUMN FLEX ========================== */

.flex-column {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}
.flex-column > .flex-col2 {
  box-sizing: border-box;
  width: calc(1/2*100% - (1 - 1/2)*40px);
}

.flex-column > .flex-col3 {
  box-sizing: border-box;
  width: calc(1/3*100% - (1 - 1/3)*40px);
}
.flex-column > .flex-col4 {
  box-sizing: border-box;
  width: calc(1/4*100% - (1 - 1/4)*40px);
}

@media (max-width: 820px){
	.flex-column > .flex-colm-100 {
		width: 100% !important;
	}
	.flex-column > .flex-col3,
	.flex-column > .flex-col3.flex-footer_sedebar
	 {
		width: calc(1/2*100% - (1 - 1/2)*40px);
	}
	
}
@media (max-width: 720px){
	.flex-column > .flex-col2,
	.flex-column > .flex-col3,
	.flex-column > .flex-col4 {
		width: 100%;
	}
}

/* ==== GRID 2018 ==== */
.page-wrap {
	margin-top: 5rem;
	margin-bottom: 4rem;
}
@media (max-width: 720px){
	.page-wrap {
		margin-top: 2rem;
		margin-bottom: 2rem;
	}
}
.sas-wrap,
.sas-wrap-s {
	position: relative;
    margin: auto;
    width: calc(100% - 1.875rem);
}
	
@media (min-width: 600px){
	.sas-wrap,
	.sas-wrap-s {
		position: relative;
	    margin: auto;
	    width: calc(100% - 5rem);
	}
}

@media (min-width: 1200px){
	.sas-wrap {
	    width: 71.875rem; /*1150px*/
	}	
}
@media (min-width: 950px){
	.sas-wrap-s {
	    width: 56.25rem; /*900px*/
	}	
}
.sas-container {
	min-height: 1.25rem;
	width: 100%;
	min-width: 0;
}


/* ===== Sidebar */

.container-sidebar {
    display: flex;
}
.sidebar-reverse { /* casse per attivare la sidebar */
	flex-direction: row-reverse;	 
}
.sas-sidebar {	
	flex: 0 0 30%; 
	min-height: 1.25rem;
	margin: 0 0 0 5%;
	min-width: 19.6875rem; /* 315px width minima per sidebar */
}
.sidebar-reverse .sas-sidebar {
	flex: 0 0 30%; 
	min-height: 1.25rem;
	margin: 0 5% 0 0;
}

@media (max-width: 960px) {
	.sidebar-reverse {
		flex-direction: column-reverse !important;
	}
	.container-sidebar {
		flex-direction: column !important;
	}
	.sas-sidebar,
	.sidebar-reverse .sas-sidebar {
		max-width: 21.25rem; /* 340px */
		min-width: 21.25rem; /* 340px */
		margin: 0 auto;
		flex: none;
	}
}

@media (max-width: 400px) {
	.sas-sidebar,
	.sidebar-reverse .sas-sidebar {
		max-width: 100%;
		min-width: 100%;
		width: 100%;
		margin: 0 auto;
	}
}

/*  Query menu responsive
================================================== */

@media (max-width:1000px) {
.hide_mobile {
    display: none !important;
    }

}
@media (max-width:720px) {
.hide_phone {
    display: none !important;
    }

}
@media (min-width:1000px) {
.view_mobile {
    display: none !important;
    }

}