/* Stile condiviso delle pagine servizio: stessi token e componenti della home, in versione leggera. */
@font-face{font-family:"Bricolage Grotesque";src:url(/fonts/bricolage.woff2) format("woff2");font-weight:200 800;font-stretch:100%;font-display:swap}
@font-face{font-family:"Figtree";src:url(/fonts/figtree.woff2) format("woff2");font-weight:300 900;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url(/fonts/jbmono-500.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Montserrat";src:url(/fonts/montserrat-300.woff2) format("woff2");font-weight:300;font-display:swap}
@font-face{font-family:"Montserrat";src:url(/fonts/montserrat-500.woff2) format("woff2");font-weight:500;font-display:swap}
:root {
  --bg: #F1F7F7; --surface: #FFFFFF; --ink: #08284E; --muted: #4A6078; --dim: #6F859B;
  --teal: #138A80; --teal-deep: #0E6F69; --aqua: #6EB5BB; --mint: #D5EBE9; --coral: #F58A63; --night: #061C38;
  --line: rgba(8, 40, 78, .14);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --logo: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.eyebrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); font-weight: 500; }
.display { font-family: var(--display); letter-spacing: -.03em; text-wrap: balance; font-weight: 700; line-height: 1.04; }

.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 11px; }
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup img { width: 40px; height: auto; }
.lockup .name { display: flex; flex-direction: column; line-height: 1; }
.lockup .name b { font-family: var(--logo); font-weight: 500; font-size: 1.12rem; letter-spacing: .2em; }
.lockup .name span { font-family: var(--logo); font-weight: 300; font-size: .56rem; letter-spacing: .38em; color: var(--teal-deep); margin-top: 6px; }
.top nav { display: flex; gap: 6px; }
.top nav a { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--muted); padding: 8px 14px; border-radius: 999px; }
.top nav a:hover { background: var(--mint); color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 14px 26px; font: 600 .96rem/1 var(--body); text-decoration: none; border: 2px solid transparent; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.solid { background: var(--teal-deep); color: #fff; } .btn.solid:hover { background: var(--ink); }
.btn.warm { background: var(--coral); color: var(--ink); } .btn.warm:hover { background: #fff; }
.btn.ghost { border-color: rgba(255,255,255,.5); color: #fff; } .btn.ghost:hover { background: #fff; color: var(--night); }
.btn.sm { padding: 10px 20px; }

/* menu mobile */
.menu-btn { display: none; align-items: center; gap: 8px; background: transparent; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--ink); font-family: inherit; }
.menu-btn i { display: grid; gap: 4px; } .menu-btn i::before, .menu-btn i::after { content: ""; display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .top nav.open { display: grid; position: absolute; left: 0; right: 0; top: 100%; gap: 2px; padding: 10px clamp(16px, 4vw, 32px) 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(8, 40, 78, .08); max-height: calc(100vh - 70px); overflow-y: auto; }
  .top nav.open a { font-size: 1.05rem; padding: 12px 14px; }
}
.top nav .only-m { display: none; }
@media (max-width: 420px) { .actions .btn.sm { display: none; } .top nav.open .only-m { display: block; } }
/* tendina servizi */
.dd { position: relative; display: flex; align-items: center; }
.dd-btn { background: transparent; border: 0; padding: 8px 8px; margin-left: -12px; border-radius: 999px; color: var(--muted); cursor: pointer; font-size: .7rem; line-height: 1; }
.dd-btn:hover { color: var(--ink); }
.dd-btn span { display: inline-block; transition: transform .2s; }
.dd.open .dd-btn span { transform: rotate(180deg); }
.dd-list { display: none; position: absolute; top: 100%; left: 0; padding-top: 10px; z-index: 30; }
.dd-list > div { min-width: 280px; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 8px; box-shadow: 0 18px 40px rgba(8, 40, 78, .12); }
.top nav .dd-list a { display: block; border-radius: 12px; padding: 10px 14px; color: var(--ink); font-weight: 600; }
.top nav .dd-list a small { display: block; margin-top: 2px; color: var(--muted); font-size: .8rem; font-weight: 400; }
.top nav .dd-list a.all { color: var(--teal-deep); border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; margin-top: 4px; }
.top nav .dd-list a[aria-current] { background: var(--mint); }
@media (hover: hover) and (min-width: 961px) { .dd:hover .dd-list { display: block; } }
.dd.open .dd-list { display: block; }
@media (max-width: 960px) {
  .top nav.open .dd { display: block; }
  .top nav.open .dd-btn { display: none; }
  .top nav.open .dd-list { display: block; position: static; padding: 0 0 6px 14px; }
  .top nav.open .dd-list > div { background: transparent; border: 0; border-left: 2px solid var(--mint); border-radius: 0; box-shadow: none; padding: 0; min-width: 0; }
  .top nav.open .dd-list a { font-size: .98rem; padding: 9px 14px; font-weight: 500; }
  .top nav.open .dd-list a small, .top nav.open .dd-list a.all { display: none; }
}

.crumbs { margin-top: 20px; font-size: .86rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--dim); }
.crumbs a { color: var(--muted); }

.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; border-radius: 36px; margin-top: 14px; padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px); isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; left: -120px; top: -140px; background: var(--teal); filter: blur(80px); opacity: .5; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 240px; height: 240px; border-radius: 50%; right: -60px; bottom: -80px; background: var(--coral); filter: blur(80px); opacity: .3; }
.hero .eyebrow { color: var(--mint); }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); margin-top: 18px; font-weight: 800; max-width: 16em; }
.hero .lead { margin-top: 20px; max-width: 38em; color: #D9E8EA; font-size: 1.08rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

section { padding-block: clamp(48px, 7vw, 88px); }
.sec-head { max-width: 760px; }
.sec-head h2 { margin-top: 14px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.sec-head p { margin-top: 14px; color: var(--muted); }
.bleed { background: var(--mint); }

.cards { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.card h3 { font-family: var(--display); font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.2; }
.card p { margin-top: 8px; color: var(--muted); font-size: .96rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.split .txt h2 { margin: 14px 0 16px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.split .txt p { color: var(--muted); }
.split .txt p + p { margin-top: 14px; }
.checks { margin-top: 18px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 8px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 24px; background: var(--surface); }
figcaption { margin-top: 10px; font-size: .86rem; color: var(--muted); }

.steps { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: var(--surface); border-radius: 24px; padding: 22px; counter-increment: s; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); font-size: .8rem; color: var(--teal-deep); }
.steps h3 { font-family: var(--display); font-size: 1.15rem; margin-top: 8px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: .94rem; }

.faq { margin-top: 28px; display: grid; gap: 12px; max-width: 860px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 4px 24px; }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 600 1.5rem/1 var(--display); color: var(--teal-deep); transition: transform .25s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa h3 { font-family: var(--display); font-size: 1.12rem; font-weight: 700; }
.qa p { padding-bottom: 20px; color: var(--muted); max-width: 44em; }

.band { background: var(--teal-deep); color: #fff; border-radius: 36px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 14em; }
.band p { margin-top: 10px; color: #E3F2F0; max-width: 32em; }
.band .cta { display: flex; flex-wrap: wrap; gap: 12px; }

.others { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.others a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; text-decoration: none; font-weight: 600; }
.others a:hover { background: var(--mint); }

footer { padding-block: 36px 52px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .88rem; }
footer b { font-family: var(--display); color: var(--ink); }
footer .links { display: flex; gap: 16px; flex-wrap: wrap; }
footer .links a { color: var(--muted); }
footer .legal { display: block; width: 100%; font-size: .8rem; line-height: 1.5; }
footer .legal a { color: var(--ink); }

/* blog */
.post-head { max-width: 820px; }
.post-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-top: 16px; }
.post-head .lead { margin-top: 18px; font-size: 1.12rem; color: var(--muted); }
.meta { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.post-hero { margin-top: 32px; max-width: 980px; }
.prose { max-width: 720px; margin-top: 40px; }
.prose h2 { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; line-height: 1.15; margin: 40px 0 12px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.prose a { color: var(--teal-deep); font-weight: 600; }
.prose .tip { background: var(--mint); border-radius: 18px; padding: 16px 20px; margin: 20px 0; }
.table-wrap { overflow-x: auto; margin: 8px 0 20px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); border-radius: 16px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--night); color: #fff; font-weight: 600; }
.posts { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; text-decoration: none; display: grid; }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.post-card div { padding: 20px; }
.post-card h2, .post-card h3 { font-family: var(--display); font-size: 1.2rem; line-height: 1.2; letter-spacing: -.01em; }
.post-card p { margin-top: 8px; color: var(--muted); font-size: .94rem; }
.post-card:hover { border-color: var(--teal); }
@media (max-width: 960px) { .posts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 640px) { .posts { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 960px) {
  .top nav { display: none; }
  .cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero, .band { border-radius: 26px; }
  .cards, .steps { grid-template-columns: minmax(0, 1fr); }
  .lockup img { width: 34px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* hero dei servizi con la scena 3D a destra */
.hero.svc > :not(canvas) { position: relative; }
@media (min-width: 761px) { .hero.svc > :not(canvas) { max-width: 62%; } }
@media (max-width: 760px) { .hero.svc .gl-canvas { opacity: .75; } }

.hero.svc { min-height: min(78svh, 720px); display: flex; flex-direction: column; justify-content: center; }

/* articoli pubblicati da Holo: lo script inietta i suoi stili, qui li si riporta a quelli del sito */
.holo-sec { margin: 0 0 72px; }
.holo-sec > h2 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; margin: 0 0 20px; }
#holo-blog .holo-blog { font-family: var(--body); color: var(--ink); max-width: none; }
#holo-blog .holo-blog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#holo-blog .holo-blog-card { display: grid; align-content: start; gap: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: none; }
#holo-blog .holo-blog-card:hover { border-color: var(--teal); box-shadow: none; }
#holo-blog .holo-blog-card-thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; background: var(--mint); }
#holo-blog .holo-blog-card-content { padding: 20px; }
#holo-blog .holo-blog-card-title { font-family: var(--display); font-size: 1.2rem; line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
#holo-blog .holo-blog-card-excerpt { color: var(--muted); font-size: .94rem; line-height: 1.5; }
#holo-blog .holo-blog-card-date, #holo-blog .holo-blog-article-date { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--dim); }
#holo-blog .holo-blog-back { border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .92rem; }
#holo-blog .holo-blog-back:hover { background: var(--surface); border-color: var(--teal); }
#holo-blog .holo-blog-article { max-width: 720px; }
#holo-blog .holo-blog-article-hero { border-radius: 24px; background: var(--mint); }
#holo-blog .holo-blog-article-title { font-family: var(--display); font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.08; letter-spacing: -.03em; }
#holo-blog .holo-blog-article-content { font-size: 17px; line-height: 1.6; color: var(--ink); }
#holo-blog .holo-blog-article-content h2 { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; line-height: 1.15; margin: 40px 0 12px; }
#holo-blog .holo-blog-article-content h3 { font-family: var(--display); font-size: 1.2rem; margin: 28px 0 10px; }
#holo-blog .holo-blog-article-content a { color: var(--teal-deep); font-weight: 600; text-decoration: underline; }
#holo-blog .holo-blog-article-content img { max-width: 100%; height: auto; border-radius: 16px; }
#holo-blog .holo-blog-empty { border: 1.5px dashed var(--line); border-radius: 24px; color: var(--muted); }
@media (max-width: 960px) { #holo-blog .holo-blog-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 640px) { #holo-blog .holo-blog-list { grid-template-columns: minmax(0, 1fr); } #holo-blog .holo-blog-card { flex-direction: unset; } #holo-blog .holo-blog-card-thumb { height: auto; } }
