/* =========================================================================
   MG IMPRESA EDILE — Stili specifici della Home
   Da usare SEMPRE insieme a site.css (che copre header, footer, bottoni,
   eyebrow, reveal, section shell — qui non vengono ripetuti).
   ========================================================================= */

/* ---------- Hero shell ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height:100vh;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink)
}

.hero__video {
  position: absolute;
  /* inset: 0; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  /* transition: opacity 1.1s ease; */
  /* animation:kenburns-hero 30s ease-in-out infinite alternate; */
  /* will-change: transform, opacity; */
}

.hero__poster {
  position: absolute;
  /* inset: 0; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* transform: scale(1.20); */
  /* transition: opacity .9s ease; */
}

.hero__poster.is-hidden {
  opacity: 0
}

/* @keyframes kenburns-hero{
  from{transform:scale(1.18)}
  to{transform:scale(1.24) translate3d(-1%,-.4%,0)}
} */

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
      rgba(19, 16, 13, .93) 0%, rgba(19, 16, 13, .80) 22%, rgba(19, 16, 13, .45) 45%,
      rgba(19, 16, 13, .10) 60%, rgba(19, 16, 13, 0) 72%);
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(19, 16, 13, .55) 0%, rgba(19, 16, 13, 0) 18%, rgba(19, 16, 13, 0) 78%, rgba(19, 16, 13, .65) 100%),
    radial-gradient(120% 80% at 50% 50%, rgba(19, 16, 13, 0) 55%, rgba(19, 16, 13, .45) 100%);
  mix-blend-mode: multiply;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero__dust {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden
}

.hero__dust span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 206, 0, .85), rgba(187, 206, 0, 0) 70%);
  filter: blur(.5px);
  opacity: 0;
  animation: dust 14s linear infinite;
}

.hero__dust span:nth-child(1) {
  left: 12%;
  top: 80%;
  animation-delay: 0s
}

.hero__dust span:nth-child(2) {
  left: 28%;
  top: 90%;
  animation-delay: 2.4s;
  width: 2px;
  height: 2px
}

.hero__dust span:nth-child(3) {
  left: 55%;
  top: 85%;
  animation-delay: 4.8s
}

.hero__dust span:nth-child(4) {
  left: 38%;
  top: 95%;
  animation-delay: 1.2s;
  width: 4px;
  height: 4px
}

.hero__dust span:nth-child(5) {
  left: 70%;
  top: 80%;
  animation-delay: 7s
}

.hero__dust span:nth-child(6) {
  left: 48%;
  top: 88%;
  animation-delay: 9.4s;
  width: 2px;
  height: 2px
}

.hero__dust span:nth-child(7) {
  left: 82%;
  top: 90%;
  animation-delay: 5.6s
}

.hero__dust span:nth-child(8) {
  left: 22%;
  top: 92%;
  animation-delay: 11.8s;
  width: 3px;
  height: 3px
}

@keyframes dust {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0
  }

  10% {
    opacity: .6
  }

  50% {
    opacity: .9
  }

  90% {
    opacity: .4
  }

  100% {
    transform: translate3d(20px, -560px, 0);
    opacity: 0
  }
}

.hero__inner {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 7vw;
  max-width: 1440px;
  min-height: 100vh;
}

.hero__content {
  max-width: 620px
}

.hero__accent {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 8px 0;
}

.hero__accent::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--lime);
  box-shadow: 0 0 12px var(--glow)
}

.hero__title {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 6.2vw, 77px);
  line-height: .96;
  letter-spacing: -.025em;
  color: var(--paper);
  margin-top: 22px;
  text-transform: uppercase;
}

.hero__title .nv {
  position: relative;
  display: inline-block
}

.hero__rule {
  display: block;
  width: 120px;
  height: 3px;
  background: var(--lime);
  box-shadow: 0 0 18px var(--glow);
  margin-top: 32px;
  transform-origin: left;
  transform: scaleX(0);
  animation: rule 1.1s var(--ease) 1.2s forwards;
}

@keyframes rule {
  to {
    transform: scaleX(1)
  }
}

.hero__sub {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.62;
  color: var(--paper-2);
  margin-top: 26px;
  max-width: 540px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px
}

.hero__foot {
  position: absolute;
  left: 7vw;
  bottom: 34px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-4);
  transition: color .3s ease;
}

.hero__foot::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--lime);
  box-shadow: 0 0 10px var(--glow)
}

.hero__foot:hover {
  color: var(--paper-2)
}

/* Hero-only entrance animation (diverso da .s-reveal) */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  animation: rise 1.05s var(--ease) forwards
}

.reveal[data-d="1"] {
  animation-delay: .15s
}

.reveal[data-d="2"] {
  animation-delay: .45s
}

.reveal[data-d="3"] {
  animation-delay: .75s
}

.reveal[data-d="4"] {
  animation-delay: 1.05s
}

.reveal[data-d="5"] {
  animation-delay: 1.45s
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* =========================================================================
   INTRO BAND — lime section "Chi siamo" preview
   ========================================================================= */
.intro {
  position: relative;
  background: #f5f3ea;
  color: var(--ink);
  padding: clamp(56px, 6.5vw, 96px) 6vw clamp(72px, 8vw, 120px);
  overflow: hidden;
  isolation: isolate
}

.intro__deco {
  position: absolute;
  top: -4vw;
  right: -6vw;
  width: min(58vw, 760px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  animation: floatMark 18s ease-in-out infinite alternate;
  will-change: transform;
}

.intro__deco path,
.intro__deco polygon {
  fill: var(--lime);
  stroke: none
}

@keyframes floatMark {
  0% {
    transform: translate(0, 0) rotate(-2deg)
  }

  100% {
    transform: translate(-22px, 18px) rotate(2deg)
  }
}

.intro__deco-2 {
  position: absolute;
  bottom: -4vw;
  left: -3vw;
  width: min(22vw, 280px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: .10;
  animation: floatMark2 22s ease-in-out infinite alternate
}

.intro__deco-2 path,
.intro__deco-2 polygon {
  fill: var(--lime)
}

@keyframes floatMark2 {
  0% {
    transform: translate(0, 0)
  }

  100% {
    transform: translate(14px, -10px)
  }
}

.intro__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 3.2vw, 44px)
}

.intro__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink)
}

.intro__eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--ink)
}

.intro__eyebrow .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  position: relative
}

.intro__eyebrow .pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  opacity: .4;
  animation: eyebrowPulse 2.4s ease-out infinite
}

@keyframes eyebrowPulse {
  0% {
    transform: scale(.6);
    opacity: .6
  }

  100% {
    transform: scale(2);
    opacity: 0
  }
}

.intro__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(32px, 3.5vw, 52px)
}

@media (min-width:920px) {
  .intro__head {
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(40px, 5vw, 80px)
  }
}

.intro__col-text {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px)
}

.intro__image {
  position: relative;
  aspect-ratio: 1/1;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid rgba(19, 16, 13, .85);
  border-radius: 12px
}

.intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  filter: contrast(1.04) saturate(.92);
  transition: transform 1.8s var(--ease), filter .6s ease
}

.intro.is-in .intro__image img {
  transform: scale(1)
}

.intro__image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 35%, rgba(187, 206, 0, .18) 0%, transparent 60%), linear-gradient(180deg, transparent 50%, rgba(19, 16, 13, .55) 100%);
  mix-blend-mode: multiply
}

.intro__image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(19, 16, 13, .6) 100%)
}

.intro__title {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--ink);
  text-wrap: balance;
  text-transform: uppercase
}

.intro__title em {
  font-style: italic;
  font-weight: 500;
  font-family: "Sora", system-ui, sans-serif;
  letter-spacing: -.015em;
  position: relative;
  display: inline-block
}

.intro__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.04em;
  height: .06em;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease) .3s
}

.intro.is-in .intro__title em::after {
  transform: scaleX(1)
}

.intro__copy {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.intro__lead {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -.005em;
  max-width: 44ch;
  text-wrap: balance
}

.intro__body {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(14.5px, 1vw, 16px);
  line-height: 1.6;
  color: rgba(19, 16, 13, .78);
  max-width: 48ch
}

.intro__body strong {
  font-weight: 600;
  color: var(--ink)
}

.intro__sep {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 38%, rgba(19, 16, 13, .08) 100%);
  margin: clamp(28px, 3.5vw, 48px) 0 clamp(20px, 2.2vw, 32px);
  position: relative
}

.intro__sep::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(0, -50%)
}

.intro__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 2.4vw, 36px)
}

@media (min-width:576px) {
  .intro__features {
    grid-template-columns: repeat(3, 1fr)
  }
}

.feat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 24px;
  position: relative
}

@media (min-width:576px) {
  .feat:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    right: 0;
    width: 1px;
    background: rgba(19, 16, 13, .18)
  }
}

.feat__icon {
  width: 40px;
  height: 40px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round
}

.feat__icon path,
.feat__icon line,
.feat__icon polyline,
.feat__icon circle,
.feat__icon rect,
.feat__icon polygon {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 1.2s var(--ease)
}

.intro.is-in .feat__icon path,
.intro.is-in .feat__icon line,
.intro.is-in .feat__icon polyline,
.intro.is-in .feat__icon circle,
.intro.is-in .feat__icon rect,
.intro.is-in .feat__icon polygon {
  stroke-dashoffset: 0
}

.intro.is-in .feat:nth-child(1) .feat__icon * {
  transition-delay: .2s
}

.intro.is-in .feat:nth-child(2) .feat__icon * {
  transition-delay: .5s
}

.intro.is-in .feat:nth-child(3) .feat__icon * {
  transition-delay: .8s
}

.feat h3 {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  text-transform: uppercase
}

.feat p {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(19, 16, 13, .7);
  max-width: 32ch
}

.intro__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: clamp(8px, 1vw, 16px)
}

.intro__cta-note {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(19, 16, 13, .55);
  max-width: 34ch;
  line-height: 1.5
}

.intro__cta-note strong {
  color: var(--ink);
  font-weight: 600
}

/* =========================================================================
   SERVICES — quattro servizi su sfondo nero, immagini duotone lime
   ========================================================================= */
.services {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 6vw, 88px) 7vw clamp(64px, 6.5vw, 96px);
  overflow: hidden;
  isolation: isolate
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>")
}

.services__inner {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin: 0 auto
}

.services__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 1.8vw, 28px);
  margin-bottom: clamp(32px, 3.5vw, 52px)
}

@media (min-width:920px) {
  .services__head {
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(32px, 4vw, 56px);
    align-items: end
  }
}

.services__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(245, 243, 234, .55)
}

.services__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--lime)
}

.services__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--glow)
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 1vw, 16px)
}

@media (min-width:640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (min-width:980px) {
  .services__grid {
    grid-template-columns: repeat(4, 1fr)
  }
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  text-decoration: none;
  color: var(--paper);
  isolation: isolate;
  cursor: pointer;
  transition: transform .2s var(--ease);
  will-change: transform
}

.svc:hover {
  transform: translateY(-5px)
}

.svc__media {
  position: relative;
  aspect-ratio: 3/4;
  background: #000;
  overflow: hidden;
  isolation: isolate;
  border-radius: 12px;
  box-shadow: 0 0 0 0 rgba(187, 206, 0, 0);
  transition: box-shadow .3s ease
}

.svc__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0) contrast(1.04) brightness(1);
  transform: scale(1.02);
  transition: filter .45s cubic-bezier(0.65, 0, 0.35, 1), transform .55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: filter, transform
}

.svc__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--lime);
  mix-blend-mode: multiply;
  clip-path: inset(50% 0 50% 0);
  transition: clip-path .5s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: clip-path
}

.svc__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--lime);
  opacity: .35;
  mix-blend-mode: screen;
  clip-path: inset(50% 0 50% 0);
  transition: clip-path .5s cubic-bezier(0.76, 0, 0.24, 1)
}

.svc:hover .svc__media::before,
.svc:hover .svc__media::after {
  clip-path: inset(0 0 0 0)
}

.svc:hover .svc__media img {
  filter: grayscale(1) contrast(1.25) brightness(.88);
  transform: scale(1.08)
}

.svc:hover .svc__media {
  box-shadow: 0 28px 70px -22px rgba(187, 206, 0, .45), 0 0 0 1px rgba(187, 206, 0, .2)
}

.svc__media .seam {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 3;
  pointer-events: none;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent 0%, var(--lime) 30%, var(--lime) 70%, transparent 100%);
  box-shadow: 0 0 24px 3px rgba(187, 206, 0, .7), 0 0 60px 6px rgba(187, 206, 0, .35);
  opacity: 0;
  transform: scaleX(.2);
  transform-origin: center
}

.svc:hover .svc__media .seam {
  animation: seamFlash .6s cubic-bezier(0.76, 0, 0.24, 1) forwards
}

@keyframes seamFlash {
  0% {
    opacity: 0;
    transform: scaleX(.2)
  }

  25% {
    opacity: 1;
    transform: scaleX(1)
  }

  85% {
    opacity: .4;
    transform: scaleX(1)
  }

  100% {
    opacity: 0;
    transform: scaleX(1)
  }
}

.svc__num {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-family: "Sora";
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px 5px 7px;
  background: rgba(245, 243, 234, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px
}

.svc__num::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink)
}

.svc__arr {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .45s var(--ease)
}

.svc__arr svg {
  width: 13px;
  height: 13px;
  transition: transform .35s var(--ease)
}

.svc:hover .svc__arr {
  background: var(--paper);
  color: var(--ink);
  transform: rotate(-45deg)
}

.svc__body {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.svc__title {
  font-family: "Sora";
  font-weight: 600;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--paper);
  text-wrap: balance
}

.svc__desc {
  font-family: "Manrope";
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(245, 243, 234, .6);
  max-width: 38ch;
  margin-top: 2px
}

.svc__link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Sora";
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
  transition: gap .35s var(--ease)
}

.svc__link svg {
  width: 11px;
  height: 11px
}

.svc:hover .svc__link {
  gap: 12px
}

.services__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(32px, 3.5vw, 48px);
  padding-top: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid rgba(245, 243, 234, .1)
}

.services__cta p {
  font-family: "Sora";
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(245, 243, 234, .5);
  max-width: 38ch;
  line-height: 1.5
}

.services__cta p strong {
  color: var(--paper);
  font-weight: 600
}

@media (max-width:780px) {
  .services__cta {
    flex-direction: column;
    align-items: flex-start
  }
}

/* Stili del work modal spostati in site.css (condivisi con altre pagine
   che riusano lo stesso componente, es. Ristrutturazioni complete). */

/* =========================================================================
   WORKS — Galleria progetti recenti (white)
   ========================================================================= */
.works {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(56px, 6.5vw, 96px) 7vw clamp(64px, 7vw, 104px);
  overflow: hidden;
  isolation: isolate
}

.works__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto
}

.works__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 1.8vw, 28px);
  margin-bottom: clamp(28px, 3vw, 48px)
}

@media (min-width:920px) {
  .works__head {
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(32px, 4vw, 56px);
    align-items: end
  }
}

.works__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(19, 16, 13, .6)
}

.works__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--lime)
}

.works__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime)
}

.works__title {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.08;
  letter-spacing: -.015em;
  text-transform: none;
  color: var(--ink);
  text-wrap: balance;
  margin-top: clamp(32px, 3.5vw, 52px);
  max-width: 18ch
}

.works__title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(19, 16, 13, .6)
}

.works__head-r {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.works__head-r p {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(14.5px, 1vw, 16px);
  line-height: 1.6;
  color: rgba(19, 16, 13, .65);
  max-width: 42ch
}

.works__head-r .meta {
  font-family: "Sora";
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(19, 16, 13, .45);
  display: inline-flex;
  align-items: center;
  gap: 10px
}

.works__head-r .meta strong {
  color: var(--ink);
  font-weight: 700
}

.works__head-r .meta::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime)
}

.works__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: clamp(20px, 2.4vw, 36px);
  padding-top: 18px;
  border-top: 1px solid rgba(19, 16, 13, .1)
}

.works__filter button {
  font-family: "Sora";
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid rgba(19, 16, 13, .14);
  border-radius: 999px;
  color: rgba(19, 16, 13, .6);
  background: transparent;
  transition: all .35s var(--ease);
  white-space: nowrap
}

.works__filter button:hover {
  color: var(--ink);
  border-color: var(--ink)
}

.works__filter button.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink)
}

.works__filter button .ct {
  display: inline-block;
  margin-left: 6px;
  font-size: 9px;
  opacity: .55;
  font-weight: 500
}

.works__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 1vw, 16px)
}

@media (min-width:640px) {
  .works__grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (min-width:920px) {
  .works__grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

.work {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: opacity .3s ease, filter .3s ease;
  aspect-ratio: 4/5
}

.work.is-out {
  opacity: .15;
  filter: grayscale(1);
  pointer-events: none
}

.work img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform .5s var(--ease), filter .4s ease;
  filter: saturate(.88) contrast(1.02)
}

.work:hover img {
  transform: scale(1.08);
  filter: saturate(1) contrast(1.04)
}

.work::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--lime);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity .3s ease
}

.work:hover::before {
  opacity: .28
}

.work::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(19, 16, 13, .82) 100%);
  opacity: .85;
  transition: opacity .3s ease
}

.work:hover::after {
  opacity: 1
}

.work__index {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  font-family: "Sora";
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: .85
}

.work__index::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(187, 206, 0, .45)
}

.work__year {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  font-family: "Sora";
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--paper);
  opacity: .6
}

.work__body {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  color: var(--paper)
}

.work__type {
  font-family: "Sora";
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
  display: inline-block;
  margin-bottom: 8px
}

.work__title {
  font-family: "Sora";
  font-weight: 600;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-transform: none;
  margin-bottom: 5px;
  text-wrap: balance
}

.work__loc {
  font-family: "Manrope";
  font-weight: 500;
  font-size: 12.5px;
  color: rgba(245, 243, 234, .7);
  display: inline-flex;
  align-items: center;
  gap: 7px
}

.work__loc svg {
  width: 11px;
  height: 11px;
  stroke: var(--lime);
  fill: none;
  stroke-width: 1.6
}

.work__details {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease) .05s, transform .5s var(--ease) .05s
}

.work__details span {
  font-family: "Sora";
  font-weight: 500;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 5px 8px;
  border: 1px solid rgba(245, 243, 234, .28);
  color: var(--paper);
  border-radius: 999px
}

.work__details span.lime {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime)
}

.work:hover .work__details {
  opacity: 1;
  transform: translateY(0)
}

.work__arr {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245, 243, 234, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  transition: all .45s var(--ease);
  opacity: 0
}

.work__arr svg {
  width: 12px;
  height: 12px;
  transition: transform .4s var(--ease)
}

.work:hover .work__arr {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  transform: rotate(-45deg);
  opacity: 1
}

.works__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid rgba(19, 16, 13, .1)
}

.works__cta p {
  font-family: "Sora";
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(19, 16, 13, .5);
  max-width: 36ch;
  line-height: 1.5
}

.works__cta p strong {
  color: var(--ink);
  font-weight: 600
}

@media (max-width:780px) {
  .works__filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    margin-left: -7vw;
    margin-right: -7vw;
    padding-left: 7vw;
    padding-right: 7vw;
    scrollbar-width: none
  }

  .works__filter::-webkit-scrollbar {
    display: none
  }

  .works__cta {
    flex-direction: column;
    align-items: flex-start
  }
}

@media (max-width:640px) {
  .intro {
    padding: 80px 24px 72px
  }

  .intro__deco {
    width: 120vw;
    right: -30vw;
    top: -20vw;
    opacity: .12
  }

  .intro__features {
    gap: 36px
  }

  .feat {
    padding-right: 0;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(19, 16, 13, .16)
  }

  .feat:last-child {
    border-bottom: 0;
    padding-bottom: 0
  }

  .feat::after {
    display: none !important
  }

  .intro__cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px
  }

  .btn--ink {
    width: 100%
  }

  .intro__image {
    aspect-ratio: 5/5
  }

  .intro__image-year {
    display: none
  }
}

@media (max-width:768px) {
  .hero {
    min-height: 600px
  }

  .hero__overlay {
    background: linear-gradient(180deg,
        rgba(19, 16, 13, .55) 0%, rgba(19, 16, 13, .20) 28%, rgba(19, 16, 13, .45) 58%, rgba(19, 16, 13, .95) 100%);
  }

  .hero__inner {
    justify-content: flex-end;
  }

  .hero__content {
    max-width: 100%
  }

  .hero__title {
    font-size: clamp(34px, 9vw, 56px)
  }

  .hero__sub {
    font-size: 15px
  }

  .hero__cta {
    flex-direction: column;
    gap: 10px;
    width: 100%
  }

  .btn {
    width: 100%;
    padding: 18px 24px
  }

  .hero__dust {
    display: none
  }

  .hero__foot {
    bottom: 24px;
    left: 24px
  }
}