:root {
  --slate: #39474e;
  --slate-deep: #26383f;
  --slate-soft: #5b6c72;
  --teal: #2d6b68;
  --teal-light: #a9dfd2;
  --blue: #15507e;
  --green: #387f65;
  --cream: #f1eee2;
  --warm-white: #f7f8f6;
  --line: rgba(57, 71, 78, 0.16);
  --shadow: 0 24px 60px rgba(38, 56, 63, 0.14);
  --radius: 18px;
  --wrapper: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--slate);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--cream);
  color: var(--slate-deep);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 12px 28px;
  background: rgba(38, 56, 63, 0.95);
  color: var(--warm-white);
  box-shadow: 0 4px 18px rgba(25, 35, 39, 0.12);
  backdrop-filter: blur(12px);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--warm-white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark small {
  color: var(--teal-light);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 22px;
}

.main-nav a,
.site-footer a {
  color: rgba(247, 248, 246, 0.78);
  font-size: 12px;
  text-decoration: none;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--warm-white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button--small {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 11px;
}

.button--outline {
  border-color: rgba(169, 223, 210, 0.7);
  color: var(--teal-light);
}

.button--outline:hover {
  background: rgba(169, 223, 210, 0.1);
}

.button--primary {
  background: var(--teal-light);
  color: var(--slate-deep);
}

.button--primary:hover {
  background: var(--cream);
}

.button--dark {
  background: var(--slate-deep);
  color: var(--warm-white);
}

.button--dark:hover {
  background: var(--teal);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--teal-light);
}

.hero {
  position: relative;
  display: flex;
  min-height: min(720px, calc(100vh - 72px));
  align-items: center;
  overflow: hidden;
  background: var(--slate-deep);
  color: var(--warm-white);
}

.hero-media,
.hero-wash,
.edge-image,
.edge-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img,
.edge-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-wash {
  background: linear-gradient(90deg, rgba(38, 56, 63, 0.96) 0%, rgba(38, 56, 63, 0.82) 43%, rgba(38, 56, 63, 0.26) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 94px;
  padding-bottom: 122px;
}

.hero-positioning {
  max-width: 540px;
  margin: 0 0 14px;
  color: var(--cream);
  font-size: clamp(18px, 2.1vw, 26px);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 600;
  line-height: 0.98;
}

h1 em {
  color: var(--teal-light);
  font-style: normal;
}

.hero-lede {
  max-width: 590px;
  margin-bottom: 32px;
  color: rgba(247, 248, 246, 0.82);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link--light {
  color: var(--teal-light);
}

.hero-signal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 40px 0 0;
  color: rgba(247, 248, 246, 0.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.signal-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-light);
  box-shadow: 0 0 0 5px rgba(169, 223, 210, 0.14);
}

.hero-meta {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  color: rgba(247, 248, 246, 0.56);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.section {
  padding: 110px 0;
}

.section--light {
  background-color: var(--warm-white);
  background-image: linear-gradient(rgba(247, 248, 246, 0.86), rgba(247, 248, 246, 0.92)), url("assets/section-filiera-v1.png");
  background-position: center;
  background-size: cover;
}

.section--cream {
  background-color: var(--cream);
  background-image: linear-gradient(rgba(241, 238, 226, 0.78), rgba(241, 238, 226, 0.88)), url("assets/section-entita-v1.png");
  background-position: center;
  background-size: cover;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-intro--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: end;
  gap: 56px;
  max-width: none;
}

h2 {
  margin-bottom: 0;
  color: var(--slate-deep);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.02;
}

.section-lede {
  max-width: 520px;
  margin: 0 0 4px auto;
  color: var(--slate-soft);
  font-size: 18px;
}

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

.service-card {
  min-height: 194px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
}

.service-number,
.entity-index {
  display: block;
  margin-bottom: 22px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.service-card h3 {
  margin-bottom: 10px;
  color: var(--slate-deep);
  font-size: 22px;
  line-height: 1.05;
}

.service-card p,
.entity-card p {
  margin-bottom: 0;
  color: var(--slate-soft);
  font-size: 14px;
}

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

.entity-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid rgba(57, 71, 78, 0.18);
  border-radius: var(--radius);
  background: var(--warm-white);
  box-shadow: 0 12px 32px rgba(57, 71, 78, 0.05);
}

.entity-card--sun {
  background: var(--slate);
  color: var(--warm-white);
}

.entity-card--lc {
  background: #ffffff;
}

.entity-card--sun h3,
.entity-card--sun .entity-title,
.entity-card--sun p {
  color: var(--warm-white);
}

.entity-card--sun .entity-index,
.entity-card--sun .entity-tag {
  color: var(--cream);
}

.entity-card--big5 {
  background: #e0efeb;
}

.entity-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.entity-tag {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.entity-card h3 {
  margin-bottom: 10px;
  color: var(--slate-deep);
  font-size: 32px;
  line-height: 1;
}

.entity-logo-heading {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px !important;
}

.entity-logo {
  display: block;
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
}

.entity-logo--lc {
  width: 230px;
}

.entity-logo--sun {
  width: 250px;
}

.entity-logo--big5 {
  width: 170px;
}

.entity-title {
  min-height: 46px;
  margin-bottom: 18px !important;
  color: var(--teal) !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.entity-card .text-link {
  margin-top: auto;
  padding-top: 32px;
}

.entity-card--sun h3 {
  color: var(--warm-white);
}

.entity-card--sun .entity-title {
  color: var(--teal-light) !important;
}

.entity-card--sun > p:not(.entity-title) {
  color: rgba(247, 248, 246, 0.78);
}

.entity-card--sun .text-link {
  color: var(--teal-light);
}

.method-section {
  padding: 112px 0;
  background-color: var(--slate-deep);
  background-image: linear-gradient(rgba(38, 56, 63, 0.78), rgba(38, 56, 63, 0.88)), url("assets/section-method-v1.png");
  background-position: center;
  background-size: cover;
  color: var(--warm-white);
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 80px;
}

.method-copy h2 {
  margin-bottom: 26px;
  color: var(--warm-white);
}

.method-copy p {
  max-width: 550px;
  color: rgba(247, 248, 246, 0.72);
}

.method-copy .method-claim {
  color: var(--teal-light);
  font-size: 21px;
  line-height: 1.25;
}

.method-copy .text-link {
  margin-top: 16px;
}

.method-flow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-flow li {
  min-height: 176px;
  padding: 24px;
  border: 1px solid rgba(169, 223, 210, 0.34);
  border-radius: var(--radius);
  background: rgba(45, 107, 104, 0.18);
}

.method-flow li:nth-child(2),
.method-flow li:nth-child(3) {
  background: rgba(247, 248, 246, 0.08);
}

.method-flow span {
  display: block;
  margin-bottom: 28px;
  color: var(--teal-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.method-flow strong {
  display: block;
  margin-bottom: 5px;
  color: var(--warm-white);
  font-size: 22px;
  text-transform: uppercase;
}

.method-flow small {
  color: rgba(247, 248, 246, 0.62);
  font-size: 12px;
}

.edge-section {
  position: relative;
  overflow: hidden;
  background: var(--slate);
  color: var(--warm-white);
}

.edge-image img {
  opacity: 0.68;
}

.edge-overlay {
  background: linear-gradient(90deg, rgba(38, 56, 63, 0.96), rgba(38, 56, 63, 0.8) 48%, rgba(38, 56, 63, 0.58));
}

.edge-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 80px;
  padding-top: 114px;
  padding-bottom: 114px;
}

.edge-layout h2 {
  color: var(--warm-white);
}

.edge-subtitle {
  margin-top: 24px;
  color: var(--teal-light);
  font-size: 20px;
  font-weight: 700;
}

.edge-detail {
  align-self: end;
  padding: 30px;
  border: 1px solid rgba(169, 223, 210, 0.32);
  border-radius: var(--radius);
  background: rgba(38, 56, 63, 0.76);
}

.edge-detail > p:first-child {
  color: rgba(247, 248, 246, 0.82);
  font-size: 17px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 28px 0;
}

.focus-grid span {
  padding: 10px 5px;
  border: 1px solid rgba(169, 223, 210, 0.32);
  color: var(--teal-light);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.1em;
}

.boundary-note {
  margin-bottom: 26px;
  color: rgba(247, 248, 246, 0.62);
  font-size: 12px;
}

.contact-section {
  padding-top: 114px;
  padding-bottom: 114px;
  background-image: linear-gradient(rgba(247, 248, 246, 0.82), rgba(247, 248, 246, 0.92)), url("assets/section-contatti-v1.png");
  background-position: center;
  background-size: cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 84px;
  align-items: start;
}

.contact-intro h2 {
  margin-bottom: 25px;
  font-size: clamp(36px, 4.6vw, 58px);
}

.contact-intro > p {
  max-width: 460px;
  color: var(--slate-soft);
  font-size: 17px;
}

.contact-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.lead-funnel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.funnel-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.funnel-progress__label {
  min-width: 38px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.funnel-progress__track {
  height: 4px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ebe7;
}

.funnel-progress__track span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 220ms ease;
}

.funnel-step {
  animation: funnel-in 260ms ease both;
}

.funnel-step[hidden] {
  display: none;
}

@keyframes funnel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.funnel-kicker {
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.funnel-step h3 {
  margin-bottom: 10px;
  color: var(--slate-deep);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.04;
}

.funnel-prompt {
  margin-bottom: 26px;
  color: var(--slate-soft);
  font-size: 16px;
}

.funnel-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.funnel-choice {
  display: grid;
  min-height: 104px;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(57, 71, 78, 0.18);
  border-radius: 14px;
  background: var(--warm-white);
  color: var(--slate-deep);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.funnel-choice:hover,
.funnel-choice.is-selected {
  border-color: var(--teal);
  background: #e8f1ec;
  transform: translateY(-2px);
}

.funnel-choice strong {
  font-size: 15px;
}

.funnel-choice span {
  color: var(--slate-soft);
  font-size: 12px;
  line-height: 1.4;
}

.funnel-choice-grid--compact .funnel-choice {
  min-height: 72px;
}

.funnel-alternatives {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--slate-soft);
  font-size: 12px;
}

.funnel-alternatives > div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.funnel-link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.funnel-link-button--quiet {
  color: var(--slate-soft);
  font-weight: 700;
}

.funnel-link-button:hover {
  color: var(--slate-deep);
}

.funnel-fields {
  display: grid;
  gap: 16px;
}

.funnel-fields--direct {
  margin-bottom: 2px;
}

.funnel-message-field textarea {
  min-height: 88px;
  resize: vertical;
}

.funnel-fields label {
  display: grid;
  gap: 7px;
}

.funnel-fields label > span {
  color: var(--slate-soft);
  font-size: 12px;
  font-weight: 700;
}

.funnel-progress[hidden],
.funnel-step[hidden],
.funnel-fields[hidden],
.funnel-message-field[hidden] {
  display: none;
}

.funnel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
}

.funnel-back {
  border: 0;
  background: none;
  color: var(--slate-soft);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.funnel-back:hover {
  color: var(--slate-deep);
}

.funnel-next:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.funnel-consent {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  color: var(--slate-soft);
  font-size: 12px;
}

.funnel-consent input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
}

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

.form-grid label {
  display: grid;
  gap: 7px;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-grid label > span {
  color: var(--slate-soft);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(57, 71, 78, 0.24);
  border-radius: 8px;
  background: var(--warm-white);
  color: var(--slate-deep);
  font: inherit;
  font-size: 14px;
}

input,
select {
  min-height: 44px;
  padding: 8px 11px;
}

textarea {
  padding: 11px;
  resize: vertical;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0;
  color: var(--slate-soft);
  font-size: 12px;
}

.consent-check input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
}

.form-disclaimer {
  margin: 12px 0 0;
  color: var(--slate-soft);
  font-size: 11px;
}

.form-status {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.form-status--success {
  background: #e0efeb;
  color: var(--teal);
}

.form-status--error {
  background: #f7e5e2;
  color: #8f352d;
}

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

#lead-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.site-footer {
  background: var(--slate-deep);
  color: rgba(247, 248, 246, 0.66);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  font-size: 12px;
}

.wordmark--footer {
  color: var(--warm-white);
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .site-header {
    justify-content: space-between;
  }

  .section-intro--split,
  .method-layout,
  .edge-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-lede {
    margin-left: 0;
  }

  .method-flow {
    max-width: 700px;
  }
}

@media (max-width: 680px) {
  .wrapper {
    width: min(calc(100% - 32px), var(--wrapper));
  }

  .site-header {
    min-height: 62px;
    padding: 10px 16px;
  }

  .site-header .button {
    min-height: 34px;
    padding: 7px 12px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 72px;
    padding-bottom: 112px;
  }

  .hero-wash {
    background: linear-gradient(90deg, rgba(38, 56, 63, 0.96), rgba(38, 56, 63, 0.7));
  }

  .hero-meta {
    justify-content: flex-start;
    gap: 10px;
    font-size: 8px;
  }

  .service-grid,
  .entity-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .method-section,
  .contact-section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .method-flow {
    grid-template-columns: 1fr;
  }

  .method-flow li {
    min-height: 132px;
  }

  .method-flow span {
    margin-bottom: 12px;
  }

  .edge-layout {
    padding-top: 78px;
    padding-bottom: 78px;
  }

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

  .lead-funnel {
    padding: 20px;
  }

  .funnel-choice-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    min-height: 126px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
