/* Service Networks — sistema grafico
   Colori dal logo: navy #0b2545, blu #1a7fc4. Motivo: taglio diagonale del marchio SN.
   Struttura: colonna etichette (numero + nome) a sinistra, contenuto a destra, in tutte le sezioni. */
:root {
  --navy: #0b2545;
  --navy-deep: #081b33;
  --blue: #1a7fc4;
  --blue-dark: #14639b;
  --blue-light: #8cc6ee;
  --ink: #0b2545;
  --text: #435368;
  --muted: #6b7a8d;
  --paper: #f3f6f9;
  --white: #fff;
  --line: #d3dce6;
  --radius: 2px;
  --max-width: 1240px;
  --rail: 240px;
  --cut: 32px;
  --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height) }
body { margin: 0; font-family: 'IBM Plex Sans', Arial, sans-serif; color: var(--text); background: var(--white); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased }
a { color: inherit; text-decoration: none }
img { max-width: 100%; display: block }
button, input, select, textarea { font: inherit }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; padding: 0 }
ul, ol { list-style: none }
h1, h2, h3 { font-family: 'IBM Plex Sans', Arial, sans-serif; color: var(--ink); font-weight: 600; text-wrap: balance }
.container { width: min(var(--max-width), calc(100% - 64px)); margin-inline: auto }

/* Topline */
.topline { background: var(--navy-deep); color: #a9bbcf; font-size: 12px; letter-spacing: .04em }
.topline-inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 20px }
.topline-inner > span { letter-spacing: .1em; text-transform: uppercase; font-size: 11px }
.topline-links { display: flex; gap: 28px }
.topline a:hover { color: #fff }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line) }
.nav-wrap { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 30px }
.brand-logo { height: 54px; width: auto }
.nav { display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--ink) }
.nav > a:not(.nav-cta):hover { color: var(--blue) }
.nav-cta { padding: 11px 22px; border: 1px solid var(--navy); color: var(--navy); border-radius: var(--radius); font-weight: 600; transition: background .2s, color .2s }
.nav-cta:hover { background: var(--navy); color: #fff }
.menu-toggle { display: none; background: transparent; border: 0; color: var(--ink); font-size: 26px; cursor: pointer; line-height: 1 }

/* Bottoni */
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); padding: 15px 30px; font-size: 14px; font-weight: 600; letter-spacing: .03em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; border: 1px solid transparent }
.button-primary { background: var(--navy); color: #fff }
.button-primary:hover { background: var(--blue) }
.button-ghost { border-color: var(--navy); color: var(--navy) }
.button-ghost:hover { background: var(--navy); color: #fff }

/* Hero */
.hero { background: var(--white); border-bottom: 1px solid var(--line) }
.hero-grid { display: grid; grid-template-columns: 6fr 7fr; gap: 72px; align-items: center; padding: 88px 0 80px }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 26px; padding-top: 16px; border-top: 2px solid var(--navy); display: inline-block }
.hero h1 { font-weight: 600; font-size: clamp(38px, 4vw, 58px); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 26px }
.hero h1 span { color: var(--blue) }
.hero-lead { font-size: 18px; max-width: 500px; margin-bottom: 36px; color: var(--text) }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap }
.hero-media { position: relative; margin: 0 }
.hero-media::before { display: none }
.hero-media img { width: 100%; height: auto; border: 1px solid var(--line) }
.facts-band { background: var(--navy) }
.facts { display: grid; grid-template-columns: repeat(4, 1fr) }
.facts dl { padding: 36px 28px 40px; border-left: 1px solid rgba(255, 255, 255, .16) }
.facts dl:last-child { border-right: 1px solid rgba(255, 255, 255, .16) }
.facts dt { font: 600 26px/1.2 'IBM Plex Sans', Arial, sans-serif; color: #fff; margin-bottom: 8px }
.facts dd { font-size: 14px; line-height: 1.55; color: #aebfd1 }

/* Struttura a sezioni con colonna etichette */
.block { padding: 128px 0; position: relative }
.block-grid { display: grid; grid-template-columns: var(--rail) 1fr; gap: 48px }
.block-label { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; align-self: start; position: sticky; top: calc(var(--header-height) + 32px) }
.block-label .num { font: 600 13px 'IBM Plex Sans', sans-serif; letter-spacing: .12em; color: var(--blue) }
.block-label .name { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); white-space: nowrap }
.block-label::before { content: ''; width: 56px; height: 2px; background: var(--blue); margin-bottom: 14px }
.block h2 { font-weight: 600; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -.02em; max-width: 700px }
.block-tint { background: var(--paper) }
.block-navy { background: var(--navy); color: #b9c9db }
.block-navy h2, .block-navy h3 { color: #fff }
.block-navy .block-label .num { color: var(--blue-light) }
.block-navy .block-label .name { color: #fff }
.block-navy .block-label::before { background: var(--blue-light) }
/* taglio diagonale del marchio */
.cut { margin-top: calc(var(--cut) * -1); padding-top: calc(128px + var(--cut)); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%) }

/* 01 Chi siamo */
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px }
.intro p { font-size: 16px; line-height: 1.85 }
.intro .lead { font-family: 'IBM Plex Sans', Arial, sans-serif; font-size: 22px; line-height: 1.55; color: var(--ink); font-weight: 500 }

/* 02 Servizi */
.section-intro { max-width: 560px; margin-top: 20px }
.service-list { margin-top: 56px; border-top: 2px solid var(--ink) }
.service-list li.head { padding: 12px 12px 12px 0; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink) }
.service-list li.head:hover { background: none; padding-left: 0 }
.service-list li { display: grid; grid-template-columns: 56px 1fr 1.4fr 190px; gap: 32px; align-items: baseline; padding: 30px 12px 30px 0; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s }
.service-list li:hover { background: #fff; padding-left: 12px }
.s-num { font: 600 13px 'IBM Plex Sans', sans-serif; color: var(--blue); letter-spacing: .1em }
.service-list h3 { font-weight: 600; font-size: 22px; line-height: 1.3 }
.service-list p { font-size: 16px; line-height: 1.7 }
.service-list a { justify-self: end; font-size: 15px; font-weight: 600; color: var(--blue); white-space: nowrap; border-bottom: 1px solid transparent; transition: border-color .2s }
.service-list a::after { content: ' →' }
.service-list a:hover { border-bottom-color: var(--blue) }
.service-note { font-size: 14px; color: var(--muted); margin-top: 24px; max-width: 640px }

/* 03 Storia */
.timeline { margin-top: 56px; border-left: 1px solid rgba(255, 255, 255, .22) }
.timeline li { position: relative; display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 0 0 48px 40px }
.timeline li:last-child { padding-bottom: 0 }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 10px; width: 11px; height: 11px; background: var(--blue-light); border-radius: 50% }
.timeline .year { font: 600 30px/1.2 'IBM Plex Sans', Arial, sans-serif; color: var(--blue-light) }
.timeline li:nth-child(2) .year { font-size: 18px; padding-top: 6px }
.timeline h3 { font-weight: 600; font-size: 22px; margin-bottom: 10px }
.timeline p { max-width: 600px; font-size: 16px; line-height: 1.75 }

/* 04 Approccio */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 2px solid var(--ink) }
.values > div { padding: 28px 32px 8px 0 }
.values > div + div { padding-left: 32px; border-left: 1px solid var(--line) }
.values h3 { font-weight: 600; font-size: 22px; margin-bottom: 10px }
.values p { font-size: 16px }

/* 05 Contatti */
.contact-body { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start }
.contact-info p { margin: 22px 0 36px; max-width: 440px }
.contact-data div { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .18) }
.contact-data div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .18) }
.contact-data dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 2px }
.contact-data dd { color: #fff; font-size: 16px }
.contact-data a:hover { color: var(--blue-light) }
.contact-form { padding: 40px; background: var(--white); border-radius: var(--radius); display: flex; flex-direction: column; color: var(--text); border-top: 4px solid var(--blue) }
.contact-form label { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 8px }
.contact-form input:not([type=checkbox]), .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #c3d0de; border-radius: var(--radius); background: #fff; color: var(--ink); padding: 12px 14px; margin-bottom: 20px; outline: none; font-size: 15px; transition: border-color .2s, box-shadow .2s }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 127, 196, .16) }
.contact-form ::placeholder { color: #8d9bab }
.privacy-consent { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; color: var(--text) !important; font-size: 14px !important; line-height: 1.6; margin: 0 0 22px !important }
.privacy-consent input { margin-top: 5px; accent-color: var(--blue); flex-shrink: 0 }
.privacy-consent a, .form-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px }
.form-note { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 20px }
.submit-button { width: 100%; border: 0 }
.form-feedback { font-size: 14px; color: var(--blue-dark); margin: 12px 0 0 }

/* Footer */
.footer { background: var(--navy-deep); color: #8fa3b9; font-size: 14px; margin-top: calc(var(--cut) * -1); padding-top: var(--cut); position: relative }
.footer-grid { display: grid; grid-template-columns: var(--rail) 1fr; gap: 48px; padding: 64px 0 48px; align-items: start }
.footer-brand .brand-logo { height: 54px; padding: 6px 10px; background: #fff; border-radius: var(--radius) }
.legal-company { line-height: 1.9; font-size: 14px }
.legal-company strong { color: #e1e9f1; font-weight: 600 }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; letter-spacing: .03em }
.footer a:hover { color: #fff }

/* Pagina privacy */
.legal-page { max-width: 820px }
.legal-page h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.15; margin-bottom: 28px }
.legal-page h2 { font-size: 22px; margin: 40px 0 10px; padding-top: 20px; border-top: 1px solid var(--line) }
.legal-page p { margin-bottom: 14px }
.legal-page .back-link { margin-top: 48px }
.section { padding: 96px 0 }
.section-kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px }
.text-link { color: var(--blue); font-weight: 600 }

/* Responsive */
@media (max-width: 1000px) {
  :root { --rail: 0px; --cut: 36px }
  .block { padding: 88px 0 }
  .cut { padding-top: calc(88px + var(--cut)) }
  .block-grid, .footer-grid { grid-template-columns: 1fr; gap: 28px }
  .block-label { position: static; flex-direction: row; align-items: center; gap: 14px }
  .block-label::before { display: none }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; padding: 56px 0 56px }
  .hero-media { margin-right: 0 }
  .facts { grid-template-columns: repeat(2, 1fr) }
  .facts dl { padding: 28px 20px; border-bottom: 1px solid rgba(255, 255, 255, .16) }
  .service-list li.head { display: none }
  .service-list li { grid-template-columns: 40px 1fr; gap: 6px 20px }
  .service-list p, .service-list a { grid-column: 2 }
  .service-list a { margin-top: 8px; justify-self: start }
  .contact-body { grid-template-columns: 1fr; gap: 48px }
}
@media (max-width: 760px) {
  :root { --header-height: 68px }
  body { font-size: 16px }
  .container { width: calc(100% - 40px) }
  .topline-inner > span, .topline-links a:nth-child(2) { display: none }
  .brand-logo { height: 46px }
  .menu-toggle { display: block }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-height); padding: 8px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(11, 37, 69, .08); align-items: stretch; gap: 0; flex-direction: column }
  .nav.is-open { display: flex }
  .nav a { padding: 14px 0 }
  .nav > a:not(.nav-cta) { border-bottom: 1px solid var(--line) }
  .nav .nav-cta { padding: 13px; margin-top: 16px; text-align: center }
  .hero-grid { padding: 40px 0 48px }
  .hero-lead { font-size: 17px }
  .hero-actions .button { flex: 1 }
  .block { padding: 68px 0 }
  .cut { padding-top: calc(68px + var(--cut)) }
  .intro-cols { grid-template-columns: 1fr; gap: 20px; margin-top: 32px }
  .service-list { margin-top: 36px }
  .timeline { margin-top: 36px }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 28px }
  .timeline li:nth-child(2) .year { padding-top: 0 }
  .values { grid-template-columns: 1fr; margin-top: 36px }
  .values > div, .values > div + div { padding: 24px 0 8px; border-left: 0; border-bottom: 1px solid var(--line) }
  .contact-form { padding: 26px 20px }
  .footer-bottom { flex-direction: column; gap: 8px }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { transition: none !important; animation: none !important }
}
