/* ==========================================================================
   MODUS – Costruzioni e Macchine Aziendali
   Foglio di stile principale
   Indice: 1 Token · 2 Base · 3 Header/Menu · 4 Hero · 5 Sezioni · 6 Contatti
           7 Footer · 8 Animazioni · 9 Responsive · 10 Movimento ridotto
   ========================================================================== */

/* ---------- 1. Font e token ---------- */
@font-face { font-family: "Inter Display"; src: url("../assets/fonts/inter-display-300.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../assets/fonts/inter-display-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../assets/fonts/inter-display-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-text-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-text-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-text-600.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --anthracite: #17242C;
  --graphite: #10191F;
  --steel: #53616B;
  --white: #FFFFFF;
  --ice: #F5F7F8;

  --steel-light: #8A98A2;      /* testo secondario su fondo scuro (contrasto > 4.5:1) */
  --line-dark: rgba(23, 36, 44, .16);
  --line-light: rgba(255, 255, 255, .16);

  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --section-y: clamp(88px, 12vw, 180px);
  --header-h: 84px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.7;
  color: var(--anthracite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.2em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -.025em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
dl, dd { margin: 0; }
.muted { color: var(--steel); }

:focus-visible { outline: 2px solid var(--steel); outline-offset: 4px; border-radius: 2px; }
.site-header :focus-visible, .hero :focus-visible, .news :focus-visible, .philosophy :focus-visible, .footer :focus-visible { outline-color: var(--white); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--white); color: var(--graphite); padding: 12px 18px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 16px; }
.section { position: relative; padding-block: var(--section-y); }

.display { font-size: clamp(2.3rem, 5.6vw, 5.2rem); text-transform: uppercase; font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.lead { font-size: clamp(1.25rem, 1.8vw, 1.7rem); line-height: 1.5; letter-spacing: -.01em; font-family: var(--font-display); font-weight: 300; color: var(--graphite); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 clamp(22px, 3vw, 36px);
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--steel);
}
.eyebrow span { display: inline-flex; align-items: center; gap: 14px; color: var(--graphite); }
.eyebrow span::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .55; }
.eyebrow--light { color: var(--steel-light); }
.eyebrow--light span { color: var(--white); }

/* Pulsanti */
.btn {
  --bg: transparent; --fg: var(--graphite); --bd: var(--graphite);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 28px;
  font: 600 .8rem/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd); cursor: pointer;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill, var(--graphite));
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover svg, .btn:focus-visible svg { transform: translateX(5px); }
.btn--light { --bg: var(--white); --fg: var(--graphite); --bd: var(--white); --fill: var(--graphite); }
.btn--light:hover, .btn--light:focus-visible { color: var(--white); }
.btn--ghost { --fg: var(--white); --bd: rgba(255, 255, 255, .5); --fill: var(--white); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--graphite); border-color: var(--white); }
.btn--dark { --bg: var(--graphite); --fg: var(--white); --bd: var(--graphite); --fill: var(--steel); }
.btn--dark:hover { border-color: var(--steel); }
.btn--outline { --fg: var(--graphite); --bd: var(--graphite); --fill: var(--graphite); }
.btn--outline:hover, .btn--outline:focus-visible { color: var(--white); }
.btn--block { width: 100%; }

/* ---------- 3. Header e menu ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; padding-top: env(safe-area-inset-top, 0px); z-index: 100; color: var(--white); transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); transition: height .45s var(--ease); }
.site-header.is-scrolled { background: rgba(16, 25, 31, .94); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.site-header.is-scrolled .site-header__inner { height: 68px; }
.site-header.is-hidden:not(.menu-is-open) { transform: translateY(-100%); }

.brand { position: relative; z-index: 3; display: block; flex: none; }
.brand img { height: 66px; width: auto; transition: height .45s var(--ease); }
.is-scrolled .brand img { height: 52px; }

.nav__list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav__list a { position: relative; display: block; padding: 8px 0; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .78); transition: color .3s; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--white); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__list a:hover, .nav__list a.is-active { color: var(--white); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__foot { display: none; }

.header-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .35); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s; }
.header-cta:hover { background: var(--white); color: var(--graphite); border-color: var(--white); }

.burger { display: none; position: relative; z-index: 3; width: 48px; height: 48px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.scroll-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 100%; background: rgba(255, 255, 255, .7); transform: scaleX(0); transform-origin: left; }

/* ---------- 4. Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); background: var(--graphite); overflow: hidden; }
.hero__media { position: absolute; inset: -6% 0 -6% 0; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; animation: heroZoom 22s var(--ease-in-out) both; transform-origin: 65% 55%; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(16, 25, 31, .92) 0%, rgba(16, 25, 31, .62) 38%, rgba(16, 25, 31, .08) 70%),
  linear-gradient(0deg, rgba(16, 25, 31, .78) 0%, rgba(16, 25, 31, 0) 42%),
  linear-gradient(180deg, rgba(16, 25, 31, .6) 0%, rgba(16, 25, 31, 0) 22%); }
.hero__lines { position: absolute; inset: 0; pointer-events: none; display: grid; grid-template-columns: repeat(4, 1fr); padding-inline: var(--gutter); max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; }
.hero__lines i { border-left: 1px solid rgba(255, 255, 255, .07); }
.hero__lines i:last-child { border-right: 1px solid rgba(255, 255, 255, .07); }

.hero__content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 80px); padding-bottom: clamp(84px, 11vh, 132px); }
.hero__brand { margin: 0 0 clamp(18px, 2.4vw, 30px); font: 600 .9rem/1 var(--font-text); letter-spacing: .5em; text-transform: uppercase; color: rgba(255, 255, 255, .85); display: flex; align-items: center; gap: 18px; }
.hero__brand::before { content: ""; width: 56px; height: 1px; background: currentColor; }
.hero h1 { font-weight: 500; text-transform: uppercase; font-size: clamp(2.5rem, 7.8vw, 7.4rem); letter-spacing: -.04em; line-height: .94; max-width: 14ch; }
.hero__accent { font-weight: 300; color: #C9D4DA; }
.hero__lead { max-width: 52ch; margin: clamp(26px, 3.4vw, 44px) 0 clamp(30px, 3.6vw, 46px); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.75; color: rgba(255, 255, 255, .84); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__meta { position: absolute; z-index: 2; left: 0; right: 0; bottom: 28px; display: flex; justify-content: space-between; padding-inline: var(--gutter); max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; }
.hero__scroll i { position: relative; width: 1px; height: 38px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--white); animation: scrollCue 2.4s var(--ease-in-out) infinite; }

/* ---------- 5. Sezioni ---------- */
/* Chi siamo */
.about { background: var(--white); overflow: hidden; }
.about::before { content: ""; position: absolute; top: 0; right: 0; width: 38%; height: 100%; background: var(--ice); z-index: 0; }
.about__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 3vw, 48px); row-gap: 56px; align-items: start; }
.about__head { grid-column: 1 / span 6; }
.about__head .display { max-width: 11ch; }
.about__body { grid-column: 8 / span 5; padding-top: clamp(0px, 5vw, 76px); }
.about__body .lead { margin-bottom: 1.6em; }
.about__cols p { color: #2C3A43; }
.about__close { padding-top: 1.4em; border-top: 1px solid var(--line-dark); color: var(--graphite); font-weight: 500; }

.tagbox { position: relative; display: inline-flex; align-items: center; gap: 22px; margin-top: clamp(40px, 6vw, 84px); padding: 22px 30px 22px 22px; border: 1px solid var(--line-dark); background: var(--white); }
.tagbox::before, .tagbox::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--graphite); }
.tagbox::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.tagbox::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.tagbox__mark { width: 52px; height: 52px; color: var(--steel); flex: none; }
.tagbox p { margin: 0; font: 500 .78rem/1.7 var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.tagbox strong { color: var(--graphite); font-weight: 600; }

/* Attività */
.activities { background: var(--ice); }
.section__head { max-width: 920px; margin-bottom: clamp(56px, 8vw, 120px); }
.section__intro { max-width: 58ch; margin: clamp(24px, 3vw, 40px) 0 0; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: #2C3A43; }

.activity { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 3vw, 48px); align-items: center; margin-bottom: clamp(64px, 9vw, 140px); }
.activity:last-child { margin-bottom: 0; }
.activity__media { grid-column: 1 / span 7; margin: 0; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--anthracite); }
.activity__media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.activity__text { grid-column: 9 / span 4; position: relative; }
.activity--flip .activity__media { grid-column: 6 / span 7; order: 2; }
.activity--flip .activity__text { grid-column: 1 / span 4; order: 1; }
.activity__num { display: block; margin-bottom: 26px; font: 300 clamp(3.5rem, 7vw, 6.5rem)/1 var(--font-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--steel); }
.activity h3 { margin-bottom: 22px; padding-top: 22px; border-top: 1px solid var(--graphite); font-size: clamp(1.5rem, 2.2vw, 2.1rem); text-transform: uppercase; letter-spacing: -.02em; }
.activity p { margin: 0; color: #2C3A43; }

/* Nuove residenze */
.residences { background: var(--white); }
.res__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 3vw, 48px); row-gap: 40px; margin-bottom: clamp(48px, 7vw, 100px); }
.res__head > :first-child { grid-column: 1 / span 6; }
.res__head > :last-child { grid-column: 8 / span 5; align-self: end; color: #2C3A43; }
.res__sub { margin: clamp(22px, 3vw, 34px) 0 0; font: 500 .85rem/1.4 var(--font-text); letter-spacing: .24em; text-transform: uppercase; color: var(--steel); }
.res__text p:last-child { margin: 0; }

.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); align-items: start; }
.property-grid > li:nth-child(2) { margin-top: clamp(0px, 5vw, 72px); }
.property-grid > li:nth-child(3) { margin-top: clamp(0px, 10vw, 144px); }
.property { display: block; background: var(--ice); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.property:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(16, 25, 31, .45); }
.property__media { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--anthracite); }
.property__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.property:hover .property__media img { transform: scale(1.045); }
.property__tag { position: absolute; left: 0; top: 22px; padding: 9px 16px 9px 18px; background: rgba(16, 25, 31, .86); font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--white); }
.property__body { padding: 24px 24px 26px; }
.property__index { margin: 0 0 4px; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.property__status { margin: 0 0 20px; font: 500 1.3rem/1.2 var(--font-display); letter-spacing: -.01em; }
.property__slots div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-dark); font-size: .84rem; }
.property__slots dt { color: var(--graphite); font-weight: 500; }
.property__slots dd { color: var(--steel); }

.res__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(48px, 7vw, 96px); padding-top: 32px; border-top: 1px solid var(--line-dark); }
.res__note { margin: 0; max-width: 56ch; font-size: .85rem; color: var(--steel); }

/* Aggiornamenti */
.news { position: relative; color: var(--white); background: var(--graphite); overflow: hidden; }
.news__bg { position: absolute; inset: -8% 0; }
.news__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.news__shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(16, 25, 31, .94) 20%, rgba(16, 25, 31, .55) 70%, rgba(16, 25, 31, .8)); }
.news__numeral { position: absolute; right: -2vw; top: 50%; translate: 0 -50%; font: 300 clamp(14rem, 36vw, 36rem)/.8 var(--font-display); letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16); pointer-events: none; user-select: none; }
.news__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 3vw, 48px); row-gap: 56px; align-items: end; }
.news__main { grid-column: 1 / span 6; }
.news__main .display { margin-bottom: clamp(26px, 3vw, 40px); }
.news__main p { max-width: 50ch; color: rgba(255, 255, 255, .78); }
.news__main .news__lead { font: 300 clamp(1.25rem, 1.8vw, 1.6rem)/1.45 var(--font-display); color: var(--white); }
.news__side { grid-column: 8 / span 5; }
.news__slots { margin-bottom: 40px; }
.news__slots li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line-light); font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.news__slots li:last-child { border-bottom: 1px solid var(--line-light); }
.news__slots i { position: relative; width: 84px; height: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.news__slots i::after { content: ""; position: absolute; inset: 0; width: 38%; background: rgba(255, 255, 255, .75); animation: slotPulse 3.4s var(--ease-in-out) infinite; }
.news__slots li:nth-child(2) i::after { animation-delay: .5s; }
.news__slots li:nth-child(3) i::after { animation-delay: 1s; }
.news__statement { margin: 0 0 22px; font: 500 clamp(1.6rem, 2.6vw, 2.5rem)/1.1 var(--font-display); letter-spacing: -.03em; text-transform: uppercase; }
.build-bar { height: 3px; background: rgba(255, 255, 255, .16); margin-bottom: 20px; overflow: hidden; }
.build-bar i { display: block; height: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease-in-out) .3s; }
.news__side.is-visible .build-bar i { transform: scaleX(.72); }
.news__soon { margin: 0; font-size: .85rem; letter-spacing: .04em; color: var(--steel-light); }

/* Filosofia */
.philosophy { background: var(--anthracite); color: var(--white); overflow: hidden; padding-block: calc(var(--section-y) * 1.15); }
.philosophy__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding-inline: var(--gutter); max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; pointer-events: none; }
.philosophy__grid i { border-left: 1px solid rgba(255, 255, 255, .06); }
.philosophy__grid i:last-child { border-right: 1px solid rgba(255, 255, 255, .06); }
.philosophy__inner { position: relative; }
.philosophy__title { max-width: 17ch; margin-bottom: clamp(48px, 7vw, 110px); font-size: clamp(2.4rem, 7vw, 6.8rem); line-height: .98; letter-spacing: -.045em; text-transform: uppercase; font-weight: 500; }
.philosophy__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.philosophy__title .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.philosophy__title .w:nth-child(n+5) > span { color: #C9D4DA; font-weight: 300; }
.philosophy__title.is-visible .w > span { transform: none; }
.philosophy__text { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); padding-top: 36px; border-top: 1px solid var(--line-light); }
.philosophy__text p { margin: 0; color: rgba(255, 255, 255, .78); font-size: clamp(1rem, 1.2vw, 1.12rem); }
.philosophy__text p:nth-child(2) { transition-delay: .12s; }
.philosophy__text p:nth-child(3) { transition-delay: .24s; }

/* ---------- 6. Contatti ---------- */
.contact { background: var(--ice); }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 3vw, 48px); row-gap: 56px; align-items: start; }
.contact__info { grid-column: 1 / span 6; }
.contact__info .display { font-size: clamp(2.1rem, 4.6vw, 4.2rem); margin-bottom: clamp(26px, 3vw, 40px); }
.contact__lead { font: 300 clamp(1.15rem, 1.5vw, 1.4rem)/1.5 var(--font-display); color: var(--graphite); }
.contact__card { margin: 36px 0; padding: 28px 30px; background: var(--white); border: 1px solid var(--line-dark); }
.contact__card strong { display: block; margin-bottom: 18px; font: 600 1.05rem/1.3 var(--font-display); letter-spacing: -.01em; }
.contact__card dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-dark); font-size: .95rem; }
.contact__card dt { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); padding-top: 3px; }
.contact__card a { font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .3s; }
.contact__card a:hover { border-bottom-color: currentColor; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.contact__form-wrap { grid-column: 8 / span 5; }
.form { padding: clamp(26px, 3.4vw, 48px); background: var(--graphite); color: var(--white); }
.form h3 { margin-bottom: 30px; font-size: 1.6rem; letter-spacing: -.02em; }
.field { position: relative; margin-bottom: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--steel-light); }
.field input, .field textarea { width: 100%; padding: 10px 0 12px; font: 400 1rem/1.5 var(--font-text); color: var(--white); background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .28); border-radius: 0; transition: border-color .3s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--white); box-shadow: 0 1px 0 var(--white); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--white); -webkit-box-shadow: 0 0 0 40px var(--graphite) inset; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #E4B4B4; }
.field__err { display: block; min-height: 0; margin-top: 6px; font-size: .8rem; color: #F0C6C6; }
.check { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; font-size: .84rem; line-height: 1.55; color: rgba(255, 255, 255, .72); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid rgba(255, 255, 255, .5); background: transparent; display: grid; place-content: center; cursor: pointer; }
.check input::before { content: ""; width: 10px; height: 10px; background: var(--white); transform: scale(0); transition: transform .25s var(--ease); }
.check input:checked::before { transform: scale(1); }
.check a { color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .5); }
.form .field__err[data-err-for="f-priv"] { margin-bottom: 18px; }
.form .btn { margin-top: 18px; --bg: var(--white); --fg: var(--graphite); --bd: var(--white); --fill: var(--steel); }
.form .btn:hover { color: var(--white); border-color: var(--steel); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 22px; padding: 18px 20px; border-left: 2px solid var(--white); background: rgba(255, 255, 255, .06); font-size: .9rem; line-height: 1.6; }
.form__status[hidden] { display: none; }
.form__status p { margin: 0 0 12px; }
.form__status a { display: inline-block; margin-right: 18px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .55); }
.form__status.is-error { border-left-color: #E4B4B4; }

/* ---------- 7. Footer ---------- */
.footer { background: var(--graphite); color: rgba(255, 255, 255, .74); padding-top: clamp(64px, 8vw, 110px); font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.1fr 1.2fr .7fr; gap: clamp(32px, 5vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.footer__brand img { width: clamp(150px, 15vw, 200px); height: auto; margin-bottom: 20px; }
.footer__claim { margin: 0; font: 500 .75rem/1.6 var(--font-text); letter-spacing: .22em; text-transform: uppercase; color: var(--steel-light); }
.footer h2 { margin-bottom: 20px; font: 600 .74rem/1.5 var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--white); }
.footer p { margin-bottom: 1em; line-height: 1.6; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--white); }
.footer__col li { margin-bottom: 8px; }
.footer .muted { color: var(--steel-light); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 26px; border-top: 1px solid var(--line-light); font-size: .8rem; color: var(--steel-light); }
.footer__legal p { margin: 0; }

/* ---------- 8. Animazioni ---------- */
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes scrollCue { 0% { transform: translateY(-14px); } 70%, 100% { transform: translateY(40px); } }
@keyframes slotPulse { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(260%); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

.js [data-hero] { opacity: 0; animation: heroIn 1.1s var(--ease) forwards; }
.js [data-hero="1"] { animation-delay: .15s; }
.js [data-hero="2"] { animation-delay: .3s; }
.js [data-hero="3"] { animation-delay: .55s; }
.js [data-hero="4"] { animation-delay: .75s; }

.js .reveal { opacity: 0; transform: translateY(38px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-img::after { content: ""; position: absolute; inset: -1px; z-index: 2; background: var(--ice); transform-origin: top; transition: transform 1.3s var(--ease-in-out); pointer-events: none; }
.js .reveal-img.is-visible::after { transform: scaleY(0); }

/* ---------- 9. Responsive ---------- */
@media (max-width: 1100px) {
  .about__head { grid-column: 1 / -1; }
  .about__head .display { max-width: 14ch; }
  .about__body { grid-column: 1 / span 9; padding-top: 0; }
  .about::before { width: 100%; height: 38%; top: auto; bottom: 0; }
  .activity__media, .activity--flip .activity__media { grid-column: 1 / span 12; order: 0; }
  .activity__text, .activity--flip .activity__text { grid-column: 1 / span 9; order: 1; margin-top: 32px; }
  .res__head > :first-child, .res__head > :last-child { grid-column: 1 / -1; }
  .news__main { grid-column: 1 / -1; }
  .news__side { grid-column: 1 / -1; max-width: 640px; }
  .contact__info, .contact__form-wrap { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .burger { display: block; }
  .header-cta { display: none; }
  .brand img { height: 56px; }
  .is-scrolled .brand img { height: 48px; }
  .nav { position: fixed; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 96px var(--gutter) 40px; background: var(--graphite); clip-path: circle(0 at calc(100% - 44px) 36px); visibility: hidden; transition: clip-path .8s var(--ease-in-out), visibility 0s .8s; }
  .nav::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 25% 100%; pointer-events: none; }
  .menu-is-open .nav { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; transition: clip-path .9s var(--ease-in-out), visibility 0s; }
  .nav__list { position: relative; flex-direction: column; align-items: flex-start; gap: 2px; }
  .nav__list li { overflow: hidden; width: 100%; border-bottom: 1px solid var(--line-light); }
  .nav__list a { padding: 14px 0; font: 500 clamp(1.7rem, 7vw, 2.6rem)/1.1 var(--font-display); letter-spacing: -.03em; text-transform: uppercase; color: rgba(255, 255, 255, .6); transform: translateY(110%); transition: transform .8s var(--ease), color .3s; }
  .nav__list a::after { display: none; }
  .nav__list a.is-active { color: var(--white); }
  .menu-is-open .nav__list a { transform: none; transition-delay: calc(.25s + var(--i, 0) * 60ms); }
  .nav__foot { position: relative; display: flex; flex-direction: column; gap: 6px; margin-top: 36px; font-size: .9rem; color: var(--steel-light); opacity: 0; transition: opacity .6s .7s; }
  .nav__foot a { font: 500 1.2rem/1.4 var(--font-display); color: var(--white); }
  .menu-is-open .nav__foot { opacity: 1; }

  .hero__lines i:nth-child(n+4) { display: none; }
  .property-grid { grid-template-columns: 1fr; max-width: 560px; }
  .property-grid > li:nth-child(n) { margin-top: 0; }
  .philosophy__text { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { line-height: 1.65; }
  .hero { align-items: flex-end; }
  .hero__media img { object-position: 70% center; }
  .hero__shade { background: linear-gradient(0deg, rgba(16, 25, 31, .95) 0%, rgba(16, 25, 31, .7) 52%, rgba(16, 25, 31, .25) 100%), linear-gradient(180deg, rgba(16, 25, 31, .6), rgba(16, 25, 31, 0) 25%); }
  .hero__content { padding-top: 120px; padding-bottom: 96px; }
  .hero__brand { letter-spacing: .4em; }
  .hero__brand::before { width: 32px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__meta { bottom: 22px; }
  .about__body { grid-column: 1 / -1; }
  .tagbox { padding: 18px 20px 18px 18px; gap: 16px; }
  .tagbox__mark { width: 40px; height: 40px; }
  .tagbox p { letter-spacing: .14em; font-size: .72rem; }
  .activity__text, .activity--flip .activity__text { grid-column: 1 / -1; }
  .res__foot { flex-direction: column; align-items: flex-start; }
  .res__foot .btn { width: 100%; }
  .news__numeral { right: -6vw; top: 22%; opacity: .8; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact__card { padding: 22px 20px; }
  .contact__card dl div { grid-template-columns: 1fr; gap: 2px; }
  .contact__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
}

/* ---------- 10. Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-hero], .js .reveal { opacity: 1; transform: none; }
  .js .reveal-img::after { display: none; }
  .philosophy__title .w > span { transform: none; }
  .hero__media, .news__bg, .activity__media img { transform: none !important; }
  .build-bar i { transform: scaleX(.72); }
}

@media print {
  .site-header, .hero__meta, .burger { display: none; }
  .js .reveal, .js [data-hero] { opacity: 1; transform: none; }
}
