:root {
  --color-bg: #272727;
  --color-panel: #303030;
  --color-field: #303030;
  --color-white: #f4f4f2;
  --color-muted: rgba(244, 244, 242, 0.34);
  --color-muted-strong: rgba(244, 244, 242, 0.72);
  --color-accent: #f6ab3a;
  --color-hero-wash: rgba(90, 98, 108, 0.80);

  --font-body: "Montserrat", Arial, sans-serif;

  --max-width: 1210px;
  --header-height: 94px;
  --section-pad: clamp(92px, 12vw, 178px);
  --letter-wide: 0.10em;

  --hero-image: url("images/hero.jpg");
  --energy-image: url("images/01-energy.jpg");
  --assets-image: url("images/02-real.jpg");
  --ai-image: url("images/01-ai.jpg");
  --insurance-image: url("images/04-insurance.jpg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.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;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(24px, 5vw, 82px);
  color: var(--color-white);
  background: rgba(34, 35, 35, 0);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  transition:
    height 720ms cubic-bezier(0.19, 1, 0.22, 1),
    background-color 720ms ease,
    box-shadow 720ms ease,
    backdrop-filter 720ms ease;
}

.site-header.is-scrolled {
  height: 74px;
  background: rgba(34, 35, 35, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.mini-logo {
  position: absolute;
  left: clamp(22px, 4vw, 78px);
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity 620ms ease 120ms,
    transform 720ms cubic-bezier(0.19, 1, 0.22, 1) 120ms;
}

.site-header.is-scrolled .mini-logo {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mini-logo__image {
  width: clamp(148px, 13vw, 210px);
  max-height: 42px;
  height: auto;
  display: block;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 52px);
  transition: transform 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

.site-header.is-scrolled .primary-nav {
  transform: translateY(1px);
}

.primary-nav a {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.05vw, 23px);
  font-weight: 400;
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 180ms ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--color-accent);
}

.menu-toggle {
  position: absolute;
  right: clamp(22px, 4vw, 78px);
  width: 46px;
  height: 46px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  width: 27px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero::before {
  background-image: var(--hero-image);
  background-position: center bottom;
  background-size: cover;
  opacity: 0;
  transform: scale(1.025);
  animation: heroImageFade 1400ms ease-out 120ms forwards;
}

.hero::after {
  background: linear-gradient(90deg, rgba(27, 32, 38, 0.08), rgba(96, 104, 114, 0.58) 52%, rgba(96, 104, 114, 0.86));
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: var(--color-hero-wash);
  mix-blend-mode: multiply;
}

.hero__brand {
  --hero-brand-x: 0;
  position: absolute;
  top: 21%;
  right: clamp(34px, 6.5vw, 118px);
  z-index: 2;
  width: min(760px, 45vw);
  display: flex;
  justify-content: flex-end;
  text-align: right;
  opacity: 0;
  transform: translateX(var(--hero-brand-x)) translateY(18px) scale(0.985);
  animation: heroLogoEnter 1200ms cubic-bezier(0.19, 1, 0.22, 1) 420ms forwards;
}

.hero-watermark {
  position: absolute;
  top: clamp(76px, 5.3vw, 112px);
  left: clamp(74px, 5.2vw, 118px);
  z-index: 2;
  width: clamp(118px, 10vw, 190px);
  height: auto;
  opacity: 0.12;
  pointer-events: none;
}

.hero-logo-image {
  display: block;
  width: min(66%, 505px);
  height: auto;
  margin-left: auto;
}

@keyframes heroImageFade {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroLogoEnter {
  to {
    opacity: 1;
    transform: translateX(var(--hero-brand-x)) translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__brand {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.holding {
  margin: clamp(17px, 2vw, 31px) 0 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.45vw, 29px);
  font-weight: 500;
  letter-spacing: 0.73em;
  line-height: 1;
  text-transform: uppercase;
}

.divider {
  display: block;
  width: 70%;
  height: 1px;
  margin: clamp(18px, 2vw, 30px) auto clamp(14px, 1.55vw, 26px);
  background: rgba(244, 244, 242, 0.42);
}

.tagline {
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.3vw, 25px);
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
}

.section-inner {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 0 auto;
}

.text-section {
  padding: var(--section-pad) 0 clamp(96px, 14vw, 210px);
  text-align: center;
}

.text-section--compact {
  padding-top: clamp(72px, 8vw, 126px);
}

h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(34px, 3.25vw, 50px);
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.12;
  text-transform: uppercase;
}

h2 span {
  color: var(--color-accent);
}

.lead {
  width: min(1080px, 100%);
  margin: 50px auto 0;
  font-family: var(--font-body);
  font-size: 1.15vw;
  font-weight: 500;
  letter-spacing: 0.20em;
  line-height: 1.55;
  text-transform: uppercase;
}

.body-copy {
  width: min(1120px, 100%);
  margin: clamp(55px, 7vw, 95px) auto 0;
  color: var(--color-muted);
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 2.2;
}

.body-copy p {
  margin: 0 auto clamp(20px, 2.2vw, 36px);
}

.invest {
  padding-top: clamp(78px, 9vw, 150px);
  text-align: center;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  margin-top: clamp(76px, 8vw, 130px);
}

.sector {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 640 / 1183;
  overflow: hidden;
  background: #252525;
  isolation: isolate;
}

.sector--energy {
  --sector-image: var(--energy-image);
}

.sector--assets {
  --sector-image: var(--assets-image);
}

.sector--ai {
  --sector-image: var(--ai-image);
}

.sector--insurance {
  --sector-image: var(--insurance-image);
}

.sector::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.sector::before {
  background-image: var(--sector-image);
  background-position: center;
  background-size: cover;
  filter: grayscale(1);
  transform: scale(1);
  transition: transform 1450ms cubic-bezier(0.19, 1, 0.22, 1), filter 1200ms ease;
  will-change: transform;
}

.sector:hover::before,
.sector:focus-within::before,
.sector.is-open::before {
  filter: grayscale(0.85);
  transform: scale(1.16);
}

.sector__content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(48px, 4.6vw, 92px) clamp(18px, 2vw, 42px) clamp(38px, 3.7vw, 70px);
}

.sector h3 {
  min-height: clamp(82px, 7vw, 118px);
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(21px, 1.65vw, 34px);
  font-weight: 500;
  letter-spacing: 0.20em;
  line-height: 1.2;
  text-transform: uppercase;
}

.sector__more {
  position: relative;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  margin: auto 0 0;
  border: 0;
  border-radius: 50%;
  background: url("images/icona-freccia.png") center / contain no-repeat;
  cursor: pointer;
  transition: filter 620ms ease, opacity 620ms ease, transform 880ms cubic-bezier(0.19, 1, 0.22, 1);
}

.sector:hover .sector__more,
.sector:focus-within .sector__more,
.sector.is-open .sector__more {
  filter: brightness(1.05);
  transform: translateY(-12px);
}

.sector p {
  max-height: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(14px, 0.92vw, 18px);
  line-height: 1.7;
  opacity: 0;
  overflow: hidden;
  transform: translateY(34px);
  transition:
    max-height 980ms cubic-bezier(0.19, 1, 0.22, 1),
    margin-top 980ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 760ms ease 130ms,
    transform 980ms cubic-bezier(0.19, 1, 0.22, 1);
}

.sector:hover p,
.sector:focus-within p,
.sector.is-open p {
  max-height: 260px;
  margin-top: 30px;
  opacity: 1;
  transform: translateY(0);
}

.statement {
  padding: clamp(95px, 11vw, 178px) 22px clamp(105px, 11vw, 190px);
  text-align: center;
}

.statement p {
  margin: 0 auto;
  max-width: 1580px;
  font-family: var(--font-body);
  font-size: clamp(23px, 1.95vw, 35px);
  font-weight: 600;
  letter-spacing: 0.21em;
  line-height: 1.45;
  text-transform: uppercase;
}

.statement span,
.statement strong {
  display: block;
}

.statement span {
  color: var(--color-accent);
}

.statement strong {
  color: var(--color-white);
}

.investments {
  padding: clamp(38px, 4vw, 70px) 0 clamp(118px, 14vw, 225px);
  text-align: center;
}

.logo-cloud {
  width: min(1050px, 100%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: clamp(54px, 6vw, 90px) clamp(60px, 8vw, 130px);
  margin: clamp(88px, 12vw, 178px) auto clamp(96px, 13vw, 190px);
}

.logo-cloud a,
.logo-cloud img {
  width: 100%;
  justify-self: center;
}

.logo-cloud a {
  display: block;
}

.logo-cloud img {
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.logo-cloud a:nth-child(2) img {
  max-width: 270px;
}

.logo-cloud a:nth-child(3) img {
  max-width: 330px;
}

.logo-cloud a:nth-child(1) {
  grid-column: 1 / 3;
}

.logo-cloud a:nth-child(2) {
  grid-column: 3 / 5;
}

.logo-cloud a:nth-child(3) {
  grid-column: 5 / 7;
}

.logo-cloud a:nth-child(4) {
  grid-column: 2 / 4;
}

.logo-cloud img:nth-child(5) {
  grid-column: 4 / 6;
  max-width: 250px;
}

.home-button,
.send-button {
  display: inline-flex;
  width: 70px;
  min-width: 70px;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

.icon-button img {
  width: 70px;
  height: 70px;
  display: block;
}

.home-button:hover,
.send-button:hover {
  transform: translateY(-2px);
  opacity: 0.82;
}

.home-button {
  padding: 0;
}

.contact {
  padding: clamp(32px, 4vw, 70px) 0 100px;
}

.contact__inner h2 {
  text-align: center;
}

.contact__layout {
  display: grid;
  grid-template-columns: 0.58fr 1.42fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: end;
  margin-top: clamp(82px, 10vw, 150px);
}

.contact__brand {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(244, 244, 242, 0.18);
  font-size: clamp(16px, 1.05vw, 21px);
}

.footer-logo {
  display: block;
  width: min(285px, 100%);
  height: auto;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px 24px;
  align-items: start;
}

.message-field {
  grid-row: span 2;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

input,
textarea {
  width: 100%;
  border: 0;
  border-radius: 19px;
  background: var(--color-field);
  color: var(--color-white);
  outline: 1px solid transparent;
  transition: outline-color 180ms ease, background-color 180ms ease;
}

input {
  height: 80px;
  padding: 0 43px;
}

textarea {
  min-height: 182px;
  resize: vertical;
  padding: 27px 43px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(244, 244, 242, 0.94);
}

input:focus,
textarea:focus {
  outline-color: rgba(246, 171, 58, 0.68);
  background: #353535;
}

.send-button {
  grid-column: 3;
  min-width: 86px;
  min-height: 70px;
  justify-self: end;
  margin-top: 56px;
  padding: 0;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(78px, 8vw, 128px);
  color: rgba(244, 244, 242, 0.28);
  font-size: 12px;
  line-height: 1.8;
}

.legal-footer p {
  margin: 0;
}

.legal-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legal-footer a {
  transition: color 180ms ease;
}

.legal-footer a:hover {
  color: var(--color-accent);
}

.legal-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 90px) 22px 100px;
  background: var(--color-bg);
}

.legal-content {
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: left;
}

.legal-content h1 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(38px, 4.1vw, 65px);
  font-weight: 500;
  letter-spacing: 0.20em;
  line-height: 1.18;
  text-transform: uppercase;
}

.legal-content h1 span {
  color: var(--color-accent);
}

.legal-copy {
  margin: 58px auto 0;
  color: var(--color-muted);
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 2;
}

.legal-copy h2 {
  margin: 48px 0 14px;
  color: var(--color-white);
  font-size: 24px;
  letter-spacing: 0.14em;
}

.legal-intro {
  color: var(--color-muted-strong);
}

.legal-copy p {
  margin: 0 0 24px;
}

.legal-copy a,
.legal-back {
  color: var(--color-accent);
}

.legal-back {
  display: inline-block;
  margin-top: 34px;
  font-family: var(--font-body);
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .primary-nav {
    gap: 24px;
  }

  .sector__content {
    padding: 46px 18px 42px;
  }

  .sector h3 {
    min-height: 92px;
    font-size: 24px;
    letter-spacing: 0.17em;
  }

  .sector p {
    font-size: 14px;
  }

  .contact__layout {
    grid-template-columns: 1fr;
  }

  .contact__brand {
    min-height: auto;
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 76px;
    --letter-wide: 0.22em;
  }

  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    justify-content: flex-start;
  }

  .mini-logo {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
    z-index: 23;
  }

  .primary-nav {
    position: fixed;
    z-index: 22;
    inset: 0 auto auto 0;
    width: 100%;
    height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    justify-content: center;
    padding: 96px 28px 72px;
    background: rgba(28, 29, 29, 0.96);
    opacity: 0;
    overflow-y: auto;
    pointer-events: none;
    transform: translateX(18px);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  body.menu-open .primary-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .primary-nav a {
    font-size: 28px;
    text-align: center;
  }

  .hero {
    min-height: 760px;
    background-position: 38% bottom;
  }

  .hero-watermark {
    display: none;
  }

  .hero__brand {
    --hero-brand-x: -50%;
    top: 22%;
    right: auto;
    left: 50%;
    width: min(520px, calc(100% - 44px));
    justify-content: center;
    text-align: center;
  }

  .hero-logo-image {
    margin: 0 auto;
  }

  .holding {
    letter-spacing: 0.55em;
    padding-left: 0.55em;
  }

  .tagline {
    letter-spacing: 0.30em;
    padding-left: 0.30em;
  }

  .lead {
    line-height: 1.45;
  }

  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sector__content {
    padding: 58px 34px 50px;
  }

  .contact-form {
    grid-template-columns: 1fr 1fr;
  }

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

  .legal-footer nav {
    justify-content: flex-start;
  }

  .logo-cloud {
    grid-template-columns: repeat(2, 1fr);
    width: min(720px, calc(100% - 44px));
  }

  .logo-cloud a,
  .logo-cloud a:nth-child(1),
  .logo-cloud a:nth-child(2),
  .logo-cloud a:nth-child(3),
  .logo-cloud a:nth-child(4),
  .logo-cloud img:nth-child(5) {
    grid-column: auto;
    justify-self: center;
  }

  .message-field {
    grid-column: span 2;
    grid-row: auto;
  }

  .send-button {
    grid-column: span 2;
    justify-self: end;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 0 20px;
  }

  .mini-logo {
    left: 20px;
  }

  .menu-toggle {
    right: 15px;
  }

  .hero {
    min-height: 690px;
  }

  .site-header.is-scrolled .primary-nav {
    transform: translateX(18px);
  }

  body.menu-open .site-header.is-scrolled .primary-nav,
  body.menu-open .primary-nav {
    transform: translateX(0);
  }

  h2 {
    font-size: clamp(32px, 9vw, 46px);
    letter-spacing: 0.18em;
  }

  .lead {
    margin-top: 48px;
    font-size: 22px;
    letter-spacing: 0.18em;
  }

  .body-copy {
    margin-top: 46px;
    font-size: 16px;
    line-height: 1.9;
  }

  .sector-grid {
    grid-template-columns: 1fr;
    margin-top: 58px;
  }

  .sector__content {
    padding: 54px 34px 44px;
  }

  .sector h3 {
    min-height: 86px;
  }

  .sector p {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    transform: translateY(24px);
  }

  .sector__more {
    transform: none;
  }

  .sector:focus-within p,
  .sector.is-open p {
    max-height: 360px;
    margin-top: 24px;
    opacity: 1;
    transform: translateY(0);
  }

  .statement p {
    font-size: 25px;
    letter-spacing: 0.15em;
  }

  .logo-cloud {
    grid-template-columns: 1fr;
  }

  .logo-cloud a,
  .logo-cloud a:nth-child(4),
  .logo-cloud img:nth-child(5) {
    grid-column: auto;
    justify-self: center;
  }

  .contact__brand {
    gap: 42px;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .message-field,
  .send-button {
    grid-column: auto;
  }

  input {
    height: 70px;
    padding: 0 26px;
  }

  textarea {
    padding: 24px 26px;
  }

  .send-button {
    width: 70px;
    min-width: 70px;
    justify-self: center;
    margin-top: 22px;
  }
}
