/* Académie Contatti — modulo. Usa i colori del tema se ci sono, altrimenti quelli di base. */
.atag-acc {
	--acc-accent: var(--wp--preset--color--accent, #72122f);
	--acc-accent-dark: var(--wp--preset--color--accent-dark, #560d23);
	--acc-ink: var(--wp--preset--color--ink, #1e1a18);
	--acc-muted: var(--wp--preset--color--muted, #5e5650);
	--acc-soft: var(--wp--preset--color--soft, #f5f1ed);
	--acc-stone: var(--wp--preset--color--stone, #eeeae6);
	--acc-line: var(--wp--preset--color--line, #ece6e0);
	--acc-error: #b42318;
	--acc-radius: var(--wp--custom--radius, 0px);
	margin-top: 24px;
	color: var(--acc-ink);
}
.atag-acc *,
.atag-acc *::before,
.atag-acc *::after {
	box-sizing: border-box;
}
.atag-acc__form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
}
.atag-acc__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.atag-acc__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	min-width: 0;
}
.atag-acc__field--full {
	grid-column: 1 / -1;
}
.atag-acc__label,
.atag-acc legend.atag-acc__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--acc-ink);
	padding: 0;
	margin: 0;
}
.atag-acc input[type="text"],
.atag-acc input[type="email"],
.atag-acc input[type="tel"],
.atag-acc textarea {
	font: inherit;
	font-size: 16px;
	width: 100%;
	min-height: 46px;
	padding: 12px 14px;
	color: var(--acc-ink);
	background: var(--acc-soft);
	border: 1px solid var(--acc-soft);
	border-radius: var(--acc-radius);
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.atag-acc textarea {
	resize: vertical;
	min-height: 120px;
}
.atag-acc input::placeholder,
.atag-acc textarea::placeholder {
	color: #8a8079;
}
.atag-acc input:focus,
.atag-acc textarea:focus {
	background: #fff;
	border-color: var(--acc-accent);
}
.atag-acc .has-error input,
.atag-acc .has-error textarea {
	border-color: var(--acc-error);
	background: #fff;
}
.atag-acc__error {
	margin: 0;
	font-size: 13px;
	color: var(--acc-error);
}
.atag-acc__alert {
	margin: 0;
	padding: 12px 14px;
	font-size: 14px;
	color: var(--acc-error);
	background: #fef3f2;
	border: 1px solid #fda29b;
	border-radius: var(--acc-radius);
}

/* Scelte a pillola: grigie di base, colore pieno con testo bianco al passaggio o se scelte */
.atag-acc__pills {
	border: 0;
	padding: 0;
}
.atag-acc__pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}
.atag-acc__pill {
	position: relative;
	cursor: pointer;
	margin: 0;
}
.atag-acc__pill input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
.atag-acc__pill span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--acc-muted);
	background: var(--acc-stone);
	border: 1px solid var(--acc-stone);
	border-radius: var(--acc-radius);
}
.atag-acc__pill:hover span,
.atag-acc__pill input:checked + span {
	color: #fff;
	background: var(--acc-accent);
	border-color: var(--acc-accent);
}
.atag-acc__pill input:focus-visible + span {
	outline: 2px solid var(--acc-accent);
	outline-offset: 3px;
}

.atag-acc__check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	color: var(--acc-muted);
	cursor: pointer;
}
.atag-acc__check input {
	width: 18px;
	height: 18px;
	margin: 3px 0 0;
	flex: none;
	accent-color: var(--acc-accent);
}
.atag-acc__check a {
	color: var(--acc-accent);
}

.atag-acc__submit,
.atag-acc .atag-acc__again {
	align-self: flex-start;
	min-height: 48px;
	padding: 15px 28px;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
	background: var(--acc-accent);
	border: 1px solid var(--acc-accent);
	border-radius: var(--acc-radius);
	cursor: pointer;
}
.atag-acc__submit:hover,
.atag-acc__submit:focus-visible {
	background: var(--acc-accent-dark);
	border-color: var(--acc-accent-dark);
	color: #fff;
}
.atag-acc__submit[disabled] {
	opacity: 0.6;
	cursor: wait;
}
.atag-acc .atag-acc__again {
	color: var(--acc-muted);
	background: var(--acc-stone);
	border-color: var(--acc-stone);
}
.atag-acc .atag-acc__again:hover,
.atag-acc .atag-acc__again:focus-visible {
	color: #fff;
	background: var(--acc-accent);
	border-color: var(--acc-accent);
}
.atag-acc__note {
	margin: -6px 0 0;
	font-size: 13px;
	color: var(--acc-muted);
}

/* Campo trappola per i robot: invisibile alle persone */
.atag-acc__trap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Conferma */
.atag-acc__done {
	padding: 28px;
	background: var(--acc-soft);
	border: 1px solid var(--acc-line);
	border-radius: var(--acc-radius);
	outline: none;
}
.atag-acc__done-title {
	margin: 0 0 8px;
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: 30px;
	line-height: 1.15;
	color: var(--acc-accent);
}
.atag-acc__done-text {
	margin: 0 0 20px;
	color: var(--acc-muted);
}

@media (max-width: 600px) {
	.atag-acc__grid {
		grid-template-columns: 1fr;
	}
}

.atag-acc [hidden] {
	display: none !important;
}
