@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cobalt: #1E3FA0;
  --cobalt-dark: #17317d;
  --lemon: #F3C623;
  --tile: #FBFCFE;
  --night: #0F1E45;
  --mist: #E6ECF8;
  --line: #cfd8ec;
  --text: #0F1E45;
  --muted: #45507a;
  --wrap: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--tile);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: .18em; }
a:hover { color: var(--cobalt-dark); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: .75rem; top: -4rem; z-index: 50;
  background: var(--night); color: #fff; padding: .6rem 1rem; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: .75rem; color: #fff; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.1rem; padding: .7rem 1.35rem;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: 1.02rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-dark); color: #fff; }
.btn-ghost { border-color: var(--cobalt); color: var(--cobalt); background: transparent; }
.btn-ghost:hover { background: var(--mist); color: var(--cobalt-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; padding-block: .85rem;
  background: var(--tile); border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.site-header.is-stuck, .nav-open .site-header { border-bottom-color: var(--line); }
.site-header .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--night); text-decoration: none; }
.brand svg { width: 2.25rem; height: 2.25rem; border-radius: 5px; }
.brand-name { font-weight: 750; font-size: 1.45rem; letter-spacing: -0.03em; }
/* Menu: vedi in fondo al file */

/* Hero */
.hero { padding-block: clamp(2rem, 6vw, 5rem) clamp(4rem, 9vw, 7rem); }
.hero .wrap {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.25rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.03;
  color: var(--night);
}
.hero-lead { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 38rem; line-height: 1.55; }
.hero-cta { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-note { margin-top: 1.25rem; font-size: .98rem; color: var(--muted); }

/* Parete di maioliche */
.wall {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
  background: var(--mist); padding: 3px; border-radius: 8px;
  max-width: 30rem; width: 100%; justify-self: end;
}
.wall--small { grid-template-columns: repeat(2, 1fr); max-width: 20rem; }
.t { width: 100%; height: auto; aspect-ratio: 1; background: var(--tile); --m1: var(--cobalt); --m2: var(--lemon); --m3: var(--tile); }
.t--pod { background: var(--lemon); --m1: var(--cobalt); --m2: var(--tile); --m3: var(--lemon); }
.t--deep { background: var(--cobalt); --m1: var(--tile); --m2: var(--lemon); --m3: var(--cobalt); }

@media (prefers-reduced-motion: no-preference) {
  .wall .t {
    animation: schedule .55s cubic-bezier(.2, .75, .25, 1) both;
    animation-delay: calc(var(--i) * 60ms + 150ms);
  }
  @keyframes schedule {
    from { opacity: 0; transform: scale(.55) rotate(-10deg); }
    to { opacity: 1; transform: none; }
  }
}

/* Briciole di pane */
.crumbs { padding-top: .25rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .95rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #9aa6c9; }
.crumbs a { color: var(--muted); }

/* Sezioni */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 740; color: var(--night); }
.section-head p { margin-top: 1rem; font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

/* Elenco servizi in home */
.services { list-style: none; border-top: 2px solid var(--night); }
.service {
  display: grid; grid-template-columns: 5rem minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem 2.5rem; padding-block: 2.25rem; border-bottom: 1px solid var(--line);
}
.service-icon { width: 4.5rem; height: 4.5rem; border-radius: 6px; }
.service h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 720; }
.service h3 a { color: var(--night); text-decoration: none; background: linear-gradient(var(--lemon), var(--lemon)) 0 100% / 0 .22em no-repeat; transition: background-size .2s ease; }
.service h3 a:hover, .service h3 a:focus-visible { background-size: 100% .22em; }
.service-body p { margin-top: .7rem; color: var(--muted); max-width: 34rem; }
.service-tech { padding-top: .35rem; color: var(--night); font-weight: 560; }
.service-tech span { display: block; font-size: .9rem; font-weight: 500; color: var(--muted); margin-bottom: .35rem; }
.service-more { display: inline-block; margin-top: 1rem; font-weight: 650; }

/* Liste con rombo */
.diamonds { list-style: none; display: grid; gap: .7rem; }
.diamonds li { position: relative; padding-left: 1.5rem; }
.diamonds li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .6rem; height: .6rem; background: var(--lemon); border: 2px solid var(--cobalt); transform: rotate(45deg);
}
.diamonds--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 3rem; max-width: 64rem; }

/* Sezione scura */
.dark { background: var(--night); color: #dfe6f7; }
.dark .section-head h2 { color: #fff; }
.dark .section-head p { color: #c3cdea; }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3.5rem; }
.pairs h3 { font-size: 1.35rem; font-weight: 700; color: var(--lemon); }
.pairs p { margin-top: .6rem; color: #c3cdea; max-width: 30rem; }
.quotes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 3.5rem; }
.quotes li { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 650; line-height: 1.3; color: #fff; padding-left: 1.25rem; border-left: 3px solid var(--lemon); }
.dark-note { margin-top: 2.5rem; color: #c3cdea; font-size: 1.1rem; max-width: 40rem; }

/* Metodo */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.75rem; counter-reset: step; }
.step { counter-increment: step; border-top: 2px solid var(--cobalt); padding-top: 1rem; }
.step::before {
  content: counter(step); display: block;
  font-size: 3.25rem; font-weight: 780; line-height: 1; letter-spacing: -0.04em; color: var(--cobalt);
  margin-bottom: .9rem;
}
.step h3 { font-size: 1.2rem; font-weight: 700; color: var(--night); }
.step p { margin-top: .5rem; color: var(--muted); font-size: 1rem; }

/* Modi di collaborare */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.mode { border-top: 2px solid var(--night); padding-top: 1.1rem; }
.mode h3 { font-size: 1.4rem; font-weight: 720; color: var(--night); }
.mode p { margin-top: .6rem; color: var(--muted); }

/* Strumenti raggruppati */
.tech { background: var(--mist); }
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.group h3 { font-size: 1.15rem; font-weight: 720; color: var(--cobalt); padding-bottom: .6rem; border-bottom: 2px solid var(--cobalt); }
.group ul { list-style: none; }
.group li { padding-block: .5rem; border-bottom: 1px solid #c8d3ec; font-weight: 560; }

/* Domande */
.faq { max-width: 50rem; border-top: 2px solid var(--night); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.3rem; font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 680; color: var(--night);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.1rem; height: 1.1rem;
  background:
    linear-gradient(var(--cobalt), var(--cobalt)) center / 100% 2.5px no-repeat,
    linear-gradient(var(--cobalt), var(--cobalt)) center / 2.5px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.4rem; color: var(--muted); max-width: 42rem; }

/* Altri servizi */
.others { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 2px solid var(--night); }
.others li { border-bottom: 1px solid var(--line); }
.others a { display: flex; align-items: center; gap: .9rem; padding-block: 1.1rem; color: var(--night); text-decoration: none; font-weight: 650; font-size: 1.1rem; }
.others a:hover { color: var(--cobalt); }
.others svg { width: 2.25rem; height: 2.25rem; border-radius: 4px; flex: none; }

/* Contatti */
.contact { background: var(--cobalt); color: #fff; }
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 740; }
.contact-number {
  display: inline-block; margin-top: 1.25rem;
  font-size: clamp(3rem, 12.5vw, 7.5rem); font-weight: 780; letter-spacing: -0.045em; line-height: .95;
  color: var(--lemon); text-decoration: none; white-space: nowrap;
}
.contact-number:hover { color: #ffe27a; }
.contact p { margin-top: 1.5rem; max-width: 38rem; font-size: 1.15rem; color: #e4e9fb; }
.contact-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.contact .btn-primary { background: var(--lemon); color: var(--night); }
.contact .btn-primary:hover { background: #ffd84d; color: var(--night); }
.contact .btn-ghost { border-color: #fff; color: #fff; }
.contact .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.contact :focus-visible { outline-color: var(--lemon); }

/* Footer */
.site-footer { background: var(--night); color: #b9c4e4; padding-block: 3rem 2.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.site-footer a { color: #fff; }
.site-footer strong { color: #fff; font-weight: 700; font-size: 1.1rem; }
.site-footer h2 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .6rem; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: .35rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #2a3866; }

/* Barra contatti su smartphone */
.callbar { display: none; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .wall { justify-self: start; max-width: 34rem; }
  .service { grid-template-columns: 4rem minmax(0, 1fr); }
  .service-icon { width: 3.5rem; height: 3.5rem; }
  .service-tech { grid-column: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.75rem; }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modes { grid-template-columns: 1fr; gap: 1.75rem; }
  .others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  .hero { padding-top: .5rem; }
  .wall { order: -1; max-width: none; grid-template-columns: repeat(6, 1fr); }
  .wall .t:nth-child(n+7) { display: none; }
  .wall--small { grid-template-columns: repeat(4, 1fr); }
  .wall--small .t:nth-child(n+5) { display: none; }
  .service { grid-template-columns: 1fr; padding-block: 2rem; }
  .service-tech { grid-column: auto; }
  .diamonds--cols { grid-template-columns: 1fr; }
  .pairs, .quotes { grid-template-columns: 1fr; gap: 1.75rem; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .step { display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 1rem; border-top-width: 1px; }
  .step::before { grid-row: span 2; font-size: 2.6rem; margin-bottom: 0; }
  .groups { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .group li { font-size: .98rem; }
  .others { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn, .contact-cta .btn { flex: 1 1 100%; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(251, 252, 254, .96); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .callbar .btn { min-height: 3rem; padding-inline: .8rem; }
}

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

/* Check-up */
.ck-form { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; max-width: 40rem; }
.ck-form label { flex-basis: 100%; font-weight: 650; color: var(--night); }
.ck-form input {
  flex: 1 1 15rem; min-height: 3.1rem; padding: .7rem 1.2rem;
  font: inherit; font-size: 1.05rem; color: var(--night); background: #fff;
  border: 2px solid var(--night); border-radius: 999px;
}
.ck-form input::placeholder { color: #7d88ad; }
.ck-form input:focus-visible { outline: 3px solid var(--lemon); outline-offset: 2px; }
.ck-form button[disabled] { opacity: .6; cursor: progress; }
.ck-note { margin-top: .9rem; font-size: .95rem; color: var(--muted); }

.ck-result { padding-block: 0 clamp(3rem, 7vw, 5rem); }
.ck-result:focus { outline: none; }
.ck-loading { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 0; font-size: 1.1rem; color: var(--night); border-top: 2px solid var(--night); }
.ck-spinner { width: 1.6rem; height: 1.6rem; flex: none; background: var(--lemon); border: 3px solid var(--cobalt); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .ck-spinner { animation: ck-spin 1.2s ease-in-out infinite; }
  @keyframes ck-spin { 0% { transform: rotate(45deg); } 50% { transform: rotate(225deg) scale(.8); } 100% { transform: rotate(405deg); } }
}
.ck-error { padding: 1.25rem 1.5rem; border-left: 5px solid #A12A1F; background: #FBE4E1; color: #6d1a12; font-weight: 550; }

.ck-head { border-top: 2px solid var(--night); padding-top: 1.5rem; }
.ck-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 740; color: var(--night); overflow-wrap: anywhere; }
.ck-when { margin-top: .4rem; color: var(--muted); font-size: .95rem; }
.ck-summary { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ck-badge { display: inline-block; padding: .3rem .8rem; border-radius: 999px; font-weight: 700; font-size: .9rem; line-height: 1.3; white-space: nowrap; }
.ck-ok { background: #E1F2E8; color: #14633D; }
.ck-warn { background: #FFF1C2; color: #6E5100; }
.ck-bad { background: #FBE1DD; color: #A12A1F; }
.ck-info { background: var(--mist); color: var(--cobalt); }

.ck-list { list-style: none; margin-top: 1.75rem; border-top: 1px solid var(--line); }
.ck-item { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .5rem 1.5rem; padding-block: 1.3rem; border-bottom: 1px solid var(--line); align-items: start; }
.ck-item .ck-badge { justify-self: start; }
.ck-body { min-width: 0; }
.ck-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--night); }
.ck-body p { margin-top: .35rem; color: var(--muted); max-width: 46rem; overflow-wrap: anywhere; }
.ck-body .ck-advice { color: var(--night); }

.ck-cta { margin-top: 2rem; padding: 1.75rem clamp(1.25rem, 3vw, 2rem); background: var(--night); color: #dfe6f7; border-left: 6px solid var(--lemon); }
.ck-cta h3 { font-size: 1.5rem; font-weight: 720; color: #fff; }
.ck-cta p { margin-top: .5rem; max-width: 40rem; }
.ck-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.ck-cta .btn-primary { background: var(--lemon); color: var(--night); }
.ck-cta .btn-primary:hover { background: #ffd84d; color: var(--night); }
.ck-cta .btn-ghost { border-color: #fff; color: #fff; }
.ck-cta .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ck-cta :focus-visible { outline-color: var(--lemon); }

.checks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3.5rem; }
.checks h3 { font-size: 1.25rem; font-weight: 720; color: var(--night); }
.checks p { margin-top: .45rem; color: var(--muted); max-width: 32rem; }

/* Banda check-up in home */
.ck-band { background: var(--mist); padding-block: clamp(3rem, 6vw, 4.5rem); }
.ck-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: center; }
.ck-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 740; color: var(--night); }
.ck-band p { margin-top: .8rem; color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.ck-band .ck-form { margin-top: 0; }


@media (max-width: 960px) {
  .ck-band .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ck-item { grid-template-columns: minmax(0, 1fr); }
  .checks { grid-template-columns: 1fr; gap: 1.5rem; }
  .ck-form .btn, .ck-actions .btn { flex: 1 1 100%; }
}

/* Strumenti */
.tl-wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2.5rem 4rem; align-items: start; }
.tl-form { display: grid; gap: 1.1rem; padding: 1.75rem; background: #fff; border: 2px solid var(--night); border-radius: 10px; }
.tl-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.tl-form legend { font-weight: 720; font-size: 1.15rem; color: var(--night); margin-bottom: .2rem; }
.tl-field { display: grid; gap: .35rem; }
.tl-field label, .tl-check span { font-weight: 620; color: var(--night); }
.tl-field small { color: var(--muted); font-size: .9rem; }
.tl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; }
.tl-form input[type="number"], .tl-form select {
  width: 100%; min-height: 2.9rem; padding: .55rem .8rem;
  font: inherit; color: var(--night); background: var(--tile);
  border: 2px solid #b9c5e3; border-radius: 8px;
}
.tl-form input[type="number"]:focus-visible, .tl-form select:focus-visible { outline: 3px solid var(--lemon); outline-offset: 1px; border-color: var(--cobalt); }
.tl-check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; }
.tl-check input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--cobalt); flex: none; }
.tl-check small { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; }
.tl-out { min-height: 10rem; }
.tl-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 740; color: var(--night); }
.tl-sub { margin-top: .4rem; color: var(--muted); }
.tl-bars { list-style: none; margin-top: 1.5rem; display: grid; gap: 1.2rem; }
.tl-bar-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-weight: 650; color: var(--night); }
.tl-bar-value { font-size: 1.25rem; font-weight: 760; white-space: nowrap; }
.tl-track { margin-top: .4rem; height: .9rem; background: var(--mist); border-radius: 999px; overflow: hidden; }
.tl-fill { height: 100%; background: var(--cobalt); border-radius: 999px; }
.tl-best .tl-fill { background: var(--lemon); box-shadow: inset 0 0 0 2px var(--cobalt); }
.tl-best .tl-bar-value { color: var(--cobalt); }
.tl-bar-note { margin-top: .35rem; font-size: .93rem; color: var(--muted); }
.tl-saving { margin-top: 1.5rem; padding: 1rem 1.25rem; background: #FFF1C2; color: var(--night); font-weight: 680; font-size: 1.1rem; border-left: 5px solid var(--lemon); }
.tl-warn { list-style: none; margin-top: 1.25rem; display: grid; gap: .6rem; }
.tl-warn li { padding: .8rem 1rem; background: #FBE1DD; color: #6d1a12; border-left: 5px solid #A12A1F; font-size: .97rem; }
.tl-note { margin-top: 1rem; font-size: .93rem; color: var(--muted); }
.tl-rec { margin-top: 1.5rem; padding: 1.25rem 1.4rem; border: 2px solid var(--cobalt); border-radius: 10px; }
.tl-rec h3 { font-size: 1.2rem; font-weight: 720; color: var(--cobalt); }
.tl-rec p { margin-top: .5rem; color: var(--night); }
.tl-cta { margin-top: 1.75rem; }
.tl-sources { list-style: none; display: grid; gap: .5rem; }
.tl-sources li { color: var(--muted); }

/* Elenco strumenti */
.tools-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; border-top: 2px solid var(--night); }
.tools-list li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1.25rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.tools-list svg { width: 4rem; height: 4rem; border-radius: 6px; }
.tools-list h3 { font-size: 1.35rem; font-weight: 720; }
.tools-list h3 a { color: var(--night); text-decoration: none; background: linear-gradient(var(--lemon), var(--lemon)) 0 100% / 0 .22em no-repeat; transition: background-size .2s ease; }
.tools-list h3 a:hover, .tools-list h3 a:focus-visible { background-size: 100% .22em; }
.tools-list p { margin-top: .45rem; color: var(--muted); }
.tool-callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2.5rem; align-items: center; padding: 1.75rem clamp(1.25rem, 3vw, 2.25rem); background: var(--mist); border-left: 6px solid var(--cobalt); }
.tool-callout h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 740; color: var(--night); }
.tool-callout p { margin-top: .5rem; color: var(--muted); max-width: 40rem; }

@media (max-width: 960px) {
  .tl-wrap { grid-template-columns: 1fr; }
  .tools-list { grid-template-columns: 1fr; }
  .tool-callout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .tl-form { padding: 1.25rem; }
  .tl-bar-head { flex-direction: column; gap: .1rem; }
}
.tl-src-title { margin-top: 2.5rem; font-size: 1.15rem; font-weight: 720; color: var(--night); }
.tl-sources { margin-top: .6rem; }
.tl-field-title { color: var(--night); }

/* Check-up: come si risolve */
.ck-fix { margin-top: .9rem; max-width: 46rem; }
.ck-fix summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 680; color: var(--cobalt); padding-block: .2rem;
}
.ck-fix summary::-webkit-details-marker { display: none; }
.ck-fix summary::before {
  content: ""; width: .8rem; height: .8rem; flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.ck-fix[open] summary::before { transform: rotate(45deg); }
.ck-fix summary:hover { text-decoration: underline; text-underline-offset: .18em; }
.ck-fix-body { margin-top: .6rem; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--lemon); border-radius: 6px; }
.ck-steps { padding-left: 1.3rem; display: grid; gap: .5rem; color: var(--night); }
.ck-steps li { padding-left: .2rem; }
.ck-steps li::marker { font-weight: 700; color: var(--cobalt); }
.ck-steps code { font: 600 .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--mist); color: var(--night); padding: .08em .4em; border-radius: 4px; overflow-wrap: anywhere; }
.ck-code { margin: 1.1rem 0 0; }
.ck-code figcaption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .92rem; font-weight: 650; color: var(--muted); margin-bottom: .4rem; }
.ck-code pre {
  margin: 0; padding: .85rem 1rem; background: var(--night); color: #e8eefc; border-radius: 6px; overflow-x: auto;
  font: 500 .88rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ck-copy {
  flex: none; font: inherit; font-size: .85rem; font-weight: 650; color: var(--cobalt);
  background: none; border: 1.5px solid var(--cobalt); border-radius: 999px; padding: .2rem .8rem; cursor: pointer;
}
.ck-copy:hover { background: var(--mist); }
.ck-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-top: 1.75rem; }
.ck-tools p { flex-basis: 100%; color: var(--muted); font-size: .95rem; }
.ck-print { display: none; }
@media (max-width: 760px) {
  .ck-tools .btn { flex: 1 1 100%; }
  .ck-fix-body { padding: 1rem; }
}

/* Testi lunghi (privacy) */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 740; color: var(--night); margin-top: 2.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: .9rem; color: var(--text); }
.prose ul { padding-left: 1.25rem; display: grid; gap: .5rem; }
.prose .updated { margin-top: 2.75rem; color: var(--muted); font-size: .95rem; }

/* Banda agenzie in home */
.partner-band { padding-top: 0; }

@media print {
  @page { margin: 14mm 12mm; }
  html { scroll-behavior: auto; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.45; }
  .skip, .site-header, .crumbs, .hero, main > .section, .site-footer, .callbar, .ck-tools, .ck-cta, .ck-copy { display: none !important; }
  .ck-result { padding: 0; }
  .ck-result .wrap { max-width: none; padding: 0; }
  .ck-print { display: block; }
  .ck-print-brand { font-size: 20pt; font-weight: 760; color: var(--cobalt); letter-spacing: -0.02em; }
  .ck-print-foot { margin-top: 1.25rem; padding-top: .75rem; border-top: 1px solid #999; font-size: 9.5pt; color: #333; }
  .ck-print-foot p + p { margin-top: .2rem; }
  .ck-head { margin-top: .75rem; border-top-color: #000; }
  .ck-item { grid-template-columns: 7.5rem minmax(0, 1fr); padding-block: .8rem; }
  .ck-body h3 { break-after: avoid; }
  .ck-fix summary { color: var(--night); }
  .ck-fix summary::before { display: none; }
  .ck-fix-body { border-color: #bbb; }
  .ck-code { break-inside: avoid; }
  .ck-code pre { background: #f2f4f8; color: #000; border: 1px solid #ccc; white-space: pre-wrap; overflow-wrap: anywhere; }
  .ck-badge, .ck-fix-body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.footer-links { margin-top: 1rem; }
.site-footer a[href^="tel:"] { white-space: nowrap; }

/* ---------------------------------------------------------------- protezione email (DMARC) */
.ck-band-more { font-size: 1rem !important; }
.ck-band-more a { font-weight: 650; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dm-stat-link { color: var(--lemon); }
.dm-cta { margin-top: 2.25rem; }
.ck-fix-link { margin-top: 1rem; font-weight: 650; }

.dm-new .ck-code pre, .dm-board .ck-code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.dm-record { margin-top: .9rem; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--lemon); border-radius: 6px; }
.dm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: .5rem 2.5rem; }
.dm-fields dt { font-size: .92rem; font-weight: 650; color: var(--muted); }
.dm-fields dd { display: flex; align-items: center; gap: .6rem; margin: .2rem 0 0; }
.dm-fields code { font: 600 1rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--mist); color: var(--night); padding: .15em .5em; border-radius: 4px; }
.dm-record .dm-hint { margin-top: .75rem; font-size: .95rem; color: var(--muted); }
.dm-record .dm-hint--strong { color: var(--night); font-weight: 550; }
.dm-old { margin-top: .75rem; font-size: .95rem; }
.dm-old summary { cursor: pointer; color: var(--cobalt); font-weight: 650; }
.dm-old pre { margin-top: .5rem; padding: .7rem .9rem; background: var(--mist); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; font: 500 .85rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dm-error-link { margin-top: .6rem; }

/* cruscotto */
.dm-top { padding-block: clamp(1.5rem, 4vw, 2.75rem) 1.5rem; }
.dm-top h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 780; line-height: 1.05; letter-spacing: -0.03em; color: var(--night); }
.dm-top .hero-lead { margin-top: .6rem; overflow-wrap: anywhere; }
.dm-dash { padding-block: 0 clamp(3rem, 7vw, 5rem); }
.dm-dash:focus { outline: none; }
.dm-adv { padding: 1.25rem 1.5rem; border-left: 6px solid var(--cobalt); background: var(--mist); }
.dm-adv h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 740; color: var(--night); }
.dm-adv p { margin-top: .4rem; max-width: 46rem; color: var(--night); }
.dm-adv--todo, .dm-adv--warn { border-left-color: #C98A00; background: #FFF6D9; }
.dm-adv--ready, .dm-adv--done { border-left-color: #1E7B4C; background: #E7F4EC; }
.dm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.dm-facts dt { font-size: .95rem; color: var(--muted); font-weight: 600; }
.dm-facts dd { margin: .15rem 0 0; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 740; line-height: 1.15; color: var(--night); letter-spacing: -0.02em; }
.dm-facts dd.dm-fact-note { margin-top: .2rem; font-size: .92rem; font-weight: 450; color: var(--muted); letter-spacing: 0; }
.dm-block { margin-top: 2.5rem; }
.dm-block > h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 740; color: var(--night); }
.dm-block > p { margin-top: .6rem; color: var(--muted); }

.dm-chart { margin: 1.1rem 0 0; max-width: 56rem; }
.dm-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: .95rem; color: var(--muted); }
.dm-legend li { display: inline-flex; align-items: center; gap: .5rem; }
.dm-sw { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; flex: none; }
.dm-sw--pass, .dm-seg--pass { background: #2F55C4; }
.dm-sw--fail, .dm-seg--fail { background: #D24A2E; }
.dm-plot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; margin-top: .9rem; }
.dm-axis { display: flex; flex-direction: column; justify-content: space-between; height: 12rem; font-size: .8rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.dm-axis span { line-height: 1; transform: translateY(-50%); }
.dm-axis span:first-child { transform: none; }
.dm-axis span:last-child { transform: translateY(0); }
.dm-area { position: relative; height: 12rem; border-bottom: 1px solid #b9c4de;
  background: linear-gradient(to bottom, #dfe5f2 1px, transparent 1px) 0 0 / 100% 50%; }
.dm-cols { position: absolute; inset: 0; display: flex; align-items: stretch; }
.dm-col { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; background: none; border: 0; cursor: default; font: inherit; }
.dm-col:hover { background: rgba(30, 63, 160, .07); }
.dm-stack { display: flex; flex-direction: column; gap: 2px; width: 100%; max-width: 24px; }
.dm-stack .dm-seg { min-height: 2px; }
.dm-stack > :first-child { border-radius: 4px 4px 0 0; }
.dm-tip {
  position: absolute; top: .4rem; z-index: 2; pointer-events: none;
  display: grid; gap: .1rem; padding: .55rem .75rem; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 4px 14px rgba(15, 30, 69, .12); font-size: .88rem; color: var(--night); white-space: nowrap;
}
.dm-tip span { display: flex; align-items: center; gap: .4rem; color: var(--muted); }
.dm-tip i { display: inline-block; width: .65rem; height: .65rem; border-radius: 2px; }
.dm-xlabels { display: flex; justify-content: space-between; margin-left: 2.6rem; margin-top: .35rem; font-size: .8rem; color: var(--muted); }
.dm-table { margin-top: 1rem; font-size: .95rem; }
.dm-table summary { cursor: pointer; color: var(--cobalt); font-weight: 650; }
.dm-table table { margin-top: .6rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dm-table th, .dm-table td { padding: .3rem 1.25rem .3rem 0; text-align: right; border-bottom: 1px solid var(--line); }
.dm-table th:first-child, .dm-table td:first-child { text-align: left; }
.dm-table th { color: var(--muted); font-weight: 650; }

.dm-srcs { list-style: none; margin-top: 1.1rem; border-top: 1px solid var(--line); }
.dm-src { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .5rem 1.5rem; padding-block: 1.2rem; border-bottom: 1px solid var(--line); align-items: start; }
.dm-src .ck-badge { justify-self: start; }
.dm-src-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1.5rem; }
.dm-src-top h3 { font-size: 1.2rem; font-weight: 700; color: var(--night); }
.dm-src-count { color: var(--night); font-weight: 600; font-variant-numeric: tabular-nums; }
.dm-ratio { display: flex; gap: 2px; height: 8px; margin-top: .55rem; max-width: 34rem; }
.dm-ratio > span { border-radius: 0; }
.dm-ratio > span:first-child { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.dm-ratio > span:last-child { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.dm-src-facts { margin-top: .5rem; font-size: .95rem; color: var(--muted); }
.dm-src-note { margin-top: .4rem; font-size: .95rem; color: var(--night); max-width: 44rem; }
.dm-ips { margin-top: .5rem; font-size: .92rem; }
.dm-ips summary { cursor: pointer; color: var(--cobalt); font-weight: 650; }
.dm-ips ul { list-style: none; margin-top: .4rem; display: grid; gap: .3rem; }
.dm-ips li { display: flex; flex-wrap: wrap; gap: .2rem .8rem; color: var(--muted); overflow-wrap: anywhere; }
.dm-ips code { font: 600 .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--night); }
.dm-reporters { margin-top: 1.5rem; font-size: .95rem; color: var(--muted); }
.dm-reporters strong { color: var(--night); }

.dm-delete { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.dm-link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .95rem; color: #A12A1F; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.dm-confirm { max-width: 44rem; padding: 1.1rem 1.25rem; border-left: 5px solid #A12A1F; background: #FBE4E1; }
.dm-confirm p { color: #5e170f; }
.dm-confirm p + p { margin-top: .5rem; }
.dm-confirm-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.dm-danger { background: #A12A1F; color: #fff; border-color: #A12A1F; }
.dm-danger:hover { background: #82211a; color: #fff; }
.dm-del-error { margin-top: .75rem; font-weight: 650; }

@media (max-width: 860px) {
  .steps--3 { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 600px) {
  .dm-src { grid-template-columns: minmax(0, 1fr); }
  .dm-fields { grid-template-columns: minmax(0, 1fr); }
  .dm-confirm-row .btn { flex: 1 1 100%; }
}
@media print {
  .dm-top { padding-top: 0; }
  .dm-delete, .dm-table, .dm-tip { display: none !important; }
  .dm-seg--pass, .dm-seg--fail, .dm-sw, .dm-adv { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.dm-tip[hidden] { display: none; }

/* attivazione guidata e cruscotto semplificato */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dm-new { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.75rem 3.5rem; align-items: start; }
.dm-new > .ck-head { grid-column: 1 / -1; }
.dm-new .ck-when { max-width: 48rem; font-size: 1.02rem; }
.dm-provider { color: var(--night); max-width: 44rem; }
.dm-provider a { font-weight: 650; }
.dm-step .dm-record { margin-top: 1rem; }
.dm-checkrow { margin-top: 1.25rem; }
.dm-check-out:empty { display: none; }
.dm-check { margin-top: 1rem; padding: 1rem 1.25rem; border-left: 5px solid; border-radius: 0 6px 6px 0; }
.dm-check p + p { margin-top: .35rem; }
.dm-check-title { font-weight: 720; font-size: 1.12rem; }
.dm-check--ok { border-color: #1E7B4C; background: #E7F4EC; color: #0f4a2c; }
.dm-check--warn { border-color: #C98A00; background: #FFF6D9; color: #4d3800; }
.dm-check--bad { border-color: #A12A1F; background: #FBE4E1; color: #5e170f; }
.dm-check .dm-old summary { color: inherit; }
.dm-go { margin-top: 1rem; }
.dm-side { display: grid; gap: 1.5rem; }
.dm-delegate, .dm-keep { padding: 1.25rem 1.35rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.dm-delegate h3, .dm-keep h3 { font-size: 1.2rem; font-weight: 720; color: var(--night); }
.dm-delegate > p, .dm-keep > p { margin-top: .4rem; color: var(--muted); font-size: .98rem; }
.dm-btnrow { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.dm-btnrow .btn { min-height: 2.6rem; padding: .45rem 1.05rem; font-size: .95rem; }
.dm-delegate-call { font-size: .95rem; }
.dm-keep .dm-hint { margin-top: .8rem; font-size: .9rem; }
.dm-adv .dm-delegate { margin-top: 1.5rem; }
.dm-adv .dm-provider { margin-top: 1rem; }
.dm-adv .ck-code { max-width: 52rem; }
.dm-adv > p:not(.dm-adv-text) { margin-top: .9rem; }
.dm-mine { margin: 0 0 1.25rem; padding: .9rem 1.1rem; background: var(--mist); border-left: 4px solid var(--cobalt); max-width: 36rem; }
.dm-mine p { font-size: .95rem; color: var(--muted); }
.dm-mine ul { list-style: none; margin-top: .35rem; display: grid; gap: .3rem; }
.dm-mine li { display: flex; flex-wrap: wrap; gap: .2rem 1rem; align-items: baseline; }
.dm-mine a { font-weight: 650; }

.dm-path { list-style: none; counter-reset: dmp; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.dm-path li { counter-increment: dmp; display: grid; align-content: start; gap: .15rem; padding-top: .75rem; border-top: 4px solid var(--line); }
.dm-path-title { font-weight: 700; color: var(--night); }
.dm-path-title::before { content: counter(dmp) ". "; color: var(--muted); font-weight: 650; }
.dm-path-note { font-size: .92rem; color: var(--muted); }
.dm-path li.dm-path-done { border-top-color: #1E7B4C; }
.dm-path-done .dm-path-note { color: #14633D; font-weight: 600; }
.dm-path li.dm-path-current { border-top-color: var(--cobalt); }
.dm-path-current .dm-path-note { color: var(--cobalt); font-weight: 650; }
.dm-path-todo .dm-path-title { color: var(--muted); }
.dm-current { margin-top: 2rem; }
.dm-adv .dm-record { background: #fff; }

@media (max-width: 860px) {
  .dm-new { grid-template-columns: minmax(0, 1fr); }
  .dm-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .dm-btnrow .btn { flex: 1 1 100%; }
  .dm-facts { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}
.dm-adv .dm-check { background: #fff; }

/* home: strumenti gratuiti in evidenza */
.free-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.free-card { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem); background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.free-card .free-tile { width: 3.75rem; height: 3.75rem; border-radius: 6px; flex: none; }
.free-card h3 { margin-top: 1.25rem; font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 740; line-height: 1.15; letter-spacing: -0.015em; color: var(--night); }
.free-card p { margin-top: .7rem; color: var(--muted); max-width: 34rem; }
.free-card .ck-form { margin-top: auto; padding-top: 1.75rem; }
.free-calcs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 2.5rem; margin-top: 2.75rem; }
.free-calcs li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding-top: 1.1rem; border-top: 2px solid var(--night); align-items: start; }
.free-calcs .t { width: 3rem; height: 3rem; border-radius: 4px; }
.free-calcs h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.free-calcs h3 a { color: var(--night); text-decoration: none; }
.free-calcs h3 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.free-calcs p { margin-top: .35rem; color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) {
  .free-pair, .free-calcs { grid-template-columns: minmax(0, 1fr); }
}
.free-card .ck-form input { flex-basis: 100%; }

/* verifica cambio IBAN */
.free-wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem 1.75rem; align-items: center; }
.free-wide h3 { margin-top: 0; }
.free-wide p { margin-top: .4rem; }
.iv-tool { padding-block: clamp(2.5rem, 5vw, 4rem); }
.iv-form { padding: clamp(1.5rem, 3vw, 2.5rem); background: #fff; border: 1px solid var(--line); border-radius: 6px; max-width: 60rem; }
.iv-form h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 740; color: var(--night); }
.iv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; margin-top: 1.5rem; }
.iv-field--wide { grid-column: 1 / -1; }
.iv-field label, .iv-more-body label { display: block; font-weight: 650; color: var(--night); margin-bottom: .45rem; }
.iv-opt { font-weight: 450; color: var(--muted); }
.iv-field input[type=text], .iv-more-body textarea {
  width: 100%; min-height: 3rem; padding: .65rem 1.1rem; font: inherit; font-size: 1.02rem; color: var(--night);
  background: #fff; border: 2px solid var(--night); border-radius: 999px;
}
#iv-iban { font: 600 1.15rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
#iv-old { font: 500 1rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.iv-more-body input[type=file]::file-selector-button { margin-right: .8rem; padding: .45rem 1rem; font: inherit; font-weight: 650; color: var(--cobalt); background: #fff; border: 2px solid var(--cobalt); border-radius: 999px; cursor: pointer; }
.iv-more-body input[type=file]::file-selector-button:hover { background: var(--mist); }
.iv-more-body textarea { border-radius: 12px; font: 500 .88rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
.iv-field input::placeholder, .iv-more-body textarea::placeholder { color: #7d88ad; }
.iv-field input:focus-visible, .iv-more-body textarea:focus-visible, .iv-more-body input[type=file]:focus-visible { outline: 3px solid var(--lemon); outline-offset: 2px; }
.iv-help { margin-top: .4rem; font-size: .9rem; color: var(--muted); }
.iv-check { display: flex; align-items: center; gap: .6rem; align-self: end; padding-bottom: .6rem; }
.iv-check input { width: 1.25rem; height: 1.25rem; accent-color: var(--cobalt); flex: none; }
.iv-check label { margin: 0; font-weight: 600; }
.iv-more { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.iv-more summary { cursor: pointer; font-weight: 700; color: var(--cobalt); }
.iv-more-body { margin-top: .75rem; }
.iv-more-body p, .iv-more-body ul { color: var(--muted); font-size: .97rem; max-width: 50rem; }
.iv-more-body ul { margin: .5rem 0 1rem 1.2rem; display: grid; gap: .3rem; }
.iv-more-body input[type=file] { font: inherit; font-size: .95rem; }
.iv-submit { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.25rem; margin-top: 1.75rem; }
.iv-submit .ck-note { margin: 0; }
.iv-result { margin-top: 2rem; max-width: 60rem; }
.iv-result:focus { outline: none; }
.iv-verdict { padding: 1.35rem 1.5rem; border-left: 6px solid; border-radius: 0 6px 6px 0; }
.iv-verdict h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 760; }
.iv-verdict p { margin-top: .4rem; max-width: 48rem; }
.iv-verdict--bad { border-color: #A12A1F; background: #FBE4E1; color: #5e170f; }
.iv-verdict--warn { border-color: #C98A00; background: #FFF6D9; color: #4d3800; }
.iv-verdict--ok { border-color: #1E7B4C; background: #E7F4EC; color: #0f4a2c; }
.iv-group { margin-top: 1.75rem; }
.iv-group > h3 { font-size: 1.3rem; font-weight: 720; color: var(--night); }
.iv-group .ck-list { margin-top: .75rem; }
.ck-body h4 { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: var(--night); }
.iv-todo { margin-top: 2rem; padding: 1.35rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.iv-todo h3 { font-size: 1.3rem; font-weight: 720; color: var(--night); }
.iv-todo ol { margin: .75rem 0 0 1.3rem; display: grid; gap: .4rem; color: var(--night); }
.iv-todo li::marker { font-weight: 700; color: var(--cobalt); }
.iv-paid { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--night); }
@media (max-width: 860px) {
  .free-wide { grid-template-columns: auto minmax(0, 1fr); }
  .free-wide .btn { grid-column: 1 / -1; justify-self: start; }
  .iv-grid { grid-template-columns: minmax(0, 1fr); }
  .iv-check { padding-bottom: 0; }
}

/* ---------------------------------------------------------------- catalogo strumenti, nuove pagine, guide */
.free-group { margin-top: 2.75rem; font-size: 1.05rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.free-group:first-of-type { margin-top: 0; }
.free-group + .free-calcs { margin-top: 1rem; }
.services-cta { margin-top: 2.25rem; }
.tp-hero { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.tp-hero .wrap { display: block; }
.tp-hero h1, .tp-hero .hero-lead { max-width: 54rem; }
.steps--plain .step h3 { font-size: 1.25rem; }
.bl-form { margin-top: 0; max-width: 44rem; }
.related { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--night); max-width: 50rem; }
.related h2 { font-size: 1.3rem; font-weight: 720; color: var(--night); }
.related ul { list-style: none; margin-top: .8rem; display: grid; gap: .5rem; padding: 0; }
.related a { font-weight: 600; }

.sg-set { margin: 1.5rem 0 0; padding: 0; border: 0; display: grid; gap: .55rem; }
.sg-set legend { padding: 0; margin-bottom: .6rem; font-weight: 700; color: var(--night); }
.sg-opt { display: flex; align-items: flex-start; gap: .65rem; color: var(--night); cursor: pointer; }
.sg-opt input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--cobalt); flex: none; }
.sg-opt--sep { margin-top: .5rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.sg-set + .iv-grid { margin-top: 1.5rem; }
.sg-rec-title { font-size: 1.2rem; font-weight: 720; color: var(--night); margin-bottom: .8rem; }
#sg-result .dm-record { margin-top: 1.5rem; }
#sg-result .dm-fields { grid-template-columns: auto minmax(0, 1fr); }

.fe-drop { padding: clamp(1.5rem, 4vw, 2.75rem); background: #fff; border: 2px dashed var(--cobalt); border-radius: 8px; max-width: 44rem; }
.fe-drop h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 740; color: var(--night); }
.fe-drop p { margin-top: .4rem; color: var(--muted); }
.fe-drop input[type=file] { margin-top: 1.1rem; font: inherit; font-size: 1rem; max-width: 100%; }
.fe-drop input[type=file]::file-selector-button { margin-right: .9rem; padding: .7rem 1.35rem; font: inherit; font-weight: 650; color: #fff; background: var(--cobalt); border: 0; border-radius: 999px; cursor: pointer; }
.fe-drop--over { background: var(--mist); border-style: solid; }
.fe-result { max-width: 64rem; }
.fe-tools { margin-top: 0; }
.fe-doc { margin-top: 1.5rem; padding: clamp(1.25rem, 3vw, 2.25rem); background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.fe-doc-head { border-bottom: 2px solid var(--night); padding-bottom: 1rem; }
.fe-doc-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 760; color: var(--night); overflow-wrap: anywhere; }
.fe-doc-date { margin-top: .3rem; color: var(--muted); }
.fe-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin-top: 1.5rem; }
.fe-party p { color: var(--muted); font-size: .97rem; overflow-wrap: anywhere; }
.fe-party-role { font-weight: 650; }
.fe-party .fe-party-name { font-size: 1.2rem; font-weight: 720; color: var(--night); margin: .15rem 0 .3rem; }
.fe-causale { margin-top: 1.25rem; color: var(--night); overflow-wrap: anywhere; }
.fe-doc h3 { margin-top: 2rem; font-size: 1.2rem; font-weight: 720; color: var(--night); }
.fe-scroll { margin-top: .75rem; overflow-x: auto; }
.fe-table { width: 100%; border-collapse: collapse; font-size: .97rem; font-variant-numeric: tabular-nums; }
.fe-table th, .fe-table td { padding: .55rem .9rem .55rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.fe-table th { font-weight: 650; color: var(--muted); border-bottom: 2px solid var(--line); white-space: nowrap; }
.fe-table .fe-num { text-align: right; white-space: nowrap; padding-right: 0; padding-left: .9rem; }
.fe-table td:first-child { min-width: 14rem; overflow-wrap: anywhere; color: var(--night); }
.fe-totals { margin: 1.5rem 0 0 auto; max-width: 24rem; display: grid; gap: .35rem; }
.fe-totals div { display: flex; justify-content: space-between; gap: 1.5rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.fe-totals dd { margin: 0; }
.fe-totals .fe-total-main { margin-top: .4rem; padding-top: .6rem; border-top: 2px solid var(--night); font-size: 1.3rem; font-weight: 760; color: var(--night); }
.fe-pays { list-style: none; margin-top: .75rem; display: grid; gap: .9rem; }
.fe-pays p { color: var(--muted); overflow-wrap: anywhere; }
.fe-pays .fe-pay-main { color: var(--night); font-weight: 650; }
.fe-pays code { font: 600 1rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--night); }
.fe-iban-tip { margin-top: 1rem; padding: .8rem 1rem; background: #FFF6D9; border-left: 4px solid #C98A00; color: #4d3800; }
.fe-note { margin-top: 1rem; font-size: .92rem; color: var(--muted); }

.guide { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem); }
.guide .prose { max-width: 46rem; }
.guide h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 780; line-height: 1.08; letter-spacing: -0.025em; color: var(--night); }
.guide-lead { margin-top: 1.1rem !important; font-size: 1.2rem; color: var(--muted) !important; }
.guide-jump { padding: .8rem 1rem; background: var(--mist); border-left: 4px solid var(--cobalt); }
.guide-jump a { font-weight: 650; }
.guide .prose ol { margin-top: .9rem; padding-left: 1.25rem; display: grid; gap: .5rem; }
.guide-callout { margin-top: 2.5rem; }
.guide-callout h2 { margin-top: 0 !important; }
.guide-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3.5rem; }
.guide-list li { border-top: 2px solid var(--night); padding-top: 1.1rem; }
.guide-list h2 { font-size: 1.4rem; font-weight: 720; line-height: 1.2; }
.guide-list h2 a { color: var(--night); text-decoration: none; }
.guide-list h2 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.guide-list p { margin-top: .6rem; color: var(--muted); }

@media (max-width: 860px) {
  .fe-parties, .guide-list { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .tp-hero, .fe-drop, .fe-tools, .related { display: none !important; }
  main > .section.iv-tool:has(#fe-result) { display: block !important; padding: 0; background: #fff; }
  .iv-tool:has(#fe-result) .wrap { max-width: none; padding: 0; }
  .fe-doc { border: 0; padding: 0; margin: 0 0 1rem; break-inside: auto; }
  .fe-iban-tip { display: none; }
  .fe-table { font-size: 9.5pt; }
}

/* equilibrio home, app AI in evidenza, lingua */

.free-all { margin-top: 2.25rem; }
.ai-feature .section-head h2 { max-width: 46rem; }
.ai-feature .section-head p { max-width: 46rem; }
.ai-cta { margin-top: 2.5rem; }
.ai-feature .btn-primary { background: var(--lemon); color: var(--night); }
.ai-feature .btn-primary:hover { background: #ffd84d; color: var(--night); }
.ai-feature .btn-ghost { border-color: #fff; color: #fff; }
.ai-feature .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ai-feature :focus-visible { outline-color: var(--lemon); }
.modes--six { row-gap: 2.5rem; }
.hero-note a { font-weight: 600; }

/* verifiche singole: il risultato del check-up dentro la sezione dello strumento */
.ck-result--inline { margin-top: 1.75rem; }
.ck-result--inline > .wrap { max-width: none; padding: 0; }
.ck-more { margin-top: 1.25rem; color: var(--muted); font-size: .95rem; }


/* ---------------------------------------------------------------- menu principale */
.nav { display: flex; align-items: center; gap: 1rem; }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-link, .nav-drop {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.6rem; padding: .35rem .7rem;
  font: inherit; font-weight: 560; font-size: 1rem; color: var(--night); text-decoration: none;
  background: none; border: 0; border-radius: 6px; cursor: pointer;
}
.nav-link:hover, .nav-drop:hover { color: var(--cobalt); background: var(--mist); }
.nav-link[aria-current="page"] { color: var(--cobalt); box-shadow: inset 0 -2px 0 var(--lemon); border-radius: 0; }
.nav-drop.nav-ck { color: var(--cobalt); font-weight: 700; }
.nav-drop::after {
  content: ""; width: .45rem; height: .45rem; margin-top: -.2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
  transition: transform .15s ease;
}
.nav-drop[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: .2rem; }
.nav-drop[aria-expanded="true"] { background: var(--mist); }

.nav-panel { display: none; }
.nav-drop[aria-expanded="true"] + .nav-panel { display: block; }
.nav-group { margin: 0 0 .4rem; font-size: .85rem; font-weight: 700; color: var(--muted); }
.nav-col ul { list-style: none; margin: 0; padding: 0; }
.nav-col a, .nav-all { display: block; padding: .3rem 0; color: var(--night); font-weight: 520; text-decoration: none; line-height: 1.35; }
.nav-col a:hover, .nav-all:hover { color: var(--cobalt); text-decoration: underline; }
.nav-col a[aria-current="page"] { color: var(--cobalt); font-weight: 700; }
.nav-all { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--cobalt); font-weight: 650; }

.nav-lang {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; min-height: 2.6rem;
  border: 1.5px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 700; color: var(--muted); text-decoration: none;
}
.nav-lang:hover { border-color: var(--cobalt); color: var(--cobalt); }
.nav .btn { min-height: 2.6rem; padding: .5rem 1.1rem; font-size: .98rem; }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; text-decoration: none; }
.nav-toggle { display: none; }

/* computer: pannelli a discesa sotto la testata */
@media (min-width: 1081px) {
  .nav-panel {
    position: absolute; top: calc(100% + .6rem); left: var(--pad); right: var(--pad); z-index: 60;
    padding: 1.6rem 2rem 1.4rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--night);
    border-radius: 0 0 8px 8px; box-shadow: 0 18px 40px -24px rgba(15, 30, 69, .45);
  }
  .nav-panel--narrow { left: auto; width: min(40rem, calc(100% - 2 * var(--pad))); }
  .nav-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; }
  .nav-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-all { display: inline-block; }
}

/* tablet e telefono: menu a tutto schermo con sezioni a fisarmonica */
@media (max-width: 1080px) {
  .nav { gap: .6rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .55rem; min-height: 2.6rem; padding: .35rem .9rem;
    font: inherit; font-weight: 650; font-size: .98rem; color: var(--night);
    background: #fff; border: 1.5px solid var(--night); border-radius: 999px; cursor: pointer;
  }
  .nav-burger, .nav-burger::before, .nav-burger::after {
    display: block; width: 1.05rem; height: 2px; background: currentColor; border-radius: 2px; transition: transform .15s ease, background-color .15s ease;
  }
  .nav-burger { position: relative; }
  .nav-burger::before, .nav-burger::after { content: ""; position: absolute; left: 0; }
  .nav-burger::before { top: -6px; }
  .nav-burger::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-burger { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-burger::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-burger::after { transform: translateY(-6px) rotate(-45deg); }

  .nav-menu {
    display: none; position: fixed; left: 0; right: 0; top: var(--hh, 4.3rem); bottom: 0; z-index: 45;
    overflow-y: auto; overscroll-behavior: contain; background: var(--tile);
    padding: .5rem var(--pad) calc(6rem + env(safe-area-inset-bottom));
  }
  .nav-menu.is-open { display: block; }
  html.nav-open { overflow: hidden; }
  .nav-list { display: block; max-width: 40rem; margin-inline: auto; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link, .nav-drop { display: flex; width: 100%; justify-content: space-between; min-height: 3.4rem; padding: .5rem 0; font-size: 1.15rem; border-radius: 0; }
  .nav-link:hover, .nav-drop:hover, .nav-drop[aria-expanded="true"] { background: none; }
  .nav-link[aria-current="page"] { box-shadow: none; }
  .nav-drop::after { margin-right: .35rem; }
  .nav-panel { padding: 0 0 1.25rem; }
  .nav-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
  .nav-col a { padding: .45rem 0; }
}
@media (max-width: 760px) {
  .nav-call { display: none; }
  .nav-cols, .nav-cols--2 { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .brand-name { font-size: 1.3rem; }
}

/* ---------------------------------------------------------------- indice degli strumenti in home */
.tix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 2.25rem; margin-top: 2.5rem; }
.tix-group { padding-top: 1.1rem; border-top: 2px solid var(--night); }
.tix-head { display: flex; align-items: center; gap: .75rem; }
.tix-head .t { width: 2.4rem; height: 2.4rem; border-radius: 4px; flex: none; }
.tix-head h3 { font-size: 1.25rem; font-weight: 740; color: var(--night); }
.tix-group > p { margin-top: .6rem; color: var(--muted); font-size: .95rem; }
.tix-group ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.tix-group li { padding-block: .6rem; border-top: 1px solid var(--line); }
.tix-group li a { font-weight: 680; color: var(--night); text-decoration: none; }
.tix-group li a:hover { color: var(--cobalt); text-decoration: underline; }
.tix-group li span { display: block; margin-top: .1rem; color: var(--muted); font-size: .93rem; line-height: 1.4; }
@media (max-width: 1080px) { .tix { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tix { grid-template-columns: minmax(0, 1fr); } }

/* pagina degli strumenti: una sezione per esigenza */
.tools-group + .tools-group { padding-top: 0; }

@media print { .nav { display: none !important; } }

/* ---------------------------------------------------------------- contatti: email in primo piano */
.contact-mail { font-size: clamp(2.2rem, 8.6vw, 6rem); letter-spacing: -0.035em; white-space: normal; overflow-wrap: anywhere; }
.contact p.contact-tel { margin-top: 1.25rem; font-size: 1.05rem; }
.contact-tel a { color: #fff; font-weight: 650; }
.contact-tel a:hover { color: var(--lemon); }
.contact-cta .btn svg, .callbar .btn svg { width: 1.1em; height: 1.1em; }
.cta-tel { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding-inline: .25rem; font-weight: 600; color: var(--cobalt); }
.cta-tel svg { width: 1.05em; height: 1.05em; }
.dark .cta-tel, .ai-feature .cta-tel, .ck-cta .cta-tel { color: inherit; }
@media (max-width: 760px) {
  .callbar { grid-template-columns: 1fr 1fr auto; }
  .callbar .btn:last-child { padding-inline: .9rem; }
  .hero-cta .cta-tel { flex: 1 1 100%; justify-content: center; }
}
