/* Anteprima MC: impaginazione editoriale e colori ispirati alla prima era dei personal computer. */
:root {
  --bg: #f6f4ee;
  --bg-2: #e9ecf7;
  --ink: #14213b;
  --muted: #526078;
  --soft: #283752;
  --line: rgba(20, 33, 59, .18);
  --line-strong: rgba(20, 33, 59, .34);
  --panel: #ffffff;
  --panel-2: #ffffff;
  --green: #3157dc;
  --cyan: #0a9eb1;
  --amber: #f2714c;
  --rose: #db4f7f;
  --radius: 5px;
  --header: 78px;
  color-scheme: light;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 7%, rgba(248, 170, 132, .16), transparent 27rem),
    radial-gradient(circle at 6% 16%, rgba(102, 141, 244, .12), transparent 32rem),
    var(--bg);
}
body::before {
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 33, 59, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 59, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
body::after { display: none; }
main, footer { position: relative; }
::selection { color: #fff; background: #3157dc; }
:focus-visible { outline: 3px solid #f2714c; outline-offset: 3px; }

.container { width: min(1280px, calc(100% - 72px)); }
.eyebrow {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .76rem;
  letter-spacing: .075em;
}
.site-header {
  background: rgba(248, 247, 242, .91);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.mark {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.mark img { width: 100%; height: 100%; }
.brand-copy strong {
  color: var(--ink);
  font-size: .96rem;
  letter-spacing: .075em;
}
.brand-copy span { font-size: .73rem; letter-spacing: .08em; }
.nav-links a { color: var(--ink); font-weight: 650; }
.nav-links a:hover { color: var(--green); background: #e5eaff; }
.menu-toggle {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: none;
}
.menu-toggle:hover, .menu-toggle.is-open {
  background: #e5eaff;
  border-color: var(--green);
  box-shadow: none;
}
.btn {
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, .65);
  font-weight: 750;
  box-shadow: 4px 4px 0 rgba(20, 33, 59, .12);
}
.btn:hover {
  transform: translate(-2px, -2px);
  border-color: var(--ink);
  background: #fff;
  box-shadow: 6px 6px 0 rgba(20, 33, 59, .16);
}
.btn-primary {
  color: white;
  border-color: var(--green);
  background: var(--green);
  box-shadow: 5px 5px 0 #a5b7f3;
}
.btn-primary:hover {
  color: white;
  border-color: #2347c8;
  background: #2347c8;
  box-shadow: 7px 7px 0 #a5b7f3;
}
.btn-primary span { margin-left: 3px; font-size: 1.15em; }

.hero {
  min-height: min(920px, 100svh);
  padding: calc(var(--header) + 66px) 0 78px;
}
.hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(36px, 5vw, 82px);
}
.hero-copy h1 {
  display: inline-grid;
  width: max-content;
  max-width: 750px;
  margin-top: 22px;
  font-size: clamp(3.2rem, 5.5vw, 5.6rem);
  line-height: .94;
  letter-spacing: -.063em;
}
.hero-title-main {
  white-space: nowrap;
  overflow-wrap: normal;
  color: var(--ink);
}
.title-period { color: var(--amber); }
.hero-title-sub {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  color: var(--green);
  background: none;
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0;
}
.hero-title-word-gap { flex: 0 0 .55em; }
.hero-statement {
  max-width: 560px;
  margin: 48px 0 0;
  padding-top: 26px;
  border-top: 3px solid var(--amber);
  font-size: clamp(2rem, 3.2vw, 3.45rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.065em;
}
.hero-copy .lead {
  max-width: 580px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.65;
}
.hero-actions { margin-top: 32px; }
.trust-row { margin-top: 40px; gap: 0; }
.chip {
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, .58);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .77rem;
}
.chip + .chip { border-left: 0; }
.chip b { margin-right: 7px; color: var(--amber); }

.lab {
  min-height: 620px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  color: #14213b;
  background:
    radial-gradient(circle at 14% 30%, rgba(174, 199, 255, .55), transparent 36%),
    radial-gradient(circle at 83% 43%, rgba(255, 195, 162, .56), transparent 38%),
    linear-gradient(135deg, #e9eeff 0%, #e6f5eb 55%, #fff0df 100%);
  box-shadow: 13px 15px 0 #e4cbd0, 0 34px 74px rgba(18, 33, 65, .15);
  --ink: #14213b;
  --soft: #31415e;
  --muted: #4c5b74;
  --green: #3157dc;
  --line: rgba(20, 33, 59, .2);
}
.lab::before {
  opacity: .55;
  background:
    linear-gradient(rgba(49, 73, 117, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 73, 117, .1) 1px, transparent 1px);
  background-size: 32px 32px;
}
.lab::after { display: none; }
.lab-window-bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(20, 33, 59, .17);
  color: #31415e;
  background: rgba(255, 255, 255, .7);
  font: 700 .68rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
}
.lab-brand-icon { width: 26px; height: 26px; }
.binary-art {
  position: absolute;
  z-index: 2;
  top: 8%;
  left: 0;
  width: 100%;
  height: 84%;
  opacity: .13;
  pointer-events: none;
}
.lab-overlay { inset: 68px 18px 18px; }
.terminal, .metric, .lab-controls {
  border-color: rgba(20, 33, 59, .23);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px);
}
.terminal { width: min(440px, 100%); background: rgba(255, 247, 237, .88); }
.terminal strong { color: #3157dc; }
.lab-controls { background: rgba(235, 242, 255, .92); }
.lab-controls button {
  border-radius: 3px;
  border-color: rgba(20, 33, 59, .2);
  color: #263752;
  background: rgba(255, 255, 255, .74);
}
.lab-controls button:hover, .lab-controls button.is-active {
  border-color: #3157dc;
  color: #fff;
  background: #3157dc;
  box-shadow: none;
}

section:not(.hero) { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 38px; }
.section-head h2, .method-panel h2, .contact-box h2 { letter-spacing: -.06em; }
.section-head h2 { max-width: 800px; }
#software { background: rgba(255, 255, 255, .68); }
.service-grid, .case-grid { gap: 16px; }
.card {
  min-height: 276px;
  padding: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: #eef2ff;
  box-shadow: 6px 6px 0 rgba(20, 33, 59, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:nth-child(3n + 2) { background: #fff1e9; }
.card:nth-child(3n) { background: #eaf8ee; }
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 rgba(20, 33, 59, .14); }
.card::before { height: 6px; background: var(--green); opacity: 1; }
.card:nth-child(3n + 2)::before { background: var(--amber); }
.card:nth-child(3n)::before { background: #37b786; }
.card .num { color: var(--green); font-size: 1rem; font-weight: 900; }
.card h3 { margin-top: 46px; font-size: 1.43rem; letter-spacing: -.035em; }
.card p { color: var(--muted); }

#metodo { background: #e9eeff; }
.method { gap: 18px; }
.method-panel {
  padding: 34px;
  border: 1.5px solid #102244;
  border-radius: 4px;
  background: #142646;
  --ink: #fff;
  --muted: #ccdbf7;
  --green: #a9c3ff;
}
.method-panel h2 { color: white; }
.method-panel p { color: #ccdbf7; }
.step {
  border: 1px solid rgba(20, 33, 59, .2);
  border-radius: 4px;
  background: #fff;
}
.step b {
  color: #fff;
  border-radius: 4px;
  background: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.step:nth-child(2) b { background: var(--amber); }
.step:nth-child(3) b { background: #33a985; }
.step:nth-child(4) b { background: #9b67c7; }
.step p { color: var(--muted); }

#soluzioni { background: #f8f6f1; }
.case {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 4px;
  background: #fff;
}
.case:nth-child(3n + 2) { border-left-color: var(--amber); }
.case:nth-child(3n) { border-left-color: #30a986; }
.case h3 { letter-spacing: -.035em; }
.case p { color: var(--muted); }
.contact-section { background: #fee4d3; }
.contact-box {
  padding: clamp(24px, 4vw, 54px);
  gap: 48px;
  border: 1.5px solid #dc6547;
  border-radius: 5px;
  color: var(--ink);
  background: #ff8d6b;
  box-shadow: 11px 11px 0 #f9c8b0;
}
.contact-box .eyebrow { color: #292c50; }
.contact-box h2 { max-width: 660px; }
.contact-box p { color: #27324c; }
.contact-box .btn-primary { border-color: var(--ink); background: var(--ink); box-shadow: 5px 5px 0 #fbc6b4; }
.contact-box .btn-primary:hover { background: #243965; box-shadow: 7px 7px 0 #fbc6b4; }
.contact-details { font-style: normal; }
.detail {
  border-color: rgba(20, 33, 59, .28);
  background: rgba(255, 255, 255, .6);
}
.detail span { color: #39445c; }
.detail a { color: var(--ink); font-weight: 750; }
footer { color: var(--muted); background: #f8f6f1; }
.privacy-trigger { color: var(--ink); background: white; }
.privacy-trigger:hover { background: #e4eaff; border-color: var(--green); }
.privacy-dialog {
  --ink: #14213b;
  --muted: #526078;
  --soft: #283752;
  --green: #3157dc;
  --line: rgba(20, 33, 59, .18);
  color-scheme: light;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #f8f7f2;
  box-shadow: 9px 11px 0 #ccd7f3, 0 28px 80px rgba(20, 33, 59, .24);
}
.privacy-dialog::backdrop { background: rgba(20, 33, 59, .48); }
.privacy-panel { background: linear-gradient(135deg, #f7f8ff, #fffaf3); }
.privacy-panel header { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.privacy-panel .eyebrow, .privacy-panel h3 { color: var(--green); }
.privacy-panel h2 { color: var(--ink); }
.privacy-panel p, .privacy-panel li { color: var(--soft); line-height: 1.55; }
.privacy-panel a { color: #2347c8; }
.privacy-panel section { border-top: 0; }
.privacy-panel section + section { padding-top: 14px; border-top: 1px solid var(--line); }
.privacy-close { color: var(--ink); border-color: var(--line); background: #fff; }
.privacy-close:hover { border-color: var(--green); background: #e5eaff; }
.reveal { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .container { width: min(760px, calc(100% - 42px)); }
  .hero { min-height: 0; padding-top: calc(var(--header) + 60px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 740px; font-size: clamp(3.2rem, 7vw, 5.6rem); }
  .lab { min-height: 560px; }
  .nav-links {
    border-color: var(--line);
    background: #f8f7f2;
  }
  .nav-links a { color: var(--ink); }
  .nav-cta-mobile { color: var(--ink); border-color: var(--green); background: #e6ebff; }
}
@media (max-width: 640px) {
  :root { --header: 68px; }
  .container { width: calc(100% - 28px); }
  .hero { padding-top: calc(var(--header) + 50px); padding-bottom: 58px; }
  .hero .container { width: calc(100% - 28px); padding-inline: 0; margin-inline: auto; }
  .hero-grid, .hero-copy, .trust-row, .hero-actions { width: 100%; max-width: none; }
  .brand-copy { display: block; }
  .brand-copy strong { font-size: .82rem; }
  .brand-copy span { font-size: .68rem; }
  .hero-copy h1 { font-size: clamp(2rem, 9.8vw, 3.8rem); }
  .hero-title-sub { margin-top: 10px; font-size: clamp(1.3rem, 5.5vw, 1.8rem); }
  .hero-statement { margin-top: 32px; padding-top: 20px; font-size: clamp(2rem, 8.2vw, 2.8rem); }
  .hero-copy .lead { margin-top: 20px; }
  .hero-actions .btn { width: 100%; }
  .trust-row { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
  .chip { justify-content: flex-start; }
  .chip + .chip { border-left: 1px solid var(--line); }
  .chip:nth-child(n + 3) { border-top: 0; }
  .chip:nth-child(even) { border-left: 0; }
  .lab { width: 100%; max-width: none; min-height: 650px; margin: 0; aspect-ratio: auto; overflow: hidden; }
  .lab-overlay {
    inset: 62px 12px 12px;
    top: 62px;
    width: auto;
    display: grid;
    grid-template-rows: auto 1fr auto;
    transform: none;
  }
  .lab-top { margin: 0; }
  .lab .terminal { padding: 10px 12px; }
  .lab .terminal p { line-height: 1.25; }
  .lab-bottom-stack { align-self: end; }
  .lab-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-bottom { display: none; }
  .binary-art { top: 16%; }
  .section-head { gap: 20px; }
  .contact-box { gap: 30px; box-shadow: 6px 6px 0 #f9c8b0; }
}
@media (max-width: 390px) {
  .lab-window-bar { font-size: .58rem; }
}
