/**
 * =============================================================================
 * PROBAR - PERSONALIZZAZIONE THE BARS
 * -----------------------------------------------------------------------------
 * Caricato solo su template-personalizzazione.php.
 * Lusso quieto: fondo nero del tema, card antracite, dettagli oro #FFCE53,
 * titoli Playfair Display. Mobile-first: la griglia parte a colonna singola,
 * lo stepper e la dropzone hanno bersagli tattili da 48px.
 * =============================================================================
 */

.abm-pers-page {
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 16px 70px;
	color: #cdcdcd;
}

/* ---------- Bottoni ---------- */
.abm-pers-btn {
	display: inline-block;
	min-height: 48px;
	padding: 13px 26px;
	border-radius: 26px;
	font-size: 0.95rem;
	letter-spacing: 0.4px;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
	border: 1px solid transparent;
}

.abm-pers-btn--gold {
	background: linear-gradient(180deg, #FFE9AE 0%, #FFCE53 100%);
	color: #111;
	font-weight: 600;
	border-color: #FFCE53;
}

.abm-pers-btn--gold:hover {
	box-shadow: 0 0 18px rgba(255, 206, 83, 0.35);
	color: #111;
}

.abm-pers-btn--ghost {
	background: transparent;
	color: #e8e8e8;
	border-color: #4a3f1e;
}

.abm-pers-btn--ghost:hover {
	border-color: #FFCE53;
	color: #FFCE53;
}

/* ---------- Hero ---------- */
.abm-pers-hero {
	text-align: center;
	max-width: 860px;
	margin: 18px auto 40px;
}

.abm-pers-kicker {
	color: #FFCE53;
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 0.8rem;
	margin: 0 0 12px;
}

.abm-pers-title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.9rem, 5vw, 3.2rem);
	line-height: 1.12;
	color: #f4f4f4;
	margin: 0 0 16px;
}

.abm-pers-sub {
	font-size: 1.02rem;
	line-height: 1.7;
	color: #b9b9b9;
	margin: 0 auto 24px;
	max-width: 640px;
}

.abm-pers-hero-cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* ---------- Sezioni ---------- */
.abm-pers-section {
	margin: 0 0 56px;
}

.abm-pers-h2 {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.4rem, 3.4vw, 2.1rem);
	color: #f4f4f4;
	text-align: center;
	margin: 0 0 10px;
}

.abm-pers-lead {
	text-align: center;
	color: #b9b9b9;
	font-size: 0.98rem;
	margin: 0 auto 28px;
	max-width: 620px;
}

/* ---------- Le due tecniche ---------- */
.abm-pers-techgrid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	max-width: 900px;
	margin: 0 auto;
}

@media (min-width: 700px) {
	.abm-pers-techgrid {
		grid-template-columns: 1fr 1fr;
	}
}

.abm-pers-techcard {
	background: #141414;
	border: 1px solid #2a2a2a;
	border-radius: 14px;
	padding: 26px 24px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.abm-pers-techcard:hover {
	border-color: #4a3f1e;
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.abm-pers-techcard__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
}

.abm-pers-techcard__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.abm-pers-techcard--laser .abm-pers-techcard__dot {
	background: #0c0c0c;
	border: 2px solid #FFCE53;
}

.abm-pers-techcard--fusion .abm-pers-techcard__dot {
	background: conic-gradient(#e4572e, #FFCE53, #4f9d69, #3d7dd8, #a44fd8, #e4572e);
	border: 2px solid rgba(255, 255, 255, 0.25);
}

.abm-pers-techcard__name {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.35rem;
	color: #FFCE53;
	margin: 0;
}

.abm-pers-techcard__tagline {
	color: #d9d9d9;
	line-height: 1.6;
	margin: 0 0 14px;
}

.abm-pers-techcard__points {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.abm-pers-techcard__points li {
	position: relative;
	padding: 4px 0 4px 24px;
	color: #b9b9b9;
	font-size: 0.93rem;
	line-height: 1.55;
}

.abm-pers-techcard__points li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 12px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #FFCE53;
}

.abm-pers-techcard__price {
	font-size: 1.35rem;
	color: #f4f4f4;
	margin: 0;
	border-top: 1px solid #2a2a2a;
	padding-top: 14px;
}

.abm-pers-techcard__price .woocommerce-Price-amount {
	color: #FFCE53;
	font-weight: 700;
}

.abm-pers-techcard__pricenote {
	display: block;
	font-size: 0.82rem;
	color: #9aa2a6;
	margin-top: 4px;
}

/* ---------- Come funziona ---------- */
.abm-pers-steps__list {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	max-width: 980px;
	margin: 0 auto;
	padding: 0;
	counter-reset: none;
}

@media (min-width: 700px) {
	.abm-pers-steps__list {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

.abm-pers-steps__item {
	background: #0f0f0f;
	border: 1px solid #2a2a2a;
	border-radius: 14px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: #b9b9b9;
	font-size: 0.92rem;
	line-height: 1.55;
}

.abm-pers-steps__item strong {
	color: #f4f4f4;
	font-size: 1rem;
}

.abm-pers-steps__num {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid #FFCE53;
	color: #FFCE53;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.05rem;
	margin-bottom: 6px;
}

/* ---------- Griglia configuratore ---------- */
.abm-pers-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

@media (min-width: 640px) {
	.abm-pers-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.abm-pers-grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

.abm-pers-empty {
	text-align: center;
	color: #b9b9b9;
	background: #141414;
	border: 1px solid #2a2a2a;
	border-radius: 14px;
	padding: 30px 20px;
	max-width: 640px;
	margin: 0 auto;
}

.abm-pers-card {
	background: #141414;
	border: 1px solid #2a2a2a;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.3s ease;
}

.abm-pers-card:focus-within,
.abm-pers-card:hover {
	border-color: #4a3f1e;
}

.abm-pers-card__media {
	display: block;
	background: #0c0c0c;
}

.abm-pers-card__media img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 14px;
	box-sizing: border-box;
}

.abm-pers-card__body {
	padding: 18px 18px 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.abm-pers-card__name {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.08rem;
	line-height: 1.3;
	color: #f4f4f4;
	margin: 0;
}

.abm-pers-card__price {
	margin: 0;
	color: #FFCE53;
	font-size: 1.15rem;
	font-weight: 700;
}

.abm-pers-card__pricenote {
	display: block;
	color: #9aa2a6;
	font-size: 0.78rem;
	font-weight: 400;
	margin-top: 2px;
}

/* Prezzo del blocco da 6: trasparenza sul costo reale dell'unita' minima */
.abm-pers-card__blockprice {
	display: block;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #2a2a2a;
	color: #e8e8e8;
	font-size: 0.9rem;
	font-weight: 600;
}

.abm-pers-card__blockprice .woocommerce-Price-amount {
	color: #FFCE53;
}

.abm-pers-card__blockx {
	display: block;
	margin-top: 1px;
	color: #9aa2a6;
	font-size: 0.76rem;
	font-weight: 400;
}

.abm-pers-card__blockx .woocommerce-Price-amount {
	color: #9aa2a6;
}

/* ---------- Stepper a blocchi ---------- */
.abm-pers-stepper {
	display: flex;
	align-items: stretch;
	border: 1px solid #3a3a3a;
	border-radius: 26px;
	overflow: hidden;
	width: fit-content;
}

.abm-pers-stepper__btn {
	width: 48px;
	min-height: 48px;
	background: #0f0f0f;
	color: #FFCE53;
	border: none;
	font-size: 1.25rem;
	cursor: pointer;
	transition: background 0.2s ease;
}

.abm-pers-stepper__btn:hover {
	background: #1d1d1d;
}

.abm-pers-stepper__input {
	width: 74px;
	text-align: center;
	background: #141414;
	color: #f4f4f4;
	border: none;
	border-left: 1px solid #3a3a3a;
	border-right: 1px solid #3a3a3a;
	font-size: 1.05rem;
	-moz-appearance: textfield;
	appearance: textfield;
}

.abm-pers-stepper__input::-webkit-outer-spin-button,
.abm-pers-stepper__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.abm-pers-blocks {
	margin: -4px 0 0;
	color: #9aa2a6;
	font-size: 0.85rem;
}

/* ---------- Toggle personalizzazione ---------- */
.abm-pers-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
	min-height: 48px;
}

.abm-pers-toggle__check {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.abm-pers-toggle__pill {
	flex: 0 0 auto;
	width: 46px;
	height: 26px;
	border-radius: 13px;
	background: #2a2a2a;
	border: 1px solid #3a3a3a;
	position: relative;
	transition: background 0.25s ease, border-color 0.25s ease;
}

.abm-pers-toggle__pill::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #9aa2a6;
	transition: transform 0.25s ease, background 0.25s ease;
}

.abm-pers-toggle__check:checked + .abm-pers-toggle__pill {
	background: rgba(255, 206, 83, 0.18);
	border-color: #FFCE53;
}

.abm-pers-toggle__check:checked + .abm-pers-toggle__pill::after {
	transform: translateX(20px);
	background: linear-gradient(180deg, #FFE9AE 0%, #FFCE53 100%);
}

.abm-pers-toggle__check:focus-visible + .abm-pers-toggle__pill {
	outline: 2px solid #FFCE53;
	outline-offset: 2px;
}

.abm-pers-toggle__label {
	color: #e8e8e8;
	font-size: 0.95rem;
}

/* ---------- Pannello di configurazione ---------- */
.abm-pers-config {
	display: flex;
	flex-direction: column;
	gap: 14px;
	border-top: 1px solid #2a2a2a;
	padding-top: 14px;
}

.abm-pers-config__label {
	display: block;
	color: #9aa2a6;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin: 0 0 8px;
}

.abm-pers-config__label em {
	text-transform: none;
	letter-spacing: 0;
	font-style: normal;
	opacity: 0.8;
}

.abm-pers-techpick {
	border: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.abm-pers-techpick legend {
	padding: 0;
}

.abm-pers-techpick__opt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.abm-pers-techpick__card {
	display: flex;
	flex-direction: column;
	gap: 3px;
	background: #0f0f0f;
	border: 1px solid #3a3a3a;
	border-radius: 10px;
	padding: 12px;
	cursor: pointer;
	min-height: 48px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.abm-pers-techpick__opt input:checked + .abm-pers-techpick__card {
	border-color: #FFCE53;
	box-shadow: 0 0 14px rgba(255, 206, 83, 0.22);
}

.abm-pers-techpick__opt input:focus-visible + .abm-pers-techpick__card {
	outline: 2px solid #FFCE53;
	outline-offset: 2px;
}

.abm-pers-techpick__name {
	color: #f4f4f4;
	font-size: 0.92rem;
	font-weight: 600;
}

.abm-pers-techpick__price {
	color: #9aa2a6;
	font-size: 0.78rem;
}

.abm-pers-techpick__price .woocommerce-Price-amount {
	color: #FFCE53;
}

/* ---------- Dropzone ---------- */
.abm-pers-drop {
	border: 1.5px dashed #4a3f1e;
	border-radius: 12px;
	background: #0f0f0f;
	padding: 20px 16px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.25s ease, background 0.25s ease;
}

.abm-pers-drop:focus-visible {
	outline: 2px solid #FFCE53;
	outline-offset: 2px;
}

.abm-pers-drop--over {
	border-color: #FFCE53;
	background: rgba(255, 206, 83, 0.06);
}

.abm-pers-drop__idle,
.abm-pers-drop__busy,
.abm-pers-drop__done {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.abm-pers-drop__icon {
	font-size: 1.6rem;
	color: #FFCE53;
	line-height: 1;
}

.abm-pers-drop__text {
	color: #d9d9d9;
	font-size: 0.92rem;
	line-height: 1.5;
}

.abm-pers-drop__text em {
	font-style: normal;
	color: #9aa2a6;
	font-size: 0.84rem;
}

.abm-pers-drop__hint {
	color: #6f6f6f;
	font-size: 0.76rem;
}

.abm-pers-drop__preview img {
	max-width: 90px;
	max-height: 90px;
	border-radius: 8px;
	background: #fff;
	padding: 4px;
	box-sizing: content-box;
}

.abm-pers-drop__pdfchip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 8px;
	background: #1d1d1d;
	border: 1px solid #FFCE53;
	color: #FFCE53;
	font-weight: 700;
	letter-spacing: 1px;
}

.abm-pers-drop__filename {
	color: #e8e8e8;
	font-size: 0.86rem;
	word-break: break-all;
}

.abm-pers-drop__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.abm-pers-drop__replace,
.abm-pers-drop__delete {
	background: none;
	border: 1px solid #3a3a3a;
	border-radius: 18px;
	color: #9aa2a6;
	font-size: 0.8rem;
	padding: 7px 14px;
	min-height: 36px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Sostituisci: sfondo oro, testo nero al passaggio del mouse */
.abm-pers-drop__replace:hover,
.abm-pers-drop__replace:focus-visible {
	background: linear-gradient(180deg, #FFE9AE 0%, #FFCE53 100%);
	border-color: #FFCE53;
	color: #111;
	outline: none;
}

/* Elimina: piu' sottile, vira sul rosso tenue del "rimuovi" */
.abm-pers-drop__delete {
	font-size: 0.76rem;
	padding: 7px 12px;
}

.abm-pers-drop__delete:hover,
.abm-pers-drop__delete:focus-visible {
	color: #f08a8a;
	border-color: #6e3535;
	outline: none;
}

.abm-pers-spinner {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #3a3a3a;
	border-top-color: #FFCE53;
	animation: abm-pers-spin 0.8s linear infinite;
}

@keyframes abm-pers-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.abm-pers-spinner { animation-duration: 2.5s; }
}

/* ---------- Note e costo ---------- */
.abm-pers-note__field {
	width: 100%;
	background: #0f0f0f;
	border: 1px solid #3a3a3a;
	border-radius: 10px;
	color: #e8e8e8;
	padding: 10px 12px;
	font-size: 0.9rem;
	resize: vertical;
	box-sizing: border-box;
}

.abm-pers-note__field:focus {
	border-color: #FFCE53;
	outline: none;
}

.abm-pers-cost {
	margin: 0;
	color: #FFCE53;
	font-size: 0.9rem;
	background: rgba(255, 206, 83, 0.07);
	border: 1px solid rgba(255, 206, 83, 0.3);
	border-radius: 10px;
	padding: 10px 12px;
}

/* ---------- Feedback ---------- */
.abm-pers-feedback {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.5;
}

.abm-pers-feedback--err {
	color: #f08a8a;
}

.abm-pers-feedback--ok {
	color: #8fd6a5;
}

.abm-pers-feedback a {
	color: #FFCE53;
	text-decoration: underline;
}

.abm-pers-card__cta {
	margin-top: auto;
	width: 100%;
}

.abm-pers-card__cta:disabled {
	opacity: 0.55;
	cursor: wait;
}

/* ---------- FAQ ---------- */
.abm-pers-faq__list {
	max-width: 780px;
	margin: 0 auto;
}

.abm-pers-faq__item {
	background: #141414;
	border: 1px solid #2a2a2a;
	border-radius: 12px;
	margin: 0 0 10px;
	overflow: hidden;
	transition: border-color 0.25s ease;
}

.abm-pers-faq__item[open] {
	border-color: #4a3f1e;
}

.abm-pers-faq__q {
	list-style: none;
	cursor: pointer;
	padding: 16px 46px 16px 18px;
	color: #f4f4f4;
	font-size: 0.98rem;
	position: relative;
	min-height: 48px;
	box-sizing: border-box;
}

.abm-pers-faq__q::-webkit-details-marker {
	display: none;
}

.abm-pers-faq__q::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: #FFCE53;
	font-size: 1.3rem;
	transition: transform 0.25s ease;
}

.abm-pers-faq__item[open] .abm-pers-faq__q::after {
	transform: translateY(-50%) rotate(45deg);
}

.abm-pers-faq__a {
	margin: 0;
	padding: 0 18px 18px;
	color: #b9b9b9;
	font-size: 0.92rem;
	line-height: 1.65;
}

/* ---------- CTA finale ---------- */
.abm-pers-final {
	text-align: center;
	background: #0f0f0f;
	border: 1px solid #2a2a2a;
	border-radius: 16px;
	padding: 40px 20px;
	margin-bottom: 0;
}

.abm-pers-final .abm-pers-lead {
	margin-bottom: 20px;
}

/* ---------- Carrello: quantita' servizio bloccata ---------- */
.abm-pers-qty-locked {
	display: inline-block;
	min-width: 34px;
	text-align: center;
	color: #FFCE53;
	font-weight: 600;
}
