/**
 * Longevion — skin del Gravity Form (id 1) nel footer: replica il form ".news"
 * (pill con input email + bottone freccia in linea).
 *
 * Struttura reale (GF Orbital, submit inline): email e submit sono DUE .gfield
 * "width-half" dentro la griglia .gform_fields. Quindi la "pill" è la riga
 * .gform_fields, con email flessibile e submit fisso a 54px.
 *
 * Palette: accent #46c98a · accent-2 #79dcc4 · pearl #e9ecee · steel #7d858a
 * bordo #363c40 · font Jost
 */

/* nascondi intestazione/descrizione del form */
.elementor-location-footer .gform_wrapper .gform_heading,
.elementor-location-footer .gform_wrapper .gform_description,
.elementor-location-footer .gform_wrapper .gform_required_legend {
	display: none !important;
}

/* niente margini su form/body; il footer contiene solo input hidden */
.elementor-location-footer .gform_wrapper form {
	margin: 0;
}

.elementor-location-footer .gform_wrapper .gform-body,
.elementor-location-footer .gform_wrapper .gform_body {
	margin: 0;
	padding: 0;
}

.elementor-location-footer .gform_wrapper .gform_footer {
	margin: 0 !important;
	padding: 0 !important;
}

/* ---- LA PILL = la riga dei campi ---- */
.elementor-location-footer .gform_wrapper .gform_fields {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	grid-template-columns: none !important;
	gap: 0 !important;
	max-width: 440px;
	margin: 0 auto 16px;
	border: 1px solid #363c40;
	border-radius: 3px;
	overflow: hidden;
	background: rgba(255, 255, 255, .012);
	transition: border-color .35s cubic-bezier(.22, .61, .36, 1),
		box-shadow .35s cubic-bezier(.22, .61, .36, 1);
}

.elementor-location-footer .gform_wrapper .gform_fields:focus-within {
	border-color: #46c98a;
	box-shadow: 0 0 0 1px #46c98a, 0 0 20px rgba(70, 201, 138, .18);
}

/* reset comune dei due campi */
.elementor-location-footer .gform_wrapper .gfield {
	margin: 0 !important;
	padding: 0 !important;
	grid-column: auto !important;
}

/* campo email: occupa lo spazio disponibile */
.elementor-location-footer .gform_wrapper .gfield--type-email {
	flex: 1 1 auto !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	display: flex;
	align-items: stretch;
}

/* campo submit: larghezza fissa 54px, stessa altezza del campo email */
.elementor-location-footer .gform_wrapper .gfield--type-submit {
	flex: 0 0 54px !important;
	width: 54px !important;
	max-width: 54px !important;
	display: flex;
	align-items: stretch;
}

/* nascondi label/asterisco/descrizioni */
.elementor-location-footer .gform_wrapper .gfield_label,
.elementor-location-footer .gform_wrapper .gform-field-label,
.elementor-location-footer .gform_wrapper .gfield_required,
.elementor-location-footer .gform_wrapper .gfield_description {
	display: none !important;
}

.elementor-location-footer .gform_wrapper .ginput_container {
	margin: 0 !important;
	width: 100%;
	display: flex;
	align-items: stretch;
}

/* ---- input email ---- */
.elementor-location-footer .gform_wrapper input[type="email"] {
	flex: 1 1 auto;
	width: 100%;
	background: none !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	color: #e9ecee !important;
	font-family: 'Jost', system-ui, sans-serif !important;
	font-size: .95rem !important;
	line-height: normal !important;
	height: auto !important;
	padding: 15px 18px !important;
	border-radius: 0 !important;
}

.elementor-location-footer .gform_wrapper input[type="email"]::placeholder {
	color: #7d858a !important;
	opacity: 1;
}

/* ---- bottone freccia ---- */
.elementor-location-footer .gform_wrapper input[type="submit"].gform-button {
	display: grid;
	place-items: center;
	width: 100% !important;
	height: auto !important;
	flex: 1 1 auto;
	color: #46c98a !important;
	background: none !important;
	border: none !important;
	border-left: 1px solid #363c40 !important;
	border-radius: 0 !important;
	font-size: 1.15rem !important;
	line-height: 1 !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: color .35s cubic-bezier(.22, .61, .36, 1),
		background .35s cubic-bezier(.22, .61, .36, 1);
}

.elementor-location-footer .gform_wrapper input[type="submit"].gform-button:hover {
	background: rgba(70, 201, 138, .08) !important;
	color: #79dcc4 !important;
}

/* ---- conferma / validazione, coerenti col design ---- */
.elementor-location-footer .gform_confirmation_message,
.elementor-location-footer .gform_confirmation_wrapper {
	font-family: 'IBM Plex Mono', ui-monospace, monospace !important;
	font-size: .58rem !important;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #46c98a !important;
	text-align: center;
}

.elementor-location-footer .gform_wrapper .gfield_validation_message,
.elementor-location-footer .gform_wrapper .validation_message,
.elementor-location-footer .gform_wrapper .gform_validation_errors {
	font-family: 'IBM Plex Mono', ui-monospace, monospace !important;
	font-size: .56rem !important;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #79dcc4 !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	padding: 6px 0 0 !important;
	margin: 0 !important;
	text-align: center;
}
