/* Layout: hero video a tutta larghezza, poi fasce alternate chiaro / blu notte; ogni linea implantare ha il suo colore */
:root {
  --bg: #ffffff;
  --bg-alt: #eef5fb;      /* ghiaccio */
  --surface: #ffffff;
  --ink: #1d2a33;         /* antracite del logo */
  --muted: #566573;
  --line: #d6e1ea;
  --brand: #0a72c2;       /* blu "BIO" */
  --brand-ink: #ffffff;
  --cyan: #19b8f0;
  --night: #081a2b;       /* blu notte delle fasce scure */
  --night-2: #0d2b47;
  --night-ink: #eaf3fa;
  --night-muted: #9fb6c9;
  --tc: #0a72c2;          /* linea TC */
  --cy: #0b9aa8;          /* linea CY */
  --sh: #12a05c;          /* linea SH */
  --zm: #6a4fd6;
  --it-green: #00a651;
  --it-white: #e6e9ec;
  --it-red: #e3101e;
  --ok: #12a05c;
  --warn: #c4531a;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1520; --bg-alt: #0f1d2b; --surface: #132434; --ink: #e6eef5; --muted: #9db0c0; --line: #213547;
    --brand: #3d9df0; --brand-ink: #04111d; --tc: #3d9df0; --cy: #2cc3cf; --sh: #3ccf86; --zm: #a597ff; --it-white: #3a4a57;
    --ok: #3ccf86; --warn: #f08a4b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1520; --bg-alt: #0f1d2b; --surface: #132434; --ink: #e6eef5; --muted: #9db0c0; --line: #213547;
  --brand: #3d9df0; --brand-ink: #04111d; --tc: #3d9df0; --cy: #2cc3cf; --sh: #3ccf86; --zm: #a597ff; --it-white: #3a4a57;
  --ok: #3ccf86; --warn: #f08a4b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-display); font-variation-settings: "wdth" 112; line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: linear-gradient(90deg, var(--it-green) 33%, var(--it-white) 33% 66%, var(--it-red) 66%); }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--font-body); padding: 13px 22px; border-radius: 999px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.light { background: #ffffff; border-color: #ffffff; color: #0a3a63; }
.btn.outline-light { background: transparent; border-color: #ffffff80; color: #ffffff; }
.tricolore { display: flex; height: 4px; }
.tricolore i { flex: 1; }
.tricolore i:nth-child(1) { background: var(--it-green); }
.tricolore i:nth-child(2) { background: var(--it-white); }
.tricolore i:nth-child(3) { background: var(--it-red); }

/* header sopra il video */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: #ffffff; }
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; background: #fffffff2; backdrop-filter: blur(10px); color: #1d2a33; box-shadow: 0 1px 0 #d6e1ea; }
header .wrap { display: flex; align-items: center; gap: 28px; padding-block: 10px; }
.logo-img { display: block; text-decoration: none; flex: none; }
.logo-img img { height: 68px; width: auto; }
@media (max-width: 600px) { .logo-img img { height: 42px; } header .wrap { gap: 12px; } }
nav { display: flex; gap: 24px; margin-left: auto; }
nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: #4a5966; }
nav a:hover { color: #0a72c2; }
header .btn { padding: 10px 20px; font-size: 14px; white-space: nowrap; background: #0a72c2; border-color: #0a72c2; color: #ffffff; }
@media (max-width: 900px) { nav { display: none; } header .btn { margin-left: auto; } }

/* hero video */
.hero { position: relative; background: var(--night); color: #ffffff; overflow: hidden; isolation: isolate; }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #061424f2 0%, #061424c0 38%, #06142400 70%), linear-gradient(0deg, #061424cc 0%, #06142400 35%); }
.hero .wrap { padding-block: 120px 96px; min-height: min(720px, 88vh); display: flex; flex-direction: column; justify-content: center; }
.hero .eyebrow { color: var(--cyan); }
.hero h1 { font-size: clamp(38px, 6vw, 76px); font-weight: 800; max-width: 14ch; margin-top: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--cyan), #6fd6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; color: #c9d8e4; max-width: 50ch; margin-top: 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.vid-toggle { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 20px; z-index: 1; font: 500 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #ffffff; background: #ffffff1f; border: 1px solid #ffffff40; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.illus { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); bottom: 22px; z-index: 1; font: 400 11px var(--font-mono); color: #ffffff80; }

/* numeri */
.facts { background: linear-gradient(90deg, var(--brand), #0a5aa0 60%, var(--night-2)); color: #ffffff; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 28px; }
.facts div { min-width: 0; }
.facts dt { font: 500 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #cfe6fa; }
.facts dd { margin: 4px 0 0; font: 800 26px var(--font-display); font-variation-settings: "wdth" 112; }
@media (max-width: 760px) { .facts .wrap { grid-template-columns: 1fr 1fr; } }

/* sezioni */
section.block { padding-block: 96px; }
section.alt { background: var(--bg-alt); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; margin-top: 12px; }
.sec-head p { color: var(--muted); max-width: 46ch; }

/* linee */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.line { --c: var(--tc); background: var(--surface); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px #0a3a6340; transition: transform .2s; }
.line:hover { transform: translateY(-4px); }
.line.cy { --c: var(--cy); }
.line.sh { --c: var(--sh); }
.line .img { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--bg-alt); }
.line .img img { width: 100%; height: 100%; object-fit: cover; }
.line .badge { position: absolute; left: 16px; top: 16px; font: 500 12px var(--font-mono); letter-spacing: .08em; background: var(--c); color: #ffffff; padding: 5px 10px; border-radius: 999px; }
.line .body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; border-top: 4px solid var(--c); }
.line h3 { font-size: 22px; font-weight: 800; }
.line p { color: var(--muted); font-size: 15px; }
.line dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.line dt { color: var(--muted); }
.line dd { margin: 0; font-family: var(--font-mono); font-size: 13px; }
.line .actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.line .actions .btn { padding: 9px 16px; font-size: 14px; background: var(--c); border-color: var(--c); }
.line .actions .btn.ghost { background: transparent; color: var(--c); }
@media (max-width: 980px) { .lines { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* matrice misure */
.matrix-band { background: radial-gradient(120% 140% at 100% 0%, var(--night-2) 0%, var(--night) 60%); color: var(--night-ink); }
.matrix-band .eyebrow { color: var(--cyan); }
.matrix-band .sec-head p { color: var(--night-muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab { --c: var(--cyan); font: 600 14px var(--font-body); padding: 9px 16px; border-radius: 999px; border: 1px solid #ffffff33; background: transparent; color: var(--night-ink); cursor: pointer; }
.tab[data-k="CY"] { --c: #2cc3cf; }
.tab[data-k="SH"] { --c: #3ccf86; }
.tab[aria-selected="true"] { background: var(--c); color: #04111d; border-color: var(--c); }
.table-scroll { overflow-x: auto; border-radius: 10px; }
table.sizes { border-collapse: collapse; font-family: var(--font-mono); font-size: 14px; font-variant-numeric: tabular-nums; min-width: 560px; width: 100%; background: #ffffff08; }
.sizes th, .sizes td { border: 1px solid #ffffff1a; padding: 13px; text-align: center; }
.sizes thead th { color: var(--night-muted); font-weight: 500; }
.sizes tbody th { color: var(--night-muted); font-weight: 500; text-align: left; white-space: nowrap; }
.sizes td.on span { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--sel, var(--cyan)); box-shadow: 0 0 12px var(--sel, var(--cyan)); }
.sizes td.off { color: #ffffff30; }
.note { margin-top: 16px; font-size: 13px; color: var(--night-muted); }

/* sezioni con foto */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.rev .photo { order: 2; }
.photo { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 11; max-width: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--it-green) 33%, var(--it-white) 33% 66%, var(--it-red) 66%); }
.split .txt { min-width: 0; }
.split h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin-top: 12px; }
.split p { color: var(--muted); margin-top: 16px; max-width: 52ch; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.rev .photo { order: 0; } .split + .split { margin-top: 64px; } }

/* eIFU */
.eifu { background: linear-gradient(120deg, #0b9aa8, var(--brand)); color: #ffffff; }
.eifu .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-block: 48px; }
.eifu h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.eifu p { color: #e3f4fb; margin-top: 8px; max-width: 60ch; font-size: 15px; }

/* modulo */
.order .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.order aside p { color: var(--muted); margin-top: 16px; max-width: 42ch; }
.order aside h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; margin-top: 12px; }
.contact-list { margin-top: 28px; display: grid; gap: 14px; font-size: 15px; }
.contact-list span { display: block; font: 500 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
form { background: var(--surface); border-radius: 16px; padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; box-shadow: 0 1px 0 var(--line), 0 24px 50px -30px #0a3a6355; border-top: 5px solid var(--brand); }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 500; }
input, select, textarea { font: 15px var(--font-body); padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-alt); color: var(--ink); width: 100%; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); font-weight: 400; }
.check input { width: auto; margin-top: 4px; flex: none; }
.check a { color: var(--brand); }
.form-msg { grid-column: 1 / -1; font-size: 14px; color: var(--ok); }
.form-msg.err { color: var(--warn); }
@media (max-width: 900px) { .order .wrap { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 540px) { form { grid-template-columns: 1fr; padding: 22px; } }

/* footer */
footer { background: var(--night); color: var(--night-muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 60px 32px; }
footer h4 { font: 500 12px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--night-ink); margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--night-ink); }
footer .plate { display: inline-block; background: #ffffff; border-radius: 12px; padding: 6px 14px; margin-bottom: 18px; }
footer .plate img { width: 300px; max-width: 100%; height: auto; }
.company { display: grid; gap: 2px; font-size: 13px; }
.legal { grid-column: 1 / -1; border-top: 1px solid #ffffff1a; padding-top: 20px; font-size: 12.5px; display: grid; gap: 6px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.linkbtn:hover { color: var(--night-ink); }
@media (max-width: 800px) { footer .wrap { grid-template-columns: 1fr; } }

/* accesso professionisti */
.gate { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: #061424d9; backdrop-filter: blur(8px); padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.gate-card { background: var(--surface); color: var(--ink); border-radius: 16px; max-width: 500px; width: 100%; overflow: hidden; }
.gate-card .top { background: #ffffff; padding: 26px 30px 22px; display: flex; justify-content: center; border-bottom: 1px solid #d6e1ea; }
.gate-card .top img { width: 100%; max-width: 360px; height: auto; }
.gate-card .inner { padding: 28px 30px 30px; display: grid; gap: 16px; }
.gate-card h2 { font-size: 22px; font-weight: 800; }
.gate-card p { color: var(--muted); font-size: 14.5px; }
.gate-card .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.gate-card .out { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .gate-card { animation: rise .4s ease-out; } @keyframes rise { from { transform: translateY(14px); opacity: .5; } } }

@media (prefers-reduced-motion: reduce) { .btn, .line { transition: none; } }

/* home: card verso le pagine secondarie */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why a { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 18px 40px -26px #0a3a6340; transition: transform .2s; min-width: 0; }
.why a:hover { transform: translateY(-4px); }
.why .pic { aspect-ratio: 16 / 10; max-width: 100%; }
.why .pic img { width: 100%; height: 100%; object-fit: cover; }
.why .t { padding: 18px 20px 22px; display: grid; gap: 6px; flex: 1; }
.why h3 { font-size: 18px; font-weight: 800; }
.why p { color: var(--muted); font-size: 14.5px; }
.why .more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 14px; color: var(--brand); }
@media (max-width: 980px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .why { grid-template-columns: 1fr; } }
nav a[aria-current="page"] { color: #0a72c2; font-weight: 600; }

/* pagine secondarie */
.page-hero { position: relative; isolation: isolate; background: var(--night); color: #ffffff; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #061424f0 0%, #061424b0 50%, #06142460 100%); }
.page-hero .wrap { padding-block: 88px 72px; }
.page-hero .eyebrow { color: var(--cyan); }
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin-top: 14px; max-width: 18ch; }
.page-hero p { color: #c9d8e4; font-size: 18px; max-width: 56ch; margin-top: 16px; }
.prose { max-width: 70ch; display: grid; gap: 16px; color: var(--muted); }
.prose h2 { color: var(--ink); font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-top: 12px; }
.prose h3 { color: var(--ink); font-size: 19px; font-weight: 700; margin-top: 8px; }
.placeholder { border-left: 4px solid var(--warn); background: var(--bg-alt); padding: 12px 16px; border-radius: 0 8px 8px 0; color: var(--ink); font-size: 14.5px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.values div { background: var(--surface); border-radius: 14px; padding: 24px; border-top: 4px solid var(--c, var(--brand)); box-shadow: 0 1px 0 var(--line); min-width: 0; }
.values h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.values p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.cta-band { background: linear-gradient(120deg, var(--brand), #0a4f8c); color: #ffffff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-block: 48px; }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.cta-band p { color: #dbeafa; margin-top: 6px; }
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border-radius: 12px; padding: 18px 22px; box-shadow: 0 1px 0 var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.faq details p { color: var(--muted); margin-top: 10px; }
.docs-search { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; background: var(--surface); padding: 22px; border-radius: 14px; box-shadow: 0 1px 0 var(--line); margin-bottom: 28px; }
.docs-search .field { flex: 1 1 200px; }
.doc-table-wrap { overflow-x: auto; }
table.docs { border-collapse: collapse; width: 100%; min-width: 620px; background: var(--surface); border-radius: 14px; overflow: hidden; font-size: 15px; }
.docs th, .docs td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.docs thead th { font: 500 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
.docs .pill { display: inline-block; font: 500 12px var(--font-mono); padding: 4px 10px; border-radius: 999px; color: #ffffff; background: var(--c); }
.docs .soon { color: var(--muted); font-size: 13px; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cards2 > div { background: var(--surface); border-radius: 14px; padding: 26px; box-shadow: 0 1px 0 var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.cards2 h3 { font-size: 19px; font-weight: 800; }
.cards2 p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .cards2 { grid-template-columns: 1fr; } }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.legal-nav a { text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.legal-sec { scroll-margin-top: 110px; padding-bottom: 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
section[id], [id].split { scroll-margin-top: 100px; }

/* linee INTUS / INTUS-K */
.lines.two { grid-template-columns: repeat(2, 1fr); }
.line.intus { --c: var(--tc); }
.line.intusk { --c: var(--cy); }
.line .img.product { aspect-ratio: 16 / 10; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, #ffffff 0%, #e4eef7 55%, #cddfee 100%); }
.line .img.product { overflow: hidden; }
.line .img.product img { position: absolute; inset: 7% 0; margin: auto; width: 100%; height: 86%; object-fit: contain; filter: drop-shadow(0 18px 18px #0a3a6333); }
.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.feat li { display: flex; gap: 8px; }
.feat li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--c); }
.note-pack { margin-top: 28px; color: var(--muted); font-size: 14.5px; max-width: 80ch; }
table.codes td { font-size: 12.5px; white-space: nowrap; }
table.codes td.on { color: var(--night-ink); }
table.codes td.on::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sel, var(--cyan)); box-shadow: 0 0 8px var(--sel, var(--cyan)); margin-right: 7px; vertical-align: 1px; }
.tab[data-k="INTUSK"] { --c: #2cc3cf; }
@media (max-width: 860px) { .lines.two { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.line.intusz { --c: var(--sh); }
.line.intuszmk { --c: var(--zm); }
.line .fam { position: absolute; right: 16px; top: 16px; font: 500 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #0a3a63; background: #ffffffcc; padding: 5px 10px; border-radius: 999px; }
.tab[data-k="INTUSZ"] { --c: #3ccf86; }
.tab[data-k="INTUSZMK"] { --c: #a597ff; }
.lines.three { grid-template-columns: repeat(3, 1fr); }
.line { border-top: 0; }
.line .body { border-top-color: var(--c); }
.line .badge { background: var(--c); }
.line .img.product.duo img { width: 50%; }
.line .img.product.duo img:first-child { left: 0; right: auto; inset-inline: 2% auto; }
.line .img.product.duo img:nth-child(2) { inset-inline: auto 2%; }
.line .actions .btn { background: var(--c); border-color: var(--c); }
.line .actions .btn.ghost { background: transparent; color: var(--c); }
.tab[aria-selected="true"] { background: var(--c); border-color: var(--c); color: #ffffff; }
@media (max-width: 1100px) { .lines.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .lines.three { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* catalogo */
.cat-cta { margin-top: 40px; display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: center; background: linear-gradient(120deg, var(--night), var(--night-2)); color: var(--night-ink); border-radius: 16px; padding: 28px; }
.cat-cta img { border-radius: 6px; box-shadow: 0 20px 40px -12px #000000aa; transform: rotate(-3deg); }
.cat-cta .eyebrow { color: var(--cyan); }
.cat-cta h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; margin-top: 10px; }
.cat-cta p { color: var(--night-muted); margin-top: 8px; }
.cat-cta .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.cat-cta .btn.ghost { color: #ffffff; border-color: #ffffff66; }
@media (max-width: 640px) { .cat-cta { grid-template-columns: 1fr; } .cat-cta img { max-width: 160px; } }
.cat-hero { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; }
.cat-cover { width: 100%; border-radius: 8px; box-shadow: 0 30px 60px -18px #000000cc; transform: rotate(3deg); }
@media (max-width: 760px) { .cat-hero { grid-template-columns: 1fr; } .cat-cover { max-width: 200px; } }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-thumb { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 14px 30px -20px #0a3a6366; transition: transform .2s; }
.cat-thumb:hover { transform: translateY(-4px); }
.cat-thumb img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; }
.cat-thumb span { position: absolute; left: 8px; bottom: 8px; font: 500 11px var(--font-mono); background: #081a2bcc; color: #ffffff; padding: 3px 8px; border-radius: 999px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.cat-view { position: fixed; inset: 0; z-index: 40; background: #050e17f2; display: flex; align-items: center; justify-content: center; gap: 12px; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.cat-view figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.cat-view img { max-height: calc(100% - 40px); max-width: 100%; border-radius: 4px; box-shadow: 0 20px 60px #000000aa; }
.cat-view figcaption { color: #c9d8e4; font: 500 13px var(--font-mono); }
.cv-nav, .cv-close { background: #ffffff1a; border: 1px solid #ffffff33; color: #ffffff; border-radius: 999px; cursor: pointer; font-size: 28px; line-height: 1; width: 48px; height: 48px; flex: none; }
.cv-close { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
@media (max-width: 600px) { .cv-nav { position: absolute; bottom: max(16px, env(safe-area-inset-bottom, 0px)); } .cv-nav.prev { left: 25%; } .cv-nav.next { right: 25%; } .cat-view img { max-height: calc(100% - 110px); } }

/* catalogo sfogliabile in cima alla pagina */
.cat-read { background: radial-gradient(120% 120% at 100% 0%, var(--night-2) 0%, var(--night) 60%); color: var(--night-ink); }
.cat-read .wrap { padding-block: 28px 36px; }
.cr-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.cr-top .eyebrow { color: var(--cyan); }
.cr-top h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin-top: 8px; }
.cr-act { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cr-count { font: 500 13px var(--font-mono); color: var(--night-muted); }
.cr-stage { display: flex; align-items: center; justify-content: center; gap: 16px; }
.cr-pages { display: flex; justify-content: center; gap: 4px; min-width: 0; flex: 1; }
.cr-pages img { height: min(72vh, 820px); width: auto; max-width: 100%; aspect-ratio: 210 / 297; object-fit: contain; background: #ffffff; box-shadow: 0 24px 60px -18px #000000cc; cursor: zoom-in; }
.cr-pages.spread img { max-width: 50%; }
.cr-pages.spread img:first-child { border-radius: 4px 0 0 4px; }
.cr-pages.spread img:last-child { border-radius: 0 4px 4px 0; }
.cr-hint { text-align: center; color: var(--night-muted); font-size: 13px; margin-top: 14px; }
.cr-strip { display: flex; gap: 10px; overflow-x: auto; padding: 16px 2px 6px; scrollbar-width: thin; }
.cr-strip .cat-thumb { flex: none; width: 74px; box-shadow: none; border: 2px solid transparent; border-radius: 4px; }
.cr-strip .cat-thumb[aria-current="true"] { border-color: var(--cyan); }
.cr-strip .cat-thumb span { left: 4px; bottom: 4px; font-size: 10px; padding: 1px 6px; }
@media (max-width: 600px) { .cr-stage { gap: 6px; } .cr-stage .cv-nav { position: static; width: 38px; height: 38px; font-size: 22px; } .cr-pages img { height: auto; width: 100%; } }

/* menu su cellulare */
.menu-btn { display: none; flex: none; width: 44px; height: 44px; border: 1px solid #d6e1ea; border-radius: 10px; background: #ffffff; cursor: pointer; padding: 0 11px; flex-direction: column; justify-content: center; gap: 4px; }
.menu-btn i { display: block; height: 2px; border-radius: 2px; background: #1d2a33; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  header .wrap { position: relative; flex-wrap: nowrap; }
  .menu-btn { display: flex; order: 3; }
  header .btn { margin-left: auto; }
  header nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: #ffffff; box-shadow: 0 18px 30px -18px #0a3a6366; border-top: 1px solid #d6e1ea; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px; }
  header nav.open { display: flex; }
  header nav a { padding: 13px 4px; border-bottom: 1px solid #eef3f7; font-size: 17px; }
}
@media (max-width: 420px) { header .btn { padding: 9px 12px; font-size: 13px; } }

/* testi legali */
.legal-sec h3 { margin-top: 24px; }
.legal-sec table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.legal-sec th, .legal-sec td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-sec mark { background: #fff3c4; color: inherit; padding: 0 4px; border-radius: 3px; }
.hp { position: absolute; left: -9999px; }
#reclami, #smaltimento { scroll-margin-top: 110px; }
.legal-sec td, .legal-sec th { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .legal-sec table { display: table; table-layout: fixed; font-size: 13px; }
  .legal-sec th, .legal-sec td { padding: 8px 6px; }
}
