/* Nothing may push the page sideways (slide-ins, marquees); clip keeps position: sticky working */
html, body { overflow-x: clip; }

/* Dark sections: deep anthracite instead of near-black (text stays --ink) */
:root { --dark: #1D1D1D; --dark-2: #2A2A2A; --radius-lg: 9px; }

/* Title weights one step lighter */
.hero__h, .op-hero__h, .page-hero h1 { font-weight: 800; }
.h2, .section-h, .presale__h, .about__h, .contact__h, .op-cta h2, .cform-wrap h2,
.sv-row h2, .sv-intro__p, .pkg h3, .tl__card h3, .sv-ind__card h3, .svc-card h3, .team-card__name,
.mega__lead, .team__name, .pcard__title, .benefit-item__num { font-weight: 700; }
.svc__name, .pkgs__h, .gfoot__pitch, .gfoot__office h3 { font-weight: 600; }

/* Smaller type scale across all pages: rem-based sizes shrink via the root, display sizes are set here */
html { font-size: 15px; }

/* Section labels as outlined pills with the G*HAUS orange dot */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .9rem .45rem .75rem; border-radius: 2rem;
  border: 1px solid rgba(232,67,28,.32); margin-bottom: 1.3rem;
  font-size: .64rem; line-height: 1;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.eyebrow.dim { border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.7); }

/* Softer, larger corners on media and cards */
.sv-row__media, .system-intro__visual, .team__stage, .pkg, .tl__card, .svc-card, .tcard, .benefits__grid, .sv-ind__grid { border-radius: var(--radius-lg); }
.pcard { border-radius: 9px; }

/* Dark sections open out from a rounded card as they scroll in */
.sec-open { will-change: clip-path; }

/* Paragraphs that light up word by word while reading */
.txt-reveal .w { opacity: .18; transition: opacity .25s linear; }
.txt-reveal .w.on { opacity: 1; }

/* Image parallax frames */
.plx { overflow: hidden; }
.plx img { will-change: transform; }
.hero__h, .op-hero__h       { font-size: clamp(2.4rem, 4.4vw, 4.8rem); }
.page-hero h1               { font-size: clamp(2.2rem, 4.2vw, 4.4rem); }
.h2, .section-h             { font-size: clamp(1.7rem, 2.8vw, 2.6rem); }
.presale__h, .op-cta h2     { font-size: clamp(1.9rem, 3.3vw, 3.4rem); }
.about__h, .contact__h      { font-size: clamp(1.8rem, 2.8vw, 2.9rem); }
.cform-wrap h2              { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.svc__name                  { font-size: clamp(1.1rem, 1.8vw, 1.7rem); }
.sv-intro__p                { font-size: clamp(1.15rem, 1.8vw, 1.55rem); }
.sv-row h2                  { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.hero__sub, .op-hero__sub   { font-size: clamp(.9rem, 1.2vw, 1rem); }
.page-hero__sub             { font-size: .95rem; }
.mob-menu a                 { font-size: clamp(1.7rem, 6vw, 2.6rem); }

/* G*HAUS asterisk pattern */
.ast-band { display: block; position: relative; width: 100%; height: 290px; overflow: hidden; line-height: 0; margin-bottom: -1px; }
.ast-band canvas { display: block; position: absolute; inset: 0; }
@media (max-width: 640px) { .ast-band { height: 200px; } }

.ast-bg { position: relative; isolation: isolate; }
.ast-bg::before, .ast-bg::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-size: 84px 84px; background-position: center top;
}
.ast-bg::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 84'%3E%3Cg fill='%230F0D0A' fill-opacity='.07' transform='translate(25.2 25.2) scale(1.4)'%3E%3Crect x='9.9' y='1.5' width='4.2' height='21'/%3E%3Crect x='9.9' y='1.5' width='4.2' height='21' transform='rotate(60 12 12)'/%3E%3Crect x='9.9' y='1.5' width='4.2' height='21' transform='rotate(120 12 12)'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 100%);
}
.ast-bg::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 84'%3E%3Cg fill='%23E8431C' transform='translate(25.2 25.2) scale(1.4)'%3E%3Crect x='9.9' y='1.5' width='4.2' height='21'/%3E%3Crect x='9.9' y='1.5' width='4.2' height='21' transform='rotate(60 12 12)'/%3E%3Crect x='9.9' y='1.5' width='4.2' height='21' transform='rotate(120 12 12)'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0; transition: opacity .4s ease;
  -webkit-mask-image: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0,0,0,.35) 45%, transparent 100%);
          mask-image: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0,0,0,.35) 45%, transparent 100%);
}
.ast-bg.ast-lit::after { opacity: .55; }

/* Hero button pairs: identical height, type and centring on every page */
.hero__btns, .op-hero__btns { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero__btns > a, .op-hero__btns > a {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 48px; padding: 0 1.6rem; border: 1.5px solid transparent; border-radius: 3rem;
  font-family: var(--f-ui); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
}
.hero__btns > .btn-out, .op-hero__btns > .btn-sec { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.hero__btns > .btn-out:hover, .op-hero__btns > .btn-sec:hover { border-color: #fff; background: rgba(255,255,255,.08); }
@media (max-width: 560px) { .hero__btns > a, .op-hero__btns > a { flex: 1 1 100%; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* G*HAUS | OFFPLAN product lockup */
.opx-brand { display: inline-flex; align-items: center; gap: .9rem; color: #fff; margin-bottom: 1.8rem; }
.opx-brand img { height: clamp(22px, 2.4vw, 30px); width: auto; display: block; }
.opx-brand__sep { width: 1px; height: 1.6em; background: rgba(255,255,255,.4); }
.opx-brand__name { font-family: var(--f-disp); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.3rem); letter-spacing: .16em; text-transform: uppercase; line-height: 1; }
.opx-brand__tag {
  font-family: var(--f-ui); font-weight: 700; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: .38rem .6rem; border-radius: 2rem; line-height: 1;
}

/* Offplan page hero: full-bleed render with a "package" box */
.opx { min-height: 100svh; align-items: flex-end; padding: 8rem 0 clamp(3rem, 7vh, 5rem); background: var(--dark); }
.opx__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.opx__bg img { width: 100%; height: 112%; object-fit: cover; object-position: center 60%; }
.opx__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(29,29,29,.92) 0%, rgba(29,29,29,.7) 38%, rgba(29,29,29,.15) 70%, rgba(29,29,29,.35) 100%),
    linear-gradient(0deg, rgba(29,29,29,.85) 0%, rgba(29,29,29,0) 45%);
}
.opx__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 3rem; align-items: end; }
.opx .op-hero__sub { color: rgba(255,255,255,.75); }

.opx-box {
  position: relative; display: flex; flex-direction: column; gap: .4rem;
  padding: 1.8rem 1.7rem 1.5rem; border-radius: 9px; color: #fff;
  background: rgba(29,29,29,.55); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  transition: border-color .3s, box-shadow .4s, background .3s;
}
.opx-box:hover { border-color: rgba(232,67,28,.8); background: rgba(29,29,29,.68); box-shadow: 0 30px 70px -28px rgba(232,67,28,.55); }
.opx-box__ribbon {
  position: absolute; top: -18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(232,67,28,.8);
}
.opx-box__ribbon svg { width: 20px; height: 20px; animation: voicesSpin 14s linear infinite; }
.opx-box__label { font-family: var(--f-ui); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.opx-box__price { font-family: var(--f-disp); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.4rem); letter-spacing: -.04em; line-height: 1; margin-bottom: .9rem; }
.opx-box__list { display: grid; gap: .55rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.opx-box__list li { font-family: var(--f-ui); font-size: .85rem; display: flex; gap: .6rem; align-items: center; }
.opx-box__list li::before { content: '✓'; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--accent); font-size: .62rem; display: grid; place-items: center; flex-shrink: 0; }
.opx-box__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .9rem; font-family: var(--f-ui); font-size: .76rem; color: rgba(255,255,255,.7); }
.opx-box__foot i { font-style: normal; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1rem; transition: background .25s, color .25s, transform .3s var(--ease-out); flex-shrink: 0; }
.opx-box:hover .opx-box__foot i { background: var(--accent); color: #fff; transform: translateX(3px); }
.opx-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Offplan packages: same glass box as the hero, on the darkened render */
.pkgs--dark { position: relative; overflow: hidden; isolation: isolate; background: var(--dark); color: #fff; border-top: 0; }
.pkgs__bg { position: absolute; inset: 0; z-index: -1; }
.pkgs__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(3px) saturate(.9); transform: scale(1.06); }
.pkgs__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,29,29,.94) 0%, rgba(29,29,29,.72) 45%, rgba(29,29,29,.9) 100%); }
.pkgs--dark .pkgs__head { display: flex; flex-direction: column; align-items: center; }
.pkgs--dark .pkgs__h { color: #fff; }
.pkgs--dark .pkgs__sub { color: rgba(255,255,255,.7); }
.pkgs--dark .pkgs__grid { align-items: stretch; margin-top: 4rem; }
.pkgx { padding-top: 2.2rem; }
.pkgx .opx-box__ribbon { width: 48px; height: 48px; top: -22px; left: 1.7rem; right: auto; }
.pkgx .opx-box__ribbon svg { width: 22px; height: 22px; animation: none; }
.pkgx__badge {
  position: absolute; top: 1.1rem; right: 1.2rem; font-family: var(--f-ui); font-size: .6rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: .38rem .65rem; border-radius: 2rem; background: #fff; color: var(--accent);
}
.pkgx__name { font-family: var(--f-disp); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; margin: .4rem 0 .9rem; }
.pkgx .opx-box__price { margin-bottom: .5rem; }
.pkgx__desc { font-family: var(--f-ui); font-size: .84rem; line-height: 1.55; color: rgba(255,255,255,.72); min-height: 2.6rem; margin-bottom: 1rem; }
.pkgx .opx-box__list { flex: 1; align-content: start; }
.pkgs__more {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  max-width: 1040px; margin: 1.5rem auto 0; padding: 1.4rem 1.6rem; border-radius: 9px;
  background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pkgs__more-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(232,67,28,.16); color: var(--accent); flex-shrink: 0; }
.pkgs__more-icon svg { width: 26px; height: 26px; }
.pkgs__more-text { flex: 1 1 280px; display: flex; flex-direction: column; gap: .25rem; }
.pkgs__more-text strong { font-family: var(--f-disp); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; color: #fff; }
.pkgs__more-text span { font-family: var(--f-ui); font-size: .88rem; line-height: 1.55; color: rgba(255,255,255,.7); }
.pkgs__more-btn { height: 48px; padding: 0 1.6rem; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; white-space: nowrap; }
@media (max-width: 560px) { .pkgs__more-btn { flex: 1 1 100%; } }
.pkgx--hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 70px -30px rgba(232,67,28,.7); }

/* Services hero: title + floating render collage + service chips */
.svh { min-height: 100svh; flex-direction: column; justify-content: center; align-items: stretch; padding: 8rem 0 3rem; background:
  radial-gradient(60% 60% at 85% 20%, rgba(232,67,28,.22), rgba(232,67,28,0) 70%), var(--dark); }
.svh__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; position: relative; z-index: 2; }
.svh .op-hero__h em { font-style: normal; color: var(--accent); }
.svh .op-hero__sub { color: rgba(255,255,255,.7); }
.svh__collage { position: relative; height: clamp(380px, 52vh, 560px); }
.svh__img { position: absolute; margin: 0; overflow: hidden; border-radius: 9px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); will-change: transform; }
.svh__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.svh__img:hover img { transform: scale(1.06); }
.svh__img--a { left: 0; top: 10%; width: 54%; height: 80%; }
.svh__img--b { right: 0; top: 0; width: 42%; height: 46%; }
.svh__img--c { right: 6%; bottom: 0; width: 38%; height: 44%; }
.svh__badge {
  position: absolute; left: 46%; bottom: 2%; width: 118px; height: 118px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; z-index: 3;
  box-shadow: 0 18px 40px -16px rgba(232,67,28,.9);
}
.svh__ring { position: absolute; inset: 8%; width: 84%; height: 84%; animation: voicesSpin 18s linear infinite; }
.svh__ring text { fill: #fff; font-family: var(--f-ui); font-size: 10.5px; font-weight: 700; letter-spacing: 2px; }
.svh__ast { width: 26px; height: 26px; animation: voicesSpin 10s linear infinite reverse; }
.svh__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: clamp(2.5rem, 6vh, 4rem); position: relative; z-index: 2; }
.svh__chip {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px;
  font-family: var(--f-ui); font-size: .8rem; font-weight: 600; color: #fff;
  padding: .55rem 1rem .55rem .6rem; border-radius: 2rem; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04); transition: background .25s, border-color .25s;
}
.svh__chip span { font-size: .62rem; font-weight: 700; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: background .25s; }
.svh__chip:hover { background: rgba(232,67,28,.15); border-color: var(--accent); }
.svh__chip:hover span { background: var(--accent); }

/* Services list: sticky image that changes while the services scroll by */
.svx { padding: calc(var(--gap, 6rem) * .6) 0 var(--gap, 6rem); }
.svx__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.svx__media { position: sticky; top: 6.5rem; height: calc(100vh - 8.5rem); max-height: 720px; }
.svx__frame { position: relative; height: 100%; border-radius: 9px; overflow: hidden; background: var(--dark); }
.svx__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .8s ease, transform 1.4s var(--ease-expo); }
.svx__img.is-on { opacity: 1; transform: scale(1); }
.svx__overlay {
  position: absolute; inset: auto 0 0 0; padding: 4rem 1.4rem 1.3rem; color: #fff;
  background: linear-gradient(0deg, rgba(29,29,29,.85), rgba(29,29,29,0));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
}
.svx__count { font-family: var(--f-disp); font-weight: 600; font-size: .95rem; color: rgba(255,255,255,.6); white-space: nowrap; }
.svx__count b { font-size: 2.6rem; color: #fff; letter-spacing: -.03em; margin-right: .2rem; }
.svx__names { list-style: none; display: grid; gap: .2rem; text-align: right; font-family: var(--f-ui); font-size: .72rem; }
.svx__names li { color: rgba(255,255,255,.4); transition: color .4s; }
.svx__names li span { margin-right: .5rem; color: var(--accent); opacity: 0; transition: opacity .4s; }
.svx__names li.is-on { color: #fff; }
.svx__names li.is-on span { opacity: 1; }

.svx__item {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 0; border-top: 1px solid var(--border); scroll-margin-top: 5rem;
  opacity: .32; transition: opacity .5s ease;
}
.svx__item:first-child { border-top: 0; }
.svx__item.is-on { opacity: 1; }
.svx__mimg { display: none; }
.svx__num { font-family: var(--f-ui); font-size: .72rem; font-weight: 700; letter-spacing: .16em; color: var(--accent); margin-bottom: 1rem; }
.svx__num i { font-style: normal; color: var(--muted); }
.svx__item h2 { font-family: var(--f-disp); font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.8rem); letter-spacing: -.035em; line-height: 1.05; margin-bottom: 1.1rem; }
.svx__p { font-family: var(--f-ui); font-size: .95rem; line-height: 1.7; color: var(--muted); max-width: 46ch; margin-bottom: 1.6rem; }
.svx__tags { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.svx__tags li {
  font-family: var(--f-ui); font-size: .8rem; font-weight: 500; color: var(--ink);
  padding: .5rem .9rem; border-radius: 2rem; background: var(--surface); border: 1px solid var(--border);
  transition: border-color .25s, color .25s, background .25s;
}
.svx__tags li:hover { border-color: var(--accent); color: var(--accent); }
.svx__btn { align-self: flex-start; margin-top: 1.8rem; }

@media (max-width: 960px) {
  .svh__inner { grid-template-columns: 1fr; }
  .svh__collage { height: 340px; }
  .svx__inner { grid-template-columns: 1fr; }
  .svx__media { display: none; }
  .svx__item { min-height: 0; opacity: 1; padding: 2.5rem 0; }
  .svx__mimg { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 9px; margin-bottom: 1.5rem; }
}
@media (max-width: 560px) {
  .svh__collage { height: 280px; }
  .svh__badge { width: 92px; height: 92px; }
  .svh__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -1rem; padding-right: 1rem; }
  .svh__chip { flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) { .svh__ring, .svh__ast { animation: none; } }

/* Home "Cosa facciamo": large rows that fill on hover, with a preview following the cursor */
.svl__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.svl__all {
  display: inline-flex; align-items: center; gap: .7rem; height: 52px; padding: 0 .45rem 0 1.3rem; border-radius: 3rem;
  border: 1.5px solid var(--ink); font-family: var(--f-ui); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.svl__all i { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-style: normal; transition: transform .35s var(--ease-expo), background .25s; }
.svl__all:hover { background: var(--ink); color: #fff; }
.svl__all:hover i { background: var(--accent); transform: rotate(45deg); }
.svl { border-top: 1px solid var(--border); }
.svl__row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 4.5rem minmax(0, 1.25fr) minmax(0, 1fr) 56px; align-items: center; gap: 1.5rem;
  padding: 1.9rem 1.25rem; border-bottom: 1px solid var(--border); color: var(--ink);
  transition: color .45s var(--ease-expo), padding .45s var(--ease-expo);
}
.svl__row::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--dark);
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-expo);
}
.svl__num { font-family: var(--f-ui); font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.svl__name { font-family: var(--f-disp); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.3rem); letter-spacing: -.035em; line-height: 1.05; }
.svl__desc { font-family: var(--f-ui); font-size: .88rem; line-height: 1.55; color: var(--muted); transition: color .45s; }
.svl__go {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem;
  border: 1.5px solid var(--border); transition: background .35s, border-color .35s, color .35s, transform .45s var(--ease-expo);
}
.svl__row:hover, .svl__row:focus-visible { color: #fff; padding-left: 2rem; outline: none; }
.svl__row:hover::before, .svl__row:focus-visible::before { transform: scaleY(1); }
.svl__row:hover .svl__desc, .svl__row:focus-visible .svl__desc { color: rgba(255,255,255,.65); }
.svl__row:hover .svl__go, .svl__row:focus-visible .svl__go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }
.svl__preview {
  position: fixed; left: 0; top: 0; z-index: 120; width: 240px; aspect-ratio: 4/3; border-radius: 9px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg);
  transition: opacity .3s ease, transform .45s var(--ease-expo); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
}
.svl__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.svl__preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 860px) { .svl__preview { display: none; } }
@media (max-width: 860px) {
  .svl__row { grid-template-columns: 2.5rem minmax(0, 1fr) 44px; padding: 1.4rem .25rem; gap: .9rem; }
  .svl__desc { grid-column: 2 / 3; grid-row: 2; }
  .svl__go { width: 44px; height: 44px; grid-row: 1 / span 2; grid-column: 3; }
}

/* Home "Inizia il tuo progetto": dark info panel + light form card */
.contact { padding: var(--gap, 6rem) 0; }
.ctx { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); border-radius: 9px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.ctx__side { background: var(--dark); color: #fff; padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; }
.ctx__h { font-family: var(--f-disp); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(2rem, 3.6vw, 3.1rem); margin-bottom: 1.1rem; }
.ctx__h em { font-style: normal; color: var(--accent); }
.ctx__lead { font-family: var(--f-ui); font-size: .92rem; line-height: 1.6; color: rgba(255,255,255,.7); max-width: 36ch; margin-bottom: 2rem; }
.ctx__team { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); margin-bottom: auto; }
.ctx__faces { display: flex; }
.ctx__faces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--dark); filter: grayscale(1); }
.ctx__faces img + img { margin-left: -12px; }
.ctx__who { display: flex; flex-direction: column; font-family: var(--f-ui); }
.ctx__who strong { font-size: .9rem; }
.ctx__who small { font-size: .76rem; color: rgba(255,255,255,.6); }
.ctx__info { list-style: none; display: grid; gap: .1rem; margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.1); }
.ctx__info li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-family: var(--f-ui); font-size: .86rem; }
.ctx__info span { color: rgba(255,255,255,.5); }
.ctx__info a, .ctx__info b { color: #fff; font-weight: 600; text-align: right; }
.ctx__info a:hover { color: var(--accent); }
.ctx__form { padding: clamp(2rem, 4vw, 3.5rem); gap: 1.2rem; }
.ctx__types { border: 0; padding: 0; margin: 0 0 .4rem; }
.ctx__types legend { margin-bottom: .8rem; }
.ctx__chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.ctx__chips label { position: relative; cursor: pointer; }
.ctx__chips input { position: absolute; opacity: 0; pointer-events: none; }
.ctx__chips span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 2rem;
  border: 1.5px solid var(--border); font-family: var(--f-ui); font-size: .8rem; font-weight: 600; color: var(--ink-2);
  transition: background .2s, border-color .2s, color .2s;
}
.ctx__chips label:hover span { border-color: var(--ink); }
.ctx__chips input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.ctx__chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ctx__form .fctl { background: var(--bg); border-color: transparent; }
.ctx__form .fctl:focus { background: var(--surface); border-color: var(--accent); }
.ctx__form .fsub { align-self: stretch; justify-content: center; height: 54px; padding: 0 2rem; background: var(--accent); }
.ctx__form .fsub:hover { background: var(--ink); }
@media (max-width: 900px) { .ctx { grid-template-columns: 1fr; } .ctx__team { margin-bottom: 0; } }

/* Portfolio hero: dark, title + two drifting rows of renders */
.pfh {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem;
  padding: 8.5rem 0 3rem; color: #fff; overflow: hidden;
  background: radial-gradient(55% 60% at 15% 0%, rgba(232,67,28,.22), rgba(232,67,28,0) 70%), var(--dark);
}
.pfh__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem 4rem; align-items: end; }
.pfh__h { font-family: var(--f-disp); font-weight: 800; letter-spacing: -.045em; line-height: .98; font-size: clamp(3rem, 8vw, 7.5rem); }
.pfh__h .ln { display: block; overflow: hidden; }
.pfh__h .ln .inn { display: block; }
.pfh__h em { font-style: normal; color: var(--accent); }
.pfh__sub { font-family: var(--f-ui); font-size: .98rem; line-height: 1.65; color: rgba(255,255,255,.7); margin-bottom: 1.8rem; overflow: hidden; }
.pfh__sub .inn { display: block; }
.pfh__btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.pfh__btns > a {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; height: 48px; padding: 0 1.6rem;
  border-radius: 3rem; border: 1.5px solid transparent; line-height: 1; white-space: nowrap;
  font-family: var(--f-ui); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: background .25s, border-color .25s, color .25s;
}
.pfh__btns .btn-pri { background: var(--accent); color: #fff; }
.pfh__btns .btn-pri:hover { background: #fff; color: var(--ink); }
.pfh__btns .btn-sec { color: #fff; border-color: rgba(255,255,255,.45); }
.pfh__btns .btn-sec:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.pfh__film { display: grid; gap: .9rem; transform: rotate(-2.5deg) scale(1.06); margin: 0 -2rem; }
.pfh__row { overflow: hidden; }
.pfh__row .wall__track { animation-duration: 55s; }
.pfh__row--r .wall__track { animation-direction: reverse; animation-duration: 65s; }
.pfh__row .wall__set { gap: .9rem; padding-right: .9rem; }
.pfh__shot { width: clamp(220px, 22vw, 320px); aspect-ratio: 3/2; border-radius: 9px; overflow: hidden; flex-shrink: 0; background: var(--dark-2); }
.pfh__shot img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .8s var(--ease-expo), filter .4s; }
.pfh__film:hover .wall__track { animation-play-state: paused; }
.pfh__shot:hover img { transform: scale(1.06); filter: saturate(1.1); }
@media (max-width: 860px) {
  .pfh { min-height: auto; padding-top: 7.5rem; }
  .pfh__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .pfh__btns > a { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .pfh__row .wall__track { animation: none; } }

/* Contact page hero: dark, animated asterisks, quick-contact cards */
.page-hero.cth {
  position: relative; overflow: hidden; isolation: isolate; color: var(--ink); border-bottom: 1px solid var(--border);
  min-height: 86svh; display: flex; align-items: center; padding: 9rem 0 5rem;
  background: linear-gradient(180deg, #fff 0%, #fff 70%, var(--bg) 100%);
}
.cth__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem 4rem; align-items: center; }
.cth h1 { color: var(--ink); font-weight: 800; font-size: clamp(2.8rem, 6.4vw, 6rem); line-height: 1; letter-spacing: -.045em; }
.cth h1 em { font-style: normal; color: var(--accent); }
.cth .page-hero__sub { color: var(--muted); max-width: 44ch; }
.cth__status {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.8rem; padding: .55rem 1rem; border-radius: 2rem;
  border: 1px solid var(--border); background: #fff;
  font-family: var(--f-ui); font-size: .76rem; font-weight: 600; color: var(--ink-2);
}
.cth__status i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61,220,132,.18); }
.cth__cards { display: grid; gap: .8rem; }
.cth__card {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.1rem 1.1rem 1.2rem; border-radius: 9px; color: var(--ink);
  background: #fff; border: 1px solid var(--border); box-shadow: 0 12px 30px -24px rgba(29,29,29,.35);
  transition: transform .45s var(--ease-expo), border-color .3s, background .3s, box-shadow .3s;
}
.cth__card:hover { transform: translateX(-6px); border-color: var(--accent); box-shadow: 0 18px 40px -24px rgba(232,67,28,.45); }
.cth__card .cth__copy small { color: var(--muted); }
.cth__card .cth__go { border-color: var(--border); }
.cth__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: rgba(232,67,28,.15); color: var(--accent); transition: background .3s, color .3s; }
.cth__icon svg { width: 22px; height: 22px; }
.cth__copy { display: flex; flex-direction: column; flex: 1; min-width: 0; font-family: var(--f-ui); }
.cth__copy strong { font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
.cth__copy small { font-size: .78rem; color: rgba(255,255,255,.55); }
.cth__go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; flex-shrink: 0; border: 1px solid rgba(255,255,255,.2); transition: background .3s, border-color .3s, transform .35s var(--ease-expo); }
.cth__card:hover .cth__go { background: var(--accent); border-color: var(--accent); }
.cth__card--hl { background: var(--accent); border-color: var(--accent); color: #fff; }
.cth__card--hl .cth__icon { background: #fff; color: var(--accent); }
.cth__card--hl .cth__copy small { color: rgba(255,255,255,.85); }
.cth__card--hl .cth__go { border-color: rgba(255,255,255,.6); }
.cth__card--hl:hover { background: #ff5a33; border-color: #ff5a33; }
.cth__card--hl:hover .cth__go { background: #fff; color: var(--accent); border-color: #fff; }
.cth__card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 900px) { .cth__inner { grid-template-columns: minmax(0, 1fr); } .page-hero.cth { min-height: auto; padding-top: 7.5rem; } }
/* Keep the contact cards inside narrow screens (Safari sizes tracks by unbreakable text like the email) */
.cth__cards { grid-template-columns: minmax(0, 1fr); }
.cth__card { min-width: 0; }
.cth__copy strong { word-break: break-word; }
/* On touch screens :hover sticks after a tap: don't leave the card shifted */
@media (hover: none) { .cth__card:hover { transform: none; } }

/* Awards page */
.page-hero.awh {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; border-bottom: 0;
  min-height: 86svh; display: flex; align-items: center; padding: 9rem 0 5rem;
  background: radial-gradient(55% 60% at 85% 15%, rgba(232,67,28,.25), rgba(232,67,28,0) 70%), var(--dark);
}
.awh__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 3rem 4rem; align-items: center; }
.awh h1 { color: #fff; font-weight: 800; font-size: clamp(2.8rem, 6.6vw, 6.2rem); line-height: 1; letter-spacing: -.045em; }
.awh h1 em { font-style: normal; color: var(--accent); }
.awh .page-hero__sub { color: rgba(255,255,255,.72); max-width: 46ch; }
.awh__plaque {
  position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 2rem 1.8rem 1.6rem; border-radius: 9px; color: #fff;
  background: rgba(29,29,29,.6); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .3s, transform .5s var(--ease-expo), box-shadow .4s;
}
.awh__plaque:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(232,67,28,.6); }
.awh__badge { position: relative; width: 120px; height: 120px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin-bottom: 1.2rem; box-shadow: 0 18px 40px -16px rgba(232,67,28,.9); }
.awh__ring { position: absolute; inset: 8%; width: 84%; height: 84%; animation: voicesSpin 18s linear infinite; }
.awh__ring text { fill: #fff; font-family: var(--f-ui); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
.awh__badge b { font-family: var(--f-disp); font-weight: 800; font-size: 2rem; letter-spacing: -.04em; }
.awh__label { font-family: var(--f-ui); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.awh__plaque strong { font-family: var(--f-disp); font-weight: 700; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; }
.awh__meta { font-family: var(--f-ui); font-size: .86rem; color: rgba(255,255,255,.65); }
.awh__go { display: flex; justify-content: space-between; align-items: center; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); font-family: var(--f-ui); font-size: .78rem; font-weight: 600; }
.awh__go i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-style: normal; transition: background .3s, color .3s, transform .35s var(--ease-expo); }
.awh__plaque:hover .awh__go i { background: var(--accent); color: #fff; transform: translateY(3px); }
.awh__plaque:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.awd { padding: var(--gap, 6rem) 0; scroll-margin-top: 4rem; }
.awd__head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2rem 4rem; align-items: end; margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.awd__index { font-family: var(--f-ui); font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin-bottom: 1rem; }
.awd__tags { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.3rem; }
.awd__tags li { font-family: var(--f-ui); font-size: .74rem; font-weight: 600; padding: .45rem .9rem; border-radius: 2rem; border: 1px solid var(--border); background: var(--surface); }
.awd__tags .awd__tag--hl { background: var(--accent); border-color: var(--accent); color: #fff; }
.awd__h { font-family: var(--f-disp); font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 4rem); letter-spacing: -.045em; line-height: 1; margin-bottom: .9rem; }
.awd__h em { font-style: normal; color: var(--accent); }
.awd__org { font-family: var(--f-ui); font-size: .86rem; font-weight: 600; color: var(--muted); }
.awd__p { font-family: var(--f-ui); font-size: .98rem; line-height: 1.75; color: var(--ink-2); }
.awd__gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1rem; height: clamp(520px, 70vw, 820px); }
.awd__shot { margin: 0; border-radius: 9px; overflow: hidden; background: var(--border); }
.awd__shot--main { grid-row: span 2; }
.awd__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.awd__shot:hover img { transform: scale(1.04); }

.awc { padding: 0 0 var(--gap, 6rem); }
.awc__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding: clamp(2rem, 4vw, 3rem); border-radius: 9px; background: var(--accent); color: #fff; }
.awc__h { font-family: var(--f-disp); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.6rem); letter-spacing: -.035em; line-height: 1.08; margin-bottom: .5rem; }
.awc__h em { font-style: normal; color: var(--ink); }
.awc__inner p { font-family: var(--f-ui); font-size: .95rem; color: rgba(255,255,255,.85); }
.awc__btn { display: inline-flex; align-items: center; gap: .8rem; height: 56px; padding: 0 .5rem 0 1.6rem; border-radius: 3rem; background: #fff; color: var(--ink); font-family: var(--f-ui); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background .25s, color .25s; }
.awc__btn i { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-style: normal; transition: transform .35s var(--ease-expo); }
.awc__btn:hover { background: var(--ink); color: #fff; }
.awc__btn:hover i { background: #fff; color: var(--ink); transform: rotate(45deg); }

@media (max-width: 900px) {
  .awh__inner, .awd__head { grid-template-columns: 1fr; }
  .page-hero.awh { min-height: auto; padding-top: 7.5rem; }
  .awh__plaque { max-width: 420px; }
  .awd__gallery { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .awd__shot--main { grid-row: auto; }
  .awd__shot img { aspect-ratio: 4/3; height: auto; }
}
@media (prefers-reduced-motion: reduce) { .awh__ring { animation: none; } }

/* Project detail page */
.pjh { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--dark); color: #fff; padding: 8rem 0 3rem; }
.pjh__bg { position: absolute; inset: 0; z-index: -1; }
.pjh__bg img { width: 100%; height: 100%; object-fit: cover; }
.pjh__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(29,29,29,.92) 0%, rgba(29,29,29,.35) 50%, rgba(29,29,29,.15) 75%, rgba(29,29,29,.5) 100%); }
.pjh__inner { width: var(--wrap); }
.pjh__back { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem; font-family: var(--f-ui); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.pjh__back i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); font-style: normal; transition: background .25s, border-color .25s, transform .3s var(--ease-expo); }
.pjh__back:hover i { background: var(--accent); border-color: var(--accent); transform: translateX(-3px); }
.pjh__cats { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.pjh__cats li { font-family: var(--f-ui); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .4rem .8rem; border-radius: 2rem; background: var(--accent); }
.pjh__cats li + li { background: rgba(255,255,255,.14); }
.pjh__h { font-family: var(--f-disp); font-weight: 800; font-size: clamp(2.8rem, 8vw, 7.5rem); letter-spacing: -.05em; line-height: .95; margin-bottom: 2.2rem; }
.pjh__meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-radius: 9px; overflow: hidden; background: rgba(29,29,29,.55); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pjh__meta > div { padding: 1rem 1.2rem; border-left: 1px solid rgba(255,255,255,.12); }
.pjh__meta > div:first-child { border-left: 0; }
.pjh__meta dt { font-family: var(--f-ui); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.pjh__meta dd { margin: 0; font-family: var(--f-ui); font-size: .95rem; font-weight: 600; }

.pjb { padding: var(--gap, 6rem) 0 calc(var(--gap, 6rem) * .6); }
.pjb__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 3rem 5rem; align-items: start; }
.pjb__desc p { font-family: var(--f-ui); font-size: 1.02rem; line-height: 1.8; color: var(--ink-2); margin-bottom: 1.2rem; max-width: 62ch; }
.pjb__desc p:first-child { font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.45; letter-spacing: -.015em; color: var(--ink); }
.pjb__card { position: sticky; top: 7rem; display: flex; flex-direction: column; gap: 1rem; padding: 1.6rem; border-radius: 9px; background: var(--dark); color: #fff; }
.pjb__label { font-family: var(--f-disp); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.pjb__copy { font-family: var(--f-ui); font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,.7); }
.pjb__btn { align-self: flex-start; display: inline-flex; align-items: center; gap: .7rem; height: 48px; padding: 0 .45rem 0 1.3rem; border-radius: 3rem; background: var(--accent); color: #fff; font-family: var(--f-ui); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background .25s, color .25s; }
.pjb__btn i { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; font-style: normal; transition: transform .35s var(--ease-expo); }
.pjb__btn:hover { background: #fff; color: var(--ink); }
.pjb__btn:hover i { transform: rotate(45deg); background: var(--accent); color: #fff; }
.pjb__link { font-family: var(--f-ui); font-size: .82rem; color: var(--accent); }
.pjb__card .pjb__link { color: rgba(255,255,255,.65); }
.pjb__card .pjb__link:hover { color: #fff; }

.pjg { padding-bottom: var(--gap, 6rem); }
.pjg__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pjg__item { display: block; padding: 0; border: 0; border-radius: 9px; overflow: hidden; background: var(--border); cursor: zoom-in; aspect-ratio: 4/5; }
.pjg__item--wide { grid-column: span 2; aspect-ratio: 16/9; }
.pjg__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.pjg__item:hover img { transform: scale(1.04); }
.pjg__item:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.pjn { padding-bottom: var(--gap, 6rem); }
.pjn__card { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; padding: 1rem; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, transform .45s var(--ease-expo); }
.pjn__card:hover { border-color: var(--accent); transform: translateY(-4px); }
.pjn__img { aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; background: var(--border); }
.pjn__img img { width: 100%; height: 100%; object-fit: cover; }
.pjn__txt { display: flex; flex-direction: column; gap: .3rem; }
.pjn__txt small { font-family: var(--f-ui); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pjn__txt strong { font-family: var(--f-disp); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -.035em; }
.pjn__go { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 1.3rem; border: 1.5px solid var(--border); margin-right: .6rem; transition: background .3s, border-color .3s, color .3s, transform .4s var(--ease-expo); }
.pjn__card:hover .pjn__go { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateX(4px); }

.pjl { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 4rem 5rem; background: rgba(15,15,15,.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pjl[hidden] { display: none; }
.pjl img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.pjl__close, .pjl__nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.3rem; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); transition: background .25s, border-color .25s; }
.pjl__close:hover, .pjl__nav:hover { background: var(--accent); border-color: var(--accent); }
.pjl__close { top: 1.2rem; right: 1.2rem; font-size: 1.6rem; }
.pjl__nav--prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.pjl__nav--next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* Portfolio and home cards are now links to the project page */
a.pcard { display: block; color: inherit; }
.pcard__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; font-family: var(--f-ui); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.pcard__more i { font-style: normal; color: var(--accent); }

@media (max-width: 900px) {
  .pjh__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pjh__meta > div:nth-child(3) { border-left: 0; }
  .pjh__meta > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .pjb__inner { grid-template-columns: 1fr; }
  .pjb__card { position: static; }
  .pjg__grid { grid-template-columns: 1fr; }
  .pjg__item--wide { grid-column: auto; }
  .pjn__card { grid-template-columns: 110px minmax(0, 1fr) auto; gap: 1rem; }
  .pjn__go { width: 44px; height: 44px; margin-right: 0; }
  .pjl { padding: 4rem 1rem; }
}

/* Animated asterisk background layer (canvas filled by site.js) */
.ast-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ast-field canvas { display: block; }
.ast-field ~ .wrap { position: relative; z-index: 1; }

/* Offplan "Il Sistema": header + image and four module cards in a bento grid */
.sys { color: #fff; position: relative; }
.sys__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem 4rem; align-items: end; margin-bottom: 3rem; }
.sys .section-h em { font-style: normal; color: var(--accent); }
.sys__intro .system-intro__body { margin: 0 0 1.6rem; max-width: 46ch; }
.sys__intro .btn-pri { display: inline-flex; align-items: center; gap: .55rem; height: 48px; padding: 0 1.6rem; border-radius: 3rem; background: var(--accent); color: #fff; font-family: var(--f-ui); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sys__intro .btn-pri:hover { background: #fff; color: var(--ink); opacity: 1; }
.sys__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 1rem; }
.sys__visual { position: relative; grid-row: span 2; margin: 0; border-radius: 9px; overflow: hidden; min-height: 520px; background: var(--dark-2); }
.sys__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sys__visual figcaption {
  position: absolute; inset: auto 0 0 0; padding: 4.5rem 1.5rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem;
  background: linear-gradient(0deg, rgba(29,29,29,.92), rgba(29,29,29,0));
}
.sys__visual figcaption strong { font-family: var(--f-disp); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; margin-top: .4rem; }
.sys__visual--product { background: #000; }
.sys__visual--product img { object-position: center 75%; transition: transform 1.2s var(--ease-expo); }
.sys__visual--product:hover img { transform: scale(1.03); }
.sys__visual--product figcaption { inset: 0 0 auto 0; padding: 1.5rem 1.5rem 5rem; background: linear-gradient(180deg, rgba(0,0,0,.9) 30%, rgba(0,0,0,0)); }
.sys__visual figcaption > span:last-child { font-family: var(--f-ui); font-size: .86rem; line-height: 1.55; color: rgba(255,255,255,.75); max-width: 34ch; }
.sys__card {
  position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: 9px;
  background: var(--dark-2); border: 1px solid rgba(255,255,255,.07); overflow: hidden;
  transition: transform .45s var(--ease-expo), border-color .3s, background .3s;
}
.sys__card::before { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-expo); }
.sys__card:hover { transform: translateY(-4px); border-color: rgba(232,67,28,.45); background: #303030; }
.sys__card:hover::before { transform: scaleX(1); }
.sys__top { display: flex; justify-content: space-between; align-items: center; }
.sys__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(232,67,28,.14); color: var(--accent); transition: background .3s, color .3s; }
.sys__icon svg { width: 22px; height: 22px; }
.sys__card:hover .sys__icon { background: var(--accent); color: #fff; }
.sys__num { font-family: var(--f-ui); font-size: .74rem; font-weight: 700; letter-spacing: .1em; color: #fff; }
.sys__num i { font-style: normal; color: rgba(255,255,255,.35); }
.sys__title { font-family: var(--f-disp); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.15; margin-top: auto; }
.sys__tags { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.sys__tags li { font-family: var(--f-ui); font-size: .72rem; font-weight: 500; padding: .35rem .65rem; border-radius: 2rem; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.8); }
@media (max-width: 1024px) {
  .sys__head { grid-template-columns: 1fr; }
  .sys__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys__visual { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
}
@media (max-width: 600px) { .sys__grid { grid-template-columns: 1fr; } .sys__visual { min-height: 320px; } }

/* Offplan "Cosa include": sticky intro + one card per item */
.incl .section-h em { font-style: normal; color: var(--accent); }
.incl__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem 4rem; align-items: start; }
.incl__side { position: sticky; top: 7rem; }
.incl__lead { font-family: var(--f-ui); font-size: .95rem; line-height: 1.65; color: var(--muted); max-width: 42ch; margin: 1.4rem 0 2rem; }
.incl__cta { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.5rem; border-radius: 9px; background: var(--dark); color: #fff; }
.incl__cta strong { font-family: var(--f-disp); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.2; }
.incl__btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .7rem; height: 48px; padding: 0 .45rem 0 1.3rem; border-radius: 3rem;
  background: var(--accent); color: #fff; font-family: var(--f-ui); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.incl__btn i { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; font-style: normal; transition: transform .35s var(--ease-expo); }
.incl__btn:hover { background: #fff; color: var(--ink); }
.incl__btn:hover i { transform: rotate(45deg); background: var(--accent); color: #fff; }
.incl__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.incl__card {
  position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: 9px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .45s var(--ease-expo), border-color .3s, box-shadow .4s;
}
.incl__card::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-expo); }
.incl__card:hover { transform: translateY(-5px); border-color: rgba(232,67,28,.5); box-shadow: 0 24px 50px -30px rgba(29,29,29,.35); }
.incl__card:hover::before { transform: scaleX(1); }
.incl__card--wide { grid-column: span 2; }
.incl__top { display: flex; justify-content: space-between; align-items: center; }
.incl__icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(232,67,28,.1); color: var(--accent); transition: background .3s, color .3s; }
.incl__icon svg { width: 23px; height: 23px; }
.incl__card:hover .incl__icon { background: var(--accent); color: #fff; }
.incl__num { font-family: var(--f-ui); font-size: .76rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.incl__card h3 { font-family: var(--f-disp); font-weight: 700; font-size: 1.3rem; letter-spacing: -.025em; line-height: 1.15; }
.incl__card p { font-family: var(--f-ui); font-size: .88rem; line-height: 1.6; color: var(--muted); }
.incl__tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .3rem; }
.incl__tags li { font-family: var(--f-ui); font-size: .74rem; font-weight: 500; padding: .4rem .75rem; border-radius: 2rem; background: var(--bg); color: var(--ink-2); }
@media (max-width: 1024px) { .incl__inner { grid-template-columns: 1fr; } .incl__side { position: static; } }
@media (max-width: 640px) { .incl__list { grid-template-columns: 1fr; } .incl__card--wide { grid-column: auto; } }

/* Offplan case study (Aema Residences) */
.case { padding: var(--gap, 6rem) 0; background: var(--dark); color: #fff; }
.case__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: 2.5rem; }
.case__h { font-family: var(--f-disp); font-weight: 800; letter-spacing: -.045em; line-height: .98; font-size: clamp(2.6rem, 6vw, 5.4rem); }
.case__h em { font-style: normal; color: var(--accent); }
.case__lead { font-family: var(--f-ui); font-size: .95rem; line-height: 1.65; color: rgba(255,255,255,.7); max-width: 46ch; }
.case__hero { position: relative; margin: 0; border-radius: 9px; overflow: hidden; aspect-ratio: 16/8; background: var(--dark-2); }
.case__hero img { width: 100%; height: 100%; object-fit: cover; }
.case__meta {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 9px; overflow: hidden; background: rgba(29,29,29,.55); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.case__meta > span { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.2rem; font-family: var(--f-ui); font-size: .92rem; font-weight: 600; border-left: 1px solid rgba(255,255,255,.12); }
.case__meta > span:first-child { border-left: 0; }
.case__meta small { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.case__meta b { font-weight: 600; }
.case__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem 4rem; margin-top: 3.5rem; align-items: start; }
.case__story { display: grid; gap: 1.6rem; }
.case__block { padding-left: 1.2rem; border-left: 2px solid rgba(232,67,28,.5); }
.case__block h3 { font-family: var(--f-disp); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: .5rem; }
.case__block p { font-family: var(--f-ui); font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.7); }
.case__btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .6rem; }
.case__btn {
  display: inline-flex; align-items: center; gap: .6rem; height: 48px; padding: 0 1.5rem; border-radius: 3rem;
  border: 1.5px solid rgba(255,255,255,.45); color: #fff;
  font-family: var(--f-ui); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: background .25s, border-color .25s, color .25s;
}
.case__btn:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.case__btn--pri { background: var(--accent); border-color: var(--accent); padding-right: .45rem; }
.case__btn--pri i { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; font-style: normal; transition: transform .35s var(--ease-expo); }
.case__btn--pri:hover { background: #fff; color: var(--ink); border-color: #fff; }
.case__btn--pri:hover i { transform: rotate(45deg); background: var(--accent); color: #fff; }
.case__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.case__shot { margin: 0; border-radius: 9px; overflow: hidden; aspect-ratio: 3/4; background: var(--dark-2); }
.case__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-expo); }
.case__shot:hover img { transform: scale(1.05); }
.case__shot--b { margin-top: 3rem; }
/* Marketing assets mockup built from the Aema renders */
.mk { position: relative; overflow: hidden; container-type: inline-size;
  background: radial-gradient(80% 60% at 70% 20%, rgba(232,67,28,.35), rgba(232,67,28,0) 70%), linear-gradient(160deg, #2f2f2f, #1a1a1a); }
.mk__brochure {
  position: absolute; left: 7%; top: 6%; width: 57%; aspect-ratio: 3/4.2; border-radius: 4px; overflow: hidden;
  background: #fff; transform: rotate(-7deg); box-shadow: 0 30px 50px -18px rgba(0,0,0,.7); display: flex; flex-direction: column;
}
.mk__brochure img { width: 100%; height: 66%; object-fit: cover; }
.mk__band { flex: 1; background: #1D1D1D; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .3cqw; padding: 3cqw 3.6cqw; text-align: left; }
.mk__logo { font-family: var(--f-disp); font-weight: 600; letter-spacing: .32em; font-size: 6cqw; line-height: 1; }
.mk__sub { font-family: var(--f-ui); font-size: 2.3cqw; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); margin-top: 1.2cqw; }
.mk__line { font-family: var(--f-ui); font-size: 2.2cqw; color: rgba(255,255,255,.6); margin-top: .6cqw; }
.mk__phone {
  position: absolute; right: 6%; bottom: 5%; width: 37%; aspect-ratio: 9/18.5; border-radius: 6cqw; padding: 1.6cqw;
  background: #0d0d0d; transform: rotate(6deg); box-shadow: 0 30px 50px -15px rgba(0,0,0,.75), inset 0 0 0 1px rgba(255,255,255,.12);
}
.mk__screen { display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: 4.6cqw; overflow: hidden; background: #fff; color: #111; padding-top: 6cqw; }
.mk__head { display: flex; align-items: center; gap: 1.6cqw; padding: 0 2.4cqw 2cqw; }
.mk__av { width: 5.4cqw; height: 5.4cqw; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--f-ui); font-weight: 700; font-size: 2.4cqw; }
.mk__user { display: flex; flex-direction: column; font-family: var(--f-ui); font-weight: 700; font-size: 2.2cqw; line-height: 1.2; }
.mk__user small { font-weight: 400; color: #777; font-size: 1.8cqw; }
.mk__screen img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.case__shot.mk:hover img { transform: none; }
.mk__actions { display: flex; gap: 2.4cqw; padding: 2cqw 2.4cqw 1cqw; font-style: normal; font-size: 3cqw; }
.mk__actions i { font-style: normal; }
.mk__caption { padding: 0 2.4cqw; font-family: var(--f-ui); font-size: 2.1cqw; line-height: 1.35; }
.mk__tag {
  position: absolute; left: 4%; bottom: 4%; font-family: var(--f-ui); font-size: max(.58rem, 2.4cqw); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem .7rem; border-radius: 2rem; background: rgba(29,29,29,.7); color: #fff; border: 1px solid rgba(255,255,255,.18);
}
.mk:hover .mk__brochure { transform: rotate(-4deg) translateY(-2%); }
.mk:hover .mk__phone { transform: rotate(3deg) translateY(-2%); }
.mk__brochure, .mk__phone { transition: transform .8s var(--ease-expo); }

@media (max-width: 960px) {
  .case__head, .case__body { grid-template-columns: 1fr; }
  .case__hero { aspect-ratio: 4/3; }
  .case__meta { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 0 0 9px 9px; background: var(--dark-2); }
  .case__meta > span:nth-child(3) { border-left: 0; }
  .case__meta > span:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 960px) { .case__hero { aspect-ratio: auto; } .case__hero img { aspect-ratio: 4/3; } }

/* Home: Offplan banner card, fully clickable */
.opb { padding: var(--gap, 6rem) 0; }
.opb__card {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  min-height: clamp(460px, 62vh, 620px); border-radius: 9px; color: #fff; background: var(--dark);
  padding: clamp(1.8rem, 4vw, 3.5rem);
}
.opb__bg { position: absolute; inset: 0; z-index: -1; }
.opb__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transition: transform 1.2s var(--ease-expo); }
.opb__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(29,29,29,.9) 0%, rgba(29,29,29,.62) 42%, rgba(29,29,29,.05) 75%),
    linear-gradient(0deg, rgba(29,29,29,.7) 0%, rgba(29,29,29,0) 50%);
  transition: opacity .6s;
}
.opb__card:hover .opb__bg img { transform: scale(1.06); }
.opb__content { display: flex; flex-direction: column; max-width: 560px; }
.opb__h { font-family: var(--f-disp); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(2.1rem, 4.6vw, 4rem); margin-bottom: 1.1rem; }
.opb__p { font-family: var(--f-ui); font-size: .95rem; line-height: 1.6; color: rgba(255,255,255,.78); max-width: 44ch; margin-bottom: 1.6rem; }
.opb__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.opb__chips span { font-family: var(--f-ui); font-size: .74rem; font-weight: 600; padding: .55rem .95rem; border-radius: 2rem; border: 1px solid rgba(255,255,255,.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(255,255,255,.06); }
.opb__chips span:first-child { background: var(--accent); border-color: var(--accent); }
.opb__chips b { font-weight: 700; }
.opb__cta {
  position: absolute; right: clamp(1.5rem, 3.5vw, 3rem); bottom: clamp(1.5rem, 3.5vw, 3rem);
  width: clamp(110px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 20px 40px -18px rgba(232,67,28,.9);
  transition: transform .5s var(--ease-expo);
}
.opb__ring { position: absolute; inset: 8%; width: 84%; height: 84%; animation: voicesSpin 16s linear infinite; }
.opb__ring text { fill: #fff; font-family: var(--f-ui); font-size: 10.5px; font-weight: 700; letter-spacing: 2.2px; }
.opb__cta i { font-style: normal; font-size: 1.7rem; color: #fff; transition: transform .4s var(--ease-expo); }
.opb__card:hover .opb__cta { transform: scale(1.08) rotate(-8deg); }
.opb__card:hover .opb__cta i { transform: translate(3px, -3px); }
.opb__card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

@media (max-width: 900px) {
  .opx__inner { grid-template-columns: 1fr; }
  .opx-box { max-width: 420px; }
  .opb__card { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-bottom: 8.5rem; }
  .opb__bg::after { background: linear-gradient(0deg, rgba(29,29,29,.92) 0%, rgba(29,29,29,.55) 55%, rgba(29,29,29,.2) 100%); }
  .opb__cta { width: 104px; }
}
@media (prefers-reduced-motion: reduce) { .opb__ring, .opx-box__ribbon svg { animation: none; } }

/* Testimonials: two slow rows of review cards drifting in opposite directions */
@keyframes voicesSpin { to { transform: rotate(360deg); } }
.wall { padding: var(--gap, 6rem) 0; overflow: hidden; }
.wall__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem 4rem; flex-wrap: wrap; margin-bottom: 3rem; }
.wall__h { font-family: var(--f-disp); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.wall__h em { font-style: normal; color: var(--accent); }
.wall__aside { display: flex; align-items: center; gap: 1.5rem; max-width: 460px; }
.wall__aside p { font-family: var(--f-ui); font-size: .9rem; line-height: 1.6; color: var(--muted); }
.wall__cta {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .7rem; height: 52px; padding: 0 .45rem 0 1.3rem;
  border-radius: 3rem; background: var(--accent); color: #fff;
  font-family: var(--f-ui); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: background .25s, transform .3s var(--ease-expo);
}
.wall__cta i { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; font-style: normal; transition: transform .35s var(--ease-expo); }
.wall__cta:hover { background: var(--ink); }
.wall__cta:hover i { transform: rotate(45deg); }

.wall__rows { display: grid; gap: 1rem; }
.wall__row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.wall__track { display: flex; width: max-content; animation: wallMove 70s linear infinite; }
.wall__row--r .wall__track { animation-direction: reverse; animation-duration: 80s; }
.wall__row:hover .wall__track, .wall__row:focus-within .wall__track { animation-play-state: paused; }
.wall__set { display: flex; gap: 1rem; padding-right: 1rem; }
@keyframes wallMove { to { transform: translateX(-50%); } }

.wcard {
  width: 360px; margin: 0; flex-shrink: 0; display: flex; flex-direction: column; gap: 1rem;
  padding: 1.5rem 1.5rem 1.35rem; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink);
  transition: transform .4s var(--ease-expo), box-shadow .4s;
}
.wcard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(29,29,29,.4); }
.wcard__mark { font-family: var(--f-disp); font-weight: 700; font-size: 3rem; line-height: .55; height: 1.4rem; color: var(--accent); }
.wcard__q { font-family: var(--f-disp); font-weight: 500; font-size: .98rem; line-height: 1.5; letter-spacing: -.01em; flex: 1; }
.wcard__by { display: flex; align-items: center; gap: .7rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.wcard__av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-family: var(--f-ui); font-weight: 700; font-size: .7rem; letter-spacing: .04em;
}
.wcard__who { display: flex; flex-direction: column; font-family: var(--f-ui); }
.wcard__who strong { font-size: .86rem; font-weight: 700; }
.wcard__who small { font-size: .74rem; color: var(--muted); }
.wcard__tag {
  align-self: flex-start; font-family: var(--f-ui); font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .38rem .7rem; border-radius: 2rem; background: rgba(232,67,28,.1); color: var(--accent);
}
.wcard--orange { background: var(--accent); border-color: var(--accent); color: #fff; }
.wcard--orange .wcard__mark { color: #fff; }
.wcard--orange .wcard__by { border-color: rgba(255,255,255,.25); }
.wcard--orange .wcard__av { background: #fff; color: var(--accent); }
.wcard--orange .wcard__who small { color: rgba(255,255,255,.8); }
.wcard--orange .wcard__tag { background: rgba(255,255,255,.18); color: #fff; }
.wcard--dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.wcard--dark .wcard__by { border-color: rgba(255,255,255,.12); }
.wcard--dark .wcard__who small { color: rgba(255,255,255,.55); }
.wcard--dark .wcard__tag { background: rgba(232,67,28,.2); color: #ff8a66; }

@media (max-width: 640px) {
  .wcard { width: 290px; }
  .wall__aside { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .wall__track { animation: none; }
  .wall__row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .wall__set[aria-hidden] { display: none; }
}

/* Footer */
.gfoot { background: var(--dark); color: #fff; font-family: var(--f-ui); }
.gfoot a { transition: color .25s, opacity .25s, background .25s; }
.gfoot :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 9px; }
.gfoot__top {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.gfoot__brand { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.gfoot__logo img { height: clamp(30px, 3.4vw, 46px); width: auto; display: block; }
.gfoot__social { display: flex; gap: .4rem; }
.gfoot__social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.14);
}
.gfoot__social a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.gfoot__tag {
  font-family: var(--f-disp); font-weight: 700; font-size: .95rem; line-height: 1.35;
  color: rgba(255,255,255,.5); text-align: right; letter-spacing: -.01em;
}
.gfoot__tag span { color: var(--accent); }
.gfoot__links { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; padding: 1.5rem 0 2.5rem; }
.gfoot__links a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-size: .88rem; color: rgba(255,255,255,.75); }
.gfoot__links a i { font-style: normal; color: var(--accent); transition: transform .3s var(--ease-out); }
.gfoot__links a:hover { color: #fff; }
.gfoot__links a:hover i { transform: translate(2px, -2px); }

.gfoot__mid { border-top: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09); }
.gfoot__grid { display: grid; grid-template-columns: 1fr 1.15fr; }
.gfoot__cta {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  padding: 2.75rem 3rem 2.75rem 0; border-right: 1px solid rgba(255,255,255,.09);
}
.gfoot__lead { display: grid; grid-template-columns: auto 1fr; gap: 1.75rem; align-items: start; }
.gfoot__person { display: flex; flex-direction: column; gap: .8rem; width: 112px; }
.gfoot__avatar { width: 96px; height: 112px; border-radius: 48px 48px 14px 14px; overflow: hidden; background: var(--dark-2); }
.gfoot__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1); }
.gfoot__who { display: flex; flex-direction: column; gap: .15rem; font-size: .74rem; }
.gfoot__who strong { font-weight: 600; color: #fff; display: flex; align-items: center; gap: .4rem; }
.gfoot__who small { font-size: .68rem; color: rgba(255,255,255,.45); }
.gfoot__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61,220,132,.18); flex-shrink: 0; }
.gfoot__pitch {
  font-family: var(--f-disp); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.22; color: #fff; max-width: 18ch;
}
.gfoot__pill {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #fff; color: var(--ink); border-radius: 3rem; padding: .55rem .55rem .55rem 1.6rem;
  font-family: var(--f-disp); font-weight: 600; font-size: clamp(1rem, 1.5vw, 1.2rem); letter-spacing: -.01em;
  max-width: 440px;
}
.gfoot__pill b {
  display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-ui); font-weight: 700;
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: .85rem 1.1rem; border-radius: 2rem; transition: background .25s;
}
.gfoot__pill b i { font-style: normal; color: var(--accent); transition: transform .3s var(--ease-out), color .25s; }
.gfoot__pill:hover b { background: var(--accent); }
.gfoot__pill:hover b i { color: #fff; transform: translate(2px, -2px); }

.gfoot__offices { display: grid; grid-template-columns: 1fr 1fr; }
.gfoot__office { padding: 2.25rem 0 2.25rem 3rem; display: flex; flex-direction: column; gap: .45rem; }
.gfoot__office:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.09); }
.gfoot__office h3 {
  font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: -.03em; line-height: 1; margin-bottom: .8rem; display: flex; align-items: flex-start; gap: .35rem;
}
.gfoot__office sup { font-family: var(--f-ui); font-size: .6rem; font-weight: 600; letter-spacing: .08em; color: var(--accent); margin-top: .1rem; text-transform: uppercase; }
.gfoot__office a { font-size: .86rem; color: #fff; align-self: flex-start; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: .1rem; }
.gfoot__office a:hover { color: var(--accent); border-color: var(--accent); }
.gfoot__office > span { font-size: .78rem; color: rgba(255,255,255,.45); }

.gfoot__bot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.4rem 0 1.6rem; font-size: .75rem; color: rgba(255,255,255,.4);
}
.gfoot__bot nav { display: flex; gap: 1.5rem; }
.gfoot__bot a { color: rgba(255,255,255,.55); }
.gfoot__bot a:hover { color: #fff; }

@media (max-width: 1024px) {
  .gfoot__grid { grid-template-columns: 1fr; }
  .gfoot__cta { border-right: none; border-bottom: 1px solid rgba(255,255,255,.09); padding-right: 0; }
  .gfoot__office { padding-left: 0; padding-right: 1.5rem; }
}
@media (max-width: 640px) {
  .gfoot__top { flex-direction: column; align-items: flex-start; }
  .gfoot__tag { text-align: left; }
  .gfoot__lead { grid-template-columns: 1fr; }
  .gfoot__person { flex-direction: row; align-items: center; width: auto; }
  .gfoot__avatar { width: 64px; height: 76px; border-radius: 32px 32px 10px 10px; }
  .gfoot__offices { grid-template-columns: 1fr; }
  .gfoot__office { border-bottom: 1px solid rgba(255,255,255,.09); }
  .gfoot__office:last-child { border-bottom: none; }
  .gfoot__pill { padding-left: 1.1rem; }
}

/* Transparent header: frosted glass, text colour follows what is underneath */
.nav, .nav.scrolled {
  background: transparent !important; box-shadow: none !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
}
.nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: rgba(29,29,29,.08); transition: background .3s;
}
.nav__links a, .btn-lang, .btn-nav, .hamburger span { transition: color .3s, border-color .3s, background .3s, opacity .25s; }
.nav__logo--light { display: none; }
.nav__logo { height: 27px; }

/* Dark-section variant of the asterisk background, kept away from the text column */
.ast-bg--dark::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 84'%3E%3Cg fill='%23FFFFFF' fill-opacity='.07' transform='translate(25.2 25.2) scale(1.4)'%3E%3Crect x='9.9' y='1.5' width='4.2' height='21'/%3E%3Crect x='9.9' y='1.5' width='4.2' height='21' transform='rotate(60 12 12)'/%3E%3Crect x='9.9' y='1.5' width='4.2' height='21' transform='rotate(120 12 12)'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 48% 80% at 82% 50%, #000 25%, transparent 100%);
          mask-image: radial-gradient(ellipse 48% 80% at 82% 50%, #000 25%, transparent 100%);
}
@media (max-width: 1024px) {
  .ast-bg--dark::before { -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 55%); mask-image: linear-gradient(0deg, #000 0%, transparent 55%); }
}
.nav.is-dark:not(:has(.has-mega:hover)):not(:has(.has-mega:focus-within)):not(:has(~ .mob-menu.open)) .nav__logo--dark { display: none; }
.nav.is-dark:not(:has(.has-mega:hover)):not(:has(.has-mega:focus-within)):not(:has(~ .mob-menu.open)) .nav__logo--light { display: block; }
.nav.is-dark:not(:has(.has-mega:hover)):not(:has(.has-mega:focus-within)):not(:has(~ .mob-menu.open)) .nav__links > li > a { color: #fff; opacity: .85; }
.nav.is-dark:not(:has(.has-mega:hover)):not(:has(.has-mega:focus-within)):not(:has(~ .mob-menu.open)) .btn-lang,
.nav.is-dark:not(:has(.has-mega:hover)):not(:has(.has-mega:focus-within)):not(:has(~ .mob-menu.open)) .btn-nav { color: #fff; border-color: rgba(255,255,255,.5); }
.nav.is-dark:not(:has(.has-mega:hover)):not(:has(.has-mega:focus-within)):not(:has(~ .mob-menu.open)) .hamburger span { background: #fff; }
.nav.is-dark::after { background: rgba(255,255,255,.1); }
.nav:has(.has-mega:hover), .nav:has(.has-mega:focus-within) { background: var(--bg) !important; }

/* Shared header mega-menu (Servizi) */
.has-mega > a { display: inline-flex; align-items: center; gap: .3rem; }
.has-mega > a .chev { transition: transform .3s var(--ease-out); }
.has-mega:hover > a .chev,
.has-mega:focus-within > a .chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px -24px rgba(15,13,10,.18);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .3s var(--ease-expo), visibility 0s linear .3s;
  font-family: var(--f-ui);
}
.mega::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 2rem;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .25s ease, transform .3s var(--ease-expo), visibility 0s;
}
.nav:has(.has-mega:hover), .nav:has(.has-mega:focus-within) {
  background: var(--bg); box-shadow: none;
}

.mega__inner {
  display: grid; grid-template-columns: 1fr 2.6fr; gap: 3rem;
  padding: 2.25rem 0 2.5rem;
}
.mega__label {
  font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .7rem;
}
.mega__lead {
  font-family: var(--f-disp); font-size: 1.15rem; font-weight: 800;
  letter-spacing: -.02em; line-height: 1.25; color: var(--ink); margin-bottom: 1.4rem;
}
.mega__all {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink) !important; opacity: 1 !important;
  border-bottom: 1.5px solid var(--accent); padding-bottom: .2rem;
}
.mega__all::after { display: none; }
.mega__all:hover { color: var(--accent) !important; }

.mega__list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--border);
}
.mega__list a {
  display: block; padding: .9rem 1.25rem; border-radius: 9px;
  opacity: 1 !important; color: var(--ink);
  transition: background .2s;
}
.mega__list a::after { display: none; }
.mega__list a:hover { background: var(--surface); }
.mega__name {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em; margin-bottom: .3rem;
}
.mega__name::before { content: '◇'; color: var(--accent); font-size: .7rem; }
.mega__desc {
  display: block; font-size: .74rem; font-weight: 400; line-height: 1.5; color: var(--muted);
}

@media (max-width: 768px) { .mega { display: none; } }
