/* Nordest Consulenze · design system minimo
   Palette: Blu Nordest #08264A · Acciaio #52758D · Carta #F4F6F8 · Grafite #263442 · Struttura #D8E0E7
   Font: Manrope (self-hosted, variabile). Tema unico chiaro con blocchi navy: scelta di brand. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/font/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #08264A;
  --navy-deep: #061c37;
  --steel: #52758D;
  --paper: #F4F6F8;
  --ink: #263442;
  --line: #D8E0E7;
  --white: #FFFFFF;
  --muted: #5b6b7c;

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 4px;              /* un solo raggio, quasi netto: registro istituzionale */
  --ease: cubic-bezier(.16, 1, .3, 1);

  --t-body: clamp(16px, 1.05vw, 18px);
  --t-h3: clamp(18px, 1.4vw, 21px);
  --t-h2: clamp(28px, 3vw, 40px);
  --t-h1: clamp(34px, 4.2vw, 58px);
}

*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block }
a { color: inherit }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; color: var(--navy) }
h1 { font-size: var(--t-h1); letter-spacing: -0.025em }
h2 { font-size: var(--t-h2) }
h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.005em }
p { margin: 0 }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius);
}
.skip:focus { top: 16px }

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

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px) }
.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy) }
.btn--primary:hover { background: var(--navy-deep) }
.btn--light { background: #fff; color: var(--navy); border-color: #fff }
.btn--light:hover { background: var(--paper) }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55) }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.08) }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); padding: 10px 16px }
.btn--ghost:hover { border-color: var(--navy) }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px }
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--navy) }
.brand__mark { width: 60px; height: 41px }
.brand__rule { width: 1px; height: 42px; background: currentColor; opacity: .55 }
.brand__name { display: block; width: 124px; height: 38px; fill: currentColor; font-family: var(--font); overflow: visible }
.nav { display: flex; align-items: center; gap: 30px }
.nav > a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); position: relative; padding: 6px 0 }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--navy);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav > a:not(.btn):hover::after { transform: scaleX(1) }
.btn--app { margin-left: 6px; padding: 11px 18px }
.app-tile { display: none }
.nav-toggle { display: none }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88dvh, 820px);
  display: flex; align-items: center;
  background: #030a16; color: #fff;
  overflow: hidden;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -1 }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(3,10,22,.78) 0%, rgba(3,10,22,.45) 45%, rgba(3,10,22,0) 75%);
}
.hero__content { padding-block: clamp(180px, 28vh, 300px) clamp(72px, 10vh, 120px); max-width: 720px; margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)) }
.hero h1 { color: #fff; max-width: 24ch }
.hero p { margin-top: 22px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: rgba(255,255,255,.86); max-width: 46ch }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px }

/* ---------- intro ---------- */
.intro { padding-block: clamp(72px, 9vw, 128px) }
.intro__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start }
.intro h2 { font-size: clamp(26px, 2.6vw, 36px); max-width: 18ch }
.intro__text { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 18px; color: var(--ink) }
.intro__text p { max-width: 58ch }

/* ---------- servizi ---------- */
.services { background: var(--paper); padding-block: clamp(72px, 9vw, 128px) }
.services h2 { margin-bottom: clamp(36px, 5vw, 64px) }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 96px); row-gap: clamp(36px, 5vw, 56px) }
.service { border-top: 1px solid var(--steel); padding-top: 22px; position: relative }
.service::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--navy) }
.service p { margin-top: 12px; color: var(--muted); max-width: 46ch }
.service--wide { grid-column: 1 / -1 }
.service--wide p { max-width: 60ch }

/* ---------- metodo (blocco navy) ---------- */
.method { background: var(--navy); color: #fff; padding-block: clamp(72px, 9vw, 128px) }
.method h2, .method h3 { color: #fff }
.method__head { max-width: 640px }
.method__head p { margin-top: 18px; color: rgba(255,255,255,.78); font-size: clamp(16px, 1.15vw, 19px) }
.method__steps {
  list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,.22);
}
.method__steps li { padding: 28px 28px 0 0; position: relative }
.method__steps li + li { border-left: 1px solid rgba(255,255,255,.16); padding-left: 28px }
.method__steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 1px; background: #fff }
.method__steps li + li::before { left: 28px }
.method__steps p { margin-top: 12px; color: rgba(255,255,255,.72); font-size: 15.5px; max-width: 28ch }

/* ---------- prodotto ---------- */
.product { padding-block: clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--line) }
.product__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: clamp(28px, 4vw, 64px); row-gap: 28px }
.product__sign { display: flex; align-items: center; gap: 18px }
.product__sign img { width: 72px; height: 72px }
.product__rule { width: 1px; height: 64px; background: var(--navy); opacity: .5 }
.product__sign h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; line-height: 1 }
.product__firm { margin-top: 6px; font-size: 16px; color: var(--navy); letter-spacing: .01em }
.product__text { color: var(--muted); max-width: 76ch }
.product__tags { grid-column: 1 / -1; margin: 0 0 8px; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); white-space: nowrap; padding-bottom: 18px; border-bottom: 1px solid var(--line) }
.product__tags strong { font-weight: 800 }
.product__tags span { color: var(--steel); margin: 0 12px; font-weight: 500 }
.product__note { margin-top: 10px; font-size: 14px; color: var(--muted) }

/* ---------- contatti ---------- */
.contact { padding-block: clamp(72px, 9vw, 128px) }
.contact__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px) }
address { font-style: normal; display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 15px; line-height: 1.55 }
.contact__name { font-weight: 600; color: var(--navy); font-size: 16px }
.contact a { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line) }
.contact a:hover { text-decoration-color: var(--navy) }

/* ---------- footer (impianto General Atlantic) ---------- */
.foot { background: var(--navy); color: rgba(255,255,255,.82); padding-top: clamp(56px, 7vw, 96px) }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: clamp(48px, 6vw, 80px) }
.brand--foot { color: #fff; gap: 20px }
.brand--foot .brand__mark { width: 84px; height: 57px }
.brand--foot .brand__rule { height: 58px }
.brand--foot .brand__name { width: 162px; height: 49px }
.foot__claim { margin-top: 16px; margin-left: 125px; width: 162px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .14em; font-size: 9.5px; color: rgba(255,255,255,.72); white-space: nowrap }
.foot__claim span { flex: 1; height: 1px; background: rgba(255,255,255,.45) }
.foot__col { display: grid; gap: 8px; align-content: start; font-size: 14px; line-height: 1.5 }
.foot__col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; margin-bottom: 6px }
.foot__col a { text-decoration: none; color: rgba(255,255,255,.82); width: fit-content; border-bottom: 1px solid transparent; transition: border-color .25s }
.foot__col a:hover { border-color: rgba(255,255,255,.6) }
.foot__col p { color: rgba(255,255,255,.82) }
.foot__legal {
  border-top: 1px solid rgba(255,255,255,.18);
  padding-block: 22px 28px;
  display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center;
  font-size: 13px; color: rgba(255,255,255,.62);
}
.foot__legal .sep { display: inline-block; width: 1px; height: 12px; background: rgba(255,255,255,.3); margin: 0 10px; vertical-align: -1px }
.foot__links { margin-left: auto; display: flex; gap: 22px }
.foot__links a { color: rgba(255,255,255,.75); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25) }
.foot__links a:hover { border-color: #fff }

/* ---------- reveal (motivato: gerarchia di lettura allo scroll) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease) }
.reveal.is-in { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none }
  .btn, .nav > a::after { transition: none }
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .top__row { gap: 16px }
  .brand { gap: 10px }
  .brand__mark { width: 46px; height: 31px }
  .brand__rule { height: 30px }
  .brand__name { width: 91px; height: 27px }
  .nav { gap: 14px }
  .nav > a:not(.btn) { font-size: 13px; white-space: nowrap }
  .btn--app { padding: 9px 12px; font-size: 13px; margin-left: 0 }
  .method__steps { grid-template-columns: repeat(2, 1fr); row-gap: 8px }
  .method__steps li { padding-top: 24px; padding-bottom: 24px }
  .method__steps li:nth-child(3) { border-left: 0; padding-left: 0 }
  .method__steps li:nth-child(3)::before { left: 0 }
  .method__steps li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16) }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1 }
}

@media (max-width: 767px) {
  .top__row { height: 64px }
  .brand__mark { width: 44px; height: 30px }
  .brand__rule { height: 30px }
  .brand__name { width: 97px; height: 29px }
  .brand { gap: 10px }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 10px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .3s }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg) }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg) }
  .nav {
    position: absolute; left: 0; right: 0; top: 64px;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.is-open { display: flex }
  .nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px }
  .nav > a:not(.btn)::after { display: none }
  .nav .btn--app { display: none }
  .app-tile { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; background: var(--navy); border-radius: var(--radius); flex: none }
  .app-tile img { width: 26px; height: 26px }
  .top__row { gap: 12px }

  .hero { min-height: 86dvh; align-items: flex-end }
  .hero__bg img { object-position: 28% 40% }
  .hero::after { background: linear-gradient(180deg, rgba(3,10,22,.55) 0%, rgba(3,10,22,.35) 50%, rgba(3,10,22,.8) 100%) }
  .hero__content { padding-block: 160px 56px }
  .hero h1 { max-width: none }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center }

  .intro__grid, .contact__grid { grid-template-columns: 1fr }
  .services__grid { grid-template-columns: 1fr }
  .method__steps { grid-template-columns: 1fr }
  .method__steps li { border-left: 0 !important; padding-left: 0 !important }
  .method__steps li::before { left: 0 !important }
  .method__steps li + li { border-top: 1px solid rgba(255,255,255,.16) }
  .product__row { grid-template-columns: 1fr; justify-items: start }
  .product__tags { white-space: normal; line-height: 1.7; font-size: 12px }
  .foot__claim { margin-left: 0 }
  .foot__grid { grid-template-columns: 1fr; gap: 32px }
  .foot__links { margin-left: 0 }
}
