@font-face { font-family: Montserrat; src: url(assets/montserrat-bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --blue: #063bd7;
  --navy: #06145c;
  --ink: #07246f;
  --muted: #43547f;
  --coral: #ff8b71;
  --pale: #f2f6ff;
  --line: #cbd7f4;
  --max: 1320px;
}

body { color: var(--ink); line-height: 1.45; }
.demo-strip { display: none; }
.site-header { height: 82px; padding-inline: max(24px, calc((100% - var(--max)) / 2)); box-shadow: 0 7px 24px rgba(10, 37, 106, .08); border: 0; }
.brand { align-self: stretch; display: grid; place-items: center; width: 220px; padding: 0 25px; background: #05070b; }
.brand img { width: 170px; filter: none; }
.site-header nav { gap: 32px; }
.site-header nav > a { font-size: .82rem; color: #071756; }
.nav-cta { min-height: 48px; padding-inline: 24px; border-radius: 5px; color: #fff !important; box-shadow: 0 10px 24px rgba(6, 59, 215, .22); }

.eyebrow { margin: 0 0 17px; color: var(--blue); font-size: .72rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.hero { display: block; min-height: 0; aspect-ratio: 725 / 278; color: #fff; background: #0641d4; }
.hero::before, .hero::after { display: none; }
.hero-copy { position: absolute; z-index: 3; top: 14.5%; left: 6.48%; width: 43%; padding: 0; }
.hero-copy .eyebrow { display: none; }
.hero h1 { max-width: none; margin-bottom: 1.65vw; font-family: Montserrat, Manrope, sans-serif; font-size: 4.88vw; font-weight: 700; line-height: .867; color: #fff; letter-spacing: -.025em; }
.hero-copy > p:not(.eyebrow) { max-width: 34vw; margin: 0; color: #fff; font-size: 1.52vw; line-height: 1.25; }
.hero-actions { margin-top: 1.8vw; }
.hero .button.primary { width: 23.45vw; min-height: 3.86vw; padding: .65vw 1.3vw; background: #fff; color: var(--blue); border-radius: 4px; font-size: 1.25vw; }
.hero .text-link { display: none; }
.hero-media { position: absolute; inset: 0; z-index: 0; min-height: 0; background: transparent; }
.hero-media::before, .hero-media::after { display: none; }
.hero-media img { width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: center; }
.hero-reference { position: absolute; inset: 0; background: url(assets/libra-render-reference.png) 0 calc(-100vw * 50 / 725) / 100% auto no-repeat; mask-image: linear-gradient(to right, transparent 46%, #000 50%); }

main { position: relative; isolation: isolate; }
.journey-route { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.journey-path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.journey-white { stroke: #fff; }
.journey-station { fill: var(--blue); }

.service-index { position: relative; max-width: var(--max); padding: 64px 24px 70px; }
.service-index::after { display: none; }
.service-index > *, .method > *, .planner > *, .updates > *, .contact > * { position: relative; z-index: 3; }
.section-intro { grid-template-columns: 1.08fr .78fr; gap: 120px; margin-bottom: 42px; align-items: end; }
.section-intro h2, .method h2, .planner-heading h2, .updates h2, .contact h2 { font-size: clamp(2.8rem, 4.2vw, 4.7rem); line-height: .98; letter-spacing: -.055em; }
.section-intro > p { max-width: 510px; margin: 0 0 7px; }
.service-list { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 0; }
.service-list article { display: block; min-width: 0; padding: 4px 26px 0; border: 0; border-left: 1px solid var(--line); }
.service-list article:first-child { padding-left: 0; border-left: 0; }
.service-list article:last-child { padding-right: 0; }
.service-list .service-icon { display: block; width: 58px; height: 58px; margin: 0 0 20px; color: var(--blue); }
.service-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service-list article > div { display: block; }
.service-list h3 { min-height: 52px; margin: 0 0 12px; font-size: 1.1rem; line-height: 1.15; }
.service-list p { min-height: 82px; margin: 0 0 14px; font-size: .8rem; line-height: 1.45; }
.service-list a { font-size: .78rem; }

.method { position: relative; grid-template-columns: .9fr 1.1fr; gap: 115px; padding: 72px max(24px, calc((100% - var(--max)) / 2)); background: linear-gradient(120deg, #f5f8ff, #eaf1ff); overflow: hidden; }
.method::before { display: none; }
.method-copy > p:not(.eyebrow) { max-width: 510px; margin: 25px 0; }
.method-copy .button { border-radius: 4px; }
.method-steps { padding: 10px 0 5px; }
.method-steps::before { display: none; }
.method-steps li { grid-template-columns: 18px 1fr; gap: 22px; padding-bottom: 49px; }
.method-steps span { width: 16px; height: 16px; margin: 4px 0 0 3px; overflow: hidden; color: transparent; background: var(--blue); border: 2px solid #fff; box-shadow: none; }
.method-steps h3 { margin-bottom: 4px; font-size: 1.08rem; }
.method-steps p { font-size: .86rem; }
.method-note { position: absolute; right: max(26px, calc((100% - var(--max)) / 2)); bottom: 56px; margin: 0; color: var(--blue); font: italic 500 1.35rem/1.05 Noteworthy, "Bradley Hand", "Segoe Print", cursive; transform: rotate(-6deg); }

.planner { padding: 92px max(24px, calc((100% - var(--max)) / 2)) 102px; background: linear-gradient(115deg, #073edf 0%, #064fe7 58%, #082fb7 100%); }
.planner::before { content: "Dalla pianificazione\A all'azione."; white-space: pre; position: absolute; z-index: 3; right: max(34px, calc((100% - var(--max)) / 2)); top: 70px; font: italic 500 1.45rem/1.05 Noteworthy, "Bradley Hand", "Segoe Print", cursive; transform: rotate(-5deg); }
.planner::after { width: 760px; height: 760px; right: -380px; top: -300px; border-color: rgba(255, 255, 255, .14); }
.planner-heading { grid-template-columns: 1.1fr .82fr; gap: 100px; margin-bottom: 42px; }
.planner-heading .eyebrow { color: #c8d7ff; }
.planner-heading p:last-child { align-self: end; }
.planner-grid { gap: 14px; }
.planner form, .plan-output { min-height: 600px; padding: 34px; border-radius: 5px; box-shadow: 0 18px 40px rgba(1, 16, 89, .18); }
.planner fieldset { margin-bottom: 22px; }
.planner legend { color: var(--blue); }
.planner input, .planner select, .contact input, .contact select, .contact textarea { border-color: #bfcbee; border-radius: 3px; }
.planner form > .button { border-radius: 3px; }
.plan-output { background: linear-gradient(145deg, #fff 0%, #eff4ff 100%); }
.plan-facts { background: #fff; }
.plan-groups li { border: 1px solid #d3def7; }

.updates { position: relative; padding: 90px 24px 100px; }
.updates::before { display: none; }
.updates-head { align-items: end; }
.updates-head > div > p:not(.eyebrow) { max-width: 500px; }
.update-grid { gap: 28px; }
.update-grid article { border: 0; border-right: 1px solid var(--line); padding-right: 28px; }
.update-grid article:last-child { border-right: 0; padding-right: 0; }
.update-grid img { height: 238px; border-radius: 3px; }
.update-grid article:first-child img { object-position: left center; }
.update-grid article > div { padding-top: 18px; }
.update-grid h3 { color: var(--ink); }

.contact { position: relative; min-height: 360px; grid-template-columns: .8fr .9fr; gap: 150px; padding: 68px max(24px, calc((100% - var(--max)) / 2)); background: linear-gradient(115deg, #062bb9 0%, #082cbe 45%, #05135c 100%); overflow: hidden; }
.contact::after { content: ""; position: absolute; right: -120px; top: -280px; width: 720px; height: 720px; border-radius: 50%; border: 65px solid rgba(20, 85, 241, .55); }
.contact > div:first-child, .contact form, .contact-manifesto { position: relative; z-index: 3; }
.contact h2 { color: #fff; }
.contact form { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); gap: 11px; padding-top: 20px; }
.contact .wide, .contact-result, .contact .form-note { grid-column: auto; }
.contact textarea { min-height: 84px; }
.contact-manifesto { align-self: center; justify-self: end; min-width: 390px; color: #fff; }
.contact-manifesto strong { display: block; font-size: clamp(2rem, 3vw, 3.2rem); line-height: .86; letter-spacing: -.055em; }
.contact-manifesto strong span { font-weight: 400; }
.contact-manifesto small { display: block; margin-top: 24px; line-height: 1.35; }
footer { max-width: var(--max); grid-template-columns: 180px 1fr 1.6fr auto; padding: 40px 24px 52px; }
footer img { width: 160px; padding: 16px; background: #05070b; filter: none; }

@media (max-width: 1040px) {
  .site-header { min-height: 76px; height: auto; padding: 0 20px; }
  .brand { width: 190px; min-height: 76px; margin-left: -20px; }
  .menu-toggle { display: block; }
  .site-header nav { display: none; width: 100%; padding: 10px 0 18px; }
  .site-header nav.open { display: flex; }
  .service-list { grid-template-columns: repeat(3, 1fr); gap: 45px 0; }
  .service-list article:nth-child(4) { padding-left: 0; border-left: 0; }
  .service-list p { min-height: 70px; }
  .method-note, .planner::before { display: none; }
  .contact { grid-template-columns: 1fr 1fr; gap: 60px; }
  .contact-manifesto { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .brand { width: 165px; }
  .brand img { width: 132px; }
  .hero { min-height: 680px; aspect-ratio: auto; }
  .hero-copy { top: 44px; left: 24px; width: calc(100% - 48px); }
  .hero h1 { font-size: clamp(2.5rem, 8.6vw, 3.35rem); line-height: .94; margin-bottom: 20px; }
  .hero-copy > p:not(.eyebrow) { max-width: 400px; font-size: 1rem; }
  .hero-actions { margin-top: 22px; }
  .hero .button.primary { width: auto; min-height: 48px; padding: 12px 18px; font-size: .85rem; }
  .hero-media { top: auto; height: 330px; }
  .hero-media img { position: absolute; left: calc(100% - 670px); width: auto; height: 330px; object-fit: contain; }
  .hero-reference { background-size: calc(330px * 725 / 278) auto; background-position: calc(100vw - 670px) calc(-330px * 50 / 278); mask-image: linear-gradient(to right, transparent calc(100% - 270px), #000 calc(100% - 230px)); clip-path: inset(1px 0 0); }
  .service-index, .updates { padding: 70px 18px; }
  .section-intro { grid-template-columns: 1fr; gap: 24px; margin-bottom: 45px; }
  .service-list { grid-template-columns: 1fr 1fr; }
  .service-list article, .service-list article:first-child, .service-list article:nth-child(4) { padding: 0 18px 28px; border-left: 1px solid var(--line); }
  .service-list article:nth-child(odd) { padding-left: 0; border-left: 0; }
  .service-list article:nth-child(even) { padding-right: 0; }
  .service-list .service-icon { width: 52px; height: 52px; margin-bottom: 18px; }
  .service-list h3 { min-height: 48px; font-size: 1rem; }
  .service-list p { min-height: 0; font-size: .78rem; }
  .method { grid-template-columns: 1fr; gap: 50px; padding: 75px 18px; }
  .planner { padding: 75px 18px; }
  .planner-heading { grid-template-columns: 1fr; gap: 20px; }
  .planner form, .plan-output { min-height: 0; padding: 24px; }
  .updates::before, .service-index::after, .method::before { display: none; }
  .update-grid article { border-right: 0; padding-right: 0; }
  .contact { min-height: 0; grid-template-columns: 1fr; gap: 34px; padding: 70px 18px; }
  .contact form { grid-template-columns: 1fr; }
  .contact-manifesto { grid-column: auto; }
  footer { grid-template-columns: 1fr; }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .section-intro { grid-template-columns: 1fr .9fr; gap: 44px; }
  .section-intro h2, .method h2 { font-size: 3.9vw; }
  .section-intro > p { margin-left: 9vw; font-size: .85rem; }
  .service-list { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .service-list article, .service-list article:nth-child(4) { padding-inline: 14px; border-left: 1px solid var(--line); }
  .service-list article:first-child { padding-left: 0; border-left: 0; }
  .service-list article:last-child { padding-right: 0; }
  .service-list .service-icon { width: 42px; height: 42px; }
  .service-list h3 { min-height: 42px; font-size: .85rem; }
  .service-list p { min-height: 100px; font-size: .74rem; }
  .method { grid-template-columns: .9fr 1.1fr; gap: 50px; padding: 54px 24px; }
  .method-copy > p:not(.eyebrow) { font-size: .9rem; }
  .method-steps li { gap: 16px; padding-bottom: 29px; }
  .method-steps p { font-size: .76rem; }
  .updates-head { flex-direction: row; align-items: end; gap: 40px; }
  .updates-head > div { max-width: 48%; }
  .updates h2, .contact h2 { font-size: 3.9vw; }
  .updates-head > div > p:not(.eyebrow) { font-size: .85rem; }
  .contact { grid-template-columns: .9fr 1fr; gap: 50px; padding: 54px 24px; }
  .contact-manifesto { grid-column: auto; min-width: 0; }
  .contact-manifesto strong { font-size: 2.7vw; }
  .contact > div p { font-size: .85rem; }
}

@media (max-width: 760px) {
  .journey-route { display: none; }
}
