/* ==========================================================================
   Watergy Italia 2.0 — "Albedo"
   Una superficie chiara che rimanda la luce; il calore compare solo come dato.
   ========================================================================== */

:root {
	--ink: #13232E;          /* bitume: testo e fondi scuri */
	--ink-2: #3D505D;        /* testo secondario */
	--ink-3: #5B6C77;        /* meta, etichette */
	--line: #D5DDE2;
	--line-strong: #AFBCC4;
	--paper: #F5F7F8;        /* albedo */
	--white: #FFFFFF;
	--blue: #17508F;         /* goccia (dal logo) */
	--blue-2: #0F3D70;
	--lime: #B9CC1B;         /* lampo (dal logo) */
	--lime-2: #A6B814;
	--heat-0: #2E2A86;
	--heat-1: #1D8FC4;
	--heat-2: #F3C52F;
	--heat-3: #EA6A23;
	--heat-4: #C8243A;

	--font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 6px;
	--section: clamp(64px, 9vw, 120px);
	--header-h: 72px;
	--shadow: 0 1px 0 rgba(19, 35, 46, .06), 0 12px 32px -18px rgba(19, 35, 46, .35);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
svg.icon { display: inline-block; flex: none; vertical-align: middle; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 700; font-stretch: 108%; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.section--ink :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible, .side-box--ink :focus-visible { outline-color: var(--lime); }
abbr[title] { text-decoration: none; cursor: help; }
small, .small { font-size: .875rem; }
.muted { color: var(--ink-3); }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 1000;
	background: var(--lime); color: var(--ink); padding: 10px 16px; font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }
.site-main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* --------------------------------------------------------------------------
   Pulsanti e link
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .7em 1.35em;
	font-weight: 650; font-size: 1rem; font-stretch: 104%; line-height: 1.15; text-align: center;
	border: 2px solid transparent; border-radius: var(--radius);
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn--sm { min-height: 40px; padding: .5em 1em; font-size: .9375rem; }
.btn--block { display: flex; width: 100%; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-2); color: var(--ink); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-2); color: var(--white); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }

.link-arrow {
	display: inline-flex; align-items: center; gap: .3em;
	font-weight: 650; text-decoration: none; color: var(--blue);
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-doc { display: inline-flex; align-items: center; gap: .35em; color: var(--ink-2); font-size: .9375rem; text-decoration: none; }
.link-doc:hover { color: var(--blue); text-decoration: underline; }
.link-light { color: var(--white); }
.link-light:hover { color: var(--lime); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--ink); color: var(--white);
	border-bottom: 1px solid rgba(255,255,255,.08);
}
body.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }
.site-header__bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; color: var(--white); }
.brand__logo { height: 40px; width: auto; max-width: 200px; object-fit: contain; object-position: left center; }
.brand__text { font-weight: 800; font-stretch: 118%; font-size: 1.25rem; letter-spacing: -.01em; }

.nav { margin-left: auto; }
.nav__list, .nav__list ul { list-style: none; margin: 0; padding: 0; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list a {
	display: block; padding: 10px 12px; color: rgba(255,255,255,.88);
	text-decoration: none; font-weight: 550; font-size: .9875rem; border-radius: 4px;
}
.nav__list a:hover { color: var(--white); background: rgba(255,255,255,.07); }
.nav__list .current-menu-item > a,
.nav__list .current-menu-ancestor > a,
.nav__list .current_page_item > a,
.nav__list .current-page-ancestor > a { color: var(--white); box-shadow: inset 0 -3px 0 var(--lime); border-radius: 0; }
.nav__sub-toggle { background: none; border: 0; color: rgba(255,255,255,.8); padding: 6px; margin-left: -8px; cursor: pointer; }
.nav__list .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px;
	background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.nav__list .sub-menu a { color: var(--ink); padding: 8px 12px; }
.nav__list .sub-menu a:hover { background: var(--paper); color: var(--blue); }
.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu,
.nav__list li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__mobile-extra { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 16px; }
.site-header__phone { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.85); text-decoration: none; font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.site-header__phone:hover { color: var(--white); }
.burger { display: none; background: none; border: 0; color: var(--white); padding: 8px; margin-right: -8px; cursor: pointer; }
.burger__close { display: none; }

@media (max-width: 1180px) { .site-header__phone span { display: none; } }
@media (max-width: 1020px) {
	.burger { display: inline-flex; }
	.site-header__cta, .site-header__phone { display: none; }
	.site-header__actions { margin-left: auto; }
	.nav {
		position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
		background: var(--ink); padding: 16px var(--gutter) 32px; overflow-y: auto;
		display: none;
	}
	body.admin-bar .nav { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 46px)); }
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.1); }
	.nav__list > li > a { flex: 1; padding: 16px 0; font-size: 1.125rem; }
	.nav__list .current-menu-item > a, .nav__list .current_page_item > a { box-shadow: none; color: var(--lime); }
	.nav__sub-toggle { margin: 0; padding: 12px; }
	.nav__list .sub-menu { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 12px 12px; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.nav__list li.is-open > .sub-menu { display: block; }
	.nav__list .sub-menu a { color: rgba(255,255,255,.85); }
	.nav__list .sub-menu a:hover { background: none; color: var(--white); }
	.nav__mobile-extra { display: grid; gap: 16px; margin-top: 24px; }
	.nav__phone { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-size: 1.125rem; }
	.burger[aria-expanded="true"] .burger__open { display: none; }
	.burger[aria-expanded="true"] .burger__close { display: inline; }
	body.nav-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   Sezioni
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink .section__lead { color: rgba(255,255,255,.78); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.section__head--split > div { max-width: 720px; }
.section__title { font-size: clamp(1.9rem, 1.25rem + 2.1vw, 2.9rem); font-stretch: 114%; font-weight: 720; line-height: 1.04; letter-spacing: -.025em; margin-bottom: .35em; }
.section__title--sm { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 1em; }
.section__lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 64ch; margin: 0; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(48px, 7vw, 96px); background: var(--white); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__grid--single { grid-template-columns: minmax(0, 860px); }
.hero__title {
	font-size: clamp(2.55rem, 1.45rem + 4.4vw, 5rem);
	font-stretch: 120%; font-weight: 760; line-height: .98; letter-spacing: -.035em;
	margin-bottom: .4em; text-wrap: balance;
}
.hero__lead { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.facts {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: clamp(48px, 7vw, 88px) 0 0; padding: 0;
	border-top: 2px solid var(--ink);
}
.facts__item { padding: 20px 24px 28px 0; border-right: 1px solid var(--line); margin: 0; }
.facts__item + .facts__item { padding-left: 24px; }
.facts__item:last-child { border-right: 0; }
.facts dt { font-size: .9375rem; color: var(--ink-3); line-height: 1.35; margin-bottom: 8px; max-width: 24ch; }
.facts dd { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.4rem); font-weight: 720; font-stretch: 112%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }

@media (max-width: 960px) {
	.hero__grid { grid-template-columns: 1fr; }
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.facts__item:nth-child(2) { border-right: 0; }
	.facts__item:nth-child(3) { padding-left: 0; }
	.facts__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   Strumento temperature (elemento distintivo)
   -------------------------------------------------------------------------- */
.thermal {
	margin: 0; padding: clamp(20px, 3vw, 32px);
	background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
}
.thermal__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.thermal__title { font-size: .9375rem; color: var(--ink-2); font-weight: 550; }
.thermal__time { font-size: 1.5rem; font-weight: 720; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.thermal__surfaces { display: grid; gap: 10px; }
.surface {
	display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px;
	background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px 8px 8px;
}
.surface__swatch {
	height: 40px; border-radius: 4px; background: var(--heat);
	box-shadow: inset 0 0 0 1px rgba(19,35,46,.12);
	transition: background-color .25s linear;
}
.surface__label { font-size: .9375rem; line-height: 1.3; color: var(--ink-2); }
.surface__temp { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 760; font-stretch: 112%; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.thermal__delta { margin: 14px 0 6px; font-size: 1rem; color: var(--ink-2); }
.thermal__delta strong { color: var(--ink); font-weight: 760; font-variant-numeric: tabular-nums; }
.thermal__chart { width: 100%; margin: 6px 0 4px; overflow: visible; }
.thermal__grid line { stroke: var(--line); stroke-width: 1; }
.thermal__grid text { fill: var(--ink-3); font-size: 9px; font-family: var(--font); }
.thermal__line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.thermal__line--dark { stroke: var(--heat-4); }
.thermal__line--cool { stroke: var(--heat-1); }
.thermal__cursor { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.thermal__dot { stroke: var(--white); stroke-width: 2; }
.thermal__dot--dark { fill: var(--heat-4); }
.thermal__dot--cool { fill: var(--heat-1); }
.thermal__range { gap: 4px; font-size: .875rem; color: var(--ink-3); margin-top: 4px; }
.thermal__range:not([hidden]) { display: grid; }
.thermal__range input { width: 100%; accent-color: var(--ink); height: 28px; margin: 0; cursor: ew-resize; }
.thermal__note { font-size: .8125rem; line-height: 1.45; color: var(--ink-3); margin: 12px 0 0; }

/* --------------------------------------------------------------------------
   Indice aree
   -------------------------------------------------------------------------- */
.area-index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.area-index__row {
	display: grid; grid-template-columns: 48px minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1.2fr);
	gap: 8px 32px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line);
}
.area-index__icon { color: var(--blue); padding-top: 2px; }
.area-index__title { font-size: 1.375rem; font-stretch: 110%; margin: 0; line-height: 1.2; }
.area-index__title a { color: var(--ink); text-decoration: none; }
.area-index__title a:hover { color: var(--blue); text-decoration: underline; }
.area-index__text { margin: 0; color: var(--ink-2); font-size: 1rem; }
.area-index__subs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.area-index__subs a { font-size: .9688rem; text-decoration: none; display: inline-flex; gap: 8px; align-items: baseline; }
.area-index__subs a::before { content: ""; width: 10px; height: 1px; background: currentColor; transform: translateY(-4px); }
.area-index__subs a:hover { text-decoration: underline; }
@media (max-width: 1020px) {
	.area-index__row { grid-template-columns: 40px minmax(0, 1fr); }
	.area-index__text, .area-index__subs { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   Come funziona
   -------------------------------------------------------------------------- */
.how { background: var(--paper); }
.how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.how__points { display: grid; gap: 22px; margin-top: 36px; }
.how__points > div { padding-left: 20px; border-left: 3px solid var(--lime); }
.how__points h3 { font-size: 1.25rem; margin-bottom: .25em; }
.how__points p { margin: 0; color: var(--ink-2); }
.how__figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(16px, 3vw, 32px); }
.how__label { font: 600 13px var(--font); fill: var(--ink); }
.how__inside { font: 500 13px var(--font); fill: var(--heat-1); }
@media (max-width: 960px) { .how__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Tabella prodotti
   -------------------------------------------------------------------------- */
.ptable { border-top: 2px solid var(--ink); }
.prow {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .9fr);
	gap: 12px 32px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line);
}
.prow__title { font-size: 1.25rem; font-stretch: 108%; margin: 0 0 4px; line-height: 1.2; }
.prow__title a { color: var(--ink); text-decoration: none; }
.prow__title a:hover { color: var(--blue); text-decoration: underline; }
.prow__cat { margin: 0; font-size: .875rem; color: var(--ink-3); }
.prow__desc { margin: 0; color: var(--ink-2); font-size: 1rem; }
.prow__specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-variant-numeric: tabular-nums; }
.prow__specs > div { display: contents; }
.prow__specs dt { font-size: .875rem; color: var(--ink-3); padding-top: 2px; }
.prow__specs dd { margin: 0; font-weight: 650; display: flex; flex-direction: column; gap: 6px; }
.prow__links { display: grid; gap: 8px; justify-items: start; }
.rbar { display: block; width: 100%; max-width: 140px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.rbar__fill { display: block; height: 100%; width: var(--v); background: linear-gradient(90deg, var(--heat-1), #A9DCEB); }
.section--paper .ptable .prow { border-bottom-color: var(--line-strong); }
@media (max-width: 1020px) {
	.prow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.prow__desc { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 600px) {
	.prow { grid-template-columns: 1fr; }
	.prow__desc { grid-row: auto; }
}

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */
.works__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.work__link { display: block; color: inherit; text-decoration: none; }
.work__media { aspect-ratio: 4 / 3; background: var(--paper); overflow: hidden; border-radius: 4px; }
.work__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work__link:hover .work__img { transform: scale(1.03); }
.work__noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--line-strong); }
.work__body { padding-top: 14px; }
.work__title { font-size: 1.1875rem; font-stretch: 106%; margin: 0 0 4px; line-height: 1.25; }
.work__link:hover .work__title { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.work__meta { margin: 0 0 12px; font-size: .9375rem; color: var(--ink-3); }
.work__facts { display: flex; gap: 28px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.work__facts dt { font-size: .8125rem; color: var(--ink-3); }
.work__facts dd { margin: 0; font-weight: 700; font-size: 1.125rem; }
@media (max-width: 960px) { .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .works__grid { grid-template-columns: 1fr; } }

.clients { margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); }
.clients__title { font-size: 1rem; font-weight: 600; color: var(--ink-3); font-stretch: 100%; }
.clients__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.clients__logo { height: 80px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.clients__list li:hover .clients__logo { filter: none; opacity: 1; }

/* --------------------------------------------------------------------------
   Video
   -------------------------------------------------------------------------- */
.video__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.yt__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.yt__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 18px;
	background: var(--lime); color: var(--ink); border: 0; border-radius: 999px; font-weight: 700; cursor: pointer;
}
.yt__play:hover { background: var(--white); }
.yt__note { position: absolute; left: 16px; bottom: 10px; margin: 0; font-size: .8125rem; color: rgba(255,255,255,.85); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 960px) { .video__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Contatti e modulo
   -------------------------------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__direct { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.contact__direct li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.contact__direct .icon { color: var(--blue); margin-top: 3px; }
.contact__direct a { color: var(--ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact__direct a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }

.cform { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3.5vw, 40px); }
.cform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.cform__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; margin: 0 0 18px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 600; }
.req { color: var(--heat-4); }
.field input:not([type="checkbox"]):not([type="range"]), .field select, .field textarea, .search-form input[type="search"] {
	width: 100%; min-height: 48px; padding: 10px 14px;
	background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
	transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 80, 143, .2); }
.field [aria-invalid="true"] { border-color: var(--heat-4); }
.field--check { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.field--check label { font-weight: 400; font-size: .9375rem; color: var(--ink-2); }
.cform__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.cform__status { margin: 0; font-size: .9375rem; font-weight: 600; }
.cform__status.is-ok { color: #1F6B3A; }
.cform__status.is-error { color: var(--heat-4); }
.cform.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }
@media (max-width: 600px) { .cform__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Fascia CTA e footer
   -------------------------------------------------------------------------- */
.cta-band { background: var(--blue); color: var(--white); padding-block: clamp(48px, 6vw, 72px); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 64px; flex-wrap: wrap; }
.cta-band__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-stretch: 114%; font-weight: 720; letter-spacing: -.02em; margin-bottom: .3em; }
.cta-band__text { margin: 0; color: rgba(255,255,255,.85); max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { background: var(--ink); color: rgba(255,255,255,.78); font-size: .9688rem; padding-top: clamp(56px, 7vw, 88px); }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.site-footer__brand p { max-width: 38ch; }
.site-footer__certs { color: rgba(255,255,255,.6); font-size: .875rem; }
.brand--footer { margin-bottom: 20px; }
.footer__title { font-size: .9375rem; font-weight: 700; font-stretch: 104%; color: var(--white); letter-spacing: 0; margin-bottom: 14px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__contact { display: grid; gap: 6px; }
.footer__contact strong { color: var(--white); }
.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a { display: inline-flex; padding: 6px; border-radius: 4px; color: rgba(255,255,255,.8); }
.footer__social a:hover { color: var(--lime); }
.site-footer__legal {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
	padding-block: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .875rem; color: rgba(255,255,255,.6);
}
.site-footer__legal p { margin: 0; }
.site-footer__legal p span { margin-left: 12px; }
.legal__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.site-footer__credit { margin-left: auto !important; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } .site-footer__credit { margin-left: 0 !important; } }

/* --------------------------------------------------------------------------
   Pagine interne
   -------------------------------------------------------------------------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(28px, 4vw, 44px) 0 clamp(40px, 6vw, 72px); }
.page-head__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px clamp(32px, 6vw, 96px); align-items: end; }
.page-head__main { max-width: 820px; }
.page-head__kicker { margin: 18px 0 10px; font-size: .9688rem; color: var(--ink-3); font-weight: 550; }
.page-head__kicker .sep { margin-inline: 6px; color: var(--line-strong); }
.page-head__title { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.9rem); font-stretch: 118%; font-weight: 750; line-height: 1.0; letter-spacing: -.032em; margin: 14px 0 .35em; text-wrap: balance; }
.page-head__kicker + .page-head__title { margin-top: 0; }
.page-head__lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); margin: 0; max-width: 62ch; }
.page-head__aside { min-width: 0; }
.page-head__icon { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); color: var(--blue); }
.page-head--product .page-head__inner, .page-head--work .page-head__inner { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); align-items: start; }
.page-head--product .page-head__aside, .page-head--work .page-head__aside { margin-top: 40px; }
.head-stat { margin: 0; font-size: .9375rem; color: var(--ink-3); line-height: 1.4; text-align: right; }
.head-stat__num { display: inline-block; font-size: 1.75rem; font-weight: 750; font-stretch: 112%; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 8px; }
@media (max-width: 860px) {
	.page-head__inner, .page-head--product .page-head__inner, .page-head--work .page-head__inner { grid-template-columns: 1fr; }
	.page-head--product .page-head__aside, .page-head--work .page-head__aside { margin-top: 0; }
	.head-stat { text-align: left; }
	.page-head__icon { display: none; }
}

.crumbs ol, .crumbs p { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .875rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs .separator { margin: 0 8px; color: var(--line-strong); }

/* Pannello dati (prodotto / lavoro) */
.spec { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: grid; gap: 16px; margin: 0; box-shadow: var(--shadow); }
.spec__row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.spec__row .rbar { grid-column: 1 / -1; max-width: none; height: 8px; }
.spec__label { font-size: .9375rem; color: var(--ink-3); }
.spec__value { font-size: 2rem; font-weight: 760; font-stretch: 112%; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1; }
.spec--facts .spec__row:last-child { border-bottom: 0; padding-bottom: 0; }
.spec--facts dd { margin: 0; text-align: right; font-weight: 600; }
.spec--facts dd.spec__value { font-weight: 760; }
.spec__docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.spec__docs a { display: flex; gap: 10px; align-items: center; font-weight: 600; text-decoration: none; }
.spec__docs a:hover { text-decoration: underline; }

.page-body { padding-block: clamp(40px, 6vw, 80px); }
.layout-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.layout-split__side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.page-body > .layout-split { margin-top: clamp(32px, 5vw, 56px); }
.page-body.layout-split { margin-top: 0; }
@media (max-width: 960px) { .layout-split { grid-template-columns: 1fr; } .layout-split__side { position: static; } }

.entry__cover { margin: 0 0 32px; border-radius: 6px; overflow: hidden; }
.entry__cover img { width: 100%; }
.work-cover { margin: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--paper); }
.work-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Testo lungo */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + .9vw, 1.9rem); font-stretch: 110%; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.3125rem; margin: 1.5em 0 .5em; }
.prose h4 { font-size: 1.125rem; margin: 1.4em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--blue); }
.prose img { border-radius: 4px; }
.prose figure { margin: 1.6em 0; }
.prose figcaption, .wp-caption-text { font-size: .875rem; color: var(--ink-3); margin-top: 8px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--lime); font-size: 1.1875rem; color: var(--ink); }
.prose table { margin: 1.4em 0; font-size: .9688rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 650; background: var(--paper); }
.prose a { word-break: break-word; }
.prose .wp-block-button__link { background: var(--blue); color: var(--white); border-radius: var(--radius); text-decoration: none; padding: .7em 1.35em; font-weight: 650; }
.prose .alignwide { max-width: none; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }

/* Blocchi di contenuto */
.block { margin-top: clamp(40px, 5vw, 56px); }
.block__title { font-size: 1.5rem; font-stretch: 110%; padding-top: 18px; border-top: 2px solid var(--ink); margin-bottom: 20px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
	content: ""; position: absolute; left: 2px; top: .3em; width: 16px; height: 16px; border-radius: 50%;
	background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313232E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
@media (max-width: 700px) { .checklist--2col { grid-template-columns: 1fr; } }
.taglist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.taglist li { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9375rem; background: var(--white); }
.datatable { font-size: .9688rem; font-variant-numeric: tabular-nums; }
.datatable th, .datatable td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.datatable th { width: 42%; font-weight: 500; color: var(--ink-3); padding-right: 16px; }
.datatable td { font-weight: 600; }

.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.side-box__title { font-size: 1.0625rem; font-stretch: 106%; margin-bottom: 12px; }
.side-box p { font-size: .9688rem; color: var(--ink-2); }
.side-box--ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.side-box--ink p { color: rgba(255,255,255,.8); }
.side-box__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--white); font-size: .9375rem; }
.side-box__link:hover { color: var(--lime); }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .9688rem; }
.side-links a span { flex: 1; }
.side-links a small { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.side-links a .icon { color: var(--blue); }
.side-links a:hover span { color: var(--blue); text-decoration: underline; }

.sub-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.sub-index h3 { font-size: 1.1875rem; margin-bottom: .3em; }
.sub-index h3 a { color: var(--ink); text-decoration: none; }
.sub-index h3 a:hover { color: var(--blue); text-decoration: underline; }
.sub-index p { margin: 0; color: var(--ink-2); font-size: .9688rem; }
@media (max-width: 700px) { .sub-index { grid-template-columns: 1fr; } }
.refs { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.refs li::marker { color: var(--blue); }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 650; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--blue); transition: transform .2s; margin-top: 3px; }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item p { margin: 0 0 18px; color: var(--ink-2); max-width: 70ch; }

.area-nav__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.area-nav__list a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9688rem; line-height: 1.3; }
.area-nav__list a .icon { color: var(--blue); }
.area-nav__list a:hover { border-color: var(--blue); color: var(--blue); }
.area-nav__list .is-current a { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--lime); }

.filter { flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter:not([hidden]) { display: flex; }
.filter__btn { padding: 8px 16px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); cursor: pointer; font-weight: 550; font-size: .9375rem; }
.filter__btn:hover { border-color: var(--ink); }
.filter__btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
[data-filter-target] > .is-hidden { display: none; }

.note-box { margin-top: clamp(40px, 5vw, 64px); padding: 28px; border-left: 4px solid var(--lime); background: var(--paper); max-width: 860px; }
.note-box__title { font-size: 1.25rem; }
.note-box p:last-child { margin: 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* Articoli */
.post-list { display: grid; gap: 0; border-top: 2px solid var(--ink); max-width: 960px; }
.post-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-item:not(:has(.post-item__media)) { grid-template-columns: 1fr; }
.post-item__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.post-item__meta { font-size: .875rem; color: var(--ink-3); margin-bottom: 6px; }
.post-item__title { font-size: 1.375rem; margin-bottom: .4em; }
.post-item__title a { color: var(--ink); text-decoration: none; }
.post-item__title a:hover { color: var(--blue); text-decoration: underline; }
.post-item__excerpt { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { .post-item { grid-template-columns: 1fr; gap: 14px; } }
.post-nav { margin-top: 56px; max-width: 70ch; }
.post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-nav a { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; }
.post-nav .nav-next a { text-align: right; }
.post-nav__label { font-size: .8125rem; color: var(--ink-3); font-weight: 500; }
.pagination .nav-links, .navigation.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 36px; }
.page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); }
.page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }

.empty { padding: 32px; background: var(--paper); border-radius: 10px; max-width: 760px; }
.search-form { display: flex; gap: 10px; max-width: 560px; margin-bottom: 32px; }
.quick-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.quick-links a { display: inline-block; padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); font-weight: 600; text-decoration: none; }
.quick-links a:hover { border-color: var(--blue); color: var(--blue); }

/* Pagina contatti */
.contact-page { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-page .contact__direct { margin: 0 0 48px; }
.steps { margin: 0 0 32px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 2px 14px; color: var(--ink-2); }
.steps li::before { content: counter(step); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: .9375rem; }
.steps strong { color: var(--ink); }
@media (max-width: 960px) { .contact-page { grid-template-columns: 1fr; } }

/* Calcolatore */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.calc__form { padding: clamp(24px, 4vw, 44px); background: var(--paper); }
.field__unit { display: flex; align-items: stretch; }
.field__unit input { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.field__unit span { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--white); color: var(--ink-3); font-size: .9375rem; white-space: nowrap; }
.calc__result { padding: clamp(24px, 4vw, 44px); background: var(--ink); color: var(--white); display: grid; align-content: start; gap: 8px; }
.calc__headline { margin: 0; color: rgba(255,255,255,.75); }
.calc__big { margin: 0 0 12px; font-size: clamp(2.6rem, 2rem + 2.5vw, 4rem); font-weight: 780; font-stretch: 118%; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--lime); }
.calc__list { margin: 0 0 24px; display: grid; gap: 0; }
.calc__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); font-variant-numeric: tabular-nums; }
.calc__list dt { color: rgba(255,255,255,.75); }
.calc__list dd { margin: 0; font-weight: 700; }
.calc__note { font-size: .8125rem; color: rgba(255,255,255,.6); margin: 14px 0 0; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* Commenti */
.comments { margin-top: 64px; max-width: 70ch; }
.comments__list { padding-left: 0; list-style: none; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.comment-form .submit { background: var(--blue); color: var(--white); border: 0; padding: 12px 20px; border-radius: var(--radius); font-weight: 650; cursor: pointer; }

[hidden] { display: none !important; }

/* Plugin di terze parti */
.gt_float_switcher { font-family: var(--font) !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
	.site-header, .site-footer, .cta-band, .layout-split__side, .filter { display: none !important; }
	body { font-size: 11pt; }
}
