/*** HEADER ***/
/**************/

:root {
  --logo-width: 200px;
}

.kc-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  z-index: 110;
}
.kc-header-default {
	background: white;
	box-shadow: 0 0 15px rgba(60,60,60,0.4);
}

.kc-header .kc-col.kc-header-col-left {
  align-items: flex-start;
  flex-direction: column;
  width: 100%;
}
.kc-header .kc-col.kc-header-col-right {
  display: none;
}

.kc-header .kc-button.kc-button--ghost {
	width: -webkit-fit-content;
	width: -moz-fit-content;
	width: fit-content;
	width: intrinsic;
}
@media screen and (max-width: 991px) {
  .kc-header .kc-header-buttons .kc-button--ghost {
    border: none;
    padding: 0;
    font-weight: 300;
    font-size: 1rem;
  }
  .kc-header .kc-header-buttons .kc-button--ghost:hover {
    background-color: transparent;
    color: var(--color-primary);
    box-shadow: none;
  }
}
@media screen and (min-width: 992px) {
  .kc-header .kc-col.kc-header-col-left {
    align-items: center;
    flex-direction: row;
  }
  .kc-header .kc-col.kc-header-col-right {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-left: 4rem;
  }
}

.kc-header .kc-intro-content {
  display: flex;
  justify-content: space-between;
	align-items: center;
	width: 100%;
}
.kc-header .kc-header-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
}
@media screen and (min-width: 992px) {
  .kc-header .kc-intro-content {
    width: moz-fit-content;
    width: webkit-fit-content;
    max-width: var(--logo-width);
  }

  .kc-header .kc-intro-content .kc-header-buttons {
    display: none;
  }

	.kc-header .kc-header-buttons {
		min-width: fit-content;
    justify-content: flex-end;
	}
}

.kc-header .kc-logo {
  width: 100%;
  max-width: var(--logo-width);
  min-width: 150px;
  margin-right: 1rem;
}
.kc-header .kc-logo img {
  width: 100%;
  padding-top: 4px;
}
@media screen and (min-width: 992px) {
  .kc-header .kc-logo {
    max-width: var(--logo-width);
  }
}

.kc-search-container {
  display: flex;
  align-items: center;
  width: 100%;
}

/* input e bottone per i consigli */
.kc-search-container .kc-search-input-container {
  background-color:white;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border-radius: var(--border-radius);
  padding: 0 1rem;
  width: 100%;
	margin: 0 auto;
}
header .kc-search-container .kc-search-input-container {
	margin: 0 auto 0 0;
	box-shadow: none;
	border: 2px var(--color-primary) solid;
}
@media screen and (min-width: 992px) {
  .kc-search-container .kc-search-input-container {
    max-width: 350px;
  }
}

.kc-search-container .kc-search-input-container .searchIcon {
	width: 24px;
	height: 24px;
}

.kc-search-container .kc-header-col-left {
  width: 100%;
}
@media screen and (min-width: 992px) {
  .kc-search-container .kc-header-col-left {
    padding-right: 3rem;
  }
}

.kc-search-container .kc-search-input {
  padding: 1rem 0;
  border: none;
  font-size: 1rem;
	width: 100%;
	-webkit-appearance: none;
}
.kc-search-container .kc-search-input:focus {
  outline: none;
}

.kc-search-container .kc-search-input-container svg {
  font-size: 1.5rem;
  width: 1.5rem;
  padding: 0;
  color: var(--color-primary);
}

.kc-search-container .kc-button {
  margin: 0 0 0 1rem;
	height: 100%;
	max-height: 3.25rem;
}


/* consigli */
.kc-search-container svg.kc-search-suggestions {
	padding-left: 1rem;
	color: var(--color-primary);
}

.kc-search-container a.kc-search-suggestions {
	display: none;
}

@media screen and (min-width: 772px) {
	.kc-search-container svg.kc-search-suggestions {
		display: none;
	}

	.kc-search-container a.kc-search-suggestions {
		display: inline-block;
		font-size: 1.25rem;
		text-transform: uppercase;
	}
}
@media screen and (min-width: 992px) {
	.kc-search-container a.kc-search-suggestions {
		display: inline-block;
		font-size: 1rem;
		text-transform: capitalize;
	}
}
@media screen and (min-width: 1200px) {
	.kc-search-container a.kc-search-suggestions {
		display: inline-block;
		font-size: 1.25rem;
		text-transform: uppercase;
	}
}






/* preferiti */
a.kc-favorites {
	cursor: pointer;
}

a.kc-favorites {
  font-size: 1rem;
  color: var(--color-primary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  margin-left: 2rem;
  text-decoration: none;
}
.kc-header-frontpage a.kc-favorites span {
  color: white;
}

.kc-favorites span {
  display: none;
}
@media screen and (min-width: 1200px) {
	.kc-favorites span {
		display: inline-block;
	}
}

.kc-favorites svg {
	width: 2rem !important;
  height: 2rem;
  margin-left: 0.5rem;
}

.kc-header-frontpage .kc-favorites svg {
	color: white;
}

.kc-favorites .kc-heart-full {
  display: none;
}
.kc-favorites:hover .kc-heart-full {
  display: inline-block;
}
.kc-favorites:hover .kc-heart-outlined {
  display: none;
}
.kc-header a.kc-favorites:hover {
  text-decoration: underline;
}


.kc-header .kc-varius-buttons {
  display: flex;
  align-items: center;
}


/* login */
.kc-header .kc-header-buttons .kc-button {
  font-size: 1rem;
  height: 100%;
}
.kc-header-frontpage .kc-header-buttons .kc-button {
  color: white;
  border-color: white;
}
.kc-header-frontpage .kc-header-buttons .kc-button:hover {
  color: var(--color-primary);
  background-color: white;
}


/* divider verticale */
.kc-header .kc-vertical-divider {
  display: none;
}
@media screen and (min-width: 1200px) {
  .kc-header .kc-vertical-divider {
    display: block;
    margin-left: 2rem;
    height: 2.5rem;
    /* border-left: 1px var(--color-text-light) solid; */
  }
  .kc-header-frontpage .kc-vertical-divider {
    /* border-left: 1px white solid; */
  }
}


/* bottoni per la scheda di dettaglio */
.kc-structure-header-buttons {
	display: none;
}
@media screen and (min-width: 992px) {
	.kc-structure-header-buttons {
		display: flex;
	}
}

.kc-structure-header-buttons a {
	width: max-content;
}
.kc-structure-header-buttons a + a {
	margin-left: 1rem;
}





/* scelta della lingua */

.right-edge-menu .menu-headermenu-container img {
	height: 24px;
	width: 24px;
}


.kc-header .right-edge-menu ul {
	padding: 0;
	list-style: none;
	position: relative;
}

.kc-header .right-edge-menu ul ul {
	display: none;
	position: absolute;
	box-shadow: 0 0 13px rgba(0,0,0,0.25);
	border-radius: var(--border-radius);
	z-index: 10;
	right: -28px;
}

.kc-header .right-edge-menu ul ul li {
	width: 60px;
	box-sizing: border-box;
	float: none;
	display: list-item;
	position: relative;
	background-color: white;
	line-height: 2.5rem;
	text-align: right;
	padding-right: 16px;
}

.kc-header .right-edge-menu ul  li {
	display:inline-block;
}

.kc-header .right-edge-menu ul  li > a {
	text-decoration: none;
	color: var(--color-primary);
	cursor: pointer;
  font-size: 1rem;
}
#kc-header-frontpage.kc-header .right-edge-menu ul  li > a {
	color:white;
}

.kc-header .right-edge-menu ul.sub-menu li > a {
	color: var(--color-text) !important;
}

.kc-header .right-edge-menu svg {
	font-size: 24px;
	margin-left: 2rem;
	color: var(--color-primary);
}
.kc-header-frontpage .right-edge-menu svg {
	color: white;
}




/*** STICKY FRONT PAGE ***/
/*************************/

.sticky {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	left: 0;
  z-index: 110;
  transform: translateZ(0);
}

.header-hidden {
	display: none;
    -webkit-animation-name: sticky-up;
            animation-name: sticky-up;
    -webkit-animation-iteration-count: 1;
            animation-iteration-count: 1;
    -webkit-animation-duration: 0.3s;
            animation-duration: 0.3s;
    -webkit-animation-delay: 0s;
            animation-delay: 0s;
    -webkit-animation-fill-mode: forwards;
            animation-fill-mode: forwards;
    -webkit-animation-timing-function: ease-in-out;
            animation-timing-function: ease-in-out;
}
@-webkit-keyframes sticky-up {
	from { transform: translateY(0); }
	to { transform: translateY(-100%); }
}
@keyframes sticky-up {
	from { transform: translateY(0); }
	to { transform: translateY(-100%); }
}

.sticky-down {
  display: flex;
    -webkit-animation-name: sticky-down;
            animation-name: sticky-down;
    -webkit-animation-iteration-count: 1;
            animation-iteration-count: 1;
    -webkit-animation-duration: 0.3s;
            animation-duration: 0.3s;
    -webkit-animation-delay: 0s;
            animation-delay: 0s;
    -webkit-animation-fill-mode: forwards;
            animation-fill-mode: forwards;
		-webkit-animation-timing-function: ease-in-out;
		        animation-timing-function: ease-in-out;
}
@-webkit-keyframes sticky-down {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}
@keyframes sticky-down {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}

.wpglobus_language_name {
	text-transform: uppercase;
}




/*** AUTOCOMPLETE ***/
/********************/

.ui-autocomplete {
	position: absolute;
	top: calc(100% + .5rem) !important;
	width: 100% !important;
	left: 0 !important;
	max-height: calc(60vh - 10rem);
	margin: 0;
	padding: 0;
	background-color: #fff;
	box-shadow: 0.5rem 0.5rem 1rem rgb(0 0 0 / 17%);
	border-radius: .6rem;
	overflow-x: hidden;
	z-index: 999;
}

header .ui-autocomplete {
	height: 65vh;
	max-height: 20rem;
}

@media screen and (min-width: 772px) {
	.ui-autocomplete {
		max-height: calc(60vh - 9rem);
	}
}
@media screen and (min-width: 992px) {
	.ui-autocomplete {
		width: 600px !important;
	}
	#kc-search-hero-banner .ui-autocomplete {
		left: calc((100% - 600px) / 2) !important;
	}
	header .ui-autocomplete {
		left: 0;
	}
}

.ui-autocomplete li {
	width: calc(100% - 2rem);
	list-style: none;
	cursor: pointer;
	transition: color 0.2s, background-color 0.2s;
	transition-timing-function: ease-in-out;
	padding: 0.25rem 1rem 0;
	color: var(--color-text-light);
	line-height: 1.25rem;
}
.ui-autocomplete li:first-child {
	padding-top: 1rem;
}
.ui-autocomplete li:last-child {
	padding-bottom: 1rem;
}
.ui-autocomplete li + li:not(.ui-autocomplete-category-title) {
	padding-top: .5rem;
}

.ui-autocomplete li:hover {
	color: #212121;
}
.ui-autocomplete li.ui-state-focus {
	color: #212121;
	background-color: #f1f1f1;
}
.ui-autocomplete li + li {
	margin-top: .5rem;
}

.ui-autocomplete li.ui-autocomplete-category-title {
	font-weight: bold;
	padding: 1rem 1rem .25rem;
	line-height: 1.2;
	font-family: var(--font-secondary);
	text-transform: capitalize;
	color: var(--color-primary);
	font-size: 1rem;
}

.ui-autocomplete li strong {
	color: var(--color-text);
}

.kc-autocomplete-item {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}

.kc-autocomplete-item:before {
	content: "";
	display: block;
	background-size: cover;
	background-position: center;
	width: 2rem;
	height: 2rem;
	margin-right: .5rem;
}
.kc-autocomplete--structure:before {
	background-image: url('/wp-content/themes/koob-portal/public/images/icon-structure.svg');
}
.kc-autocomplete--region:before {
	background-image: url('/wp-content/themes/koob-portal/public/images/icon-place.svg');
}
.kc-autocomplete--ztur:before {
	background-image: url('/wp-content/themes/koob-portal/public/images/icon-place.svg');
}



.img-language {
	background-image: url('/wp-content/themes/koob-portal/public/images/icon-globe-white.svg');
	width: 24px;
	height: 24px;
}
.sticky .img-language {
	background-image: url('/wp-content/themes/koob-portal/public/images/icon-globe.svg');
}


