/* Fonts, self-hosted: no third-party request, nothing to consent to, and one less thing to go down.
   IBM Plex, SIL Open Font License 1.1 — latin subset only. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* iLCS — site stylesheet
   Design system: knowledge/website/design-principles.md (DEC-029, DEC-032, DEC-033, DEC-034)
   Type: IBM Plex Sans Condensed (display) · IBM Plex Sans (text) · IBM Plex Mono (data) */

:root {
  --white: #FFFFFF;
  --grey-50: #F4F6F7;
  --grey-100: #E6ECF0;
  --grey-300: #C9D3DB;
  --grey-600: #5A6875;
  --ink: #101820;
  --ink-soft: #3B4652;
  --ink-quiet: #8A99A6;
  --cyan-500: #00A0E0;
  --cyan-700: #0077B3;
  --cyan-200: #8FD3F2;
  --blue-700: #155A85;
  --blue-800: #0E4A70;
  --blue-line: #3E7BA3;
  --blue-text: #DCE8F0;
  --blue-quiet: #B9D3E4;
  --ok: #2E7D4F;
  --warn: #A15C00;
  --gutter: 120px;
  --maxw: 1440px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  font-weight: 700;
  margin: 0;
  line-height: 1.06;
  text-wrap: balance;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(38px, 5vw, 74px); }
h2 { font-size: clamp(30px, 3.4vw, 50px); }
h3 { font-size: clamp(20px, 1.7vw, 26px); }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; display: block; }
a { color: var(--cyan-700); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 96px; padding-bottom: 96px; }
.section--tight { padding-top: 70px; padding-bottom: 70px; }
.section--grey { background: var(--grey-50); }
.section--blue { background: var(--blue-700); color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
/* Keep each illustration with its card; align card bottoms across desktop columns. */
.cols--illustrated { grid-template-rows: auto auto; row-gap: 16px; }
.cols--illustrated > .stack-s { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-width: 0; }
.cols--illustrated [data-installation-media] { align-items: center; align-self: start; gap: 14px; }
.cols--illustrated [data-installation-media] img { width: auto; height: auto; max-width: 100%; max-height: 360px; object-fit: contain; }
.cols-2.cols--illustrated [data-installation-media] img { width: 100%; max-height: 380px; }
/* Equal media frames for Cloud jobs and Technology layers; preserve screenshots. */
.cols--cloud-jobs [data-installation-media],
.cols--technology-layers [data-installation-media] { width: 100%; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.cols--cloud-jobs [data-installation-media] img,
.cols--technology-layers [data-installation-media] img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.cols--cloud-jobs [data-installation-media] .cloud-jobs-photo { object-fit: cover; object-position: center 38%; }
.cols--technology-layers [data-installation-media] .technology-cabinet-photo { object-fit: cover; object-position: center 60%; }
.cols--technology-layers [data-installation-media] .technology-nodes-photo { object-fit: cover; object-position: 75% center; }
/* Square frames keep the two traffic charts and the three loop illustrations aligned. */
.cols--loop [data-installation-media] { width: 100%; aspect-ratio: 1; background: #fff; overflow: hidden; }
.cols--loop [data-installation-media] img { width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: contain; }
.cols--loop .loop-charts { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cols--loop [data-installation-media] .loop-road-photo { object-fit: cover; object-position: center bottom; }
.cols--loop [data-installation-media] .loop-cabinet-photo { object-fit: cover; object-position: center 50%; }
@media (max-width: 860px) {
  .cols--illustrated { grid-template-rows: auto; row-gap: 32px; }
  .cols--illustrated > .stack-s { grid-row: auto; grid-template-rows: auto auto; gap: 16px; }
}
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack-s { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }

/* ---------- type helpers ---------- */
.mono { font-family: "IBM Plex Mono", Menlo, monospace; }
.lbl { font-family: "IBM Plex Mono", Menlo, monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-600); }
.lbl--cyan { color: var(--cyan-700); }
.lbl--onblue { color: var(--cyan-200); }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-soft); }
.small { font-size: 14px; color: var(--grey-600); }
.tiny { font-size: 11px; color: var(--ink-quiet); }
.onblue-text { color: var(--blue-text); }
.figure-num { font-family: "IBM Plex Mono", monospace; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; }

/* ---------- buttons ---------- */
.btn, .btn-ghost, .btn-white {
  display: inline-block; font-weight: 600; padding: 15px 26px; border: 1px solid transparent; cursor: pointer;
}
.btn { background: var(--cyan-500); color: #0A1620; }
.btn:hover { background: #0090CC; text-decoration: none; }
.btn-ghost { border-color: var(--grey-300); color: var(--ink); font-weight: 500; }
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }
.btn-white { background: var(--white); color: #0A1620; }
.btn-outline-blue { display: inline-block; border: 1px solid #6FA6C6; color: var(--white); padding: 14px 26px; font-weight: 500; }
.link-strong { font-weight: 600; border-bottom: 2px solid var(--cyan-500); display: inline-block; align-self: flex-start; }
.link-strong:hover { text-decoration: none; }
.onblue .link-strong { color: var(--white); }

/* ---------- components ---------- */
.card { background: var(--white); border: 1px solid var(--grey-100); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.card--top { border-top: 3px solid var(--cyan-500); }
.card--flat { padding: 24px; }
.chip { font-family: "IBM Plex Mono", monospace; font-size: 11px; background: var(--grey-50); padding: 8px 13px; color: var(--ink-soft); letter-spacing: .06em; }
.numrow { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: baseline; }
.numrow > .mono { font-size: 12px; color: var(--cyan-500); }
.card-shot { background: var(--white); border: 1px solid var(--grey-100); height: 170px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-top: 4px; }
.card-shot img { width: 100%; height: 100%; display: block; }
.prod-shot { aspect-ratio: 1 / 1; width: 100%; background: var(--white); border: 1px solid var(--grey-100); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod-shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.prod-shot--empty { background: var(--grey-50); border: 1px dashed var(--grey-300); }
.prod-shot--empty span { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-quiet); text-align: center; padding: 0 14px; }
.rule { height: 1px; background: var(--grey-100); }
.rule-top { border-top: 1px solid var(--grey-100); padding-top: 18px; }
.breadcrumb { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--ink-quiet); padding-top: 30px; }
.breadcrumb span { color: var(--grey-300); }
.breadcrumb .here { color: var(--ink-soft); }
.caption { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink-quiet); padding-top: 10px; }

table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { border-bottom: 1px solid var(--grey-100); padding: 15px 16px; text-align: left; font-size: 15px; vertical-align: top; }
th { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-600); font-weight: 400; }
tr:last-child td { border-bottom: none; }
.table-box { border: 1px solid var(--grey-100); }

/* tables inside blue sections */
.table-onblue { background: transparent; }
.table-onblue th, .table-onblue td { border-bottom-color: rgba(255, 255, 255, .16); color: var(--white); }
.table-onblue th { color: var(--cyan-200); }
.table-onblue td:first-child { color: var(--blue-text); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-600); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink); background: var(--white);
  border: 1px solid var(--grey-300); border-radius: 0; padding: 12px 13px; width: 100%;
}
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cyan-500); outline-offset: -1px; border-color: var(--cyan-500); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: right 18px center, right 13px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); }
.check input { margin-top: 3px; accent-color: var(--cyan-500); }
button.btn { border: none; cursor: pointer; font-family: inherit; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--grey-100); background: var(--white); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; position: relative; }
.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; align-self: stretch; }
.nav a { color: var(--ink); }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a.is-active { border-bottom: 2px solid var(--cyan-500); padding-bottom: 4px; }
.nav-contact { display: none; }

/* dropdowns */
.menu { position: absolute; top: 100%; left: -20px; min-width: 268px; background: var(--white);
  border: 1px solid var(--grey-100); border-top: 2px solid var(--cyan-500);
  box-shadow: 0 14px 34px rgba(16, 24, 32, .12); padding: 16px 20px; z-index: 30;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .14s ease, transform .14s ease, visibility 0s linear .3s; }
.nav-item:hover > .menu, .nav-item:focus-within > .menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .14s ease, transform .14s ease, visibility 0s; }
.menu a { display: block; font-size: 14.5px; font-weight: 400; color: var(--ink-soft); padding: 7px 0; line-height: 1.35; }
.menu a:hover { color: var(--cyan-700); text-decoration: none; }
.menu .menu-h { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--grey-600); font-weight: 400; padding: 0 0 6px; }
.menu .menu-h:hover { color: var(--cyan-700); }
.menu .menu-all { border-top: 1px solid var(--grey-100); margin-top: 8px; padding-top: 10px; font-weight: 500; color: var(--cyan-700); }
.menu .menu-star { color: var(--cyan-500); }
.menu-h--empty { visibility: hidden; }
.nav-item--wide { position: static; }
.menu--wide { display: grid; left: 0; right: 0; width: auto; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 34px; padding: 30px var(--gutter) 34px; }
.menu-col { display: flex; flex-direction: column; padding-bottom: 14px; }
.header-left { display: flex; align-items: center; gap: 44px; align-self: stretch; }
.header-right { display: flex; align-items: center; gap: 22px; }
.lang { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--grey-600); }
.burger { display: none; background: none; border: 0; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- hero ---------- */
.hero { padding-top: 84px; padding-bottom: 72px; }
.hero h1 { max-width: 660px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 560px; object-fit: cover; object-position: 50% 45%; }
/* hero con immagine allineata alla griglia: bordo destro sul gutter di .wrap,
   base alla stessa altezza in cui finisce il testo (cioe' i pulsanti).
   La colonna si estende in altezza da sola perche' la griglia e' stretch. */
.hero-figure { min-height: 0; }
.hero-figure img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; }
.proof-card {
  position: absolute; left: -64px; bottom: 28px; width: 372px; background: var(--white);
  box-shadow: 0 10px 30px rgba(16, 24, 32, .12); padding: 22px 24px; display: flex; flex-direction: column; gap: 16px;
}
.proof-card--inline { position: static; width: auto; box-shadow: none; border: 1px solid var(--grey-100); padding: 28px 30px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-row .val { font-family: "IBM Plex Mono", monospace; font-size: 13px; width: 68px; }
.bar { height: 10px; background: var(--cyan-500); display: block; }
.bar--soft { background: var(--cyan-200); }
.proof-card--low { bottom: -46px; left: -40px; width: 330px; }
.hero-proof {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 18px 20px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.hero-proof > div { display: flex; flex-direction: column; }
.hero-proof .n { font-family: "IBM Plex Mono", monospace; font-size: 25px; line-height: 1.1; color: var(--cyan-700); white-space: nowrap; }
.hero-proof .bar { height: 6px; margin: 9px 0 7px; }
.hero-proof .t { font-size: 10.5px; line-height: 1.4; color: var(--grey-600); }
.proof-band { border-top: 1px solid var(--grey-100); padding-top: 34px; align-items: start; row-gap: 34px; }
.kpis { display: flex; gap: 40px; padding-top: 26px; border-top: 1px solid var(--grey-100); flex-wrap: wrap; }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi .n { font-family: "IBM Plex Mono", monospace; font-size: 26px; color: var(--cyan-700); }
.kpi .t { font-size: 13px; color: var(--grey-600); }

/* ---------- blue sections ---------- */
.section--blue h2, .section--blue h3 { color: var(--white); }
.section--blue .card { background: var(--blue-800); border: none; }
.rule-blue { border-top: 1px solid var(--blue-line); padding-top: 18px; }
.panel-blue { background: var(--blue-800); padding: 32px 34px; }
.chip--onblue { background: rgba(255, 255, 255, .12); color: var(--blue-text); }
.net-chips { display: none; flex-wrap: wrap; gap: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-800); color: var(--white); padding-top: 72px; padding-bottom: 40px; }
.site-footer a { color: var(--blue-text); }
.footer-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.footer-cols li { font-size: 14px; color: var(--blue-text); padding-top: 10px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid #2A6B92; padding-top: 24px; margin-top: 48px; gap: 24px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 48px; }
  .hero-media img { height: 420px; }
  .proof-card { position: static; width: auto; margin-top: 16px; box-shadow: none; border: 1px solid var(--grey-100); }
}
@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .hero-figure img { height: 300px; min-height: 0; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .grid { grid-template-columns: 1fr; gap: 30px !important; }
  .grid > * { grid-column: 1 / -1 !important; min-width: 0; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .lang { display: inline-flex; gap: 5px; }
  .header-right { gap: 12px; }
  .header-right > .btn { display: none; }
  .burger { display: block; }
  .nav { display: none; position: fixed; top: 76px; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--white); flex-direction: column; align-items: stretch; gap: 0;
    overflow-y: auto; padding: 8px 24px 40px; border-top: 1px solid var(--grey-100); }
  .nav.is-open { display: flex; }
  .nav-item { display: block; border-bottom: 1px solid var(--grey-100); padding: 16px 0; }
  .nav-item > a { display: block; font-size: 17px; font-weight: 600; }
  .nav-item > a.is-active { border-bottom: 0; padding-bottom: 0; color: var(--cyan-700); }
  .menu, .menu--wide { position: static; display: flex !important; width: auto; grid-template-columns: 1fr;
    border: 0; box-shadow: none; padding: 4px 0 0; flex-direction: column; gap: 0;
    opacity: 1; visibility: visible; transform: none; transition: none; }
  .menu a { padding: 6px 0; }
  .menu .menu-h { padding-top: 12px; }
  .menu .menu-all { border-top: 0; margin-top: 2px; padding-top: 6px; }
  .menu-col { padding-bottom: 6px; }
  .menu-h--empty { display: none; }
  .nav-contact { display: block; margin-top: 20px; background: var(--cyan-500); color: #fff !important;
    text-align: center; padding: 14px; font-weight: 600; }
  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .burger span { transition: transform .18s ease, opacity .18s ease; }
  .hero { padding-top: 40px; padding-bottom: 48px; }
  .hero-media img { height: 240px; }
  .net-figure { display: none; }
  .net-chips { display: flex; }
  .hero-proof { position: static; background: var(--grey-50); backdrop-filter: none; -webkit-backdrop-filter: none; padding: 20px; gap: 12px; }
  .hero-proof .n { font-size: 19px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-scroll { overflow-x: auto; }
  .table-scroll table { min-width: 680px; }
  .spread { align-items: flex-start; }
  .prod-shot { max-width: 260px; }
}
@media (max-width: 420px) {
  .kpis { gap: 22px; }
}

/* Language links remain available on mobile, without cookies or automatic redirects. */
.lang { white-space: nowrap; }
.lang a[aria-current="page"], .footer-bottom a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
