/* Federico Architetture e Engineering — site styles
   Concept: "dal disegno al cantiere". The technical drawing turns into the built
   reality: grid axes, dimension lines, the title block (cartiglio) and line drawings
   that become renders give the motion its meaning. */

@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-standard-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-standard-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-standard-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-ext-standard-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: italic; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-standard-italic.woff2) format("woff2-variations"), url(../fonts/archivo-latin-standard-italic.woff2) format("woff2"); }

:root {
  --navy: #22346E;
  --navy-deep: #131D42;
  --night: #0E1533;
  --ink: #1B1E27;
  --stone: #5C6271;
  --paper: #F3F4F7;
  --white: #FFFFFF;
  --line: #D6D9E1;
  --grid: rgba(34, 52, 110, .055);
  --ocra: #C99A2E;
  --ocra-ink: #8A6512;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 116;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --header-h: 76px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --intro: 1.6s;            /* delay while the preloader plays */
}
html.seen { --intro: .15s; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s ease both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--white); font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ocra); outline-offset: 3px; }
::selection { background: var(--navy); color: #fff; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
main { position: relative; z-index: 1; }

.sheet-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%; border-right: 1px solid var(--grid);
}

/* ---------- Preloader (home, first visit of the session only) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 150; background: var(--night); color: #fff;
  display: grid; place-items: center; pointer-events: none;
  animation: pl-out .9s var(--ease) 1.15s forwards;
}
html.seen .preloader { display: none; }
.pl-inner { display: grid; justify-items: center; gap: 1rem; }
.pl-mark { width: 92px; height: auto; clip-path: inset(0 100% 0 0); animation: pl-wipe .8s var(--ease) .1s forwards; }
.pl-name { font-size: 1.6rem; font-weight: 600; letter-spacing: .04em; font-variation-settings: "wdth" 125; opacity: 0; animation: fade-in .5s ease .45s forwards; }
.pl-bar { width: 160px; height: 1px; background: rgba(255,255,255,.2); overflow: hidden; }
.pl-bar i { display: block; height: 100%; background: var(--ocra); transform: scaleX(0); transform-origin: left; animation: grow-x 1s var(--ease) .1s forwards; }
@keyframes pl-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes pl-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes grow-x { to { transform: scaleX(1); } }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- Type ---------- */
.h2, .page-title, .hero-title, .cta-title, .h3, .phero-title {
  font-variation-settings: "wdth" var(--wide); letter-spacing: -.015em; line-height: 1.06; font-weight: 380;
}
.page-title { font-size: clamp(2.3rem, 5.2vw, 4.6rem); max-width: 18ch; }
.h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); max-width: 22ch; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; max-width: 60ch; }
.muted { color: var(--stone); }
.prose { max-width: 66ch; }
.prose p + p, .prose div p + p { margin-top: 1.1em; }
.prose .lead { margin-bottom: 1.4rem; }

/* Word-mask reveal used by [data-words] and hero titles */
.hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hw > span { display: inline-block; transform: translateY(108%); }
.is-in .hw > span, .hero .hw > span, .phero .hw > span {
  animation: rise 1s var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + var(--wd, 0s));
}
.hero .hw > span { --wd: calc(var(--intro) + 1.5s); }
.phero .hw > span { --wd: .25s; }
@keyframes rise { to { transform: none; } }
html:not(.js) .hw > span { transform: none; }

/* Scroll reveals */
.js [data-reveal="up"] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="up"].is-in { opacity: 1; transform: none; }
.js [data-reveal="mask"] { clip-path: inset(18% 0 0 0); transition: clip-path 1.3s var(--ease-out); }
.js [data-reveal="mask"] img { transform: scale(1.18); transition: transform 1.6s var(--ease-out); }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="mask"].is-in img { transform: scale(1); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .8em 1.6em; border: 1.5px solid transparent; border-radius: 2px;
  font-weight: 560; font-size: .97rem; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  font-variation-settings: "wdth" 108; transition: color .4s var(--ease), border-color .4s, transform .3s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary::before { background: var(--night); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light::before { background: var(--ocra); }
.btn-light:hover { color: var(--night); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light::before { background: #fff; }
.btn-ghost-light:hover { color: var(--navy); border-color: #fff; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .7em; font-weight: 560; text-decoration: none; color: var(--navy); font-variation-settings: "wdth" 108; }
.link-arrow::after { content: ""; width: 36px; height: 1.5px; background: currentColor; transition: width .5s var(--ease); }
.link-arrow:hover::after { width: 64px; }
.link-light { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: background-color .4s, border-color .4s, transform .5s var(--ease), color .4s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; color: var(--navy); }
.brand-mark { width: 48px; height: auto; transition: filter .4s; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.32rem; font-weight: 600; letter-spacing: .02em; font-variation-settings: "wdth" 125; }
.brand-sub { font-size: .72rem; letter-spacing: .03em; opacity: .75; }
.nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; padding: .4rem 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--ocra); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-extra { display: none; }
.header-tools { display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; gap: 2px; }
.lang a { font-size: .8rem; font-weight: 600; text-decoration: none; padding: .35rem .45rem; opacity: .65; border: 1px solid transparent; border-radius: 2px; }
.lang a[aria-current="true"] { opacity: 1; border-color: currentColor; }
.lang a:hover { opacity: 1; }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid currentColor; background: transparent; border-radius: 2px; cursor: pointer; color: inherit; }
.menu-lines { display: grid; gap: 6px; width: 20px; margin: auto; }
.menu-lines i { display: block; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Header over dark hero (home + project pages) */
.page-home .site-header, .page-project .site-header { position: fixed; left: 0; right: 0; }
.page-home .site-header:not(.is-scrolled), .page-project .site-header:not(.is-scrolled) {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff;
}
.page-home .site-header:not(.is-scrolled) .brand, .page-project .site-header:not(.is-scrolled) .brand { color: #fff; }
.page-home .site-header:not(.is-scrolled) .brand-mark, .page-project .site-header:not(.is-scrolled) .brand-mark { filter: brightness(0) invert(1); }
.page-home .site-header, .page-project .site-header { animation: fade-down .9s var(--ease-out) both; animation-delay: calc(var(--intro) + .9s); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-20px); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 9rem); position: relative; }
.section-tight { padding-block: clamp(1.5rem, 3vw, 2.5rem); position: relative; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: clamp(2rem, 5vw, 4rem); flex-wrap: wrap; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; color: #fff; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-stage { position: absolute; inset: 0; }
.hero-drawing { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); animation: kb-draw 3s var(--ease-out) var(--intro) both; }
@keyframes kb-draw { from { transform: scale(1.14); opacity: 0; } to { transform: scale(1.06); opacity: 1; } }
.hero-slide { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero-slide.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.hero-slide.is-active img { animation: kenburns 9s linear forwards; }
.hero-slide.is-leaving { clip-path: inset(0 0 0 0); z-index: 1; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.hero-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; z-index: 3; background: var(--ocra); box-shadow: 0 0 24px 2px rgba(201,154,46,.8); opacity: 0; pointer-events: none; }
.hero-scan.go { animation: scan 1.6s var(--ease) forwards; }
@keyframes scan { 0% { left: 0; opacity: 1; } 94% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.hero-axes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.hero-axes line { stroke: var(--ocra); stroke-width: 1; stroke-dasharray: 6 8; vector-effect: non-scaling-stroke; opacity: 0; animation: axes 2.8s ease calc(var(--intro) + .2s) forwards; }
@keyframes axes { 0% { opacity: 0; } 25% { opacity: .9; } 70% { opacity: .55; } 100% { opacity: .18; } }
.hero-shade { position: absolute; inset: 0; z-index: 4; background: linear-gradient(90deg, rgba(14,21,51,.62) 0%, rgba(14,21,51,.25) 45%, rgba(14,21,51,0) 70%), linear-gradient(180deg, rgba(14,21,51,.5) 0%, rgba(14,21,51,0) 25%, rgba(14,21,51,.1) 50%, rgba(14,21,51,.85) 100%); opacity: 0; animation: fade-in 1.2s ease calc(var(--intro) + 1.3s) forwards; }
.hero-content { position: relative; z-index: 5; padding-bottom: clamp(1.5rem, 4vh, 3rem); }
.hero-title { text-shadow: 0 2px 30px rgba(14,21,51,.35); font-size: clamp(2.8rem, 8.4vw, 8.2rem); font-weight: 320; letter-spacing: -.035em; line-height: .98; max-width: 12ch; font-variation-settings: "wdth" 112; }
.hero-sub { margin-top: 1.4rem; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: rgba(255,255,255,.86); opacity: 0; animation: up-in 1s var(--ease-out) calc(var(--intro) + 2.1s) forwards; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; opacity: 0; animation: up-in 1s var(--ease-out) calc(var(--intro) + 2.3s) forwards; }
@keyframes up-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-foot { position: relative; z-index: 5; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; padding-block: 1.2rem 1.6rem; border-top: 1px solid rgba(255,255,255,.25); opacity: 0; animation: fade-in 1s ease calc(var(--intro) + 2.5s) forwards; }
.hero-caption { display: flex; gap: 1.2rem; align-items: baseline; text-decoration: none; min-width: 0; }
.hc-n { font-size: .85rem; color: var(--ocra); font-weight: 600; white-space: nowrap; }
.hc-t { font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-p { color: rgba(255,255,255,.7); font-size: .9rem; white-space: nowrap; }
.hero-caption:hover .hc-t { text-decoration: underline; text-underline-offset: 4px; }
.hero-bars { display: flex; gap: 6px; }
.hb { width: 46px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.hb i { display: block; height: 2px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hb i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hb.is-done i::after { transform: scaleX(1); }
.hb.is-active i::after { animation: bar var(--slide-ms, 6500ms) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.hero-scroll { font-size: .8rem; letter-spacing: .06em; display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.8); }
.hero-scroll::after { content: ""; width: 1px; height: 34px; background: linear-gradient(#fff, transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--night); color: #fff; overflow: hidden; padding-block: 1.3rem; position: relative; z-index: 1; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; }
.marquee span { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 300; white-space: nowrap; padding-inline: 1.6rem; font-variation-settings: "wdth" 120; }
.marquee span:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.75); }
.marquee i { width: 10px; height: 10px; flex: none; background: var(--ocra); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.portrait { position: relative; }
.portrait-inner { overflow: hidden; }
.portrait img { width: 100%; aspect-ratio: 4 / 4.7; object-fit: cover; object-position: top; }
.portrait figcaption { display: flex; flex-direction: column; margin-top: .9rem; font-size: .92rem; color: var(--stone); }
.portrait figcaption strong { color: var(--ink); font-weight: 600; font-size: 1rem; }
.intro-text .h2 { margin-bottom: 1.6rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 2.6rem 0 2.4rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.stats dt { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 250; line-height: 1; color: var(--navy); font-variation-settings: "wdth" 120; font-variant-numeric: tabular-nums; }
.stats dd { margin-top: .5rem; color: var(--stone); font-size: .95rem; max-width: 18ch; }
.quote { margin: 2.2rem 0; padding-left: 1.4rem; border-left: 3px solid var(--ocra); max-width: 52ch; }
.quote p { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45; font-style: italic; font-weight: 340; }

/* ---------- Services (home, hover image) ---------- */
.svc-section { background: var(--paper); overflow: clip; }
.svc-rows { border-top: 1px solid var(--ink); }
.svc-r a {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 6fr); gap: 1.5rem; align-items: center;
  padding: 1.7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; isolation: isolate;
}
.svc-r a::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--navy); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.svc-ico { color: var(--navy); transition: color .4s, transform .6s var(--ease-out); }
.svc-t { font-size: clamp(1.3rem, 2.3vw, 2rem); font-weight: 380; font-variation-settings: "wdth" var(--wide); line-height: 1.15; transition: color .4s, transform .6s var(--ease-out); }
.svc-d { color: var(--stone); transition: color .4s; max-width: 52ch; }
@media (hover: hover) {
  .svc-r a:hover::before { transform: scaleY(1); }
  .svc-r a:hover .svc-t { color: #fff; transform: translateX(14px); }
  .svc-r a:hover .svc-d { color: rgba(255,255,255,.8); }
  .svc-r a:hover .svc-ico { color: var(--ocra); transform: rotate(-8deg) scale(1.1); }
}
.svc-float { position: fixed; left: 0; top: 0; z-index: 30; width: 300px; aspect-ratio: 4/3; pointer-events: none; overflow: hidden; opacity: 0; transform: translate3d(-999px, -999px, 0) scale(.6); transition: opacity .35s ease; box-shadow: 0 30px 60px rgba(14,21,51,.35); }
.svc-float.on { opacity: 1; }
.svc-float img { width: 100%; height: 100%; object-fit: cover; }

.ico { display: block; }

/* ---------- Horizontal projects ---------- */
.hwork { position: relative; height: calc(var(--n) * 65vh + 100vh); background: var(--night); color: #fff; z-index: 1; }
.hwork-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(1.5rem, 4vh, 3rem); }
.hwork-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.hwork-meta { display: flex; align-items: center; gap: 1.8rem; }
.hwork-progress { width: 160px; height: 2px; background: rgba(255,255,255,.18); overflow: hidden; }
.hwork-progress i { display: block; height: 100%; background: var(--ocra); transform-origin: left; transform: scaleX(var(--hp, 0)); }
.hwork-track { display: flex; gap: clamp(1rem, 2.5vw, 2rem); padding-inline: max(var(--gutter), (100vw - var(--maxw)) / 2); will-change: transform; transform: translate3d(var(--hx, 0), 0, 0); }
.hcard { flex: none; width: clamp(280px, 46vw, 680px); text-decoration: none; color: #fff; }
.hcard figure { overflow: hidden; aspect-ratio: 16 / 10.5; background: #1a2350; }
.hcard img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease-out), filter .6s; filter: saturate(.9); }
.hcard:hover img { transform: scale(1.0); filter: saturate(1.05); }
.hcard-body { display: flex; gap: 1.2rem; padding-top: 1.1rem; align-items: baseline; }
.hcard-n { font-size: .85rem; color: var(--ocra); font-weight: 600; }
.hcard-meta { font-size: .85rem; color: rgba(255,255,255,.6); }
.hcard-meta span { margin-left: .6rem; color: rgba(255,255,255,.45); }
.hcard h3 { font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 380; line-height: 1.15; font-variation-settings: "wdth" 112; margin-top: .25rem; }
.hcard-all { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1rem; width: clamp(240px, 26vw, 360px); aspect-ratio: auto; border: 1px solid rgba(255,255,255,.25); padding: 2rem; align-self: stretch; margin-bottom: 4.6rem; transition: background .5s, border-color .5s; }
.hcard-all span { font-size: 1.3rem; font-variation-settings: "wdth" 112; }
.hcard-all strong { font-size: clamp(4rem, 8vw, 7rem); font-weight: 200; line-height: 1; color: var(--ocra); font-variation-settings: "wdth" 125; }
.hcard-all:hover { background: var(--navy); border-color: var(--navy); }

/* ---------- Compare drawing / render ---------- */
.compare-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.compare-text .h2 { margin-bottom: 1.4rem; }
.compare-text .tools { margin-top: 2rem; }
.compare { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; background: var(--paper); user-select: none; touch-action: pan-y; cursor: ew-resize; }
.compare > img, .cmp-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--ocra); transform: translateX(-1px); pointer-events: none; }
.cmp-handle i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: var(--ocra); color: var(--night); display: grid; place-items: center; font-style: normal; font-weight: 700; letter-spacing: .1em; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp-lbl { position: absolute; top: 1rem; padding: .35rem .7rem; font-size: .8rem; font-weight: 600; background: rgba(255,255,255,.92); color: var(--navy); pointer-events: none; }
.cmp-l { left: 1rem; } .cmp-r { right: 1rem; background: var(--navy); color: #fff; }
.compare.hint .cmp-handle i { animation: nudge 1.6s var(--ease) 2; }
@keyframes nudge { 0%, 100% { transform: translate(-50%, -50%); } 30% { transform: translate(calc(-50% - 14px), -50%); } 65% { transform: translate(calc(-50% + 14px), -50%); } }

.tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.tools li { border: 1px solid var(--line); padding: .45rem .8rem; font-size: .92rem; border-radius: 2px; }

/* ---------- Method ---------- */
.method { background: var(--paper); }
.method .h2 { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; position: relative; }
.steps-line { position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: rgba(34,52,110,.18); }
.steps-line i { position: absolute; inset: 0; background: var(--navy); transform-origin: left; transform: scaleX(var(--mp, 0)); }
.step { position: relative; padding-right: 1rem; }
.step-n { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; border: 1.5px solid var(--navy); background: var(--paper); color: var(--navy); font-weight: 600; font-size: 1.05rem; margin-bottom: 1.4rem; position: relative; transition: background .5s, color .5s; }
.step.is-in .step-n { background: var(--navy); color: #fff; transition-delay: calc(var(--d, 0s) + .4s); }
.step h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; margin-bottom: .5rem; font-variation-settings: "wdth" 106; }
.step p { color: var(--stone); font-size: .98rem; }

/* ---------- Sicily map ---------- */
.map-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.map-grid .h2 { margin-bottom: 1.2rem; }
.towns { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.towns li { padding: .85rem 0; border-bottom: 1px solid var(--line); font-weight: 500; font-variation-settings: "wdth" 106; display: flex; align-items: center; gap: .6rem; cursor: default; transition: color .3s; }
.towns li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ocra); flex: none; }
.towns li.hl { color: var(--navy); }
.sicily { width: 100%; height: auto; overflow: visible; }
.sicily .isle { fill: var(--paper); stroke: var(--navy); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset 2.4s var(--ease), fill-opacity 1s ease 1.6s; }
.sicily .arc { fill: none; stroke: var(--ocra); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) var(--d); }
.sicily .pin { opacity: 0; transition: opacity .5s ease var(--d); }
.sicily .pin .dot { fill: var(--navy); stroke: #fff; stroke-width: 2.5; transform: scale(0); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) var(--d); }
.sicily .pin-hq .dot { fill: var(--ocra); }
.sicily .pin .pulse { fill: none; stroke: var(--navy); stroke-width: 1.5; opacity: 0; }
.sicily .pin-hq .pulse { stroke: var(--ocra); }
.sicily text { font: 600 22px var(--font); fill: var(--ink); font-variation-settings: "wdth" 108; paint-order: stroke; stroke: #fff; stroke-width: 5px; }
.map-sec.is-in .isle { stroke-dashoffset: 0; fill-opacity: 1; }
.map-sec.is-in .arc { stroke-dashoffset: 0; }
.map-sec.is-in .pin { opacity: 1; }
.map-sec.is-in .pin .dot { transform: scale(1); }
.map-sec.is-in .pin .pulse { animation: pulse 2.4s ease-out calc(var(--d) + .6s) infinite; }
.sicily .pin.hl .dot { transform: scale(1.5); }
@keyframes pulse { 0% { opacity: .9; r: 6; } 100% { opacity: 0; r: 30; } }

/* ---------- Title block (cartiglio) ---------- */
.tblock { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); border-bottom: 0; background: var(--white); max-width: 560px; }
.tb-cell { padding: .6rem .8rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); min-width: 0; }
.tb-cell:nth-child(2n) { border-right: 0; }
.tblock dt { font-size: .7rem; color: var(--stone); letter-spacing: .02em; }
.tblock dd { font-size: .92rem; font-weight: 560; line-height: 1.35; overflow-wrap: anywhere; }
.tb-sheet { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; border-right: 0 !important; border-bottom: 1.5px solid var(--ink) !important; background: var(--paper); }
.tb-sheet dd { font-variation-settings: "wdth" 125; color: var(--navy); font-size: 1.05rem; }
.tb-cell:not(.tb-sheet):last-child:nth-child(odd), .tb-cell:nth-child(odd):nth-last-child(2):has(+ .tb-sheet) { grid-column: 1 / -1; border-right: 0; }

/* ---------- Projects grid (projects page) ---------- */
.pcard-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.pcard-img { position: relative; overflow: hidden; background: var(--paper); aspect-ratio: 4 / 3; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease-out); }
.pcard-img::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.85); opacity: 0; transform: scale(1.04); transition: opacity .5s, transform .7s var(--ease-out); }
.pcard-link:hover .pcard-img img { transform: scale(1.1); }
.pcard-link:hover .pcard-img::after { opacity: 1; transform: none; }
.pcard-body { padding-top: .9rem; }
.pcard-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--ocra-ink); font-weight: 560; }
.pcard-meta span { color: var(--stone); font-weight: 400; }
.pcard-title { margin-top: .3rem; font-size: 1.18rem; font-weight: 500; line-height: 1.3; font-variation-settings: "wdth" 106; transition: color .3s; }
.pcard-link:hover .pcard-title { color: var(--navy); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { border: 1px solid var(--line); background: #fff; padding: .55rem 1rem; border-radius: 2px; cursor: pointer; font-size: .92rem; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.filters button span { color: var(--stone); margin-left: .3em; font-weight: 400; }
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.filters button[aria-pressed="true"] span { color: rgba(255,255,255,.7); }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 2.6vw, 2.2rem) clamp(1rem, 2vw, 1.6rem); padding-bottom: clamp(3rem, 6vw, 6rem); }
.proj-grid .pcard { transition-delay: calc(var(--k, 0) * 80ms); }
.proj-grid .pcard.is-hidden { display: none; }
.empty { color: var(--stone); padding: 2rem 0; }

/* ---------- Project detail ---------- */
.phero { position: relative; height: 92vh; height: 92svh; min-height: 520px; color: #fff; overflow: hidden; display: flex; align-items: flex-end; background: var(--night); }
.phero-media { position: absolute; inset: 0; }
.phero-media img { width: 100%; height: 100%; object-fit: cover; animation: phero-in 2.2s var(--ease-out) both; will-change: transform; }
@keyframes phero-in { from { transform: scale(1.18); opacity: 0; } to { transform: scale(1.02); opacity: 1; } }
.phero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,21,51,.55) 0%, rgba(14,21,51,0) 30%, rgba(14,21,51,.15) 55%, rgba(14,21,51,.85) 100%); }
.phero-content { position: relative; padding-bottom: clamp(2.5rem, 8vh, 5rem); }
.phero-title { font-size: clamp(2.4rem, 6.4vw, 6.2rem); font-weight: 320; line-height: 1; letter-spacing: -.03em; max-width: 16ch; font-variation-settings: "wdth" 112; }
.crumb-light, .crumb-light a { color: rgba(255,255,255,.85) !important; }
.phero-down { position: absolute; right: var(--gutter); bottom: clamp(2.5rem, 8vh, 5rem); width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; display: grid; place-items: center; transition: background .3s; }
.phero-down span { width: 1px; height: 22px; background: #fff; position: relative; animation: bob 1.8s ease-in-out infinite; }
.phero-down span::after { content: ""; position: absolute; bottom: 0; left: -4px; width: 8px; height: 8px; border-right: 1px solid #fff; border-bottom: 1px solid #fff; transform: rotate(45deg); }
.phero-down:hover { background: rgba(255,255,255,.15); }
@keyframes bob { 50% { transform: translateY(5px); } }

.pslider-sec { padding-bottom: clamp(4rem, 8vw, 7rem); overflow: hidden; }
.pslider-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.pslider-ctrl { display: flex; align-items: center; gap: .6rem; }
.pslider-count { font-variant-numeric: tabular-nums; margin-right: .8rem; color: var(--stone); }
.pslider-count b { color: var(--navy); font-weight: 600; }
.sbtn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); background: #fff; cursor: pointer; font-size: 1.1rem; transition: background .3s, color .3s, transform .3s var(--ease-out); }
.sbtn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.sbtn:active { transform: scale(.92); }
.sbtn:disabled { opacity: .3; cursor: default; background: #fff; color: var(--ink); border-color: var(--ink); }
.ps-track {
  display: flex; gap: clamp(.8rem, 1.5vw, 1.2rem); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: max(var(--gutter), (100vw - var(--maxw)) / 2); scroll-padding-inline: max(var(--gutter), (100vw - var(--maxw)) / 2);
  scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab;
}
.ps-track::-webkit-scrollbar { display: none; }
.ps-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.ps-slide { flex: none; width: min(78vw, 1060px); scroll-snap-align: start; overflow: hidden; background: var(--paper); aspect-ratio: 16 / 10; }
.ps-slide a { display: block; height: 100%; }
.ps-slide img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.08); transition: transform 1.2s var(--ease-out), opacity .6s; opacity: .55; user-select: none; -webkit-user-drag: none; }
.ps-slide.is-current img { transform: scale(1); opacity: 1; }
.ps-progress { height: 2px; background: var(--line); margin-top: 1.4rem; overflow: hidden; }
.ps-progress i { display: block; height: 100%; background: var(--navy); transform-origin: left; transform: scaleX(var(--sp, 0)); transition: transform .5s var(--ease-out); }
.ps-thumbs { display: flex; gap: .5rem; margin-top: 1rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.ps-thumbs::-webkit-scrollbar { display: none; }
.ps-thumbs button { flex: none; width: 92px; height: 62px; padding: 0; border: 0; background: none; cursor: pointer; opacity: .45; outline-offset: 2px; transition: opacity .3s, transform .3s; position: relative; }
.ps-thumbs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--ocra); transform: scaleX(0); transition: transform .4s var(--ease); }
.ps-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.ps-thumbs button:hover { opacity: .8; }
.ps-thumbs button[aria-current="true"] { opacity: 1; }
.ps-thumbs button[aria-current="true"]::after { transform: scaleX(1); }

.pnext { position: relative; display: block; height: clamp(320px, 60vh, 560px); overflow: hidden; color: #fff; text-decoration: none; background: var(--night); }
.pnext > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.pnext:hover > img { transform: scale(1); }
.pnext-shade { position: absolute; inset: 0; background: rgba(14,21,51,.55); transition: background .6s; }
.pnext:hover .pnext-shade { background: rgba(14,21,51,.35); }
.pnext-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: .6rem; }
.pnext-label { color: var(--ocra); font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: .8rem; }
.pnext-label::after { content: ""; width: 40px; height: 1.5px; background: currentColor; transition: width .6s var(--ease); }
.pnext:hover .pnext-label::after { width: 90px; }
.pnext-title { font-size: clamp(2rem, 5vw, 4.6rem); font-weight: 320; line-height: 1.02; max-width: 18ch; font-variation-settings: "wdth" 112; letter-spacing: -.02em; }
.pnext-place { color: rgba(255,255,255,.75); }

/* ---------- Page heads & inner pages ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.crumb { font-size: .88rem; color: var(--stone); margin-bottom: 1.2rem; }
.crumb a { text-decoration: none; color: var(--navy); }
.crumb a:hover { text-decoration: underline; }
.page-lead { margin-top: 1.3rem; font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--stone); max-width: 58ch; }
.wide-fig { overflow: hidden; }
.wide-fig img { width: 100%; max-height: 72vh; object-fit: cover; }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about-grid aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.prose > p:first-child { font-size: 1.2rem; line-height: 1.55; }
.values .h2 { margin-bottom: 2.5rem; }
.val-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2rem; }
.val-grid li { border-top: 1.5px solid var(--ink); padding-top: 1.2rem; }
.val-grid h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .5rem; font-variation-settings: "wdth" 108; }
.val-grid p { color: var(--stone); }
.team { background: var(--paper); }
.team-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.team-name { font-size: 1.3rem; font-weight: 600; color: var(--navy); margin: 1.4rem 0 .8rem; }
.svc-list { border-top: 1.5px solid var(--ink); }
.svc-row { display: grid; grid-template-columns: 70px minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.svc-row .ico { color: var(--navy); }
.svc-row h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 420; font-variation-settings: "wdth" var(--wide); line-height: 1.25; }
.svc-row p { font-size: 1.05rem; max-width: 56ch; color: var(--stone); }
.services-page .steps-line { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-bottom: clamp(3rem, 6vw, 6rem); }
.contact-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.5rem 0; }
.map { aspect-ratio: 4 / 3; background: var(--paper); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.05); }
.cform { background: var(--paper); padding: clamp(1.4rem, 3vw, 2.4rem); border-top: 3px solid var(--navy); }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .9rem; font-weight: 560; }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .9rem; border: 1px solid #C3C8D3; background: #fff; border-radius: 2px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(34,52,110,.15); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.check { display: flex; gap: .7rem; align-items: start; font-size: .9rem; color: var(--stone); margin: .4rem 0 1.4rem; cursor: pointer; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.check[data-invalid] span { color: #B3261E; }
.notice { padding: .9rem 1rem; margin-bottom: 1.2rem; font-weight: 500; border-left: 3px solid; }
.notice-ok { background: #E7F3EC; border-color: #2E7D4F; color: #1D5235; }
.notice-err { background: #FBEAEA; border-color: #B3261E; color: #7D1A15; }

/* ---------- CTA band & footer ---------- */
.cta-band { background: var(--navy); color: #fff; position: relative; z-index: 1; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: -48px 0 0; pointer-events: none; opacity: .09; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 48px 48px; animation: grid-move 12s linear infinite; }
@keyframes grid-move { to { transform: translateY(48px); } }
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-block: clamp(4rem, 8vw, 7rem); }
.cta-title { font-size: clamp(2.2rem, 5vw, 4.4rem); max-width: 16ch; }
.cta-sub { margin-top: .9rem; color: rgba(255,255,255,.78); max-width: 48ch; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.site-footer { background: var(--night); color: rgba(255,255,255,.78); position: relative; z-index: 1; font-size: .95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 2rem; padding-block: clamp(3rem, 6vw, 5rem); }
.footer-brand img { width: 200px; opacity: .95; }
.f-h { font-size: .8rem; font-weight: 600; color: #fff; margin-bottom: .8rem; letter-spacing: .02em; }
.site-footer p + p { margin-top: .7rem; }
.f-hours { font-size: .88rem; }
.f-nav li + li, .f-social li + li { margin-top: .35rem; }
.f-social { margin-top: 1rem; display: flex; gap: .6rem; }
.f-social li + li { margin-top: 0; }
.f-social a { display: inline-flex; padding: .4rem .7rem; border: 1px solid rgba(255,255,255,.3); border-radius: 2px; font-size: .85rem; }
.f-social a:hover { background: #fff; color: var(--navy); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer-bottom a { text-decoration: underline; }
.lang-foot a { color: rgba(255,255,255,.7); border: 0 !important; font-weight: 500; font-size: .85rem; text-decoration: none !important; }
.lang-foot a[aria-current="true"] { color: #fff; text-decoration: underline !important; text-underline-offset: 4px; }
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: transform .3s var(--ease-out); }
.wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: wa-ring 2.8s ease-out 4s infinite; }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.wa:hover { transform: scale(1.08); }

/* ---------- 404 ---------- */
.nf { min-height: 55vh; }
.nf-code { font-size: clamp(5rem, 16vw, 11rem); line-height: .9; font-weight: 200; color: var(--navy); font-variation-settings: "wdth" 125; }
.nf .btn { margin-top: 2rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(10,14,34,.96); display: grid; place-items: center; padding: 4rem 1rem; }
.lightbox[hidden] { display: none !important; }
.lightbox img { max-width: min(1700px, 100%); max-height: 100%; object-fit: contain; animation: lb-in .5s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; padding: .6rem 1rem; }
.lb-close { top: .5rem; right: .5rem; }
.lb-prev { left: .3rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .3rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-foot { grid-template-columns: 1fr auto; }
  .hero-scroll { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .menu-btn { display: block; }
  .site-header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .site-header:not(.is-scrolled) .nav, .nav { color: var(--ink); }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; z-index: 59;
    display: flex; flex-direction: column; justify-content: space-between; padding: 2rem var(--gutter) 2.5rem;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .6s var(--ease), visibility 0s .6s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul li { border-bottom: 1px solid var(--line); overflow: hidden; }
  .nav ul a { display: block; padding: 1.1rem 0; font-size: 1.9rem; font-weight: 360; font-variation-settings: "wdth" var(--wide); transform: translateY(100%); transition: transform .6s var(--ease-out); }
  .nav.is-open ul a { transform: none; }
  .nav.is-open ul li:nth-child(2) a { transition-delay: .06s; } .nav.is-open ul li:nth-child(3) a { transition-delay: .12s; } .nav.is-open ul li:nth-child(4) a { transition-delay: .18s; }
  .nav ul a::after { display: none; }
  .nav ul a[aria-current="page"] { color: var(--navy); }
  .nav-extra { display: flex; flex-direction: column; gap: .4rem; color: var(--navy); font-weight: 560; }
  .nav-extra a { text-decoration: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: #fff !important; color: var(--ink) !important; }
  body.menu-open .site-header .brand { color: var(--navy) !important; }
  body.menu-open .site-header .brand-mark { filter: none !important; }

  .intro-grid, .about-grid, .team-grid, .contact-grid, .compare-grid, .map-grid { grid-template-columns: 1fr; }
  .about-grid aside { position: static; }
  .portrait { max-width: 440px; }
  .svc-r a { grid-template-columns: 48px 1fr; row-gap: .4rem; padding: 1.4rem 0; }
  .svc-d { grid-column: 2; font-size: .95rem; }
  .svc-float { display: none; }
  .hwork { height: auto; padding-block: 4.5rem; }
  .hwork-sticky { position: static; height: auto; overflow: visible; }
  .hwork-track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; scrollbar-width: none; padding-bottom: .5rem; }
  .hwork-track::-webkit-scrollbar { display: none; }
  .hcard { width: 80vw; scroll-snap-align: center; }
  .hcard-all { margin-bottom: 0; width: 60vw; }
  .hwork-progress { display: none; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .steps-line { display: none; }
  .val-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 50px 1fr; }
  .svc-row p { grid-column: 2; }
  .ps-slide { width: 86vw; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand-sub { display: none; }
  .brand-mark { width: 40px; }
  .header-tools { gap: .5rem; }
  .lang a { padding: .3rem .32rem; font-size: .75rem; }
  .hero { min-height: 560px; }
  .hero-title { font-size: clamp(2.6rem, 12.5vw, 4rem); }
  .hero-foot { grid-template-columns: 1fr; gap: .8rem; }
  .hc-p { display: none; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: .8rem; }
  .stats dt { font-size: 2.2rem; }
  .stats dd { font-size: .8rem; }
  .tblock { grid-template-columns: 1fr; }
  .tb-cell { border-right: 0 !important; }
  .proj-grid, .steps, .footer-grid, .field-row, .towns { grid-template-columns: 1fr; }
  .compare { aspect-ratio: 4 / 3.4; }
  .sicily text { font-size: 30px; }
  .pslider-head { flex-wrap: wrap; }
  .sbtn { width: 46px; height: 46px; }
  .phero-down { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .preloader { display: none; }
  .hw > span { transform: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee-track { animation: none; }
}
html:not(.js) .hero-slide.is-first { clip-path: none; }
