/* Layout: pulito e professionale ma morbido: angoli molto arrotondati, foto a colori, blu e celeste,
   movimento vero (sfondo che respira, numeri che contano, mappa che si accende, schede che si sollevano). Tema unico chiaro. */
:root {
  color-scheme: light;
  --blue: #004AAD; --navy: #00317A; --sky: #4BC3DB; --sky-deep: #298CC6;
  --ink: #0B1B33; --grey: #5B6472; --line: #E5EBF3; --bg: #F7FAFD; --tint: #EDF4FC; --night: #06142E; --white: #FFFFFF;
  --grad: linear-gradient(100deg, var(--sky) 0%, var(--sky-deep) 45%, var(--blue) 100%);
  --r-xl: 32px; --r-lg: 24px; --r-md: 16px;
  --sh-s: 0 1px 2px rgba(11,27,51,.05), 0 6px 18px -8px rgba(11,27,51,.14);
  --sh-l: 0 2px 6px rgba(11,27,51,.05), 0 28px 60px -26px rgba(0,49,122,.4);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 44px);
  --ease: cubic-bezier(.22,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.68; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font); text-wrap: balance; color: var(--ink); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; }
h3 { font-weight: 700; letter-spacing: -.015em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; z-index: 99; background: var(--blue); color: #fff; padding: .6rem 1rem; border-radius: 999px; }
.skip:focus { left: 1rem; top: 1rem; }
.progress { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 3px; z-index: 40; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
/* titoli: le parole salgono una dopo l'altra */
.h2-words.pre { opacity: 1; transform: none; }
.h2-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.h2-words .w > span { display: inline-block; transform: translateY(110%); }
.h2-words.in .w > span { animation: wordUp .75s calc(var(--w) * 55ms) var(--ease) both; }
@keyframes wordUp { from { transform: translateY(110%); } to { transform: none; } }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------- header */
.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(255,255,255,.93); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .3s; }
.head.is-scrolled { box-shadow: 0 10px 30px -22px rgba(11,27,51,.4); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; flex-shrink: 0; }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; font-size: .82rem; letter-spacing: .02em; box-shadow: 0 8px 18px -8px rgba(0,74,173,.7); }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -.015em; }
.nav { display: flex; align-items: center; gap: .1rem; min-width: 0; }
.nav > a, .nav-dd-btn { text-decoration: none; font: 600 .95rem/1 var(--font); color: var(--grey); padding: .7rem .85rem; border-radius: 999px; white-space: nowrap; transition: color .2s, background .2s; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.nav > a:hover, .nav-dd-btn:hover, .nav-dd.is-open .nav-dd-btn { color: var(--blue); background: var(--tint); }
.nav > a[aria-current="page"], .nav-dd.is-active .nav-dd-btn { color: var(--blue); }
.dd-chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.nav-dd { position: relative; }
.nav-dd.is-open .dd-chev { transform: rotate(180deg); }
.nav-dd-panel { position: absolute; left: 50%; top: calc(100% + 10px); width: 640px; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-l); display: grid; grid-template-columns: 1fr 1fr; gap: .15rem; opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .22s, transform .22s var(--ease), visibility 0s .22s; }
.nav-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-dd.is-open .nav-dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .22s, transform .22s var(--ease); }
.nav-dd-panel a { display: flex; align-items: center; gap: .8rem; padding: .65rem .75rem; border-radius: 16px; text-decoration: none; transition: background .2s; }
.nav-dd-panel a:hover, .nav-dd-panel a[aria-current="page"] { background: var(--tint); }
.nav-dd-panel b { display: block; font-size: .96rem; color: var(--ink); line-height: 1.25; }
.nav-dd-panel small { display: block; font-size: .82rem; color: var(--grey); line-height: 1.35; }
.nav-dd-panel .dd-all { grid-column: 1 / -1; margin-top: .25rem; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; padding-top: .8rem; }
.nav-dd-panel .dd-all .dd-i { background: var(--night); }
.dd-i, .m-i { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--grad); color: #fff; box-shadow: 0 8px 16px -10px rgba(0,74,173,.8); }
.dd-i svg, .m-i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.head-act { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.nav-cta { text-decoration: none; font-weight: 700; font-size: .95rem; background: var(--blue); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; box-shadow: 0 10px 20px -10px rgba(0,74,173,.85); white-space: nowrap; transition: background .2s, transform .2s var(--ease); }
.nav-cta:hover { background: var(--navy); transform: translateY(-1px); }
.burger { display: none; position: relative; width: 46px; height: 46px; border-radius: 15px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; padding: 0; box-shadow: var(--sh-s); }
.burger i { position: absolute; left: 13px; right: 13px; height: 2.2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.burger i:nth-child(1) { top: 15px; } .burger i:nth-child(2) { top: 21.5px; } .burger i:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] i:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { top: 21.5px; transform: rotate(-45deg); }
.menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(11,27,51,.45); max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-in { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.6rem; padding-block: 1.2rem 1.6rem; }
.menu-k { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-deep); margin-bottom: .4rem; }
.menu-col { display: grid; align-content: start; gap: .1rem; }
.menu-col a { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 700; font-size: 1.06rem; color: var(--ink); padding: .55rem .2rem; border-radius: 12px; }
.menu-col a[aria-current="page"] { color: var(--blue); }
.menu-serv .m-i { width: 34px; height: 34px; border-radius: 11px; } .menu-serv .m-i svg { width: 17px; height: 17px; }
.menu-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--line); }
.menu-soc, .foot-soc { display: flex; gap: .45rem; }
.menu-soc a, .foot-soc a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--tint); color: var(--blue); text-decoration: none; transition: transform .2s var(--ease), background .2s; }
.menu-soc a:hover, .foot-soc a:hover { transform: translateY(-2px); }
.s-ic { display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.s-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.menu.is-open .menu-col a, .menu.is-open .menu-foot { animation: fadeUp .45s var(--ease) both; }
.menu.is-open .menu-col a:nth-child(3) { animation-delay: .03s; } .menu.is-open .menu-col a:nth-child(4) { animation-delay: .06s; } .menu.is-open .menu-col a:nth-child(5) { animation-delay: .09s; } .menu.is-open .menu-col a:nth-child(6) { animation-delay: .12s; } .menu.is-open .menu-col a:nth-child(7) { animation-delay: .15s; } .menu.is-open .menu-foot { animation-delay: .18s; }
@media (max-width: 1060px) { .nav { display: none; } .burger { display: block; } }
@media (max-width: 820px) { .brand-name { display: none; } }
@media (max-width: 520px) { .menu-in { grid-template-columns: 1fr; gap: .8rem; } .menu-foot .btn { width: 100%; } .nav-cta { padding: .65rem .95rem; font-size: .9rem; } }

/* ------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-family: var(--font); font-weight: 700; font-size: 1rem; text-decoration: none; padding: 1rem 1.55rem; border-radius: 999px; border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-solid { background: var(--blue); color: #fff; box-shadow: 0 14px 28px -14px rgba(0,74,173,.9); }
.btn-solid:hover { background: var(--navy); box-shadow: 0 18px 32px -14px rgba(0,74,173,.9); }
.btn-soft { background: #fff; color: var(--blue); border-color: rgba(0,74,173,.22); box-shadow: 0 12px 24px -14px rgba(0,49,122,.5), 0 2px 5px rgba(11,27,51,.06); }
.btn-soft:hover { background: var(--tint); border-color: var(--blue); box-shadow: 0 18px 30px -14px rgba(0,74,173,.55); }
.btn-white { background: #fff; color: var(--blue); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .95rem; color: var(--blue); margin-bottom: .9rem; }
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.kicker-light { color: var(--sky); }

/* ------- hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5rem); background: linear-gradient(180deg, var(--bg), #fff 90%); }
.blobs { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .6; will-change: transform; }
.b1 { width: 560px; height: 560px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(75,195,219,.55), transparent 65%); animation: drift 16s ease-in-out infinite alternate; }
.b2 { width: 480px; height: 480px; left: -220px; bottom: -240px; background: radial-gradient(circle, rgba(0,74,173,.3), transparent 65%); animation: drift 20s ease-in-out infinite alternate-reverse; }
.b3 { width: 300px; height: 300px; left: 40%; top: 55%; background: radial-gradient(circle, rgba(41,140,198,.25), transparent 65%); animation: drift 13s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(-70px, 50px) scale(1.15); } }
.hero-top { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.hero-text, .hero-side { min-width: 0; }
.role { display: inline-flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem .5rem .8rem; font-size: .9rem; font-weight: 700; color: var(--blue); box-shadow: var(--sh-s); }
.role-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 0 rgba(75,195,219,.6); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(75,195,219,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(75,195,219,0); } }
.hero-name { margin-top: 1.4rem; font-size: clamp(3.4rem, 9.5vw, 7.4rem); font-weight: 800; line-height: .94; letter-spacing: -.05em; }
.hero-name .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-name .ln > span { display: inline-block; }
.hero-lead { color: #3A475C; font-size: clamp(1.05rem, 1.45vw, 1.18rem); max-width: 50ch; line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero-team { position: relative; margin-top: clamp(2rem, 4.5vw, 3.5rem); }
.team-photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: var(--sh-l); border: 1px solid var(--line); }
.team-photo img { width: 100%; aspect-ratio: 1800 / 812; object-fit: cover; object-position: 50% 0; transform: scale(1.04); will-change: transform; }
.badge { position: absolute; display: flex; align-items: center; gap: .7rem; background: #fff; border-radius: 20px; padding: .8rem 1.1rem; box-shadow: var(--sh-l); font-size: .9rem; font-weight: 600; color: var(--grey); line-height: 1.2; animation: bob 6s ease-in-out infinite; }
.badge b { font-size: 1.7rem; font-weight: 800; color: var(--blue); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bd1 { left: -1rem; top: -1.4rem; }
.bd2 { right: -1rem; top: 18%; animation-delay: -2s; }
.bd3 { left: 6%; bottom: -1.2rem; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; }
  .team-photo img { aspect-ratio: 1800 / 812; object-position: 50% 0; }
  .bd1 { left: -.4rem; } .bd2 { right: -.4rem; top: auto; bottom: -1.2rem; } .bd3 { display: none; }
  .badge { padding: .6rem .85rem; font-size: .82rem; } .badge b { font-size: 1.35rem; }
}
.anim .role { animation: fadeUp .7s .05s var(--ease) both; }
.anim .hero-name .ln > span { animation: lineUp .95s .15s var(--ease) both; }
.anim .hero-name .ln:nth-child(2) > span { animation-delay: .28s; }
.anim .hero-side { animation: fadeUp .9s .45s var(--ease) both; }
.anim .team-photo { animation: zoomIn 1.2s .3s var(--ease) both; }
.anim .badge { animation: popIn .7s var(--ease) both, bob 6s 1.3s ease-in-out infinite; }
.anim .bd1 { animation-delay: 1.1s, 1.7s; } .anim .bd2 { animation-delay: 1.25s, -.3s; } .anim .bd3 { animation-delay: 1.4s, -2.3s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.6) translateY(12px); } to { opacity: 1; transform: none; } }

/* ------- marquee */
.marquee { background: var(--blue); color: #fff; overflow: hidden; padding-block: 1rem; white-space: nowrap; }
.mq-track { display: inline-flex; animation: mq 40s linear infinite; }
.mq-track span { display: inline-flex; align-items: center; font-weight: 700; font-size: 1.05rem; padding-inline: 1.4rem; }
.mq-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); margin-left: 2.8rem; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------- sections */
.sec { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.sec-tint { background: linear-gradient(180deg, var(--bg), #fff); }
#percorso { padding-bottom: clamp(3rem, 7vw, 5.5rem); } #agenzie { padding-top: clamp(2.6rem, 6vw, 4.5rem); }
.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-sub { margin-top: 1rem; color: var(--grey); font-size: clamp(1.03rem, 1.4vw, 1.15rem); max-width: 54ch; }
.prose { display: grid; gap: 1rem; margin-top: 1.5rem; color: #34425A; font-size: clamp(1.03rem, 1.3vw, 1.12rem); max-width: 60ch; }
.rv.pre { opacity: 0; transform: translateY(26px); }
.rv.in { opacity: 1; transform: none; transition: opacity .85s var(--ease), transform .85s var(--ease); }

/* chi sono in righe brevi: ogni riga entra da sola e la frase chiave si evidenzia come con un evidenziatore */
.lines { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .9rem; position: relative; }
.lines::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--sky), var(--line)); border-radius: 2px; }
.lines li { position: relative; display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: .3rem .6rem; align-items: baseline; padding-left: 1.5rem; }
.lines li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--sky); box-sizing: border-box; }
.ln-k { font-size: .8rem; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; padding-top: .2rem; }
.lines p { color: #34425A; font-size: clamp(1.03rem, 1.3vw, 1.12rem); line-height: 1.55; }
.lines mark { color: var(--ink); font-weight: 700; background: linear-gradient(120deg, rgba(75,195,219,.38), rgba(75,195,219,.38)) no-repeat 0 72%; background-size: 0% 36%; border-radius: 3px; padding: 0 .1em; transition: background-size .9s var(--ease); }
.lines li.in mark { background-size: 100% 36%; transition-delay: .5s; }
.lines li.rv:nth-child(2) { transition-delay: .1s; } .lines li.rv:nth-child(3) { transition-delay: .2s; } .lines li.rv:nth-child(4) { transition-delay: .3s; } .lines li.rv:nth-child(5) { transition-delay: .4s; } .lines li.rv:nth-child(6) { transition-delay: .5s; }
.chi { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem) clamp(2rem, 6vw, 5rem); align-items: center; }
.chi-visual { justify-self: center; width: min(100%, 400px); }
.cut-panel { position: relative; transform-style: preserve-3d; transition: transform .35s var(--ease); will-change: transform; border-radius: var(--r-xl); background: var(--grad); aspect-ratio: 4 / 4.6; display: flex; align-items: flex-end; justify-content: center; overflow: visible; box-shadow: var(--sh-l); }
.cut-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(80% 60% at 50% 100%, rgba(255,255,255,.22), transparent 70%); }
.cut-panel::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 28%; border-radius: 0 0 var(--r-xl) var(--r-xl); background: linear-gradient(180deg, transparent, rgba(0,49,122,.35)); }
.cutout { position: relative; z-index: 1; width: 86%; height: auto; margin-top: -12%; filter: drop-shadow(0 24px 30px rgba(0,30,80,.35)); transition: transform .5s var(--ease); }
.cut-panel:hover .cutout { transform: translateY(-6px); }
.chi .stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.stats li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.3rem; box-shadow: var(--sh-s); display: flex; flex-direction: column; gap: .3rem; transition: transform .3s var(--ease), box-shadow .3s; }
.stats li:hover { transform: translateY(-4px); box-shadow: var(--sh-l); }
.stats li:nth-child(2) { transition-delay: .08s; } .stats li:nth-child(3) { transition-delay: .16s; } .stats li:nth-child(4) { transition-delay: .24s; }
.stats li.in:hover { transition-delay: 0s; }
.stats b { font-size: clamp(2.3rem, 4vw, 3.1rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stats span { color: var(--grey); font-size: .92rem; font-weight: 600; line-height: 1.35; }
@media (max-width: 900px) { .chi { grid-template-columns: 1fr; } .chi .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chi-visual { justify-self: start; width: min(100%, 320px); } }

/* ------- percorso + mappa */
.story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.story-map { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 86px); }
.map-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-l); overflow: hidden; }
.map { display: block; width: 100%; height: auto; }
.map-stage { position: relative; }
.map-hud { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); background: #fff; }
.hud-main { display: flex; align-items: baseline; gap: .7rem; min-width: 0; }
.hud-count { display: flex; align-items: baseline; gap: .5rem; flex-shrink: 0; }
.hud-k { font-size: .78rem; font-weight: 700; color: var(--grey); }
.hud-y { font-size: 1.6rem; font-weight: 800; color: var(--blue); line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-t { font-size: .95rem; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-n { font-size: 1.6rem; font-weight: 800; color: var(--blue); line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hud-y.bump, .hud-n.bump, .hud-t.bump { animation: bump .55s var(--ease); }
@keyframes bump { 0% { opacity: .3; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
.map-tag { position: absolute; z-index: 3; transform: translate(-50%, -100%); margin-top: -26px; background: var(--ink); color: #fff; border-radius: 14px; padding: .45rem .75rem; display: flex; flex-direction: column; line-height: 1.2; box-shadow: var(--sh-l); opacity: 0; pointer-events: none; transition: opacity .35s, left .6s var(--ease), top .6s var(--ease); white-space: nowrap; }
.map-tag::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: var(--ink); transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.map-tag.is-on { opacity: 1; animation: tagIn .5s var(--ease); }
.map-tag.left { transform: translate(-100%, -50%); margin: 0 0 0 -26px; }
.map-tag.left::after { left: auto; right: -7px; bottom: auto; top: 50%; transform: translateY(-50%) rotate(45deg); }
.map-tag.left.is-on { animation-name: tagInL; }
@keyframes tagInL { from { transform: translate(-100%, -50%) scale(.85); } to { transform: translate(-100%, -50%) scale(1); } }
.tag-k { font-size: .68rem; font-weight: 700; color: var(--sky); text-transform: none; }
.tag-v { font-size: .95rem; font-weight: 800; }
@keyframes tagIn { from { transform: translate(-50%, -100%) scale(.85); } to { transform: translate(-50%, -100%) scale(1); } }
.map-tl { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 1.1rem 1rem .9rem; border-top: 1px solid var(--line); background: #fff; }
.tl-line { position: absolute; left: 1rem; right: 1rem; top: 1.1rem; height: 4px; border-radius: 4px; background: var(--line); transform: translateY(5px); }
.tl-line i { display: block; height: 100%; border-radius: 4px; background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease); }
.tl-dot { position: relative; appearance: none; background: none; border: 0; padding: 1.1rem 0 0; cursor: pointer; font-family: var(--font); color: var(--grey); font-size: .72rem; font-weight: 700; text-align: center; min-width: 0; }
.tl-dot::before { content: ""; position: absolute; left: 50%; top: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--line); transform: translate(-50%, 0); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.tl-dot span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: .1rem; }
.tl-dot:hover { color: var(--blue); }
.tl-dot.is-done::before { border-color: var(--blue); }
.tl-dot.is-active { color: var(--blue); }
.tl-dot.is-active::before { border-color: var(--blue); background: var(--sky); transform: translate(-50%, 0) scale(1.3); box-shadow: 0 0 0 5px rgba(75,195,219,.25); }
.rings circle { fill: none; stroke: var(--sky-deep); stroke-width: 1.5; stroke-dasharray: 5 7; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rings.is-on circle { animation: ringOut 3.2s ease-out infinite; }
.rings.is-on circle:nth-child(2) { animation-delay: 1.05s; }
.rings.is-on circle:nth-child(3) { animation-delay: 2.1s; }
@keyframes ringOut { 0% { opacity: 0; transform: scale(.3); } 20% { opacity: .7; } 100% { opacity: 0; transform: scale(1.35); } }
/* comuni seguiti da ogni agenzia */
.zone { opacity: 0; transition: opacity .5s .2s; }
.zone.is-on { opacity: 1; }
.z-line { stroke: var(--sky-deep); stroke-width: 1.5; stroke-dasharray: 3 4; stroke-linecap: round; opacity: .85; }
.zone.is-on .z-line { animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -14; } }
.z-dot { fill: #fff; stroke: var(--blue); stroke-width: 2.2; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .45s var(--ease) .3s; }
.zone.is-on .z-dot { transform: scale(1); }
.z-label { font: 600 11px var(--font); fill: var(--grey); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.map-prog { display: none; }
.m-land { fill: #fff; }
.m-grid { stroke: #EEF2F7; stroke-width: 1; }
.m-sea { fill: #E7F4FA; }
.m-coast { fill: none; stroke: var(--sky); stroke-width: 1.6; }
.m-lake { fill: #DDF1F7; stroke: var(--sky); stroke-width: 1.4; }
.m-water { font: italic 600 12px var(--font); fill: var(--sky-deep); }
.m-sea-t { font-size: 14px; letter-spacing: .12em; }
.m-roma rect { fill: var(--ink); }
.m-roma text, .m-home text { font: 700 12.5px var(--font); fill: var(--grey); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.m-home .home-dot { fill: #fff; stroke: var(--blue); stroke-width: 2.5; }
.m-home .home-pulse { fill: var(--sky); opacity: 0; transform-box: fill-box; transform-origin: center; }
.m-home.is-live .home-pulse { animation: pulse 1.8s ease-out infinite; }
.m-scale path { fill: none; stroke: var(--grey); stroke-width: 1.5; }
.m-scale text { font: 700 11px var(--font); fill: var(--grey); }
.link { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85; transition: stroke-dashoffset 1.2s var(--ease); }
.link.is-on { stroke-dashoffset: 0; }
.pin { cursor: pointer; outline: none; }
.pin .pin-dot { fill: var(--blue); stroke: #fff; stroke-width: 3; transform-box: fill-box; transform-origin: center; transition: transform .45s var(--ease), fill .3s; }
.pin .pin-glow { opacity: 0; transition: opacity .4s; }
.pin .pin-ripple { fill: none; stroke: var(--sky); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pin .pin-label { font: 800 13.5px var(--font); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; transition: opacity .4s; }
.pin:not(.is-on) .pin-dot { transform: scale(0); }
.pin:not(.is-on) .pin-label { opacity: 0; }
.pin.is-new .pin-ripple { animation: ripple 1.4s ease-out 2; }
.pin.is-new:not(.is-sel) .pin-label { opacity: 0; } /* il nome è già nell'etichetta "Nuova apertura" */
.pin.is-new .pin-glow, .pin.is-sel .pin-glow, .pin:hover .pin-glow, .pin:focus-visible .pin-glow { opacity: 1; }
.pin.is-sel .pin-dot { fill: var(--sky-deep); transform: scale(1.25); }
@keyframes ripple { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(4); } }
@keyframes pulse { from { opacity: .7; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 58vh; display: flex; flex-direction: column; justify-content: center; padding: 1.2rem 0 1.2rem 1.8rem; border-left: 3px solid var(--line); position: relative; transition: opacity .5s, border-color .5s; }
.story-live .step:not(.is-active) { opacity: .35; }
.step::before { content: ""; position: absolute; left: -10px; top: 50%; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid var(--line); transform: translateY(-50%); transition: border-color .4s, background .4s, transform .4s; }
.step.is-active { border-color: var(--blue); }
.step.is-active::before { border-color: var(--blue); background: var(--sky); transform: translateY(-50%) scale(1.15); }
.step:first-child { min-height: 42vh; }
.step:last-child { min-height: 46vh; }
.step-y { font-size: clamp(2.3rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-top: .6rem; }
.step p { margin-top: .5rem; color: var(--grey); max-width: 40ch; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story-map { top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 2; background: var(--bg); margin-inline: calc(-1 * var(--gutter)); padding: .4rem var(--gutter) .9rem; }
  .map-card { border-radius: var(--r-lg); }
  .map { height: clamp(220px, min(42vh, 56vw), 420px); }
  .map-tag { transition: opacity .35s; }
  .m-scale { display: none; }
  .map-hud { padding: .55rem .8rem; } .hud-y, .hud-n { font-size: 1.2rem; } .hud-t { font-size: .8rem; } .hud-k { font-size: .7rem; }
  .map-tl { padding: .9rem .6rem .6rem; } .tl-dot { font-size: .62rem; } .tl-line { left: .6rem; right: .6rem; top: .9rem; }
  .map-tag { font-size: .85rem; padding: .35rem .6rem; }
  .pin .pin-label { font-size: calc(19px * var(--fz, 1)); } .z-label { font-size: calc(13px * var(--fz, 1)); } .z-dot { r: 5.5; } .m-home text, .m-roma text { font-size: calc(16px * var(--fz, 1)); } .m-water { font-size: calc(15px * var(--fz, 1)); } .m-scale text { font-size: calc(14px * var(--fz, 1)); }
  .step { min-height: 48vh; justify-content: flex-end; padding-bottom: 2rem; }
}

@media (min-width: 641px) and (max-width: 900px) { .pin .pin-label { font-size: calc(14px * var(--fz, 1)); } .z-label { font-size: calc(10.5px * var(--fz, 1)); } .m-home text, .m-roma text { font-size: calc(12px * var(--fz, 1)); } .m-water { font-size: calc(11px * var(--fz, 1)); } }

/* ------- agenzie */
.finder { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1rem, 2.5vw, 1.5rem); margin-bottom: clamp(1.4rem, 3vw, 2rem); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: 700 .92rem/1 var(--font); color: var(--navy); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: .65rem 1rem; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s; }
.chip:hover { border-color: var(--sky); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 10px 20px -12px rgba(0,74,173,.9); }
.finder-out { margin-top: .9rem; color: var(--grey); font-weight: 600; min-height: 1.6em; }
.finder-out a { color: var(--blue); font-weight: 800; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.35rem 1.2rem; box-shadow: var(--sh-s); scroll-margin-top: 110px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-l); }
.card.is-sel { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(75,195,219,.45), var(--sh-l); animation: selPop .6s var(--ease); }
@keyframes selPop { 0% { transform: scale(.98); } 60% { transform: scale(1.015); } 100% { transform: none; } }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.card-pill { background: var(--tint); color: var(--blue); font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .4rem .8rem; line-height: 1.35; }
.ic-group { display: inline-flex; gap: .4rem; flex-shrink: 0; }
.ic-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--tint); color: var(--blue); flex-shrink: 0; text-decoration: none; transition: background .2s, color .2s, transform .2s var(--ease); }
.ic-btn:hover { transform: translateY(-2px); }
.ic-f { font-weight: 800; font-size: 1rem; line-height: 1; width: 18px; text-align: center; }
.hide-m { display: inline; }
.ic-btn:hover { background: var(--blue); color: #fff; }
.ic-btn svg, .card-phone svg, .cbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
/* recensioni Google: stelle che si accendono una dopo l'altra */
.card-rev { display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start; margin-bottom: 1rem; text-decoration: none; color: var(--ink); background: #FFF8E6; border: 1px solid #F6E3B0; border-radius: 999px; padding: .4rem .85rem .4rem .6rem; transition: transform .25s var(--ease), box-shadow .25s; }
.card-rev:hover { transform: translateY(-2px); box-shadow: var(--sh-s); }
.stars { display: inline-flex; gap: 1px; }
.star { display: inline-grid; width: 15px; height: 15px; color: #F5B301; opacity: .25; transform: scale(.6); }
.star svg { width: 15px; height: 15px; fill: currentColor; }
.card.is-in .star { animation: starOn .45s calc(.15s + var(--i) * 90ms) var(--ease) both; }
@keyframes starOn { from { opacity: .25; transform: scale(.6); } 60% { transform: scale(1.25); } to { opacity: 1; transform: scale(1); } }
.card-rev b { font-weight: 800; font-size: .95rem; }
.rev-n { font-size: .8rem; font-weight: 600; color: var(--grey); }
.card-rev:hover .rev-n { text-decoration: underline; text-underline-offset: 3px; }
.card h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.02em; }
.card-addr { margin-top: .5rem; color: var(--grey); font-size: .95rem; line-height: 1.5; }
.card-phone { display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem; font-size: 1.35rem; font-weight: 800; color: var(--blue); text-decoration: none; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.card-phone:hover span { text-decoration: underline; text-underline-offset: 4px; }
.card-mail { margin-top: .2rem; margin-bottom: 1.1rem; color: var(--grey); font-size: .92rem; overflow-wrap: anywhere; }
.card-btns { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.cbtn { display: inline-flex; align-items: center; gap: .4rem; font: 700 .86rem/1 var(--font); text-decoration: none; color: var(--navy); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: .62rem .85rem; transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease); }
.cbtn:hover { border-color: var(--blue); transform: translateY(-1px); }
.cbtn-main { background: var(--blue); color: #fff; border-color: var(--blue); }
.cbtn-main:hover { background: var(--navy); border-color: var(--navy); }
.card-co { margin-top: .9rem; font-size: .76rem; color: #8A93A1; }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ------- metodo: blocco scuro arrotondato dentro la pagina */
.sec-met { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 6vw, 4.5rem); }
.met { position: relative; overflow: hidden; background: radial-gradient(90% 70% at 90% 0%, #0E3A86 0%, var(--night) 55%), var(--night); color: #fff; border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 4.5rem); }
.met::before { content: ""; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(75,195,219,.16), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.met.is-hover::before { opacity: 1; }
.met-glow { position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(75,195,219,.35), transparent 65%); filter: blur(30px); pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.met .sec-head { position: relative; }
.met h2 { color: #fff; }
.met .sec-sub { color: #B9C6DE; }
/* di solito / noi: due percorsi a stazioni; il nostro si disegna da solo quando entra nello schermo */
.vs { position: relative; display: grid; gap: .7rem; margin: -.4rem 0 clamp(1.8rem, 4vw, 2.8rem); }
.vs-row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); align-items: center; gap: 1.2rem; padding: 1.05rem 1.4rem 1.1rem; border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.035); }
.vs-new { background: linear-gradient(120deg, rgba(75,195,219,.16), rgba(0,74,173,.32)); border-color: rgba(75,195,219,.45); }
.vs-k { display: flex; flex-direction: column; gap: .15rem; }
.vs-k span { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: #93A4C3; line-height: 1.1; }
.vs-k small { font-size: .78rem; font-weight: 600; color: #6F82A6; }
.vs-new .vs-k span { color: #fff; } .vs-new .vs-k small { color: var(--sky); }
.vs-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.vs-steps::before { content: ""; position: absolute; left: 16.67%; right: 16.67%; top: 22px; height: 2px; border-top: 2px dashed rgba(255,255,255,.18); }
.vs-new .vs-steps::before { border: 0; height: 3px; top: 21.5px; background: linear-gradient(90deg, var(--sky), #fff); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .45s; }
.vs.in .vs-new .vs-steps::before { transform: scaleX(1); }
.vs-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; font-size: .9rem; font-weight: 700; color: #B9C6DE; line-height: 1.25; }
.vs-i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--night); border: 1.5px solid rgba(255,255,255,.22); color: #93A4C3; }
.vs-i svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vs-old .vs-steps li:last-child { color: #8A9BBC; }
.vs-wait svg { animation: waitFlip 4s ease-in-out infinite; }
@keyframes waitFlip { 0%, 60% { transform: rotate(0); } 75%, 100% { transform: rotate(180deg); } }
.vs-new .vs-steps li { color: #fff; }
.vs-new .vs-i { background: #fff; border-color: #fff; color: var(--blue); box-shadow: 0 0 0 5px rgba(75,195,219,.2); }
.vs.in .vs-new .vs-steps li { animation: popIn .55s var(--ease) both; }
.vs.in .vs-new .vs-steps li:nth-child(1) { animation-delay: .3s; } .vs.in .vs-new .vs-steps li:nth-child(2) { animation-delay: .75s; } .vs.in .vs-new .vs-steps li:nth-child(3) { animation-delay: 1.2s; }
.vs.in .vs-new .vs-steps li:nth-child(3) .vs-i { animation: glowIn 1.2s 1.5s var(--ease) both; }
@keyframes glowIn { from { box-shadow: 0 0 0 5px rgba(75,195,219,.2); } 40% { box-shadow: 0 0 0 14px rgba(75,195,219,.35); } to { box-shadow: 0 0 0 5px rgba(75,195,219,.2); } }
@media (max-width: 760px) { .vs-row { grid-template-columns: 1fr; gap: .7rem; } .vs-k { flex-direction: row; align-items: baseline; gap: .5rem; } }
/* teatro */
.theater-wrap { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.2rem, 3vw, 2.5rem); align-items: center; margin-bottom: 1rem; }
.theater-box { position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: clamp(.8rem, 2vw, 1.4rem) clamp(.6rem, 2vw, 1.2rem); }
.theater { display: block; width: 100%; height: auto; }
.theater-box { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.th-tag { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 700; color: #DCE5F3; background: rgba(6,20,46,.75); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: .35rem .8rem .35rem .6rem; white-space: nowrap; margin: 0; }
.th-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 10px var(--sky); }
.th-dot-h { background: #fff; box-shadow: 0 0 10px #fff; }
.th-ring { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1.4; }
.th-ring2 { stroke-dasharray: 2 7; } .th-ring3 { stroke-dasharray: 2 7; opacity: .7; }
.th-stage { fill: rgba(75,195,219,.12); stroke: rgba(75,195,219,.5); stroke-width: 1.5; }
.th-p { fill: var(--sky); opacity: 0; transform-box: fill-box; transform-origin: center; }
.th-h path { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.th-h { opacity: 0; transform-box: fill-box; transform-origin: center; }
.th-h-win { fill: rgba(255,255,255,.25); stroke: none; transition: fill .3s; }
.th-c path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.th-lab-c { font: 700 13px var(--font); fill: #fff; }
.theater-wrap.go .th-p { animation: thPop .6s calc(var(--i) * 14ms) var(--ease) both; }
.theater-wrap.go .th-h { animation: thFade .6s calc(1.4s + var(--i) * 60ms) ease both; }
@keyframes thPop { from { opacity: 0; transform: scale(.2); } to { opacity: .8; transform: scale(1); } }
@keyframes thFade { to { opacity: .9; } }
.th-p.is-hit { fill: #fff; opacity: 1; animation: thHit 2.6s var(--ease) both; }
@keyframes thHit { 0% { transform: scale(1); } 15% { transform: scale(2.1); } 70% { transform: scale(1.6); } 100% { transform: scale(1); fill: var(--sky); } }
.th-h.is-hit .th-h-win { fill: #FFD66B; }
.th-h.is-hit { animation: thHouse 2.6s var(--ease) both; }
@keyframes thHouse { 0% { transform: scale(1); } 25% { transform: scale(1.45); } 75% { transform: scale(1.3); } 100% { transform: scale(1); } }
.th-m { fill: none; stroke: var(--sky); stroke-width: 2.2; stroke-linecap: round; opacity: 0; }
.th-spark { fill: #fff; filter: drop-shadow(0 0 6px #fff); }
.theater-text h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); color: #fff; }
.theater-text p { margin-top: .9rem; color: #C7D3E8; }
.theater-text strong { color: #fff; font-weight: 700; }
.th-stats { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.th-stats li { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; border-radius: var(--r-md); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); min-width: 0; }
.th-stats b { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1; }
.th-stats span { font-size: .82rem; color: #B9C6DE; font-weight: 600; line-height: 1.3; }
@media (max-width: 900px) { .theater-wrap { grid-template-columns: 1fr; } .theater-box { order: -1; } .th-tag { font-size: .72rem; } }
/* due figure: due corsie, una per chi vende e una per chi compra, che si incontrano al centro */
.duo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 3rem); align-items: start; margin-top: clamp(1.6rem, 3.5vw, 2.8rem); padding-top: clamp(1.6rem, 3.5vw, 2.6rem); border-top: 1px solid rgba(255,255,255,.12); }
.lane { min-width: 0; }
.duo-head { grid-column: 1 / -1; text-align: center; max-width: 46rem; margin: 0 auto .4rem; }
.duo-pair { display: inline-flex; align-items: center; gap: .55rem; font-size: .82rem; font-weight: 800; letter-spacing: .02em; color: #DCE5F3; background: rgba(6,20,46,.75); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: .4rem .95rem; }
.duo-pair svg { width: 22px; height: 22px; fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.duo-head h3 { margin-top: .9rem; font-size: clamp(1.45rem, 2.7vw, 2.1rem); color: #fff; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
.duo-head p:last-child { margin-top: .7rem; color: #B9C6DE; font-size: 1.05rem; text-wrap: balance; }
.duo-out { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: .6rem; padding: 1rem 1.3rem; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(75,195,219,.35); color: #DCE5F3; line-height: 1.45; }
.duo-out b { color: #fff; }
.duo-out-i { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; }
.duo-out-i svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lane-who { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 700; color: #DCE5F3; background: rgba(6,20,46,.75); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: .35rem .8rem .35rem .6rem; }
.lane h3 { margin-top: .9rem; font-size: clamp(1.45rem, 2.4vw, 1.9rem); color: #fff; letter-spacing: -.02em; }
.lane-sub { margin-top: .35rem; color: #B9C6DE; font-size: 1rem; }
.lane-steps { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; counter-reset: ls; position: relative; }
.lane-steps::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(180deg, var(--sky), rgba(75,195,219,.1)); border-radius: 2px; }
.lane-steps li { position: relative; padding-left: 2.6rem; color: #C7D3E8; line-height: 1.5; counter-increment: ls; }
.lane-steps li::before { content: counter(ls); position: absolute; left: 0; top: .1rem; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--night); border: 2px solid var(--sky); color: #fff; font-size: .78rem; font-weight: 800; }
.lane-steps b { color: #fff; font-weight: 800; }
.lane-join { display: flex; flex-direction: column; align-items: center; align-self: stretch; gap: .6rem; padding-top: .4rem; }
.lane-join i { flex: 1; width: 0; min-height: 24px; border-left: 2px dashed rgba(255,255,255,.22); }
.lane-join span { display: grid; place-items: center; width: 56px; height: 56px; box-shadow: 0 0 0 8px rgba(75,195,219,.16); border-radius: 50%; background: #fff; color: var(--blue); animation: joinPulse 2.6s ease-in-out infinite; }
.lane-join em { font-style: normal; font-size: .8rem; font-weight: 800; line-height: 1.25; color: var(--sky); text-align: center; white-space: nowrap; }
.lane-join svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes joinPulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(75,195,219,.22); } 50% { box-shadow: 0 0 0 16px rgba(75,195,219,.04); } }
.duo.in .lane-steps li { animation: fadeUp .6s var(--ease) both; }
.duo.in .lane-steps li:nth-child(1) { animation-delay: .25s; } .duo.in .lane-steps li:nth-child(2) { animation-delay: .4s; } .duo.in .lane-steps li:nth-child(3) { animation-delay: .55s; }
@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; gap: 1rem; }
  .lane-join { flex-direction: row; align-self: auto; padding: 0; gap: .8rem; }
  .lane-join em br { display: none; }
  .lane-join i { flex: 1; width: auto; min-height: 0; height: 0; border-left: 0; border-top: 2px dashed rgba(255,255,255,.22); }
}
/* pilastri (sezione chiara "esigenze") */
.sec-esi { padding-top: clamp(3rem, 6vw, 4.5rem); }
.sec-esi .sec-head { max-width: 50rem; }
.pillars { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pillars-light .pillar { background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-s); }
.pillars-light .pillar:hover { background: #fff; border-color: var(--sky); box-shadow: var(--sh-l); }
.pillars-light .pillar h3 { color: var(--ink); }
.pillars-light .pillar p { color: var(--grey); }
.pillar { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 1.6rem 1.5rem; transition: transform .3s var(--ease), background .3s, border-color .3s; }
.pillar:hover { transform: translateY(-5px); background: rgba(255,255,255,.1); border-color: rgba(75,195,219,.55); }
.pillar:nth-child(2) { transition-delay: .08s; } .pillar:nth-child(3) { transition-delay: .16s; } .pillar:nth-child(4) { transition-delay: .24s; }
.pillar.in:hover { transition-delay: 0s; }
.p-i { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: var(--grad); color: #fff; margin-bottom: 1.1rem; box-shadow: 0 14px 24px -12px rgba(0,74,173,.7); }
.p-i svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 1.28rem; color: #fff; line-height: 1.2; }
.pillar p { margin-top: .55rem; color: #C7D3E8; font-size: 1.02rem; line-height: 1.5; }
@media (max-width: 1100px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ------- lavora con noi: foto di tutta la squadra a tutta larghezza, sotto testo e scala di crescita */
.sec-join { padding-block: 0 clamp(4rem, 9vw, 7rem); }
.join { position: relative; overflow: hidden; display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); background: var(--grad); color: #fff; border-radius: var(--r-xl); padding: clamp(1rem, 2vw, 1.4rem) clamp(1rem, 2vw, 1.4rem) clamp(1.8rem, 3.5vw, 2.8rem); }
.join-photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0,20,60,.6); }
.join-photo img { width: 100%; aspect-ratio: 1080 / 440; object-fit: cover; object-position: 50% 42%; transition: transform .9s var(--ease); }
.join:hover .join-photo img { transform: scale(1.03); }
.join-photo figcaption { position: absolute; left: 1rem; bottom: 1rem; display: flex; align-items: baseline; gap: .5rem; background: rgba(6,20,46,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; border-radius: 999px; padding: .45rem 1rem .45rem .8rem; font-size: .85rem; font-weight: 600; }
.join-photo figcaption b { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.join::after { content: ""; position: absolute; right: -90px; bottom: -150px; width: 380px; height: 380px; border-radius: 50%; border: 54px solid rgba(255,255,255,.1); pointer-events: none; }
.join-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-inline: clamp(.2rem, 1.5vw, 1rem); }
.join h2 { color: #fff; }
.join p { margin-top: 1rem; color: rgba(255,255,255,.9); font-size: 1.08rem; max-width: 46ch; }
.join-cta { position: relative; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
@media (max-width: 900px) { .join-grid { grid-template-columns: 1fr; } .join-photo img { aspect-ratio: 16 / 9; } .ladder { margin-top: .2rem; } }

/* scala di crescita */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; counter-reset: lad; }
.ladder li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .3rem .8rem; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: .65rem .9rem; counter-increment: lad; transition: transform .3s var(--ease), background .3s; }
.ladder li:hover { transform: translateX(6px); background: rgba(255,255,255,.18); }
.ladder li::before { content: counter(lad); grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--blue); font-weight: 800; font-size: .9rem; }
.ladder b { font-weight: 800; color: #fff; }
.ladder span { font-size: .86rem; color: rgba(255,255,255,.85); line-height: 1.35; }
.join-text > p strong { color: #fff; }
.join.in .ladder li { animation: fadeUp .6s var(--ease) both; }
.join.in .ladder li:nth-child(1) { animation-delay: .2s; } .join.in .ladder li:nth-child(2) { animation-delay: .32s; } .join.in .ladder li:nth-child(3) { animation-delay: .44s; } .join.in .ladder li:nth-child(4) { animation-delay: .56s; }
/* i numeri dal 2014: fascia scura con contatori */
.num { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr); gap: 1.5rem; align-items: center; background: radial-gradient(80% 90% at 100% 0%, #0E3A86 0%, var(--night) 60%), var(--night); color: #fff; border-radius: var(--r-xl); padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3.5vw, 2.8rem); margin-top: clamp(2.5rem, 6vw, 4rem); }
.num::after { content: ""; position: absolute; left: -120px; bottom: -180px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(75,195,219,.3), transparent 65%); filter: blur(24px); pointer-events: none; }
.num-head { position: relative; }
.num-head .kicker { margin-bottom: .4rem; }
.num-head h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: #fff; letter-spacing: -.025em; }
.nums { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.nums li { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); min-width: 0; }
.nums b { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nums span { font-size: .84rem; color: #B9C6DE; font-weight: 600; line-height: 1.3; }
@media (max-width: 900px) { .num { grid-template-columns: 1fr; gap: 1rem; } .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ------- consulenza: foto dal palco a sinistra, a destra titolo, servizi con spunta, contatti diretti */
.con { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(1.5rem, 4.5vw, 4.5rem); align-items: center; }
.con-photo { position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-l); background: var(--night); }
.con-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; transition: transform .9s var(--ease); }
.con-photo:hover img { transform: scale(1.04); }
.con-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,20,46,.45)); pointer-events: none; }
.con-photo figcaption { position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: 1rem; display: flex; align-items: baseline; gap: .55rem; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 18px; padding: .75rem 1rem; color: var(--grey); font-size: .86rem; font-weight: 600; line-height: 1.25; }
.con-photo figcaption b { font-size: 1.35rem; font-weight: 800; color: var(--blue); letter-spacing: -.02em; white-space: nowrap; }
.con-body { min-width: 0; }
.con-body .sec-sub { margin-top: 1rem; max-width: 56ch; }
.svc-k { margin-top: 1.5rem; font-size: .88rem; font-weight: 700; color: var(--grey); display: flex; align-items: center; gap: .5rem; }
.svc-k::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.svc { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.svc a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 54px; padding: .7rem .85rem .7rem 1rem; text-decoration: none; font-weight: 700; font-size: .96rem; line-height: 1.25; color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(237,244,252,.85)); border: 1.5px solid rgba(0,74,173,.14); border-radius: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 22px -12px rgba(0,49,122,.45), 0 2px 5px rgba(11,27,51,.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background .25s, color .25s; }
.svc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 0; border-radius: 0 4px 4px 0; background: var(--grad); transform: translateY(-50%); transition: height .25s var(--ease); }
.svc-go { flex-shrink: 0; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--tint); color: var(--blue); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: background .25s, color .25s, transform .25s var(--ease); }
.svc a:hover, .svc a:focus-visible { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 30px -14px rgba(0,74,173,.55), 0 4px 10px rgba(0,74,173,.1); color: var(--blue); }
.svc a:hover::before, .svc a:focus-visible::before { height: 60%; }
.svc a:hover .svc-go, .svc a:focus-visible .svc-go { background: var(--blue); color: #fff; transform: translateX(3px); }
.svc a:active { transform: translateY(-1px) scale(.985); }
.svc.in li { animation: fadeUp .55s var(--ease) both; }
.svc.in li:nth-child(1) { animation-delay: .05s; } .svc.in li:nth-child(2) { animation-delay: .1s; } .svc.in li:nth-child(3) { animation-delay: .15s; } .svc.in li:nth-child(4) { animation-delay: .2s; } .svc.in li:nth-child(5) { animation-delay: .25s; } .svc.in li:nth-child(6) { animation-delay: .3s; } .svc.in li:nth-child(7) { animation-delay: .35s; } .svc.in li:nth-child(8) { animation-delay: .4s; } .svc.in li:nth-child(9) { animation-delay: .45s; }
.con-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.con-soc { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.1rem; }
.con-soc-k { font-size: .88rem; font-weight: 600; color: var(--grey); margin-right: .25rem; }
.soc { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--navy); background: #fff; border: 1.5px solid rgba(0,74,173,.16); border-radius: 999px; padding: .35rem .95rem .35rem .4rem; box-shadow: 0 10px 20px -12px rgba(0,49,122,.5), 0 2px 4px rgba(11,27,51,.06); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.soc:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 16px 26px -12px rgba(0,74,173,.55); }
.s-i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--blue); }
.s-i svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.s-txt { font-weight: 800; font-size: .9rem; }
.con-ag { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin-top: clamp(2rem, 4.5vw, 3.2rem); background: linear-gradient(120deg, rgba(255,255,255,.95), rgba(237,244,252,.9)); border: 1.5px solid rgba(0,74,173,.14); border-radius: var(--r-lg); padding: clamp(1.2rem, 2.5vw, 1.6rem) clamp(1.2rem, 2.5vw, 1.8rem); box-shadow: 0 22px 44px -26px rgba(0,49,122,.55), 0 3px 8px rgba(11,27,51,.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.con-ag-t { min-width: 0; flex: 1 1 32rem; }
.con-ag h3 { font-size: 1.25rem; }
.con-ag p { margin-top: .3rem; color: var(--grey); font-size: .98rem; max-width: 64ch; }
.con-ag .btn { flex-shrink: 0; }
@media (max-width: 900px) {
  .con { grid-template-columns: 1fr; gap: 1.6rem; }
  .con-photo img { aspect-ratio: 16 / 10; object-position: 50% 25%; }
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------- footer */
.foot { background: var(--night); color: #AEBBD3; padding-block: clamp(2.6rem, 6vw, 4rem) 2.4rem; font-size: .93rem; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot-about p { margin-top: .9rem; max-width: 40ch; line-height: 1.6; }
.foot-brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.foot-soc { margin-top: 1.1rem; }
.foot-soc a { background: rgba(255,255,255,.08); color: #fff; }
.foot-soc a:hover { background: rgba(75,195,219,.25); }
.foot-col { display: grid; align-content: start; gap: .1rem; }
.foot-k { color: #fff; font-weight: 800; font-size: .95rem; margin-bottom: .5rem; }
.foot-col a { color: #AEBBD3; text-decoration: none; padding: .28rem 0; transition: color .2s; }
.foot-col a:hover { color: var(--sky); }
.foot-bottom { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: .5rem; }
.foot-bottom p { max-width: 80ch; font-size: .86rem; }
.foot-small { color: #7F8EAA; font-size: .82rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ------- banda finale (pagine interne) */
.cta-band { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cta-in { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; padding: clamp(1.8rem, 4.5vw, 3.2rem); border-radius: var(--r-xl); color: #fff; background: radial-gradient(90% 120% at 100% 0%, #0E3A86 0%, var(--night) 60%), var(--night); }
.cta-glow { position: absolute; right: -120px; bottom: -180px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(75,195,219,.4), transparent 65%); filter: blur(30px); animation: drift 16s ease-in-out infinite alternate; pointer-events: none; }
.cta-t { position: relative; flex: 1 1 26rem; min-width: 0; }
.cta-t h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.cta-t p { margin-top: .7rem; color: #B9C6DE; max-width: 52ch; }
.cta-b { position: relative; display: flex; flex-wrap: wrap; gap: .7rem; }

/* ===================== telefono: tutto più compatto ===================== */
@media (max-width: 640px) {
  body { font-size: 1rem; line-height: 1.6; }
  h2 { font-size: 1.85rem; letter-spacing: -.03em; }
  .hide-m { display: none; }
  .sec { padding-block: 2.6rem; }
  .sec-head { margin-bottom: 1.3rem; }
  .sec-sub { margin-top: .6rem; font-size: .98rem; }
  .kicker { margin-bottom: .6rem; font-size: .88rem; }
  .prose { gap: .8rem; margin-top: 1rem; font-size: .98rem; }
  .head-in { min-height: 60px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
  /* apertura */
  .hero { padding-block: 1.6rem 2.2rem; }
  .role { font-size: .8rem; padding: .4rem .8rem .4rem .65rem; }
  .hero-name { margin-top: 1rem; font-size: clamp(2.9rem, 15vw, 3.6rem); }
  .hero-top { gap: 1rem; }
  .hero-lead { font-size: .98rem; }
  .hero-cta { margin-top: 1.1rem; gap: .5rem; }
  .hero-cta .btn { flex: 1 1 auto; padding: .8rem 1rem; font-size: .92rem; }
  .hero-team { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; }
  .team-photo { width: 100%; border-radius: 18px; }
  .team-photo img { aspect-ratio: 1800 / 812; object-fit: cover; object-position: 50% 50%; transform: none !important; }
  .badge, .bd3 { display: flex; position: static; flex: 1 1 0; min-width: 0; justify-content: center; padding: .5rem .55rem; font-size: .72rem; border-radius: 14px; gap: .4rem; box-shadow: var(--sh-s); border: 1px solid var(--line); }
  .badge b { font-size: 1.15rem; } .badge span { line-height: 1.15; }
  .anim .badge { animation: popIn .6s var(--ease) both; }
  .anim .bd1 { animation-delay: .9s; } .anim .bd2 { animation-delay: 1.05s; } .anim .bd3 { animation-delay: 1.2s; }
  .marquee { padding-block: .7rem; } .mq-track span { font-size: .92rem; padding-inline: 1rem; } .mq-track span::after { margin-left: 2rem; }
  /* chi sono */
  .chi { gap: 1.4rem; }
  .lines { gap: .7rem; margin-top: 1rem; } .lines li { grid-template-columns: 1fr; gap: .1rem; padding-left: 1.3rem; } .lines li::before { top: .3em; width: 11px; height: 11px; } .lines p { font-size: .98rem; } .ln-k { font-size: .72rem; }
  .chi-visual { width: min(62%, 260px); margin: 2.4rem auto 0; }
  .cut-panel { border-radius: 22px; }
  .stats { gap: .6rem; }
  .stats li { padding: .85rem .9rem; border-radius: 16px; gap: .15rem; }
  .stats b { font-size: 1.9rem; } .stats span { font-size: .82rem; }
  /* percorso */
  .map { height: 31vh; min-height: 196px; max-height: none; }
  .map-hud { padding: .45rem .7rem; } .hud-y, .hud-n { font-size: 1.1rem; } .hud-t { font-size: .76rem; } .hud-k { font-size: .66rem; }
  .map-tl { padding: .75rem .5rem .45rem; } .tl-line { top: .75rem; left: .5rem; right: .5rem; height: 3px; }
  .tl-dot { padding-top: .95rem; font-size: .58rem; } .tl-dot span { padding-inline: 0; } .tl-dot::before { width: 11px; height: 11px; border-width: 2.5px; }
  .story-map { padding: .3rem var(--gutter) .6rem; }
  .step { min-height: 36vh; padding: .8rem 0 1.1rem 1.1rem; }
  .step:first-child { min-height: 28vh; } .step:last-child { min-height: 32vh; }
  .step-y { font-size: 2rem; } .step h3 { font-size: 1.1rem; margin-top: .3rem; } .step p { font-size: .94rem; margin-top: .3rem; }
  .step::before { width: 13px; height: 13px; left: -8px; }
  /* agenzie */
  .finder { padding: .9rem; border-radius: 18px; margin-bottom: 1rem; }
  .chips { gap: .4rem; } .chip { font-size: .84rem; padding: .5rem .75rem; }
  .finder-out { margin-top: .7rem; font-size: .95rem; }
  .cards { gap: .8rem; }
  .card { padding: 1.1rem 1rem .9rem; border-radius: 18px; }
  .card-rev { margin-bottom: .7rem; padding: .32rem .7rem .32rem .5rem; gap: .4rem; } .star, .star svg { width: 13px; height: 13px; } .card-rev b { font-size: .88rem; } .rev-n { font-size: .74rem; }
  .card h3 { font-size: 1.15rem; } .card-addr { font-size: .9rem; margin-top: .35rem; }
  .card-phone { font-size: 1.2rem; margin-top: .6rem; } .card-mail { font-size: .86rem; margin-bottom: .8rem; }
  .card-btns { padding-top: .8rem; gap: .4rem; }
  .cbtn-ic .lbl { display: none; }
  .cbtn-ic { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }
  .cbtn-ic svg { width: 18px; height: 18px; } .cbtn-ic .ic-f { font-size: 1.05rem; }
  .cbtn-main { padding: .6rem .8rem; font-size: .82rem; }
  .card-btns { gap: .35rem; }
  .card-co { font-size: .7rem; margin-top: .7rem; }
  /* metodo */
  .sec-met { padding-block: .6rem 2.6rem; }
  .met { padding: 1.5rem 1rem; border-radius: 22px; }
  .vs { gap: .5rem; margin: -.2rem 0 1.2rem; } .vs-row { padding: .75rem .8rem .85rem; border-radius: 18px; gap: .55rem; }
  .vs-k span { font-size: 1.05rem; } .vs-k small { font-size: .72rem; }
  .vs-steps { gap: .3rem; } .vs-steps li { font-size: .76rem; gap: .35rem; } .vs-i { width: 36px; height: 36px; } .vs-i svg { width: 17px; height: 17px; }
  .vs-steps::before { top: 18px; } .vs-new .vs-steps::before { top: 17.5px; }
  .num { padding: 1.1rem 1rem; border-radius: 22px; margin-top: 1.4rem; gap: .8rem; }
  .num-head h3 { font-size: 1.35rem; } .nums { gap: .5rem; } .nums li { padding: .7rem .75rem; border-radius: 14px; } .nums b { font-size: 1.6rem; } .nums span { font-size: .76rem; }
  .lane-join em { font-size: .68rem; }
  .theater-box { padding: .5rem .3rem; border-radius: 18px; gap: .2rem; }
  .th-tag { font-size: .7rem; padding: .3rem .65rem .3rem .5rem; }
  .theater-wrap { gap: 1rem; }
  .theater-text h3 { font-size: 1.3rem; } .theater-text p { font-size: .95rem; margin-top: .6rem; }
  .th-stats { gap: .5rem; margin-top: .9rem; } .th-stats li { padding: .65rem .7rem; } .th-stats b { font-size: 1.45rem; } .th-stats span { font-size: .76rem; }
  .duo { margin-top: 1.2rem; padding-top: 1.2rem; gap: .8rem; }
  .lane-who { font-size: .72rem; padding: .3rem .65rem .3rem .5rem; }
  .lane h3 { font-size: 1.3rem; margin-top: .6rem; } .lane-sub { font-size: .92rem; }
  .lane-steps { margin-top: .8rem; gap: .45rem; } .lane-steps li { font-size: .92rem; padding-left: 2.3rem; }
  .lane-steps li::before { width: 25px; height: 25px; font-size: .72rem; } .lane-steps::before { left: 11.5px; }
  .lane-join span { width: 42px; height: 42px; } .lane-join svg { width: 20px; height: 20px; }
  .pillar { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: .85rem; row-gap: .15rem; align-items: center; padding: .85rem .95rem; border-radius: 18px; }
  .pillar .p-i { width: 46px; height: 46px; border-radius: 14px; margin: 0; grid-column: 1; grid-row: 1 / span 2; }
  .pillar .p-i svg { width: 22px; height: 22px; }
  .pillar h3 { grid-column: 2; grid-row: 1; font-size: 1.06rem; align-self: end; }
  .pillar p { grid-column: 2; grid-row: 2; margin-top: 0; font-size: .92rem; line-height: 1.4; align-self: start; }
  .pillars { gap: .55rem; }
  .duo-head h3 { font-size: 1.32rem; margin-top: .7rem; } .duo-head p:last-child { font-size: .95rem; margin-top: .5rem; } .duo-pair { font-size: .74rem; padding: .32rem .8rem; }
  .duo-head { margin-bottom: 0; }
  .duo-out { justify-content: flex-start; text-align: left; padding: .75rem .85rem; border-radius: 16px; font-size: .92rem; gap: .65rem; margin-top: .2rem; } .duo-out-i { width: 36px; height: 36px; border-radius: 11px; } .duo-out-i svg { width: 20px; height: 20px; }
  /* entra nel team */
  .sec-join { padding-bottom: 2.6rem; }
  .join { padding: .7rem .7rem 1.3rem; border-radius: 22px; gap: 1rem; }
  .join-grid { gap: 1rem; padding-inline: .3rem; }
  .join-photo { border-radius: 16px; } .join-photo img { aspect-ratio: 16 / 10; }
  .join-photo figcaption { left: .6rem; bottom: .6rem; font-size: .76rem; padding: .35rem .8rem .35rem .65rem; } .join-photo figcaption b { font-size: 1.05rem; }
  .join p { font-size: .96rem; margin-top: .6rem; }
  .ladder { gap: .4rem; }
  .ladder li { padding: .5rem .7rem; column-gap: .6rem; border-radius: 12px; }
  .ladder li::before { width: 28px; height: 28px; font-size: .8rem; }
  .ladder b { font-size: .95rem; } .ladder span { font-size: .78rem; }
  .join-cta { margin-top: 1.1rem; gap: .5rem; } .join-cta .btn { flex: 1 1 auto; padding: .8rem .9rem; font-size: .9rem; }
  /* consulenza */
  .con { gap: 1.2rem; }
  .con-photo { border-radius: 20px; } .con-photo img { aspect-ratio: 4 / 3; }
  .con-photo figcaption { left: .6rem; right: auto; bottom: .6rem; padding: .5rem .8rem; border-radius: 14px; font-size: .76rem; } .con-photo figcaption b { font-size: 1.1rem; }
  .con-body .sec-sub { margin-top: .6rem; }
  .svc-k { margin-top: 1.1rem; font-size: .82rem; }
  .svc { margin-top: .5rem; gap: .5rem; } .svc a { min-height: 48px; padding: .55rem .6rem .55rem .8rem; font-size: .88rem; border-radius: 14px; } .svc-go { width: 24px; height: 24px; padding: 4.5px; } .svc li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .con-cta { margin-top: 1.1rem; gap: .5rem; } .con-cta .btn { flex: 1 1 auto; padding: .8rem .9rem; font-size: .9rem; }
  .con-soc { margin-top: .9rem; gap: .4rem; } .con-soc-k { width: 100%; margin: 0; font-size: .82rem; }
  .soc { font-size: .84rem; padding: .3rem .8rem .3rem .35rem; } .s-i { width: 27px; height: 27px; }
  .con-ag { margin-top: 1.2rem; padding: 1rem; border-radius: 18px; gap: .8rem; }
  .con-ag h3 { font-size: 1.1rem; } .con-ag p { font-size: .92rem; }
  .con-ag .btn { width: 100%; padding: .8rem 1rem; font-size: .92rem; }
  .foot { padding-block: 1.8rem 2.2rem; font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv.pre { opacity: 1; transform: none; }
  .link { stroke-dashoffset: 0; }
  .team-photo img { transform: none !important; }
  .h2-words .w > span { transform: none !important; }
  .cut-panel { transform: none !important; }
}


/* ===================== pagine interne ===================== */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .86rem; font-weight: 600; color: var(--grey); margin-bottom: 1.2rem; }
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-hidden] { opacity: .5; }

/* hero delle pagine */
.phero { position: relative; overflow: hidden; padding-block: clamp(2rem, 5vw, 4.2rem) clamp(2.6rem, 6vw, 4.8rem); background: linear-gradient(180deg, var(--bg), #fff 92%); }
.phero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.8rem, 5vw, 4.5rem); align-items: center; }
.phero-t { min-width: 0; }
.phero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; line-height: 1.02; letter-spacing: -.045em; }
.phero h1 .ln { display: block; overflow: hidden; padding-bottom: .07em; }
.phero h1 .ln > span { display: inline-block; }
.anim .phero h1 .ln > span { animation: lineUp .9s .1s var(--ease) both; }
.anim .phero h1 .ln:nth-child(2) > span { animation-delay: .22s; }
.anim .phero h1 .ln:nth-child(3) > span { animation-delay: .34s; }
.phero-lead { margin-top: 1.2rem; color: #3A475C; font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 52ch; }
.anim .phero-lead, .anim .phero .hero-cta, .anim .phero .crumbs, .anim .phero .kicker, .anim .mini-stats { animation: fadeUp .8s .35s var(--ease) both; }
.anim .phero .crumbs, .anim .phero .kicker { animation-delay: 0s; }
.anim .mini-stats { animation-delay: .5s; }
.anim .phero-v { animation: zoomIn 1.1s .25s var(--ease) both; }
.phero-v { min-width: 0; position: relative; }
.mini-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; padding: 0; list-style: none; }
.mini-stats li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: .65rem 1rem; box-shadow: var(--sh-s); display: flex; flex-direction: column; line-height: 1.2; }
.mini-stats b { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; color: var(--blue); font-variant-numeric: tabular-nums; }
.mini-stats span { font-size: .8rem; font-weight: 600; color: var(--grey); }
.phero-photo { margin: 0; position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-l); background: var(--night); }
.phero-photo img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; transition: transform 1s var(--ease); }
.phero-photo:hover img { transform: scale(1.04); }
.phero-photo figcaption { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; display: flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 16px; padding: .7rem 1rem; font-size: .88rem; font-weight: 600; color: var(--grey); line-height: 1.3; }
.phero-photo figcaption b { color: var(--blue); font-size: 1.25rem; font-weight: 800; }
@media (max-width: 900px) { .phero-grid { grid-template-columns: 1fr; } }

/* sezioni */
.psec { padding-block: clamp(3.2rem, 7vw, 5.5rem); position: relative; }
.psec + .psec { padding-top: 0; }
.psec-tint { background: linear-gradient(180deg, var(--bg), #fff); }
.psec-tint + .psec { padding-top: clamp(2.6rem, 5vw, 4rem); }
.psec .sec-head { margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); }
.psec h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }

/* titolo fisso a sinistra, contenuto a destra (su PC) */
.side { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.side > .sec-head { position: sticky; top: 110px; margin-bottom: 0; }
.side .vsteps, .side .faq { max-width: none; }
@media (max-width: 960px) { .side { grid-template-columns: 1fr; gap: 0; } .side > .sec-head { position: static; margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); } }

/* passi verticali: la linea si riempie scorrendo */
.vsteps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1rem; counter-reset: vs; max-width: 52rem; }
.vsteps::before, .vsteps::after { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 3px; border-radius: 3px; background: var(--line); }
.vsteps::after { background: var(--grad); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform .2s linear; }
.vsteps li { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 1.1rem; align-items: start; counter-increment: vs; }
.vsteps li::before { content: counter(vs); position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 3px solid var(--line); color: var(--grey); font-weight: 800; font-size: 1.05rem; transition: border-color .4s, background .4s, color .4s, transform .4s var(--ease); }
.vsteps li.is-on::before { border-color: var(--blue); background: var(--blue); color: #fff; transform: scale(1.06); box-shadow: 0 0 0 7px rgba(75,195,219,.2); }
.vs-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.3rem 1.2rem; box-shadow: var(--sh-s); transition: box-shadow .3s, border-color .3s, transform .3s var(--ease); }
.vsteps li.is-on .vs-card { border-color: rgba(0,74,173,.22); box-shadow: var(--sh-l); }
.vs-card h3 { font-size: 1.2rem; }
.vs-card p { margin-top: .4rem; color: var(--grey); }
.vs-card .tag { display: inline-block; margin-top: .7rem; font-size: .78rem; font-weight: 700; color: var(--blue); background: var(--tint); border-radius: 999px; padding: .25rem .7rem; }

/* schede con icona */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feats.f4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feats.f2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.3rem; box-shadow: var(--sh-s); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--sh-l); border-color: rgba(75,195,219,.6); }
.feat .f-i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--grad); color: #fff; margin-bottom: 1rem; box-shadow: 0 12px 22px -12px rgba(0,74,173,.7); }
.feat .f-i svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 1.18rem; line-height: 1.25; }
.feat p { margin-top: .45rem; color: var(--grey); font-size: .98rem; line-height: 1.55; }
.feat .f-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .8rem; font-weight: 700; font-size: .92rem; color: var(--blue); text-decoration: none; }
.feat .f-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.feat .f-link:hover svg { transform: translateX(3px); }
.feats-dark .feat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; }
.feats-dark .feat h3 { color: #fff; } .feats-dark .feat p { color: #B9C6DE; }
@media (max-width: 1020px) { .feats, .feats.f4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feats, .feats.f4, .feats.f2 { grid-template-columns: 1fr; } }

/* lista documenti */
.docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; }
.docs li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .75rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: .9rem 1rem; box-shadow: var(--sh-s); }
.docs li::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--grad) ; -webkit-mask: none; box-shadow: 0 6px 12px -6px rgba(0,74,173,.7); }
.docs li { position: relative; }
.docs li::after { content: ""; position: absolute; left: calc(1rem + 9px); top: calc(.9rem + 6px); width: 6px; height: 11px; border-right: 2.4px solid #fff; border-bottom: 2.4px solid #fff; transform: rotate(45deg); }
.docs b { display: block; font-size: 1rem; color: var(--ink); line-height: 1.35; }
.docs span { display: block; margin-top: .15rem; font-size: .92rem; color: var(--grey); line-height: 1.45; }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; } }

/* domande frequenti */
.faq { display: grid; gap: .6rem; max-width: 52rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-s); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: rgba(0,74,173,.25); box-shadow: var(--sh-l); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.2rem; font-weight: 700; font-size: 1.04rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004AAD' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: #DCE9F8; }
.faq .faq-a { padding: 0 1.2rem 1.15rem; color: #3A475C; }
.faq details[open] .faq-a { animation: fadeUp .4s var(--ease) both; }
.faq .faq-a p + p { margin-top: .6rem; }
.faq .faq-a a { color: var(--blue); font-weight: 600; }

/* due colonne testo + riquadro */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split-form { align-items: start; }
.split-form > div:first-child { position: sticky; top: 110px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-form > div:first-child { position: static; } }

/* tabella costi */
.tbl-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--sh-s); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 34rem; }
.tbl th, .tbl td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.tbl thead th { background: var(--tint); color: var(--navy); font-size: .86rem; font-weight: 800; }
.tbl tbody th { font-weight: 700; color: var(--ink); }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.note { margin-top: .9rem; font-size: .9rem; color: var(--grey); }
.note a { color: var(--blue); }

/* ---------- moduli che preparano il messaggio WhatsApp ---------- */
.fcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-l); padding: clamp(1.2rem, 3vw, 2rem); }
.fcard h2, .fcard h3.fc-t { font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: -.02em; }
.wiz-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.wiz-count { font-size: .86rem; font-weight: 700; color: var(--grey); white-space: nowrap; }
.wiz-bar { height: 6px; border-radius: 6px; background: var(--tint); overflow: hidden; margin-bottom: 1.3rem; }
.wiz-bar i { display: block; height: 100%; width: 100%; background: var(--grad); border-radius: 6px; transform-origin: left; transform: scaleX(var(--w, .25)); transition: transform .5s var(--ease); }
.wiz-step { display: none; }
.wiz-step.is-on { display: block; animation: stepIn .45s var(--ease) both; }
.wiz-step.is-back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.q { font-weight: 800; font-size: 1.12rem; color: var(--ink); margin: 0 0 .7rem; letter-spacing: -.01em; }
.q small { font-weight: 600; font-size: .85rem; color: var(--grey); margin-left: .3rem; }
.fgroup { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
.fgroup:last-child { margin-bottom: 0; }
.fgroup legend { padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; gap: .45rem; padding: .62rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .93rem; color: var(--ink); transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease), box-shadow .2s; box-shadow: 0 6px 14px -12px rgba(0,49,122,.6); }
.opt:hover span { border-color: var(--sky); transform: translateY(-1px); }
.opt input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.opt input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 20px -12px rgba(0,74,173,.9); }
.opt input:checked + span::before { content: ""; width: 7px; height: 12px; border-right: 2.4px solid #fff; border-bottom: 2.4px solid #fff; transform: rotate(45deg) translate(-1px, -2px); margin-right: .1rem; }
.opt-group-k { width: 100%; font-size: .78rem; font-weight: 800; color: var(--sky-deep); letter-spacing: .06em; text-transform: uppercase; margin: .3rem 0 0; }
.frow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.field { display: grid; gap: .35rem; }
.field label, .field .lab { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field input, .field select, .field textarea { font: 500 1rem var(--font); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: .8rem .95rem; width: 100%; transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(75,195,219,.25); }
.field-hide { display: none; margin-top: .7rem; }
.field-hide.is-on { display: grid; animation: fadeUp .35s var(--ease) both; }
.wiz-nav { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: 1.5rem; flex-wrap: wrap; }
.wiz-nav .btn { padding: .85rem 1.3rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-link { background: none; border: 0; font: 700 .95rem var(--font); color: var(--grey); cursor: pointer; padding: .6rem .2rem; display: inline-flex; align-items: center; gap: .3rem; }
.btn-link:hover { color: var(--blue); }
.btn-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transform: rotate(180deg); }
.dest { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; padding: .85rem 1rem; border-radius: 18px; background: var(--tint); border: 1px dashed rgba(0,74,173,.3); }
.dest .d-i { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #25D366; color: #fff; }
.dest .d-i svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dest p { font-size: .9rem; color: var(--grey); line-height: 1.35; }
.dest b { color: var(--ink); display: block; font-size: 1rem; }
.dest.bump { animation: bump .5s var(--ease); }
.preview { margin-top: 1rem; background: #E7F7EE; border-radius: 18px 18px 18px 4px; padding: .9rem 1rem; font-size: .9rem; color: #1F3A2B; white-space: pre-line; line-height: 1.5; max-height: 220px; overflow: auto; position: relative; }
.preview::before { content: "Anteprima del messaggio"; display: block; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #2E7D50; margin-bottom: .35rem; }
.privacy-note { margin-top: .9rem; font-size: .82rem; color: var(--grey); }
.btn-wa { background: #25D366; color: #08361C; box-shadow: 0 14px 26px -14px rgba(37,211,102,.9); }
.btn-wa:hover { background: #1FC15B; }
@media (max-width: 560px) { .frow { grid-template-columns: 1fr; } .opt span { padding: .55rem .85rem; font-size: .9rem; } .wiz-nav .btn { flex: 1 1 auto; } }

/* widget: la casa incontra le richieste giuste */
.match { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-l); padding: 1.2rem; }
.m-house { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 20px; background: var(--night); color: #fff; }
.m-house .m-hi { flex-shrink: 0; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--grad); }
.m-house .m-hi svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.m-house b { display: block; font-size: 1.05rem; } .m-house span { font-size: .86rem; color: #B9C6DE; }
.m-k { display: flex; align-items: center; justify-content: space-between; margin: 1rem .2rem .6rem; font-size: .82rem; font-weight: 800; color: var(--grey); letter-spacing: .03em; }
.m-k em { font-style: normal; color: var(--blue); font-variant-numeric: tabular-nums; }
.m-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.m-list li { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); font-size: .9rem; color: var(--grey); transition: border-color .4s, background .4s, color .4s, opacity .4s; opacity: .55; }
.m-list li .av { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: #DCE5F3; display: grid; place-items: center; }
.m-list li .av svg { width: 18px; height: 18px; fill: none; stroke: var(--grey); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-list li b { color: var(--ink); font-weight: 700; display: block; font-size: .92rem; }
.m-list li .ok { margin-left: auto; flex-shrink: 0; font-size: .74rem; font-weight: 800; color: #fff; background: #1FAF5A; border-radius: 999px; padding: .25rem .6rem; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .35s var(--ease); }
.m-list li.is-hit { opacity: 1; border-color: rgba(31,175,90,.5); background: #F1FBF5; }
.m-list li.is-hit .ok { opacity: 1; transform: none; }
.m-list li.is-no { opacity: .35; }

/* widget: la richiesta certificata */
.req { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-l); padding: 1.3rem 1.3rem 1.4rem; overflow: hidden; }
.req-h { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.req-h b { font-size: 1.05rem; }
.req-h span { font-size: .8rem; font-weight: 700; color: var(--grey); }
.req-rows { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.req-rows li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem .9rem; border-radius: 14px; background: var(--bg); font-size: .92rem; }
.req-rows li span { color: var(--grey); font-weight: 600; }
.req-rows li b { color: var(--ink); text-align: right; }
.req-rows li b::after { content: ""; display: inline-block; width: 6px; height: 11px; margin-left: .55rem; border-right: 2.4px solid #1FAF5A; border-bottom: 2.4px solid #1FAF5A; transform: rotate(45deg) translateY(-2px); opacity: 0; transition: opacity .3s; }
.req-rows li.is-ok b::after { opacity: 1; }
.stamp { position: absolute; right: 1.1rem; bottom: 1.1rem; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 12px; border: 2.5px solid #1FAF5A; color: #1FAF5A; font-weight: 800; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.92); transform: rotate(-8deg) scale(1.6); opacity: 0; transition: transform .45s cubic-bezier(.3,1.6,.5,1), opacity .25s; }
.req.is-done .stamp { opacity: 1; transform: rotate(-8deg) scale(1); }
.req-foot { margin-top: 1rem; padding-bottom: 2.6rem; font-size: .86rem; color: var(--grey); }

/* consulenza: schede servizio */
.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.35rem 1.3rem 1.2rem; box-shadow: var(--sh-s); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--sh-l); border-color: rgba(75,195,219,.6); }
.svc-card .f-i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--grad); color: #fff; margin-bottom: .9rem; box-shadow: 0 12px 22px -12px rgba(0,74,173,.7); }
.svc-card .f-i svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { font-size: 1.16rem; }
.svc-card p { margin-top: .4rem; color: var(--grey); font-size: .96rem; line-height: 1.55; flex: 1; }
.svc-card .svc-act { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.chip-a { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; font-weight: 700; font-size: .86rem; padding: .5rem .8rem; border-radius: 999px; transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.chip-a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip-wa { background: #E7F7EE; color: #11663A; } .chip-wa:hover { background: #D3F1E0; transform: translateY(-1px); }
.chip-more { background: var(--tint); color: var(--blue); } .chip-more:hover { background: #DCE9F8; transform: translateY(-1px); }
@media (max-width: 1020px) { .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .svc-cards { grid-template-columns: 1fr; } }

a.svc-card { text-decoration: none; color: inherit; }
.svc-more { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 800; font-size: .92rem; color: var(--blue); }
.svc-more svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
a.svc-card:hover .svc-more svg { transform: translateX(4px); }
.svc-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.svc-detail { scroll-margin-top: 110px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.3rem; box-shadow: var(--sh-s); transition: border-color .3s, box-shadow .3s; }
.svc-detail:target { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(75,195,219,.25), var(--sh-l); }
.svc-detail .f-i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--grad); color: #fff; margin-bottom: .9rem; }
.svc-detail .f-i svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svc-detail h3 { font-size: 1.2rem; }
.svc-detail p { margin-top: .45rem; color: var(--grey); font-size: .97rem; line-height: 1.55; }
.svc-detail ul { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .45rem; }
.svc-detail li { position: relative; padding-left: 1.5rem; font-size: .95rem; line-height: 1.5; color: #34425A; }
.svc-detail li::before { content: ""; position: absolute; left: 0; top: .5rem; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.svc-detail .svc-close { flex: 1; }
.svc-detail .btn { margin-top: 1.1rem; align-self: flex-start; padding: .8rem 1.1rem; font-size: .93rem; }
@media (max-width: 900px) { .svc-details { grid-template-columns: 1fr; } }

/* lavora con noi: scala della crescita */
.climb { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; align-items: end; }
.climb li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem 1.1rem; box-shadow: var(--sh-s); }
.climb li:nth-child(1) { margin-top: 4.5rem; } .climb li:nth-child(2) { margin-top: 3rem; } .climb li:nth-child(3) { margin-top: 1.5rem; }
.climb .c-n { font-size: .8rem; font-weight: 800; color: var(--sky-deep); letter-spacing: .06em; text-transform: uppercase; }
.climb h3 { margin-top: .3rem; font-size: 1.15rem; }
.climb p { margin-top: .35rem; font-size: .93rem; color: var(--grey); line-height: 1.5; }
.climb li:last-child { background: var(--night); border-color: var(--night); }
.climb li:last-child h3 { color: #fff; } .climb li:last-child p { color: #B9C6DE; } .climb li:last-child .c-n { color: var(--sky); }
.climb.in li { animation: climbIn .7s var(--ease) both; }
.climb.in li:nth-child(2) { animation-delay: .12s; } .climb.in li:nth-child(3) { animation-delay: .24s; } .climb.in li:nth-child(4) { animation-delay: .36s; }
@keyframes climbIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .climb { grid-template-columns: 1fr 1fr; } .climb li:nth-child(n) { margin-top: 0; } }
@media (max-width: 520px) { .climb { grid-template-columns: 1fr; } }
.names { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.names span { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem .45rem .5rem; font-weight: 700; font-size: .92rem; box-shadow: var(--sh-s); }
.names span::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); }

/* ---------- blog ---------- */
.cover { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 20px; color: #fff; isolation: isolate; }
.cover::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(40% 50% at 80% 20%, rgba(255,255,255,.28), transparent 70%), radial-gradient(50% 60% at 10% 100%, rgba(6,20,46,.45), transparent 70%); transition: transform 1.2s var(--ease); }
.cover::after { content: ""; position: absolute; width: 150%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed rgba(255,255,255,.22); box-shadow: 0 0 0 46px rgba(255,255,255,.05), 0 0 0 110px rgba(255,255,255,.035); z-index: -1; }
.cover svg { width: 26%; height: auto; max-width: 110px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 10px 18px rgba(0,20,60,.35)); transition: transform .8s var(--ease); }
.cover .cv-k { position: absolute; left: 1rem; top: 1rem; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 999px; padding: .3rem .7rem; }
.cover[data-cat="vendere"] { background: linear-gradient(135deg, #4BC3DB 0%, #298CC6 45%, #004AAD 100%); }
.cover[data-cat="comprare"] { background: linear-gradient(135deg, #298CC6 0%, #004AAD 55%, #00317A 100%); }
.cover[data-cat="aste"] { background: linear-gradient(135deg, #0E3A86 0%, #00317A 50%, #06142E 100%); }
.cover[data-cat="metodo"] { background: linear-gradient(135deg, #4BC3DB 0%, #1F9CC0 50%, #0E3A86 100%); }
.blog-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.bf { font: 700 .93rem var(--font); padding: .6rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.bf:hover { border-color: var(--sky); transform: translateY(-1px); }
.bf[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.bf .n { opacity: .6; margin-left: .3rem; font-variant-numeric: tabular-nums; }
.bf { white-space: nowrap; flex-shrink: 0; }
@media (min-width: 1000px) {
  .blog-filters { gap: .4rem; }
  .bf { font-size: .88rem; padding: .55rem .76rem; }
  .bf .n { margin-left: .22rem; }
}
@media (max-width: 760px) {
  .blog-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: .2rem .1rem .45rem; margin-bottom: 1.2rem; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .blog-filters::-webkit-scrollbar { display: none; }
  .blog-filters::after { content: ''; flex: 0 0 1.4rem; }
  .bf { font-size: .88rem; padding: .5rem .85rem; }
}
.post-feat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(.9rem, 2vw, 1.2rem); box-shadow: var(--sh-l); text-decoration: none; margin-bottom: 1.4rem; transition: transform .35s var(--ease), box-shadow .35s; }
.post-feat:hover { transform: translateY(-4px); }
.post-feat .cover { aspect-ratio: 16 / 10; border-radius: 22px; }
.post-feat .pf-t { padding: .6rem clamp(.4rem, 2vw, 1.2rem) .6rem 0; }
.badge-ev { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--tint); color: var(--blue); border-radius: 999px; padding: .3rem .7rem; }
.post-feat h2 { margin-top: .8rem; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.12; }
.post-feat p { margin-top: .7rem; color: var(--grey); }
.pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin-top: .9rem; font-size: .85rem; font-weight: 600; color: var(--grey); }
.pmeta span { display: inline-flex; align-items: center; gap: .35rem; }
.pmeta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.read-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; font-weight: 800; color: var(--blue); }
.read-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.post-feat:hover .read-more svg, .post-card:hover .read-more svg { transform: translateX(4px); }
.post-feat:hover .cover svg, .post-card:hover .cover svg { transform: scale(1.08) rotate(-3deg); }
.post-feat:hover .cover::before, .post-card:hover .cover::before { transform: translate(-4%, 3%); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: .7rem .7rem 1.2rem; box-shadow: var(--sh-s); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s, opacity .35s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-l); }
.post-card .pc-t { padding: .9rem .6rem 0; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.16rem; line-height: 1.25; }
.post-card p { margin-top: .5rem; color: var(--grey); font-size: .95rem; line-height: 1.5; flex: 1; }
.post-card.is-hidden, .post-feat.is-hidden { display: none; }
.post-card.is-show, .post-feat.is-show { animation: fadeUp .45s var(--ease) both; }
.posts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .posts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1020px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .post-feat { grid-template-columns: 1fr; } .post-feat .pf-t { padding: .2rem .5rem .6rem; } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }

/* articolo */
.art-hero { padding-block: clamp(1.6rem, 4vw, 3rem) clamp(1.6rem, 4vw, 2.6rem); background: linear-gradient(180deg, var(--bg), #fff); }
.art-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: center; }
.art-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; }
.art-hero .art-dek { margin-top: 1rem; font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: #3A475C; max-width: 56ch; }
.art-hero .cover { aspect-ratio: 4 / 3; border-radius: var(--r-xl); box-shadow: var(--sh-l); }
.anim .art-hero h1, .anim .art-hero .art-dek, .anim .art-hero .pmeta, .anim .art-hero .crumbs { animation: fadeUp .8s var(--ease) both; }
.anim .art-hero .art-dek { animation-delay: .12s; } .anim .art-hero .pmeta { animation-delay: .2s; }
.anim .art-hero .cover { animation: zoomIn 1s .15s var(--ease) both; }
.byline { display: flex; align-items: center; gap: .7rem; margin-top: 1.2rem; }
.byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: var(--grad); }
.byline b { display: block; font-size: .95rem; color: var(--ink); line-height: 1.2; }
.byline span { font-size: .85rem; color: var(--grey); }
@media (max-width: 860px) { .art-hero-grid { grid-template-columns: 1fr; } .art-hero .cover { aspect-ratio: 16 / 8; order: -1; } }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(1.6rem, 4vw, 2.6rem) clamp(2rem, 5vw, 3.5rem); }
.art-aside { position: sticky; top: 96px; display: grid; gap: 1rem; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.1rem 1.1rem 1rem; box-shadow: var(--sh-s); }
.toc p { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-deep); margin-bottom: .5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; counter-reset: t; }
.toc a { position: relative; display: block; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--grey); padding: .4rem .5rem .4rem 1.9rem; border-radius: 10px; line-height: 1.35; transition: color .2s, background .2s; counter-increment: t; }
.toc a::before { content: counter(t); position: absolute; left: .45rem; top: .42rem; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; background: var(--tint); color: var(--blue); transition: background .2s, color .2s; }
.toc a:hover { color: var(--blue); }
.toc a.is-on { color: var(--blue); background: var(--tint); }
.toc a.is-on::before { background: var(--blue); color: #fff; }
.aside-cta { background: var(--night); color: #fff; border-radius: 22px; padding: 1.2rem; position: relative; overflow: hidden; }
.aside-cta::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(75,195,219,.4), transparent 65%); }
.aside-cta b { position: relative; display: block; font-size: 1.05rem; line-height: 1.3; }
.aside-cta p { position: relative; margin-top: .4rem; font-size: .9rem; color: #B9C6DE; }
.aside-cta .btn { position: relative; margin-top: .9rem; width: 100%; padding: .8rem 1rem; font-size: .92rem; }
@media (max-width: 980px) { .art-layout { grid-template-columns: 1fr; } .art-aside { position: static; order: -1; } .aside-cta { display: none; } .toc { padding: .9rem; } }
.art-body { min-width: 0; max-width: 46rem; font-size: 1.08rem; line-height: 1.75; color: #26334A; }
.art-body > * + * { margin-top: 1.1rem; }
.art-body h2 { margin-top: 2.6rem; font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.2; letter-spacing: -.025em; scroll-margin-top: 96px; }
.art-body h3 { margin-top: 1.8rem; font-size: 1.22rem; line-height: 1.3; }
.art-body h2 + p, .art-body h3 + p { margin-top: .7rem; }
.art-body a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.art-body ul, .art-body ol { padding-left: 1.3rem; }
.art-body li + li { margin-top: .45rem; }
.art-body li::marker { color: var(--sky-deep); font-weight: 800; }
.art-body strong { color: var(--ink); }
.inbreve { background: linear-gradient(135deg, var(--tint), #fff); border: 1px solid rgba(0,74,173,.16); border-radius: 22px; padding: 1.2rem 1.3rem 1.25rem; }
.inbreve p.k { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 0 0 .5rem; }
.inbreve ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.inbreve li { position: relative; padding-left: 1.8rem; margin: 0; }
.inbreve li + li { margin-top: 0; }
.inbreve li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); }
.inbreve li::after { content: ""; position: absolute; left: 7px; top: .5rem; width: 5px; height: 9px; border-right: 2.2px solid #fff; border-bottom: 2.2px solid #fff; transform: rotate(45deg); }
.callout { border-left: 4px solid var(--sky); background: var(--bg); border-radius: 0 18px 18px 0; padding: 1rem 1.2rem; color: #34425A; }
.callout b { color: var(--ink); }
.numlist { list-style: none; padding: 0 !important; counter-reset: nl; display: grid; gap: .8rem; }
.numlist > li { position: relative; counter-increment: nl; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: .95rem 1.1rem .95rem 3.6rem; box-shadow: var(--sh-s); margin: 0 !important; }
.numlist > li::before { content: counter(nl); position: absolute; left: 1rem; top: 1rem; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: .95rem; }
.numlist > li b { display: block; color: var(--ink); font-size: 1.04rem; line-height: 1.35; }
.numlist > li span { display: block; margin-top: .2rem; font-size: .98rem; color: #3A475C; line-height: 1.6; }
.art-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin-top: 2.6rem !important; padding: 1.3rem 1.4rem; border-radius: 22px; background: var(--night); color: #fff; }
.art-cta b { display: block; font-size: 1.12rem; color: #fff; line-height: 1.3; }
.art-cta p { margin: .3rem 0 0; color: #B9C6DE; font-size: .95rem; }
.art-cta .btn { padding: .85rem 1.2rem; font-size: .95rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.2rem !important; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.share > span { font-size: .9rem; font-weight: 700; color: var(--grey); margin-right: .3rem; }
.share a, .share button { display: inline-flex; align-items: center; gap: .4rem; font: 700 .88rem var(--font); text-decoration: none; padding: .55rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s, transform .2s var(--ease), color .2s; }
.share a:hover, .share button:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.author { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 1rem; align-items: center; margin-top: 1.6rem !important; padding: 1.2rem; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }
.author img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: var(--grad); }
.author b { display: block; color: var(--ink); font-size: 1.05rem; }
.author p { margin: .25rem 0 0; font-size: .93rem; color: var(--grey); line-height: 1.5; }
.sources { margin-top: 1.8rem !important; font-size: .9rem; color: var(--grey); }
.sources p.k { font-weight: 800; color: var(--ink); font-size: .95rem; }
.sources ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.sources li { margin-top: .3rem !important; line-height: 1.5; }
.disclaimer { font-size: .86rem; color: var(--grey); font-style: italic; }
.related { padding-block: clamp(2rem, 5vw, 3.5rem); background: linear-gradient(180deg, #fff, var(--bg)); }
.related h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.4rem; }
.related .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1020px) { .related .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .related .posts { grid-template-columns: 1fr; } }

/* telefono: pagine interne più compatte */
@media (max-width: 640px) {
  .phero { padding-block: 1.4rem 2.4rem; }
  .phero h1 { font-size: clamp(2.1rem, 9.5vw, 2.7rem); }
  .phero-lead { margin-top: .9rem; font-size: 1.02rem; }
  .mini-stats { gap: .45rem; margin-top: 1.3rem; } .mini-stats li { padding: .55rem .8rem; border-radius: 14px; } .mini-stats b { font-size: 1.2rem; } .mini-stats span { font-size: .74rem; }
  .psec { padding-block: 2.8rem; }
  .psec-tint + .psec { padding-top: 2.8rem; }
  .vsteps::before, .vsteps::after { left: 19px; }
  .vsteps li { grid-template-columns: 42px minmax(0, 1fr); gap: .8rem; }
  .vsteps li::before { width: 42px; height: 42px; font-size: .95rem; }
  .vs-card { padding: .9rem 1rem 1rem; border-radius: 18px; } .vs-card h3 { font-size: 1.06rem; } .vs-card p { font-size: .95rem; }
  .feat { padding: 1.1rem 1rem; border-radius: 18px; display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: .85rem; align-items: start; }
  .feat .f-i { width: 46px; height: 46px; border-radius: 14px; margin: 0; grid-row: 1 / span 3; }
  .feat h3 { font-size: 1.05rem; } .feat p { margin-top: .25rem; font-size: .93rem; } .feat .f-link { margin-top: .5rem; }
  .fcard { border-radius: 24px; padding: 1.1rem 1rem 1.2rem; }
  .art-body { font-size: 1.02rem; line-height: 1.7; }
  .art-body h2 { margin-top: 2rem; }
  .numlist > li { padding: .85rem .95rem .85rem 3.2rem; } .numlist > li::before { left: .8rem; top: .9rem; width: 28px; height: 28px; font-size: .85rem; }
  .art-cta { padding: 1.1rem; } .art-cta .btn { width: 100%; }
  .author { grid-template-columns: 58px minmax(0, 1fr); padding: 1rem; } .author img { width: 58px; height: 58px; }
  .cta-b { width: 100%; } .cta-b .btn { flex: 1 1 auto; padding: .85rem 1rem; font-size: .93rem; }
  .post-card h3 { font-size: 1.1rem; }
  .post-card .cover, .post-feat .cover { aspect-ratio: 16 / 7.5; }
  .tbl-wrap { overflow: visible; border: 0; box-shadow: none; background: none; }
  .tbl { min-width: 0; font-size: .94rem; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; }
  .tbl tbody { display: grid; gap: .6rem; }
  .tbl tr { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-s); padding: .8rem .95rem; }
  .tbl th, .tbl td { padding: 0; border: 0; }
  .tbl tbody th { color: var(--blue); font-size: .9rem; margin-bottom: .2rem; }
}

/* ---------- terreni ---------- */
.svc-details.d2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .svc-details.d2 { grid-template-columns: 1fr; } }
.sec-sub a { color: var(--blue); font-weight: 700; }
.tsplit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.tcard { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.4rem, 3vw, 2.1rem); box-shadow: var(--sh-s); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.tcard::before { content: ""; position: absolute; z-index: -1; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(75,195,219,.24), transparent 68%); transition: transform .7s var(--ease); }
.tcard:hover { transform: translateY(-5px); box-shadow: var(--sh-l); border-color: rgba(75,195,219,.55); }
.tcard:hover::before { transform: scale(1.35) translate(-12px, 12px); }
.tcard .f-i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(0,74,173,.7); }
.tcard .f-i svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tcard .t-k { margin-top: 1.1rem; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-deep); }
.tcard h3 { margin-top: .25rem; font-size: clamp(1.35rem, 2.3vw, 1.65rem); letter-spacing: -.02em; }
.tcard p { margin-top: .55rem; color: var(--grey); line-height: 1.6; }
.tcard ul { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.tcard li { position: relative; padding-left: 1.95rem; line-height: 1.5; color: #34425A; font-size: .97rem; }
.tcard li::before { content: ""; position: absolute; left: 0; top: .08rem; width: 21px; height: 21px; border-radius: 50%; background: var(--grad); }
.tcard li::after { content: ""; position: absolute; left: 7.5px; top: .3rem; width: 5px; height: 9px; border-right: 2.2px solid #fff; border-bottom: 2.2px solid #fff; transform: rotate(45deg); }
.tcard .t-link { margin-top: auto; padding-top: 1.4rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .95rem; color: var(--blue); }
.tcard .t-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.tcard:hover .t-link svg { transform: translateX(4px); }
.tcard.is-dark { background: radial-gradient(90% 120% at 100% 0%, #0E3A86 0%, var(--night) 62%), var(--night); border-color: var(--night); }
.tcard.is-dark h3 { color: #fff; } .tcard.is-dark p { color: #B9C6DE; } .tcard.is-dark li { color: #DCE5F3; }
.tcard.is-dark .t-k, .tcard.is-dark .t-link { color: var(--sky); }
@media (max-width: 860px) { .tsplit { grid-template-columns: 1fr; } }

.nut { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; color: #fff; border-radius: var(--r-xl); padding: clamp(1.6rem, 4.5vw, 3.2rem); background: radial-gradient(80% 120% at 0% 100%, #0E3A86 0%, var(--night) 60%), var(--night); box-shadow: var(--sh-l); }
.nut-glow { position: absolute; z-index: -1; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(75,195,219,.35), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.nut h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.03em; line-height: 1.12; }
.nut-t p:not(.kicker) { margin-top: .8rem; color: #B9C6DE; line-height: 1.65; }
.nut-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.nut-stats li { display: grid; grid-template-columns: minmax(7.2rem, auto) minmax(0, 1fr); align-items: center; gap: 1.1rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); border-radius: 22px; padding: 1rem 1.3rem; transition: transform .35s var(--ease), background .35s, border-color .35s; }
.nut-stats li:hover { transform: translateX(6px); background: rgba(255,255,255,.1); border-color: rgba(75,195,219,.45); }
.nut-stats b { display: block; font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; background: linear-gradient(100deg, #9BE7F5, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nut-stats span { display: block; font-size: .95rem; color: #C9D4E8; line-height: 1.4; }
.nut-src { margin-top: .9rem; font-size: .78rem; color: #8392AE; }
@media (max-width: 900px) { .nut { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .nut-stats li { grid-template-columns: 1fr; gap: .35rem; padding: .95rem 1.1rem; } }
.cover[data-cat="terreni"] { background: linear-gradient(135deg, #7DD9C8 0%, #2BA3B8 45%, #0E5F96 100%); }

/* ---------- barra dei servizi ---------- */
.svc-bar { position: relative; display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; margin: calc(-1 * clamp(.6rem, 2vw, 1.6rem)) 0 clamp(1.4rem, 3vw, 2.2rem); padding: .35rem .1rem .55rem; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.svc-bar::-webkit-scrollbar { display: none; }
.svc-bar a { flex-shrink: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem .45rem .45rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-s); font-weight: 700; font-size: .88rem; color: var(--ink); text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), border-color .25s, background .25s, color .25s; }
.svc-bar a:hover { transform: translateY(-2px); border-color: rgba(75,195,219,.6); }
.svc-bar .sb-i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--blue); transition: background .25s, color .25s; }
.svc-bar .sb-i svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-bar a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 22px -12px rgba(0,74,173,.9); }
.svc-bar a[aria-current="page"] .sb-i { background: rgba(255,255,255,.18); color: #fff; }
.anim .svc-bar a { animation: fadeUp .6s var(--ease) both; }
.anim .svc-bar a:nth-child(2) { animation-delay: .03s; } .anim .svc-bar a:nth-child(3) { animation-delay: .06s; } .anim .svc-bar a:nth-child(4) { animation-delay: .09s; } .anim .svc-bar a:nth-child(5) { animation-delay: .12s; }
.anim .svc-bar a:nth-child(6) { animation-delay: .15s; } .anim .svc-bar a:nth-child(7) { animation-delay: .18s; } .anim .svc-bar a:nth-child(8) { animation-delay: .21s; } .anim .svc-bar a:nth-child(9) { animation-delay: .24s; } .anim .svc-bar a:nth-child(10) { animation-delay: .27s; }

/* ---------- dal blog nelle pagine ---------- */
.psec-blog .posts-n1 { grid-template-columns: minmax(0, 420px); }
.psec-blog .posts-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
@media (max-width: 640px) { .psec-blog .posts-n1, .psec-blog .posts-n2 { grid-template-columns: 1fr; } }
.blog-more { margin-top: 1.2rem; font-weight: 700; }

/* ---------- widget contratti di affitto ---------- */
.lease { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-l); padding: 1.3rem; overflow: hidden; }
.lease-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: 1rem; }
.lease-tab { appearance: none; border: 1.5px solid var(--line); background: var(--bg); border-radius: 16px; padding: .65rem .5rem; cursor: pointer; font: inherit; color: var(--ink); text-align: center; transition: background .3s, border-color .3s, color .3s, transform .25s var(--ease); }
.lease-tab b { display: block; font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.lease-tab small { display: block; margin-top: .1rem; font-size: .74rem; font-weight: 700; color: var(--grey); }
.lease-tab:hover { transform: translateY(-2px); }
.lease-tab.is-on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 12px 24px -14px rgba(0,74,173,.9); }
.lease-tab.is-on small { color: #CFE3FF; }
.lease-rows { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.lease-rows li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem .9rem; border-radius: 14px; background: var(--bg); font-size: .92rem; }
.lease-rows li span { color: var(--grey); font-weight: 600; flex-shrink: 0; }
.lease-rows li b { color: var(--ink); text-align: right; }
.lease-pane.is-in li { animation: fadeUp .45s var(--ease) both; }
.lease-pane.is-in li:nth-child(2) { animation-delay: .06s; } .lease-pane.is-in li:nth-child(3) { animation-delay: .12s; } .lease-pane.is-in li:nth-child(4) { animation-delay: .18s; }
.lease-foot { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .86rem; color: var(--grey); }
.lease-foot svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: #1FAF5A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- calcolo del mutuo ---------- */
.calc { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-l); padding: 1.3rem; }
.calc-f { display: block; margin-top: 1.1rem; }
.calc-f > span { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; font-weight: 700; color: var(--grey); }
.calc-f > span b { font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc input[type=range] { --p: 20%; -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin-top: .65rem; border-radius: 999px; background: linear-gradient(90deg, var(--sky), var(--blue)) 0 / var(--p) 100% no-repeat, var(--tint); outline: none; cursor: pointer; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 6px 14px -6px rgba(0,74,173,.8); transition: transform .2s; }
.calc input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.calc input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc input[type=range]:focus-visible { box-shadow: 0 0 0 4px rgba(75,195,219,.35); }
.calc-yrs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: .6rem; }
.calc-yrs label { position: relative; cursor: pointer; }
.calc-yrs input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.calc-yrs i { display: block; font-style: normal; text-align: center; padding: .55rem .4rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 800; font-size: .92rem; color: var(--ink); transition: background .25s, border-color .25s, color .25s; }
.calc-yrs input:checked + i { background: var(--blue); border-color: var(--blue); color: #fff; }
.calc-yrs input:focus-visible + i { box-shadow: 0 0 0 4px rgba(75,195,219,.35); }
.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: 1.2rem; }
.calc-out div { border-radius: 16px; background: var(--bg); padding: .75rem .8rem; }
.calc-out span { display: block; font-size: .76rem; font-weight: 700; color: var(--grey); }
.calc-out b { display: block; margin-top: .15rem; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-out .is-main { background: var(--night); }
.calc-out .is-main span { color: #B9C6DE; }
.calc-out .is-main b { color: var(--sky); }
.calc-out b.bump { animation: bump .35s var(--ease); }
.calc-note { margin-top: .9rem; font-size: .8rem; color: var(--grey); line-height: 1.5; }
@media (max-width: 520px) { .calc-out { grid-template-columns: 1fr; } .calc-out div { display: flex; justify-content: space-between; align-items: baseline; } .calc-out b { margin-top: 0; } }

/* ---------- copertine delle nuove categorie ---------- */
.cover[data-cat="locazioni"] { background: linear-gradient(135deg, #8FD3F4 0%, #3D8FE0 50%, #1B4FB8 100%); }
.cover[data-cat="mutui"] { background: linear-gradient(135deg, #5CC8E8 0%, #1C78C8 50%, #0B2F7A 100%); }
.cover[data-cat="successioni"] { background: linear-gradient(135deg, #7AA8E8 0%, #3A5FC0 50%, #142E78 100%); }
.phero > .wrap { position: relative; }
@media (min-width: 1000px) {
  .svc-bar { flex-wrap: wrap; gap: .4rem; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .svc-bar a { gap: .4rem; padding: .38rem .72rem .38rem .38rem; font-size: .85rem; }
  .svc-bar .sb-i { width: 26px; height: 26px; }
  .svc-bar .sb-all { padding: .38rem; }
  .svc-bar .sb-all .sb-t { display: none; }
}
.cover[data-cat="valutazioni"] { background: linear-gradient(135deg, #6FD0E6 0%, #2E9AD0 50%, #0B4FA8 100%); }
.cover[data-cat="saldo"] { background: linear-gradient(135deg, #3E7FD0 0%, #0E3A86 55%, #06142E 100%); }
