/* ===== PuntoF – Prenota Specialista ===== */

/* Griglia archivio */
#specialisti-container{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	align-items: start;
}

.specialisti_box{
	background: #faf3ff;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(150, 145, 145, 0.2);
	position: relative;
}

.specialisti_box .img{
	float: left;
	width: 200px;
	height: 200px;
	overflow: hidden;
	border-radius: 100px;
}

.specialisti_box .img img{
	width: 200px;
	height: 200px;
	object-fit: cover;
}

.specialisti_box .content{
	float: right;
	width: 255px;
}

.specialisti_box .content h4{
	margin-top: 0;
}

/* Bottoni */
.pf-actions{
	margin-top: 15px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.pf-btn{
	display: inline-block;
	padding: 7px 16px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	transition: all .25s ease;
}

.pf-btn-outline{
	border: 1px solid #b8a2c9;
	color: #b8a2c9;
	background: #fff;
}

.pf-btn-outline:hover{
	background: #b8a2c9;
	color: #fff;
}

.pf-btn-primary{
	background: #78deaf;
	color: #fff;
	border: 1px solid #78deaf;
}

.pf-btn-primary:hover{
	background: #5fc998;
	border-color: #5fc998;
	color: #fff;
}

/* ===== Form prenotazione: campi a tutta larghezza ===== */
.pf-form-wrap label{
	display: block;
	width: 100%;
	margin-bottom: 18px;
	font-weight: 600;
	color: #555555;
}

/* CF7 avvolge gli input in uno span inline: va reso block */
.pf-form-wrap .wpcf7-form-control-wrap{
	display: block;
	width: 100%;
}

.pf-form-wrap input[type="text"],
.pf-form-wrap input[type="email"],
.pf-form-wrap input[type="tel"],
.pf-form-wrap input[type="url"],
.pf-form-wrap input[type="number"],
.pf-form-wrap input[type="date"],
.pf-form-wrap textarea,
.pf-form-wrap select{
	width: 100%;
	box-sizing: border-box;
	margin-top: 6px;
	padding: 10px 14px;
	border: 1px solid #d9d0e3;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 400;
	background: #ffffff;
}

.pf-form-wrap textarea{
	min-height: 120px;
	resize: vertical;
}

.pf-form-wrap input[type="text"]:focus,
.pf-form-wrap input[type="email"]:focus,
.pf-form-wrap input[type="tel"]:focus,
.pf-form-wrap textarea:focus,
.pf-form-wrap select:focus{
	outline: none;
	border-color: #b8a2c9;
}

/* Campo specialista (readonly) */
.pf-form-wrap input[readonly]{
	background: #f5f1f8;
	color: #6f5b82;
	font-weight: 600;
	cursor: default;
}

/* Checkbox, radio e privacy restano in linea */
.pf-form-wrap input[type="checkbox"],
.pf-form-wrap input[type="radio"]{
	width: auto;
	margin-right: 6px;
}

.pf-form-wrap .wpcf7-checkbox .wpcf7-list-item,
.pf-form-wrap .wpcf7-radio .wpcf7-list-item,
.pf-form-wrap .wpcf7-acceptance .wpcf7-list-item{
	display: inline-block;
	margin: 0 20px 0 0;
}

.pf-form-wrap .wpcf7-acceptance label,
.pf-form-wrap .wpcf7-checkbox label,
.pf-form-wrap .wpcf7-radio label{
	display: inline;
	font-weight: 400;
}

/* CTA sulla scheda singola (sostituisce il vecchio box "Prenotazione") */
.pf-single-cta{
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 10px;
	padding: 10px;
}

.pf-single-cta .pf-btn{
	padding: 12px 26px;
	font-size: 15px;
}

/* ===== Messaggio di conferma dopo l'invio ===== */
.pf-form-success[hidden]{
	display: none;
}

.pf-form-success{
	background: #dcf9e7;
	border: 1px solid #78deaf;
	border-radius: 12px;
	padding: 36px 32px;
	text-align: center;
	color: #2f6b4f;
	outline: none;
}

.pf-form-success-icon{
	width: 56px;
	height: 56px;
	line-height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #78deaf;
	color: #ffffff;
	font-size: 30px;
	font-weight: bold;
}

.pf-form-success p{
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.6;
}

.pf-form-success p:first-of-type{
	font-size: 19px;
	font-weight: 700;
	color: #24583f;
}

.pf-form-success p:last-child{
	margin-bottom: 0;
}

/* ===== Pagina prenotazione: layout a due colonne ===== */
.pf-booking-layout{
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 40px;
	align-items: start;
}

.pf-booking-main{
	min-width: 0; /* evita l'overflow dei contenuti nella colonna grid */
}

/* Widget elenco terapie */
.pf-terapie-widget{
	background: #faf3ff;
	border-radius: 10px;
	padding: 22px 24px;
	position: sticky;
	top: 24px;
}

.pf-terapie-title{
	margin: 0 0 14px;
	font-size: 17px;
	color: #6f5b82;
	padding-bottom: 10px;
	border-bottom: 1px solid #e6d8f2;
}

.pf-terapie-list{
	list-style: none;
	margin: 0;
	padding: 0;
}

.pf-terapie-list li{
	margin: 0;
	border-bottom: 1px solid #efe6f7;
}

.pf-terapie-list li:last-child{
	border-bottom: 0;
}

.pf-terapie-list a{
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	padding: 9px 0;
	text-decoration: none;
	color: #555555;
	font-size: 14px;
	line-height: 1.4;
	transition: color .2s ease;
}

.pf-terapie-list a:hover .pf-terapia-nome{
	color: #b8a2c9;
}

.pf-terapia-count{
	flex: 0 0 auto;
	color: #a596b4;
	font-size: 13px;
}

/* Terapie del professionista corrente */
.pf-terapie-list li.is-active a .pf-terapia-nome{
	color: #6f5b82;
	font-weight: 700;
}

@media (max-width: 991px){
	.pf-booking-layout{
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.pf-terapie-widget{
		position: static;
	}
}

/* Responsive */
@media (max-width: 1155px){
	#specialisti-container{
		grid-template-columns: 1fr;
	}
	.specialisti_box{
		max-width: 600px;
		margin-left: auto;
		margin-right: auto;
	}
	.specialisti_box .img,
	.specialisti_box .content{
		float: none;
		width: 100%;
		text-align: center;
	}
	.specialisti_box .img img{
		margin: 0 auto;
	}
	.pf-actions{
		justify-content: center;
	}
}
