/* ============================================
   STARTAS — Global Styles
   ============================================ */

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --navy-dark: #051026;
  --blue-electric: #1e56f0;
  --blue-cta: #0a3eff;
  --text-dark: #0b1530;
  --text-muted: #5c6680;
  --bg-alt: #f8f8f8;
  --white: #ffffff;
  --border-light: rgba(11, 21, 48, 0.12);

  /* Typography */
  --font-display: 'Inter Tight', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Clamp sizes */
  --h1: clamp(48px, 5.7vw, 86px);
  --h2-hero: clamp(32px, 5vw, 80px);
  --h2: clamp(28px, 3.2vw, 50px);
  --h2-pivot: clamp(28px, 3.2vw, 46.3px);
  --h3: clamp(20px, 2vw, 29px);
  --h4: clamp(18px, 2vw, 28.8px);
  --label: clamp(10px, 0.8vw, 12px);
  --body-lg: clamp(15px, 1.2vw, 19px);
  --body: clamp(14px, 1vw, 16.5px);
  --body-sm: clamp(13px, 0.95vw, 15px);
  --section-pad-v: clamp(80px, 9.7vw, 140px);
  --section-pad-h: clamp(22px, 9vw, 145px);
  --max-w: 1950px;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--navy-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.wp-site-blocks {
  background: transparent;
}

/* WordPress adds layout wrappers around blocks; keep the original full-width rhythm. */
.wp-site-blocks,
.wp-block-group,
main.page-shell {
  margin: 0;
  padding: 0;
}

.admin-bar .nav {
  top: 32px;
}

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

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--section-pad-h);
  padding-right: var(--section-pad-h);
}

/* Text utilities */
.text-muted { color: var(--text-muted); }
.text-dark { color: var(--text-dark); }
.text-blue { color: var(--blue-electric); }
.text-muted-dark { color: rgba(0, 0, 0, 0.62); }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 248, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.nav-scrolled {
  box-shadow: 0 1px 0 var(--border-light);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--section-pad-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
}

.nav-logo svg,
.nav-logo img {
  display: block;
  height: 40px;
  width: auto;
}

.startas-logo-mark {
  display: inline-block;
  border: 1px solid #1e437f;
  padding: 3px 7px 4px;
  color: #1e437f;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 15.8px;
  font-weight: 400;
  letter-spacing: -0.48px;
  color: var(--text-dark);
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.7;
}

.nav-cta {
  background: var(--blue-cta);
  color: var(--white) !important;
  padding: 10px 22px;
  font-weight: 500 !important;
  transition: opacity 0.2s !important;
}

.nav-links > li:last-child > a {
  background: var(--blue-cta);
  color: var(--white) !important;
  padding: 10px 22px;
  font-weight: 500 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover,
.nav-links > li:last-child > a:hover {
  opacity: 0.9 !important;
}

/* Language switcher (Polylang) — monospace link to the OTHER language (ITA/ENG).
   order:1 places it after the CTA visually, while it stays before the CTA in
   the DOM so the CTA keeps its :last-child blue-button style. */
.nav-lang-item {
  list-style: none;
  order: 1;
}

.nav-lang {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.nav-lang-link {
  color: var(--text-dark);
  opacity: 0.65;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-lang-link:hover {
  opacity: 1;
}

.nav-lang-sep {
  color: var(--text-dark);
  opacity: 0.25;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 92svh;
  background: linear-gradient(159deg, #0a2150 0%, #081a3e 45%, #051026 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

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

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(159deg, rgba(10, 33, 80, 0.55) 0%, rgba(8, 26, 62, 0.6) 45%, rgba(5, 16, 38, 0.7) 100%),
    radial-gradient(ellipse at 80% 15%, rgba(61, 123, 255, 0.3) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 85%, rgba(30, 86, 240, 0.2) 0%, transparent 55%);
  pointer-events: none;
}

.hero-image-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  background: linear-gradient(180deg, rgba(10, 33, 80, 0.3) 0%, rgba(5, 16, 38, 0.6) 100%);
  opacity: 0.4;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 340px var(--section-pad-h) 90px;
}

.hero-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.15px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--h1);
  font-weight: 500;
  color: var(--white);
  letter-spacing: -2.58px;
  line-height: 1.058;
  margin-bottom: 28px;
}

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

.hero-title-inner {
  display: block;
  will-change: transform;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--body-lg);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  max-width: 460px;
  line-height: 1.65;
  margin-bottom: 40px;
  opacity: 0;
}

.hero-ctas {
  display: none;
}

/* Scroll indicator — bottom right of hero */
.hero-scroll {
  position: absolute;
  right: var(--section-pad-h);
  bottom: 90px;
  z-index: 3;
  display: block;
  width: 66px;
  height: 66px;
  line-height: 0;
}

.hero-scroll-svg {
  display: block;
  overflow: visible;
}

/* The border draws itself on load */
.hero-scroll-border {
  stroke-dasharray: 258.4;
  stroke-dashoffset: 258.4;
  animation: hero-scroll-draw 1.6s ease-out 0.6s forwards;
}

@keyframes hero-scroll-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* The arrow gently nudges down to hint scrolling */
.hero-scroll-arrow {
  animation: hero-scroll-nudge 2.4s ease-in-out 2.2s infinite;
}

@keyframes hero-scroll-nudge {
  0%, 70%, 100% {
    transform: translateY(0);
  }
  82% {
    transform: translateY(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-border {
    stroke-dashoffset: 0;
    animation: none;
  }
  .hero-scroll-arrow {
    animation: none;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: none;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  padding: 16px 28px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-electric);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-sm {
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 15.3px;
  font-weight: 400;
}

.btn-arrow {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ============================================
   SECTION LABEL
   ============================================ */
.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.44px;
  color: var(--blue-electric);
  opacity: 0.6;
  margin-bottom: 32px;
}

.section-label-muted {
  color: var(--text-muted);
}

/* ============================================
   CHI SIAMO + PIVOT
   ============================================ */
.chi-siamo,
.pivot {
  --about-pad-h: clamp(24px, 11.15vw, 214px);
  background: var(--white);
  position: relative;
}

.chi-siamo {
  padding-top: clamp(120px, 9.5vw, 182px);
  padding-bottom: 0;
  overflow: hidden;
}

.chi-siamo-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  mask-image: linear-gradient(180deg, #000 0%, #000 44%, rgba(0, 0, 0, 0.72) 68%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 44%, rgba(0, 0, 0, 0.72) 68%, transparent 100%);
}

.chi-siamo .container,
.pivot .container {
  position: relative;
  z-index: 1;
  padding-left: var(--about-pad-h);
  padding-right: var(--about-pad-h);
}

.chi-siamo-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 3vw, 54px);
  font-weight: 500;
  letter-spacing: -2.2px;
  line-height: 1.18;
  max-width: min(100%, 1180px);
  margin-bottom: clamp(56px, 5vw, 74px);
  color: #6a728c;
}

.chi-heading-line {
  display: block;
  overflow: hidden;
}

.chi-heading-inner {
  display: inline-block;
  will-change: transform;
}

@media (min-width: 1181px) {
  .chi-heading-line:not(.chi-heading-line--auto) .chi-heading-inner {
    white-space: nowrap;
  }
}

.chi-heading-line--auto {
  overflow: visible;
}

.chi-heading-line--auto .chi-heading-inner {
  display: inline;
  white-space: normal;
}

.chi-siamo-divider {
  border-top: 1px solid rgba(11, 21, 48, 0.14);
}

.pivot {
  padding-top: clamp(46px, 3.4vw, 62px);
  padding-bottom: clamp(70px, 6.5vw, 124px);
  overflow: hidden;
}

.about-pivot-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, clamp(520px, 40vw, 760px)) minmax(420px, 640px);
  column-gap: clamp(52px, 4vw, 76px);
  align-items: center;
}

.pivot-svg-bg {
  position: relative;
  left: calc(-1 * var(--about-pad-h));
  top: 0;
  width: calc(100% + var(--about-pad-h));
  height: clamp(360px, calc(var(--pivot-copy-height, 480px) * 1.05), 760px);
  aspect-ratio: auto;
  z-index: 0;
  pointer-events: none;
}

.pivot-lines-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.about-pivot-copy {
  grid-column: 2;
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.about-pivot-copy p {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 21px);
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: -0.18px;
  color: #6a728c;
}

.about-pivot-copy p + p {
  margin-top: clamp(38px, 3vw, 54px);
}

/* ============================================
   BANNER
   ============================================ */
.banner {
  position: relative;
  height: 594px;
  background: linear-gradient(103.89deg, #1b3fe8 0%, #1e56f0 38%, #3d7bff 72%, #5e96ff 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--section-pad-h);
}

.banner-quote p {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -1.05px;
  line-height: 1.4;
  max-width: 880px;
}

/* Parallax gradient shapes in the banner background */
.banner-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.banner-rect {
  position: absolute;
  display: block;
  will-change: transform;
  filter: blur(40px);
}

.banner-rect-1 {
  top: -180px;
  right: -120px;
  width: 720px;
  height: 560px;
  background: radial-gradient(ellipse at 40% 40%, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
}

.banner-rect-2 {
  bottom: -260px;
  right: 22%;
  width: 620px;
  height: 620px;
  background: radial-gradient(ellipse at center, rgba(94, 150, 255, 0.35) 0%, transparent 68%);
}

.banner-rect-3 {
  top: 8%;
  right: -160px;
  width: 560px;
  height: 460px;
  background: radial-gradient(ellipse at 60% 50%, rgba(13, 33, 161, 0.5) 0%, transparent 70%);
}

.banner-rect-4 {
  bottom: -200px;
  left: -140px;
  width: 640px;
  height: 540px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 72%);
}

.banner-highlight {
  color: var(--white);
}

.banner-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 400px;
  height: 100%;
  background: linear-gradient(180deg, rgba(30, 86, 240, 0.5) 0%, rgba(27, 63, 232, 0.8) 100%);
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================
   CASE STUDY
   ============================================ */
.case-study {
  background: var(--white);
  padding-top: var(--section-pad-v);
  padding-bottom: var(--section-pad-v);
}

.case-study-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: start;
}

.case-study-left {
  position: sticky;
  top: 100px;
}

.case-study-logo {
  margin-bottom: 24px;
}

.case-study-heading {
  font-family: var(--font-display);
  font-size: var(--h2);
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.cs-heading-line {
  display: block;
  overflow: hidden;
}

.cs-heading-inner {
  display: block;
  will-change: transform;
}

.case-study-desc {
  font-size: var(--body);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.case-study-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--blue-electric);
  margin-bottom: 32px;
  transition: opacity 0.2s;
}

.case-study-link:hover {
  opacity: 0.7;
}

.case-study-link .btn-arrow {
  font-family: var(--font-mono);
  font-weight: 700;
}

.case-study-credits {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-study-credits span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-muted);
}

/* Timeline */
.case-study-timeline {
  border-top: 1px solid var(--border-light);
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 28px 0 33px;
  border-bottom: 1px solid var(--border-light);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--blue-electric);
  text-transform: uppercase;
  letter-spacing: 0.96px;
  padding-top: 4px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.37px;
  margin-bottom: 8px;
}

.timeline-text {
  font-size: var(--body-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: #071633;
  padding: var(--section-pad-v) 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.cta-section-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: var(--h2-hero);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -3.2px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.cta-heading-line {
  display: block;
  overflow: hidden;
}

.cta-heading-inner {
  display: block;
  will-change: transform;
}

.cta-heading .text-blue {
  color: var(--blue-electric);
}

.cta-subtitle {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -1.28px;
  margin-bottom: 64px;
  max-width: 600px;
}

.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cta-card {
  border: 1px solid #173670;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-card:hover {
  background-color: var(--blue-electric);
  border-color: var(--blue-electric);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(30, 86, 240, 0.3);
}

.cta-card:hover .cta-card-label {
  color: rgba(255, 255, 255, 0.85);
}

.cta-card-label {
  font-family: var(--font-mono);
  font-size: 17.9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.62);
}

.cta-card-value {
  font-family: var(--font-display);
  font-size: var(--h3);
  font-weight: 500;
  color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
/* The page content sits above the footer and scrolls over it,
   revealing the footer pinned at the very bottom. */
.page-shell {
  position: relative;
  z-index: 1;
  background: var(--white);
  margin-bottom: 420px !important; /* matches footer height — the reveal window */
}

/* Generic Gutenberg page: WordPress supplies the content, the theme supplies
   the same breathing room and readable column used by the site sections. */
.page-content-shell {
  min-height: 100vh;
  padding: clamp(140px, 13vw, 190px) var(--section-pad-h) var(--section-pad-v) !important;
}

.page-content-shell > .wp-block-post-content {
  width: min(860px, 100%);
  margin: 0 auto;
}

.page-content-shell .page-content-title {
  width: min(860px, 100%);
  margin: 0 auto 34px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text-dark);
}

.page-content-shell .wp-block-post-content > .wp-block-heading,
.page-content-shell .wp-block-post-content > h1 {
  margin: 0 0 34px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text-dark);
}

.page-content-shell .wp-block-post-content > h2,
.page-content-shell .wp-block-post-content > .wp-block-heading:not(:first-child) {
  margin: 48px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

.page-content-shell .wp-block-post-content p,
.page-content-shell .wp-block-post-content li {
  font-family: var(--font-body);
  font-size: var(--body-lg);
  line-height: 1.75;
  color: var(--text-muted);
}

.page-content-shell .wp-block-post-content p + p {
  margin-top: 18px;
}

.page-content-shell .wp-block-post-content ul,
.page-content-shell .wp-block-post-content ol {
  margin: 18px 0 0 1.2em;
  padding: 0;
}

.page-content-shell .wp-block-post-content li + li {
  margin-top: 8px;
}

.page-content-shell .wp-block-post-content strong {
  color: var(--text-dark);
  font-weight: 600;
}

.text-page-shell {
  min-height: 100vh;
  background: var(--bg-alt);
  padding: clamp(130px, 12vw, 180px) var(--section-pad-h) clamp(90px, 9vw, 130px) !important;
}

.text-page-shell .text-page-card {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px);
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: 0 24px 70px rgba(5, 16, 38, 0.08);
}

.text-page-shell .text-page-card > *,
.text-page-shell .privacy-policy-section > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.text-page-shell .privacy-policy-section {
  padding: 0;
  background: transparent;
}

.text-page-shell h1,
.text-page-shell .wp-block-heading:first-child {
  margin: 0 auto 32px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text-dark);
}

.text-page-shell h2 {
  margin-top: 44px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

.text-page-shell p,
.text-page-shell li {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.78;
  color: var(--text-muted);
}

.text-page-shell p + p {
  margin-top: 18px;
}

.text-page-shell ul,
.text-page-shell ol {
  margin: 18px auto 0;
  padding-left: 1.25em;
}

.text-page-shell li + li {
  margin-top: 8px;
}

.text-page-shell strong {
  color: var(--text-dark);
  font-weight: 600;
}

.footer {
  background: var(--navy-dark);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  padding: 30px 0 0;
  height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 24px;
}

.footer-watermark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6%;
  height: 78%;
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  user-select: none;
}

.footer-watermark svg {
  display: block;
  width: 108%;
  height: 100%;
  margin-left: -4%;
}

.footer-watermark svg path {
  fill: currentColor;
}

.footer-bar {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-info,
.footer-legal,
.footer-legal a,
.footer-privacy-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal a,
.footer-privacy-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.footer-legal a:hover,
.footer-privacy-link:hover {
  opacity: 0.8;
}

.privacy-policy-section {
  background: var(--white);
  color: var(--text-dark);
  padding: clamp(120px, 14vw, 190px) var(--section-pad-h) var(--section-pad-v);
}

.privacy-policy-section > * {
  max-width: 860px;
}

.privacy-policy-section h1 {
  margin: 0 0 34px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 600;
  line-height: 0.98;
  color: var(--text-dark);
}

.privacy-policy-section h2 {
  margin: 46px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text-dark);
}

.privacy-policy-section p,
.privacy-policy-section li {
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.75;
  color: var(--text-muted);
}

.privacy-policy-section ul {
  margin: 16px 0 0 1.2em;
  padding: 0;
}

.privacy-policy-section li + li {
  margin-top: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* From tablet down, the fan becomes a contained strip above the text so the
   section keeps the same idea without squeezing the copy. */
@media (max-width: 1180px) {
  .chi-siamo,
  .pivot {
    --about-pad-h: var(--section-pad-h);
  }

  .about-pivot-grid {
    min-height: auto;
    /* minmax(0, 1fr): keep the full-bleed 100vw lines from stretching the
       column and pushing the copy off the right edge. */
    grid-template-columns: minmax(0, 1fr);
    row-gap: 30px;
  }

  .pivot-svg-bg {
    position: relative;
    left: 50%;
    top: auto;
    transform: translateX(-50%);
    aspect-ratio: auto;
    width: 100vw;
    height: clamp(220px, 34vw, 320px);
    margin-bottom: 8px;
    overflow: hidden;
  }

  .pivot-line-extension,
  .pivot-line-extension-faint {
    opacity: 0;
  }

  .about-pivot-copy {
    grid-column: 1;
    max-width: 760px;
    min-width: 0;
  }
}

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

  .case-study-left {
    position: relative;
    top: 0;
  }

  .cta-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pivot-svg-bg {
    height: clamp(230px, 54vw, 290px);
  }

  .admin-bar .nav {
    top: 46px;
  }
  .hero {
    min-height: 700px;
  }

  .hero-content {
    padding-top: 200px;
    /* Extra bottom space so the subtitle's last line clears the scroll arrow
       pinned bottom-right (also holds for the longer EN copy). */
    padding-bottom: 120px;
  }

  .hero-scroll {
    bottom: 60px;
    width: 52px;
    height: 52px;
  }

  .hero-scroll-svg {
    width: 52px;
    height: 52px;
  }

  .nav-links > a:not(.nav-cta),
  .nav-links > li:not(:last-child) > a {
    display: none;
  }

  /* Exception: keep the language switcher visible on mobile. */
  .nav-links .nav-lang,
  .nav-links .nav-lang-item {
    display: inline-flex;
  }

  .nav-lang {
    margin-right: 4px;
  }

  .banner {
    height: auto;
    min-height: 400px;
    padding: 60px 0;
  }

  .banner-photo {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  /* Big negative letter-spacing gets cramped on small headings — relax it. */
  .cta-heading {
    letter-spacing: -1.4px;
  }

  .chi-siamo-heading {
    letter-spacing: -1px;
  }
}

/* ============================================
   REUSABLE GUTENBERG SECTIONS
   ============================================ */
.content-block {
  position: relative;
  width: 100vw;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: clamp(72px, 9vw, 132px) 0;
  overflow: hidden;
}

.content-block__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
}

.content-block__background-image,
.content-block__background-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.content-block__background-image {
  z-index: 0;
  object-fit: cover;
}

.content-block__background-overlay {
  z-index: 1;
  background: rgba(5, 16, 38, .62);
}

.flexible-hero:has(.content-block__background-image) {
  color: var(--white);
}

.flexible-hero:has(.content-block__background-image) .content-block__eyebrow,
.flexible-hero:has(.content-block__background-image) .content-block__lead {
  color: rgba(255, 255, 255, .78);
}

.content-block--light {
  background: var(--white);
  color: var(--text-dark);
}

.content-block--dark {
  background: var(--navy-dark);
  color: var(--white);
}

.content-block--blue {
  background: var(--blue-electric);
  color: var(--white);
}

.content-block__eyebrow {
  display: block;
  margin-bottom: 24px;
  color: var(--blue-electric);
  font-family: var(--font-mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.content-block--dark .content-block__eyebrow,
.content-block--blue .content-block__eyebrow {
  color: rgba(255, 255, 255, .68);
}

.content-block__hero-title {
  max-width: 980px;
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(46px, 6.2vw, 96px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}

.content-block__title {
  max-width: 820px;
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.content-block__lead {
  max-width: 680px;
  margin: 0 0 36px;
  color: var(--text-muted);
  font-size: var(--body-lg);
  line-height: 1.65;
}

.content-block--dark .content-block__lead,
.content-block--blue .content-block__lead {
  color: rgba(255, 255, 255, .76);
}

.content-block__button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border: 1px solid var(--blue-electric);
  background: var(--blue-electric);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.content-block__button:hover {
  transform: translateY(-3px);
}

.content-block--dark .content-block__button {
  border-color: var(--blue-electric);
}

.content-block--blue .content-block__button {
  border-color: var(--white);
  background: var(--white);
  color: var(--blue-cta);
}

.content-block--align-center {
  text-align: center;
}

.content-block--align-center .content-block__hero-title,
.content-block--align-center .content-block__title,
.content-block--align-center .content-block__lead {
  margin-left: auto;
  margin-right: auto;
}

.content-block--align-right {
  text-align: right;
}

.content-block--align-right .content-block__hero-title,
.content-block--align-right .content-block__title,
.content-block--align-right .content-block__lead {
  margin-left: auto;
}

.flexible-hero {
  min-height: clamp(520px, 72vh, 780px);
  display: flex;
  align-items: center;
}

.feature-split__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: center;
}

.feature-split__content,
.feature-split__media {
  min-width: 0;
}

.feature-split--media-left .feature-split__media {
  order: -1;
}

.feature-split__media {
  min-height: clamp(360px, 45vw, 650px);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.content-block--dark .feature-split__media {
  background: #0d2148;
}

.content-block--blue .feature-split__media {
  background: rgba(255, 255, 255, .12);
}

.feature-split__media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.feature-split__media > span {
  color: currentColor;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  opacity: .45;
  text-transform: uppercase;
}

.feature-grid .content-block__lead {
  margin-bottom: 56px;
}

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

.feature-card {
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.content-block--dark .feature-card,
.content-block--blue .feature-card {
  border-color: rgba(255, 255, 255, .22);
}

.feature-card__number {
  margin-bottom: auto;
  color: var(--blue-electric);
  font-family: var(--font-mono);
  font-size: 13px;
}

.content-block--dark .feature-card__number,
.content-block--blue .feature-card__number {
  color: rgba(255, 255, 255, .65);
}

.feature-card h3 {
  margin: 38px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.15;
}

.feature-card p {
  color: var(--text-muted);
  font-size: var(--body-sm);
  line-height: 1.65;
}

.content-block--dark .feature-card p,
.content-block--blue .feature-card p {
  color: rgba(255, 255, 255, .72);
}

.flexible-cta .content-block__container {
  padding-top: 16px;
  padding-bottom: 16px;
}

@media (max-width: 900px) {
  .feature-split__grid,
  .feature-grid__cards {
    grid-template-columns: 1fr;
  }

  .feature-split--media-left .feature-split__media {
    order: 0;
  }

  .feature-card {
    min-height: 240px;
  }
}
