:root {
  --ink: #0f1419;
  --ink-muted: #3d4654;
  --surface: #ffffff;
  --surface-2: #e8f1f8;
  --surface-3: #faf6ef;
  --teal: #0d4f52;
  --teal-hover: #0a3e40;
  --gold: #b8941e;
  --gold-soft: #f3e7c4;
  --line: rgba(15, 20, 25, 0.12);
  --shadow: 0 18px 50px rgba(15, 20, 25, 0.08);
  --radius: 14px;
  --max: 1120px;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface-2);
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-hover);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--ink);
  z-index: 100;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  left: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
  align-items: center;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.site-nav a:hover {
  color: var(--teal);
  background: rgba(13, 79, 82, 0.1);
  box-shadow: 0 1px 0 rgba(13, 79, 82, 0.12);
}

.site-nav a[aria-current="page"] {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 2px 12px rgba(13, 79, 82, 0.28);
}

.site-nav a[aria-current="page"]:hover {
  color: #fff;
  background: var(--teal-hover);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }

  body.nav-open .site-nav {
    max-height: 22rem;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.15rem;
  }

  .site-nav a {
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
  }

  .site-nav a:hover {
    background: rgba(13, 79, 82, 0.08);
  }
}

.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

.hero {
  margin-top: 1.5rem;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  position: relative;
  background: radial-gradient(120% 100% at 10% 0%, #143a3c 0%, #0a2324 55%, #061516 100%);
  color: #f4f7f8;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.25rem);
  box-shadow: var(--shadow);
}

.hero__deco,
.page-hero__deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.22;
}

.hero__content,
.hero__visual {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero__content h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 38ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  justify-self: end;
}

@media (max-width: 900px) {
  .hero__visual {
    justify-self: center;
  }
}

.hero__photo {
  width: min(320px, 100%);
  border-radius: var(--radius);
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: linear-gradient(145deg, #2a5f62, #0d4f52);
}

.hero__photo--placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.btn--primary {
  background: #1a6b6f;
  color: #fff;
}

.btn--primary:hover {
  background: #145558;
  color: #fff;
}

.btn--gold {
  background: var(--gold);
  color: #1a1406;
}

.btn--gold:hover {
  filter: brightness(1.05);
  color: #1a1406;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.section {
  margin-top: 2.5rem;
}

.section--surface {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section--cream {
  background: var(--surface-3);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  text-align: center;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.02em;
}

.section p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  max-width: 68ch;
}

.section p:last-child {
  margin-bottom: 0;
}

/* Dopo `.section p`: stessa specificità ma vince per ordine; centra i testi nelle card crema */
.section.section--cream > p,
.section.section--cream .quote {
  margin-left: auto;
  margin-right: auto;
  max-width: min(46rem, 100%);
  text-align: center;
}

.section.section--cream .pill-row {
  justify-content: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 20, 25, 0.05);
}

.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--teal);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  font-size: 0.98rem;
}

.process-steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 800px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.process-steps li {
  margin: 0;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.process-steps strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.faq-block {
  margin-top: 1.75rem;
}

.faq-block h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.faq-block details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  background: var(--surface);
}

.faq-block summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq-block details[open] summary {
  margin-bottom: 0.5rem;
}

.faq-block details p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.split-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 720px) {
  .split-cta {
    grid-template-columns: 1fr;
  }
}

.split-cta__box {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
}

.split-cta__box p {
  margin: 0;
  color: var(--ink-muted);
}

.quote {
  margin-top: 2rem;
  text-align: center;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 600;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.page-hero {
  margin-top: 1.5rem;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(120deg, #0d4f52 0%, #123a4a 100%);
  color: #f4f7f8;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.page-hero__text {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0.75rem auto 0;
  max-width: 52ch;
  opacity: 0.92;
}

.page-hero--split {
  text-align: left;
  display: grid;
  grid-template-columns: 1fr minmax(200px, min(46vw, 400px));
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.75rem);
}

.page-hero.page-hero--split > .page-hero__text p {
  margin-left: 0;
  margin-right: 0;
}

.page-hero--split .page-hero__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.page-hero--split .page-hero__photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 38%;
}

@media (max-width: 720px) {
  .page-hero--split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-hero.page-hero--split > .page-hero__text p {
    margin-left: auto;
    margin-right: auto;
  }

  .page-hero--split .page-hero__photo {
    max-width: min(100%, 28rem);
    margin: 0 auto;
    order: -1;
  }
}

/* Card larga come il layout: colonna di lettura centrata, testo e titoli allineati a sinistra */
.layout > article.section.section--surface.prose {
  text-align: left;
}

/* Una sola colonna per titoli, testo e figure (niente figure più larga del testo) */
.layout > article.section.section--surface.prose > p,
.layout > article.section.section--surface.prose > ul,
.layout > article.section.section--surface.prose > h2,
.layout > article.section.section--surface.prose > blockquote,
.layout > article.section.section--surface.prose > figure.prose-slide {
  max-width: min(52rem, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.layout > article.section.section--surface.prose > blockquote.pull-quote {
  text-align: center;
}

/* Box chiusura (cream) resta centrato */
.layout > article.section.section--surface.prose > .section.section--cream {
  text-align: center;
}

.prose {
  margin-top: 1.75rem;
}

.prose h2 {
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.2rem;
  color: var(--ink-muted);
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose-slide {
  margin: 1.75rem 0;
  border-radius: var(--radius);
  overflow: visible;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.prose-slide__trigger {
  display: block;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  cursor: zoom-in;
}

.prose-slide__trigger:focus-visible {
  outline-offset: 4px;
}

.prose-slide__crop {
  display: block;
  overflow: visible;
  border-radius: calc(var(--radius) - 3px);
}

.prose-slide__crop img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.prose-slide__hint {
  margin: 0;
  padding: 0.5rem 0.75rem 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
}

.prose-slide__hint-label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.prose-slide__hint-meta {
  font-style: normal;
  text-decoration: none;
}

.prose .pull-quote {
  margin: 1.5rem auto;
  padding: 1.1rem 1.25rem 1.15rem;
  max-width: min(52rem, 100%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-muted);
  font-style: italic;
  box-shadow: 0 6px 24px rgba(15, 20, 25, 0.06);
}

.prose .pull-quote p {
  margin: 0;
  max-width: none;
}

.image-lightbox {
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  width: 100%;
  max-width: 100vw;
  max-height: 100vh;
  height: 100%;
}

.image-lightbox__scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 25, 0.88);
  cursor: zoom-out;
}

.image-lightbox__content {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.25rem 1rem 1.5rem;
  pointer-events: none;
}

.image-lightbox__content img,
.image-lightbox__close {
  pointer-events: auto;
}

.image-lightbox__content img {
  max-width: min(98vw, 2560px);
  max-height: min(94vh, 2000px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.image-lightbox__close {
  position: fixed;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  width: 2.65rem;
  height: 2.65rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.image-lightbox__close:hover {
  background: #fff;
}

body.image-lightbox-open {
  overflow: hidden;
}

.site-footer {
  margin-top: 3rem;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
}

.site-footer__build {
  max-width: var(--max);
  margin: 1.25rem auto 0;
  padding: 0 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.site-footer__build:empty {
  display: none;
}

.site-footer__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer-legal {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-actions .btn {
  width: 100%;
  text-align: center;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.social-row a {
  display: inline-flex;
  width: 2.65rem;
  height: 2.65rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--teal);
}

.social-row a:hover {
  border-color: var(--teal);
  color: var(--teal-hover);
  background: rgba(13, 79, 82, 0.06);
}

/* Colori brand (icone = currentColor sui path SVG); niente translate / line-height: centraggio solo flex */
.social-row a[data-social="linkedin"] {
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.28);
}

.social-row a[data-social="linkedin"]:hover {
  color: #004182;
  border-color: rgba(0, 65, 130, 0.45);
  background: rgba(10, 102, 194, 0.08);
}

.social-row a[data-social="facebook"] {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.28);
}

.social-row a[data-social="facebook"]:hover {
  color: #0e5ec9;
  border-color: rgba(24, 119, 242, 0.45);
  background: rgba(24, 119, 242, 0.08);
}

.social-row a[data-social="instagram"] {
  color: #e4405f;
  border-color: rgba(228, 64, 95, 0.3);
}

.social-row a[data-social="instagram"]:hover {
  color: #c1355a;
  border-color: rgba(228, 64, 95, 0.45);
  background: rgba(228, 64, 95, 0.08);
}

.social-row a[data-social="substack"] {
  color: #ff6719;
  border-color: rgba(255, 103, 25, 0.35);
}

.social-row a[data-social="substack"]:hover {
  color: #e55a12;
  border-color: rgba(255, 103, 25, 0.5);
  background: rgba(255, 103, 25, 0.1);
}

.social-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.footer-tagline p {
  margin: 0 0 0.5rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.footer-partner {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-partner__logo {
  display: inline-block;
  margin-bottom: 0.65rem;
}

.footer-partner__logo img {
  display: block;
  width: auto;
  max-width: min(240px, 100%);
  height: auto;
  max-height: 56px;
}

.footer-partner__text {
  margin: 0;
}

.footer-partner__text a {
  font-weight: 600;
}

.footer-partner strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.contact-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-top: 1.75rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.embed-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 520px;
  background: var(--surface-2);
}

.embed-wrap iframe {
  width: 100%;
  height: 720px;
  border: 0;
}

.note {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 0.75rem;
}
