/* Studio Torri – pagina Apply (embed moduli + Richiedi un colloquio). Caricato solo dal template "Apply". */
/* L'header del tema è fisso: l'app parte sotto. */
#st-apply {
	min-height: 60vh;
	padding-top: var(--st-header-h);
}

/* Caricamento dell'app: contenuto nascosto (lo spazio resta) e loader al centro; poi dissolvenza. */
#st-apply {
	position: relative;
}

#st-apply > * {
	transition: opacity 0.25s ease;
}

#st-apply.is-loading > * {
	visibility: hidden;
	opacity: 0;
}

#st-apply.is-loading::after {
	content: "";
	position: absolute;
	top: calc(var(--st-header-h) + 120px);
	left: 50%;
	width: 36px;
	height: 36px;
	margin-left: -18px;
	border: 2px solid rgba(217, 217, 217, 0.2);
	border-top-color: var(--st-gold-flat);
	border-radius: 50%;
	animation: st-apply-spin 0.8s linear infinite;
}

@keyframes st-apply-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	#st-apply.is-loading::after {
		animation-duration: 2.4s;
	}
}

/* Secure sessions sta nella sezione "Request a call" (Figma 1364:20099). */
body #st-apply .app-shell .gateway-secure-sessions {
	display: none;
}

/* Barra dei 4 box a tutta larghezza (l'app la limita a 1440px). */
/* Stesso selettore dell'app, caricata dopo: serve più specificità. */
body #st-apply .app-shell .torri-feature-band {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

/* -------------------------------------------------------------------------
   Request a call – Figma 1364:20199 (texture carta in multiply via .st-textured)
   ------------------------------------------------------------------------- */
.st-apply-call {
	padding: 100px var(--st-gutter);
	color: var(--st-light-grey);
	scroll-margin-top: 100px;
}

.st-apply-call__inner {
	display: flex;
	gap: 62px;
	align-items: flex-start;
	max-width: 1080px;
	margin-inline: auto;
}

.st-apply-call__intro {
	display: flex;
	flex: 0 0 264px;
	flex-direction: column;
	gap: 24px;
}

.st-apply-call__title {
	margin: 0;
	color: var(--st-gold-flat);
	font-family: var(--st-font-serif);
	font-size: clamp(30px, 2.7vw, 39px);
	font-weight: 400;
	line-height: 1.25;
}

.st-apply-call__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.25;
}

.st-apply-call__secure {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding-block: 5px;
}

.st-apply-call__lock {
	width: 32px;
	height: 32px;
	color: var(--st-gold-flat);
}

.st-apply-call__secure-title {
	margin: 0;
	color: var(--st-light-grey);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
}

.st-apply-call__secure-text {
	margin: -9px 0 0;
	color: var(--st-light-grey);
	font-size: 12px;
	line-height: 1.25;
}

.st-apply-call__form {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 900px) {
	.st-apply-call {
		padding-block: 64px 80px;
	}

	.st-apply-call__inner {
		flex-direction: column;
		gap: 40px;
	}

	.st-apply-call__intro {
		flex-basis: auto;
	}
}

/* -------------------------------------------------------------------------
   Modulo Gravity Forms (tema Orbital) – Figma 1364:20109
   ------------------------------------------------------------------------- */
#request-a-call .gform_wrapper.gform-theme {
	--gf-form-gap-x: 28px;
	--gf-form-gap-y: 23px;
	--gf-color-primary: #8f7753;
	--gf-color-primary-rgb: 143, 119, 83;
	--gf-ctrl-label-color-primary: var(--st-light-grey);
	--gf-ctrl-label-color-secondary: var(--st-light-grey);
	--gf-ctrl-label-color-req: var(--st-light-grey);
	--gf-ctrl-desc-color: #687384;
	--gf-ctrl-border-color: #50555c;
	--gf-ctrl-radius: 7px;
	--gf-ctrl-size: 48px;
	--gf-ctrl-font-size: 16px;
	--gf-ctrl-color: var(--st-dark-blue);
	--gf-ctrl-placeholder-color: #9a9fa8;
	--gf-ctrl-bg-color: #fff;
	margin: 0;
	font-family: var(--st-font-sans);
}

#request-a-call .gform_required_legend,
#request-a-call .gform_heading,
#request-a-call .gform_validation_container {
	display: none;
}

/* Griglia: Nome | Ruolo · E-mail | Prefisso + Telefono (gap 28), poi blocchi a gap 23 */
#request-a-call .gform_fields {
	row-gap: 23px;
	column-gap: 28px;
}

#request-a-call .gfield--type-text,
#request-a-call .gfield--type-email {
	grid-column: span 6;
}

#request-a-call .gfield--type-text {
	margin-bottom: 5px; /* 28px tra la prima e la seconda riga */
}

/* Prefisso (103px) e numero nella stessa cella, accanto all'e-mail */
#request-a-call .gfield.st-call-prefix,
#request-a-call .gfield--type-phone {
	grid-row: 2;
	grid-column: 7 / -1;
	padding-top: 29px; /* etichetta 20px + 9px */
}

#request-a-call .gfield.st-call-prefix {
	z-index: 1;
	justify-self: start;
	width: 103px;
}

#request-a-call .gfield--type-phone {
	padding-left: 108px; /* 103 + 5 */
}

#request-a-call .gfield.st-call-prefix .gfield_label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

#request-a-call .gfield--type-phone .gfield_label {
	position: absolute;
	top: 0;
	left: 0;
}

#request-a-call .gfield--type-phone {
	position: relative;
}

#request-a-call .gfield.st-call-days,
#request-a-call .gfield.st-call-slots {
	grid-column: span 6;
}

#request-a-call .gfield--type-textarea,
#request-a-call .gfield--type-consent,
#request-a-call .st-call-timing {
	grid-column: 1 / -1;
}

/* Etichette (REGULAR TORRI 16/1.25, light grey) */
#request-a-call .gfield_label,
#request-a-call legend.gfield_label {
	display: block;
	margin: 0 0 9px;
	padding: 0;
	color: var(--st-light-grey);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.25;
}

#request-a-call .gfield--type-textarea .gfield_label {
	margin-bottom: 8px;
}

#request-a-call .gfield--type-checkbox legend.gfield_label {
	margin-bottom: 18px;
}

/* "Full name*": senza spazio prima dell'asterisco */
#request-a-call .gfield_label .gform-field-label__text {
	padding: 0;
	margin: 0;
}

#request-a-call .gfield_label .gfield_required {
	display: inline;
	margin: 0;
	line-height: inherit;
	vertical-align: baseline;
	padding: 0;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

#request-a-call .gfield_required .gfield_required_asterisk {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

/* Campi (48px, bordo #50555C, raggio 7, padding 16/21) */
#request-a-call input[type="text"],
#request-a-call input[type="email"],
#request-a-call input[type="tel"],
#request-a-call select,
#request-a-call textarea {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 13px 21px;
	border: 1px solid #50555c;
	border-radius: 7px;
	background-color: #fff;
	box-shadow: none;
	color: var(--st-dark-blue);
	font-family: var(--st-font-sans);
	font-size: 16px;
	line-height: 20px;
}

#request-a-call .st-call-prefix select {
	padding: 13px 40px 13px 21px;
	overflow: hidden;
	border-color: #ececec;
	background: #ececec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cpath d='M1.5 1.5 10 10l8.5-8.5' fill='none' stroke='%2350555c' stroke-width='2'/%3E%3C/svg%3E") right 14px center / 17px 10px no-repeat;
	color: #50555c;
	white-space: nowrap;
	text-overflow: clip;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

#request-a-call textarea {
	display: block;
	height: 112px;
	min-height: 112px;
	padding: 14px 16px;
	border-color: #c2cbd8;
	border-radius: 8px;
	line-height: 24px;
	resize: vertical;
}

#request-a-call input::placeholder,
#request-a-call textarea::placeholder {
	color: #9a9fa8;
	opacity: 1;
}

#request-a-call input:focus,
#request-a-call select:focus,
#request-a-call textarea:focus {
	outline: 2px solid var(--st-gold-flat);
	outline-offset: 1px;
	border-color: var(--st-gold-flat);
	box-shadow: none;
}

/* Contatore "0 / 500" */
#request-a-call .ginput_counter {
	margin: 8px 0 0;
	padding: 0;
	color: #687384;
	font-size: 12px;
	line-height: 18px;
}

#request-a-call .st-call-role .ginput_counter {
	display: none;
}

/* "When may we call you?" */
#request-a-call .st-call-timing {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

#request-a-call .st-call-timing__title {
	margin: 0;
	color: var(--st-light-grey);
	font-family: var(--st-font-serif);
	font-size: 24px;
	font-weight: 400;
	line-height: 31.2px;
}

#request-a-call .st-call-timing__text {
	margin: 0;
	color: #c2cbd8;
	font-size: 14px;
	line-height: 20.3px;
}

/* Checkbox (18px, #ECECEC, bordo #D9D9D9, raggio 5) */
#request-a-call .gfield_checkbox {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

#request-a-call .gchoice {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

#request-a-call .ginput_container_consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

#request-a-call input[type="checkbox"] {
	position: relative;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid var(--st-light-grey);
	border-radius: 5px;
	background: #ececec;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

#request-a-call input[type="checkbox"]::before {
	content: none;
}

#request-a-call input[type="checkbox"]:checked {
	border-color: var(--st-gold-flat);
	background: var(--st-gold-flat) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23ececec' stroke-width='2'/%3E%3C/svg%3E") center / 11px 9px no-repeat;
}

#request-a-call input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--st-gold-flat);
	outline-offset: 2px;
}

#request-a-call .gchoice label {
	margin: 0;
	padding: 0;
	color: var(--st-light-grey);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.25;
	cursor: pointer;
}

/* Consenso privacy */
#request-a-call .gfield--type-consent legend.gfield_label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

#request-a-call .ginput_container_consent input[type="checkbox"] {
	margin-top: 1px;
}

#request-a-call .gfield_consent_label {
	margin: 0;
	padding: 0;
	color: var(--st-light-grey);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	cursor: pointer;
}

#request-a-call .gfield_consent_label::after {
	content: "*";
}

#request-a-call .gfield_consent_label .gfield_required {
	display: none;
}

#request-a-call .gfield_consent_description,
#request-a-call .gfield_consent_description_text {
	max-height: none;
	margin: 0;
	padding: 0;
	overflow: visible;
	border: 0;
	background: none;
	box-shadow: none;
	outline: 0;
}

#request-a-call .gfield_consent_description {
	margin: 2px 0 0 30px;
	color: #687384;
	font-size: 12px;
	font-style: italic;
	line-height: 18px;
}

#request-a-call .gfield_consent_description a {
	color: inherit;
	text-decoration: none;
}

#request-a-call .gfield_consent_description a:hover,
#request-a-call .gfield_consent_description a:focus-visible {
	color: var(--st-light-grey);
	text-decoration: underline;
}

/* Pulsante (gradiente oro, pill, a destra; gap 23) */
#request-a-call .gform_footer {
	display: flex;
	justify-content: flex-end;
	margin: 0;
	padding: 23px 0 0;
}

#request-a-call .gform_footer .gform_button,
#request-a-call .gform_footer input[type="submit"] {
	min-height: 0;
	margin: 0;
	padding: 16px 60px;
	border: 0;
	border-radius: 38px;
	background-color: transparent;
	background-image: linear-gradient(104.07deg, #8f7753 0%, #e1cba4 29.327%, #b8a17c 55.288%, #735b39 87.5%);
	background-size: 140% 100%;
	background-position: 0 0;
	box-shadow: none;
	color: var(--st-dark-blue);
	font-family: var(--st-font-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.25;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-position 0.3s ease;
}

#request-a-call .gform_footer .gform_button:hover,
#request-a-call .gform_footer .gform_button:focus-visible {
	background-position: 100% 0;
}

#request-a-call .gform_footer .gform_button:focus-visible {
	outline: 2px solid var(--st-light-grey);
	outline-offset: 3px;
}

/* Errori e conferma */
#request-a-call .gform_validation_errors {
	border-color: #e5a29a;
	background: rgba(229, 162, 154, 0.12);
	box-shadow: none;
}

#request-a-call .gform_validation_errors .gform_submission_error,
#request-a-call .gfield_validation_message {
	padding: 6px 0 0;
	border: 0;
	background: none;
	color: #f2b8b0;
	font-size: 13px;
}

#request-a-call .gfield_error input,
#request-a-call .gfield_error select,
#request-a-call .gfield_error textarea {
	border-color: #e5a29a;
}

#request-a-call .gform_confirmation_message {
	color: var(--st-light-grey);
	font-size: 16px;
	line-height: 1.5;
}

@media (max-width: 640px) {
	#request-a-call .gfield--type-text,
	#request-a-call .gfield--type-email,
	#request-a-call .gfield.st-call-days,
	#request-a-call .gfield.st-call-slots {
		grid-column: 1 / -1;
	}

	#request-a-call .gfield--type-text {
		margin-bottom: 0;
	}

	#request-a-call .gfield.st-call-prefix,
	#request-a-call .gfield--type-phone {
		grid-row: 4;
		grid-column: 1 / -1;
	}

	#request-a-call .gform_footer .gform_button {
		width: 100%;
	}
}

/* reCAPTCHA v3: badge nascosto (consentito da Google se c'è la dicitura sotto il modulo). */
.grecaptcha-badge {
	visibility: hidden;
}

#request-a-call .st-recaptcha-notice {
	margin: 16px 0 0;
	font-size: 11px;
	line-height: 1.5;
	color: #687384;
	text-align: right;
}

#request-a-call .st-recaptcha-notice a {
	color: inherit;
	text-decoration: underline;
}

@media (max-width: 640px) {
	#request-a-call .st-recaptcha-notice {
		text-align: left;
	}
}
