/*         ______  ____  ____  _   _____ 
//        / / __ \/ __ \/ __ \/ | / /   |
//   __  / / / / / / / / /_/ /  |/ / /| |
//  / /_/ / /_/ / /_/ / _, _/ /|  / ___ |
//  \____/\____/\____/_/ |_/_/ |_/_/  |_|
//
// Guest comunication AI manager
// [joorna.it]
// Base Comunicazione [base.studio]                                   
*/


:root{
	--joo-color-1:#A49055;
	--joo-color-2:#FFFFFF;
	--joo-chat-top:unset;
	--joo-chat-right:50px;
	--joo-chat-bottom:50px;
	--joo-chat-right-mobile:50px;
	--joo-chat-bottom-mobile:50px;
	--joo-chat-left:unset;
	--joo-chat-left-mobile:unset;
}

#joorna{
	font-family: "Urbanist", sans-serif;
	position:fixed;
	width:fit-content;
	height:fit-content;
	z-index:10000000000;
	right:var(--joo-chat-right);
	bottom:var(--joo-chat-bottom);
	left:var(--joo-chat-left);
}
#joorna.open{
	width:480px;
	height:100vh;
	height:calc(80svh - (var(--joo-chat-bottom) + 20px));
}

#joorna.openbig{
	width:calc(100% - (var(--joo-chat-right) * 2));
	height:90vh !important;
	height:calc(80svh - (var(--joo-chat-bottom) + 20px));
}

#joorna.open.modal{
	width:calc(100% - (var(--joo-chat-right) * 2));
	height:75vh !important;
	height:calc(100svh - (var(--joo-chat-bottom) *20px));
}

@media only screen and (max-width:560px){
	#joorna{
		width:fit-content;
		height:fit-content;
		right:var(--joo-chat-right-mobile);
		bottom:var(--joo-chat-bottom-mobile);
		/*bottom:15px;*/
		left:var(--joo-chat-left-mobile);
	}

	#joorna.open{
		width:90%;
		height:90%;
		/*width:calc(100% - var(--joo-chat-right-mobile) * 2);
		height:calc(123svh - (var(--joo-chat-bottom-mobile) * 2));/*100svh*/
	}
	#joorna.open.modal{
		width:calc(100% - 20px);
		height:calc(100svh - 20px);
		left:10px;
		bottom:10px;
	}
}

#joorna * {
    box-sizing: border-box; 
}

#joorna-launcher{
	width:60px;
	height:60px;
	bottom:0;
	right:0;
	/*left:40px; PER VERSIONE A SINISTRA e unset su app.joorna*/
	position: absolute;
	background-color:var(--joo-color-2);
	color:var(--joo-color-1);
	box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.08);
	border-radius:50px; /*tondo*/
	transition:all 0.4s;
	cursor:pointer;
	display:grid;
	align-items: center;
	justify-content: center;
	opacity: 1;
}
#joorna-launcher::after,#joorna-launcher-mob::after{
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	/*transform: translate(-50%, -50%);*/
    transform: translate(-40%, 15%);
	width: 12px;
	height: 12px;
	background-color: #0F0;
	border-radius: 50%;
	box-shadow: 0px 0px 5px rgba(0, 255, 0, 0.8);
	animation: shadow 2s infinite;
	/*border: 2px solid var(--joo-color-2);*/
}
#joorna-launcher:hover::after{
	/*border: 2px solid var(--joo-color-1) !important;*/
}
/*@media only screen and (max-width:560px){
	#joorna-launcher::after{
		width: 9px;
		height: 9px;
		top: 5px;
		left: 4px;
	}
}*/@media only screen and (max-width:768px){
	#joorna-launcher-mob::after {
        width: 8px;
        height: 8px;
        top: 4px;
        left: 40%;
        transform: translate(120%, 180%) !important;
        border: 2px solid #fcf8f2;
    }
}

/*@keyframes shadow {
  0% { box-shadow: 0px 0px 5px rgba(0, 255, 0, 0.3);}
  5% { box-shadow: 0px 0px 5px rgba(0, 255, 0, 0.8);  }
  50% { box-shadow: 0px 0px 25px rgba(0, 255, 0, 1);}
  95% { box-shadow: 0px 0px 5px rgba(0, 255, 0, 0.8);  }
  100% { box-shadow: 0px 0px 5px rgba(0, 255, 0, 0.3); }
}*/
@keyframes shadow {
	0% {
    transform: scale(0.95);
    box-shadow: rgba(35, 206, 43, 0.7) 0px 0px 0px 0px;}
   70% {
    transform: scale(1);
    box-shadow: rgba(35, 206, 43, 0) 0px 0px 0px 10px;}
   100% {
    transform: scale(0.95);
    box-shadow: rgba(35, 206, 43, 0) 0px 0px 0px 0px;}
}
	
	
	
	
	/*
  0% { box-shadow: 0px 0px 5px rgba(35, 206, 43 0.3);}
  5% { box-shadow: 0px 0px 5px rgba(35, 206, 43, 0.8);  }
  50% { box-shadow: 0px 0px 25px rgba(35, 206, 43, 1);}
  95% { box-shadow: 0px 0px 5px rgba(35, 206, 43, 0.8);  }
  100% { box-shadow: 0px 0px 5px rgba(35, 206, 43, 0.3); }
}*/


/*#joorna-launcher:hover::after , #joorna-launcher-mob:hover::after{
	border: 2px solid var(--joo-color-2);
}*/

#joorna-launcher:hover{
	background-color:var(--joo-color-1);
	color:var(--joo-color-2);
}
#joorna-launcher svg{
	width:100%;
	display: block;
	margin:auto;
}

#joorna-launcher.hide{
	opacity:0;
	pointer-events: none;
}

@media only screen and (max-width:560px){
	#joorna-launcher{
		width:55px;
		height:55px;
	}
}




#joorna-chat{
	width:100%;
	height:100%;
	position: absolute;
	padding:0px 0px 0px 20px;
	background-color:rgba(230, 230, 230, 0.9);
	backdrop-filter: blur(12px);
	border-radius:20px;
	box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	bottom:0;
	right:0;
	transition: width 0.4s, height 0.4s, padding 0.4s, opacity 0.4s; /* Tutte le proprietà animate */
	opacity: 1;
}

#joorna-chat.hide{
	width:0px;
	height: 0px;
	padding:0px 0px 0px 20px;
	opacity: 0;
	transition: opacity 0.4s; /* Solo l'opacità avrà la transizione quando hidden */
}

@media only screen and (max-width: 767px) {
    #joorna-chat {
        height: 90% !important;
    }
}
/*
#joorna .chat-close {
    width: 15px;
    height: 14px;
    padding: 2.9vh 2.6vh;
    border-radius: 10px;
    right: 10px;
    position: absolute;
    cursor: pointer;
	transition: all 0.4s;
}*/
#joorna .chat-close .b {
    width: 25px;
    height: 2.5px;
    border-radius: 10px;
    background-color: var(--joo-color-1);
    left: 11px;
    position: absolute;
	transition: all 0.4s;
}



/*#joorna .chat-close{
	width:24px;
	height: 24px;
	top:16px;
	right:18px;
	position: absolute;
	cursor:pointer;
}
#joorna .chat-close .b{
	width:25px;
	height:2.5px;
	border-radius: 10px;
	background-color: var(--joo-color-1);
	top:50%;
	left:0;
	position: absolute;
}*/
#joorna .chat-close .b:nth-child(1){
	transform:rotate(45deg);
}
#joorna .chat-close .b:nth-child(2){
	transform:rotate(-45deg);
}



#joorna .input-box{
	width:calc(100% - 40px);
	position:absolute;
	bottom:45px;
	z-index:5;
	max-width: 480px;
	left: 50%;
	transform: translateX(-50%);
}
#joorna .input-box .chat-bar{
	width:100%;
	border-radius:100px;
	margin:auto;
	position: relative;
	overflow: hidden;
	transition:all 0.8s;
}
@media only screen and (max-width:560px){
}

#joorna .input-box .chat-bar .marquee-placeholder-box{
	width:calc(100% - 52px);
	height:100%;
	position:absolute;
	top:0;
	left:0;
	z-index:2;
	pointer-events:none;
	overflow:hidden;
	opacity:1;
	transition:all 0.2s;
}
#joorna .input-box .chat-bar .marquee-placeholder-box.hide{
	opacity:0;
}

#joorna .input-box .chat-bar .marquee-placeholder{
	width:max-content;
	height:100%;
	display:flex;
	align-items:center;
	color:var(--joo-color-1, #000);
	pointer-events:none;
	animation:marquee 10s infinite;
}
#joorna .input-box .chat-bar .marquee-placeholder .label{
	width:max-content;
	padding:0 15px;
	font-size:16px;
}
@media only screen and (max-width:560px){
	#joorna .input-box .chat-bar .marquee-placeholder .label{
		font-size:12px;
	}
}

@keyframes marquee {
  from { transform: translateX(0%); }
  to { transform: translateX(-50%); }
}


#joorna .input-box .chat-bar input{
	width:100%;
	font-family: inherit;
	padding:16px 55px 16px 16px;
	background-color:#FFF;
	border:0px;
	border-radius:100px;
	font-size:16px;
	line-height:1;
	font-weight:500;
	color:var(--joo-color-1, #000);
	transition:all 0.4s;
}
#joorna .input-box .chat-bar input:focus-visible {
  	outline: none;
  	background-color:rgba(255, 255, 255, 0.9);
}

#joorna .input-box .chat-bar button{
	position:absolute;
	width:40px;
	height:40px;
	border-radius:50% !important;
	top:6px;
	right:6px;
	border:0;
	background-color:var(--joo-color-1, #FFF);
	color:var(--white, #FFF);
	display: grid;
	align-items:center;
	justify-content: center;
	cursor:pointer;
	transition:all 0.4s;
	z-index:3;
	padding: 0 !important;
}
#joorna .input-box .chat-bar button .arrow{
	width:28px;
	transform:scale(1);
	transition:all 0.4s;
	transition-delay:0.1s;
}

#joorna .input-box .chat-bar button:hover{
	background-color:var(--joo-color-2, #000);
	color:var(--joo-color-1, #000);
}
#joorna .input-box .chat-bar button:hover .arrow{
	transform:scale(1.2);
}



#joorna .input-box .input-loader{
	position:absolute;
	width:40px;
	height:40px;
	border-radius:50%;
	top:6px;
	right:6px;
	border:0;
	background-color:var(--joo-color-1, #FFF);
	display: grid;
	align-items:center;
	justify-content: center;
	transition:all 0.4s;
	z-index:3;
	pointer-events:none;
	opacity:0;
}
#joorna .input-box .input-loader .box{
	width:30px;
	height:30px;
	overflow:hidden;
}

#joorna .input-box .input-loader .box .circle{
	width:18px;
	height:18px;
	border-radius:50%;
	border:7px solid var(--joo-color-2, #FFF);
	margin:0 auto 2px;
}

#joorna .input-box .input-loader .box-animation{
	height: fit-content;
	animation:loader 3s infinite;
}

@keyframes loader {
  from { transform: translateY(0%); }
  to { transform: translateY(-50%); }
}



#joorna .input-box.waiting .chat-bar{
	width:52px;
	pointer-events:none;
}
#joorna .input-box.waiting .input-loader{
	opacity:1;
}








#joorna .copyrights{
	width:calc(100% - 40px);
	position:absolute;
	bottom:16px;
	z-index:2;
	color:var(--white, #FFF);
	font-size:10px;
	line-height:1;
	text-align: center;
}
#joorna .copyrights .text{
	width: fit-content;
	margin:auto;
	display: flex;
	align-items: end;
	gap:10px;
}
#joorna .copyrights .text .logo{
	width:45px;
	display: block;
}




#joorna .joo-container{
	width:100%;
	height:100%;
	margin:auto;
	padding:0px 0px 110px;
	position: relative;
	z-index:2;
}

@media only screen and (max-width:560px){
	#joorna .joo-container{
		padding:0px 0px 120px;
	}
}

#joorna .joo-container .answer ul li{
	list-style:none !important}

#joorna .joo-container .scroll-container{
	height:88%;           /*100%*/
	padding-bottom: 0px; /*40px*/
	overflow-y:scroll;
	scrollbar-color: var(--joo-color-1, #000) transparent;
	
}

#joorna .joo-container .chat-loader{
	font-size:14px;
	line-height:1;
	color:var(--white, #FFF);
	display:flex;
	gap:5px;
	align-items:end;
	margin-top:10px;
	margin-bottom:30px;
	opacity:1;
	transition:all 0.5s;
}
#joorna .joo-container .chat-loader.hide{
	opacity:0;
	margin-bottom:0px !important;
}

#joorna .joo-container .chat-loader .dot-box{
	display:flex;
	gap:3px;
	margin-bottom:2px;
}
#joorna .joo-container .chat-loader .dot-box .dot{
	width:3px;
	height:3px;
	border-radius:50%;
	background-color:var(--white, #FFF);
	animation:dot 1.5s infinite;
}
#joorna .joo-container .chat-loader .dot-box .dot:nth-child(1){
	animation-delay:0s;
}
#joorna .joo-container .chat-loader .dot-box .dot:nth-child(2){
	animation-delay:0.2s;
}
#joorna .joo-container .chat-loader .dot-box .dot:nth-child(3){
	animation-delay:0.4s;
}


@keyframes dot {
  0% { transform: translateY(0%); }
  50% { transform: translateY(-4px); }
}


#joorna-chat-container{
	display:grid;
	grid-gap:15px;
}

#joorna .joo-container .question{
	font-size:20px;
	color:var(--joo-color-1);
	margin-top:20px;
	opacity:0;
	transition:all 1s;
	transition-delay:0.1s;
}
#joorna .joo-container .question.loaded{
	margin-top:0px;
	opacity:1;
	 text-align: right !important;
    padding-right: 5% !important;
}

@media only screen and (max-width:560px){
	#joorna .joo-container .question{
		font-size:18px;
	}
}


#joorna .joo-container .answer{
	padding: 16px;
	line-height:1.5;
	background-color: var(--white, #FFF);
	border-radius: 6px 6px 6px 0;
	margin-left:0px;
	margin-right:10px;
	width:calc(100% - 20px);
	font-size: 15px;
	color: var(--joo-color-1, #000);
	margin-top:15px;
	opacity:0;
	transition:all 1s;
	transition-delay:0.1s;
}
#joorna .joo-container .answer.loaded{
	margin-top:5px;
	opacity:1;
}

@media only screen and (max-width:560px){
	#joorna .joo-container .answer{
		font-size:15px;
	}
}

#joorna .joo-container .answer .text a{
    padding: 10px 50px 10px 10px;
    display: block;
    /*background-color: var(--joo-color-2);*/
    border-radius: 50px;
    color: var(--white, #FFF);
    position: relative;
    width: fit-content;
    max-width: 100%;
    background-color: var(--joo-color-1);
    margin: 10px 0;
    font-size: 1.6vh !important;
    font-weight: 600;
	text-decoration: none !important;
}
#joorna .joo-container .answer .text a::after{
	content: url("data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iYXJyb3ciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiPgoJPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNSA3KSI+CgkJPGc+CgkJCTxwYXRoIGQ9Ik0xNCA0LjI1QzE0LjQxNDIgNC4yNSAxNC43NSA0LjU4NTc5IDE0Ljc1IDUgMTQuNzUgNS4zNzk3IDE0LjQ2NzggNS42OTM0OSAxNC4xMDE4IDUuNzQzMTVMMTQgNS43NUgwQy0uNDE0MjE0IDUuNzUtLjc1IDUuNDE0MjEtLjc1IDUgLS43NSA0LjYyMDMtLjQ2Nzg0NiA0LjMwNjUxLS4xMDE3NzEgNC4yNTY4NUwwIDQuMjVIMTRaIiBzdHJva2U9Im5vbmUiIGZpbGw9IndoaXRlIi8+CgkJCTxwYXRoIGQ9Ik0xMy40Njk3IDQuNDY5NjdDMTMuNzYyNiA0LjE3Njc4IDE0LjIzNzQgNC4xNzY3OCAxNC41MzAzIDQuNDY5NyAxNC43OTY2NSA0LjczNTk0IDE0LjgyMDggNS4xNTI2IDE0LjYwMjkgNS40NDYyMUwxNC41MzAzIDUuNTMwMyA5LjUzMDMzIDEwLjUzMDNDOS4yMzc0NCAxMC44MjMyIDguNzYyNTYgMTAuODIzMiA4LjQ2OTY3IDEwLjUzMDMgOC4yMDM0IDEwLjI2NDEgOC4xNzkyIDkuODQ3NCA4LjM5NzA1IDkuNTUzN0w4LjQ2OTY3IDkuNDY5NjcgMTMuNDY5NyA0LjQ2OTY3WiIgc3Ryb2tlPSJub25lIiBmaWxsPSJ3aGl0ZSIvPgoJCQk8cGF0aCBkPSJNOC40Njk2Ny0uNTMwMzNDOC43MzU5NC0uNzk2NTk3IDkuMTUyNi0uODIwODAzIDkuNDQ2MjEtLjYwMjk0OEw5LjUzMDMtLjUzMDMzIDE0LjUzMDMgNC40Njk2N0MxNC44MjMyIDQuNzYyNTYgMTQuODIzMiA1LjIzNzQ0IDE0LjUzMDMgNS41MzAzIDE0LjI2NDEgNS43OTY2IDEzLjg0NzQgNS44MjA4IDEzLjU1MzggNS42MDI5MUwxMy40Njk3IDUuNTMwMzMgOC40Njk3IC41MzAzM0M4LjE3Njc4LjIzNzQzNyA4LjE3Njc4LS4yMzc0MzcgOC40Njk3LS41MzAzM1oiIHN0cm9rZT0ibm9uZSIgZmlsbD0id2hpdGUiLz4KCQk8L2c+Cgk8L2c+Cgk8cG9seWdvbiBwb2ludHM9IjAgMCAyNCAwIDI0IDI0IDAgMjQiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlPSJub25lIiBmaWxsPSJub25lIi8+Cjwvc3ZnPg==");
	position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--joo-color-1);
    border-radius: 50%;
    padding: 4px;
}

#joorna .joo-container .answer .credits{
	font-size: 10px;
	color: var(--joo-color-1, #000);
	margin-top:5px;
	opacity:0;
	transition:all 0.5s;
}
#joorna .joo-container .answer .credits a{
	color: inherit;
	text-decoration:underline;
}
#joorna .joo-container .answer.full-loaded .credits{
	opacity:0.7;
	display: contents !important;
}



#joorna .joo-container .welcome{
	margin-bottom:20px;
	display: flex !important;
}

#joorna .joo-container .preset{
	padding: 16px;
	background-color: var(--joo-color-1);
	color:var(--white, #FFF);
	border-radius: 50px;
	margin-left:20px;
	font-size: 14px;
	margin-top:5px;
	padding:8px 10px;
	cursor:pointer;
}




#joorna .open-icon path{
  fill: var(--joo-color-1);
}









/* ------ MODAL ------ */


#joorna-modal-input-box{
	max-width:480px;
	margin:auto;
}
#joorna-modal-input-box .chat-bar{
	width:100%;
	border-radius:100px;
	margin:auto;
	position: relative;
	overflow: hidden;
	transition:all 0.8s;
}

#joorna-modal-input-box .chat-bar .marquee-placeholder-box{
	width:calc(100% - 52px);
	height:100%;
	position:absolute;
	top:0;
	left:0;
	z-index:2;
	pointer-events:none;
	overflow:hidden;
	opacity:1;
	transition:all 0.2s;
}
#joorna-modal-input-box .chat-bar .marquee-placeholder-box.hide{
	opacity:0;
}

#joorna-modal-input-box .chat-bar .marquee-placeholder{
	width:max-content;
	height:100%;
	display:flex;
	align-items:center;
	color:var(--joo-color-1, #000);
	pointer-events:none;
	animation:marquee 10s infinite;
}
#joorna-modal-input-box .chat-bar .marquee-placeholder .label{
	width:max-content;
	padding:0 15px;
	font-size:16px;
}
@media only screen and (max-width:560px){
	#joorna-modal-input-box .chat-bar .marquee-placeholder .label{
		font-size:12px;
	}
}

#joorna-modal-input-box .chat-bar input{
	width:100%;
	font-family: inherit;
	padding:16px 55px 16px 16px;
	background-color:#FFF;
	border:0px;
	border-radius:100px;
	font-size:16px;
	line-height:1;
	font-weight:500;
	color:var(--joo-color-1, #000);
	transition:all 0.4s;
}
#joorna-modal-input-box .chat-bar input:focus-visible {
  	outline: none;
  	background-color:rgba(255, 255, 255, 0.9);
}

#joorna-modal-input-box .chat-bar button{
	position:absolute;
	width:40px;
	height:40px;
	border-radius:50% !important;
	top:6px;
	right:6px;
	border:0;
	background-color:var(--joo-color-1, #FFF);
	color:var(--white, #FFF);
	display: grid;
	align-items:center;
	justify-content: center;
	cursor:pointer;
	transition:all 0.4s;
	z-index:3;
}
#joorna-modal-input-box .chat-bar button .arrow{
	width:28px;
	transform:scale(1);
	transition:all 0.4s;
	transition-delay:0.1s;
}

#joorna-modal-input-box .chat-bar button:hover{
	background-color:var(--joo-color-2, #000);
	color:var(--joo-color-1, #000);
}
#joorna-modal-input-box .chat-bar button:hover .arrow{
	transform:scale(1.2);
}





/*----------------------------------modifiche per mobile--------------------------------*/
@media only screen and (max-width:768px){
	#joorna-launcher-mob{
		width:100% !important;
		/*height:50px;*/
		height:120px !important;
		position: relative !important;
		/*transform: translate(0px, -23%);*/


		bottom:2.4vh;
		right:0;
		color:var(--joo-color-1);
		border-radius:5px;
		transition:all 0.4s;
		cursor:pointer;
		display:grid;
		align-items: center;
		justify-content: center;
		overflow:hidden;
		opacity: 1;
		}
	.cls-1 {fill: #e44d72;
	}
	#joorna-launcher-mob.hide{
	opacity:0;
	pointer-events: none;
}
	#joorna-launcher-mob svg {
        width: 2.8vh;
        padding: 5px 1px !important;
    }

    /*#joorna-launcher{display:none !important;}*/
	
}

/*--------------------------------------------------------*/


/* JOORNA TOOLTIP*/
/* Tooltip container */
    .tooltip {
    position: absolute;
    bottom: 100px;
    right: 23px;
    background: var(--joo-color-1);
    color: #ffffff;
    font-family: 'REM', sans-serif;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0; /* Nasconde inizialmente */
    transform: translateY(20px) scale(0.8); /* Inizia più piccolo */
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    position: relative;
    width: 270px;
    font-weight: 500;
}

/* Tooltip freccia (forma a fumetto, sulla base a destra) */
.tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px; /* Posiziona la freccia sotto il tooltip */
    right: 10px; /* Sposta la freccia verso il lato destro */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 0 10px; /* Triangolo con il bordo superiore visibile */
    border-color: var(--joo-color-1) transparent transparent transparent; /* Colore del triangolo */
}

/* Pulsante di chiusura */
.tooltip .close-tooltip {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.tooltiphide {
	display: none;
}



/* Tooltip visibile */
.tooltip.visible {
    opacity: 1; /* Mostra il tooltip */
    transform: translateY(0) scale(1); /* Rende visibile e riporta alla dimensione originale */
    pointer-events: auto;
    font-size: 13px !important;
}

/* Animazione pulsante (ingrandimento e rimpicciolimento) */
@keyframes pulse {
    0%, 100% {
        transform: scale(1); /* Dimensione originale */
    }
    50% {
        transform: scale(1.1); /* Ingrandimento */
    }
}

/* Animazione tremore */
@keyframes shake {
    0%, 100% {
        transform: translateX(0); /* Posizione originale */
    }
    25% {
        transform: translateX(-2px); /* Sposta a sinistra */
    }
    75% {
        transform: translateX(2px); /* Sposta a destra */
    }
}

/* Classe per animazione pulse */
.tooltip.pulse {
    animation: pulse 0.5s ease; /* Durata breve dell'animazione */
}

/* Classe per animazione shake */
.tooltip.shake {
    animation: shake 0.2s ease; /* Durata breve dell'animazione */
}

/* FINE JOORNA TOOLTIP*/
/*
.logo-struttura{width:15%;}

#joorna.openbig .logo-struttura{width:8vh !important;}
#joorna.modal.open .logo-struttura{width:8vh !important;}
#joorna.modal.openbig .logo-struttura{width:8vh !important;}*/


/*ICON RIGA TOP JO*/
.row-chat-icon{
	display: flex;
    justify-content: space-between;
	padding-bottom: 8px;
	align-items: center;
}
.logo-chat-icon{
    padding-top: 20px;
	position: relative;
	
}
.logo-chat-icon img{
	width: 100%;
	max-width: 150px !important;
	max-height: 60px !important;
}
.icone-chat{display: flex;}
.trash-chat{
	position: relative;
    display: flex;
    right: 2vh;
    padding: 10px 10px;
    border-radius: 5px;
	transition:all 0.4s;
	cursor: pointer;
}
.big-chat{
	position: relative;
    display: flex;
    right: 2vh;
    padding: 10px 10px;
    border-radius: 5px;
	transition:all 0.4s;
	cursor: pointer;
}
.small-chat{
	position: relative;
    display: flex;
    right: 2vh;
    padding: 10px 10px;
    border-radius: 5px;
	transition:all 0.4s;
	cursor: pointer;
}

#joorna .chat-close {
    cursor: pointer;
	position: relative;
    display: flex;
    right: 2vh;
    padding: 10px 10px;
    border-radius: 5px;
	transition:all 0.4s;
}

.trash-chat:hover,.big-chat:hover,.small-chat:hover,#joorna .chat-close:hover{
	background-color: var(--joo-color-1);
	fill: #fff;
}
#trash-icon-svg{
	fill:var(--joo-color-1);
}
#trash-icon-svg:hover{
	fill:#fff;
}
/* Cambia il colore dell'icona quando il contenitore è in hover */
.big-chat:hover #trash-icon-svg{
    fill: #fff; 
}
.small-chat:hover #trash-icon-svg{
    fill: #fff; 
}
.trash-chat:hover #trash-icon-svg{
    fill: #fff; 
}
.chat-close:hover #trash-icon-svg{
    fill: #fff; 
}
/**/

@media only screen and (max-width:768px){
.small-chat,.big-chat{display:none !important}
	}

/*finestra modale di conferma cancellazione chat */
.modalT {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0s, opacity 0.3s ease;
	
}
.modalT.show {
	visibility: visible;
	opacity: 1;
}
.modalT-content {
	background: white;
	padding: 30px 40px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.modalT-buttons {
	margin-top: 20px;
}
.modalT-buttons button {
	padding: 10px 20px;
	margin: 0 10px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}
.btn-yes {
	background-color:var(--joo-color-1);
	color: var(--joo-color-2);
	cursor: pointer;
}
.btn-no {
	background-color:var(--joo-color-1);
	color: var(--joo-color-2);
	cursor: pointer;
}



/*Chat aperta anche con cambio pagina*/
#joorna-chat.no-animation {
    animation: none !important; /* Disabilita l'animazione */
    transition: none !important; /* Disabilita le transizioni */
}
.emoji{
	border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}

#joorna .joo-container .answer ul li strong {
    font-weight: 100;
    font-size: 12px;
    line-height: 0.5;
	padding: 5px 10px 5px 10px;
    border:1px solid var(--joo-color-1);
    border-radius: 50px;
}



#joorna .joo-container .answer  ul {
    padding-left: 0;
    margin-left: 0;
    list-style-position: inside; /* opzionale, per allineare i pallini/testi */
}

#joorna .joo-container .answer  li {
    padding-left: 0;
    margin-left: 0;
	padding-bottom:1.2vh;
}



/*

#joorna .joo-container .answer .text a{
    padding: 10px 50px 10px 10px;
    display: block;
    background-color: var(--joo-color-2);
    border-radius: 50px;
    color: var(--white, #FFF);
    position: relative;
    width: fit-content;
    max-width: 100%;
    background-color: #A49055;
    margin: 10px 0;
    font-size: 1.2vh;
	text-decoration: none !important;
}
*/


#confirmationModal h2 {
	font-size: 4.5vh !important;
	line-height: 5vh !important;
	color:var(--joo-color-1) !important;
}
#confirmationModal p {
	font-size: 1.5vh !important;
}
#confirmYes, #confirmNo{
border-radius: 50px !important;
 border: 1px solid var(--joo-color-1);
 color: var(--joo-color-1) !important;
 background-color: var(--joo-color-2) !important;
 }
#confirmYes:hover, #confirmNo:hover{
	color: var(--joo-color-2) !important;
	background-color: var(--joo-color-1) !important;
    border: 1px solid var(--joo-color-1);}



/*stile rov*/
@media only screen and (min-width:768px){
	#joorna.openbig #joorna-chat {
    width: 70% !important;
    left: 15% !important;}
	
	#joorna.openbig .scroll-container {
    padding: 0 4vh 50px 2vh !important;}
}



.logo-struttura {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #fff;
    padding: 10px;
    margin-right: 1.2vh;
	width: 6vh !important;
    height: 6vh !important;
}

.logo-struttura #logo {
	display: block;
    width: 6vh !important;
	max-width: 6vh !important;
    padding: 10px;
}

/*-----utilizzo joorna mob
@media only screen and (max-width:768px){
	#joorna-launcher{
		display:none !important;}
	.tooltip.visible {
       display:none;}
	}
/*------*/

@media only screen and (min-width:768px){
.joorna-mob{display:none;}
}
/*--versione con mob 
@media only screen and (max-width:768px){
#joorna-launcher {margin-bottom: 100px ;}
.tooltip.visible {bottom: 20vh ;}
}--*/

/*--per tablet con be

@media only screen and (min-width: 768px) and (max-width: 1200px) { 
  
#joorna-launcher {
    margin-bottom: 150px ;}
	
	.tooltip.visible {
    bottom: 28vh ;}}
	
@media only screen and (min-width: 1200px) {
#joorna-launcher {
    margin-bottom: 0px !important;}
	}	

--*/


/* THVjYSBQZXJpbmkgMjAyNC0xMC0yMw */


/* evitare che il bottone risulti visibile quando carica*/

#joorna .input-box.waiting .chat-bar button {
	display:none !important;
}

