/* PWS Prenota 1.0.4 - tutto sotto .pws-prenota. Colori, caratteri e misure sono variabili con valori neutri:
   il tema del sito le ridefinisce su .pws-prenota. Il carattere del testo e' quello del sito (inherit). */
.pws-prenota {
	--pws-pr-testo: #1f2937;
	--pws-pr-tenue: #6b7280;
	--pws-pr-spento: #b8bec9;
	--pws-pr-bordo: #dfe3ea;
	--pws-pr-sfondo: #ffffff;
	--pws-pr-sfondo-tenue: #f3f5f9;
	--pws-pr-accento: #1f4fb0;
	--pws-pr-accento-testo: #ffffff;
	--pws-pr-accento-tenue: #e8eefb;
	--pws-pr-cta: var(--pws-pr-accento);
	--pws-pr-cta-testo: #ffffff;
	--pws-pr-errore: #b42318;
	--pws-pr-errore-sfondo: #fdecea;
	--pws-pr-ok: #15803d;
	--pws-pr-raggio: 14px;
	--pws-pr-font-titoli: inherit;
	--pws-pr-larghezza: 760px;
	--pws-pr-ombra: 0 10px 28px rgba(15, 30, 61, .10);

	font-family: inherit;
	color: var(--pws-pr-testo);
	max-width: var(--pws-pr-larghezza);
	margin: 0 auto;
	box-sizing: border-box;
	line-height: 1.55;
}
.pws-prenota *,
.pws-prenota *::before,
.pws-prenota *::after {
	box-sizing: border-box;
}
.pws-prenota p {
	margin: 0 0 12px;
}

/* I pulsanti del tema (Hello) hanno nowrap, padding e un hover/focus rosa: qui si riparte da zero,
   e ogni pulsante del plugin dichiara da se' sfondo e colore anche in :hover e :focus. */
.pws-prenota button {
	font: inherit;
	line-height: 1.3;
	white-space: normal;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
	text-align: inherit;
	margin: 0;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.pws-prenota input,
.pws-prenota textarea {
	font: inherit;
}
.pws-prenota :focus-visible {
	outline: 3px solid var(--pws-pr-accento);
	outline-offset: 2px;
}
.pws-prenota .pws-pr-titolo {
	font-family: var(--pws-pr-font-titoli);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
	margin: 0 0 18px;
	color: var(--pws-pr-testo);
}
.pws-prenota .pws-pr-titolo:focus {
	outline: none;
}

/* ---------------------------------------------------------------- passi */
.pws-prenota .pws-pr-passi {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 6px;
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	font-size: .85rem;
	color: var(--pws-pr-tenue);
	counter-reset: passo;
}
.pws-prenota .pws-pr-passi li {
	counter-increment: passo;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	font-weight: 500;
}
.pws-prenota .pws-pr-passi li + li::after {
	content: none;
}
.pws-prenota .pws-pr-passi li:not(:last-child)::after {
	content: "";
	display: inline-block;
	width: 22px;
	height: 2px;
	margin-left: 4px;
	border-radius: 2px;
	background: var(--pws-pr-bordo);
}
.pws-prenota .pws-pr-passi li::before {
	content: counter(passo);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--pws-pr-sfondo-tenue);
	color: var(--pws-pr-tenue);
	font-size: .78rem;
	font-weight: 700;
	flex: 0 0 auto;
}
.pws-prenota .pws-pr-passi li.fatto {
	color: var(--pws-pr-testo);
}
.pws-prenota .pws-pr-passi li.fatto::before {
	content: "\2713";
	background: var(--pws-pr-accento-tenue);
	color: var(--pws-pr-accento);
}
.pws-prenota .pws-pr-passi li.fatto:not(:last-child)::after {
	background: var(--pws-pr-accento);
}
.pws-prenota .pws-pr-passi li.attuale {
	color: var(--pws-pr-accento);
	font-weight: 700;
}
.pws-prenota .pws-pr-passi li.attuale::before {
	background: var(--pws-pr-accento);
	color: var(--pws-pr-accento-testo);
}

/* passi gia' fatti: pulsanti per tornarci (senza gli stili dei pulsanti del tema) */
.pws-prenota .pws-pr-passi li.fatto {
	position: relative;
}
.pws-prenota .pws-pr-passo-link,
.pws-prenota .pws-pr-passo-link:hover,
.pws-prenota .pws-pr-passo-link:focus {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: var(--pws-pr-bordo);
	text-underline-offset: 4px;
}
.pws-prenota .pws-pr-passo-link:hover {
	color: var(--pws-pr-accento);
	text-decoration-color: currentColor;
}

/* ---------------------------------------------------------------- elementi comuni */
.pws-prenota .pws-pr-scelta {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--pws-pr-sfondo-tenue);
	color: var(--pws-pr-tenue);
	font-size: .9rem;
}
.pws-prenota .pws-pr-scelta strong {
	color: var(--pws-pr-testo);
}
.pws-prenota .pws-pr-scelta .pws-pr-icona {
	color: var(--pws-pr-accento);
}
.pws-prenota .pws-pr-cambia,
.pws-prenota .pws-pr-cambia:hover,
.pws-prenota .pws-pr-cambia:focus {
	margin-left: 6px;
	padding: 3px 12px;
	border: 1px solid var(--pws-pr-bordo);
	border-radius: 999px;
	background: var(--pws-pr-sfondo);
	color: var(--pws-pr-accento);
	font-size: .8rem;
	font-weight: 600;
	cursor: pointer;
}
.pws-prenota .pws-pr-cambia:hover {
	border-color: var(--pws-pr-accento);
	background: var(--pws-pr-accento);
	color: var(--pws-pr-accento-testo);
}
.pws-prenota .pws-pr-icona {
	width: 20px;
	height: 20px;
	fill: currentColor;
	flex: 0 0 auto;
}
.pws-prenota .pws-pr-indietro,
.pws-prenota .pws-pr-link,
.pws-prenota .pws-pr-indietro:hover,
.pws-prenota .pws-pr-link:hover,
.pws-prenota .pws-pr-indietro:focus,
.pws-prenota .pws-pr-link:focus {
	display: inline-block;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 4px 0;
	color: var(--pws-pr-accento);
	font-size: .92rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	cursor: pointer;
}
.pws-prenota .pws-pr-indietro {
	display: block;
	margin: 0 0 12px;
	text-decoration: none;
}
.pws-prenota .pws-pr-indietro:hover,
.pws-prenota .pws-pr-indietro:focus {
	display: block;
	margin: 0 0 12px;
	text-decoration: underline;
}
.pws-prenota .pws-pr-nota,
.pws-prenota .pws-pr-errore,
.pws-prenota .pws-pr-avviso {
	padding: 14px 18px;
	border-radius: var(--pws-pr-raggio);
	background: var(--pws-pr-sfondo-tenue);
	margin: 0 0 16px;
}
.pws-prenota .pws-pr-errore {
	background: var(--pws-pr-errore-sfondo);
	color: var(--pws-pr-errore);
	font-weight: 600;
	border-left: 4px solid var(--pws-pr-errore);
}
.pws-prenota .pws-pr-avviso p:last-child {
	margin: 0;
}
.pws-prenota .pws-pr-avviso a {
	color: var(--pws-pr-accento);
	font-weight: 600;
}
.pws-prenota .pws-pr-fuso,
.pws-prenota .pws-pr-piccolo {
	font-size: .82rem;
	color: var(--pws-pr-tenue);
	margin: 12px 0 0;
}
.pws-prenota .pws-pr-attesa {
	color: var(--pws-pr-tenue);
}

/* ---------------------------------------------------------------- passo 1: tipi
   Un elenco di righe, non una griglia di card: regge due tipi come sei, a qualunque larghezza. */
.pws-prenota .pws-pr-tipi {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.pws-prenota .pws-pr-tipo,
.pws-prenota .pws-pr-tipo:hover,
.pws-prenota .pws-pr-tipo:focus {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 6px 18px;
	width: 100%;
	text-align: left;
	padding: 18px 22px;
	border: 1px solid var(--pws-pr-bordo);
	border-radius: var(--pws-pr-raggio);
	background: var(--pws-pr-sfondo);
	color: var(--pws-pr-testo);
	font-weight: 400;
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pws-prenota .pws-pr-tipo:hover {
	border-color: var(--pws-pr-accento);
	box-shadow: var(--pws-pr-ombra);
	transform: translateY(-2px);
}
.pws-prenota .pws-pr-tipo::after {
	content: "\2192";
	color: var(--pws-pr-spento);
	font-size: 1.2rem;
	line-height: 1;
	transition: color .2s, transform .2s;
}
.pws-prenota .pws-pr-tipo:hover::after {
	color: var(--pws-pr-accento);
	transform: translateX(3px);
}
.pws-prenota .pws-pr-tipo-icona {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--pws-pr-accento-tenue);
	color: var(--pws-pr-accento);
}
.pws-prenota .pws-pr-tipo-icona .pws-pr-icona {
	width: 22px;
	height: 22px;
}
.pws-prenota .pws-pr-tipo-corpo {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.pws-prenota .pws-pr-tipo-mod {
	color: var(--pws-pr-accento);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.pws-prenota .pws-pr-tipo-nome {
	font-family: var(--pws-pr-font-titoli);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.25;
}
.pws-prenota .pws-pr-tipo-desc {
	font-size: .9rem;
	font-weight: 400;
	color: var(--pws-pr-tenue);
	line-height: 1.5;
}
.pws-prenota .pws-pr-tipo-durata {
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--pws-pr-sfondo-tenue);
	font-size: .82rem;
	font-weight: 600;
	color: var(--pws-pr-testo);
	white-space: nowrap;
}

/* ---------------------------------------------------------------- passo 2: calendario */
.pws-prenota .pws-pr-cal {
	border: 1px solid var(--pws-pr-bordo);
	border-radius: var(--pws-pr-raggio);
	padding: 18px 18px 16px;
	background: var(--pws-pr-sfondo);
}
.pws-prenota .pws-pr-cal-testa {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.pws-prenota .pws-pr-mese {
	font-family: var(--pws-pr-font-titoli);
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0;
	color: var(--pws-pr-testo);
}
.pws-prenota .pws-pr-mese-nav,
.pws-prenota .pws-pr-mese-nav:hover,
.pws-prenota .pws-pr-mese-nav:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0 0 3px;
	border: 1px solid var(--pws-pr-bordo);
	border-radius: 50%;
	background: var(--pws-pr-sfondo);
	color: var(--pws-pr-testo);
	font-size: 1.5rem;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.pws-prenota .pws-pr-mese-nav:hover:not(:disabled) {
	border-color: var(--pws-pr-accento);
	background: var(--pws-pr-accento);
	color: var(--pws-pr-accento-testo);
}
.pws-prenota .pws-pr-mese-nav:disabled {
	opacity: .35;
	cursor: default;
}
.pws-prenota .pws-pr-griglia {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.pws-prenota .pws-pr-riga {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}
.pws-prenota .pws-pr-gs {
	text-align: center;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--pws-pr-tenue);
	padding: 4px 0 6px;
}
.pws-prenota .pws-pr-giorno {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 46px;
	padding: 0;
	border-radius: 12px;
	border: 0;
	background: transparent;
	color: var(--pws-pr-spento);
	font-size: .95rem;
	text-align: center;
}
.pws-prenota .pws-pr-oggi {
	text-decoration: none;
}
.pws-prenota .pws-pr-oggi::after {
	content: "";
	position: absolute;
	bottom: 7px;
	left: 50%;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: currentColor;
}
.pws-prenota button.pws-pr-libero,
.pws-prenota button.pws-pr-libero:focus {
	border: 0;
	background: var(--pws-pr-accento-tenue);
	color: var(--pws-pr-accento);
	font-weight: 700;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.pws-prenota button.pws-pr-libero:hover {
	border: 0;
	background: var(--pws-pr-accento);
	color: var(--pws-pr-accento-testo);
}

/* ---------------------------------------------------------------- passo 3: orari */
.pws-prenota .pws-pr-orari {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 10px;
}
.pws-prenota .pws-pr-orario,
.pws-prenota .pws-pr-orario:focus {
	padding: 13px 8px;
	border: 1px solid var(--pws-pr-bordo);
	border-radius: 12px;
	background: var(--pws-pr-sfondo);
	color: var(--pws-pr-testo);
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.pws-prenota .pws-pr-orario:hover {
	padding: 13px 8px;
	border: 1px solid var(--pws-pr-accento);
	border-radius: 12px;
	background: var(--pws-pr-accento);
	color: var(--pws-pr-accento-testo);
}

/* ---------------------------------------------------------------- passo 4: dati */
.pws-prenota .pws-pr-quando {
	font-family: var(--pws-pr-font-titoli);
	font-weight: 700;
	font-size: 1.05rem;
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: var(--pws-pr-raggio);
	background: var(--pws-pr-accento-tenue);
	color: var(--pws-pr-accento);
}
.pws-prenota .pws-pr-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}
.pws-prenota .pws-pr-form > * {
	grid-column: 1 / -1;
}
.pws-prenota .pws-pr-form > .pws-pr-campo:nth-child(1),
.pws-prenota .pws-pr-form > .pws-pr-campo:nth-child(2),
.pws-prenota .pws-pr-form > .pws-pr-campo:nth-child(3),
.pws-prenota .pws-pr-form > .pws-pr-campo:nth-child(4) {
	grid-column: auto;
}
.pws-prenota .pws-pr-campo {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 14px;
}
.pws-prenota .pws-pr-campo label {
	font-weight: 600;
	font-size: .92rem;
}
.pws-prenota .pws-pr-campo input,
.pws-prenota .pws-pr-campo textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--pws-pr-bordo);
	border-radius: 12px;
	background: var(--pws-pr-sfondo);
	color: var(--pws-pr-testo);
	font-size: 1rem;
	transition: border-color .15s, box-shadow .15s;
}
.pws-prenota .pws-pr-campo input:focus,
.pws-prenota .pws-pr-campo textarea:focus {
	outline: none;
	border-color: var(--pws-pr-accento);
	box-shadow: 0 0 0 3px var(--pws-pr-accento-tenue);
}
.pws-prenota .pws-pr-obbl {
	color: var(--pws-pr-errore);
}
.pws-prenota .pws-pr-facoltativo,
.pws-prenota .pws-pr-conta {
	font-weight: 400;
	font-size: .82rem;
	color: var(--pws-pr-tenue);
}
.pws-prenota .pws-pr-conta {
	align-self: flex-end;
}
.pws-prenota .pws-pr-esca {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.pws-prenota .pws-pr-consenso {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 4px 0 18px;
	padding: 14px 16px;
	border-radius: var(--pws-pr-raggio);
	background: var(--pws-pr-sfondo-tenue);
	font-size: .9rem;
	line-height: 1.5;
}
.pws-prenota .pws-pr-consenso input {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	flex: 0 0 auto;
	accent-color: var(--pws-pr-accento);
}
.pws-prenota .pws-pr-consenso a {
	color: var(--pws-pr-accento);
}

/* ---------------------------------------------------------------- pulsanti */
.pws-prenota .pws-pr-invia,
.pws-prenota .pws-pr-invia:hover,
.pws-prenota .pws-pr-invia:focus,
.pws-prenota .pws-pr-bottone,
.pws-prenota .pws-pr-bottone:hover,
.pws-prenota .pws-pr-bottone:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 13px 28px;
	border: 1px solid var(--pws-pr-accento);
	border-radius: 999px;
	background: var(--pws-pr-accento);
	color: var(--pws-pr-accento-testo);
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s, opacity .2s;
}
.pws-prenota .pws-pr-invia,
.pws-prenota .pws-pr-invia:hover,
.pws-prenota .pws-pr-invia:focus {
	justify-self: start;
	border-color: var(--pws-pr-cta);
	background: var(--pws-pr-cta);
	color: var(--pws-pr-cta-testo);
}
.pws-prenota .pws-pr-invia:hover:not(:disabled),
.pws-prenota .pws-pr-bottone:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: var(--pws-pr-ombra);
}
.pws-prenota .pws-pr-invia:disabled,
.pws-prenota .pws-pr-bottone:disabled {
	opacity: .45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}
.pws-prenota .pws-pr-secondario,
.pws-prenota .pws-pr-secondario:hover,
.pws-prenota .pws-pr-secondario:focus {
	background: var(--pws-pr-sfondo);
	color: var(--pws-pr-accento);
}
.pws-prenota .pws-pr-pericolo,
.pws-prenota .pws-pr-pericolo:hover,
.pws-prenota .pws-pr-pericolo:focus {
	background: var(--pws-pr-errore);
	border-color: var(--pws-pr-errore);
	color: #ffffff;
}
.pws-prenota .pws-pr-azioni {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

/* ---------------------------------------------------------------- riepilogo e conferma */
.pws-prenota .pws-pr-riepilogo {
	margin: 0 0 18px;
	padding: 8px 20px;
	border: 1px solid var(--pws-pr-bordo);
	border-radius: var(--pws-pr-raggio);
	background: var(--pws-pr-sfondo);
}
.pws-prenota .pws-pr-riepilogo-riga {
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 12px;
	padding: 10px 0;
}
.pws-prenota .pws-pr-riepilogo-riga + .pws-pr-riepilogo-riga {
	border-top: 1px solid var(--pws-pr-bordo);
}
.pws-prenota .pws-pr-riepilogo dt {
	color: var(--pws-pr-tenue);
	font-weight: 400;
	margin: 0;
}
.pws-prenota .pws-pr-riepilogo dd {
	margin: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}
.pws-prenota .pws-pr-riepilogo a {
	color: var(--pws-pr-accento);
}
.pws-prenota .pws-pr-ok {
	display: flex;
	align-items: center;
	gap: 12px;
}
.pws-prenota .pws-pr-ok::before {
	content: "\2713";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--pws-pr-ok);
	color: #ffffff;
	font-size: 1.1rem;
	flex: 0 0 auto;
}

@media (max-width: 600px) {
	.pws-prenota .pws-pr-titolo {
		font-size: 1.3rem;
	}
	/* sui telefoni i passi mostrano i numeri e il solo nome del passo attuale */
	.pws-prenota .pws-pr-passi li {
		font-size: 0;
		gap: 0;
	}
	.pws-prenota .pws-pr-passi li::before {
		font-size: .78rem;
	}
	.pws-prenota .pws-pr-passi li.attuale {
		font-size: .85rem;
		gap: 8px;
	}
	.pws-prenota .pws-pr-passi .pws-pr-passo-link,
	.pws-prenota .pws-pr-passi .pws-pr-passo-link:hover,
	.pws-prenota .pws-pr-passi .pws-pr-passo-link:focus {
		position: absolute;
		inset: 0;
		width: 100%;
		color: transparent;
		text-decoration: none;
	}
	.pws-prenota .pws-pr-passi li:not(:last-child)::after {
		width: 14px;
		margin-left: 6px;
	}
	/* riga del tipo su telefono: la durata scende sotto il testo */
	.pws-prenota .pws-pr-tipo,
	.pws-prenota .pws-pr-tipo:hover,
	.pws-prenota .pws-pr-tipo:focus {
		grid-template-columns: 40px minmax(0, 1fr) auto;
		gap: 8px 14px;
		padding: 16px;
	}
	.pws-prenota .pws-pr-tipo-icona {
		width: 40px;
		height: 40px;
		align-self: start;
	}
	.pws-prenota .pws-pr-tipo-durata {
		grid-column: 2;
		grid-row: 2;
		justify-self: start;
	}
	.pws-prenota .pws-pr-tipo::after {
		grid-column: 3;
		grid-row: 1;
	}
	.pws-prenota .pws-pr-cal {
		padding: 12px 8px;
	}
	.pws-prenota .pws-pr-riga {
		gap: 2px;
	}
	.pws-prenota .pws-pr-giorno {
		height: 42px;
		font-size: .9rem;
		border-radius: 10px;
	}
	.pws-prenota .pws-pr-form {
		grid-template-columns: 1fr;
	}
	.pws-prenota .pws-pr-riepilogo-riga {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.pws-prenota .pws-pr-invia,
	.pws-prenota .pws-pr-azioni .pws-pr-bottone {
		width: 100%;
	}
}
@media (prefers-reduced-motion: reduce) {
	.pws-prenota * {
		transition: none !important;
	}
}
