/*
Theme Name:     Hello Elementor Child
Description:    Moda d'interni - Hello Elementor child theme.
Author:         MysiteOnline
Template:       hello-elementor
Version:        1.0.0
Text Domain:    hello-elementor-child
*/

/* ==========================================================================
   1. Tokens (fluid 375px -> 1440px)
   ========================================================================== */
:root {
	--color-ink: #202020;
	--color-body: #4c4c4c;
	--color-soft: #b1b2b2;
	--color-line: #8f8f8f;
	--color-alt: #eaecf3;
	--color-tint: #fafbfd;
	--color-gridline: #f4f5fa;
	/* old theme pinstripe (5x5 tile, #d5d8ea diagonal), redrawn as SVG: strong = 57%/6%, light = 46%/5% */
	--pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5' shape-rendering='crispEdges' fill='%23d5d8ea'%3E%3Cpath fill-opacity='.573' d='M0 0h1v1H0zM1 1h1v1H1zM2 2h1v1H2zM3 3h1v1H3zM4 4h1v1H4z'/%3E%3Cpath fill-opacity='.059' d='M1 0h1v1H1zM4 0h1v1H4zM0 1h1v1H0zM2 1h1v1H2zM1 2h1v1H1zM3 2h1v1H3zM2 3h1v1H2zM4 3h1v1H4zM0 4h1v1H0zM3 4h1v1H3z'/%3E%3C/svg%3E");
	--pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5' shape-rendering='crispEdges' fill='%23d5d8ea'%3E%3Cpath fill-opacity='.459' d='M0 0h1v1H0zM1 1h1v1H1zM2 2h1v1H2zM3 3h1v1H3zM4 4h1v1H4z'/%3E%3Cpath fill-opacity='.047' d='M1 0h1v1H1zM4 0h1v1H4zM0 1h1v1H0zM2 1h1v1H2zM1 2h1v1H1zM3 2h1v1H3zM2 3h1v1H2zM4 3h1v1H4zM0 4h1v1H0zM3 4h1v1H3z'/%3E%3C/svg%3E");
	--color-hover: #dedede;
	--color-dark: #181818;
	--color-white: #fff;

	--font-body: "Roboto", system-ui, sans-serif;
	--font-head: "Roboto Condensed", "Arial Narrow", sans-serif;

	--text-s: 0.875rem;
	--text-m: clamp(0.9375rem, 1.0625rem - 0.2vw, 1rem);
	--text-l: clamp(1rem, 0.96rem + 0.19vw, 1.125rem);
	--text-h4: clamp(1.125rem, 1.059rem + 0.282vw, 1.3125rem);
	--text-h3: clamp(1.4375rem, 1.284rem + 0.657vw, 1.875rem);
	--text-h2: clamp(1.75rem, 1.508rem + 1.033vw, 2.4375rem);
	--text-h1: clamp(2.25rem, 1.788rem + 1.972vw, 3.5625rem);

	--space-2xs: 0.5rem;
	--space-xs: clamp(0.75rem, 0.662rem + 0.376vw, 1rem);
	--space-s: clamp(1rem, 0.824rem + 0.751vw, 1.5rem);
	--space-m: clamp(1.5rem, 1.236rem + 1.127vw, 2.25rem);
	--space-l: clamp(2rem, 1.56rem + 1.878vw, 3.25rem);
	--space-xl: clamp(2.75rem, 2.134rem + 2.629vw, 4.5rem);
	--space-2xl: clamp(3.5rem, 2.091rem + 6.009vw, 7.5rem);

	/* semantic spacing */
	--gutter: clamp(1.25rem, 0.81rem + 1.878vw, 2.5rem);
	--gap-section: var(--space-xl);
	--gap-group: var(--space-l);
	--gap-grid: var(--space-l);
	--gap-content: var(--space-s);
	--gap-tight: var(--space-2xs);
	--pad-section: var(--space-2xl);
	--width-content: 75rem;
	--width-prose: 68ch;

	--header-h: 116px;
	--ease: cubic-bezier(.25, .46, .45, .94);
	--dur: 250ms;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
html { scroll-behavior: smooth; }
body {
	font-family: var(--font-body);
	font-weight: 300;
	font-size: var(--text-m);
	line-height: 1.73;
	color: var(--color-body);
	-webkit-font-smoothing: antialiased;
}
strong, b { font-weight: 700; }
img { height: auto; }
:where(a) { color: var(--color-ink); transition: color var(--dur) var(--ease); }
:where(a):hover { color: var(--color-line); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--color-ink); color: var(--color-white); }

.subtitle,
.elementor-widget-heading h6.elementor-heading-title {
	font-family: var(--font-head);
	font-weight: 300;
	font-style: italic;
	font-size: 1rem;
	text-transform: none;
	letter-spacing: 0;
	color: var(--color-body);
}

/* ==========================================================================
   3. Layout: sections and containers
   ========================================================================== */
.e-con.section {
	padding: var(--pad-section) var(--gutter);
	gap: var(--gap-section);
}
.e-con.section--tight-top { padding-top: calc(var(--pad-section) / 2); }
.e-con.section--tight-bottom { padding-bottom: calc(var(--pad-section) / 2); }
.e-con.section--flush { padding: 0; }
.e-con.section--under-header { padding-top: var(--header-h); }
.heading-small .elementor-heading-title { font-size: var(--text-h4); }
.heading-page .elementor-heading-title { font-size: var(--text-h2); }
.e-con.section--alt { background-color: var(--color-tint); }
.e-con.section--dark {
	background-color: var(--color-dark);
	color: rgb(255 255 255 / .8);
	--color-ink: #fff;
	--color-body: rgb(255 255 255 / .8);
}
.e-con.section--cover {
	background-size: cover;
	background-position: center;
	isolation: isolate;
}
.e-con.section--cover::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(0 0 0 / .3);
}
.e-con.container {
	width: 100%;
	max-width: var(--width-content);
	margin-inline: auto;
	padding: 0;
	gap: var(--gap-content);
}
.e-con.container--wide { max-width: none; }
.e-con.container--narrow { max-width: 50rem; }
.e-con.section--compact { padding-block: var(--space-xl); }
.e-con.align-center { align-items: center; text-align: center; }
.elementor-widget-heading.subtitle .elementor-heading-title {
	font-family: var(--font-head);
	font-weight: 300;
	font-style: italic;
	font-size: 1rem;
	line-height: 1.5;
	text-transform: none;
	letter-spacing: 0;
	color: var(--color-body);
}
.elementor-widget-heading.subtitle .elementor-heading-title a { color: inherit; }
.elementor-widget-heading.subtitle .elementor-heading-title a:hover { color: var(--color-ink); }
.feature__media img { width: 100%; display: block; }
/* scroll parallax with inertia (site.js) moves these every frame; Elementor's own transform transition
   (0.4 s on every element) smeared each step and made the drift about 3x slower than on the old site */
.feature__media.elementor-element,
.team-card > .elementor-element { --e-transform-transition-duration: 0s; --e-con-transform-transition-duration: 0s; }
.e-con.stack-s { gap: var(--gap-content); }
.e-con.stack-l { gap: var(--gap-group); }

.e-con.grid-2,
.e-con.grid-3,
.e-con.grid-4 {
	display: grid;
	gap: var(--gap-grid);
	grid-template-columns: minmax(0, 1fr);
}
.e-con.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-content); }
@media (min-width: 768px) {
	.e-con.grid-4 { gap: var(--gap-grid); }
	.e-con.grid-2,
	.e-con.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.e-con.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
	.e-con.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.e-con.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.e-con > .elementor-widget { max-width: 100%; }

/* ==========================================================================
   4. Section heading with vertical lines
   ========================================================================== */
.e-con.heading-lines {
	align-items: center;
	text-align: center;
	gap: var(--gap-tight);
}
.heading-lines > .elementor-widget:first-child::before,
.heading-lines > .elementor-widget:last-child::after {
	content: "";
	display: block;
	width: 1px;
	height: clamp(1.75rem, 1.39rem + 1.5vw, 2.75rem);
	margin-inline: auto;
	background: var(--color-line);
}
.heading-lines > .elementor-widget:first-child::before { margin-bottom: var(--space-s); }
.heading-lines > .elementor-widget:last-child::after { margin-top: var(--space-s); }

/* ==========================================================================
   5. Home hero (background slideshow + framed headline)
   ========================================================================== */
.e-con.hero {
	min-height: min(56.25rem, 100svh);
	padding: calc(var(--header-h) + var(--space-l)) var(--gutter) var(--space-xl);
	justify-content: center;
	isolation: isolate;
	overflow: hidden;
}
/* top shade keeps the menu readable over light photos */
.e-con.hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 30%;
	z-index: 1;
	background: linear-gradient(180deg, rgb(0 0 0 / .35), rgb(0 0 0 / 0));
	pointer-events: none;
}
.e-con.hero > .e-con { z-index: 2; }
/* Moda d'interni hero (photo from Elementor, its size and position here; 27. 11. 2026):
   phone and tablet: the photo fills the hero and is moved so both people stand in the middle
   (it used to show only the ceiling and a shelf from the top left corner); no top shade, the bar is white */
.e-con.hero--page {
	min-height: 100svh;
	justify-content: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 22% center;
}
.e-con.hero--page::before { content: none; }
/* readability (26. 11. 2026): normal letter spacing as on the old page (the global H1 is -0.04em),
   larger on phones while it still fits on one line, soft shadow over the light window behind */
.hero--page .hero-title .elementor-heading-title {
	font-size: clamp(2.5rem, 12vw, 3.5625rem);
	letter-spacing: normal;
	text-shadow: 0 1px 24px rgb(0 0 0 / .35);
}
@media (min-width: 1025px) {
	/* desktop (Jan, 27. 11. 2026, variant C): the whole photo fills the hero, so the pair, the table with the
	   samples and the windows are all in view (the old page showed it at its own size from the top left corner:
	   mostly ceiling, table cut off, and a white strip on screens wider than about 1900 px) */
	/* The black lamp sits behind the menu (Jan, 27. 11. 2026): in the 1920 x 1280 photo the lamp is at
	   y 208-264 (centre 236) and x 506-1817; the menu centre is 58 px from the top. The photo is at least
	   as wide as the window and large enough that, moved up by (236/1920 x width - 58 px), it still
	   reaches the bottom: width >= (window height - 58 px) x 1920 / 1044 (+ 8 px spare); and wide enough
	   that the lamp's right end passes the last menu item by 20 px or more (109vw - 82px). */
	.e-con.hero--page {
		--hero-photo-w: max(100vw, calc((100vh - 50px) * 1.8391), calc(109vw - 82px));
		background-size: var(--hero-photo-w) auto;
		background-position: 35% calc(58px - var(--hero-photo-w) * 0.1229);
	}
	/* soft shade under the white menu, which sat on the light ceiling (same as the Home hero) */
	.e-con.hero--page::before { content: ""; }
	/* old title centre sat 560 px down in a 900 px window */
	.e-con.hero--page { min-height: 100vh; padding-block: 220px 0; }
	.hero--page .hero-title .elementor-heading-title { line-height: 105px; }
}
.hero-title .elementor-heading-title { color: var(--color-white); font-size: var(--text-h1); line-height: 1.1; }

/* ---------- Home slider: exact copy of the old Revolution Slider "home-1" static layers ----------
   Values per old responsive level, measured 27. 11. 2026: desktop >= 1024 (frame 485, headline 52),
   480-1023 frame 385 with headline 42, < 480 frame 335 with headline 37. Exception: from 778 to 1023 the old
   slider used a 50 px headline off-centre, and PERSONALIZZAZIONE ran 54 px past the frame; here it stays
   42 px and centred, so the headline always fits inside the frame.
   Variables: frame size / line width, frame centre (from the left of the slider), headline size, box and insets.
   Line positions are fractions of the frame, measured from the old site. */
.e-con.hero--slides {
	--frame: 485px; --line: 10px; --frame-cx: calc(50% - 217.5px);
	--t-size: 52px; --t-lh: 67px; --t-left: 34.5px; --t-top: 24.5px;
	min-height: 100svh;
	padding: 0;
}
@media (max-width: 1023px) { .e-con.hero--slides { --frame: 385px; --line: 8px; --frame-cx: 50%; --t-size: 42px; --t-lh: 57px; --t-left: 19px; --t-top: 10.5px; } }
@media (max-width: 479px)  { .e-con.hero--slides { --frame: 335px; --line: 7px; --t-size: 37px; --t-lh: 47px; --t-left: 20px; --t-top: 14px; } }

/* dark translucent panel (old layer 16): from the left edge to the frame's centre line, fades in */
.e-con.hero--slides::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--frame-cx);
	z-index: 1;
	background: rgb(17 17 17 / .5);
	pointer-events: none;
	animation: mdi-fade-in 300ms ease 10ms both;
}
/* faint floor-plan sketch (old static layer home-1-slider-project): desktop centred +12 px, below 1024 on the bottom edge */
.hero--slides .hero-sketch { position: absolute; z-index: 1; left: calc(50% - 950.5px); top: calc(50% + 12px); width: 639px; pointer-events: none; }
.hero-sketch img { display: block; width: 100%; }
@media (max-width: 1023px) { .hero--slides .hero-sketch { left: calc(50% - 632px); top: auto; bottom: 0; width: 454px; } }
@media (max-width: 777px)  { .hero--slides .hero-sketch { left: calc(50% - 454px); } }
@media (max-width: 479px)  { .hero--slides .hero-sketch { left: calc(50% - 239px); width: 240px; } }

.e-con.hero-mark {
	position: absolute;
	left: calc(var(--frame-cx) - var(--frame) / 2);
	top: 50%;
	width: var(--frame);
	height: var(--frame);
	padding: 0;
	transform: translateY(-50%);
}
.hero-mark > .elementor-widget-html { position: absolute; inset: 0; }
.hero-frame { position: absolute; inset: 0; }
.hero-frame__line {
	position: absolute;
	background: var(--color-white);
	animation: var(--from) 300ms cubic-bezier(.645, .045, .355, 1) var(--at) both;
}
.hero-frame__line--top    { left: 0; top: 0; width: 100%; height: var(--line); --from: mdi-from-left; --at: 300ms; }
.hero-frame__line--left   { left: 0; top: 0; width: var(--line); height: 100%; --from: mdi-from-top; --at: 300ms; }
.hero-frame__line--right  { right: 0; top: 0; width: var(--line); height: 100%; --from: mdi-from-top; --at: 500ms; }
.hero-frame__line--bottom { left: 0; bottom: 0; width: 100%; height: var(--line); --from: mdi-from-left; --at: 500ms; }
.hero-frame__line--middle { left: 0; top: 49.34%; width: 100%; height: var(--line); --from: mdi-from-left; --at: 700ms; }
.hero-frame__line--centre { left: 49.11%; top: 49.34%; bottom: 0; width: var(--line); --from: mdi-from-top; --at: 800ms; }
.hero-frame__line--room-h { left: 0; top: 73.67%; width: calc(49.11% + var(--line)); height: var(--line); --from: mdi-from-right; --at: 900ms; }
.hero-frame__line--room-v { left: 24.56%; top: 49.34%; width: var(--line); height: calc(24.33% + var(--line)); --from: mdi-from-bottom; --at: 1000ms; animation-timing-function: cubic-bezier(.455, .03, .515, .955); }
.hero-frame__line--bar    { left: 3.71%; top: 63.71%; width: 26.39%; height: var(--line); --from: mdi-from-right; --at: 1100ms; }

/* headline (old layer 17): Roboto Condensed 700, letter-spacing -2px, one word per line;
   slides in from +50px at 1.5 s with easeInOutBack */
.hero-mark > .elementor-widget-heading { position: absolute; left: var(--t-left); top: var(--t-top); }
.hero-mark .elementor-heading-title {
	color: var(--color-white);
	font-size: var(--t-size);
	line-height: var(--t-lh);
	letter-spacing: -2px;
	white-space: nowrap;
	animation: mdi-slide-in 600ms cubic-bezier(.68, -.55, .265, 1.55) 1500ms both;
}

/* slide navigation (built by site.js on the Elementor slideshow) */
.hero-nav {
	position: absolute;
	z-index: 3;
	display: flex;
	gap: var(--space-2xs);
}
.hero-nav button {
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-white);
	cursor: pointer;
}
/* left as the old bullets, but always at least 2rem left of the frame (around 1024 px they ran across it) */
.hero-nav--bullets {
	left: max(10px, min(clamp(var(--gutter), 7vw, 6.5rem), calc(var(--frame-cx) - var(--frame) / 2 - 2rem)));
	top: 50%;
	flex-direction: column;
	gap: 0;
	transform: translateY(-50%);
}
/* old "aalto-bullets": 1px x 30px white lines, 15px apart, active/hover grows to 6px wide */
.hero-nav--bullets button { width: 2.75rem; height: 2.8125rem; justify-items: start; }
.hero-nav--bullets button::before {
	content: "";
	width: 1px;
	height: 1.875rem;
	background: var(--color-white);
	transition: width 200ms ease-out;
}
.hero-nav--bullets button[aria-current="true"]::before,
.hero-nav--bullets button:hover::before { width: 6px; }
/* old arrows: 48px dark squares, bottom right */
.hero-nav--arrows { right: var(--gutter); bottom: 1.25rem; gap: 0; }
.hero-nav--arrows button { width: 3rem; height: 3rem; background: var(--color-ink); transition: color 300ms ease; }
.hero-nav--arrows button:hover { color: rgb(255 255 255 / .8); }
.hero-nav--arrows svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 480px) { .hero-nav--bullets { display: none; } }
@media (min-width: 481px) { .hero-nav--arrows { display: none; } }

@keyframes mdi-from-left   { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes mdi-from-right  { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes mdi-from-top    { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes mdi-from-bottom { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes mdi-fade-in     { from { opacity: 0; } to { opacity: 1; } }
@keyframes mdi-slide-in { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   6. Page title area (Progetti, Prodotti, project detail)
   ========================================================================== */
.e-con.page-title {
	padding: calc(var(--header-h) + var(--space-xl)) var(--gutter) var(--space-xl);
	background: var(--color-tint);
}
.e-con.page-title > .e-con {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap-content);
}
.page-title .elementor-heading-title { margin: 0; }
/* old Aalto breadcrumbs: Roboto Condensed 300 italic 16px, 40% ink, current page struck through */
.breadcrumbs {
	font-family: var(--font-head);
	font-weight: 300;
	font-style: italic;
	font-size: 1rem;
	line-height: 1.63;
	color: rgb(32 32 32 / .4);
}
.breadcrumbs a { color: inherit; text-decoration: none; transition: color 200ms ease-out; }
.breadcrumbs a:hover { color: var(--color-ink); }
.breadcrumbs [aria-current] { text-decoration: line-through; }
.breadcrumbs .sep { padding-inline: .6em; font-style: normal; }
@media (max-width: 767px) {
	.e-con.page-title > .e-con { flex-direction: column; align-items: flex-start; gap: var(--space-2xs); }
}

/* ==========================================================================
   7. Project feature (Home)
   ========================================================================== */
.e-con.feature {
	display: grid;
	gap: var(--gap-grid);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}
@media (min-width: 768px) {
	.e-con.feature {
		position: relative;
		isolation: isolate;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--space-s);
	}
	/* pinstripe band behind both photos (old theme: 40 % high, 15 % from the bottom) */
	.e-con.feature::after {
		content: "";
		position: absolute;
		inset: auto 0 15% 0;
		height: 40%;
		background: var(--pattern) 0 0 / 5px 5px;
		z-index: -1;
	}
}
.e-con.feature__text { gap: var(--space-m); padding: 0; }
/* old Aalto layout: 2 columns of 552 px with 32 px between, band 16 px wider on each side */
@media (min-width: 1025px) {
	.e-con.feature { padding-inline: 32px; column-gap: 32px; }
	.e-con.feature::after { inset-inline: 16px; }
	.e-con.feature__text { gap: 0; }
	.feature__text .elementor-widget-text-editor { margin: 0 0 42px 90px; }
	.feature__text .elementor-widget-text-editor p { margin: 10px 0; }
}
/* title in the old open square: 5 px lines #eaecf3, 172 px wide, right side only as 13 px corners;
   the square stays, the text slides out of the heading box (reveal) */
.e-con .feature-title.elementor-widget-heading {
	position: relative;
	z-index: 0;
	min-height: 102px;
	padding: 15px 10px 15px 90px;
}
.feature-title .elementor-heading-title {
	max-width: 5em; /* two lines like the old "ABITARE IL<br>FUTURO" */
	line-height: 1.2; /* 36 px at the 30 px desktop size */
	overflow: hidden;
}
.feature-title .elementor-heading-title a { display: block; }
.feature-title::before,
.feature-title::after {
	content: "";
	position: absolute;
	top: 0;
	height: 100%;
	z-index: -1;
}
.feature-title::before {
	left: 0;
	width: 172px;
	border: 5px solid #eaecf3;
	border-right: 0;
}
.feature-title::after {
	left: 172px;
	width: 5px;
	background: linear-gradient(#eaecf3 13px, transparent 13px calc(100% - 13px), #eaecf3 calc(100% - 13px));
}
.feature-title .elementor-heading-title a { color: inherit; text-decoration: none; }
.feature-title .elementor-heading-title a:hover { color: var(--color-line); }

/* ==========================================================================
   8. Accordion on dark photo
   ========================================================================== */
/* old edgtf accordion: every title row has a light line above and below, 50 px padding */
.accordion-dark .e-n-accordion-item-title {
	padding: 50px 0;
	border: 0;
	border-block: 1px solid rgb(255 255 255 / .2);
	background: none;
	color: var(--color-white);
	justify-content: space-between;
}
.accordion-dark .e-n-accordion-item-title-text {
	font-family: var(--font-head);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	font-size: var(--text-h4);
	line-height: 1.29;
	color: var(--color-white);
}
.accordion-dark .e-n-accordion-item-title-icon { color: var(--color-white); fill: var(--color-white); }
.accordion-dark .e-n-accordion-item-title:hover .e-n-accordion-item-title-text { color: var(--color-hover); }
.accordion-dark .e-n-accordion-item > .e-con {
	padding: 40px 0;
	border: 0;
	display: grid;
	gap: var(--gap-grid);
	grid-template-columns: minmax(0, 1fr);
	color: rgb(255 255 255 / .85);
}
@media (min-width: 768px) {
	.accordion-dark .e-n-accordion-item > .e-con { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 30px; }
}
/* readability on the photo (26. 11. 2026): regular weight instead of 300, full white,
   lines at most 34rem (about 75 characters; they ran 780 px across the busiest part of the photo) */
.accordion-dark .elementor-widget-text-editor { color: var(--color-white); font-weight: 400; }
.accordion-dark .elementor-widget-text-editor p { max-width: 34rem; }
/* Moda d'interni band: the same soft shade over the photo as the Home services band (.section--cover) */
.e-con.accordion-band { isolation: isolate; }
.e-con.accordion-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(0 0 0 / var(--band-shade, .63)); /* new photo (2. 12. 2026) is brighter than the old one: shade tuned to the old darkness (77 vs old 78.5, tools/darkness.py) */
}
.accordion-dark .elementor-widget-heading .elementor-heading-title,
.section--dark .elementor-widget-heading .elementor-heading-title { color: var(--color-white); }

/* ==========================================================================
   9. Image with title (Moda d'interni)
   ========================================================================== */
.e-con.media-card { gap: var(--gap-content); padding: 0; }
.media-card .elementor-widget-image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.media-card .elementor-heading-title { font-size: var(--text-h4); line-height: 1.29; }

/* Moda d'interni spacing measured on the old page (1440 px): intro 85 px from the hero,
   cards 74 px under the text, 4 cards with 30 px gaps (one per row on phones), caption 32 px
   under the photo, accordion band without padding, logos 100 px above and below */
.e-con.moda-intro .e-con.grid-4 { grid-template-columns: minmax(0, 1fr); gap: var(--gap-grid); }
/* tablet (26. 11. 2026, readability): heading above the text like the old page, text at most 40rem wide,
   cards 2 by 2 (4 in a row were 156 px wide and the old captions ran into each other) */
@media (min-width: 768px) {
	.e-con.moda-intro .e-con.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
	.moda-intro .e-con.media-card { gap: 32px; }
}
/* the three thoughts of the intro as paragraphs (old: one block with line breaks) */
.moda-intro .intro .elementor-widget-text-editor p { margin: 0; }
.moda-intro .intro .elementor-widget-text-editor p + p { margin-top: .75em; }
@media (min-width: 768px) and (max-width: 1024px) {
	.e-con.moda-intro .e-con.intro { grid-template-columns: minmax(0, 1fr); gap: var(--gap-content); }
	/* five classes: Elementor caps widgets with .elementor.elementor .e-con > .elementor-widget { max-width: 100% } */
	.e-con.moda-intro .e-con.intro > .elementor-widget-text-editor { max-width: 40rem; }
}
@media (min-width: 1025px) {
	.e-con.moda-intro .e-con.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.e-con.moda-intro { padding-block: 85px 61px; gap: 74px; }
	.e-con.moda-partners { padding-block: 100px; }
}
.accordion-band .e-n-accordion-item-title,
.accordion-band .e-n-accordion-item > .e-con { padding-inline: max(var(--gutter), calc((100% - var(--width-content)) / 2)); }

/* ==========================================================================
   10. Team
   ========================================================================== */
/* old Aalto "info box" layout: white name box beside a portrait, tinted block behind */
/* cards come from the Team CPT through a loop grid (template loop-item-team-card); gaps as the old static grid */
.elementor-widget-loop-grid.team-grid { --grid-column-gap: var(--gap-grid); --grid-row-gap: var(--space-l); }
@media (min-width: 768px) { .elementor-widget-loop-grid.team-grid { --grid-row-gap: var(--space-xl); } }
.e-con.team-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	align-items: center;
	padding: var(--space-xs) 0;
	gap: 0;
}
@media (min-width: 768px) { .e-con.team-card { padding-block: var(--space-l); } }
.e-con.team-card::before {
	content: "";
	position: absolute;
	left: 18%;
	top: 14%;
	width: 34%;
	height: 76%;
	background: var(--color-tint);
	z-index: 0;
}
.team-card > .team-card__photo { grid-column: 2; grid-row: 1; z-index: 1; }
.team-card__photo img {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	display: block;
}
.e-con.team-card__info {
	grid-column: 1;
	grid-row: 1;
	z-index: 2;
	padding: var(--space-s) var(--space-m);
	gap: var(--gap-tight);
	background: var(--color-white);
	box-shadow: 0 0 0 1px var(--color-gridline);
}
.team-card__info .elementor-heading-title { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); } /* names up to 21 px as on the old site (2. 12. 2026) */
.team-card__info .elementor-widget-heading.subtitle .elementor-heading-title { font-size: .9375rem; }
/* phones and tablets: name box above a full-width portrait, as on the old site (2. 12. 2026: up to
   1024 px; on tablets the side-by-side card made 180 px photos and names on two lines) */
@media (max-width: 1024px) {
	.elementor-widget-loop-grid.team-grid { --grid-row-gap: var(--space-l); }
	.e-con.team-card { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
	.e-con.team-card::before { display: none; }
	.e-con.team-card__info { grid-column: 1; grid-row: 1; padding: var(--space-s) var(--space-m); }
	.team-card > .team-card__photo { grid-column: 1; grid-row: 2; }
	.team-card__photo img { aspect-ratio: 4 / 5; }
}
@media (min-width: 1025px) {
	.elementor-widget-loop-grid.team-grid { --grid-row-gap: var(--space-s); }
	.e-con.team-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); padding: var(--space-s) 4%; }
	.e-con.team-card__info { padding: var(--space-m) var(--space-s); } /* narrower sides so the longest name stays on one line at 21 px */
}

/* ==========================================================================
   11. Logo carousel
   ========================================================================== */
/* old clients carousel: 5 logos of 240 px side by side, no gaps */
.logo-carousel .swiper-slide-image { mix-blend-mode: multiply; width: 100%; max-width: 15rem; height: auto; margin-inline: auto; }
.logo-carousel .swiper-slide { display: flex; align-items: center; justify-content: center; }

/* ==========================================================================
   12. Portfolio card (loop item)
   ========================================================================== */
.e-con.portfolio-card {
	position: relative;
	padding: 0;
	gap: 0;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--color-alt);
}
.portfolio-card .elementor-widget-theme-post-featured-image,
.portfolio-card .elementor-widget-theme-post-featured-image .elementor-widget-container,
.portfolio-card .elementor-widget-theme-post-featured-image a { height: 100%; display: block; }
.portfolio-card .elementor-widget-theme-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms var(--ease);
}
/* old Aalto "gallery-shader-info" (dark skin): veil rgba(32,32,32,.9) fades in (200 ms),
   title bottom left slides in from the left out of a mask; nothing on touch devices */
.e-con.portfolio-card__info {
	position: absolute;
	inset: 0;
	padding: 20px 23px;
	justify-content: flex-end;
	align-items: flex-start;
	text-align: left;
	background: rgb(32 32 32 / .9);
	opacity: 0;
	transition: opacity 200ms ease-in-out;
	pointer-events: none;
}
.portfolio-card__info .elementor-widget-theme-post-title { overflow: hidden; max-width: 100%; }
.portfolio-card__info .elementor-heading-title {
	color: var(--color-white);
	font-size: var(--text-h4);
	transform: translate3d(-130%, 0, 0);
	transition: transform 400ms cubic-bezier(.6, .3, .11, .86) 100ms;
}
.portfolio-card__info .elementor-heading-title a { color: inherit; text-decoration: none; pointer-events: auto; }
.portfolio-card__info .elementor-heading-title a::after { content: ""; position: absolute; inset: 0; }
.portfolio-card:hover .e-con.portfolio-card__info,
.portfolio-card:focus-within .e-con.portfolio-card__info { opacity: 1; }
.portfolio-card:hover .portfolio-card__info .elementor-heading-title,
.portfolio-card:focus-within .portfolio-card__info .elementor-heading-title { transform: none; }

.e-con.portfolio-section { padding: 20px 23px 8px; } /* old Progetti row: 23px sides, 20px gaps */
@media (min-width: 1025px) { .e-con.page-title.page-title--wide > .e-con { max-width: none; padding-inline: calc(100px - var(--gutter)); } }

/* product card (old Aalto "gallery-info-bottom", dark skin): square photo only; on hover a
   #202020 box slides up from the bottom edge (250 ms) and the title fades in after 400 ms;
   the whole card opens the product's photos in the lightbox ([mdi_product_lightbox]) */
.e-con.product-card { position: relative; padding: 0; gap: 0; overflow: hidden; }
.product-card .elementor-widget-theme-post-featured-image img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; display: block; }
.product-card > .product-card__links { position: absolute; inset: 0; }
.product-card__overlay,
.product-card__link {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	text-decoration: none;
}
.product-card__box {
	display: inline-block;
	padding: 17px 25px;
	background: var(--color-ink);
	transform: translateY(130%);
	transition: transform 250ms ease-in-out;
}
.product-card__title {
	display: block;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: var(--text-h4);
	line-height: 1.3;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	color: var(--color-white);
	opacity: 0;
	transition: opacity 200ms ease-out;
}
.product-card:hover .product-card__box,
.product-card__link:focus-visible .product-card__box { transform: translateY(0); }
.product-card:hover .product-card__title,
.product-card__link:focus-visible .product-card__title { opacity: 1; transition: opacity 200ms ease-out 400ms; }
.product-card__link:focus-visible { outline-offset: -4px; }

/* taxonomy filter (old: Roboto Condensed 300, 16px, active item faded) */
.portfolio-filter .e-filter { justify-content: center; gap: 0 2rem; }
.portfolio-filter .e-filter-item {
	min-height: 2.75rem;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--font-head);
	font-weight: 300;
	font-size: 1rem;
	letter-spacing: .02em;
	text-transform: none;
	color: var(--color-ink);
	cursor: pointer;
	transition: color var(--dur) var(--ease);
}
.portfolio-filter .e-filter-item[aria-pressed="true"] { color: rgb(76 76 76 / .4); }
.portfolio-filter .e-filter-item:hover { color: var(--color-line); }

/* ==========================================================================
   13. Project detail
   ========================================================================== */
/* old single "gallery": 3 columns, 30px gaps, 3:2 crops; title + text in 2/3 width;
   line; "related" heading and cards; light bar with prev arrow and back-to-list squares */
/* gallery as a grid (2. 12. 2026): 30 px gaps inside the column, nothing sticks out on the right;
   columns as on the old site: 1 on phones, 2 on tablets, 3 from 1025 px */
.project-gallery .gallery { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.project-gallery .gallery > br { display: none; }
.project-gallery .gallery .gallery-item { width: auto; max-width: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .project-gallery .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1025px) { .project-gallery .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.project-gallery .gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: opacity var(--dur) var(--ease); }
.project-gallery .gallery-item a:hover img { opacity: .85; }
.e-con.project-info { padding: 0; gap: var(--space-xs); }
.project-info__title .elementor-heading-title { font-size: var(--text-h3); }
.single-portfolio-item .page-title .elementor-heading-title { font-size: var(--text-h2); }
.project-text { max-width: 100%; }
@media (min-width: 1025px) { .project-text { max-width: 66%; } }
.e-con.project-related { padding-top: 0; }
.e-con.project-related__inner {
	padding: var(--space-xl) 0 0;
	border-top: 1px solid var(--color-gridline);
	gap: var(--space-l);
}
.project-related__heading { text-align: center; }
.e-con.related-card { padding: 0; gap: var(--space-2xs); align-items: center; text-align: center; }
.related-card > .elementor-widget-theme-post-featured-image { padding-bottom: var(--space-2xs); }
.related-card .elementor-widget-theme-post-featured-image { width: 100%; }
.related-card .elementor-widget-theme-post-featured-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: opacity var(--dur) var(--ease); }
.related-card .elementor-widget-theme-post-featured-image a:hover img { opacity: .85; }
.related-card__title .elementor-heading-title { font-size: var(--text-h4); }
.related-card__title .elementor-heading-title a { color: inherit; text-decoration: none; }
.related-card__title .elementor-heading-title a:hover { color: var(--color-line); }
.elementor-widget-heading.related-card__terms .elementor-heading-title {
	font-family: var(--font-head);
	font-weight: 300;
	font-style: italic;
	font-size: 1rem;
	text-transform: none;
	letter-spacing: 0;
	color: rgb(32 32 32 / .4);
}
.e-con.project-nav-band { padding: var(--space-m) var(--gutter); background: var(--color-tint); }
.project-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.project-nav__side--next { text-align: right; }
.project-nav__arrow { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--color-ink); transition: color var(--dur) var(--ease); }
.project-nav__arrow svg { width: 1.75rem; height: 1.75rem; }
.project-nav__arrow:hover { color: var(--color-line); }
.project-nav__back { display: grid; grid-template-columns: repeat(2, 8px); gap: 4px; padding: 13px; }
.project-nav__back span { width: 8px; height: 8px; border: 1px solid var(--color-ink); transition: background-color var(--dur) var(--ease); }
.project-nav__back:hover span { background: var(--color-ink); }

/* ==========================================================================
   14. Buttons and links
   ========================================================================== */
.elementor-button {
	font-family: var(--font-head);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	min-height: 3rem;
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-arrow .elementor-button {
	padding: 0;
	min-height: 2.75rem;
	background: none;
	color: var(--color-ink);
	gap: .6em;
}
.link-arrow .elementor-button:hover { color: var(--color-line); background: none; }
.btn-outline .elementor-button {
	background: transparent;
	color: var(--color-ink);
	border: 1px solid var(--color-ink);
	padding: .9em 1.8em;
}
.btn-outline .elementor-button:hover { background: var(--color-ink); color: var(--color-white); }
.section--dark .link-arrow .elementor-button,
.accordion-dark .link-arrow .elementor-button { color: var(--color-white); }

/* ==========================================================================
   15. Forms (Elementor Form)
   ========================================================================== */
.contact-form .elementor-field-group:not(.elementor-field-type-submit):not(.elementor-field-type-acceptance) .elementor-field {
	border: 0;
	border-bottom: 1px solid var(--color-hover);
	border-radius: 0;
	background: transparent;
	padding: var(--space-xs) var(--space-2xs);
	font-size: var(--text-m);
	color: var(--color-ink);
	min-height: 3rem;
}
.contact-form .elementor-field-group .elementor-field:focus { border-bottom-color: var(--color-ink); outline: none; box-shadow: 0 1px 0 0 var(--color-ink); }
.contact-form .elementor-field-label { font-size: var(--text-s); color: var(--color-body); }
.contact-form .elementor-field-type-acceptance { font-size: var(--text-s); }
.contact-form .elementor-field-type-acceptance a { text-decoration: underline; }
.contact-form .elementor-button {
	width: 100%;
	background: var(--color-dark);
	color: var(--color-white);
	border-radius: 0;
	font-family: var(--font-body);
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}
.contact-form .elementor-button:hover { background: var(--color-line); }

/* contact details */
.contact-list .elementor-icon-list-item { padding-block: var(--space-2xs); }
.contact-list .elementor-icon-list-icon svg,
.footer-contacts .elementor-icon-list-icon svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; }
.contact-list .elementor-icon-list-icon { color: var(--color-ink); }
.footer-contacts .elementor-icon-list-icon { color: rgb(255 255 255 / .6); }
.contact-form .elementor-field-type-acceptance input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin: .15em .5em 0 0; accent-color: var(--color-dark); }
.contact-form .elementor-field-type-acceptance .elementor-field-option { display: flex; align-items: flex-start; }
.contact-list .elementor-icon-list-text { font-family: var(--font-head); font-size: 1rem; color: var(--color-ink); }
.contact-list a:hover .elementor-icon-list-text { color: var(--color-line); }

.map-embed iframe { display: block; width: 100%; height: clamp(18rem, 12rem + 20vw, 28rem); border: 0; filter: grayscale(1); }

/* ==========================================================================
   16. Header
   ========================================================================== */
/* Desktop values copied from the old Aalto header (measured 24. 11. 2026):
   116px high, 100px side padding (40px up to 1280px), logo 100px high and centred,
   menu Roboto Condensed 300 16/23px with 29px link padding, 1x26px separators after each link
   except the last; over the slider: transparent, text white 80%, separators rgba(224,228,242,.2);
   other pages: white, text #202020, separators #e0e4f2. After scrolling: on slider pages a white
   70px bar that slides in when scrolling up (logo 70px, same side padding as before scrolling), on other pages the header
   stays fixed at 87px. */
.e-con.site-header {
	--hdr-pad: 100px;
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-s);
	min-height: var(--header-h);
	padding: 0 var(--hdr-pad);
	background: var(--color-white);
	transition: transform 600ms ease, background-color 200ms ease-out, min-height 200ms ease-out;
}
@media (max-width: 1280px) { .e-con.site-header { --hdr-pad: 40px; } }
.admin-bar .e-con.site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header .elementor-widget-image img { width: auto; height: 100px; display: block; transition: height 200ms ease-out; }
.site-header .elementor-widget-image a { display: block; }

/* desktop menu (.elementor-nav-menu in the selector: Elementor Pro sets padding 13px 20px on
   a:hover, a:focus and a.highlighted, which made the item jump on hover) */
.site-header .elementor-nav-menu--main .elementor-nav-menu .elementor-item {
	font-family: var(--font-head);
	font-weight: 300;
	font-size: 16px;
	line-height: 23px;
	letter-spacing: normal;
	color: var(--color-ink);
	padding: 0 29px;
	min-height: 2.75rem;
	display: flex;
	align-items: center;
	transition: color 200ms ease-out;
}
.site-header .elementor-nav-menu--main .elementor-item:hover { color: var(--color-line); }
.site-header .elementor-nav-menu--main .elementor-nav-menu > li { position: relative; }
.site-header .elementor-nav-menu--main .elementor-nav-menu > li:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	height: 26px;
	transform: translateY(-50%);
	border-left: 0;
	border-right: 1px solid rgb(224 228 242);
}

/* over the slider */
.has-hero .e-con.site-header { background: transparent; }
.has-hero .site-header .elementor-nav-menu--main .elementor-item { color: rgb(255 255 255 / .8); }
.has-hero .site-header .elementor-nav-menu--main .elementor-item:hover { color: var(--color-white); }
.has-hero .site-header .elementor-nav-menu--main .elementor-nav-menu > li:not(:last-child)::after { border-right-color: rgb(224 228 242 / .2); }
.has-hero .site-header .elementor-menu-toggle { color: var(--color-white); }

/* after scrolling */
@media (min-width: 1025px) {
	.e-con.site-header.is-scrolled { min-height: 87px; height: 87px; }
	.e-con.site-header.is-scrolled .elementor-widget-image { align-self: flex-start; }
	/* same side padding as the header before scrolling, so logo and menu keep their positions (Jan, 26. 11. 2026) */
	.header-autohide .e-con.site-header.is-scrolled { min-height: 70px; height: 70px; background: var(--color-white); }
	.header-autohide .site-header.is-scrolled .elementor-widget-image { align-self: center; }
	.header-autohide .site-header.is-scrolled .elementor-widget-image img { height: 70px; }
	.has-hero .site-header.is-scrolled .elementor-nav-menu--main .elementor-item { color: var(--color-ink); }
	.has-hero .site-header.is-scrolled .elementor-nav-menu--main .elementor-item:hover { color: var(--color-line); }
	.has-hero .site-header.is-scrolled .elementor-nav-menu--main .elementor-nav-menu > li:not(:last-child)::after { border-right-color: rgb(224 228 242); }
}
.e-con.site-header.is-hidden { transform: translateY(-110%); }
body.menu-open .e-con.site-header { transform: none; }

/* page title band under the header: 240px like the old title area */
@media (min-width: 1025px) {
	.e-con.page-title { padding-top: var(--header-h); padding-bottom: 0; }
	.e-con.page-title > .e-con { min-height: 240px; }
}

/* mobile and tablet (old Aalto mobile header): white 70px bar with a grey bottom line,
   hamburger on the left, logo in the middle; menu drops down under the bar as a white list */
.site-header .elementor-menu-toggle {
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	justify-content: flex-start;
	background: none;
	color: var(--color-ink);
	font-size: 1.25rem;
}
.site-header .elementor-menu-toggle svg { fill: currentColor; }
.site-header .elementor-nav-menu--toggle .elementor-menu-toggle + .elementor-nav-menu--dropdown.elementor-nav-menu__container {
	position: fixed;
	inset: var(--header-h) 0 auto 0;
	max-height: calc(100svh - var(--header-h));
	margin: 0;
	padding: 0 var(--gutter);
	background: var(--color-white);
	border-bottom: 1px solid #d2d2d2;
	overflow-y: auto;
	transform: none;
	clip-path: inset(0 0 100% 0);
	visibility: hidden;
	transition: clip-path 300ms ease-in-out, visibility 0s linear 300ms;
}
.site-header .elementor-nav-menu--toggle .elementor-menu-toggle.elementor-active + .elementor-nav-menu--dropdown.elementor-nav-menu__container {
	clip-path: inset(0 0 0 0);
	visibility: visible;
	transition: clip-path 300ms ease-in-out, visibility 0s;
}
.site-header .elementor-nav-menu--dropdown > .elementor-nav-menu { width: 100%; }
.site-header .elementor-nav-menu--dropdown .elementor-item {
	justify-content: flex-start;
	min-height: 2.75rem;
	padding: 9px 0 9px 4px;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: .8125rem;
	text-transform: none;
	letter-spacing: 0;
	color: var(--color-body);
	background: none;
	border-bottom: 1px solid #d2d2d2;
	display: flex;
	align-items: center;
}
.site-header .elementor-nav-menu--dropdown li:last-child > .elementor-item { border-bottom: 0; }
.site-header .elementor-nav-menu--dropdown .elementor-item:hover,
.site-header .elementor-nav-menu--dropdown .elementor-item.elementor-item-active { color: var(--color-ink); background: none; }

@media (max-width: 1024px) {
	:root { --header-h: 4.375rem; }
	.e-con.site-header,
	.has-hero .e-con.site-header {
		justify-content: center;
		background: var(--color-white);
		border-bottom: 1px solid #d2d2d2;
	}
	/* the widget is a column flexbox (Elementor), so justify-content centres the hamburger vertically in the bar */
	.site-header > .site-nav { position: absolute; left: var(--gutter); top: 0; height: 100%; display: flex; justify-content: center; align-items: flex-start; }
	.has-hero .site-header .elementor-menu-toggle { color: var(--color-ink); }
	.site-header .elementor-widget-image img { height: 60px; }
	/* the hero starts under the bar, like the old full-screen slider */
	.e-con.hero { margin-top: var(--header-h); min-height: calc(100svh - var(--header-h)); padding-top: var(--space-l); }
}

/* ==========================================================================
   17. Footer
   ========================================================================== */
/* old footer: logo, social text links under it, small line below; dark */
.e-con.site-footer {
	padding: var(--space-xl) var(--gutter);
	gap: var(--space-s);
	background: var(--color-dark);
	color: rgb(255 255 255 / .7);
	font-size: var(--text-s);
}
.e-con.site-footer__top { gap: var(--space-s); align-items: flex-start; }
.site-footer .elementor-widget-image img { width: 100px; display: block; }
.site-footer a { color: rgb(255 255 255 / .8); text-decoration: none; }
.site-footer a:hover { color: var(--color-white); }
.footer-social .elementor-icon-list-items { display: flex; flex-wrap: wrap; gap: 0 45px; }
.footer-social .elementor-icon-list-item a {
	min-height: 2.75rem;
	display: inline-flex;
	align-items: center;
	font-family: var(--font-body);
	font-weight: 300;
	font-style: italic;
	font-size: .9375rem;
	line-height: 25px;
}
.footer-social .elementor-icon-list-text { color: inherit; }
.site-footer .footer-logo,
.site-header .site-logo { text-align: left; }
.e-con.site-footer__bottom { padding: 0; gap: var(--gap-tight); font-size: .8125rem; line-height: 1.6; }
.legal-links a { display: inline-block; padding-block: .75rem; margin-block: -.75rem; }
.legal-links .sep { padding-inline: .6em; opacity: .5; }
/* bottom bar (2. 12. 2026): thin line above, copyright and company data with dots between them,
   credit on the right; labels a shade softer than the values; on phones one item per line */
.e-con.site-footer__bottom { border-top: 1px solid rgb(255 255 255 / .12); padding-top: var(--space-s); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: baseline; margin: 0; }
.footer-legal__item { white-space: nowrap; }
.footer-legal__item + .footer-legal__item::before { content: "·"; padding-inline: .7em; opacity: .4; }
.footer-legal__label { opacity: .75; }
.footer-legal__credit { margin-left: auto; padding-left: var(--space-s); }
.footer-legal__item.footer-legal__credit::before { content: none; }
@media (max-width: 1024px) {
	.footer-legal { flex-direction: column; align-items: flex-start; gap: var(--gap-tight); }
	.footer-legal__item { white-space: normal; }
	.footer-legal__item + .footer-legal__item::before { content: none; }
	.footer-legal__credit { margin-left: 0; padding-left: 0; margin-top: var(--space-2xs); }
}

/* back to top (old Aalto: dark 39px square with "Top", four grey corner lines that grow on hover) */
.to-top {
	position: fixed;
	right: 20px;
	bottom: 25px;
	z-index: 90;
	width: 41px;
	height: 41px;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 150ms ease, visibility 0s linear 150ms;
}
.to-top.is-visible { opacity: 1; visibility: visible; transition: opacity 300ms ease; }
.to-top__box {
	display: block;
	width: 39px;
	height: 39px;
	border: 1px solid var(--color-ink);
	background: var(--color-ink);
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: 13px;
	line-height: 39px;
	text-align: center;
}
.to-top__line { position: absolute; z-index: 1; background: #999; transition: width 200ms ease-in-out, height 200ms ease-in-out; }
.to-top__line--1, .to-top__line--3 { width: 13px; height: 1px; }
.to-top__line--2, .to-top__line--4 { width: 1px; height: 13px; }
.to-top__line--1 { top: 0; left: -6px; }
.to-top__line--2 { top: -6px; left: 0; }
.to-top__line--3 { bottom: 0; right: -6px; }
.to-top__line--4 { bottom: -6px; right: 0; }
.to-top:hover .to-top__line--1, .to-top:hover .to-top__line--3, .to-top:focus-visible .to-top__line--1, .to-top:focus-visible .to-top__line--3 { width: 47px; }
.to-top:hover .to-top__line--2, .to-top:hover .to-top__line--4, .to-top:focus-visible .to-top__line--2, .to-top:focus-visible .to-top__line--4 { height: 47px; }

/* ==========================================================================
   18. Motion
   Animations play regardless of the OS "reduce motion" setting (client decision,
   20. 11. 2026, like the old site); see "SITE: animations" in functions.php.
   ========================================================================== */

/* section heading lines grow when the heading enters the viewport (site.js adds .is-in) */
.js-reveal .heading-lines > .elementor-widget:first-child::before,
.js-reveal .heading-lines > .elementor-widget:last-child::after {
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 700ms var(--ease) 150ms;
}
.js-reveal .heading-lines > .elementor-widget:last-child::after { transition-delay: 450ms; }
.js-reveal .heading-lines.is-in > .elementor-widget:first-child::before,
.js-reveal .heading-lines.is-in > .elementor-widget:last-child::after { transform: none; }

/* faint vertical grid lines of the old theme (desktop) */
@media (min-width: 1025px) {
	html { background: var(--color-white); }
	body { background: transparent; }
	body::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: -1;
		pointer-events: none;
		background: linear-gradient(90deg,
			transparent calc(25% - 1px), var(--color-gridline) 0 25%,
			transparent 0 calc(50% - 1px), var(--color-gridline) 0 50%,
			transparent 0 calc(75% - 1px), var(--color-gridline) 0 75%,
			transparent 0);
	}
}

/* ==========================================================================
   19. Appear effects of the old theme (site.js adds .is-in when in view)
   ========================================================================== */
/* project block: images wipe in (first from the right, second from the left),
   title and excerpt slide out of a mask from the left */
.js-reveal .feature .feature__media img {
	clip-path: inset(0 0 0 100%);
	transition: clip-path 700ms cubic-bezier(.6, .3, .11, .86);
}
.js-reveal .feature .feature__text .feature__media img { clip-path: inset(0 100% 0 0); transition-delay: 500ms; }
.js-reveal .feature .feature__text .elementor-widget-text-editor { overflow: hidden; }
.js-reveal .feature .feature-title .elementor-heading-title a,
.js-reveal .feature .feature__text .elementor-widget-text-editor p {
	transform: translate3d(-110%, 0, 0);
	transition: transform 550ms cubic-bezier(.6, .3, .11, .86) 250ms;
}
.js-reveal .feature .feature__text .elementor-widget-text-editor p { transition-delay: 400ms; }
.js-reveal .feature.is-in .feature__media img { clip-path: inset(0 0 0 0); }
.js-reveal .feature.is-in .feature-title .elementor-heading-title a,
.js-reveal .feature.is-in .feature__text .elementor-widget-text-editor p { transform: none; }

/* team: name and role slide in from the right inside the box */
.js-reveal .team-card .e-con.team-card__info { overflow: hidden; }
.js-reveal .team-card .team-card__info > .elementor-widget {
	transform: translate3d(100%, 0, 0);
	transition: transform 550ms cubic-bezier(.6, .3, .11, .86) 200ms;
}
.js-reveal .team-card .team-card__info > .elementor-widget + .elementor-widget { transition-delay: 320ms; }
.js-reveal .team-card.is-in .team-card__info > .elementor-widget { transform: none; }

/* accordion: one × icon, turned 45° into a + while closed (old lnr-cross) */
.accordion-dark.elementor-widget-n-accordion .e-n-accordion-item[open] > .e-n-accordion-item-title .e-n-accordion-item-title-icon .e-opened { display: none; }
.accordion-dark.elementor-widget-n-accordion .e-n-accordion-item[open] > .e-n-accordion-item-title .e-n-accordion-item-title-icon .e-closed { display: flex; }
.accordion-dark .e-n-accordion-item-title-icon .e-closed svg { transition: transform 200ms ease-out; transform: rotate(45deg); }
.accordion-dark .e-n-accordion-item[open] > .e-n-accordion-item-title .e-n-accordion-item-title-icon .e-closed svg,
.accordion-dark .e-n-accordion-item-title:hover .e-n-accordion-item-title-icon .e-closed svg { transform: rotate(0deg); }


/* ==========================================================================
   20. Old-site details (forms, Moda d'interni, Instagram button)
   ========================================================================== */
/* form: placeholders like the old CF7 form (labels stay for screen readers) */
.contact-form .elementor-field-group:not(.elementor-field-type-submit):not(.elementor-field-type-acceptance) .elementor-field {
	padding: var(--space-xs) 10px;
	font-size: .875rem;
}
.contact-form .elementor-field::placeholder { color: var(--color-body); opacity: 1; }

/* Moda d'interni intro: heading indented, text narrower (old 16% / 20% paddings) */
@media (min-width: 1025px) {
	.intro > .elementor-widget-heading { padding-left: 16%; }
	.intro > .elementor-widget-text-editor { padding-right: 20%; }
}
/* accordion subheadings as big as the old h3 */
.accordion-dark .elementor-widget-heading h4.elementor-heading-title { font-size: var(--text-h3); }

/* Instagram: old Smash Balloon follow button */
.btn-instagram .elementor-button {
	min-height: 2.75rem;
	padding: 7px 12px;
	border-radius: 4px;
	background: rgb(64 139 209);
	color: var(--color-white);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: .8125rem;
	text-transform: none;
	letter-spacing: 0;
}
.btn-instagram .elementor-button:hover { background: rgb(64 139 209 / .85); color: var(--color-white); }
.btn-instagram .elementor-button-icon svg { width: 1em; height: 1em; fill: none; stroke: currentColor; }

/* old theme pinstripe pattern where the old site used it */
.e-con.page-title { background-color: var(--color-white); background-image: var(--pattern-light); background-size: 5px 5px; }
.e-con.section--alt { background-color: var(--color-white); background-image: var(--pattern); background-size: 5px 5px; }
.e-con.project-nav-band { background-color: var(--color-white); background-image: var(--pattern); background-size: 5px 5px; }
.e-con.team-card::before { background: var(--pattern) 0 0 / 5px 5px; }

/* ==========================================================================
   Error page (404 and 410 of removed demo URLs; template error-404)
   ========================================================================== */
.e-con.error-page { align-items: flex-start; }
.error-page .elementor-widget-text-editor p { margin: 0; max-width: 34rem; }
.e-con.error-page__actions { flex-direction: row; flex-wrap: wrap; gap: var(--gap-inline, var(--space-s)); padding: 0; }
@media (max-width: 767px) {
	.e-con.error-page__actions { flex-direction: column; align-items: stretch; width: 100%; }
	.error-page__actions .elementor-button { width: 100%; justify-content: center; }
}

/* Home services band (2. 12. 2026): no padding above and below the accordion, as on the old site,
   where the first row started at the top edge of the photo (it was 72 px lower on desktop) */
.e-con.section--cover.services-band { padding-block: 0; }

/* Home spacing on desktop measured against the old site at 1440 px (2. 12. 2026): section padding and the
   heading-to-content gap, so every section starts where it did (phones and tablets stay a bit tighter) */
@media (min-width: 1025px) {
	.e-con.section.projects-section { padding-top: 86px; padding-bottom: 148px; }
	.e-con.section.team-section { padding-top: 87px; padding-bottom: 95px; row-gap: 46px; }
	.e-con.section.contact-section { padding-top: 109px; }
}
