/* Backpoint, sito pubblico. Stile «Future» con il blu di Backpoint.
   I nomi dei colori sono quelli dell'inbox (posta.css). Il tema scuro vale con data-theme="dark" su <html> (lo mette lo script in <head>).
   Regole del sistema: il cerchio pieno è solo il segno di marca (logo, punto dei titoli, punti elenco); le schede hanno il bordo
   OPPURE l'ombra, mai tutti e due; i raggi stanno sulla scala --r-*; i colori diversi dal blu hanno un significato (verde = social,
   viola = restyling, i colori di stato solo nei moduli). */
@font-face { font-family: Outfit; font-style: normal; font-weight: 300 700; font-display: swap; src: url(font/outfit-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Outfit; font-style: normal; font-weight: 300 700; font-display: swap; src: url(font/outfit-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; }

:root {
  --bg: #ffffff; --panel: #ffffff; --panel-2: #f3f6fc;
  --sep: #e7edf7; --linea: #cfdaf1;
  --ink: #2a3550; --ink-2: #4b5a7c; --muted: #5f6d90; --blu: #0959de; --blu-s: #e5eefd; --navy: #0959de; --navy-2: #1f6cf0;
  --q-ink: #0f1830; --rif: #b4334f; --com: #13805a; --com-bg: #e0f3ea;
  --punto: #0959de; --verde: #13805a; --viola: #6a4fd0;
  /* tinte di sezione (due toni in sfumatura) e colore del disegno sopra */
  --azz-1: #e8effd; --azz-2: #d8e4fb; --azz-p: rgba(9, 89, 222, .22);
  --pes-1: #fdf3ea; --pes-2: #fbe6d6; --pes-p: rgba(200, 95, 40, .2);
  --men-1: #e8f6f0; --men-2: #d4eee4; --men-p: rgba(19, 128, 90, .2);
  --lil-1: #f0ecfd; --lil-2: #e2dbf9; --lil-p: rgba(106, 79, 208, .2);
  --pat: rgba(9, 89, 222, .26);
  --m-blu: #b9d1fc; --m-lilla: #dcd2fa; --m-rosa: #f9d3e0; --m-pesca: #fcdcc4; --m-menta: #c6eedf;
  --ombra-2: 0 14px 34px rgba(15, 30, 70, .14); --alone: none;
  --r-xl: 28px; --r-l: 20px; --r-m: 14px; --r-s: 12px;
  --f: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
  --lato: max(16px, env(safe-area-inset-left, 0px)); --lato-d: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070b14; --panel: #0c1220; --panel-2: #111a2c;
  --sep: #151f33; --linea: #24324e;
  --ink: #c9d5f0; --ink-2: #9fb0d6; --muted: #8494bb; --blu: #6ea2ff; --blu-s: #14213d; --navy: #1f6bff; --navy-2: #1a5fe6;
  --q-ink: #eaf0ff; --rif: #ff8fa6; --com: #5fd3a6; --com-bg: #0f2b22;
  --punto: #3a80ff; --verde: #5fd3a6; --viola: #b3a4ff;
  --azz-1: #0b1424; --azz-2: #0e1a31; --azz-p: rgba(110, 162, 255, .16);
  --pes-1: #15110f; --pes-2: #221812; --pes-p: rgba(255, 170, 120, .13);
  --men-1: #0a1715; --men-2: #0d221e; --men-p: rgba(95, 211, 166, .14);
  --lil-1: #100e22; --lil-2: #19143a; --lil-p: rgba(179, 164, 255, .15);
  --pat: rgba(110, 162, 255, .17);
  --m-blu: rgba(9, 89, 222, .34); --m-lilla: rgba(140, 120, 255, .17); --m-rosa: rgba(235, 95, 155, .13); --m-pesca: rgba(245, 145, 80, .12); --m-menta: rgba(60, 200, 170, .12);
  --ombra-2: 0 14px 34px rgba(0, 0, 0, .45); --alone: 0 0 18px rgba(31, 107, 255, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--bg); }
body { margin: 0; font: 400 17px/1.55 var(--f); letter-spacing: 0; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
main { display: block; overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: var(--blu); }
button, input, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blu); outline-offset: 2px; }
.invito :focus-visible, .piano.largo :focus-visible, .fascia :focus-visible, .hero-voci :focus-visible, .b:focus-visible { outline-color: #fff; }
.b-pastello:focus-visible { outline-color: #14204a; }
.gut { padding-inline: var(--lato) var(--lato-d); }
.in { width: 100%; max-width: 1160px; margin-inline: auto; }

/* ---------- testi ---------- */
.sopra { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
h1, h2, h3 { color: var(--q-ink); font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.03; letter-spacing: -.03em; font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 500; }
h2.grande { font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: 1; letter-spacing: -.03em; }
h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.01em; }
.pt { color: var(--punto); } /* il punto blu in fondo ai titoli, come il puntino della «i» */
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 54ch; text-wrap: pretty; }
h1 + .lead, h2 + .lead { margin-top: 18px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- tasti a pillola ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 500; font-size: 15px; line-height: 1; white-space: nowrap; text-decoration: none; transition: background .15s, color .15s, box-shadow .15s, transform .15s; }
.btn svg { width: 17px; height: 17px; flex: none; stroke-width: 2.2; }
.btn-p { background: var(--navy); color: #fff; box-shadow: var(--alone); }
.btn-p:hover { background: var(--navy-2); }
.btn-s { background: var(--panel); color: var(--blu); box-shadow: inset 0 0 0 1px var(--linea); }
.btn-s:hover { background: var(--blu-s); box-shadow: inset 0 0 0 1px var(--blu); }
.btn-xl { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-bianco { background: #fff; color: #0959de; }
.btn-bianco:hover { background: #e5eefd; }
.btn-vetro { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn-vetro:hover { background: rgba(255, 255, 255, .12); }
.btn:active { transform: scale(.98); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.vai { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; color: var(--blu); text-decoration: none; white-space: nowrap; }
.vai svg { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .2s; }
a:hover > .vai svg, a.vai:hover svg { transform: translateX(3px); }

/* ---------- testata: fissa, in vetro sfocato (glassmorphism). Logo e tasti stanno verso i bordi dello schermo ---------- */
.testata { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  padding-inline: max(16px, env(safe-area-inset-left, 0px), min(3vw, 40px)) max(16px, env(safe-area-inset-right, 0px), min(3vw, 40px));
  background: color-mix(in srgb, var(--bg) 66%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--linea) 70%, transparent); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .testata { background: var(--bg); } }
.testata .in { display: flex; align-items: center; gap: 10px; height: 68px; max-width: none; }
.marchio { display: flex; align-items: center; min-height: 44px; flex: none; margin-right: 14px; }
.logo { height: 30px; width: auto; }
.logo.scuro, :root[data-theme="dark"] .logo.chiaro { display: none; }
:root[data-theme="dark"] .logo.scuro { display: block; }
.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.menu a { display: flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--blu); background: var(--blu-s); }
.menu a.menu-cta { display: none; }
.testata-cta { height: 44px; margin-left: 4px; }
.tema, .menu-btn { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: var(--panel-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--sep); }
.tema { display: grid; place-items: center; margin-left: 6px; }
.tema:hover, .menu-btn:hover { color: var(--blu); background: var(--blu-s); }
.tema svg { grid-area: 1 / 1; width: 19px; height: 19px; stroke-width: 2; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; }
.tema .sole, :root[data-theme="dark"] .tema .luna { opacity: 0; transform: rotate(90deg) scale(.4); }
:root[data-theme="dark"] .tema .sole { opacity: 1; transform: none; }
.menu-btn { display: none; place-content: center; gap: 4px; order: 9; }
.menu-btn span { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.testata.aperto .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.testata.aperto .menu-btn span:nth-child(2) { opacity: 0; }
.testata.aperto .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .testata .in { height: 60px; }
  .logo { height: 26px; }
  .menu-btn { display: grid; }
  .tema { margin-left: auto; }
  .testata-cta { display: none; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px var(--lato-d) 18px var(--lato); background: var(--bg); box-shadow: 0 1px 0 var(--sep), var(--ombra-2); }
  .testata.aperto .menu { display: flex; }
  .menu a { height: 48px; font-size: 16px; }
  .menu a.menu-cta { display: flex; justify-content: center; margin-top: 10px; color: #fff; background: var(--navy); font-weight: 500; }
}

/* ---------- sezioni: fasce da bordo a bordo. Lo sfondo è della sezione, mai fisso dietro la pagina ---------- */
.sez { position: relative; padding-block: clamp(56px, 8vw, 104px); }
.sez.stretta { padding-block: clamp(40px, 5vw, 64px); }
.sez-testa { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.griglia { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- fondi di sezione. Lo sfondo è della sezione, mai fisso dietro la pagina.
   tinta: due toni chiari in sfumatura (scuri nel tema scuro). disegno: puntini, quadretti, righe o cerchi, sfumato verso i bordi.
   fascia: colore pieno con testo bianco, uguale nei due temi ---------- */
.tinta { background: linear-gradient(165deg, var(--t1), var(--t2)); }
.t-azzurro { --t1: var(--azz-1); --t2: var(--azz-2); --pat: var(--azz-p); }
.t-pesca { --t1: var(--pes-1); --t2: var(--pes-2); --pat: var(--pes-p); }
.t-menta { --t1: var(--men-1); --t2: var(--men-2); --pat: var(--men-p); }
.t-lilla { --t1: var(--lil-1); --t2: var(--lil-2); --pat: var(--lil-p); }
.tinta.pieni { background: linear-gradient(180deg, var(--bg), var(--t1) 20%, var(--t2) 75%, var(--bg)); }

.disegno, .hero, .testa-pag, .fascia, .invito { position: relative; isolation: isolate; overflow: clip; }
.disegno::after, .hero::after, .testa-pag::after, .fascia::after, .invito::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--d-img, radial-gradient(circle, var(--pat) 1.3px, transparent 1.8px)); background-size: var(--d-passo, 26px 26px); background-position: center top;
  -webkit-mask-image: var(--d-maschera, radial-gradient(ellipse 75% 85% at 50% 30%, #000 25%, transparent 78%)); mask-image: var(--d-maschera, radial-gradient(ellipse 75% 85% at 50% 30%, #000 25%, transparent 78%)); }
.d-quadretti { --d-img: linear-gradient(var(--pat) 1px, transparent 1px), linear-gradient(90deg, var(--pat) 1px, transparent 1px); --d-passo: 32px 32px; }
.d-righe { --d-img: repeating-linear-gradient(135deg, var(--pat) 0 1px, transparent 1px 15px); --d-passo: auto; }
.d-cerchi { --d-img: repeating-radial-gradient(circle at 92% 8%, transparent 0 38px, var(--pat) 38px 39.5px); --d-passo: auto; --d-maschera: radial-gradient(circle at 92% 8%, #000 15%, transparent 60%); }
.d-croci { --d-img: radial-gradient(5.5px 1px at 50% 50%, var(--pat) 96%, transparent), radial-gradient(1px 5.5px at 50% 50%, var(--pat) 96%, transparent); --d-passo: 30px 30px; }
.d-sinistra { --d-maschera: radial-gradient(ellipse 60% 100% at 0% 50%, #000 15%, transparent 75%); }
.d-destra { --d-maschera: radial-gradient(ellipse 60% 100% at 100% 35%, #000 15%, transparent 75%); }
.pieni { --d-maschera: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); }

.macchia { position: absolute; z-index: -2; border-radius: 50%; filter: blur(84px); pointer-events: none; will-change: transform, opacity; animation: respira var(--mt, 16s) ease-in-out infinite alternate; }
@keyframes respira { from { transform: translate3d(0, 0, 0) scale(.88); opacity: .55; } to { transform: translate3d(var(--dx, 40px), var(--dy, 30px), 0) scale(1.14); opacity: 1; } }

.fascia { --pat: rgba(255, 255, 255, .2); color: #fff; background: var(--f-sfondo); }
.f-verde { --f-sfondo: linear-gradient(170deg, #3a8272, #24505a); --f-scuro: #1f4a53; --f-chiaro: #c8f0e2; }
.f-viola { --f-sfondo: linear-gradient(140deg, #7868d0, #5546a8); --f-scuro: #43368a; --f-chiaro: #e2dcff; }
.f-indaco { --f-sfondo: linear-gradient(150deg, #1a1f5e, #2c2479 55%, #3b2a86); --f-scuro: #2c2479; --f-chiaro: #c9c2ff; }
.fascia h2, .fascia h3, .fascia .lead, .fascia .pt, .fascia p { color: #fff; }
.fascia .col, .fascia .passo { border-color: rgba(255, 255, 255, .45); }
.fascia .passo:first-child { border-top-color: #fff; }
.fascia .passo::before { color: var(--f-chiaro); }
.fascia .ico { --ic: var(--f-chiaro); }
.fascia .btn-bianco { color: var(--f-scuro); }
.fascia .btn-bianco:hover { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }

/* icone: solo il tratto, senza fondo. Il blu è la regola; verde = social, viola = restyling */
.ico { flex: none; display: grid; place-items: center; width: 28px; height: 28px; color: var(--ic, var(--blu)); }
.ico svg { width: 26px; height: 26px; stroke-width: 1.7; }
.ico.verde { --ic: var(--verde); } .ico.viola { --ic: var(--viola); }
.et-i { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; }
.et-i svg { width: 19px; height: 19px; flex: none; }

/* ---------- hero: a sinistra titolo e tasti; a destra i quattro servizi, ognuno con il colore della sua scheda più sotto ---------- */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(64px, 9vw, 120px); }
.hero .in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: 1; letter-spacing: -.03em; max-width: 12ch; }
.hero .lead { margin-top: 26px; max-width: 44ch; text-wrap: balance; }
.hero-voci { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 440px; justify-self: end; padding-bottom: 40px; }
.tessera { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; aspect-ratio: 1 / .9; padding: 20px; border-radius: var(--r-l); color: #fff; text-decoration: none; transition: transform .25s ease; }
.tessera:nth-child(even) { translate: 0 40px; }
.tessera:hover { transform: translateY(-4px); }
.tessera .ico { --ic: currentColor; }
.tessera b { display: block; font-size: 1.3rem; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.tessera small { display: block; margin-top: 4px; font-size: 15px; }
@media (max-width: 900px) { .hero .in { grid-template-columns: minmax(0, 1fr); } .hero-voci { justify-self: start; max-width: 520px; padding-bottom: 24px; } .tessera:nth-child(even) { translate: 0 24px; } }
@media (max-width: 420px) { .tessera { aspect-ratio: auto; min-height: 136px; padding: 16px; } .tessera b { font-size: 1.15rem; } }
/* ---------- striscia: le cose che facciamo, sempre su una riga sola, che scorre ---------- */
.striscia { overflow: hidden; padding-block: 14px; background: var(--panel-2); box-shadow: inset 0 1px 0 var(--sep), inset 0 -1px 0 var(--sep); }
.striscia-in { display: flex; flex-wrap: nowrap; width: max-content; animation: scorre 46s linear infinite; }
.striscia:hover .striscia-in, .striscia:focus-within .striscia-in { animation-play-state: paused; }
.striscia span { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; margin-right: 10px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--linea); font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.striscia svg { width: 17px; height: 17px; color: var(--c, var(--blu)); }
@keyframes scorre { to { transform: translateX(-50%); } }

/* ---------- schede di presentazione, ognuna con il suo colore e la sua illustrazione ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.b { position: relative; overflow: hidden; isolation: isolate; grid-column: span 5; display: flex; flex-direction: column; min-height: 440px; --pad: clamp(24px, 3.4vw, 40px); padding: var(--pad); border-radius: var(--r-xl); color: #fff; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.b:hover { transform: translateY(-4px); }
.b h3 { margin-top: 26px; font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 500; color: inherit; max-width: 14ch; }
.b p { margin-top: 16px; font-size: 1.05rem; line-height: 1.5; max-width: 34ch; }
.b p b { font-weight: 500; }
.b .prz { margin-top: 14px; font-size: 15px; }
.b .prz b { font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; }
.b .vai { margin-top: 22px; padding: 0 0 5px; align-self: flex-start; color: inherit; font-size: 1.05rem; font-weight: 500; box-shadow: inset 0 -2px 0 currentColor; }
.b .vai svg { width: 18px; height: 18px; }
.b:hover .vai svg { transform: translateX(4px); }
.b-pastello { background: linear-gradient(115deg, #f7d6e0, #ded7f4 40%, #cbdcf9 70%, #c5e7ee); color: #14204a; }
.b-verde { background: linear-gradient(170deg, #3a8272, #24505a); }
.b-blu { background: linear-gradient(150deg, #0f62ea, #0a3aa6); }
.b-viola { background: linear-gradient(135deg, #7868d0, #5546a8); }
.b.largo { grid-column: span 7; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 28px; }
.b.largo h3 { max-width: 16ch; }
.b.largo > div:first-child { display: flex; flex-direction: column; }
.b .ill { margin-top: auto; padding-top: 28px; }
/* nelle schede larghe il disegno parte dall'altezza dell'etichetta ed esce dai bordi a destra e in basso, come nelle schede verde e blu */
.b.largo .ill { position: relative; margin: 0 calc(-1 * var(--pad)) calc(-1 * var(--pad)) 0; padding: 0; }
.b.largo .ill > .fin { position: absolute; top: 0; left: 0; right: 0; min-height: calc(100% + 24px); border-radius: var(--r-m) 0 0 0; }
.b .spunte { margin-top: 18px; display: grid; gap: 9px; list-style: none; }
.b .spunte li { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 500; }
.b .spunte svg { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .2); stroke-width: 2.6; }
.b-pastello .spunte svg { background: rgba(20, 32, 74, .1); }
@media (max-width: 980px) { .b, .b.largo { grid-column: 1 / -1; min-height: 0; } }
@media (max-width: 640px) { .b { border-radius: var(--r-l); } .b.largo { grid-template-columns: minmax(0, 1fr); } .b.largo .ill { height: 300px; margin-top: 28px; } }

/* le illustrazioni hanno colori loro, uguali nei due temi: sono «foto» di un sito */
.fin { border-radius: var(--r-m); overflow: hidden; background: #fff; color: #0f1830; box-shadow: 0 18px 44px rgba(20, 32, 74, .2); }
.fin-b { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #eef2fa; }
.fin-b i { width: 9px; height: 9px; border-radius: 50%; background: #c9d3e8; }
.fin-b span { margin-left: 10px; flex: 1; max-width: 220px; height: 20px; padding: 0 10px; border-radius: 999px; background: #fff; font-size: 10.5px; line-height: 20px; color: #68769a; white-space: nowrap; overflow: hidden; }
.ms { padding: 16px 18px 18px; }
.ms-nav { display: flex; align-items: center; gap: 12px; }
.ms-nav b { flex: none; width: 16px; height: 16px; border-radius: 50%; background: #0f1830; margin-right: auto; }
.ms-nav span { width: 34px; height: 6px; border-radius: 3px; background: #dfe5f1; }
.ms-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; align-items: center; margin-top: 10px; }
.ms-hero strong { display: block; font-size: 13px; line-height: 1.08; letter-spacing: -.02em; font-weight: 500; }
.sk { display: block; height: 6px; margin-top: 9px; border-radius: 3px; background: #e3e8f2; } .sk.c { width: 62%; }
.ms-img { aspect-ratio: 4 / 3; border-radius: var(--r-s); background: linear-gradient(135deg, #cbdcf9, #8fb3f5 55%, #0959de); }
.lav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ms-tit { margin-top: 18px; } .ms-tit strong { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.02em; } .ms-tit .sk { width: 46%; }
.ill > .fin .lav i { aspect-ratio: 4 / 5; }
.lav i { aspect-ratio: 1; border-radius: 9px; background: linear-gradient(135deg, #cbdcf9, #8fb3f5); }
.lav i:nth-child(6n+2) { background: linear-gradient(135deg, #f7d6e0, #f09cb8); } .lav i:nth-child(6n+3) { background: linear-gradient(135deg, #d3f0ea, #6cc7b0); }
.lav i:nth-child(6n+4) { background: linear-gradient(135deg, #fbe7c2, #f2b758); } .lav i:nth-child(6n+5) { background: linear-gradient(135deg, #ded7f4, #a595ea); } .lav i:nth-child(6n) { background: linear-gradient(135deg, #cbdcf9, #0959de); }
.post { width: 78%; margin-left: auto; margin-right: -6%; margin-bottom: -18%; border-radius: 18px 18px 0 0; background: #fff; color: #0f1830; padding: 14px 14px 20px; box-shadow: 0 18px 44px rgba(10, 30, 40, .28); }
.post-t { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; }
.post-t i { width: 26px; height: 26px; border-radius: 50%; background: #0f1830; }
.post-t small { margin-left: auto; font-size: 11px; font-weight: 500; color: #0e6b4b; background: #e0f3ea; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.post-img { margin-top: 12px; aspect-ratio: 5 / 3; border-radius: var(--r-s); background: linear-gradient(135deg, #d3f0ea, #6cc7b0 60%, #2b8a78); }
.post-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 12px; }
.post-g i { height: 16px; border-radius: 5px; background: #eef2fa; } .post-g i.s { background: #3a8272; } .post-g i.r { background: #9cd3c4; }
.prod { width: 82%; margin-left: auto; margin-right: -4%; margin-bottom: -14%; border-radius: 18px 18px 0 0; background: #fff; color: #0f1830; padding: 14px 14px 22px; box-shadow: 0 18px 44px rgba(4, 20, 70, .35); }
.prod-img { aspect-ratio: 16 / 9; border-radius: var(--r-s); background: linear-gradient(135deg, #e5eefd, #9dbdf8); }
.prod-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 13px; font-weight: 500; }
.prod-r b { font-size: 16px; font-weight: 500; letter-spacing: -.02em; }
.prod em { display: flex; align-items: center; justify-content: center; gap: 7px; height: 34px; margin-top: 12px; border-radius: 999px; background: #0959de; color: #fff; font-style: normal; font-weight: 500; font-size: 12.5px; }
.prod em svg { width: 15px; height: 15px; stroke-width: 2; }
.pd { position: absolute; inset: 0; }
.pd .vecchio { position: absolute; top: 0; left: 0; width: 58%; }
.pd .nuovo { position: absolute; top: 31%; left: 13%; right: 0; bottom: 0; }
.pd .fin-b small { margin-left: auto; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.pd .vecchio .fin { background: #e9e6df; filter: saturate(.4); opacity: .78; box-shadow: none; }
.pd .vecchio .fin-b { background: #d6d2c8; } .pd .vecchio .fin-b i { background: #b9b4a8; } .pd .vecchio .fin-b small { background: #c4bfb3; color: #5d584d; }
.pd .vecchio .ms { padding: 12px 14px 16px; } .pd .vecchio .sk { background: #c9c4b8; height: 6px; margin-top: 8px; } .pd .vecchio .sk:first-child { margin-top: 0; }
.pd .vecchio .ms-img { background: #cfcabd; border-radius: 2px; margin-top: 10px; aspect-ratio: 16 / 7; }
.pd .nuovo .fin { height: calc(100% + 24px); border-radius: var(--r-m) 0 0 0; box-shadow: 0 -8px 48px rgba(30, 20, 90, .38); }
.pd .nuovo .fin-b small { background: #e6e1ff; color: #43368a; }
.pd .nuovo .ms-hero strong { font-size: 16px; } .pd .nuovo .lav i { aspect-ratio: 4 / 5; }
.ms-btn { display: block; width: 72px; height: 20px; margin-top: 12px; border-radius: 999px; background: #5546a8; }

/* ---------- due colonne: il titolo resta fermo a sinistra mentre scorre l'elenco ---------- */
.due { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.due > :first-child { position: sticky; top: 108px; }
@media (max-width: 860px) { .due { grid-template-columns: minmax(0, 1fr); } .due > :first-child { position: static; } }
/* i passi: numeri grandi, niente schede */
.passi { counter-reset: p; }
.passo { counter-increment: p; display: grid; grid-template-columns: clamp(64px, 9vw, 104px) minmax(0, 1fr); gap: 4px 20px; padding-block: 26px; border-top: 1px solid var(--linea); }
.passo:first-child { border-top: 2px solid var(--q-ink); }
.passo::before { content: counter(p); grid-row: span 2; font-size: clamp(2.6rem, 5vw, 3.75rem); line-height: .9; font-weight: 500; letter-spacing: -.035em; color: var(--blu); font-variant-numeric: tabular-nums; }
.passo h3 { font-size: 1.35rem; align-self: end; }
.passo p { grid-column: 2; max-width: 46ch; text-wrap: pretty; }
/* colonne di testo con un filo sopra, senza scheda */
.colonne { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; }
.colonne.tre { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col { padding-top: 22px; border-top: 2px solid var(--q-ink); }
.col .ico { margin-bottom: 18px; }
.col h3 { font-size: 1.35rem; }
.col p { margin-top: 8px; max-width: 34ch; }
@media (max-width: 980px) { .colonne { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .colonne, .colonne.tre { grid-template-columns: minmax(0, 1fr); } }

/* elenco dei servizi a righe: nome, cosa è, prezzo */
.elenco { border-bottom: 1px solid var(--linea); }
.elenco a { display: grid; grid-template-columns: 28px minmax(0, .7fr) minmax(0, 1.3fr) 132px; align-items: center; gap: 8px 22px; padding: 22px 4px; border-top: 1px solid var(--linea); color: inherit; text-decoration: none; }
.elenco a:first-child { border-top: 2px solid var(--q-ink); }
.elenco h3 { font-size: 1.35rem; }
.elenco .vai { justify-self: end; }
.elenco .vai b { font-weight: 500; font-size: 1.15rem; letter-spacing: -.02em; color: var(--q-ink); font-variant-numeric: tabular-nums; }
.elenco a:hover h3 { color: var(--blu); }
@media (max-width: 760px) { .elenco a { grid-template-columns: 28px minmax(0, 1fr) auto; } .elenco p { grid-column: 2 / -1; grid-row: 2; } }

/* elenco con il cerchio come punto */
.punti { display: grid; gap: 9px; }
.punti li { position: relative; padding-left: 20px; }
.punti li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--punto); }

/* ---------- schede: fondo e bordo, senza ombra ---------- */
.scheda, .piano { display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: var(--r-l); background: var(--panel); box-shadow: inset 0 0 0 1px var(--linea); }
.piano > .ico { margin-bottom: 18px; }
.piano h3 { font-size: 1.35rem; }
.piano .comp { margin-top: 6px; color: var(--ink-2); }
.prezzo { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; font-size: 2.5rem; line-height: 1; font-weight: 500; letter-spacing: -.03em; color: var(--q-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.prezzo small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.piano .punti { margin-top: 22px; }
.piano .nota { margin-top: 18px; font-size: 15px; font-weight: 500; color: var(--q-ink); }
.piano .btn { margin-top: 24px; width: 100%; }
.piano .spinta { flex: 1; min-height: 0; }
.piano.scelto { box-shadow: inset 0 0 0 2px var(--blu); }
/* il bollo sta in alto a destra, sulla riga dell'icona: così non sposta in basso icona, titolo e prezzo */
.piano.scelto { position: relative; }
.bollo { position: absolute; top: 27px; right: 24px; display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.piano.largo { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; background: #0959de; box-shadow: none; }
.piano.largo h3, .piano.largo .prezzo { color: #fff; }
.piano.largo .comp { color: #fff; }
.piano.largo .testo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 18px; }
.piano.largo .ico { --ic: #fff; }
.piano.largo .prezzo { margin-top: 0; }
.piano.largo .btn { margin-top: 0; width: auto; }
@media (max-width: 760px) { .piano.largo { flex-direction: column; align-items: stretch; gap: 0; } .piano.largo .prezzo { margin-top: 22px; } .piano.largo .btn { margin-top: 24px; width: 100%; } }

.listino { border-radius: var(--r-l); background: var(--panel); box-shadow: inset 0 0 0 1px var(--linea); overflow: hidden; }
.riga { display: grid; grid-template-columns: minmax(0, 1fr) auto 132px; align-items: center; gap: 20px; padding: 18px 24px; }
.riga + .riga { border-top: 1px solid var(--sep); }
.riga > div { display: flex; align-items: center; gap: 18px; min-width: 0; }
.riga > div > div { min-width: 0; }
.riga h3 { font-size: 1.15rem; }
.riga p { margin-top: 3px; font-size: 15px; color: var(--ink-2); }
.riga .prezzo { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }
.riga .btn { padding: 0 16px; }
@media (max-width: 760px) { .riga { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 16px; padding: 18px; } .riga > div { grid-column: 1 / -1; } .riga .btn { min-width: 120px; } }

.salti { display: flex; gap: 6px; width: fit-content; max-width: 100%; margin-top: 28px; padding: 5px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--linea); }
.salti a { display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.salti a:hover { color: var(--blu); background: var(--blu-s); }
.salti svg { width: 16px; height: 16px; }
@media (max-width: 420px) { .salti a { padding: 0 12px; font-size: 14px; } .salti svg { display: none; } }
.postilla { margin-top: 20px; font-size: 15px; color: var(--ink-2); }

/* domande */
.domande { border-bottom: 1px solid var(--linea); }
.domande details { border-top: 1px solid var(--linea); }
.domande details:first-child { border-top: 2px solid var(--q-ink); }
.domande summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; cursor: pointer; list-style: none; font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; color: var(--q-ink); }
.domande summary::-webkit-details-marker { display: none; }
.domande summary::after { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--punto); transition: transform .2s; }
.domande details[open] summary::after { transform: scale(.5); }
.domande details p { padding: 0 4px 24px; max-width: 66ch; }

/* ---------- testa delle pagine interne: titolo grande sui puntini, con due macchie ---------- */
.testa-pag { padding-block: clamp(48px, 8vw, 96px) clamp(32px, 4vw, 56px); }
.testa-pag h1 { max-width: 18ch; }

/* ---------- invito finale: una fascia blu piena da bordo a bordo, con il cerchio ---------- */
.invito { --cx: calc(100% - max(-140px, calc((100% - 1160px) / 2 - 80px)) - 260px); --pat: rgba(255, 255, 255, .16); --d-img: repeating-radial-gradient(circle at var(--cx) 50%, transparent 0 46px, var(--pat) 46px 47.5px); --d-passo: auto; --d-maschera: radial-gradient(circle at var(--cx) 50%, #000 30%, transparent 70%); padding-block: clamp(64px, 10vw, 128px); background: #0959de; color: #fff; }
.invito::after { z-index: -2; }
.invito::before { content: ""; position: absolute; z-index: -1; right: max(-140px, calc((100% - 1160px) / 2 - 80px)); top: 50%; width: 520px; height: 520px; margin-top: -260px; border-radius: 50%; background: #0a3aa6; }
.invito h2 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: 1; max-width: 15ch; }
.invito .pt { color: #fff; }
.invito .lead { color: #fff; max-width: 42ch; }
.invito .contatto { display: flex; align-items: center; gap: 9px; margin-top: 24px; font-size: 15px; color: #fff; }
.invito .contatto svg { width: 18px; height: 18px; flex: none; }
.invito .contatto a { color: #fff; font-weight: 500; }
@media (max-width: 900px) { .invito::before { right: -340px; } }

/* ---------- contatti ---------- */
.contatti { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .contatti { grid-template-columns: minmax(0, 1fr); } }
.modulo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: clamp(20px, 4vw, 32px); border-radius: var(--r-l); background: var(--panel); box-shadow: inset 0 0 0 1px var(--linea); }
.campo { display: grid; gap: 7px; min-width: 0; }
.campo.tutto { grid-column: 1 / -1; }
.campo > label, .campo > .et { font-size: 14px; font-weight: 500; color: var(--q-ink); }
.campo > label i, .campo > .et i { font-style: normal; font-weight: 400; color: var(--muted); }
.campo input, .campo textarea, .tendina-b { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-s); border: 0; background: var(--panel-2); color: var(--q-ink); font-size: 16px; box-shadow: inset 0 0 0 1px var(--linea); }
.campo textarea { min-height: 132px; resize: none; overflow: hidden; field-sizing: content; line-height: 1.5; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--muted); opacity: 1; }
.campo input:focus, .campo textarea:focus, .tendina-b:focus-visible, .tendina.aperta .tendina-b { outline: none; box-shadow: inset 0 0 0 2px var(--blu); }
.campo .errore { display: none; font-size: 14px; color: var(--rif); }
.campo.no .errore { display: block; }
.campo.no input, .campo.no textarea { box-shadow: inset 0 0 0 2px var(--rif); }
.modulo .fine { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.modulo .fine p { flex: 1; min-width: 220px; font-size: 14px; color: var(--ink-2); }
.avviso { grid-column: 1 / -1; padding: 13px 16px; border-radius: var(--r-s); background: var(--com-bg); color: var(--com); font-size: 15px; font-weight: 500; }
.avviso[hidden] { display: none; }
.avviso.no { background: color-mix(in srgb, var(--rif) 12%, transparent); color: var(--rif); }
.avviso a { color: inherit; font-weight: 600; }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modulo .btn:disabled { opacity: .6; cursor: progress; }
@media (max-width: 640px) { .modulo { grid-template-columns: minmax(0, 1fr); } .modulo .fine .btn { width: 100%; } }

/* tendina su misura (mai quella di sistema) */
.tendina { position: relative; }
.tendina-b { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; text-align: left; }
.tendina-b span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tendina-b svg { flex: none; width: 18px; height: 18px; stroke: var(--ink-2); stroke-width: 2.2; transition: transform .2s; }
.tendina.aperta .tendina-b svg { transform: rotate(180deg); }
.tendina ul { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 296px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: var(--r-m); background: var(--panel); box-shadow: var(--ombra-2), 0 0 0 1px var(--linea); }
.tendina ul[hidden] { display: none; }
.tendina li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 9px; cursor: pointer; font-size: 15px; color: var(--ink); }
.tendina li small { flex: none; font-size: 13px; color: var(--muted); white-space: nowrap; }
.tendina li.gruppo { min-height: 0; padding: 12px 12px 5px; cursor: default; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.tendina li[role="option"]:hover, .tendina li.su { background: var(--blu-s); color: var(--blu); }
.tendina li.su small, .tendina li[role="option"]:hover small { color: inherit; }
.tendina li[aria-selected="true"] { font-weight: 500; color: var(--blu); }

.diretti { display: grid; gap: 12px; }
.diretti .scheda { flex-direction: row; align-items: center; gap: 18px; padding: 22px; }
.diretti a.mail { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: 1.05rem; text-decoration: none; overflow-wrap: anywhere; }
.diretti a.mail:hover { text-decoration: underline; }

/* ---------- testi lunghi (privacy, cookie) ---------- */
.prosa { max-width: 760px; }
.prosa h2 { font-size: 1.45rem; letter-spacing: -.02em; font-weight: 500; margin-top: 40px; }
.prosa h2:first-child { margin-top: 0; }
.prosa p, .prosa ul { margin-top: 12px; }
.prosa ul { display: grid; gap: 8px; }
.prosa li { position: relative; padding-left: 20px; }
.prosa li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--punto); }
.prosa .agg { color: var(--muted); font-size: 14px; }
.prosa b { color: var(--q-ink); font-weight: 500; }

/* ---------- piede ---------- */
.piede { padding-block: 40px calc(36px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--sep); }
.piede .in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; }
.piede-a a { display: inline-block; }
.piede-a span { display: block; margin-top: 12px; font-size: 15px; color: var(--ink-2); max-width: 36ch; }
.piede-l { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 44px; align-content: start; }
.piede-l a, .piede-b a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.piede-l a:hover, .piede-b a:hover { color: var(--blu); }
.piede-b { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; padding-top: 20px; border-top: 1px solid var(--sep); font-size: 15px; color: var(--muted); }
.piede-b span { margin-right: auto; }
@media (max-width: 640px) { .piede .in { grid-template-columns: minmax(0, 1fr); } .piede-b span { flex-basis: 100%; } }

/* ---------- movimento: entrano morbide solo le schede di presentazione ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .b.riv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease; }
  .js .b.riv.vis { opacity: 1; transform: none; }
  .js .b.riv.vis:hover { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) { .macchia, .striscia-in { animation: none; } .striscia { overflow-x: auto; scrollbar-width: none; } html { scroll-behavior: auto; } }
