/* Contenitore principale */
.newsletter-form-custom {
	width: 100%;
	max-width: 550px;
	margin: 0 auto;
	font-family: Figtree, sans-serif;
	box-sizing: border-box;
}

/* Elimina gli eventuali margini aggiunti da WordPress o MC4WP */
.newsletter-form-custom p {
	margin: 0 !important;
	padding: 0 !important;
}

/* Riga contenente nome ed email */
.newsletter-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
}

/* Campi del form */
.newsletter-form-row input[type="text"],
.newsletter-form-row input[type="email"] {
	display: block;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 15px;
	box-sizing: border-box;

	background-color: #ffffff;
	border: 1px solid #dddddd;
	border-radius: 0;
	outline: none;

	color: #4f4f4f;
	font-family: Figtree, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 42px;

	appearance: none;
	-webkit-appearance: none;
}

/* Testo placeholder */
.newsletter-form-row input::placeholder {
	color: #555555;
	opacity: 1;
}

/* Campo selezionato */
.newsletter-form-row input:focus {
	border-color: #ac9368;
	box-shadow: none;
	outline: none;
}

/* Pulsante */
.newsletter-form-custom .newsletter-submit {
	display: block;
	width: 100%;
	height: 43px;
	margin: 10px 0 0;
	padding: 0 20px;
	box-sizing: border-box;

	background-color: #ac9368;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: none;

	color: #ffffff;
	font-family: Figtree, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 43px;
	letter-spacing: 0.6px;
	text-align: center;
	text-transform: uppercase;

	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color 0.2s ease;
}

/* Hover del pulsante */
.newsletter-form-custom .newsletter-submit:hover {
	background-color: #9c855f;
	color: #ffffff;
}

/* Click e focus */
.newsletter-form-custom .newsletter-submit:focus,
.newsletter-form-custom .newsletter-submit:active {
	background-color: #927b57;
	color: #ffffff;
	box-shadow: none;
	outline: none;
}

/* Blocco privacy */
.newsletter-privacy {
	width: 100%;
	margin: 10px 0 0;
	padding: 0;
}

/* Allineamento checkbox e testo */
.newsletter-privacy label {
	display: flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	margin: 0;
	padding: 0;
	cursor: pointer;
}

/* Checkbox personalizzato */
.newsletter-privacy input[type="checkbox"] {
	position: relative;
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	margin: 0;
	padding: 0;

	background-color: #ffffff;
	border: 1px solid #d9d9d9;
	border-radius: 0;
	box-shadow: none;
	outline: none;

	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

/* Stato selezionato */
.newsletter-privacy input[type="checkbox"]:checked {
	background-color: #ac9368;
	border-color: #ac9368;
}

/* Segno di spunta */
.newsletter-privacy input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	top: 1px;
	left: 3px;
	width: 3px;
	height: 6px;
	border: solid #ffffff;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}

/* Testo privacy */
.newsletter-privacy span {
	color: #ffffff;
	font-family: Figtree, sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
}

/* Link privacy policy */
.newsletter-privacy a {
	color: #c2a875;
	text-decoration: none;
}

/* Hover del link */
.newsletter-privacy a:hover {
	color: #d4bd8d;
	text-decoration: underline;
}

/* Focus accessibile */
.newsletter-privacy input[type="checkbox"]:focus-visible {
	outline: 2px solid #c2a875;
	outline-offset: 2px;
}

/* Versione mobile */
@media (max-width: 600px) {

	.newsletter-form-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.newsletter-form-custom .newsletter-submit {
		height: auto;
		min-height: 43px;
		padding: 12px 15px;
		line-height: 1.3;
		font-size: 14px;
	}

}