/* 2TICK — sito demo. Token dal BrandBook (Elementor kit del sito attuale).
   Font ospitati in locale (nessuna richiesta a Google: GDPR). */

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Lexend Deca";
  src: url("fonts/lexend-deca-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Colori del logo: verde #00c677 e ciano #09b1cb. Il testo sopra è sempre scuro (6-7:1). */
  --ink: #0f2436;
  --night: #1f3850;        /* blu scuro dell'app (menu laterale): sfondi scuri */
  --night-deep: #0e2130;
  --text: #243b4d;
  --muted: #43586a;
  --paper: #f3fbf8;
  --white: #ffffff;
  --line: #cfe8e1;
  --green: #00c677;        /* logo: sfondi e grafica, mai testo su chiaro */
  --green-d: #007a47;      /* tono scuro del verde del logo: testo e segni su chiaro (5:1) */
  --cyan: #09b1cb;         /* logo: sfondi e grafica */
  --cyan-d: #057184;       /* tono scuro del ciano del logo: link su chiaro (5,4:1) */
  --navy: #1f3850;
  --mint: #00c677;
  --mint50: #e3f8ef;
  --cyan50: #e2f6fa;
  --grad: linear-gradient(120deg, #09b1cb 0%, #00c677 100%);
  --yellow: #ffe186;       /* significa: scadenza */
  --coral: #f87060;
  --coral-d: #c2402f;      /* urgente su chiaro */

  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-head: "Lexend Deca", "Figtree", system-ui, sans-serif;

  --gutter: 20px;
  --maxw: 1120px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(7, 37, 44, 0.06), 0 8px 24px rgba(7, 37, 44, 0.09);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--f-body);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cyan-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3 { font-family: var(--f-head); color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw + 0.4rem, 3.9rem); }
h2 { font-size: clamp(1.7rem, 2.8vw + 0.6rem, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.1875rem; color: var(--muted); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- barra bozza ---------- */
.draftbar { background: var(--night-deep); color: #cfe0ec; font-size: 0.875rem; }
.draftbar .wrap { padding-block: 8px; display: flex; gap: 10px; align-items: center; }
.draftbar b { color: var(--yellow); font-weight: 600; }

/* ---------- intestazione ---------- */
.site-header { background: rgba(245, 248, 247, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: block; line-height: 0; }
.brand img { height: 30px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a.link { color: var(--text); text-decoration: none; white-space: nowrap; padding: 10px 10px; border-radius: 8px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.nav a.link:hover { background: #e7efec; color: var(--ink); }
.nav a.link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.nav-toggle { display: none; margin-left: auto; min-height: 44px; min-width: 44px; background: transparent; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; padding: 0 14px; }

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--ink); }
.btn-primary:hover { background: var(--cyan); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-on-dark { background: var(--green); color: var(--ink); }
.btn-on-dark:hover { background: var(--cyan); color: var(--ink); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: #8aa3b5; }
.btn-ghost-dark:hover { background: #fff; color: var(--night); border-color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }

/* ---------- sezioni ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.bg-white { background: var(--white); }
.bg-ink { background: var(--night); color: #dbe7ee; }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink a:not(.btn) { color: var(--green); }
.bg-ink p.lead, .band-ink p.lead { color: #c4d4de; }

/* ---------- primo schermo (scuro) ---------- */
.hero-dark { background: var(--night); color: #dbe7ee; padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 104px); overflow: hidden; }
.hero-dark .wrap { display: grid; gap: 44px; align-items: center; }
.hero-dark h1 { color: #fff; font-size: clamp(2rem, 2.5vw + 1rem, 3.1rem); line-height: 1.08; max-width: 21ch; margin-bottom: .55em; text-wrap: pretty; }
.hero-dark .lead { color: #c4d4de; max-width: 50ch; }
.hero-dark .fineprint { color: #9fb5c4; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fineprint { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

/* ---------- simulatore: cliente + studio ---------- */
.sim { display: grid; gap: 14px; }
.sim-title { font: 600 0.9rem/1.2 var(--f-body); color: #9fb5c4; margin: 0 0 2px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sim-title button { background: none; border: 0; color: var(--green); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; min-height: 32px; }
.chat { flex: 1; min-height: 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; background: #f1f6f4; }
.chat .empty { margin: auto; text-align: center; color: var(--muted); font-size: 0.9rem; max-width: 22ch; }
.bub { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 0.9rem; line-height: 1.35; animation: pop .25s ease; }
.bub small { display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); margin-top: 3px; }
.bub.me { align-self: flex-end; background: #d4efe3; border-bottom-right-radius: 4px; }
.bub.studio { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bub.ok { align-self: flex-start; background: #e6f7ee; border: 1px solid #bfe6d0; font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.samples { display: flex; flex-wrap: wrap; gap: 6px; }
.samples button { font: 500 0.78rem/1.2 var(--f-body); padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: #f5f8f7; color: var(--text); cursor: pointer; min-height: 32px; text-align: left; }
.samples button:hover { border-color: var(--green-d); }
.board { background: var(--paper); border-radius: 18px; color: var(--text); min-height: 320px; display: flex; flex-direction: column; overflow: hidden; }
.board-bar { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 14px; font: 600 0.9rem/1.2 var(--f-body); color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.board-bar span { font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.tickets { padding: 12px; display: grid; gap: 10px; align-content: start; flex: 1; }
.tickets .empty { color: var(--muted); font-size: 0.9rem; padding: 18px 6px; text-align: center; }
.ticket { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; animation: pop .3s ease; }
.ticket h3 { font: 600 0.95rem/1.3 var(--f-head); margin: 0; letter-spacing: -0.01em; }
.ticket .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.8rem; color: var(--muted); }
.ticket .act { display: flex; flex-wrap: wrap; gap: 6px; }
.ticket .act button { font: 600 0.8rem/1 var(--f-body); border: 1.5px solid var(--navy); background: #fff; color: var(--navy); border-radius: 8px; padding: 0 12px; min-height: 36px; cursor: pointer; }
.ticket .act button:hover { background: var(--navy); color: #fff; }
.ticket .act button.go { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.ticket .act button.go:hover { background: var(--ink); border-color: var(--ink); }
.ticket .who { font-weight: 600; color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 0.78rem/1 var(--f-body); padding: 6px 9px; border-radius: 6px; border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.chip.progress { border-color: var(--cyan); color: #06687a; }
.chip.done { border-color: var(--green-d); color: var(--green-d); }
.chip.todo { border-color: #6b7a83; color: #4b5a63; }
.due { display: inline-flex; align-items: center; gap: 6px; background: var(--yellow); color: var(--ink); font: 600 0.78rem/1 var(--f-body); padding: 6px 9px; border-radius: 6px; }

/* ---------- liste a filo (al posto delle card) ---------- */
.ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ruled > li { display: grid; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ruled h3 { margin: 0; }
.ruled p { margin: 0; color: var(--muted); }

.split { display: grid; gap: 40px; align-items: center; }
.shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; }
.shot figcaption { font-size: 0.85rem; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); background: #fff; }
figure { margin: 0; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; max-width: 62ch; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 18px; height: 10px; border-left: 3px solid var(--green-d); border-bottom: 3px solid var(--green-d); transform: rotate(-45deg); }

/* confronto prima/dopo (pagina commercialisti) */
.contrast { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.contrast > div { padding: 24px; }
.contrast > div + div { border-top: 1px solid var(--line); background: #f0f8f5; }
.contrast h3 { margin-bottom: 12px; }
.contrast ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }

/* ---------- prezzi ---------- */
.price-grid { display: grid; gap: 28px; }
.calc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.calc fieldset { border: 0; margin: 0 0 20px; padding: 0; }
.calc legend { font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.calc input[type="range"] { width: 100%; accent-color: var(--green-d); height: 32px; }
.calc output { font: 600 1.4rem/1 var(--f-head); color: var(--ink); }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.opt input { margin-top: 5px; width: 20px; height: 20px; accent-color: var(--green-d); flex: none; }
.opt strong { display: block; color: var(--ink); }
.opt span { color: var(--muted); font-size: 0.95rem; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 2px solid var(--ink); padding-top: 16px; margin-top: 8px; }
.total .num { font: 600 2.4rem/1 var(--f-head); color: var(--ink); }
.total small { color: var(--muted); }
.note { background: #fff9e0; border: 1px solid #ecd98a; border-radius: 10px; padding: 12px 14px; font-size: 0.93rem; color: #4a3f10; max-width: 68ch; }
table.incl { width: 100%; border-collapse: collapse; }
table.incl th, table.incl td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.incl th { font-weight: 600; color: var(--ink); width: 40%; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font: 600 1.1rem/1.35 var(--f-head); color: var(--ink); position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border-right: 2.5px solid var(--green-d); border-bottom: 2.5px solid var(--green-d); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details > div { padding: 0 0 20px; }
.faq details p { color: var(--muted); }

/* ---------- moduli ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: 0.875rem; color: var(--muted); margin-top: 4px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; font: inherit; padding: 10px 14px; border: 1.5px solid #9fb4ae; border-radius: 8px; background: #fff; color: var(--text); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--cyan); outline-offset: 1px; border-color: var(--ink); }
.form-status { padding: 14px 16px; border-radius: 10px; background: #e6f7ee; border: 1px solid #bfe6d0; color: var(--ink); }
.form-status[hidden] { display: none; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.steps li { counter-increment: s; padding-left: 52px; position: relative; max-width: 60ch; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 1rem/36px var(--f-head); text-align: center; }

/* ---------- blog ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.45rem, 2vw + .8rem, 1.9rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; max-width: 64ch; }
.prose .callout { border: 1px solid #cfe5db; background: #eef7f3; padding: 14px 18px; border-radius: 10px; margin: 1.2em 0; max-width: 64ch; }
.meta { color: var(--muted); font-size: 0.95rem; }
.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.post-list li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: 1.5rem; margin-bottom: .3em; }
.post-list a { text-decoration: none; color: var(--ink); }
.post-list a:hover { text-decoration: underline; text-decoration-color: var(--green); }

/* ---------- pié di pagina ---------- */
.site-footer { background: var(--night); color: #c4d4de; padding-block: 56px 36px; font-size: 0.97rem; }
.site-footer .cols { display: grid; gap: 32px; }
.site-footer img { height: 30px; width: auto; margin-bottom: 14px; }
.site-footer h2 { font: 600 1rem/1.2 var(--f-head); color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: #e6eff5; text-decoration: none; display: inline-block; padding: 8px 0; min-height: 40px; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }
.site-footer .legal { border-top: 1px solid #34506a; margin-top: 36px; padding-top: 20px; font-size: 0.875rem; }

.cta-band .wrap { display: grid; gap: 24px; align-items: center; }
.cta-band h2 { margin-bottom: .3em; }

/* ---------- layout adattivo ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .ruled > li { grid-template-columns: 1fr 1.6fr; align-items: baseline; }
  .contrast { grid-template-columns: 1fr 1fr; }
  .contrast > div + div { border-top: 0; border-left: 1px solid var(--line); }
  .site-footer .cols { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; }
}
@media (min-width: 980px) {
  .hero-dark .wrap { grid-template-columns: 0.92fr 1.08fr; gap: 56px; }
  .split { grid-template-columns: 1fr 1.15fr; gap: 64px; }
  .split.rev { grid-template-columns: 1.15fr 1fr; }
  .split.rev > :first-child { order: 2; }
  .price-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .cta-band .wrap { grid-template-columns: 1.4fr 1fr; }
  .cta-band .cta-row { justify-content: flex-end; margin: 0; }
}
@media (max-width: 1079px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; margin: 0; gap: 0; }
  .nav.open { display: flex; }
  .nav a.link { border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin-top: 14px; margin-left: 0; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 560px) {
  .frag.mail { left: 6%; top: 34%; }
  .frag.call { top: 6%; right: 2%; }
  .frag.wa { top: 22%; }
  .pratica { font-size: 0.97rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- componenti v2 ---------- */
.trust { background: #fff; border-block: 1px solid var(--line); padding-block: 18px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.trust li { position: relative; padding-left: 28px; font-weight: 500; color: var(--ink); font-size: 0.97rem; }
.trust li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 3px solid var(--green-d); border-bottom: 3px solid var(--green-d); transform: rotate(-45deg); }
.say { display: grid; gap: 0; border-top: 1px solid var(--line); }
.say > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px 32px; }
.say h3 { margin: 0; }
.say q { font: 500 1.25rem/1.35 var(--f-head); color: var(--ink); quotes: "«" "»"; letter-spacing: -0.01em; }
.say p { margin: 0; color: var(--muted); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: f; }
.flow li { counter-increment: f; position: relative; padding-top: 52px; }
.flow li::before { content: counter(f); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 1.05rem/38px var(--f-head); text-align: center; }
.flow h3 { margin-bottom: .3em; }
.flow p { color: var(--muted); margin: 0; }
.band-ink { background: var(--night); color: #dbe7ee; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink a:not(.btn) { color: var(--green); }
.seg { display: inline-flex; background: #e3ece9; border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; font: 600 0.9375rem/1 var(--f-body); color: var(--muted); padding: 12px 18px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pkgs { display: grid; gap: 18px; margin-top: 28px; }
.pkg { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.pkg h2, .pkg h3 { margin: 0; font-size: 1.35rem; }
.pkg .for { color: var(--muted); font-size: 0.95rem; margin: 0; }
.pkg .price { font: 600 2.7rem/1 var(--f-head); color: var(--ink); letter-spacing: -0.02em; }
.pkg .price small { font: 500 0.95rem/1.2 var(--f-body); color: var(--muted); letter-spacing: 0; }
.pkg .sub { font-size: 0.88rem; color: var(--muted); margin: -6px 0 0; }
.pkg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.97rem; flex: 1; }
.pkg li { position: relative; padding-left: 26px; }
.pkg li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 13px; height: 7px; border-left: 3px solid var(--green-d); border-bottom: 3px solid var(--green-d); transform: rotate(-45deg); }
.pkg.featured { background: var(--night); border-color: var(--night); color: #dbe7ee; }
.pkg.featured h2, .pkg.featured h3, .pkg.featured .price { color: #fff; }
.pkg.featured .for, .pkg.featured .price small, .pkg.featured .sub { color: #a9bfcd; }
.pkg.featured li::before { border-color: var(--green); }
.badge { align-self: flex-start; background: var(--yellow); color: var(--ink); font: 600 0.78rem/1 var(--f-body); padding: 7px 10px; border-radius: 6px; }
@media (min-width: 900px) { .pkgs { grid-template-columns: repeat(3, 1fr); align-items: stretch; } .flow { grid-template-columns: repeat(3, 1fr); gap: 40px; } .say > div { grid-template-columns: 0.7fr 1.4fr; align-items: baseline; } }
.result { display: grid; gap: 14px; margin-top: 18px; }
.result > div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.result .num { font: 600 2.2rem/1 var(--f-head); color: var(--ink); letter-spacing: -0.02em; }
.result small { color: var(--muted); display: block; margin-top: 6px; }
@media (min-width: 560px) { .result { grid-template-columns: 1fr 1fr; } }
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(22px, 4vw, 44px); max-width: 780px; box-shadow: var(--shadow); }
.sheet + .sheet { margin-top: 24px; }
.sheet h2 { font-size: 1.5rem; }
.sheet .ph { background: var(--yellow); color: var(--ink); padding: 0 4px; border-radius: 3px; }
@media print { .site-header, .site-footer, .draftbar, .no-print, .skip { display: none !important; } body { background: #fff; } .sheet { box-shadow: none; border: 0; padding: 0; } .sheet + .sheet { page-break-before: always; margin-top: 0; } }
.note b, .note strong { color: inherit; }
.legal-todo { border: 2px dashed #c9b15a; background: #fffbea; border-radius: 12px; padding: 18px 20px; max-width: 70ch; }

.nb { white-space: nowrap; }

/* ---------- galleria delle schermate ---------- */
.tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tour-tabs [role="tab"] { font: 600 0.93rem/1 var(--f-body); padding: 0 16px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.tour-tabs [role="tab"]:hover { background: var(--mint50); }
.tour-tabs [role="tab"][aria-selected="true"] { background: var(--grad); border-color: transparent; }
.tour-panel { display: grid; gap: 28px; align-items: center; }
.tour-panel[hidden] { display: none; }
.tour-panel h3 { font-size: 1.5rem; }
.tour-panel p { color: var(--muted); }
.pshot { border: 9px solid var(--ink); border-radius: 42px; overflow: hidden; background: var(--ink); max-width: 280px; margin-inline: auto; box-shadow: var(--shadow); }
.pshot img { width: 100%; height: auto; }
.phones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
.phones figure { text-align: center; }
.phones figcaption { font-size: 0.93rem; color: var(--muted); margin: 14px auto 0; max-width: 26ch; }
.phones figcaption strong { display: block; color: var(--ink); font: 600 1rem/1.3 var(--f-head); margin-bottom: 4px; }
@media (min-width: 900px) {
  .tour-panel { grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
  .tour-panel.is-phone { grid-template-columns: 1.2fr 0.8fr; }
  .tour-panel.is-phone .tour-text { order: 1; }
  .tour-panel.is-phone .pshot { order: 2; margin-inline: 0 auto; }
  .phones { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* ---------- parete di frasi ---------- */
.quotes { display: grid; gap: 16px; }
.qcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px 24px; display: grid; gap: 12px; align-content: start; }
.qcard img { height: 20px; width: auto; }
.qcard q { font: 500 1.2rem/1.35 var(--f-head); color: var(--ink); quotes: "«" "»"; letter-spacing: -0.01em; }
.qcard:nth-child(odd) { background: var(--mint50); border-color: #bfeedd; }
.qcard:nth-child(even) { background: var(--cyan50); border-color: #bfe6ee; }
.qcard.big q { font-size: 1.5rem; }
@media (min-width: 720px) { .quotes { grid-template-columns: repeat(2, 1fr); } .qcard.big { grid-column: span 2; } .qcard:last-child { grid-column: span 2; } }
@media (min-width: 1000px) {
  .quotes { grid-template-columns: repeat(6, 1fr); }
  .qcard.big { grid-column: span 3; }
  .qcard { grid-column: span 2; }
  .qcard:nth-child(n+6) { grid-column: span 3; }
}

/* ---------- cronologia ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(180deg, #09b1cb, #00c677); border-radius: 3px; }
.timeline li { position: relative; padding: 0 0 26px 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); }
.timeline h3 { margin: 0 0 4px; font-size: 1.1rem; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- confronto ---------- */
.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 0.97rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--mint50); font: 600 1rem/1.2 var(--f-head); color: var(--ink); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--green-d); font-weight: 700; }
.compare .no { color: var(--muted); }
.table-wrap { overflow-x: auto; }
.pill { display: inline-block; background: var(--mint50); border: 1px solid #bfeedd; color: var(--ink); font: 600 0.82rem/1 var(--f-body); padding: 7px 11px; border-radius: 999px; }
.stat-line { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1em; }

/* ---------- smartphone ---------- */
.sim-grid { display: grid; gap: 22px; justify-items: center; align-items: stretch; }
.device { position: relative; width: 286px; max-width: 100%; height: 590px; background: #0a1520; border-radius: 52px; padding: 11px; flex: none; align-self: center;
  box-shadow: 0 0 0 2px #46627a, 0 0 0 5px #0a1520, 0 44px 70px -12px rgba(0, 0, 0, 0.6); }
.device::before { content: ""; position: absolute; left: -8px; top: 118px; width: 4px; height: 30px; background: #2a3f52; border-radius: 3px 0 0 3px; box-shadow: 0 48px 0 #2a3f52; }
.device::after { content: ""; position: absolute; right: -8px; top: 150px; width: 4px; height: 66px; background: #2a3f52; border-radius: 0 3px 3px 0; }
.device-screen { background: #f1f6f4; border-radius: 41px; overflow: hidden; height: 100%; display: flex; flex-direction: column; position: relative; color: var(--text); }
.device-status { flex: none; height: 48px; background: var(--night); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 8px 26px 0 28px; font: 600 0.82rem/1 var(--f-body); position: relative; }
.island { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); width: 92px; height: 27px; background: #000; border-radius: 16px; }
.sys { display: flex; gap: 7px; align-items: center; }
.sig { width: 3px; height: 5px; background: #fff; border-radius: 1px; box-shadow: 5px -2px 0 #fff, 10px -4px 0 #fff, 15px -6px 0 #fff; margin-right: 15px; margin-top: 6px; }
.bat { position: relative; width: 24px; height: 12px; border: 1.5px solid #fff; border-radius: 4px; }
.bat::before { content: ""; position: absolute; inset: 1.5px; width: 72%; background: #fff; border-radius: 2px; }
.bat::after { content: ""; position: absolute; right: -4.5px; top: 2.5px; width: 2px; height: 4px; background: #fff; border-radius: 0 2px 2px 0; }
.phone-bar { flex: none; background: var(--night); color: #fff; padding: 4px 16px 13px; display: flex; align-items: center; gap: 10px; }
.phone-bar img { height: 24px; width: auto; }
.phone-bar span { margin-left: auto; font: 600 0.78rem/1 var(--f-body); color: #b9cbd8; }
.composer { flex: none; border-top: 1px solid var(--line); padding: 9px 10px 24px; display: grid; gap: 8px; background: #fff; }
.compose-row { display: grid; grid-template-columns: 1fr 44px; gap: 8px; align-items: end; }
.composer textarea { width: 100%; font: 0.88rem/1.3 var(--f-body); padding: 11px 14px; border: 1.5px solid #9fb4ae; border-radius: 22px; resize: none; height: 44px; min-height: 44px; }
.send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--green); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color .15s; }
.send:hover:not(:disabled) { background: var(--cyan); }
.send:disabled { opacity: 0.4; cursor: not-allowed; }
.send svg { width: 20px; height: 20px; }
.home-ind { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 112px; height: 5px; border-radius: 5px; background: #0a1520; opacity: 0.85; }
.samples button { font-size: 0.72rem; padding: 6px 9px; min-height: 30px; }
.board { min-height: 590px; }
@media (min-width: 560px) { .sim-grid { grid-template-columns: 286px 1fr; justify-items: stretch; } .device { justify-self: center; } }
@media (max-width: 559px) { .board { min-height: 320px; width: 100%; } }

/* ---------- il logo, protagonista ---------- */
.brand img { height: 42px; width: auto; }
.hero-dark, .bg-ink, .band-ink { position: relative; overflow: hidden; }
.hero-dark > .wrap, .bg-ink > .wrap, .band-ink > .wrap { position: relative; z-index: 1; }
.hero-dark::before { content: ""; position: absolute; right: -140px; top: 50%; width: 800px; height: 830px; transform: translateY(-50%); background: url("img/logo-mark.svg") no-repeat center / contain; opacity: 0.14; pointer-events: none; }
.bg-ink::before, .band-ink::before { content: ""; position: absolute; right: -60px; bottom: -90px; width: 420px; height: 435px; background: url("img/logo-mark.svg") no-repeat center / contain; opacity: 0.13; pointer-events: none; }
.site-footer { position: relative; overflow: hidden; }
.site-footer > .wrap { position: relative; z-index: 1; }
.site-footer::before { content: ""; position: absolute; right: -80px; top: -40px; width: 380px; height: 394px; background: url("img/logo-mark.svg") no-repeat center / contain; opacity: 0.12; pointer-events: none; }
.site-footer img { height: 46px; width: auto; }
.ticks li::before, .trust li::before, .pkg li::before { border: 0; transform: none; background: url("img/logo-mark.svg") no-repeat center / contain; }
.ticks li::before { width: 22px; height: 22px; top: 3px; left: 0; }
.trust li::before { width: 20px; height: 20px; top: 3px; left: 0; }
.pkg li::before { width: 18px; height: 18px; top: 4px; left: 0; }
.logo-lockup { display: flex; align-items: center; gap: 14px; }
.logo-lockup img { height: 54px; width: auto; }

/* ---------- dispositivi: iMac e smartphone ---------- */
.imac { margin: 0; max-width: 760px; margin-inline: auto; }
.imac-screen { background: #0b1520; border: 1px solid #aeb3ba; border-bottom: 0; border-radius: 16px 16px 0 0; padding: 12px 12px 14px; box-shadow: 0 1px 0 #fff inset; }
.imac-screen img { display: block; width: 100%; height: auto; border-radius: 4px; background: #fff; }
.imac-chin { background: linear-gradient(#e7e9ed, #cfd3d9); border: 1px solid #aeb3ba; border-top: 0; border-radius: 0 0 12px 12px; height: 54px; display: grid; place-items: center; }
.imac-chin img { width: 30px; height: auto; }
.imac-stand { width: 120px; height: 56px; margin: -1px auto 0; background: linear-gradient(90deg, #b9bec6, #e9ebef 40%, #b9bec6); clip-path: polygon(30% 0, 70% 0, 82% 100%, 18% 100%); }
.imac-stand::after { content: ""; display: block; }
.imac figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 14px; }
.pshot { position: relative; border: 10px solid #0a1520; border-radius: 46px; background: #0a1520; max-width: 250px; box-shadow: 0 24px 50px rgba(8,25,40,.28), 0 0 0 2px #2b3b4a; }
.pshot img { display: block; border-radius: 34px; }
.pisland { position: absolute; z-index: 2; top: 8px; left: 50%; transform: translateX(-50%); width: 78px; height: 22px; border-radius: 12px; background: #05090d; }
.devices { display: grid; gap: 28px; align-items: end; justify-items: center; margin-bottom: 48px; background: linear-gradient(135deg, var(--night), #2a4c6b); border-radius: 28px; padding: 36px 20px 28px; position: relative; overflow: hidden; }
.devices::before { content: ""; position: absolute; left: -40px; bottom: -70px; width: 360px; height: 374px; background: url("img/logo-mark.svg") no-repeat center / contain; opacity: .16; pointer-events: none; }
.devices > * { position: relative; z-index: 1; }
.devices .imac { width: 100%; }
.devices .imac-chin, .devices .imac-screen { border-color: #7d8691; }
.devices-cap { grid-column: 1 / -1; color: #c4d4de; text-align: center; max-width: 60ch; margin: 0; }
@media (min-width: 900px) {
  .devices { grid-template-columns: 1fr 250px; gap: 0 36px; padding: 48px 56px 36px; justify-items: end; }
  .devices .pshot { margin: 0 0 56px -90px; justify-self: start; }
  .devices .imac { justify-self: end; }
}
.tour-panel .imac { margin-inline: 0; }
/* logo protagonista */
.brand img { height: 52px; }
.hero-logo { display: block; height: 76px; width: auto; margin-bottom: 22px; }
.cta-logo { display: block; height: 62px; width: auto; margin-bottom: 18px; }
.hero-dark::before { opacity: .2; }
.bg-ink::before, .band-ink::before { opacity: .18; width: 520px; height: 540px; }
.site-footer img { height: 64px; }
.site-footer::before { opacity: .16; }
.phone-bar img { height: 26px; width: auto; }
@media (max-width: 559px) { .brand img { height: 42px; } .hero-logo { height: 56px; } }

/* ---------- logica Sinapsi: rete, eyebrow, tappe, applicazioni ---------- */
.hero-dark::after { content: ""; position: absolute; inset: -5% -10% -5% 30%; background: url("img/rete-2tick.svg") no-repeat center / cover; opacity: .35; pointer-events: none; mask-image: radial-gradient(ellipse at 60% 50%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 50%, #000 25%, transparent 75%); }
.pill-eyebrow { display: inline-block; font: 600 .82rem/1 var(--f-body); letter-spacing: .02em; color: #bfeeff; background: rgba(9,177,203,.14); border: 1px solid rgba(9,177,203,.45); border-radius: 999px; padding: 9px 14px; margin: 0 0 20px; }
.eyebrow { display: inline-block; font: 600 .85rem/1 var(--f-body); color: var(--green-d); background: var(--mint50); border: 1px solid #bfeedd; border-radius: 999px; padding: 8px 14px; margin: 0 0 16px; }
.eyebrow.on-dark { color: #bfeeff; background: rgba(9,177,203,.14); border-color: rgba(9,177,203,.45); }
.milestones { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
.milestones li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; position: relative; overflow: hidden; }
.milestones li::before { content: ""; position: absolute; right: -18px; top: -18px; width: 90px; height: 94px; background: url("img/logo-mark.svg") no-repeat center / contain; opacity: .14; }
.milestones strong { display: block; font: 700 1.6rem/1.1 var(--f-head); color: var(--ink); }
.milestones span { display: block; font: 600 .95rem/1.3 var(--f-body); color: var(--green-d); margin: 6px 0 10px; }
.milestones p { margin: 0; color: var(--muted); font-size: .96rem; }
.flow.four { display: grid; gap: 20px; }
.apps-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.apps-grid li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 16px 18px; color: #dbe7ee; }
.apps-grid li strong { display: block; color: #fff; font: 700 1.1rem/1.2 var(--f-head); }
.apps-grid li span { font-size: .93rem; }
.apps-grid li.is-current { background: linear-gradient(135deg, rgba(0,198,119,.25), rgba(9,177,203,.25)); border-color: var(--green); }
@media (min-width: 720px) { .milestones { grid-template-columns: repeat(2, 1fr); } .flow.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .milestones { grid-template-columns: repeat(4, 1fr); } .flow.four { grid-template-columns: repeat(4, 1fr); } }

/* ---------- MacBook Pro: proporzioni reali ---------- */
/* Misure reali: MacBook Pro 14" = 31,3 cm di larghezza; iPhone = 7,1 cm. Rapporto 4,4 a 1. */
.imac { margin: 0 auto; max-width: 820px; }
.imac-screen { position: relative; background: #05080c; border: 1px solid #1d2a36; border-radius: 14px 14px 4px 4px; padding: 2.1% 2.1% 2.6%; box-shadow: 0 0 0 2px #2b3743; }
.imac-screen::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 9%; height: 2.6%; min-height: 8px; background: #05080c; border-radius: 0 0 8px 8px; z-index: 2; }
.imac-screen img { display: block; width: 100%; height: auto; border-radius: 3px; }
.imac-chin { position: relative; height: 15px; width: 108%; margin: 0 -4% 0; background: linear-gradient(#d9dce1, #aeb3bb); border-radius: 0 0 16px 16px / 0 0 10px 10px; box-shadow: 0 14px 22px rgba(3,10,18,.35); }
.imac-chin::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 17%; height: 6px; background: linear-gradient(#9da3ac, #c3c7ce); border-radius: 0 0 8px 8px; }
.imac-chin img, .imac-stand { display: none; }
.imac figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 22px; }
.pshot { max-width: 250px; }
.devices { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 28px 3.2%; background: linear-gradient(135deg, var(--night), #2a4c6b); border-radius: 28px; padding: 44px 4% 32px; position: relative; overflow: hidden; margin-bottom: 48px; }
.devices::before { content: ""; position: absolute; left: -40px; bottom: -70px; width: 360px; height: 374px; background: url("img/logo-mark.svg") no-repeat center / contain; opacity: .16; pointer-events: none; }
.devices > * { position: relative; z-index: 1; }
.devices .imac { flex: 0 0 76%; max-width: 76%; margin: 0 0 14px; }
.devices .pshot { flex: 0 0 17.6%; max-width: 17.6%; margin: 0 0 14px; border-width: .6vw; border-width: clamp(4px, .55vw, 8px); border-radius: clamp(18px, 2.4vw, 34px); }
.devices .pshot img { border-radius: clamp(13px, 1.8vw, 26px); }
.devices .pisland { width: 34%; height: 3.4%; min-height: 6px; top: 1.4%; }
.devices-cap { flex: 0 0 100%; color: #c4d4de; text-align: center; max-width: 60ch; margin: 8px auto 0; }
@media (max-width: 760px) { .devices .imac { flex-basis: 100%; max-width: 100%; } .devices .pshot { flex-basis: 34%; max-width: 34%; } }
.tour-panel .imac { margin-inline: 0; max-width: 100%; }

/* ---------- primo schermo: computer dello studio e telefono del cliente, in proporzione ---------- */
.hero-dark > .wrap { grid-template-columns: 1fr !important; }
.hero-dark .sim { margin-top: 36px; width: 100%; max-width: none; }
.stage { display: flex; align-items: flex-end; justify-content: center; gap: 3%; margin-top: 8px; }
.stage .mac-live { flex: 0 0 76%; max-width: 76%; margin: 0 0 8px; }
.stage .device { flex: 0 0 auto; zoom: .78; margin: 0 0 8px; justify-self: auto; }
.studio { display: grid; grid-template-columns: 22% 1fr; background: #fff; border-radius: 3px; overflow: hidden; min-height: clamp(300px, 34vw, 520px); }
.studio-nav { background: #1f3850; color: #dbe7ee; padding: 14px 12px; display: flex; flex-direction: column; gap: 14px; font-size: clamp(.62rem, .95vw, .85rem); }
.studio-nav img { width: 80%; max-width: 104px; height: auto; }
.studio-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.studio-nav li { padding: 7px 8px; border-radius: 8px; }
.studio-nav li.on { background: #0b5a7a; color: #fff; font-weight: 600; }
.studio-nav p { margin: auto 0 0; font-size: .85em; opacity: .75; }
.studio .board { border-radius: 0; min-height: 0; background: #f6f9fb; }
.studio .board-bar { font-size: clamp(.78rem, 1.1vw, 1rem); }
.studio .tickets { padding: 12px; display: grid; gap: 10px; align-content: start; }
@media (max-width: 899px) {
  .stage { flex-direction: column; align-items: center; gap: 24px; }
  .stage .mac-live { flex-basis: auto; max-width: 100%; width: 100%; }
  .stage .device { zoom: 1; }
  .studio-nav { display: none; }
  .studio { grid-template-columns: 1fr; }
}
.studio-nav img { background: none !important; width: auto; height: 30px; border-radius: 0; max-width: 100%; }
/* rapporto reale MacBook Pro 14" (31,3 cm) : iPhone (7,1 cm) = 4,4 : 1 */
.stage .mac-live { flex-basis: 80%; max-width: 80%; }
.stage .device { zoom: .665; }

/* ---------- frasi: righe che scorrono, centrate e invitanti ---------- */
.center { text-align: center; }
.center .lead { margin-inline: auto; max-width: 56ch; }
.center h2 { margin-inline: auto; max-width: 24ch; }
.center-row { justify-content: center; margin-top: 32px; }
.frasi { background: linear-gradient(180deg, #f4fbf8, #eaf6fb); padding-bottom: clamp(48px, 6vw, 88px); }
.quotes-stage { margin-top: 36px; display: grid; gap: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 70s linear infinite; padding: 6px 0; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }
.qcard { flex: 0 0 340px; display: grid; align-content: space-between; gap: 14px; background: #fff !important; border: 1px solid #cfe5db; border-radius: 22px; padding: 22px 22px 20px; box-shadow: 0 10px 28px rgba(31,56,80,.08); }
.qcard:nth-child(even) { border-color: #bfe6ee; }
.qcard img { height: 22px; width: auto; }
.qcard q { font: 600 1.18rem/1.35 var(--f-head); color: var(--ink); quotes: "«" "»"; letter-spacing: -.01em; }
.qcard .turn { margin: 0; padding-top: 12px; border-top: 1px dashed #cfd9e0; font-size: .93rem; color: var(--muted); }
.qcard .turn span { display: block; font: 700 .78rem/1 var(--f-body); color: var(--green-d); margin-bottom: 6px; }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee [aria-hidden="true"] { display: none; }
}
/* ---------- rete che vive: nodi che pulsano e impulsi che viaggiano ---------- */
.hero-dark::after { content: none !important; }
.net { position: absolute; z-index: 0; top: -5%; right: -12%; width: 78%; height: 112%; opacity: .55; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse at 55% 50%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse at 55% 50%, #000 25%, transparent 75%); }
.net .halo { opacity: .14; transform-box: fill-box; transform-origin: center; animation: glow 6s ease-in-out infinite; }
.net .pulse { offset-rotate: 0deg; opacity: 0; animation: travel 6s linear infinite; filter: drop-shadow(0 0 4px #7fe9ff); }
@keyframes glow { 0%, 100% { opacity: .1; transform: scale(.8); } 50% { opacity: .35; transform: scale(1.35); } }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: .95; } 90% { opacity: .95; } 100% { offset-distance: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .net .halo, .net .pulse { animation: none; } .net .pulse { display: none; } }
/* ---------- comparsa allo scorrimento ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- team ---------- */
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.team li { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 14px 14px 22px; text-align: center; box-shadow: 0 10px 28px rgba(31,56,80,.07); }
.team img { width: 100%; height: auto; border-radius: 16px; display: block; margin-bottom: 16px; }
.team h3 { margin: 0 0 2px; font-size: 1.35rem; }
.team .role { margin: 0 0 10px; font: 700 .85rem/1.2 var(--f-body); color: var(--green-d); }
.team li p:last-child { margin: 0 auto; max-width: 30ch; color: var(--muted); font-size: .96rem; }
@media (min-width: 720px) { .team { grid-template-columns: repeat(3, 1fr); } }
/* etichetta visibile: sono illustrazioni, non foto */
.team li { position: relative; }
.team-note { text-align: center; margin: 18px 0 0; font-size: .85rem; color: var(--muted); }
/* ---------- Chi siamo: capitoli, citazione, impegni ---------- */
.chapters { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: ch; }
.chapters li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px 24px; box-shadow: 0 10px 28px rgba(31,56,80,.07); overflow: hidden; }
.chapters li::after { content: counter(ch); counter-increment: ch; position: absolute; right: 18px; top: 6px; font: 800 5rem/1 var(--f-head); color: var(--mint50); z-index: 0; }
.chapters li > * { position: relative; z-index: 1; }
.chapters strong { display: inline-block; font: 700 .85rem/1 var(--f-body); color: var(--green-d); background: var(--mint50); border: 1px solid #bfeedd; border-radius: 999px; padding: 7px 12px; margin-bottom: 14px; }
.chapters h3 { font-size: 1.45rem; margin: 0 0 8px; }
.chapters p { margin: 0; color: var(--muted); }
.pullquote { margin: 40px auto 0; max-width: 62ch; text-align: center; padding: 34px 28px; border-radius: 26px; background: linear-gradient(135deg, var(--night), #2a4c6b); color: #fff; position: relative; overflow: hidden; }
.pullquote p { margin: 0 0 16px; font: 600 clamp(1.25rem, 2.2vw + .6rem, 1.8rem)/1.35 var(--f-head); }
.pullquote img { height: 44px; width: auto; opacity: .9; }
.principles { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.principles li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; padding: 22px; }
.principles strong { display: block; color: #fff; font: 700 1.25rem/1.2 var(--f-head); margin-bottom: 8px; }
.principles span { color: #dbe7ee; }
.apps-grid.light li { background: #fff; border-color: var(--line); color: var(--muted); }
.apps-grid.light li strong { color: var(--ink); }
.apps-grid.light li.is-current { background: var(--mint50); border-color: var(--green); }
@media (min-width: 720px) { .chapters { grid-template-columns: repeat(3, 1fr); } .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .principles { grid-template-columns: repeat(4, 1fr); } }
.pullquote img { display: block; margin: 0 auto; }

.hero-center { text-align: center; }
.hero-center h1 { margin-inline: auto; max-width: 20ch; }
.hero-center .lead { margin-inline: auto; max-width: 60ch; }
.hero-center .cta-row { justify-content: center; }

/* ---------- home: testata centrata, fascia tipografica, prima e dopo ---------- */
.hero-center { text-align: center; }
.hero-center .hero-logo { margin-inline: auto; }
.hero-center h1 { margin-inline: auto; max-width: 18ch; font-size: clamp(2.2rem, 4vw + 1rem, 4.2rem); line-height: 1.05; }
.hero-center .lead { margin-inline: auto; max-width: 62ch; }
.hero-center .cta-row, .hero-center .fineprint { justify-content: center; text-align: center; }
.bigline { background: #fff; text-align: center; padding-block: clamp(44px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.bigline p:first-child { margin: 0; font: 800 clamp(1.8rem, 4.2vw + .6rem, 4rem)/1.12 var(--f-head); color: var(--ink); letter-spacing: -.02em; max-width: 22ch; margin-inline: auto; }
.bigline span { display: inline-block; margin-inline: .12em; color: #0a7d94; }
.bigline span:nth-child(even) { background: none; color: var(--ink); -webkit-background-clip: border-box; background-clip: border-box; }
.bigline-sub { margin: 18px auto 0; color: var(--muted); font-size: 1.1rem; max-width: 50ch; }
.js .bigline span { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .bigline.in span { opacity: 1; transform: none; }
.js .bigline.in span:nth-child(2) { transition-delay: .18s; } .js .bigline.in span:nth-child(3) { transition-delay: .36s; } .js .bigline.in span:nth-child(4) { transition-delay: .54s; }
@media (prefers-reduced-motion: reduce) { .js .bigline span { opacity: 1; transform: none; transition: none; } }
.beforeafter { display: grid; gap: 18px; margin-top: 36px; }
.ba { border-radius: 24px; padding: 26px 24px; border: 1px solid var(--line); }
.ba h3 { margin: 0 0 16px; font-size: 1.4rem; }
.ba ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ba li { display: grid; gap: 4px; padding-left: 62px; position: relative; }
.ba li strong { position: absolute; left: 0; top: 0; font: 700 .95rem/1 var(--f-head); padding: 6px 9px; border-radius: 8px; }
.ba li em { font-style: normal; color: var(--muted); }
.ba.before { background: #f6f3ee; border-color: #e6ddd0; }
.ba.before li strong { background: #e6ddd0; color: #5b4b38; }
.ba.after { background: linear-gradient(135deg, var(--night), #2a4c6b); color: #fff; border-color: transparent; }
.ba.after h3 { color: #fff; }
.ba.after li strong { background: var(--green); color: #05301f; }
.ba.after li em { color: #c4d4de; }
@media (min-width: 900px) { .beforeafter { grid-template-columns: 1fr 1fr; gap: 24px; } .ba { padding: 32px 30px; } }
.hero-center .fineprint { margin-inline: auto; max-width: none; width: 100%; text-align: center; }
.bigline span { display: block; margin: 0; }
.bigline p:first-child { font-size: clamp(2rem, 4.4vw + .4rem, 3.9rem); line-height: 1.08; }
.bigline span { background-image: linear-gradient(90deg, #0a7d94, #007a50); }
.bigline span:nth-child(even) { background-image: none; }

.hero-center h1 { max-width: 20ch; }
.grad-text { color: #6fe3f2; }
@media (prefers-contrast: more) { .grad-text { background: none; color: #fff; } }
/* testo a colore pieno (niente sfumature sul testo) */
.grad-text { background: none !important; -webkit-background-clip: border-box; background-clip: border-box; color: #6fe3f2 !important; }
.bigline span, .bigline span:nth-child(even) { background: none !important; -webkit-background-clip: border-box; background-clip: border-box; }
.bigline span { color: #0a7d94; }
.bigline span:nth-child(even) { color: var(--ink); }

/* ---------- titolo a carosello ---------- */
.rot { display: grid; margin-inline: auto; max-width: 20ch; }
.rot-slide { grid-area: 1 / 1; display: block; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1), visibility 0s linear .6s; }
.rot-slide.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.rot-slide .l1, .rot-slide .l2 { display: block; }
.rot-ctrl { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 4px 0 22px; }
.rot-dot { appearance: none; border: 0; background: none; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.rot-dot i { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.35); transition: width .3s ease, background .3s ease; }
.rot-dot[aria-current="true"] i { width: 28px; background: #6fe3f2; }
.rot-dot:hover i { background: rgba(255,255,255,.7); }
.rot-pp { appearance: none; border: 1.5px solid rgba(255,255,255,.4); background: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; margin-left: 8px; }
.rot-pp svg { width: 16px; height: 16px; }
.rot-pp .pp-play { display: none; }
.rot-pp[aria-pressed="true"] .pp-pause { display: none; }
.rot-pp[aria-pressed="true"] .pp-play { display: block; }
.rot-dot:focus-visible, .rot-pp:focus-visible { outline: 3px solid #6fe3f2; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .rot-slide { transition: none; transform: none; } }
.hero-center h1.rot { max-width: 25ch; }

/* carosello senza pulsante: barra che scorre, pausa con hover e focus */
.rot-dot { width: 44px; }
.rot-dot i { position: relative; overflow: hidden; width: 10px; }
.rot-dot[aria-current="true"] i { width: 40px; background: rgba(255,255,255,.28); }
.rot-dot[aria-current="true"] i::after { content: ""; position: absolute; inset: 0; background: #6fe3f2; transform-origin: left center; transform: scaleX(0); animation: rotfill 6.5s linear forwards; }
@keyframes rotfill { to { transform: scaleX(1); } }
.hero-center:hover .rot-dot[aria-current="true"] i::after,
.hero-center:focus-within .rot-dot[aria-current="true"] i::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .rot-dot[aria-current="true"] i::after { animation: none; transform: scaleX(1); } }

/* frasi del titolo: carattere più compatto e dimensione contenuta, così anche le frasi lunghe restano proporzionate */
.hero-center h1.rot { max-width: 28ch; font-family: var(--f-body); font-weight: 600; font-size: clamp(1.65rem, 1.9vw + 1rem, 2.6rem); line-height: 1.2; letter-spacing: -0.012em; font-style: italic; }
@media (max-width: 480px) { .rot-dot { width: 36px; } }
/* passaggio pulito: la frase che esce svanisce subito, quella che entra arriva dopo */
.rot-slide { transition: opacity .3s ease, transform .5s ease, visibility 0s linear .3s; }
.rot-slide.is-on { transition: opacity .6s ease .28s, transform .7s cubic-bezier(.2,.7,.2,1) .28s, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .rot-slide, .rot-slide.is-on { transition: none; } }
/* protezione: se lo script non parte, la fascia resta leggibile */
html:not(.js) .bigline span { opacity: 1; transform: none; }
/* ---------- testi legali ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.toc a { font: 600 .85rem/1 var(--f-body); text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; }
.toc a:hover { background: var(--mint50); }
.prose.legal { max-width: 78ch; }
.prose.legal h2 { font-size: 1.35rem; margin-top: 1.9em; scroll-margin-top: 90px; }
.prose.legal p { margin: .6em 0; }
.prose.legal .table-wrap { margin: 18px 0; max-width: none; }
.prose.legal ul { margin: .6em 0; }
/* riquadro promozionale (Studi Fondatori): nei colori del marchio, non giallo */
.promo-card { background: linear-gradient(135deg, var(--mint50), var(--cyan50)); border: 1px solid #bfe6ee; border-radius: 22px; padding: 26px 26px 24px; }
.promo-card strong { font: 700 1.2rem/1.25 var(--f-head); color: var(--ink); }
.promo-card p { color: var(--muted); }
