/* Elementor page sections. Classes are set on containers/widgets by the page builder. */

/* The logo PNG has an opaque white background: multiply lets the page colour show through. */
.eamd-logo__img,
.eamd-footer__logo img {
	mix-blend-mode: multiply;
}

/* ---------- Type helpers ---------- */
.eamd-display .elementor-heading-title {
	font-size: clamp(2.5rem, 1.2rem + 4.4vw, 4.125rem);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -0.022em;
}

.eamd-display--md .elementor-heading-title {
	font-size: clamp(2.25rem, 1.3rem + 3.2vw, 3.5rem);
}

.eamd-display--sm .elementor-heading-title {
	font-size: clamp(2rem, 1.2rem + 2.4vw, 2.75rem);
}

.eamd-lead {
	max-width: 54ch;
	color: var(--eamd-muted);
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
	line-height: 1.55;
}

.eamd-lead p:last-child,
.eamd-note p:last-child {
	margin-bottom: 0;
}

.eamd-h-sm .elementor-heading-title {
	color: var(--eamd-muted);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.eamd-h-wide .elementor-heading-title {
	max-width: 24ch;
}

/* ---------- Layout helpers ---------- */
.eamd-split > .e-con-inner,
.eamd-split {
	min-width: 0;
}

.eamd-actions .elementor-widget-button {
	width: auto;
}

.eamd-crop img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.eamd-crop--54 img {
	aspect-ratio: 5 / 4;
}

.eamd-crop--43 img {
	aspect-ratio: 4 / 3;
}

.eamd-crop--32 img {
	aspect-ratio: 3 / 2;
}

.eamd-crop--45 img {
	aspect-ratio: 4 / 5;
}

/* Hero: the whole first screen fits the viewport. */
.eamd-hero__media img {
	max-height: min(62vh, 540px);
	object-position: 50% 25%;
}

.eamd-hero--text .eamd-lead {
	max-width: 60ch;
}

/* ---------- Logo walls (logos only) ---------- */
.eamd-logowall img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Sede: offset image pair + stats ---------- */
.eamd-sede__b {
	position: relative;
	width: 58%;
	margin: -64px 0 0 auto;
}

.eamd-sede__b img {
	border: 8px solid var(--eamd-surface-2);
	border-radius: var(--eamd-radius);
}

.eamd-stats {
	margin-top: 12px;
	padding-top: 28px;
	border-top: 1px solid var(--eamd-line);
}

.eamd-stat__n .elementor-heading-title {
	font-size: clamp(1.5rem, 1rem + 1.2vw, 2.125rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.012em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.eamd-stat__t {
	color: var(--eamd-muted);
	font-size: 0.9375rem;
	line-height: 1.45;
}

.eamd-stat__t p {
	margin: 0;
}

/* ---------- Rows (title left, text right) ---------- */
.eamd-row {
	padding: 28px 0;
	border-top: 1px solid var(--eamd-line);
}

.eamd-rows > .e-con-inner > .eamd-row:first-child,
.eamd-rows > .eamd-row:first-child {
	padding-top: 0;
	border-top: 0;
}

.eamd-row__k .elementor-heading-title {
	font-size: 1.375rem;
}

.eamd-row__v p {
	margin: 0;
	color: var(--eamd-muted);
}

.eamd-note {
	margin-top: 8px;
	padding-top: 28px;
	border-top: 1px solid var(--eamd-line);
	color: var(--eamd-ink);
}

/* ---------- Process (four stages, no cards) ---------- */
.eamd-stage {
	padding-top: 18px;
	border-top: 2px solid var(--eamd-ink);
}

.eamd-stage .elementor-heading-title {
	font-size: 1.25rem;
}

.eamd-stage p {
	margin: 0;
	color: var(--eamd-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

/* ---------- CTA ---------- */
.eamd-cta__t .elementor-heading-title {
	max-width: 22ch;
}

.eamd-cta__contacts p {
	margin: 0;
	font-family: var(--eamd-mono);
	font-size: 0.9375rem;
	line-height: 1.7;
}

.eamd-cta__contacts a {
	text-decoration: none;
}

.eamd-cta__contacts a:hover {
	text-decoration: underline;
}

/* ---------- Services (Elementor tabs, vertical) ---------- */
.eamd-tabs .elementor-tabs {
	display: grid;
	grid-template-columns: minmax(240px, 0.8fr) 1.6fr;
	gap: 64px;
	align-items: start;
}

.eamd-tabs .elementor-tabs-wrapper {
	display: flex;
	flex-direction: column;
	width: auto;
	border-left: 1px solid var(--eamd-line);
}

.elementor-widget-tabs.eamd-tabs .elementor-tab-title.elementor-tab-desktop-title {
	display: block;
	margin: 0 0 0 -1px;
	padding: 14px 0 14px 20px;
	/* Elementor prints per-widget border rules with equal specificity, after the theme CSS. */
	border: 0 solid transparent !important;
	border-left-width: 2px !important;
	background: transparent;
	color: var(--eamd-muted);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.35;
	cursor: pointer;
	transition: color 0.2s var(--eamd-ease), border-color 0.2s var(--eamd-ease);
}

.elementor-widget-tabs.eamd-tabs .elementor-tab-title.elementor-tab-desktop-title:hover {
	color: var(--eamd-ink);
}

.elementor-widget-tabs.eamd-tabs .elementor-tab-title.elementor-tab-desktop-title.elementor-active {
	border-left-color: var(--eamd-accent) !important;
	background: transparent;
	color: var(--eamd-ink);
	font-weight: 600;
}

.elementor-widget-tabs.eamd-tabs .elementor-tabs-content-wrapper {
	width: auto;
	border: 0 !important;
	box-shadow: none;
}

.eamd-tabs .elementor-tabs-content-wrapper {
	border: 0;
	min-width: 0;
}

.elementor-widget-tabs.eamd-tabs .elementor-tab-content {
	padding: 0;
	border: 0 !important;
	max-width: 66ch;
	color: var(--eamd-ink);
}

.eamd-tabs .elementor-tab-content p {
	color: var(--eamd-muted);
}

.eamd-tabs .elementor-tab-content p.eamd-tabs__lead {
	color: var(--eamd-ink);
	font-size: 1.375rem;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.015em;
}

.eamd-list-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 28px;
	margin: 4px 0 20px;
	padding: 0;
	list-style: none;
}

.eamd-list-2 li {
	padding-left: 14px;
	border-left: 2px solid var(--eamd-line);
	color: var(--eamd-ink);
	font-size: 0.9375rem;
	line-height: 1.45;
}

/* ---------- Galleries ---------- */
.eamd-gallery .gallery {
	display: grid;
	gap: 16px;
	margin: 0;
}

.eamd-gallery--portrait .gallery {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eamd-gallery--land .gallery {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eamd-gallery .gallery-item {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.eamd-gallery .gallery-icon a {
	display: block;
	overflow: hidden;
	border-radius: var(--eamd-radius);
	background: var(--eamd-surface-2);
}

.eamd-gallery img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.5s var(--eamd-ease);
}

.eamd-gallery--portrait img {
	aspect-ratio: 3 / 4;
}

.eamd-gallery--land img {
	aspect-ratio: 4 / 3;
}

@media (hover: hover) {
	.eamd-gallery .gallery-icon a:hover img {
		transform: scale(1.03);
	}
}

/* ---------- EU funding notice ---------- */
.eamd-fesr__img img {
	border: 1px solid var(--eamd-line);
}

/* ---------- Contact ---------- */
.eamd-info {
	padding: 20px 0 8px;
	border-top: 1px solid var(--eamd-line);
}

.eamd-info p {
	margin: 0 0 10px;
}

.eamd-formcard {
	padding: clamp(24px, 3vw, 40px);
	border: 1px solid var(--eamd-line);
	border-radius: var(--eamd-radius);
	background: var(--eamd-surface-2);
}

.eamd-form__t .elementor-heading-title {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.eamd-form__lead p {
	margin: 0;
	color: var(--eamd-muted);
}

.eamd-form .wpforms-container {
	margin: 0;
}

.eamd-form .wpforms-field {
	padding: 0 0 18px;
}

.eamd-form .wpforms-field-label {
	margin-bottom: 6px;
	color: var(--eamd-ink);
	font-size: 0.9375rem;
	font-weight: 500;
}

.eamd-form .wpforms-required-label {
	color: var(--eamd-accent);
}

.eamd-form input[type="text"],
.eamd-form input[type="email"],
.eamd-form input[type="tel"],
.eamd-form textarea,
.eamd-form select {
	max-width: none;
	background: var(--eamd-surface);
}

.eamd-form .wpforms-submit-container {
	padding: 4px 0 0;
}

.eamd-form button.wpforms-submit {
	min-height: 46px;
	padding: 0 24px;
	border: 1px solid var(--eamd-accent);
	border-radius: var(--eamd-radius);
	background: var(--eamd-accent);
	color: var(--eamd-on-accent);
	font-family: var(--eamd-font);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s var(--eamd-ease), transform 0.15s var(--eamd-ease);
}

.eamd-form button.wpforms-submit:hover {
	border-color: var(--eamd-accent-hover);
	background: var(--eamd-accent-hover);
}

.eamd-form button.wpforms-submit:active {
	transform: translateY(1px);
}

.eamd-form .wpforms-error,
.eamd-form label.wpforms-error {
	color: #a60014;
	font-size: 0.875rem;
}

.eamd-mapwrap {
	border-top: 1px solid var(--eamd-line);
}

.eamd-map iframe {
	display: block;
	width: 100%;
}

/* ---------- Shop ---------- */
.eamd-banner img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Generic / legal / Woo pages ---------- */
.eamd-generic--narrow > .e-con-inner {
	max-width: 820px;
}

.eamd-prose {
	font-size: 1rem;
}

.eamd-prose p,
.eamd-prose li {
	color: var(--eamd-ink);
	line-height: 1.7;
}

.eamd-prose h2,
.eamd-prose h3,
.eamd-prose h4 {
	margin-top: 1.6em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.eamd-tabs .elementor-tabs {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.eamd-gallery--portrait .gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.eamd-hero__media img {
		max-height: 420px;
	}
}

@media (max-width: 767px) {
	.eamd-tabs .elementor-tabs-wrapper {
		display: none;
	}

	.eamd-tabs .elementor-tab-title.elementor-tab-mobile-title {
		display: block;
		padding: 16px 0;
		border-top: 1px solid var(--eamd-line);
		color: var(--eamd-ink);
		font-size: 1.125rem;
		font-weight: 600;
	}

	.eamd-tabs .elementor-tab-content {
		padding: 0 0 16px;
	}

	.eamd-gallery--portrait .gallery,
	.eamd-gallery--land .gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.eamd-list-2 {
		grid-template-columns: 1fr;
	}

	.eamd-sede__b {
		width: 70%;
		margin-top: -40px;
	}
}

/* ---------- 404 and default Hello templates ---------- */
.eamd-404__inner {
	display: grid;
	gap: 18px;
	max-width: 640px;
	margin: 0 auto;
	padding: clamp(64px, 12vw, 160px) var(--eamd-gutter);
}

.eamd-404__inner h1 {
	margin: 0;
}

.eamd-404__inner p {
	margin: 0;
	color: var(--eamd-muted);
	font-size: 1.125rem;
}

.eamd-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

main.site-main:not(.eamd-wc):not(.eamd-404):not(.eamd-main) {
	max-width: 820px;
	margin: 0 auto;
	padding: 56px var(--eamd-gutter) var(--eamd-section);
}

/* ---------- Quantity discount tiers (shop) ---------- */
.eamd-tiers {
	padding: 22px 28px 26px;
	border: 1px solid var(--eamd-line);
	border-radius: var(--eamd-radius);
	background: var(--eamd-surface-2);
}

.eamd-tier__l p {
	margin: 0;
	color: var(--eamd-muted);
	font-size: 0.9375rem;
}

.eamd-tier__p .elementor-heading-title {
	margin: 0;
	color: var(--eamd-accent);
	font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.012em;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
	.eamd-tiers {
		padding: 18px;
	}
}

/* ---------- WPForms: its own stylesheet outranks the base rules, so repeat them with the plugin's wrapper ---------- */
.eamd-form div.wpforms-container-full .wpforms-form input[type="text"],
.eamd-form div.wpforms-container-full .wpforms-form input[type="email"],
.eamd-form div.wpforms-container-full .wpforms-form input[type="tel"],
.eamd-form div.wpforms-container-full .wpforms-form input[type="number"],
.eamd-form div.wpforms-container-full .wpforms-form textarea,
.eamd-form div.wpforms-container-full .wpforms-form select {
	max-width: none;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--eamd-field-border);
	border-radius: var(--eamd-radius);
	background-color: var(--eamd-surface);
	color: var(--eamd-ink);
	font-family: var(--eamd-font);
	font-size: 1rem;
	box-shadow: none;
}

.eamd-form div.wpforms-container-full .wpforms-form textarea {
	min-height: 140px;
}

.eamd-form div.wpforms-container-full .wpforms-form input:focus,
.eamd-form div.wpforms-container-full .wpforms-form textarea:focus,
.eamd-form div.wpforms-container-full .wpforms-form select:focus {
	border-color: var(--eamd-ink);
	outline: 2px solid var(--eamd-accent);
	outline-offset: 1px;
	box-shadow: none;
}

.eamd-form div.wpforms-container-full .wpforms-form .wpforms-field-label,
.eamd-form div.wpforms-container-full .wpforms-form .wpforms-field-sublabel {
	color: var(--eamd-ink);
	font-family: var(--eamd-font);
}

.eamd-form div.wpforms-container-full .wpforms-form button[type="submit"].wpforms-submit {
	min-height: 46px;
	padding: 0 24px;
	border: 1px solid var(--eamd-accent);
	border-radius: var(--eamd-radius);
	background: var(--eamd-accent);
	color: var(--eamd-on-accent);
	font-family: var(--eamd-font);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

.eamd-form div.wpforms-container-full .wpforms-form button[type="submit"].wpforms-submit:hover,
.eamd-form div.wpforms-container-full .wpforms-form button[type="submit"].wpforms-submit:focus-visible {
	border-color: var(--eamd-accent-hover);
	background: var(--eamd-accent-hover);
	color: var(--eamd-on-accent);
}

.eamd-form div.wpforms-container-full .wpforms-form button[type="submit"].wpforms-submit:active {
	transform: translateY(1px);
}
