/* Second style test for the Brescia AI site. Square corners, smaller and firmer type. */
:root {
  --blue-europe: #003399;
  --night: #00082a;
  --deep: #001a5e;
  --sky: #2f6fff;
  --veil: #bcd2ff;
  --mist: #e3eaf9;
  --paper: #f4f6fc;
  --ink: #00123d;
  --slate: #44547e;
  --gutter: clamp(20px, 3.4vw, 52px);
  --frame: clamp(6px, 0.7vw, 10px);
  --gap: clamp(6px, 0.7vw, 10px);
  /* One full view under the bar that follows the reader, for sections that must fill the screen. */
  --view: calc(100svh - 56px - 2 * var(--gap));
  /* Final type (Lorenzo, 16/11/2026): Bebas Neue for the titles, all capitals; Mona Sans for the text. */
  --font-display: "Bebas Neue", system-ui, sans-serif;
  --font-text: "Mona Sans", system-ui, -apple-system, sans-serif;
  --display-weight: 400;
  --display-stretch: 100%;
  --display-tracking: 0.01em;
  /* One scale of type sizes for the whole site (17/11/2026). A title, a label or a text takes its size
     from its role, never from a number of its own. Plain text is the body's 1rem. */
  --t-page: clamp(1.75rem, 3.3vw, 3.5rem);        /* page title, in the blue part */
  --t-section: clamp(1.5rem, 2.35vw, 2.45rem);    /* section title */
  --t-box: clamp(1.3rem, 2vw, 2rem);              /* title of a box */
  --t-step: clamp(1.15rem, 1.5vw, 1.5rem);        /* names along the paths */
  --t-kicker: clamp(0.9375rem, 1.15vw, 1.125rem); /* word above a title */
  --t-lead: clamp(1rem, 1.15vw, 1.125rem);        /* text on the blue ground */
  --t-tag: 0.8125rem;                             /* small labels and numbers */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h1v1H2zM3 1h1v1H3zM0 2h5v1H0zM3 3h1v1H3zM2 4h1v1H2z'/%3E%3C/svg%3E");
}
/* BDO Grotesk (SIL Open Font License), SBOBBA's typeface, for SBOBBA's own panels. */
/* Fonts, hosted on the site: nothing is asked to other servers. Each file covers a range of
   characters (unicode-range), and a browser downloads only the files a page needs. */
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/bebas-neue-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/bebas-neue-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url(../fonts/mona-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url(../fonts/mona-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "BDO Grotesk";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(../fonts/bdo-grotesk.woff2) format("woff2"), url(../fonts/BDOGrotesk.ttf) format("truetype");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding: var(--frame);
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform, none);
}
a { color: inherit; }
[id] { scroll-margin-top: 72px; }
em { font-style: normal; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip {
  position: absolute;
  left: 24px;
  top: -60px;
  z-index: 40;
  padding: 10px 16px;
  background: #fff;
  color: var(--blue-europe);
}
.skip:focus { top: 24px; }

.px-arrow {
  display: inline-block;
  flex: none;
  width: 0.7em;
  height: 0.7em;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: transform 0.18s steps(2);
}
a:hover > .px-arrow { transform: translateX(4px); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.95em 1.25em;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.btn:focus-visible { outline-offset: -5px; }
.btn-light { background: #fff; color: var(--blue-europe); }
.btn-light:hover { background: var(--veil); }
.btn-blue { background: var(--blue-europe); color: #fff; }
.btn-blue:hover { background: var(--deep); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-size: calc(1rem * var(--display-scale, 1));
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark {
  width: 1.3em;
  height: 1.3em;
  background: currentColor;
  -webkit-mask: url(../img/logo.svg) center / contain no-repeat;
  mask: url(../img/logo.svg) center / contain no-repeat;
}

/* First screen */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100svh - 2 * var(--frame));
  background: var(--night);
  color: #fff;
  overflow: hidden;
}

.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero.no-webgl {
  background:
    radial-gradient(50% 60% at 75% 35%, var(--sky), transparent 70%),
    radial-gradient(60% 70% at 40% 70%, var(--blue-europe), transparent 75%),
    var(--night);
}
.hero.no-webgl canvas { display: none; }

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 2vw, 26px) var(--gutter);
}
.nav { display: flex; gap: clamp(18px, 2.2vw, 32px); font-size: 0.875rem; }
.nav a {
  position: relative;
  color: rgb(255 255 255 / 0.84);
  text-decoration: none;
  padding: 0.3em 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 6px;
  height: 6px;
  background: currentColor;
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgb(255 255 255 / 0.45);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  padding: 0.35em 0.9em;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) clamp(28px, 3.2vw, 46px);
}
.hero h1 {
  max-width: 14.6em;
  font-size: var(--t-page);
  line-height: 1.1;
  text-wrap: balance;
}

.hero h1 em { color: var(--veil); }
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px clamp(32px, 5vw, 80px);
  margin-top: clamp(18px, 1.8vw, 26px);
}
.hero-foot p { max-width: 32em; font-size: var(--t-lead); line-height: 1.45; color: #dbe6ff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* Language switch (18/11/2026): the two languages side by side, the current one stronger. It closes
   the menu, the bar that follows the reader and the legal links of the footer. On the pages in en/
   the link goes back to the Italian page (strumenti/build_en.py). */
.lang { display: inline-flex; align-items: center; gap: 0.5em; }
.lang b { font-weight: 600; }
/* The slash is its own box, so the underline of a link never runs under it. */
.lang > * + *::before { content: "/"; display: inline-block; margin-right: 0.5em; font-weight: 400; opacity: 0.45; }
.footer .lang b { color: var(--ink); }

/* Bar that follows the reader after the first screen */
.stickybar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px calc(var(--gutter) + var(--frame));
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--mist);
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform 0.25s, visibility 0.25s;
}
.stickybar.is-on { visibility: visible; transform: none; }
.stickybar-nav { display: flex; gap: clamp(18px, 2.2vw, 32px); font-size: 0.875rem; }
.stickybar-nav a { color: var(--slate); text-decoration: none; }
.stickybar-nav a:hover { color: var(--ink); }
.stickybar .btn { padding: 0.75em 1em; font-size: 0.875rem; }

/* Sections on paper */
.section { padding: clamp(52px, 6vw, 88px) var(--gutter); }
.section-title { font-size: var(--t-section); line-height: 1.14; text-wrap: balance; }
.section-title em { color: var(--blue-europe); }

/* Who we work for: everything lives inside the panel, and one panel is always in focus */
/* Home, who we work for: two ways. Companies get consulting and custom work, professionals ready-made
   tools (the products are the examples). Each box ends with its drawing in tiles (scenes.js). */
.kick { font-size: var(--t-kicker); font-weight: 600; color: var(--blue-europe); }
.box-title { margin-top: 0.35em; font-size: var(--t-box); line-height: 1.05; }
.stag { display: inline-flex; align-items: center; padding: 0.3em 0.65em; border: 1px solid var(--veil); color: var(--blue-europe); font-size: var(--t-tag); font-weight: 600; white-space: nowrap; }
.ptag { display: inline-flex; align-items: center; padding: 0.35em 0.8em; font-size: 0.875rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
/* SBOBBA as its logo: white wordmark and scribble on black, as tall as the other product names. */
.ptag.is-sbobba { background: #000; border-radius: 8px; }
.ptag.is-sbobba img { display: block; width: auto; height: 1.2em; filter: invert(1); }
a.ptag { text-decoration: none; transition: transform 0.2s; }
a.ptag:hover { transform: translateY(-2px); }
.ptag.is-clinistack { background: linear-gradient(135deg, #0d9688, #1eb8a9); color: #fff; border-radius: 6px; font-family: "Inter", sans-serif; font-weight: 900; }
.ptag.is-pharos { background: #0068a7; color: #fff; border-radius: 8px; font-family: "Inter", sans-serif; font-weight: 600; }
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(22px, 2.6vw, 36px); }
.way { display: flex; flex-direction: column; background: #fff; }
.way-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(22px, 2.4vw, 34px); }
.way-copy p { margin-top: 0.8em; color: var(--slate); }
.way-list { display: grid; gap: 10px; margin: auto 0 0; padding: 1.4em 0 0; list-style: none; font-size: 0.9375rem; }
.way-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--slate); }
.way-list b { color: var(--ink); font-weight: 600; }
.way-art { position: relative; height: clamp(170px, 17vw, 250px); border-top: 1px solid var(--mist); }
.way-art canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.way-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: var(--gap); padding: 20px clamp(22px, 2.4vw, 34px); background: #fff; color: var(--ink); text-decoration: none; transition: background-color 0.25s, color 0.25s; }
.way-more:hover { background: var(--blue-europe); color: #fff; }
.way-more strong { font-family: var(--font-display); font-weight: 400; font-size: var(--t-step); letter-spacing: 0.01em; line-height: 1; }
.way-more span { color: var(--slate); transition: color 0.25s; }
.way-more:hover span { color: var(--veil); }
.way-more .px-arrow { margin-left: auto; color: inherit; }

/* Network of skills: pick a project and see who joins the two contacts */
.network {
  position: relative;
  display: flex;
  align-items: center;
  /* A full view less five rows of tiles (16 px each), as Lorenzo asked. */
  min-height: max(clamp(500px, 42vw, 620px), calc(var(--view) - 80px));
  margin: 0 var(--gutter) clamp(52px, 6vw, 88px);
  overflow: hidden;
}
.net-stage { position: absolute; inset: 0; }
.net-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.net-tags { position: absolute; inset: 0; pointer-events: none; }
.net-tag {
  position: absolute;
  padding: 0.35em 0.65em;
  background: #fff;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.25s;
}
.net-tag.is-left { transform: translate(-100%, -50%); }
.net-tag.is-on { opacity: 1; }
.net-tag-core {
  background: var(--blue-europe);
  color: #fff;
  font-weight: 600;
  opacity: 1;
  transform: translate(-50%, -100%);
}
.net-tag-core.is-below { transform: translate(-50%, 0); }
.network-box {
  position: relative;
  width: min(44%, 600px);
  padding: clamp(24px, 2.6vw, 38px);
  background: #fff;
}
.network-box > p { margin-top: 0.9em; color: var(--slate); }
.net-ask { font-size: 0.875rem; font-weight: 600; color: var(--ink) !important; }
.net-projects { display: flex; flex-direction: column; margin-top: 0.6em; border-top: 1px solid var(--mist); }
.net-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0.7em 0.75em;
  border: 0;
  border-bottom: 1px solid var(--mist);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.net-project .px-arrow { opacity: 0; }
.net-project:hover .px-arrow { opacity: 0.5; }
.net-project[aria-pressed="true"] { background: var(--blue-europe); color: #fff; }
.net-project[aria-pressed="true"] .px-arrow { opacity: 1; }
.net-project:focus-visible { outline-offset: -4px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Data security: the claim drawn as a map, in the blue of the flag */
.security {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(90svh, 800px);
  padding: clamp(32px, 4vw, 56px) var(--gutter);
  background: var(--blue-europe);
  color: #fff;
  overflow: hidden;
}

.security-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.security-copy { position: relative; width: min(43%, 600px); pointer-events: none; }
.security-copy a, .security-copy button { pointer-events: auto; }
.security h2 { font-size: var(--t-section); line-height: 1.14; text-wrap: balance; }
.security p { margin-top: 0.95em; font-size: var(--t-lead); line-height: 1.45; }
.security .link { margin-top: 1.5em; }

.map-word {
  padding: 0 0.1em;
  border: 0;
  border-bottom: 2px solid #fff;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.map-word:hover, .map-word:focus-visible, .map-word.is-on { background: #fff; color: var(--blue-europe); outline: none; }

/* Inner pages */
.hero-label { margin-bottom: 0.8em; font-size: var(--t-kicker); font-weight: 500; color: var(--veil); }
/* On Cosa facciamo, Sicurezza e dati and Chi siamo the word above the title is part of the main title,
   for search engines (SEO, 24/11/2026). It keeps the look it had as a paragraph of its own. */
h1 .hero-label {
  display: block;
  font: 500 var(--t-kicker)/1.55 var(--font-text);
  letter-spacing: normal;
  text-transform: none;
  text-wrap: wrap;
}
.panel { background: #fff; padding: clamp(24px, 2.6vw, 38px); }
.panel h2, .panel h3 { font-size: var(--t-box); line-height: 1.05; }
.panel p { margin-top: 0.8em; color: var(--slate); }
.panel .panel-strong { color: var(--ink); font-weight: 500; }
.panel-icon svg { display: block; width: 44px; height: 44px; margin-bottom: 26px; fill: var(--blue-europe); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
/* Icon and title on one line. */
.pair .panel { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: center; }
.pair .panel .panel-icon svg { width: 36px; height: 36px; margin: 0; }
.pair .panel p { grid-column: 1 / -1; }
.pair .panel h2 + p { margin-top: 1.1em; }

.link-ink { color: var(--blue-europe); }

/* Legal text: long reading, so a narrow column and calm spacing */

.legal { max-width: 52em; }
/* Headings inside a long text: smaller than a box title, with the leading they had. */
.legal h2 { margin-top: 1.8em; font-size: clamp(1.15rem, 1.4vw, 1.35rem); line-height: 1.15; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--slate); }
.legal ul { margin: 0.8em 0 0; padding-left: 1.2em; }
.legal li + li { margin-top: 0.5em; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--blue-europe); }
.legal-table { display: grid; margin-top: 0.9em; border-top: 1px solid var(--mist); }
.legal-table > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0.7em 0; border-bottom: 1px solid var(--mist); color: var(--slate); }
.legal-head { font-size: 0.875rem; font-weight: 600; color: var(--ink) !important; }
.startup-table { width: 100%; border-collapse: collapse; }
.startup-table th, .startup-table td { padding: 0.9em 0; border-bottom: 1px solid var(--mist); text-align: left; vertical-align: top; }
.startup-table tr:first-child th, .startup-table tr:first-child td { padding-top: 0; }
.startup-table th { width: 30%; padding-right: 2em; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.startup-table td { color: var(--slate); }
.startup-table td p { margin: 0; }
.startup-table td p + p { margin-top: 0.7em; }
.legal:has(.startup-table) { max-width: none; }

/* The five parts of an AI solution, followed end to end */

.chain { display: flex; align-items: flex-start; margin-top: clamp(30px, 3.4vw, 48px); }
.chain-step {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 112px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: default;
}
.chain-step:focus-visible { outline-offset: 4px; }
.chain-icon { display: grid; place-items: center; width: 84px; height: 84px; background: var(--mist); transition: background-color 0.2s; }
.chain-icon svg { display: block; width: 44px; height: 44px; fill: var(--blue-europe); transition: fill 0.2s; }
.chain-step.is-on .chain-icon { background: var(--blue-europe); }
.chain-step.is-on svg { fill: #fff; }
/* Same type and size as the service names of the index in Cosa facciamo. */
.chain-label { font-family: var(--font-display); font-size: var(--t-step); font-weight: 400; letter-spacing: 0.01em; line-height: 1; }
.chain-link {
  flex: 1;
  height: 8px;
  margin-top: 38px;
  background: repeating-linear-gradient(90deg, var(--mist) 0 8px, transparent 8px 12px);
}
.chain-link.is-on { background: repeating-linear-gradient(90deg, var(--sky) 0 8px, transparent 8px 12px); }
.chain-span {
  position: relative;
  margin: 22px 56px 0;
  padding-top: 14px;
  border-top: 3px solid var(--mist);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  color: var(--slate);
  transition: border-color 0.2s, color 0.2s;
}
.chain-span::before, .chain-span::after { content: ""; position: absolute; top: -12px; width: 3px; height: 12px; background: var(--mist); }
.chain-span::before { left: 0; }
.chain-span::after { right: 0; }
.chain-span.is-on { border-color: var(--blue-europe); color: var(--blue-europe); }
.chain-span.is-on::before, .chain-span.is-on::after { background: var(--blue-europe); }

.chain-first .chain { margin-top: 0; }
.chain-after { margin-top: clamp(28px, 3vw, 44px); padding-top: clamp(24px, 2.6vw, 36px); border-top: 1px solid var(--mist); }
.chain-after p { margin-top: 0; }

/* Pages whose content must show at first glance: same header as the Home, lower */
.hero-page { min-height: min(56svh, 520px); }

/* What we do: the three services, text first and the Brescia AI symbol below, drawn in a different
   state for each one (services.js): a plan, a finished piece repeated for many, a build. */
.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(22px, 2.6vw, 36px); }
.svc-card { display: flex; flex-direction: column; background: #fff; }
.svc-card-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(22px, 2.4vw, 34px); }
.svc-card-num { font-size: var(--t-tag); font-weight: 600; color: var(--blue-europe); }
.svc-card h3 { margin-top: 0.4em; font-size: var(--t-box); line-height: 1.05; }
.svc-card p { margin-top: 0.9em; color: var(--slate); }
.svc-examples { margin-top: 1em; color: var(--blue-europe); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 1.4em 0 0; list-style: none; }
.svc-chips li { padding: 0.35em 0.7em; border: 1px solid var(--veil); color: var(--blue-europe); font-size: var(--t-tag); font-weight: 500; }

/* What we do: under the first screen the three services in a row with their symbols, linked like a
   path, as the chain of "Sicurezza e dati"; the full boxes follow. */
.index-panel { padding: clamp(16px, 1.6vw, 24px) clamp(24px, 2.6vw, 38px) clamp(14px, 1.4vw, 20px); background: #fff; }
.index { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; }
.index-step { display: grid; justify-items: center; gap: 8px; color: var(--ink); text-align: center; text-decoration: none; }
.index-step .art { position: relative; display: block; width: clamp(100px, 9vw, 136px); aspect-ratio: 4 / 3; border: 1px solid var(--mist); transition: border-color 0.3s, box-shadow 0.3s; }
.index-step.is-on .art { border-color: var(--blue-europe); box-shadow: 0 0 0 1px var(--blue-europe); }
.index-step .art canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.index-step:hover .art { border-color: var(--sky); }
.index-step small { font-size: var(--t-tag); font-weight: 600; color: var(--blue-europe); }
.index-step b { font-family: var(--font-display); font-size: var(--t-step); font-weight: 400; letter-spacing: 0.01em; line-height: 1; }
.index-link { width: clamp(30px, 5vw, 90px); height: 8px; margin-bottom: 40px; background: repeating-linear-gradient(90deg, var(--mist) 0 8px, transparent 8px 12px); }
.index-link.is-on { background: repeating-linear-gradient(90deg, var(--sky) 0 8px, transparent 8px 12px); }
.index-span { position: relative; margin: 12px 56px 0; padding-top: 10px; border-top: 3px solid var(--mist); color: var(--slate); transition: border-color 0.2s, color 0.2s; font-family: var(--font-text); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; text-align: center; text-transform: none; }
.index-span::before, .index-span::after { content: ""; position: absolute; top: -12px; width: 3px; height: 12px; background: var(--mist); }
.index-span.is-on { border-color: var(--blue-europe); color: var(--blue-europe); }
.index-span.is-on::before, .index-span.is-on::after { background: var(--blue-europe); }
.index-span::before { left: 0; }
.index-span::after { right: 0; }

/* Products: one band each, in the app's own colours and type, taken from the apps' public pages:
   SBOBBA (black, lime, BDO Grotesk), Clinistack (teal gradient, light grid, Inter 900), Pharos Vision
   (ocean blue gradient, eye mark, Inter). On a wide screen the bands stick and stack as the page
   scrolls, one over the other. */
.showcase > h2 { padding: 0 var(--gutter); margin-bottom: clamp(22px, 2.6vw, 36px); font-size: var(--t-section); line-height: 1.14; text-wrap: balance; }
.show { position: sticky; top: calc(64px + var(--i, 0) * 18px); min-height: min(78vh, 660px); box-shadow: 0 -30px 60px -40px rgba(0, 8, 42, 0.6); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(28px, 4vw, 72px); margin: 0 var(--frame) var(--gap); padding: clamp(48px, 6vw, 96px) var(--gutter); overflow: hidden; }
.show.is-clinistack .show-copy { order: 2; }
/* A product's line is a box title: it stays below the section title that introduces the products. */
.show h3 { margin-top: 1.1em; font-size: var(--t-box); line-height: 1.08; }
.show p { margin-top: 0.8em; font-size: 1.0625rem; }
.show .p-cta { margin-top: 1.8em; }
.show-art { perspective: 1400px; }
.show-art .mock { transform: rotateY(-9deg) rotateX(4deg); transition: transform 0.7s; }
.show.is-clinistack .show-art .mock { transform: rotateY(9deg) rotateX(4deg); }
.show:hover .show-art .mock { transform: none; }
.show.is-sbobba { background: var(--sb-black); color: #fff; font-family: "BDO Grotesk", var(--font-text); }
.show.is-sbobba h3 { font-family: "BDO Grotesk", sans-serif; font-weight: 600; letter-spacing: -0.02em; }
.show.is-sbobba .sb-logo-big { width: min(100%, 260px); filter: invert(1); }
.show.is-sbobba p { color: #cfcfcf; }
.show.is-sbobba .p-points li { background: #1a1a1a; color: var(--sb-lime); border-radius: 999px; }
.show.is-clinistack { background-color: var(--cs-paper); background-image: linear-gradient(rgba(13, 150, 136, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 150, 136, 0.08) 1px, transparent 1px); background-size: 32px 32px; color: var(--cs-ink); font-family: "Inter", sans-serif; }
.show.is-clinistack h3 { font-family: "Inter", sans-serif; font-weight: 900; letter-spacing: -0.03em; }
.show.is-clinistack .p-brand .cs-logo { font-size: 1.75rem; }
.show.is-clinistack p { color: #475569; }
.show.is-clinistack .p-points li { background: var(--cs-soft); color: #0b6b62; border-radius: 6px; }
.show.is-pharos { background: linear-gradient(135deg, var(--ph-blue), var(--ph-deep)); color: #fff; font-family: "Inter", sans-serif; }
.show.is-pharos h3 { font-family: "Inter", sans-serif; font-weight: 600; letter-spacing: -0.02em; }
.show.is-pharos .p-brand .ph-logo { font-size: 1.6rem; }
.show.is-pharos .p-brand .ph-mark { background: rgba(255, 255, 255, 0.16); }
.show.is-pharos p { color: #d6e6f5; }
.show.is-pharos .p-points li { background: rgba(255, 255, 255, 0.12); border-radius: 999px; }

.showcase {
  --sb-black: #0a0a0a;
  --sb-lime: #ccff00;
  --cs-teal: #0d9688;
  --cs-glow: #1eb8a9;
  --cs-ink: #0f1729;
  --cs-paper: #f8fafc;
  --cs-soft: #e2f5f2;
  --cs-purple: #7c3aed;
  --ph-blue: #0068a7;
  --ph-deep: #003c6c;
  --ph-os: #b4407e;
  --ph-ok: #239d6a;
  --ph-warn: #e3a43b;
  --ph-ink: #1c2a3d;
}

/* Brand marks, rebuilt as on the apps' pages */
.cs-logo, .ph-logo { display: inline-flex; align-items: center; gap: 10px; font-family: "Inter", system-ui, sans-serif; }
.cs-logo { font-weight: 900; letter-spacing: -0.02em; }
.ph-logo { font-weight: 600; }
.cs-mark, .ph-mark { display: inline-grid; place-items: center; flex: none; width: 1.75em; height: 1.75em; border-radius: 0.35em; color: #fff; }
.cs-mark { background: linear-gradient(135deg, var(--cs-teal), var(--cs-glow)); font-weight: 900; box-shadow: 0 18px 45px -28px rgba(13, 150, 136, 0.9); }
.ph-mark { background: var(--ph-blue); }
.ph-mark svg { width: 58%; height: 58%; }
.sb-logo { display: block; height: auto; }

/* A browser window around each app */
.mock {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 40px 80px -40px rgba(0, 8, 42, 0.6), 0 0 0 1px rgba(0, 8, 42, 0.08);
  font-family: "Inter", system-ui, sans-serif;
  text-align: left;
}
.mock-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eef1f6; border-bottom: 1px solid #e2e6ee; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd5df; }
.mock-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 6px; background: #fff; color: #64748b; font-size: 11px; }
.mock.is-dark { background: var(--sb-black); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.mock.is-dark .mock-bar { background: #161616; border-color: #222; }
.mock.is-dark .mock-bar i { background: #333; }
.mock.is-dark .mock-bar span { background: #000; color: #8a8a8a; }

/* SBOBBA: load, transcribe, summarise */
.sb-ui { display: grid; gap: 10px; padding: 16px; background: var(--sb-black); color: #fff; font-family: "BDO Grotesk", "Inter", sans-serif; }
.sb-ui .sb-logo { width: 104px; filter: invert(1); margin-bottom: 4px; }
.sb-step { display: grid; gap: 10px; padding: 12px; border: 1px solid #2a2a2a; border-radius: 10px; transition: border-color 0.3s; }
.sb-step.is-on { border-color: var(--sb-lime); }
.sb-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.sb-num { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sb-lime); color: #000; font-size: 11px; }
.sb-tag { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: var(--sb-lime); color: #000; font-size: 10px; font-weight: 600; white-space: nowrap; }
.sb-file { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; background: #161616; color: #bdbdbd; font-size: 11px; }
.sb-wave { display: flex; align-items: center; gap: 2px; height: 30px; }
.sb-wave span { flex: 1; height: var(--h, 40%); border-radius: 2px; background: var(--sb-lime); opacity: 0.35; transition: opacity 0.2s; }
.sb-wave span.is-on { opacity: 1; }
.sb-lines { display: grid; gap: 6px; }
.sb-lines i { display: block; height: 6px; border-radius: 3px; background: #2a2a2a; }
.sb-sizes { display: flex; gap: 6px; margin-left: auto; }
.sb-sizes span { padding: 3px 9px; border: 1px solid #333; border-radius: 999px; font-size: 11px; }
.sb-sizes .on { background: var(--sb-lime); border-color: var(--sb-lime); color: #000; }

/* Clinistack: clinical records with an AI assistant */
.cs-ui {
  display: grid;
  grid-template-columns: 30% 1fr;
  min-height: 270px;
  background-color: var(--cs-paper);
  background-image: linear-gradient(rgba(13, 150, 136, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 150, 136, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--cs-ink);
}
.cs-side { display: grid; align-content: start; gap: 8px; padding: 14px 12px; background: #fff; border-right: 1px solid #e2e8f0; }
.cs-side .cs-logo { margin-bottom: 8px; font-size: 13px; }
.cs-nav { height: 24px; border-radius: 6px; background: #f1f5f9; }
.cs-nav.on { background: var(--cs-soft); box-shadow: inset 3px 0 0 var(--cs-teal); }
.cs-main { display: grid; align-content: start; gap: 12px; padding: 14px; }
.cs-head { display: flex; justify-content: space-between; align-items: center; }
.cs-title { width: 42%; height: 11px; border-radius: 4px; background: var(--cs-ink); opacity: 0.85; }
.cs-btn { width: 70px; height: 24px; border-radius: 6px; background: linear-gradient(135deg, var(--cs-teal), var(--cs-glow)); }
.cs-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cs-card { display: grid; gap: 6px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; box-shadow: 0 16px 36px -30px rgba(51, 65, 85, 0.45); }
.cs-avatar { width: 22px; height: 22px; border-radius: 50%; background: #ede9fe; box-shadow: inset 0 0 0 7px #ede9fe, inset 0 0 0 11px var(--cs-purple); }
.cs-card i { display: block; height: 6px; border-radius: 3px; background: #e2e8f0; }
.cs-card i:first-of-type { width: 72%; background: #cbd5e1; }
.cs-ai { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid #b9e6df; border-radius: 10px; background: #fff; }
.cs-spark { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--cs-soft); color: var(--cs-teal); font-size: 13px; }
.cs-ai div { flex: 1; display: grid; gap: 6px; }
.cs-ai i { display: block; height: 6px; border-radius: 3px; background: #d5efeb; }

/* Pharos Vision: both eyes side by side, and the report */
.ph-ui { display: grid; gap: 12px; min-height: 270px; padding: 14px; background: #f9fbfd; color: var(--ph-ink); }
.ph-ui .ph-logo { font-size: 13px; }
.ph-eyes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-eye { display: grid; justify-items: center; gap: 6px; padding: 12px; border: 1px solid #e3e8ef; border-radius: 10px; background: #fff; }
.ph-eye svg { width: 76px; height: 76px; }
.ph-eye b { padding: 2px 9px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 600; }
.ph-eye.od b { background: var(--ph-blue); }
.ph-eye.os b { background: var(--ph-os); }
.ph-card { display: grid; gap: 6px; padding: 12px; border: 1px solid #e3e8ef; border-radius: 10px; background: #fff; }
.ph-card i { display: block; height: 6px; border-radius: 3px; background: #e6ecf3; }
.ph-card i:first-child { width: 46%; background: #c8d4e3; }

/* Product buttons in each app's style */
.p-cta { display: inline-flex; align-items: center; gap: 10px; padding: 0.8em 1.25em; font-weight: 600; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.p-cta:hover { transform: translateY(-2px); }
.p-cta.is-sbobba { background: var(--sb-lime); color: #000; font-family: "BDO Grotesk", sans-serif; border-radius: 999px; }
.p-cta.is-clinistack { background: linear-gradient(135deg, var(--cs-teal), var(--cs-glow)); color: #fff; font-family: "Inter", sans-serif; border-radius: 6px; box-shadow: 0 18px 45px -28px rgba(13, 150, 136, 0.9); }
.p-cta.is-pharos { background: #fff; color: var(--ph-blue); font-family: "Inter", sans-serif; border-radius: 8px; }
.p-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.2em; padding: 0; list-style: none; }
.p-points li { padding: 0.4em 0.8em; font-size: var(--t-tag); font-weight: 500; }

@media (max-width: 560px) {
  .cs-ui { grid-template-columns: 38% 1fr; }
  .cs-side .cs-logo { gap: 6px; font-size: 11px; }
  .cs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-card:nth-child(3) { display: none; }
  .ph-eye svg { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .p-cta, .sb-wave span, .sb-step { transition: none; }
}

/* LinkedIn logo as tall as the capitals of the name, sitting on the same baseline. */
.person-in { position: relative; display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.3em; vertical-align: baseline; color: #0a66c2; transition: opacity 0.2s; }
.person-in::before { content: ""; position: absolute; inset: -10px; }
.person-in:hover { opacity: 0.7; }
.person-in svg { display: block; width: 100%; height: 100%; fill: currentColor; }

/* Who we are: the network. Text and examples on the left; on the right the team of the example project
   (blue) above the rest of the network, both in grids of equal cells. The people a project needs move
   up into the team (crew.js). */
.crew { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); margin: 0 var(--gutter) clamp(52px, 6vw, 88px); }
.crew .network-box { width: auto; padding: clamp(20px, 2.1vw, 30px); }
/* A little tighter than in the Home, so the opening panel and the network fit one screen together. */
.crew .network-box > p { margin-top: 0.75em; }
.crew .network-lead { line-height: 1.5; }
.crew .net-projects { margin-top: 0.5em; }
.crew .net-project { padding: 0.55em 0.75em; }
.pool { display: grid; grid-template-rows: 1fr 1fr; gap: var(--gap); }
.pool-team, .pool-field { display: flex; flex-direction: column; justify-content: center; padding: clamp(18px, 2vw, 28px); background: #fff; }
.pool-team { background: var(--blue-europe); color: #fff; }
.pool-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.pool-team .pool-label { color: var(--veil); }
/* Equal cells in a grid: names never wrap in a scattered way. */
.pool-slots, .pool-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 14px; }
.pool-core, .chip { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.5em 0.8em; text-align: center; }
.pool-core { background: #fff; color: var(--blue-europe); font-family: var(--font-display); font-size: var(--t-step); letter-spacing: 0.01em; line-height: 1; }
.chip { border: 1px solid var(--mist); background: var(--paper); color: var(--slate); font-size: 0.9375rem; font-weight: 500; line-height: 1.15; }
.pool-team .chip { border-color: transparent; background: var(--sky); color: #fff; }

/* SBOBBA as a worked example, in its own colours and type: black, lime, BDO Grotesk */
.sbobba-panel {
  --lime: #ccff00;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-areas: "logo flow" "copy flow";
  gap: clamp(16px, 1.6vw, 24px) clamp(32px, 5vw, 80px);
  align-items: start;
  /* The extra space below keeps the title exactly where Lorenzo approved it at the end of the page
     (62 px from the top of a 1490×850 window). It was 90 px; with the title and the first paragraph
     on the common scale (17/11/2026) the text is 17 px shorter, so it is 107. */
  padding: clamp(40px, 5vw, 80px) var(--gutter) calc(clamp(36px, 3.4vw, 52px) + 107px);
  background: #000;
  color: #fff;
  font-family: "BDO Grotesk", var(--font-text);
}
/* English page: the text is 24 px shorter than the Italian one, so the space below grows by as much
   and the title ends up at the same height at the end of the page (two columns only). */
@media (min-width: 861px) {
  .sbobba-panel:lang(en) { padding-bottom: calc(clamp(36px, 3.4vw, 52px) + 131px); }
}
/* Row 1: the logo and step 1 (Carica). Row 2: the title and the text beside steps 2 to 4, spread over
   the height of the text, so that step 2 starts level with the title. At the end of the page step 1
   stays above, under the bar, and no step shows cut. */
.sbobba-logo { grid-area: logo; display: block; width: min(100%, 320px); height: auto; filter: invert(1); }
.sbobba-copy { grid-area: copy; }
.sbobba-flow { grid-area: flow; display: grid; grid-template-rows: subgrid; }
.sbobba-flow > .flow-step { align-self: end; }
.flow-rest { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.sbobba-copy h2 {
  margin-top: 0;
  font-family: "BDO Grotesk", var(--font-display);
  font-size: var(--t-section);
  font-weight: 500;
  font-stretch: 100%;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: none;
}
.sbobba-copy p { margin-top: 0.9em; line-height: 1.55; color: #cfcfcf; }
.sbobba-copy p:first-of-type { font-size: var(--t-lead); color: #fff; }
.sbobba-copy mark { padding: 0 0.15em; background: var(--lime); color: #000; }
.flow-step { padding: 12px 16px; border: 1px solid #2a2a2a; background: #111; opacity: 0.45; transition: opacity 0.3s, border-color 0.3s; }
.flow-step.is-on, .flow-step.was-on { opacity: 1; }
.flow-step.is-on { border-color: var(--lime); }
.flow-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1rem; font-weight: 500; }
.flow-num { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; font-size: 0.75rem; }
.flow-tag { margin-left: auto; padding: 3px 8px; background: var(--lime); color: #000; font-size: 0.75rem; font-weight: 500; }
.flow-file { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 8px 12px; background: #1c1c1c; font-size: 0.875rem; color: #cfcfcf; }
.flow-wave { display: flex; align-items: center; gap: 3px; height: 26px; margin-top: 8px; }
.flow-wave span { flex: 1; height: var(--h); background: #fff; opacity: 0.85; }
.flow-step.is-on .flow-wave span { animation: flow-wave 0.9s ease-in-out var(--d) infinite alternate; }
@keyframes flow-wave { to { transform: scaleY(0.35); } }
.flow-lines { display: grid; gap: 5px; margin-top: 10px; }
.flow-lines span { width: 0; height: 6px; background: #fff; opacity: 0.85; transition: width 0.5s steps(8); }
.flow-lines span:nth-child(1) { --w: 96%; }
.flow-lines span:nth-child(2) { --w: 88%; transition-delay: 0.15s; }
.flow-lines span:nth-child(3) { --w: 92%; transition-delay: 0.3s; }
.flow-lines span:nth-child(4) { --w: 58%; transition-delay: 0.45s; }
.flow-step.is-on .flow-lines span, .flow-step.was-on .flow-lines span { width: var(--w); }
/* The lengths sit on the same line as «Riassunto». */
.flow-sizes { display: flex; gap: 6px; }
.flow-sizes span { padding: 2px 9px; border: 1px solid #444; font-size: 0.8125rem; }
.flow-sizes .is-picked { border-color: #fff; background: #fff; color: #000; }

/* The people */
/* Narrower boxes (600 px at most) with taller photos: less of each picture is cut away. Each box is
   centred in its half of the page, at one quarter and three quarters of the width. */
.people { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: var(--gap); margin-top: clamp(22px, 2.6vw, 36px); }
.people .person { width: 100%; max-width: 600px; }
/* Photo on top, so the whole section fits in one view. */
.person { display: flex; flex-direction: column; background: #fff; }
.person-photo { position: relative; height: clamp(240px, 23vw, 340px); overflow: hidden; background: var(--mist); }
/* --y moves the crop up or down for each photo. */
.person-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--y, 30%); }

.person-text { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(22px, 2.4vw, 34px); }
.person-text h3 { font-size: var(--t-box); line-height: 1.05; }
.person-role { margin-top: 0.3em; font-weight: 600; color: var(--blue-europe); }
.person-text p:not(.person-role) { margin-top: 0.8em; color: var(--slate); }
/* Same as the strong paragraph of Sicurezza e dati (.panel-strong). */
.network-lead { margin-top: 0 !important; font-size: 1rem; font-weight: 500; color: var(--ink) !important; }

/* One answer to the mouse for every white box that is read (17/11/2026): sky border, 4 px up, soft
   shadow. It is the same on the Home, on the services, on Sicurezza e dati and on the people. Boxes
   that already move by themselves (paths, network, SBOBBA, products) and the contact form stay still.
   The box of the Home that lights up in turn takes border and shadow only: it lifts under the mouse,
   or the two boxes would jump up and down by themselves. */
.way, .svc-card, .pair .panel { border: 1px solid transparent; }
.way, .svc-card, .pair .panel, .person { transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.way.is-active { border-color: var(--sky); box-shadow: 0 30px 60px -36px rgb(0 51 153 / 0.45); }
@media (hover: hover) {
  .way:hover, .svc-card:hover, .pair .panel:hover, .person:hover { border-color: var(--sky); transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgb(0 51 153 / 0.45); }
  /* The people's boxes have no border of their own: it would make them 2 px taller, and their section
     fits its view by a few pixels. The same sky line is drawn as a ring around the box. */
  .person:hover { box-shadow: 0 0 0 1px var(--sky), 0 30px 60px -36px rgb(0 51 153 / 0.45); }
}

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--gap); align-items: start; }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field input, .field textarea {
  padding: 0.8em 0.9em;
  border: 1px solid #c9d5f0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 9em; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue-europe); outline-offset: 0; border-color: var(--blue-europe); background: #fff; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b3261e; }
.field-error { font-size: 0.8125rem; color: #b3261e; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 0.875rem; line-height: 1.45; color: var(--slate); }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue-europe); }
.consent a { color: var(--blue-europe); }
.contact-form .btn { justify-self: start; border: 0; font-family: inherit; cursor: pointer; }
.contact-form .btn:disabled { background: var(--mist); color: var(--slate); cursor: not-allowed; }
.form-status:empty { display: none; }
/* Named through the form, or the grey of the paragraphs of a box would win over the white. */
.contact-form .form-status { padding: 14px 16px; background: var(--blue-europe); color: #fff; font-size: 0.9375rem; }
.contact-form .form-status.is-error { background: #b3261e; }
/* A field that people do not see and automatic programs fill in: a request that has it is dropped. */
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-direct { background: var(--blue-europe); color: #fff; }
.contact-direct h2 { color: #fff; }
.contact-direct p { color: #dbe6ff; }
.direct-list { display: grid; gap: 10px; margin-top: 1.2em; }
.direct-list a, .direct-list span { color: #fff; }

/* Footer */
/* Footer: a framed panel in the site's light blue that closes every page, with the Brescia AI
   symbol faint in the corner. */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px clamp(32px, 5vw, 80px);
  margin-top: var(--gap);
  padding: clamp(36px, 4vw, 60px) var(--gutter) clamp(20px, 2.4vw, 30px);
  background: var(--mist);
  color: var(--ink);
}
.footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(-90px, -5vw, -30px);
  bottom: clamp(-110px, -7vw, -50px);
  width: clamp(200px, 20vw, 320px);
  aspect-ratio: 1;
  background: url(../img/logo.svg) center / contain no-repeat;
  opacity: 0.08;
}
.footer-about { max-width: 30em; }
.footer-about p { margin-top: 0.8em; font-family: var(--font-display); font-size: calc(clamp(1.25rem, 1.7vw, 1.7rem) * var(--display-scale, 1)); line-height: 1.12; letter-spacing: var(--display-tracking); text-transform: uppercase; }
.footer-about .btn { margin-top: 1.3em; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 0.9375rem; }
.footer-col a, .footer-col span { color: var(--slate); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-head { margin-bottom: 2px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-europe); }
.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid rgb(0 51 153 / 0.14);
  font-size: 0.8125rem;
  color: var(--slate);
}
.footer-legal a { color: var(--slate); }
.footer-legal a:hover { color: var(--ink); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* Exists only in the test */

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 2px;
    padding: 14px var(--gutter);
    background: var(--deep);
    font-size: 1rem;
  }
  .nav.is-open { display: flex; }
  .hero { min-height: max(calc(100svh - 2 * var(--frame)), 620px); }

  .stickybar-nav { display: none; }

  .ways { grid-template-columns: 1fr; }

  .network { flex-direction: column-reverse; align-items: stretch; min-height: 0; }
  .net-stage { position: relative; inset: auto; height: 340px; margin-top: var(--gap); }
  .net-tag { font-size: 0.75rem; }
  .network-box { width: 100%; }

  .security{ min-height: 0; }
  .security-copy { width: 100%; }
  .security-map { position: relative; inset: auto; height: auto; aspect-ratio: 70 / 65; order: 2; margin-top: 24px; }

  .pair, .people, .contact{ grid-template-columns: 1fr; }
  .chain { flex-direction: column; align-items: center; }
  .chain-step { flex-direction: column; gap: 10px; width: auto; }
  .chain-icon { width: 64px; height: 64px; }
  .chain-icon svg { width: 34px; height: 34px; }
  .chain-link { flex: none; width: 8px; height: 24px; margin: 6px 0; background: repeating-linear-gradient(180deg, var(--mist) 0 8px, transparent 8px 12px); }
  .chain-link.is-on { background: repeating-linear-gradient(180deg, var(--sky) 0 8px, transparent 8px 12px); }
  .chain-span { margin: 20px 0 0; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .legal-table > div { grid-template-columns: 1fr; gap: 4px; }
   .sbobba-panel { grid-template-columns: 1fr; }
  /* On one column the space below stays what it was: the extra 17 px serve the two-column view only. */
  .sbobba-panel { grid-template-areas: "logo" "copy" "flow"; padding-bottom: calc(clamp(36px, 3.4vw, 52px) + 90px); }
  .sbobba-flow { grid-template-rows: none; gap: 8px; }
  .flow-rest { gap: 8px; }
  .svc-cards, .crew { grid-template-columns: 1fr; }
  .pool-slots, .pool-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip { min-height: 52px; padding: 0.4em 0.5em; font-size: 0.875rem; }
  .person-photo { height: 240px; }
  .index { grid-template-columns: 1fr; gap: 10px; }
  .index-step .art { width: 168px; }
  .index-link { width: 8px; height: 22px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--mist) 0 8px, transparent 8px 12px); }
  .index-link.is-on { background: repeating-linear-gradient(180deg, var(--sky) 0 8px, transparent 8px 12px); }
  .index-span { margin: 16px 0 0; }
  .show { position: relative; top: auto; min-height: 0; grid-template-columns: 1fr; }
  .show.is-clinistack .show-copy { order: 0; }
  .show-art .mock, .show.is-clinistack .show-art .mock { transform: none; }

  .flow-tag { margin-left: 0; }
  .startup-table th, .startup-table td { display: block; width: auto; padding-right: 0; }
  .startup-table th { padding-bottom: 0.2em; border-bottom: 0; }
  .startup-table td { padding-top: 0; }
  .legal-head { display: none !important; }

  /* Links easy to tap (17/11/2026): rows of 44 px in the open menu and of 40 px in the footer. The
     Menu button keeps its look and gains an invisible margin around it. */
  .nav a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .nav a[aria-current="page"]::after { bottom: 3px; }
  .nav .lang { min-height: 44px; }
  .menu-toggle { position: relative; }
  .menu-toggle::after { content: ""; position: absolute; inset: -7px -4px; }
  .footer-col { gap: 0; }
  .footer-col a, .footer-legal-links a { display: inline-flex; align-items: center; min-height: 40px; }
  .footer-head { margin-bottom: 4px; }
  .footer-legal-links { gap: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .px-arrow, .btn, .way, .svc-card, .pair .panel, .person, .stickybar, .chain-icon, .chain-span { transition: none; }
  .way:hover, .svc-card:hover, .pair .panel:hover, .person:hover { transform: none; }

}

@media (max-width: 860px) {
  .hero-page { min-height: 540px; }
}
@media (prefers-reduced-motion: reduce) {
   .flow-lines span, .flow-step { transition: none; }
  .flow-step.is-on .flow-wave span { animation: none; }
}
