/*
	easyWP — stili di base del parent.

	Solo lo stretto necessario: struttura, form e utility.
	Il design del progetto vive nel CSS del child theme.
*/

/* --- Utility ------------------------------------------------------------ */

.easywp-container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.easywp-skip-link:focus {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip-path: none;
	background: #fff;
}

.easywp-button {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border: 0;
	background: #1a1a1a;
	color: #fff;
	font: inherit;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.easywp-button:hover,
.easywp-button:focus {
	opacity: 0.85;
}

/* --- Header e menu ------------------------------------------------------ */

.easywp-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1rem;
}

.easywp-nav__list,
.easywp-nav__submenu {
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.easywp-nav__item {
	position: relative;
}

.easywp-nav__link {
	text-decoration: none;
}

.easywp-nav__link.active {
	font-weight: 700;
}

.easywp-nav__submenu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 12rem;
	padding: 0.75rem 1rem;
	background: #fff;
	box-shadow: 0 2px 12px rgb(0 0 0 / 12%);
}

.easywp-nav__item.has-children:hover > .easywp-nav__submenu,
.easywp-nav__item.has-children:focus-within > .easywp-nav__submenu {
	display: flex;
}

.easywp-header__toggle {
	display: none;
	padding: 0.5rem;
	border: 0;
	background: none;
	cursor: pointer;
}

@media (max-width: 782px) {
	.easywp-header__toggle {
		display: block;
	}

	.easywp-header__nav {
		display: none;
		flex-basis: 100%;
	}

	.easywp-header__nav.is-open {
		display: block;
	}

	.easywp-nav__list {
		flex-direction: column;
		gap: 0.75rem;
	}

	.easywp-nav__submenu {
		position: static;
		display: flex;
		padding: 0.5rem 0 0 1rem;
		box-shadow: none;
	}
}

/* --- Form contatti ------------------------------------------------------ */

.easywp-form {
	max-width: 40rem;
}

.easywp-form__field {
	margin-bottom: 1.25rem;
}

.easywp-form__label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.easywp-form__label-inline {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.easywp-form__input,
.easywp-form__textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #bbb;
	background: #fff;
	font: inherit;
}

.easywp-form__input[aria-invalid="true"],
.easywp-form__textarea[aria-invalid="true"] {
	border-color: #c0392b;
}

.easywp-form__error {
	margin: 0.35rem 0 0;
	color: #c0392b;
	font-size: 0.9em;
}

.easywp-form__notice {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border-left: 4px solid;
}

.easywp-form__notice--success {
	border-color: #2e7d32;
	background: #edf7ed;
}

.easywp-form__notice--error {
	border-color: #c0392b;
	background: #fdecea;
}

.easywp-form__turnstile {
	margin-bottom: 1.25rem;
}

/* Honeypot: fuori dal flusso, invisibile ma presente nel DOM. */
.easywp-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Footer ------------------------------------------------------------- */

.easywp-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 2rem;
}

.easywp-footer p {
	margin: 0 0 0.35rem;
}
