:root {
  --blue-950: #0f3a64;
  --blue-850: #274f76;
  --blue-700: #467eb7;
  --blue-deep: #042246;
  --blue-sky: #6397d1;
  --blue-100: #e9f3f8;
  --gold-600: #a29061;
  --green-650: #177a67;
  --ink: #17212b;
  --muted: #5d6975;
  --line: #dbe3ea;
  --line-dark: rgba(255, 255, 255, 0.16);
  --paper: #ffffff;
  --soft: #f5f8fa;
  --warm: #f7f3e8;
  --shadow: 0 18px 45px rgba(15, 58, 100, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Jost, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

section {
  padding: 96px 0;
  scroll-margin-top: 172px;
}

.section-tag,
.eyebrow {
  color: var(--blue-700);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.section-title {
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.08;
  max-width: 820px;
}

.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 18px;
  max-width: 700px;
}

/* Mission statement (Gruppo) — dopo la hero, prima delle proprietà. */
.mission-statement {
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
  border-bottom: 1px solid var(--line);
  padding: 84px 0 56px;
}

.mission-inner {
  display: grid;
  gap: 28px 64px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: start;
}

.mission-copy .mission-lead {
  color: var(--blue-700);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 14px;
}

.mission-text {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.mission-text p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0;
}

.mission-logos {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px 52px;
  margin-top: 44px;
  padding: 40px 48px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.mission-logos img {
  height: 72px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.mission-logos img:hover {
  transform: scale(1.04);
}

@media (max-width: 820px) {
  .mission-inner { grid-template-columns: 1fr; }
  .mission-logos { gap: 22px 34px; padding: 28px 24px; }
  .mission-logos img { height: 54px; }
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.58fr);
  margin: 0 0 48px;
  max-width: none;
  text-align: left;
}

.section-heading.left {
  display: block;
  max-width: 760px;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 500;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue-700);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-850);
}

.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--blue-950);
}

.btn-outline:hover,
.btn-ghost:hover {
  border-color: var(--blue-700);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--blue-950);
}

.text-link {
  color: var(--blue-700);
  display: inline-flex;
  font-weight: 500;
  margin-top: auto;
}

.text-link::after {
  content: "→";
  margin-left: 8px;
}

.pill {
  background: var(--blue-100);
  border-radius: 999px;
  color: var(--blue-850);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  text-transform: uppercase;
}

header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(219, 227, 234, 0.82);
  left: 0;
  padding: 18px 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: box-shadow 0.2s ease, padding 0.2s ease;
  z-index: 100;
}

header.sticky {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(6, 42, 67, 0.08);
  padding: 12px 0;
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.logo img {
  height: auto;
  width: 206px;
  object-fit: contain;
}

nav {
  align-items: center;
  display: flex;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-700);
}

header.sticky .nav-links a {
  color: var(--ink);
}

header.sticky .nav-links a:hover,
header.sticky .nav-links a.active {
  color: var(--blue-700);
}

.has-submenu > a {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.has-submenu > a::after {
  border-bottom: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  height: 6px;
  margin-top: -3px;
  transform: rotate(45deg);
  width: 6px;
}

.submenu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(6, 42, 67, 0.12);
  display: grid;
  gap: 2px;
  left: 50%;
  list-style: none;
  min-width: 230px;
  opacity: 0;
  padding: 12px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 18px);
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  visibility: hidden;
  width: max-content;
}

.submenu.wide {
  min-width: 260px;
}

.submenu.external-sites {
  min-width: 310px;
}

.submenu::before {
  content: "";
  height: 20px;
  left: 0;
  position: absolute;
  right: 0;
  top: -20px;
}

.submenu a {
  color: var(--ink);
  display: block;
  font-size: 0.9rem;
  line-height: 1.25;
  padding: 10px 12px;
  white-space: nowrap;
}

.submenu a:hover {
  background: var(--soft);
  color: var(--blue-700);
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.lang-selector {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 9px;
}

header.sticky .lang-selector {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.menu-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  background: var(--blue-950);
  display: block;
  height: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 24px;
}

header.sticky .menu-toggle span {
  background: var(--blue-950);
}

.hero {
  background:
    linear-gradient(90deg, rgba(4, 34, 70, 0.46) 0%, rgba(4, 34, 70, 0.28) 34%, rgba(4, 34, 70, 0.08) 66%, rgba(4, 34, 70, 0.02) 100%),
    linear-gradient(180deg, rgba(4, 22, 36, 0.02) 0%, rgba(4, 22, 36, 0.04) 58%, rgba(4, 22, 36, 0.16) 100%),
    url("assetts/videos/tarchini-hero-remotion-v9-poster.jpg") center/cover;
  min-height: 78vh;
  overflow: hidden;
  padding: 118px 0 34px;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(4, 34, 70, 0.34) 0%, rgba(4, 34, 70, 0.16) 38%, rgba(4, 34, 70, 0.05) 72%, rgba(4, 34, 70, 0.01) 100%),
    linear-gradient(180deg, rgba(4, 22, 36, 0.05), rgba(4, 22, 36, 0.03) 58%, rgba(4, 22, 36, 0.16) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero-video {
  height: 100%;
  inset: 0;
  object-fit: contain;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.hero-audio-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  bottom: 28px;
  box-shadow: 0 14px 34px rgba(4, 22, 36, 0.22);
  color: var(--blue-950);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 600;
  gap: 9px;
  min-height: 42px;
  padding: 9px 15px 9px 13px;
  position: absolute;
  right: 28px;
  z-index: 3;
}

.hero-audio-toggle:hover {
  background: #fff;
}

.hero-audio-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
  display: block;
  height: 16px;
  position: relative;
  width: 16px;
}

.hero-audio-icon::before,
.hero-audio-icon::after {
  background: currentColor;
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.hero-audio-icon::before {
  height: 2px;
  width: 9px;
}

.hero-audio-icon::after {
  height: 9px;
  width: 2px;
}

.hero-audio-toggle.is-audio-on .hero-audio-icon::before,
.hero-audio-toggle.is-audio-on .hero-audio-icon::after {
  transform: translate(-50%, -50%) rotate(0);
}

.hero-audio-toggle.is-audio-on .hero-audio-icon::before {
  height: 7px;
  left: 42%;
  width: 2px;
}

.hero-audio-toggle.is-audio-on .hero-audio-icon::after {
  height: 11px;
  left: 60%;
  width: 2px;
}

.hero-video-led {
  background:
    linear-gradient(180deg, rgba(4, 22, 36, 0.02) 0%, rgba(4, 22, 36, 0) 64%, rgba(4, 22, 36, 0.14) 100%),
    url("assetts/videos/tarchini-hero-remotion-v9-poster.jpg") center/cover;
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding-bottom: 0;
}

.hero-video-led::before {
  background:
    linear-gradient(180deg, rgba(4, 22, 36, 0.02) 0%, rgba(4, 22, 36, 0) 58%, rgba(4, 22, 36, 0.16) 100%);
}

.hero-video-led .hero-inner {
  align-content: center;
  display: block;
  min-height: 0;
}

.hero-copy-accessible {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.hero-video-led.is-fallback-visible .hero-copy-accessible {
  clip: auto;
  clip-path: none;
  height: auto;
  overflow: visible;
  position: static;
  white-space: normal;
  width: auto;
}

.hero-inner {
  align-content: start;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.52fr);
  min-height: calc(78vh - 152px);
  position: relative;
  text-align: left;
  z-index: 2;
}

.hero h1 {
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.1rem, 5vw, 5.35rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
  max-width: 690px;
  text-shadow: 0 2px 18px rgba(4, 22, 36, 0.5), 0 8px 34px rgba(4, 22, 36, 0.26);
  text-wrap: balance;
}

.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-title-line > span {
  display: block;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  font-weight: 400;
  margin: 22px 0 0;
  max-width: 620px;
  text-shadow: 0 2px 10px rgba(4, 22, 36, 0.82), 0 10px 28px rgba(4, 22, 36, 0.38);
}

.hero-ctas {
  justify-content: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero .btn-outline {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 14px 34px rgba(4, 22, 36, 0.18);
  color: var(--blue-950);
}

.hero .btn-outline:hover {
  background: var(--blue-100);
  border-color: var(--blue-100);
  color: var(--blue-950);
}

.hero .section-tag {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 22px;
  text-shadow: 0 2px 12px rgba(4, 22, 36, 0.5);
}

.hero-proof {
  align-self: end;
  border-left: 1px solid rgba(255, 255, 255, 0.42);
  border-top: 0;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin: 0 0 4px;
  max-width: 280px;
  padding-left: 28px;
  padding-top: 0;
}

.hero-proof strong {
  color: #fff;
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(4, 22, 36, 0.62), 0 8px 28px rgba(4, 22, 36, 0.28);
}

.hero-proof span {
  color: #fff;
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 7px;
  text-shadow: 0 2px 10px rgba(4, 22, 36, 0.76), 0 8px 24px rgba(4, 22, 36, 0.32);
}

.hero-reveal {
  --reveal-delay: 0s;
  animation: heroRevealOnce 0.82s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--reveal-delay, 0s);
}

.hero.js-hero-sequenced .hero-reveal {
  animation: heroRevealOnce 0.82s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--reveal-delay, 0s);
}

.hero.js-hero-sequenced .hero-title-line.hero-reveal {
  animation: none;
  opacity: 1;
  transform: none;
}

.hero.js-hero-sequenced .hero-title-line > span {
  animation: heroTitleRevealOnce 0.94s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--reveal-delay, 0s);
}

.hero.js-hero-sequenced .hero-proof {
  clip-path: inset(0 0 0 0);
}

.hero.js-hero-sequenced.is-fallback-visible .hero-reveal,
.hero.js-hero-sequenced.is-fallback-visible .hero-title-line > span {
  animation: none;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes heroCycleTitle {
  0%,
  2% {
    opacity: 0;
    transform: translate3d(0, 112%, 0);
  }

  8%,
  76% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  84%,
  100% {
    opacity: 0;
    transform: translate3d(0, -42%, 0);
  }
}

@keyframes heroCycleElement {
  0%,
  3% {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }

  9%,
  74% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  83%,
  100% {
    opacity: 0;
    transform: translate3d(0, -16px, 0);
  }
}

@keyframes heroTitleRevealOnce {
  from {
    opacity: 0;
    transform: translate3d(0, 108%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroRevealOnce {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.area-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 0;
}

.first-message {
  padding: clamp(44px, 5.5vw, 72px) 0;
}

.first-message-grid {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 68px);
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
}

.first-message-copy h2 {
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.15rem, 4.4vw, 4rem);
  font-weight: 600;
  line-height: 1.02;
  max-width: 680px;
}

.first-message-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  margin-top: 18px;
  max-width: 640px;
}

.area-strip-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.area-strip a {
  background: #fff;
  border-left: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 22px 0;
}

.area-strip a:last-child {
  border-bottom: 0;
  border-right: 0;
}

.area-strip a:hover {
  background: var(--soft);
}

.area-strip span {
  color: var(--blue-700);
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.area-strip strong {
  color: var(--blue-950);
  display: block;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.35;
}

.split-grid,
.about-grid {
  align-items: start;
  display: grid;
  gap: 82px;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
}

.about {
  background: #fff;
  color: var(--ink);
  padding: 70px 0;
}

.about-grid {
  align-items: center;
  gap: clamp(34px, 4vw, 70px);
  grid-template-columns: minmax(380px, 0.78fr) minmax(520px, 1fr);
}

.about-copy {
  display: grid;
  max-width: 720px;
}

.about .section-tag {
  color: var(--blue-700);
}

.about .section-title {
  color: var(--blue-950);
  font-size: clamp(2.12rem, 3.2vw, 3.45rem);
  line-height: 1.03;
  max-width: 640px;
}

.about .section-desc {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.12vw, 1.1rem);
  max-width: 560px;
}

.proof-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  margin-top: 34px;
}

.proof-list div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 16px 0;
}

.proof-list strong {
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 600;
  line-height: 1;
}

.proof-list span {
  color: var(--muted);
  font-size: 0.94rem;
}

.about-photo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 0.72fr;
}

.about-photo-grid figure {
  background: var(--soft);
  border-radius: var(--radius);
  min-height: 210px;
  overflow: hidden;
  position: relative;
}

.about-photo-grid img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.about-photo-main {
  grid-row: span 2;
  min-height: 480px;
}

.about-photo-grid figcaption {
  background: rgba(255, 255, 255, 0.9);
  bottom: 14px;
  color: var(--blue-950);
  font-size: 0.8rem;
  font-weight: 500;
  left: 14px;
  letter-spacing: 0.08em;
  padding: 7px 10px;
  position: absolute;
  text-transform: uppercase;
}

.model {
  background: var(--soft);
  padding: 76px 0;
}

.model-grid {
  align-items: start;
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1fr);
}

.model-steps {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.model-steps article {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 26px;
}

.model-steps article:first-child {
  border-left: 1px solid var(--line);
}

.model-steps span {
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.model-steps h3,
.focus-card h3 {
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.05;
}

.model-steps h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.model-steps p {
  align-self: end;
  color: var(--muted);
  font-size: 0.98rem;
}

.about-carousel {
  background: var(--blue-950);
  box-shadow: 0 26px 70px rgba(4, 34, 70, 0.24);
  height: clamp(360px, 38vw, 480px);
  overflow: hidden;
  position: relative;
}

.about-slide {
  background: var(--slide-image) center/cover;
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.45s ease;
}

.about-slide.active {
  opacity: 1;
  z-index: 2;
}

.about-slide::after {
  background:
    linear-gradient(180deg, rgba(4, 34, 70, 0.02), rgba(4, 34, 70, 0.38)),
    linear-gradient(90deg, rgba(15, 58, 100, 0.2), rgba(15, 58, 100, 0.02) 58%, rgba(4, 34, 70, 0.16));
  content: "";
  inset: 0;
  position: absolute;
}

.about-slide-caption {
  align-items: end;
  bottom: 32px;
  color: #fff;
  display: flex;
  gap: 16px;
  left: 34px;
  position: absolute;
  z-index: 3;
}

.about-slide-caption strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  font-weight: 500;
  line-height: 0.95;
}

.about-carousel-dots {
  bottom: 28px;
  display: flex;
  gap: 10px;
  right: 34px;
  position: absolute;
  z-index: 2;
}

.about-carousel-dots span {
  background: rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  height: 5px;
  transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
  width: 5px;
}

.about-carousel-dots span.active {
  background: #fff;
  transform: scale(1.35);
  width: 22px;
}

.about-carousel-progress {
  background: rgba(255, 255, 255, 0.22);
  bottom: 0;
  height: 4px;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  z-index: 4;
}

.about-carousel-progress span {
  animation: carouselProgress 4.6s linear infinite;
  background: #fff;
  display: block;
  height: 100%;
  transform-origin: left center;
}

.property-status,
.infrastructure-card span,
.directory-grid span {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.property-showcase {
  background: var(--soft);
  overflow: hidden;
  padding: 76px 0;
}

.showcase-heading {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 34px;
}

.showcase-actions,
.feature-pair-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.property-carousel {
  position: relative;
}

.carousel-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.carousel-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-950);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.6rem;
  height: 46px;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  width: 46px;
}

.carousel-button:hover {
  background: var(--blue-950);
  border-color: var(--blue-950);
  color: #fff;
}

.property-track {
  display: grid;
  gap: 18px;
  grid-auto-columns: minmax(330px, 39%);
  grid-auto-flow: column;
  overflow-x: auto;
  padding: 2px 0 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.property-track::-webkit-scrollbar {
  display: none;
}

.property-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(15, 58, 100, 0.08);
  display: grid;
  min-height: 472px;
  overflow: hidden;
  scroll-snap-align: start;
}

.property-card img {
  aspect-ratio: 1.34 / 1;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.property-card > div {
  align-content: start;
  display: grid;
  gap: 10px;
  padding: 24px;
}

.property-status {
  color: var(--green-650);
}

.property-status-muted {
  color: var(--gold-600);
}

.property-card h3 {
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 2.35vw, 2.25rem);
  font-weight: 600;
  line-height: 1.02;
}

.property-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.property-card strong {
  color: var(--blue-950);
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 6px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.carousel-dot {
  background: rgba(15, 58, 100, 0.22);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 7px;
  padding: 0;
  transition: background 0.2s ease, width 0.2s ease;
  width: 7px;
}

.carousel-dot.active {
  background: var(--blue-700);
  width: 28px;
}

.estate-action-panel {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
  padding: 24px;
}

.estate-action-copy {
  align-self: center;
  display: grid;
  padding: clamp(22px, 3vw, 34px);
}

.estate-action-copy h3 {
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.85rem);
  font-weight: 600;
  line-height: 1.04;
  margin-top: 18px;
}

.estate-action-copy p {
  color: var(--muted);
  margin-top: 16px;
}

.foxtown-resort {
  background: #fff;
  padding: 82px 0;
}

.feature-pair-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-pair-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto;
  min-height: clamp(620px, 52vw, 760px);
  overflow: hidden;
  position: relative;
}

.feature-pair-card img {
  aspect-ratio: 16 / 11;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.feature-pair-foxtown img {
  object-position: center 42%;
}

.feature-pair-resort img {
  object-position: center;
}

.feature-pair-copy {
  display: grid;
  justify-items: start;
  max-width: 640px;
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  z-index: 1;
}

.feature-pair-copy .pill {
  background: var(--blue-100);
  color: var(--blue-700);
}

.feature-pair-copy h3 {
  color: var(--blue-950);
}

.feature-pair-copy p {
  color: var(--muted);
  max-width: 58ch;
}

.feature-pair-copy .text-link {
  color: var(--blue-700);
  margin-top: 22px;
}

.feature-pair-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.feature-pair-copy h3 {
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 3.45rem);
  font-weight: 600;
  line-height: 1;
  margin-top: 18px;
}

.feature-pair-copy p {
  color: var(--muted);
  margin: 18px 0 26px;
  max-width: 620px;
}

.feature-pair-copy .btn {
  min-width: min(100%, 220px);
}

.infrastructure {
  background: var(--soft);
  padding: 76px 0;
}

.infrastructure-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.infrastructure-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  overflow: hidden;
}

.infrastructure-card img {
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  width: 100%;
}

.bancadati-visual {
  align-items: center;
  aspect-ratio: 1.45 / 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 76% 28%, rgba(99, 151, 209, 0.22), transparent 32%),
    linear-gradient(135deg, #061a2d 0%, var(--blue-950) 52%, #183f63 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
  display: flex;
  justify-content: center;
  padding: 34px;
}

.bancadati-visual img {
  aspect-ratio: auto;
  height: auto;
  max-width: min(78%, 300px);
  object-fit: contain;
  width: auto;
}

.infrastructure-card div {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.infrastructure-card span,
.directory-grid span {
  color: var(--blue-700);
}

.infrastructure-card h3 {
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.38rem, 2vw, 1.82rem);
  font-weight: 600;
  line-height: 1.08;
}

.company-directory {
  background: #fff;
  padding: 76px 0;
}

.directory-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.directory-grid a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 22px;
}

.directory-grid a:hover {
  background: var(--soft);
}

.directory-grid strong {
  align-self: end;
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.78rem);
  font-weight: 600;
  line-height: 1.05;
}

.spm-hero {
  background: linear-gradient(135deg, #f7f9fb 0%, #ffffff 58%, #edf2f6 100%);
  min-height: 500px;
  overflow: hidden;
  padding: 158px 0 82px;
}

.spm-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.56fr);
}

.spm-hero h1,
.spm-copy h2,
.spm-services h2 {
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1;
}

.spm-hero h1 {
  font-size: clamp(4rem, 9vw, 8rem);
  margin-top: 18px;
}

.spm-hero p {
  color: var(--ink);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  max-width: 680px;
}

.spm-hero-media {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.spm-hero-media img {
  aspect-ratio: 4 / 3;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.spm-hero-media figcaption {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(214, 222, 230, 0.88);
  bottom: 0;
  color: var(--blue-950);
  font-size: 0.9rem;
  font-weight: 500;
  left: 0;
  letter-spacing: 0.01em;
  padding: 16px 18px;
  position: absolute;
  right: 0;
}

.spm-content {
  background: #fff;
  padding: 88px 0;
}

.spm-content-grid {
  display: grid;
  gap: clamp(36px, 6vw, 82px);
  grid-template-columns: minmax(0, 0.68fr) minmax(320px, 0.32fr);
}

.spm-copy h2,
.spm-services h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.spm-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 22px;
  max-width: 780px;
}

.spm-services {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 42px);
}

.spm-services h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
}

.spm-services ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin-top: 28px;
}

.spm-services li {
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding-top: 12px;
}

@keyframes carouselProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.principles {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
}

.principles article {
  background: transparent;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-left: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  padding: 34px 42px 36px;
}

.principles article:last-child {
  border-right: 0;
}

.principles h3 {
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.44rem;
  font-weight: 600;
}

.activity-card h3 {
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.44rem;
  font-weight: 600;
}

.principles p {
  color: var(--muted);
  margin-top: 8px;
}

.activity-card p,
.estate-feature-copy p,
.proof-card p {
  color: var(--muted);
  margin-top: 8px;
}

.principles p {
  margin-top: 18px;
}

.principles article,
.activity-card,
.estate-category,
.proof-card {
  opacity: 1 !important;
  transform: none !important;
}

.activities,
.proof,
.contact {
  background: var(--soft);
}

.activities {
  padding-bottom: 110px;
}

.activity-stack {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.34fr) minmax(320px, 0.66fr);
}

.activity-card {
  background: var(--blue-950);
  border: 0;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 430px;
  overflow: hidden;
  padding: 32px;
  position: relative;
  isolation: isolate;
}

.activity-card::before {
  background: var(--card-image) center 44%/cover;
  content: "";
  filter: brightness(1.03) saturate(0.96);
  inset: 0;
  position: absolute;
}

.activity-card::after {
  background:
    linear-gradient(180deg, rgba(5, 27, 43, 0.03), rgba(5, 27, 43, 0.14) 42%, rgba(5, 27, 43, 0.78)),
    linear-gradient(90deg, rgba(5, 27, 43, 0.46), rgba(5, 27, 43, 0.14) 58%, rgba(5, 27, 43, 0.04));
  content: "";
  inset: 0;
  position: absolute;
}

.activity-card > * {
  position: relative;
  z-index: 1;
}

.activity-real-estate {
  --card-image: url("assetts/photos/portfolio/centro-nord-sud-bioggio.jpg");
}

.activity-card.featured {
  background: var(--blue-950);
}

.activity-card h3,
.activity-card .text-link {
  color: #fff;
}

.activity-card p {
  color: rgba(255, 255, 255, 0.96);
  max-width: 36ch;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.52);
}

.activity-card h3 {
  font-size: clamp(1.9rem, 2.7vw, 2.85rem);
  line-height: 1.04;
  max-width: 12ch;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.52);
}

.activity-side {
  display: grid;
  gap: 16px;
}

.activity-note {
  background: var(--blue-950);
  border: 0;
  border-radius: var(--radius);
  display: grid;
  isolation: isolate;
  min-height: 207px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.activity-note::before {
  background: var(--note-image) center/cover;
  content: "";
  inset: 0;
  position: absolute;
  z-index: -2;
}

.activity-note::after {
  background:
    linear-gradient(180deg, rgba(5, 27, 43, 0.06), rgba(5, 27, 43, 0.22) 42%, rgba(5, 27, 43, 0.78)),
    linear-gradient(90deg, rgba(5, 27, 43, 0.5), rgba(5, 27, 43, 0.12) 76%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.activity-note-energy {
  --note-image: url("assetts/photos/swiss-energy-bess.jpg");
}

.activity-note-digital {
  --note-image: url("assetts/photos/tarchini-headquarter-006.webp");
}

.activity-note:hover {
  box-shadow: var(--shadow);
}

.activity-note span {
  color: var(--blue-700);
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.activity-note h3 {
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 600;
  line-height: 1;
  max-width: 10ch;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.52);
}

.activity-note p {
  align-self: end;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.98rem;
  margin-top: 24px;
  max-width: 32ch;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.52);
}

.real-estate {
  background: #fff;
}

.real-estate-header {
  align-items: end;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.58fr);
  margin-bottom: 42px;
}

.real-estate-header p {
  color: var(--muted);
  font-size: 1.03rem;
}

.estate-layout {
  display: grid;
  gap: 24px;
}

.estate-feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  overflow: hidden;
}

.estate-image {
  min-height: 410px;
}

.industrial-image {
  background: url("assetts/photos/portfolio/centro-nord-sud-bioggio.jpg") center/cover;
}

.estate-feature-copy {
  align-self: center;
  padding: 48px;
}

.estate-feature-copy h3 {
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.08;
  margin-top: 16px;
}

.estate-categories {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.estate-category {
  background: var(--blue-950);
  border: 1px solid rgba(15, 58, 100, 0.12);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 285px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.estate-category:hover {
  box-shadow: 0 18px 42px rgba(15, 58, 100, 0.16);
}

.estate-category img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.estate-category::after {
  background: linear-gradient(180deg, rgba(3, 26, 46, 0.02) 10%, rgba(3, 26, 46, 0.24) 48%, rgba(3, 26, 46, 0.78) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.estate-category span {
  color: #fff;
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.estate-category p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  margin-top: 8px;
  max-width: 28ch;
  position: relative;
  z-index: 1;
}

.estate-focus-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.focus-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  overflow: hidden;
}

.focus-card > div:last-child {
  padding: 30px;
}

.focus-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  margin-top: 16px;
}

.focus-card p {
  color: var(--muted);
  margin-top: 14px;
}

.focus-image {
  min-height: 270px;
}

.manno-image {
  background: url("assetts/photos/centri-galleria-manno.jpg") center/cover;
}

.resort-image {
  background: url("assetts/photos/source/collina-01.jpg") center/cover;
}

.manno-copy,
.asset-copy {
  align-self: center;
  padding: 46px;
}

.manno-copy .pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.manno-copy h3 {
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.04;
  margin-top: 18px;
}

.manno-copy p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 18px;
}

.manno-copy .text-link {
  color: #fff;
  margin-top: 26px;
}

.asset-copy h3 {
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.04;
  margin-top: 18px;
}

.asset-copy p {
  color: var(--muted);
  margin-top: 18px;
}

.asset-copy .text-link {
  margin-top: 26px;
}

.initiatives {
  background: #fff;
  color: var(--ink);
}

.initiatives .section-title {
  color: var(--blue-950);
}

.initiatives .section-tag {
  color: var(--blue-700);
}

.initiatives .section-desc {
  color: var(--muted);
}

.initiative-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.initiative-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  min-height: 420px;
  overflow: hidden;
}

.initiative-energy {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.initiative-tech,
.initiative-retail,
.initiative-sense {
  background: #fff;
  align-content: space-between;
  padding: 0;
  position: relative;
}

.initiative-card:hover {
  box-shadow: var(--shadow);
}

.initiative-image {
  background: url("assetts/photos/swiss-energy-bess.jpg") center/cover;
  min-height: 100%;
}

.initiative-copy {
  align-self: end;
  padding: 34px;
}

.initiative-tech .initiative-copy {
  align-self: auto;
  padding: 34px;
  position: relative;
  z-index: 1;
}

.tech-photo,
.retail-photo,
.sense-photo {
  background:
    linear-gradient(180deg, rgba(6, 42, 67, 0.06), rgba(6, 42, 67, 0.28)),
    radial-gradient(circle at 72% 38%, rgba(99, 151, 209, 0.3), rgba(99, 151, 209, 0) 30%),
    linear-gradient(135deg, #071b2d 0%, #0f3a64 46%, #274f76 100%);
  min-height: 220px;
  position: relative;
  z-index: 1;
}

.tech-photo {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 58, 100, 0.96), rgba(70, 126, 183, 0.7)),
    var(--blue-950);
  display: flex;
  justify-content: center;
}

.tech-photo img {
  height: auto;
  max-width: min(64%, 270px);
  object-fit: contain;
  width: auto;
}

.retail-photo {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(6, 42, 67, 0.02), rgba(6, 42, 67, 0.42)),
    url("assetts/photos/foxtown/foxtown-official-2023.jpg") center/cover;
  display: flex;
  justify-content: center;
}

.retail-photo img {
  background: rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(6, 42, 67, 0.22);
  height: auto;
  max-width: min(48%, 230px);
  object-fit: contain;
  padding: 10px 16px;
  width: auto;
}

.sense-photo {
  background:
    linear-gradient(180deg, rgba(6, 42, 67, 0.04), rgba(6, 42, 67, 0.32)),
    url("assetts/photos/tarchini-headquarter-006.webp") center/cover;
}

.tech-photo::after,
.retail-photo::after,
.sense-photo::after {
  background: linear-gradient(180deg, rgba(5, 27, 43, 0), rgba(5, 27, 43, 0.28));
  content: "";
  inset: 0;
  position: absolute;
}

.initiative-copy .pill {
  background: var(--blue-100);
  color: var(--blue-850);
}

.initiative-copy h3 {
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  margin-top: 16px;
}

.initiative-copy p {
  color: var(--muted);
  margin-top: 16px;
}

.initiative-copy strong {
  color: var(--blue-700);
  display: inline-flex;
  font-size: 0.92rem;
  margin-top: 24px;
}

.initiative-copy strong::after {
  content: "→";
  margin-left: 8px;
}

.tech-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tech-points span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 6px 9px;
  text-transform: uppercase;
}

.external-sites-section {
  background: var(--soft);
  padding: 72px 0;
}

.external-sites-grid {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
}

.external-sites-heading {
  position: sticky;
  top: 110px;
}

.external-sites-heading .section-title {
  font-size: clamp(2rem, 3.6vw, 3.5rem);
}

.external-links {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.external-links a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  min-height: 156px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.external-links a::before {
  background: var(--external-image) center/cover;
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.2s ease;
}

.external-links a::after {
  background: linear-gradient(180deg, rgba(4, 31, 51, 0.04), rgba(4, 31, 51, 0.52));
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.2s ease;
}

.external-link-card > * {
  position: relative;
  z-index: 1;
}

.external-foxtown {
  --external-image: url("assetts/photos/foxtown/foxtown-official-2023.jpg");
  grid-column: span 2;
}

.external-centri {
  --external-image: url("assetts/photos/centri-galleria-manno.jpg");
}

.external-resort {
  --external-image: url("assetts/photos/source/collina-pool.jpg");
}

.external-sense {
  --external-image: url("assetts/photos/tarchini-headquarter-006.webp");
}

.external-foxpark {
  --external-image: url("assetts/photos/tarchini-headquarter-005.webp");
}

.external-meeting {
  --external-image: url("assetts/photos/tarchini-headquarter-008.webp");
}

.external-storage {
  --external-image: url("assetts/photos/source/industrial-02.jpg");
  grid-column: span 2;
}

.external-links span {
  color: var(--blue-700);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.external-links strong {
  align-self: end;
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.05;
}

.external-links a:hover {
  background: var(--blue-950);
}

.external-links a:hover::before,
.external-links a:hover::after {
  opacity: 1;
}

.external-links a:hover span,
.external-links a:hover strong {
  color: #fff;
}

.proof-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.proof-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.proof-image {
  min-height: 210px;
}

.proof-industrial {
  background: url("assetts/photos/portfolio/centro-nord-sud-bioggio.jpg") center/cover;
}

.proof-residence {
  background: url("assetts/photos/source/collina-spa.jpg") center/cover;
}

.proof-energy {
  background: url("assetts/photos/source/energy-04.jpg") center/cover;
}

.proof-card > div:last-child {
  padding: 24px;
}

.proof-tech-visual {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(135deg, var(--blue-950), var(--blue-850));
  background-size: 38px 38px, 38px 38px, auto;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  min-height: 210px;
  padding: 28px;
}

.proof-tech-visual span {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.proof-tech-visual span:nth-child(2),
.proof-tech-visual span:nth-child(5) {
  opacity: 0.52;
}

.proof-card h3 {
  color: var(--blue-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 600;
  margin-top: 14px;
}

.contact-grid {
  align-items: start;
  display: grid;
  gap: 62px;
  grid-template-columns: 0.82fr 1.18fr;
}

.contact-details {
  display: grid;
  gap: 16px;
  margin-top: 38px;
}

.contact-details div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.contact-details span {
  color: var(--blue-700);
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.contact-details p,
.contact-details a {
  color: var(--muted);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--blue-950);
  font-size: 0.86rem;
  font-weight: 500;
}

.full-width {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  outline: none;
  padding: 12px 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(18, 102, 154, 0.12);
}

textarea {
  resize: vertical;
}

.full-button {
  margin-top: 22px;
  width: 100%;
}

footer {
  background: #041f33;
  color: #fff;
  padding: 62px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

.footer-brand img {
  background: transparent;
  border-radius: 0;
  filter: none;
  height: auto;
  margin-bottom: 18px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  padding: 0;
  width: 232px;
}

.footer-brand h2 {
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 2.8vw, 2.55rem);
  font-weight: 600;
  line-height: 1;
  margin: 0 0 14px;
  max-width: 420px;
  text-transform: uppercase;
}

.footer-brand p,
footer a,
.footer-bottom p {
  color: rgba(255, 255, 255, 0.64);
}

.footer-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 14px;
}

footer a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 9px;
}

footer a:hover {
  color: #fff;
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  margin-top: 46px;
  padding-top: 20px;
}

.footer-bottom div {
  display: flex;
  gap: 18px;
}

@media (max-width: 1024px) {
  .split-grid,
  .about-grid,
  .model-grid,
  .section-heading,
  .showcase-heading,
  .external-sites-grid,
  .real-estate-header,
  .estate-feature,
  .estate-action-panel,
  .manno-panel,
  .asset-panel,
  .initiative-energy,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .estate-focus-grid,
  .model-steps,
  .feature-pair-grid,
  .infrastructure-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.26);
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    padding-left: 0;
    padding-top: 22px;
  }

  .external-sites-heading {
    position: static;
  }

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

  .external-foxtown,
  .external-storage {
    grid-column: auto;
  }

  .external-links a:nth-child(2n) {
    border-right: 0;
  }

  .external-links a:last-child {
    grid-column: 1 / -1;
  }

  .activity-stack,
  .proof-grid,
  .principles {
    grid-template-columns: 1fr;
  }

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

  .initiative-energy {
    grid-column: auto;
  }

  .activity-card {
    min-height: 340px;
  }

  .principles article {
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .estate-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .area-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .manno-image,
  .asset-image,
  .focus-image,
  .initiative-image {
    min-height: 320px;
  }

  .about-carousel {
    height: auto;
    min-height: 500px;
  }

  .property-track {
    grid-auto-columns: minmax(300px, 48%);
  }

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

  .about-photo-grid {
    grid-template-columns: 1fr;
  }

  .about-photo-main,
  .about-photo-grid figure {
    min-height: 300px;
  }
}

@media (max-width: 1180px) {
  header {
    background: linear-gradient(180deg, rgba(232, 238, 243, 0.74), rgba(232, 238, 243, 0.42));
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding: 10px 0;
  }

  header.sticky,
  body.menu-open header {
    background: rgba(255, 255, 255, 0.96);
    padding: 8px 0;
  }

  .header-inner {
    gap: 16px;
  }

  .logo img {
    width: clamp(160px, 24vw, 206px);
  }

  nav {
    gap: 14px;
  }

  .nav-actions {
    gap: 10px;
  }

  .lang-selector {
    background: rgba(255, 255, 255, 0.62);
    min-height: 40px;
    padding: 7px 9px;
  }

  .menu-toggle {
    display: flex;
    justify-content: center;
    min-height: 40px;
    padding: 8px 0 8px 8px;
  }

  .menu-toggle span {
    height: 2px;
    width: 28px;
  }

  .nav-links {
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 4px;
    left: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 24px 24px 72px;
    position: absolute;
    right: 0;
    top: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: var(--ink);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--blue-700);
  }

  .has-submenu > a::after {
    display: none;
  }

  .submenu,
  .submenu.wide {
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 0;
    left: auto;
    min-width: 0;
    opacity: 1;
    padding: 6px 0 12px 14px;
    pointer-events: auto;
    position: static;
    top: auto;
    transform: none;
    visibility: visible;
    width: auto;
  }

  .submenu::before {
    display: none;
  }

  .submenu a {
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
    padding: 7px 0 7px 14px;
  }

  .submenu a:hover {
    background: transparent;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 32px, var(--max));
  }

  section {
    padding: 68px 0;
  }

  header {
    padding: 8px 0;
  }

  header.sticky,
  body.menu-open header {
    background: rgba(255, 255, 255, 0.96);
    padding: 8px 0;
  }

  .logo img {
    width: clamp(152px, 42vw, 202px);
  }

  nav {
    gap: 12px;
  }

  .lang-selector {
    background: rgba(255, 255, 255, 0.58);
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(4, 22, 36, 0.04) 0%, rgba(4, 34, 70, 0.12) 42%, rgba(4, 22, 36, 0.28) 100%),
      linear-gradient(90deg, rgba(4, 34, 70, 0.38), rgba(4, 34, 70, 0.06) 76%),
      url("assetts/videos/tarchini-hero-remotion-v9-mobile-poster.jpg") center/cover;
    min-height: 86svh;
    padding: 94px 0 28px;
  }

  .hero-video-led {
    aspect-ratio: 9 / 16;
    min-height: 0;
    padding: 0;
  }

  .hero-audio-toggle {
    bottom: 14px;
    font-size: 0.76rem;
    min-height: 38px;
    padding: 8px 12px 8px 11px;
    right: 14px;
  }

  .hero-inner {
    align-content: center;
    min-height: calc(86svh - 122px);
    text-align: left;
  }

  .hero-video-led .hero-inner {
    min-height: 0;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 11.2vw, 3.85rem);
    line-height: 0.96;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-top: 16px;
  }

  .hero-ctas {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    max-width: 310px;
  }

  .hero-ctas .btn {
    min-height: 52px;
    width: 100%;
  }

  .hero .btn-outline {
    background: #fff;
    border-color: #fff;
    color: var(--blue-950);
  }

  .hero-proof,
  .estate-categories,
  .initiative-grid,
  .area-strip-grid,
  .about-photo-grid,
  .estate-focus-grid,
  .model-steps,
    .feature-pair-grid,
    .infrastructure-grid,
  .directory-grid,
  .spm-hero-grid,
  .spm-content-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .activity-card {
    min-height: 310px;
  }

  .hero-proof {
    display: none;
  }

  .section-heading {
    gap: 18px;
  }

  .property-showcase,
  .foxtown-resort,
  .infrastructure,
  .company-directory,
  .spm-content {
    padding: 64px 0;
  }

  .spm-hero {
    min-height: auto;
    padding: 128px 0 72px;
  }

  .spm-hero-media {
    max-width: 520px;
  }

  .showcase-heading {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .showcase-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .showcase-actions .btn {
    width: 100%;
  }

  .property-track {
    grid-auto-columns: minmax(286px, 86%);
    margin-left: -2px;
    padding-bottom: 14px;
  }

  .property-card {
    min-height: 450px;
  }

  .property-card > div {
    padding: 20px;
  }

  .carousel-controls {
    justify-content: flex-start;
  }

  .estate-action-panel {
    grid-template-columns: 1fr;
  }

  .estate-action-panel {
    padding: 18px;
  }

  .feature-pair-card {
    min-height: 460px;
  }

  .area-strip a,
  .area-strip a:last-child {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
    min-height: auto;
    padding: 18px 0;
  }

  .full-width {
    grid-column: auto;
  }

  .estate-image {
    min-height: 280px;
  }

  .about-carousel,
  .manno-image,
  .asset-image,
  .focus-image,
  .initiative-image {
    min-height: 300px;
    width: 100%;
  }

  .about .section-title {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .about-carousel {
    aspect-ratio: 0.92 / 1;
    height: auto;
    max-width: 100%;
    min-width: 0;
  }

  .about-slide,
  .about-slide.active {
    transform: none;
  }

  .about-slide-caption {
    bottom: 22px;
    left: 22px;
  }

  .about-carousel-dots {
    bottom: 22px;
    right: 22px;
  }

  .about-grid > *,
  .split-grid > * {
    min-width: 0;
  }

  .estate-category {
    min-height: 255px;
  }

  .estate-feature-copy,
  .manno-copy,
  .asset-copy,
  .focus-card > div:last-child,
  .initiative-copy,
  .contact-form {
    padding: 26px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .external-links {
    grid-template-columns: 1fr;
  }

  .external-links a,
  .external-links a:nth-child(2n),
  .external-links a:last-child {
    border-right: 0;
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }

  .hero-audio-toggle {
    display: none;
  }

  .hero-video-led .hero-copy-accessible {
    clip: auto;
    clip-path: none;
    height: auto;
    overflow: visible;
    position: static;
    white-space: normal;
    width: auto;
  }
}
