/* Digitalianlab — foglio di stile principale */

@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/bricolage-latin.woff2) format("woff2-variations"), url(../fonts/bricolage-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/bricolage-latin-ext.woff2) format("woff2-variations"), url(../fonts/bricolage-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #10243e;
  --ink-2: #1b3557;
  --paper: #f4f6f8;
  --white: #ffffff;
  --lake: #127c82;
  --lake-d: #0b5a5f;
  --mist: #dce8e9;
  --glow: #f6c453;
  --slate: #56677a;
  --line: #d6dee5;
  --font: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --sec: clamp(4rem, 9vw, 7.5rem);
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.08; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.75rem); letter-spacing: -.028em; line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 3.4vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--lake); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--glow); color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: .7rem 1rem; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 38em; }

/* ---------- Pulsanti e link ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--lake); color: var(--white); }
.btn-primary:hover { background: var(--lake-d); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--glow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.mail-link { text-transform: none; }
.copy { width: 52px; padding: 0; }
.copy .i-done { display: none; }
.copy.is-done { border-color: var(--lake); color: var(--lake-d); }
.copy.is-done .i-copy { display: none; }
.copy.is-done .i-done { display: block; }

/* WhatsApp, solo da smartphone */
.wa-fab { display: none; }
@media (max-width: 860px) {
  .wa-fab {
    position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 45;
    display: inline-flex; align-items: center; gap: .5rem; min-height: 56px; padding: 0 1.15rem 0 .9rem; border-radius: 999px;
    background: #1fa855; color: #fff; font-weight: 700; text-decoration: none;
    box-shadow: 0 14px 30px -10px rgba(16,36,62,.45), 0 2px 6px rgba(16,36,62,.18);
    transition: transform .2s var(--ease), background-color .2s;
  }
  .wa-fab:hover { background: #178c46; }
  .wa-fab:active { transform: scale(.96); }
  body.nav-open .wa-fab { display: none; }
  body .site-foot { padding-bottom: 6rem; }
}
@media print { .wa-fab { display: none !important; } }

.mailcta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.mailcta.on-dark .btn-primary { background: var(--glow); color: var(--ink); }
.mailcta.on-dark .btn-primary:hover { background: var(--white); }
.mailcta.on-dark .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.35); }
.mailcta.on-dark .btn-ghost:hover { border-color: var(--white); }

.link {
  color: var(--lake-d); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, var(--lake) 45%, transparent);
  transition: text-decoration-color .2s;
}
.link:hover { text-decoration-color: currentColor; }
.chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: .35rem .95rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: .95rem; text-decoration: none;
}
a.chip:hover { border-color: var(--lake); color: var(--lake-d); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips .chip { font-weight: 500; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50; height: var(--head-h);
  background: color-mix(in srgb, var(--paper) 0%, transparent);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-head.is-scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.head-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: none; }
.logo-img { height: 44px; width: auto; filter: drop-shadow(0 0 .6px rgba(16,36,62,.55)) drop-shadow(0 1px 1px rgba(16,36,62,.28)); }
.logo-light .logo-img { height: 36px; filter: none; }
.logo-word { font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; }
.logo-light { color: var(--white); }

.mainnav { display: flex; align-items: center; gap: 1.25rem; }
.nav-list { list-style: none; display: flex; align-items: center; gap: .25rem; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a { position: relative; display: block; padding: .5rem .7rem; font-weight: 500; font-size: .98rem; text-decoration: none; transition: color .2s; }
.nav-list > li > a::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--lake); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-list > li > a:hover::after, .nav-list > li > a[aria-current]::after { transform: scaleX(1); }
.nav-list > li > a[aria-current] { color: var(--lake-d); font-weight: 600; }
.sub-toggle { border: 0; background: none; padding: .35rem; margin-left: -.5rem; cursor: pointer; color: inherit; border-radius: 50%; }
.sub-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s var(--ease); }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.sub {
  list-style: none; position: absolute; top: calc(100% + .5rem); left: -.5rem; width: 330px; padding: .5rem;
  background: var(--white); border-radius: var(--r); box-shadow: 0 24px 60px -20px rgba(16,36,62,.35), 0 0 0 1px rgba(16,36,62,.06);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.has-sub:hover .sub, .has-sub.is-open .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; }
.sub a:hover, .sub a[aria-current] { background: var(--paper); }
.sub .ico { width: 22px; height: 22px; color: var(--lake); flex: none; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Selettore lingue */
.flag { display: inline-block; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(16,36,62,.14); }
.flag svg { display: block; width: 100%; height: 100%; }
.langsel { position: relative; }
.langsel-btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .3rem .7rem .3rem .4rem;
  border: 1.5px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 999px; background: var(--white);
  font: inherit; font-size: .85rem; font-weight: 700; letter-spacing: .03em; color: var(--ink); cursor: pointer; transition: border-color .2s;
}
.langsel-btn:hover, .langsel-btn[aria-expanded="true"] { border-color: var(--ink); }
.langsel-chev { fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s var(--ease); }
.langsel-btn[aria-expanded="true"] .langsel-chev { transform: rotate(180deg); }
.langsel-list {
  list-style: none; position: absolute; right: 0; top: calc(100% + .5rem); min-width: 190px; padding: .4rem;
  background: var(--white); border-radius: var(--r); box-shadow: 0 24px 60px -20px rgba(16,36,62,.35), 0 0 0 1px rgba(16,36,62,.06);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.langsel.is-open .langsel-list { opacity: 1; visibility: visible; transform: none; }
.langsel-list a { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; color: var(--ink); }
.langsel-list a:hover { background: var(--paper); }
.langsel-list a[aria-current] { background: var(--paper); font-weight: 700; }
.burger { display: none; }

@media (max-width: 1080px) {
  .burger {
    display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: var(--ink); cursor: pointer; position: relative; z-index: 60;
  }
  .burger-lines, .burger-lines::before, .burger-lines::after {
    display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
  }
  .burger-lines { position: relative; }
  .burger-lines::before, .burger-lines::after { content: ""; position: absolute; left: 0; }
  .burger-lines::before { top: -6px; }
  .burger-lines::after { top: 6px; }
  .burger[aria-expanded="true"] .burger-lines { background: transparent; }
  .burger[aria-expanded="true"] .burger-lines::before { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"] .burger-lines::after { transform: translateY(-6px) rotate(-45deg); }
  .mainnav {
    position: fixed; inset: 0; z-index: 55; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1.5rem;
    padding: calc(var(--head-h) + 1rem) var(--gut) 2rem; background: var(--paper); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .mainnav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; padding: 1rem 0; font-size: 1.45rem; font-weight: 600; border-radius: 0; }
  .nav-list > li > a:hover, .nav-list > li > a[aria-current] { background: none; color: var(--lake-d); }
  .nav-list > li > a::after { display: none; }
  .sub-toggle { width: 48px; height: 48px; display: grid; place-items: center; margin: 0; }
  .sub { position: static; width: 100%; box-shadow: none; padding: 0 0 1rem; background: none; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover .sub { display: none; }
  .has-sub.is-open .sub, .has-sub.is-open:hover .sub { display: block; }
  .langsel-btn { display: none; }
  .langsel-list { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; min-width: 0; padding: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .langsel-list a { gap: .5rem; padding: .5rem .6rem .5rem .45rem; font-size: .95rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); }
  .langsel-list a[aria-current] { border-color: var(--ink); background: var(--white); }
  .langsel-list .flag { width: 26px; height: 26px; }
  body.nav-open { overflow: hidden; }
  .logo { position: relative; z-index: 60; }
}

/* ---------- Hero home ---------- */
.hero { position: relative; padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); margin-top: calc(-1 * var(--head-h)); padding-top: calc(var(--head-h) + clamp(2rem, 5vw, 4.5rem)); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url(../img/contours.svg) right -8vw top -4vw / min(1100px, 95vw) auto no-repeat;
  opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 92%); mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-title { max-width: 12ch; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.5rem; }
.hero-rating { font-size: .95rem; color: var(--slate); text-decoration: none; }
.hero-rating span { color: #d9a21b; letter-spacing: .08em; }
.hero-rating:hover { color: var(--ink); }

/* Conto commissioni */
.folio { perspective: 1200px; }
.folio-paper {
  --notch: 10px;
  position: relative; background: var(--white); border-radius: var(--r) var(--r) 0 0;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.1rem) 2.4rem;
  box-shadow: 0 40px 80px -40px rgba(16,36,62,.45), 0 0 0 1px rgba(16,36,62,.05);
  transform: rotate(1.6deg);
  -webkit-mask: radial-gradient(var(--notch) at 50% 100%, #0000 98%, #000) 50% / calc(var(--notch) * 2.6) 100% repeat-x;
          mask: radial-gradient(var(--notch) at 50% 100%, #0000 98%, #000) 50% / calc(var(--notch) * 2.6) 100% repeat-x;
}
.folio-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .9rem; margin-bottom: 1rem; border-bottom: 1.5px dashed var(--line); font-size: .9rem; color: var(--slate); }
.folio-title { font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.folio-q { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 1.1rem; }
.folio-ex { font-size: .88rem; color: var(--slate); margin: 0 0 1.1rem; }
.folio-field { margin-bottom: 1.15rem; }
.folio-field label { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; color: var(--ink-2); margin-bottom: .45rem; }
.folio-field output { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--lake) var(--p), var(--mist) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--mist); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--lake); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--white); border: 2px solid var(--lake); box-shadow: 0 3px 10px rgba(16,36,62,.25); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 2px solid var(--lake); box-shadow: 0 3px 10px rgba(16,36,62,.25); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.folio-lines { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1.5px dashed var(--line); }
.folio-line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .35rem 0; }
.folio-line dt { color: var(--ink-2); font-size: .98rem; }
.folio-line dd { margin: 0; font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.folio-line dt span { display: block; font-size: .84rem; color: var(--slate); line-height: 1.35; }
.folio-muted dd { font-size: 1.05rem; color: var(--slate); }
.folio-field { margin-bottom: .9rem; }
.folio-total { margin-top: .5rem; padding: .9rem 1rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--glow) 28%, var(--white)); align-items: center; }
.folio-total dt { font-weight: 600; color: var(--ink); line-height: 1.35; }

.folio-total dd { font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: -.03em; color: var(--ink); }
.folio-note { margin: 1rem 0 0; font-size: .85rem; color: var(--slate); }

/* Sequenza d'ingresso: unica animazione orchestrata della pagina */
.js .hero-copy > * { opacity: 0; transform: translateY(18px); }
.js .folio-paper { opacity: 0; transform: translateY(60px) rotate(6deg); }
.js .folio-head, .js .folio-q, .js .folio-field, .js .folio-line, .js .folio-note { opacity: 0; transform: translateY(8px); }
.is-ready .hero-copy > * { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.is-ready .hero-copy > :nth-child(2) { transition-delay: .08s; }
.is-ready .hero-copy > :nth-child(3) { transition-delay: .16s; }
.is-ready .hero-copy > :nth-child(4) { transition-delay: .24s; }
.is-ready .folio-paper { opacity: 1; transform: rotate(1.6deg); transition: opacity .7s .25s, transform 1.1s .25s var(--ease); }
.is-ready .folio-head, .is-ready .folio-q, .is-ready .folio-field, .is-ready .folio-line, .is-ready .folio-note { opacity: 1; transform: none; transition: opacity .45s, transform .45s var(--ease); }
.is-ready .folio-head { transition-delay: .7s; }
.is-ready .folio-q { transition-delay: .82s; }
.is-ready .folio-field:nth-child(3) { transition-delay: .94s; }
.is-ready .folio-field:nth-child(4) { transition-delay: 1.06s; }
.is-ready .folio-field:nth-child(5) { transition-delay: 1.12s; }
.is-ready .folio-field:nth-child(6) { transition-delay: 1.18s; }
.is-ready .folio-field:nth-child(7) { transition-delay: 1.22s; }
.is-ready .folio-line:nth-child(1) { transition-delay: 1.26s; }
.is-ready .folio-line:nth-child(2) { transition-delay: 1.34s; }
.is-ready .folio-line:nth-child(3) { transition-delay: 1.42s; }
.is-ready .folio-line:nth-child(4) { transition-delay: 1.5s; }
.is-ready .folio-line:nth-child(5) { transition-delay: 1.56s; }
.is-ready .folio-line:nth-child(6) { transition-delay: 1.62s; }
.js .folio-ex { opacity: 0; }
.is-ready .folio-ex { opacity: 1; transition: opacity .45s .86s; }
.is-ready .folio-note { transition-delay: 1.66s; }
.folio-total dd.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06); color: var(--lake-d); } }

/* ---------- Fascia clienti ---------- */
.trust { border-block: 1px solid var(--line); background: var(--white); }
.trust-in { display: flex; align-items: center; gap: 1rem 2rem; padding-block: 1.4rem; flex-wrap: wrap; }
.trust-label { margin: 0; font-size: .92rem; color: var(--slate); flex: none; }
.trust-list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; flex: 1; font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; color: var(--ink-2); }
.trust-more { flex: none; font-size: .95rem; }

/* ---------- Sezioni ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 1.12rem; max-width: 34em; }

.why { padding-block: var(--sec) 0; }
.why-title { max-width: 18ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.why-item { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.why-item h3 { font-size: 1.35rem; }
.why-item p { color: var(--ink-2); margin: 0; }

.svc { padding-block: var(--sec); }
.svc-list { list-style: none; border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 44px minmax(0, 1.05fr) minmax(0, 1.3fr) 28px; align-items: center; gap: 1.5rem;
  padding: 1.35rem .5rem; border-bottom: 1px solid var(--line); text-decoration: none; position: relative;
  transition: background-color .25s, padding .3s var(--ease);
}
.svc-row .ico { width: 30px; height: 30px; color: var(--lake); }
.svc-name { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 650; letter-spacing: -.02em; }
.svc-short { color: var(--slate); }
.svc-arrow { fill: none; stroke: var(--ink); stroke-width: 1.8; transition: transform .3s var(--ease); }
.svc-row:hover { background: var(--white); padding-inline: 1.25rem .9rem; }
.svc-row:hover .svc-arrow { transform: translateX(4px); }

/* GEO */
.geo-band { background: var(--ink); color: var(--paper); padding-block: var(--sec); position: relative; overflow: hidden; }
.geo-band::after { content: ""; position: absolute; right: -20%; top: -40%; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, color-mix(in srgb, var(--lake) 55%, transparent), transparent); opacity: .5; pointer-events: none; }
.geo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; position: relative; z-index: 1; }
.geo-copy h2 { color: var(--white); max-width: 14ch; }
.geo-copy p { color: color-mix(in srgb, var(--paper) 82%, transparent); font-size: 1.12rem; max-width: 32em; margin-bottom: 1.75rem; }
.chat { background: color-mix(in srgb, var(--white) 7%, transparent); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 1.1rem 1.4rem 1.6rem; backdrop-filter: blur(6px); }
.chat-bar { display: flex; gap: 6px; margin-bottom: 1.2rem; }
.chat-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.chat-q { margin: 0 0 1.2rem auto; max-width: 85%; background: var(--paper); color: var(--ink); padding: .9rem 1.1rem; border-radius: 18px 18px 4px 18px; font-size: 1rem; }
.chat-a { display: flex; gap: .8rem; margin: 0; font-size: 1.02rem; line-height: 1.6; color: color-mix(in srgb, var(--paper) 92%, transparent); min-height: 8.5em; }
.chat-ai { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--lake); display: grid; place-items: center; }
.chat-ai svg { fill: var(--white); }
.chat-a mark { background: var(--glow); color: var(--ink); padding: .05em .35em; border-radius: 5px; font-weight: 700; }
.chat-text.is-typing::after { content: ""; display: inline-block; width: .5em; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--glow); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Metodo (anteprima) */
.method-teaser { padding-block: var(--sec) 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 2rem; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: var(--line); }
.step { position: relative; padding-right: .5rem; }
.step-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); font-weight: 700; margin-bottom: 1rem; position: relative; }
.step h3 { font-size: 1.08rem; }

/* Pacchetti */
.pkgs { padding-block: var(--sec); }
.pkg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pkg-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-lg); padding: 2rem 1.75rem 1.75rem; border: 1px solid var(--line); }
.pkg-card.pkg-master { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pkg-card.is-current { outline: 3px solid var(--lake); outline-offset: -3px; }
.pkg-name { font-size: 1.05rem; letter-spacing: .06em; margin-bottom: .2rem; }
.pkg-tag { color: var(--slate); margin-bottom: 1.4rem; }
.pkg-master .pkg-tag { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.pkg-price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .4rem; }
.pkg-price strong { font-size: clamp(2.2rem, 3.6vw, 2.9rem); letter-spacing: -.04em; line-height: 1; }
.pkg-from, .pkg-unit { font-size: .95rem; color: var(--slate); }
.pkg-master .pkg-from, .pkg-master .pkg-unit, .pkg-master .pkg-terms { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.pkg-terms { font-size: .9rem; color: var(--slate); margin: .35rem 0 1.1rem; }
.pkg-bonus { font-weight: 600; font-size: .95rem; padding: .55rem .8rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--glow) 30%, var(--white)); color: var(--ink); align-self: flex-start; }
.pkg-hl { list-style: none; margin: .5rem 0 1.75rem; display: grid; gap: .55rem; }
.pkg-hl li { position: relative; padding-left: 1.6rem; }
.pkg-hl li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .5rem; border-left: 2px solid var(--lake); border-bottom: 2px solid var(--lake); transform: rotate(-45deg) translateY(-2px); }
.pkg-master .pkg-hl li::before { border-color: var(--glow); }
.pkg-card .btn { margin-top: auto; }
.pkg-master .btn-dark { background: var(--glow); color: var(--ink); }
.pkg-master .btn-dark:hover { background: var(--white); }
.pkg-master .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.pkgs-more { margin: 1.75rem 0 0; }

/* Recensioni */
.reviews { padding-block: 0 var(--sec); }
.rev-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.rev-head h2 { margin: 0; }
.rating { display: inline-grid; grid-template-columns: auto auto; column-gap: .9rem; align-items: center; text-decoration: none; }
.rating-num { grid-row: span 2; font-size: 3.4rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.rating-stars { color: #d9a21b; letter-spacing: .1em; }
.rating-txt { font-size: .92rem; color: var(--slate); }
.rating:hover .rating-txt { color: var(--ink); text-decoration: underline; }
.rev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.rev { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; padding: 1.6rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.rev blockquote { margin: 0; }
.rev blockquote p { margin: 0; font-size: 1.12rem; line-height: 1.45; font-weight: 500; letter-spacing: -.01em; }
.rev blockquote p::before { content: "“"; } .rev blockquote p::after { content: "”"; }
.rev figcaption { font-size: .92rem; }
.rev figcaption strong { display: block; }
.rev figcaption span { color: var(--slate); }
.rev-note { font-size: .9rem; color: var(--slate); }

/* Offerta senza prezzi */
.offer { padding-block: var(--sec); }
.offer-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; padding: clamp(1.75rem, 4vw, 3.25rem); border-radius: var(--r-lg); background: var(--ink); color: var(--paper); }
.offer-card h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.5rem); }
.offer-card p { margin: 0; color: color-mix(in srgb, var(--paper) 80%, transparent); max-width: 36em; }
.offer-card .mailcta { margin-top: 0; justify-content: flex-end; }
@media (max-width: 860px) { .offer-card { grid-template-columns: 1fr; } .offer-card .mailcta { justify-content: flex-start; } }

/* Gruppo */
.group { padding-bottom: var(--sec); }
.group-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--r-lg); background: var(--mist); }
.group-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.group-card p { margin: 0; max-width: 36em; color: var(--ink-2); }
.group-link { justify-self: end; display: grid; gap: .5rem; justify-items: end; text-decoration: none; }
.hm-word { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.hm-word em { font-style: normal; color: var(--lake-d); }

/* FAQ */
.faq { padding-block: 0 var(--sec); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem 4rem; align-items: start; }
.faq h2 { position: sticky; top: calc(var(--head-h) + 1.5rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 0; cursor: pointer; font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; transition: transform .3s var(--ease), background-color .2s; }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); }
.faq-ico::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] .faq-ico { background: var(--ink); border-color: var(--ink); }
.faq details[open] .faq-ico::before { background: var(--white); }
.faq details[open] .faq-ico::after { transform: translate(-50%, -50%) rotate(0); background: var(--white); }
.faq-a { padding: 0 3rem 1.25rem 0; color: var(--ink-2); }
.faq-a p { margin: 0; }
.faq-a a { color: var(--lake-d); font-weight: 600; }

/* CTA finale */
.cta-band { background: var(--ink); color: var(--paper); padding-block: var(--sec); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url(../img/contours-light.svg) left -10vw bottom -12vw / min(1000px, 110vw) auto no-repeat; opacity: .5; pointer-events: none; }
.cta-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem 5rem; align-items: end; position: relative; }
.cta-title { font-size: clamp(2.6rem, 6vw, 5.2rem); color: var(--white); margin: 0; letter-spacing: -.04em; line-height: .98; }
.cta-side p { font-size: 1.12rem; color: color-mix(in srgb, var(--paper) 82%, transparent); margin: 0; }

/* ---------- Pagine interne ---------- */
.page-hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); position: relative; }
.page-hero h1 { max-width: 18ch; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; color: var(--slate); margin-bottom: 1.5rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.hero-ico { position: absolute; right: var(--gut); top: clamp(2rem, 5vw, 4rem); width: clamp(70px, 10vw, 130px); height: auto; color: var(--lake); opacity: .9; }
.hero-ico .ico { width: 100%; height: 100%; stroke-width: 1.1; }

.prose-sections { padding-bottom: clamp(2rem, 5vw, 4rem); }
.ps { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem 4rem; padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.ps h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.ps-body { max-width: 40em; font-size: 1.08rem; color: var(--ink-2); }
.ps-body > :last-child { margin-bottom: 0; }
.steps-list { padding-left: 0; list-style: none; display: grid; gap: .9rem; counter-reset: sl; }
.steps-list li { position: relative; padding-left: 2.6rem; }
ol.steps-list li { counter-increment: sl; }
ol.steps-list li::before { content: counter(sl); position: absolute; left: 0; top: -.05em; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); font-weight: 700; font-size: .85rem; }
ul.steps-list li::before { content: ""; position: absolute; left: .4rem; top: .55em; width: .7rem; height: .7rem; border-radius: 3px; background: var(--lake); }
.ps-body strong { color: var(--ink); }

.points { padding-block: clamp(2rem, 5vw, 4rem) var(--sec); }
.points-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.points-grid li { background: var(--white); padding: 1.6rem 1.5rem; }
.points-grid h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.points-grid p { margin: 0; color: var(--slate); font-size: .98rem; }

.in-pkg { padding-bottom: var(--sec); }
.in-pkg-box { padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--r-lg); background: var(--mist); }
.in-pkg-box h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.in-pkg-box p { max-width: 44em; color: var(--ink-2); }
.in-pkg-links { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1.25rem 0 0; }

.related { padding-bottom: var(--sec); }
.related h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.related-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.related-list a { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: border-color .2s; }
.related-list a:hover { border-color: var(--lake); }
.related-list .ico { width: 24px; height: 24px; color: var(--lake); flex: none; }

/* Confronto pacchetti */
.p-packages .pkgs { padding-top: 0; }
.compare { padding-bottom: var(--sec); }
.cmp-tabs { display: none; }
.cmp-scroll { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); }
.cmp { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .98rem; }
.cmp th, .cmp td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { position: sticky; top: 0; background: var(--ink); color: var(--white); font-size: 1rem; letter-spacing: .05em; }
.cmp thead th a { color: inherit; text-decoration: none; }
.cmp thead th a:hover { text-decoration: underline; }
.cmp tbody th { font-weight: 500; width: 34%; }
.cmp-group th { background: var(--paper); font-weight: 700 !important; font-size: .92rem; color: var(--ink-2); }
.cmp .yes { color: var(--lake); font-weight: 700; }
.cmp .no { color: var(--line); font-weight: 700; }
.cmp .val { color: var(--slate); font-size: .92rem; white-space: nowrap; }
.cmp tfoot th, .cmp tfoot td { border-bottom: 0; background: var(--mist); }
.cmp tfoot strong { font-size: 1.35rem; letter-spacing: -.02em; }
.cmp tfoot small { display: block; color: var(--slate); font-size: .82rem; line-height: 1.4; margin-top: .25rem; }
.cmp-note { margin-top: 1rem; color: var(--slate); font-size: .95rem; }

/* Pagina pacchetto */
.pkg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.pkg-hero h1 { max-width: 15ch; }
.pkg-hl-hero { margin-top: 1.75rem; font-size: 1.05rem; }
.price-box { position: sticky; top: calc(var(--head-h) + 1rem); background: var(--white); border-radius: var(--r-lg); padding: 1.75rem; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(16,36,62,.4); display: grid; gap: .25rem; }
.pkg-master .price-box { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.price-name { margin: 0; font-weight: 700; letter-spacing: .08em; font-size: .95rem; }
.price-main { margin: .25rem 0 0; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.price-main strong { font-size: 3rem; letter-spacing: -.045em; line-height: 1; }
.price-main span, .price-terms { color: var(--slate); font-size: .92rem; }
.pkg-master .price-main span, .pkg-master .price-terms { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.price-terms { margin: .3rem 0 .9rem; }
.price-bonus { margin: 0 0 1rem; font-weight: 600; padding: .55rem .8rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--glow) 30%, var(--white)); color: var(--ink); font-size: .95rem; }
.price-box .btn + .btn { margin-top: .5rem; }
.pkg-master .price-box .btn-primary { background: var(--glow); color: var(--ink); }
.pkg-master .price-box .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.35); }
.pkg-for { padding-bottom: clamp(2rem, 4vw, 3rem); }
.pkg-for h2, .pkg-items h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.pkg-for p { font-size: 1.15rem; max-width: 40em; color: var(--ink-2); }
.pkg-items { padding-bottom: clamp(2rem, 4vw, 3rem); }
.pkg-items h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; }
.pkg-items-total { font-size: 1rem; font-weight: 600; color: var(--lake-d); letter-spacing: 0; }
.item-list { list-style: none; border-top: 1px solid var(--line); }
.item-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 2rem; align-items: start; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.item-list h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.item-list p { margin: 0; color: var(--slate); max-width: 48em; }
.item-val { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; padding: .15rem .55rem; border-radius: 6px; background: var(--mist); color: var(--lake-d); font-size: .82rem; margin-right: .35rem; }

/* Portfolio */
.pf-group { padding-bottom: clamp(3rem, 6vw, 5rem); }
.pf-group h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); display: flex; align-items: baseline; gap: .75rem; }
.count { font-size: 1rem; font-weight: 600; color: var(--slate); }
.pf-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.pf-card { margin: 0; }
.pf-card .pf-img, .pf-card .img-ph { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--r); background: var(--mist); display: block; }
.pf-card p { margin: .7rem 0 0; display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; font-weight: 600; line-height: 1.3; }
.stars { color: #c9921a; font-size: .78rem; letter-spacing: .08em; white-space: nowrap; font-weight: 400; }
.stars sup { font-size: .7em; margin-left: 1px; }
.pf-names { list-style: none; columns: 3 220px; column-gap: 2rem; }
.pf-names li { break-inside: avoid; padding: .55rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; font-weight: 500; }

/* Metodo */
.method-steps { padding-bottom: var(--sec); }
.mstep-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.mstep { display: grid; grid-template-columns: clamp(70px, 12vw, 160px) minmax(0, 1fr); gap: 1.5rem; padding: clamp(1.75rem, 3vw, 2.5rem) 0; border-bottom: 1px solid var(--line); align-items: start; }
.mstep-n { font-size: clamp(3rem, 7vw, 6rem); font-weight: 700; line-height: .85; letter-spacing: -.06em; color: var(--lake); }
.mstep h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.mstep p { margin: 0; color: var(--ink-2); max-width: 40em; font-size: 1.08rem; }

/* Chi siamo */
.areas { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
.areas li { padding: 1.2rem 1.25rem; background: var(--white); border-radius: var(--r); border: 1px solid var(--line); }
.areas h3 { font-size: 1.05rem; margin-bottom: .25rem; color: var(--ink); }
.areas p { margin: 0; font-size: .96rem; }
.badges { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.badges img { width: auto; height: 40px; border-radius: 6px; background: var(--white); padding: 4px; }
.badges-lg { margin-top: 1rem; }
.badges-lg img { height: 64px; padding: 6px; }
.badge-txt { display: inline-block; padding: .35rem .7rem; border-radius: 6px; border: 1px solid currentColor; font-size: .82rem; font-weight: 600; opacity: .8; }
.fair { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-bottom: var(--sec); }
.fair-fig { margin: 0; }
.fair-img, .fair-fig .img-ph { width: 100%; border-radius: var(--r-lg); object-fit: cover; aspect-ratio: 4 / 3; background: var(--mist); display: block; }
.fair-copy p { color: var(--ink-2); font-size: 1.1rem; }

/* Contatti */
.contact-hero h1 { max-width: 16ch; }
.big-mail { display: inline-block; margin-top: 1rem; font-size: clamp(1.9rem, 6.2vw, 5.4rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; text-decoration: none; color: var(--lake-d); background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .5s var(--ease); word-break: break-word; }
.big-mail:hover { background-size: 100% 3px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; padding-bottom: var(--sec); }
.contact-grid h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.checklist, .numlist { list-style: none; display: grid; gap: .8rem; font-size: 1.08rem; counter-reset: nl; }
.checklist li, .numlist li { position: relative; padding-left: 2.4rem; }
.checklist li::before { content: ""; position: absolute; left: .35rem; top: .35em; width: .95rem; height: .55rem; border-left: 2.5px solid var(--lake); border-bottom: 2.5px solid var(--lake); transform: rotate(-45deg); }
.numlist li { counter-increment: nl; }
.numlist li::before { content: counter(nl); position: absolute; left: 0; top: -.05em; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); font-size: .85rem; font-weight: 700; }
.company { padding-bottom: var(--sec); }
.company h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.co-dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.co-dl div { background: var(--white); padding: 1.2rem 1.3rem; }
.co-dl dt { font-size: .85rem; color: var(--slate); margin-bottom: .25rem; }
.co-dl dd { margin: 0; font-weight: 600; }
.co-dl a { color: var(--lake-d); }

/* Testi legali */
.legal-hero { padding-bottom: 1rem; }
.updated { color: var(--slate); font-size: .95rem; }
.legal { max-width: 760px; padding-bottom: var(--sec); color: var(--ink-2); }
.legal h2 { font-size: 1.5rem; margin-top: 2.25rem; color: var(--ink); }
.legal h3 { font-size: 1.1rem; margin-top: 1.25rem; color: var(--ink); }
.legal ul { padding-left: 1.2rem; display: grid; gap: .5rem; margin-bottom: 1rem; }
.legal a { color: var(--lake-d); font-weight: 600; }

.nf-links { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

.img-ph { display: block; background: linear-gradient(135deg, var(--mist), color-mix(in srgb, var(--mist) 50%, var(--white))); }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: color-mix(in srgb, var(--paper) 78%, transparent); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .97rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-brand p { margin: 1.2rem 0; max-width: 28em; }
.foot-mail { color: var(--white); font-weight: 600; font-size: 1.15rem; text-decoration: none; border-bottom: 1.5px solid var(--glow); }
.foot-mail:hover { color: var(--glow); }
.foot-h { font-size: .95rem; color: var(--white); letter-spacing: 0; margin-bottom: 1rem; }
.foot-h2 { margin-top: 1.75rem; }
.site-foot ul { list-style: none; display: grid; gap: .5rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--white); text-decoration: underline; }
.foot-group a { display: grid; gap: .1rem; }
.foot-group strong { color: var(--white); font-size: 1.05rem; }
.foot-group span { font-size: .9rem; }
.site-foot .badges { display: flex; gap: .75rem; }
.foot-legal { padding-top: 1.75rem; font-size: .85rem; }
.legal-list { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.legal-list strong { color: var(--white); width: 100%; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1rem 0 0; }
.foot-bottom span { margin-right: auto; }

/* ---------- Comparsa delle sezioni allo scorrimento: solo per il calcolatore e la chat ---------- */

/* ---------- Partner ---------- */
.partners { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 6vw, 5rem); }
.pt-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1rem clamp(2rem, 5vw, 4rem); padding-block: clamp(1.6rem, 3vw, 2.4rem); border-top: 1px solid var(--line); }
.pt-row:last-child { border-bottom: 1px solid var(--line); }
.pt-cat h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-bottom: .45rem; }
.pt-cat p { color: var(--ink-2); max-width: 36em; }
.pt-list { list-style: none; display: flex; flex-wrap: wrap; align-content: flex-start; gap: .6rem; }
.pt-item { display: grid; place-items: center; min-height: 64px; padding: .6rem 1.15rem; border-radius: var(--r-sm); background: var(--white); box-shadow: 0 0 0 1px var(--line); font-weight: 650; font-size: 1.02rem; letter-spacing: -.01em; }
.pt-item.has-logo { height: 80px; min-width: 120px; padding: .6rem 1rem; }
.pt-item img { display: block; max-height: 56px; width: auto; max-width: 170px; object-fit: contain; }
.pt-more { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.pt-box { padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--r); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.pt-box h2 { font-size: 1.35rem; margin-bottom: .6rem; }
.pt-box p + p { margin-top: .75rem; }
.pt-group { background: var(--mist); box-shadow: none; }

/* ---------- Video testimonianze ---------- */
.rating-hero { margin-top: 1.25rem; }
.vt-note { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.4rem; margin-bottom: clamp(2rem, 4vw, 3rem); border-radius: var(--r); background: var(--white); box-shadow: 0 0 0 1px var(--line); max-width: 920px; }
.vt-note-ico { flex: none; margin-top: .15rem; fill: none; stroke: var(--lake); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vt-note h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.vt-note p { color: var(--ink-2); font-size: .97rem; }
.vt-sec { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.vt-h { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 1.25rem; }
.vt-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.75rem); }
.vt-frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--ink); color: var(--white); text-decoration: none; }
.vt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vt-poster { position: absolute; inset: 0; display: block; background: var(--ink) url(../img/contours-light.svg) right -30% top -40% / 170% auto no-repeat; }
.vt-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vt-frame:hover .vt-poster img { transform: scale(1.03); }
.vt-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,36,62,0) 40%, rgba(16,36,62,.88)); }
.vt-poster > span { z-index: 1; }
.vt-src { position: absolute; right: .8rem; top: .8rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(16,36,62,.62); font-size: .72rem; color: rgba(255,255,255,.88); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.vt-who { position: absolute; left: 1.2rem; right: 5.5rem; bottom: 1.05rem; display: grid; gap: .15rem; }
.vt-name { font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-weight: 750; line-height: 1.1; letter-spacing: -.02em; color: var(--white); text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.vt-what { font-size: .9rem; line-height: 1.3; color: var(--glow); }
.vt-play { position: absolute; right: 1.1rem; bottom: 1.05rem; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); transition: transform .25s var(--ease), background-color .2s; }
.vt-play svg { fill: currentColor; margin-left: 3px; }
.vt-frame:hover .vt-play, .vt-frame:focus-visible .vt-play { transform: scale(1.08); background: var(--glow); }
.vt-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .7rem; font-size: .92rem; color: var(--slate); }
.vt-yt { color: var(--slate); text-underline-offset: .2em; margin-left: auto; }
.vt-yt:hover { color: var(--ink); }
.rev-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
@media (max-width: 1080px) { .vt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .pt-row, .pt-more { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .vt-grid { grid-template-columns: 1fr; } .pt-item { min-height: 52px; font-size: .97rem; } .pt-item.has-logo { height: 68px; min-width: 0; } .pt-item img { max-height: 46px; max-width: 136px; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: 14ch; }
  .folio { max-width: 560px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .steps::before { display: none; }
  .rev-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .sec-head, .geo-grid, .cta-in, .faq, .ps, .group-card, .fair, .contact-grid, .pkg-hero-grid { grid-template-columns: 1fr; }
  .faq h2 { position: static; }
  .trust-in { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .why-grid, .pkg-row { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 34px minmax(0, 1fr) 24px; gap: .25rem 1rem; padding-block: 1.1rem; }
  .svc-short { grid-column: 2; grid-row: 2; font-size: .96rem; }
  .svc-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .points-grid, .related-list, .co-dl { grid-template-columns: 1fr 1fr; }
  .group-link { justify-self: start; justify-items: start; }
  .price-box { position: static; }
  .hero-ico { display: none; }
  .cmp-tabs { display: flex; gap: .4rem; margin-bottom: .75rem; }
  .cmp-tabs button { flex: 1; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-weight: 700; letter-spacing: .04em; cursor: pointer; color: var(--ink); }
  .cmp-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
  .cmp { min-width: 0; }
  .cmp th:not(:first-child), .cmp td { display: none; }
  .cmp[data-active="0"] tr > :nth-child(2), .cmp[data-active="1"] tr > :nth-child(3), .cmp[data-active="2"] tr > :nth-child(4) { display: table-cell; }
  .cmp-group th { display: table-cell !important; }
  .cmp tbody th { width: 58%; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .rev-grid, .pf-grid, .points-grid, .related-list, .co-dl, .areas { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .pf-card p { flex-direction: column; gap: .1rem; font-size: .95rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .mailcta { flex-wrap: nowrap; }
  .mailcta .mail-link { flex: 1; min-width: 0; }
  .mailcta .mail-link span { overflow: hidden; text-overflow: ellipsis; }
  .folio-paper { transform: none; }
  .is-ready .folio-paper { transform: none; }
  .folio-total { flex-direction: column; align-items: flex-start; }
  .item-list li { grid-template-columns: 1fr; }
  .mstep { grid-template-columns: 1fr; gap: .5rem; }
  .trust-list { gap: .3rem 1.1rem; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

@media print {
  .site-head, .cta-band, .burger, .mailcta { display: none; }
  body { background: #fff; }
}

/* ---------- Blog ---------- */
.blog-list { padding-bottom: var(--sec); }
.posts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-card a { display: flex; flex-direction: column; gap: .6rem; height: 100%; padding: 1.6rem 1.5rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .25s var(--ease); }
.post-card a:hover { border-color: var(--lake); transform: translateY(-2px); }
.post-card h2, .post-card h3 { font-size: 1.28rem; margin: 0; line-height: 1.2; }
.post-card p { margin: 0; color: var(--slate); font-size: .97rem; }
.post-cat { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 600; color: var(--lake-d); }
.post-cat .ico { width: 20px; height: 20px; }
.post-cat a { text-decoration: none; }
.post-cat a:hover { text-decoration: underline; }
.post-meta { margin-top: auto; font-size: .88rem; color: var(--slate); display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.post-hero h1 { max-width: 22ch; }
.post-hero .post-meta { margin-top: 1.25rem; }
.post-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); align-items: start; }
.toc { position: sticky; top: calc(var(--head-h) + 1.5rem); font-size: .94rem; border-left: 2px solid var(--line); padding-left: 1.1rem; }
.toc-h { font-weight: 700; margin-bottom: .6rem; }
.toc ol { list-style: none; display: grid; gap: .5rem; }
.toc a { text-decoration: none; color: var(--slate); }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.post-body { max-width: 720px; font-size: 1.1rem; line-height: 1.7; color: var(--ink-2); }
.post-body h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); color: var(--ink); margin-top: 2.4rem; scroll-margin-top: calc(var(--head-h) + 1rem); }
.post-body h2:first-child { margin-top: 0; }
.post-body ul, .post-body ol { padding-left: 1.3rem; display: grid; gap: .45rem; margin: 0 0 1.2rem; }
.post-body li::marker { color: var(--lake); font-weight: 700; }
.post-body a { color: var(--lake-d); font-weight: 600; }
.post-body strong { color: var(--ink); }
.post-svc { margin-top: 2.5rem; padding: 1.3rem 1.4rem; border-radius: var(--r); background: var(--mist); }
.post-svc-h { margin: 0 0 .6rem; font-size: .9rem; font-weight: 700; color: var(--slate); }
.post-svc a { display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; font-weight: 400; color: var(--ink-2); }
.post-svc a .ico { width: 30px; height: 30px; flex: none; color: var(--lake); }
.post-svc strong { display: block; color: var(--ink); font-size: 1.1rem; }
.posts-3 { margin-bottom: 1.5rem; }
@media (max-width: 1080px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .post-grid { grid-template-columns: 1fr; } .toc { position: static; } }
@media (max-width: 560px) { .posts { grid-template-columns: 1fr; } .post-body { font-size: 1.04rem; } }
.ps-body .chips + p { margin-top: 1rem; }

/* ---------- Hero su notebook: tutto visibile all'apertura (titolo, testo, email e conto) ---------- */
@media (min-width: 1081px) {
  .hero { padding-top: calc(var(--head-h) + clamp(1rem, 4.5vh, 4.5rem)); padding-bottom: clamp(2rem, 6vh, 5rem); }
  .hero-title { font-size: clamp(2.6rem, min(5.4vw, 9.4vh), 4.75rem); max-width: 13ch; }
}
@media (min-width: 1081px) and (max-height: 860px) {
  .hero .lead { font-size: clamp(1.02rem, 2.3vh, 1.2rem); line-height: 1.5; }
  .hero .mailcta { margin-top: clamp(1rem, 2.6vh, 1.75rem); }
  .hero .btn { min-height: 48px; padding-block: .65rem; }
  .hero .copy { width: 48px; }
  .hero-links { margin-top: .8rem; }
  .folio-paper { padding: clamp(1rem, 2.6vh, 1.6rem) clamp(1.2rem, 2vw, 1.8rem) 1.8rem; }
  .folio-q { font-size: clamp(1.2rem, 2.9vh, 1.55rem); margin-bottom: clamp(.5rem, 1.4vh, 1rem); }
  .folio-field { margin-bottom: .5rem; }
  .folio-lines { margin-top: clamp(.6rem, 1.6vh, 1.2rem); padding-top: clamp(.4rem, 1.2vh, .9rem); }
  .folio-line { padding: clamp(.12rem, .6vh, .35rem) 0; }
  .folio-line dt { font-size: .93rem; }
  .folio-line dd { font-size: clamp(1.05rem, 2.6vh, 1.25rem); }
  .folio-total { padding: clamp(.5rem, 1.4vh, .9rem) 1rem; }
  .folio-total dd { font-size: clamp(1.5rem, 4.2vh, 2.1rem); }
  .folio-note { margin-top: clamp(.5rem, 1.2vh, 1rem); font-size: .8rem; line-height: 1.45; }
}
