/* Sati Lab — componenti aggiuntivi: titolo/contenuto pagina, recensioni Home, pulsante "torna su".
   Caratteri: Anton per i titoli, Inter per tutto il resto. Colori da --slc-* (Personalizza). */

/* ---------- comparsa animata (come nelle altre sezioni) ---------- */
#sl-pt-root.sl-js [data-fx], #sl-pc-root.sl-js [data-fx], #sl-rv-root.sl-js [data-fx] { opacity: 0; }
#sl-pt-root.sl-js [data-fx].fx-in, #sl-pc-root.sl-js [data-fx].fx-in, #sl-rv-root.sl-js [data-fx].fx-in { opacity: 1; animation: slFxIn_ct .9s cubic-bezier(.2,.85,.2,1) var(--d, 0s) both; }
@media (prefers-reduced-motion: reduce) {
  #sl-pt-root.sl-js [data-fx], #sl-pc-root.sl-js [data-fx], #sl-rv-root.sl-js [data-fx] { opacity: 1; }
  #sl-pt-root.sl-js [data-fx].fx-in, #sl-pc-root.sl-js [data-fx].fx-in, #sl-rv-root.sl-js [data-fx].fx-in { animation: none; }
}
#sl-pt-root, #sl-pt-root *, #sl-pc-root, #sl-pc-root *, #sl-rv-root, #sl-rv-root * { box-sizing: border-box; }
#sl-pt-root, #sl-pc-root, #sl-rv-root { font-family: var(--sl-f-body); }
#sl-pt-root a, #sl-pc-root a:not(.sl-keep), #sl-rv-root a { text-decoration: none; }

/* ---------- titolo della pagina ---------- */
.sl-pt-section { position: relative; width: 100%; overflow: hidden; padding: 150px 56px 64px; background: var(--slc-bg); color: #f5f6fa; }
.sl-pt-wrap { position: relative; max-width: 1100px; margin: 0 auto; }
.sl-pt-title { font-family: var(--sl-f-title); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(46px, 7.4vw, 104px); line-height: 0.98; margin: 0; color: #fff; text-wrap: balance; }
.sl-pt-lead { font-size: 19px; line-height: 1.65; color: var(--slc-dim); max-width: 640px; margin: 22px 0 0; }

/* ---------- contenuto scritto nell'editor ---------- */
.sl-pc-section { width: 100%; padding: 140px 56px 90px; background: var(--slc-bg); color: #f5f6fa; }
#sl-pt-root + #sl-pc-root .sl-pc-section { padding-top: 24px; }
.sl-pc-wrap { max-width: 820px; margin: 0 auto; font-size: 17px; line-height: 1.75; color: var(--slc-dim); }
.sl-pc-wrap > :first-child { margin-top: 0; }
.sl-pc-wrap a { color: var(--slc-lime); text-decoration: underline; text-underline-offset: 3px; }
.sl-pc-wrap h2, .sl-pc-wrap h3, .sl-pc-wrap h4 { font-family: var(--sl-f-title); font-weight: 400; text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.05; color: #fff; margin: 1.6em 0 .5em; }
.sl-pc-wrap h2 { font-size: clamp(32px, 4.4vw, 46px); }
.sl-pc-wrap h3 { font-size: clamp(26px, 3.4vw, 34px); }
.sl-pc-wrap h4 { font-size: 24px; }
.sl-pc-wrap p, .sl-pc-wrap ul, .sl-pc-wrap ol { margin: 0 0 1.2em; }
.sl-pc-wrap ul, .sl-pc-wrap ol { padding-left: 1.3em; }
.sl-pc-wrap strong { color: #fff; font-weight: 600; }
.sl-pc-wrap img, .sl-pc-wrap video, .sl-pc-wrap iframe { max-width: 100%; border-radius: 18px; }
.sl-pc-wrap img { height: auto; }
.sl-pc-wrap blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--slc-lime); color: #fff; font-size: 1.15em; }
.sl-pc-wrap figure { margin: 1.6em 0; }
.sl-pc-wrap figcaption { font-size: 14px; color: #A9C1F7; margin-top: 8px; }
.sl-pc-wrap table { width: 100%; border-collapse: collapse; margin: 1.4em 0; display: block; overflow-x: auto; }
.sl-pc-wrap th, .sl-pc-wrap td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.16); text-align: left; }
.sl-pc-wrap .wp-block-button__link { display: inline-block; padding: 16px 28px; border-radius: 999px; background: var(--slc-lime); color: var(--slc-ink); text-decoration: none; font-weight: var(--sl-w-ui); }

/* ---------- recensioni dei clienti (Home) ---------- */
.sl-rv-section { position: relative; overflow: hidden; padding: 96px 56px 100px; background: var(--slc-bg); color: #f5f6fa; }
.sl-rv-glow { position: absolute; inset: auto -10% -35% auto; width: 60%; height: 80%; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, rgba(1,153,252,0.35), transparent 68%); filter: blur(30px); }
.sl-rv-wrap { position: relative; max-width: 1180px; margin: 0 auto; }
.sl-rv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.sl-rv-headtext { max-width: 640px; }
.sl-rv-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: var(--sl-w-ui) 12px/1 var(--sl-f-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--slc-ice); margin-bottom: 18px; }
.sl-rv-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--slc-lime); border-radius: 2px; }
.sl-rv-title { font-family: var(--sl-f-title); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; font-size: 60px; line-height: 0.96; margin: 0 0 18px; color: #fff; }
/* stessa misura del titolo "Domande frequenti" (60 / 48 / 78 px) */
.sl-rv-title .sl-accent { color: var(--slc-lime); }
.sl-rv-lead { font-size: 16px; line-height: 1.6; color: var(--slc-dim); margin: 0; }
.sl-rv-summary { display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 18px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.18); background: rgba(0,17,143,0.45); }
.sl-rv-summary b { font-family: var(--sl-f-title); font-weight: 400; font-size: 56px; line-height: 1; color: var(--slc-lime); font-variant-numeric: tabular-nums; }
.sl-rv-summary > span { display: flex; flex-direction: column; gap: 6px; }
.sl-rv-summary small { font-size: 13px; color: var(--slc-dim); }

.sl-rv-stars { display: inline-flex; gap: 3px; }
.sl-rv-stars > span { display: inline-flex; }
.sl-rv-stars svg { fill: currentColor; stroke: none; }
.sl-rv-stars .on { color: var(--slc-lime); }
.sl-rv-stars .off { color: rgba(255,255,255,0.22); }

.sl-rv-card { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 24px; border: 1px solid rgba(255,255,255,0.16); background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03)); transition: transform .3s ease, border-color .3s ease; }
.sl-rv-card:hover { transform: translateY(-4px); border-color: rgba(var(--slc-lime-rgb),0.5); }
.sl-rv-text { margin: 0; font-size: 16.5px; line-height: 1.7; color: #eef2ff; }
.sl-rv-person { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.sl-rv-person b { display: block; font-weight: var(--sl-w-ui); color: #fff; font-size: 15px; }
.sl-rv-person small { display: block; font-size: 13px; color: #A9C1F7; margin-top: 2px; }
.sl-rv-avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font: var(--sl-w-ui) 15px/1 var(--sl-f-body); background: var(--slc-lime); color: var(--slc-ink); }

/* stile 1: carosello */
.sl-rv-ctrl { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 18px; }
.sl-rv-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); color: #fff; display: grid; place-items: center; cursor: pointer; transition: all .2s ease; }
.sl-rv-btn:hover:not(:disabled) { background: var(--slc-lime); color: var(--slc-ink); border-color: transparent; transform: translateY(-2px); }
.sl-rv-btn:disabled { opacity: .35; cursor: default; }
.sl-rv-prev svg { transform: scaleX(-1); }
[data-layout="carosello"] .sl-rv-list { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
[data-layout="carosello"] .sl-rv-list::-webkit-scrollbar { display: none; }
[data-layout="carosello"] .sl-rv-card { flex: 0 0 min(390px, 86%); scroll-snap-align: start; }

/* stile 2: griglia a mosaico */
[data-layout="griglia"] .sl-rv-list { column-count: 3; column-gap: 20px; }
[data-layout="griglia"] .sl-rv-card { display: flex; break-inside: avoid; margin: 0 0 20px; }

/* stile 3: citazione in evidenza */
.sl-rv-quotes { display: grid; max-width: 920px; }
.sl-rv-q { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease, visibility 0s .45s; }
.sl-rv-q.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sl-rv-mark { display: block; font-family: var(--sl-f-title); font-size: 120px; line-height: .7; height: 54px; color: var(--slc-lime); }
.sl-rv-q blockquote { margin: 0 0 26px; font-size: clamp(22px, 3.1vw, 36px); line-height: 1.38; color: #fff; text-wrap: pretty; }
.sl-rv-q figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.sl-rv-q figcaption b { color: #fff; font-weight: var(--sl-w-ui); font-size: 17px; }
.sl-rv-q figcaption em { font-style: normal; color: #A9C1F7; font-size: 15px; }
.sl-rv-pick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.sl-rv-av { display: inline-flex; align-items: center; gap: 0; padding: 4px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); color: #fff; cursor: pointer; transition: all .25s ease; font-family: var(--sl-f-body); }
.sl-rv-av span { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: var(--sl-w-ui) 15px/1 var(--sl-f-body); background: rgba(255,255,255,0.12); }
.sl-rv-av i { font-style: normal; font-size: 14px; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s ease, padding .3s ease; }
.sl-rv-av:hover { border-color: rgba(255,255,255,0.6); }
.sl-rv-av.is-on { background: var(--slc-lime); border-color: transparent; color: var(--slc-ink); }
.sl-rv-av.is-on span { background: var(--slc-ink); color: var(--slc-lime); }
.sl-rv-av.is-on i { max-width: 200px; padding: 0 16px 0 12px; }

.sl-rv-foot { margin-top: 36px; }
.sl-rv-cta { display: inline-flex; align-items: center; gap: 10px; padding: 17px 30px; border-radius: 999px; background: var(--slc-lime); color: var(--slc-ink); font: var(--sl-w-ui) 15px/1 var(--sl-f-body); transition: transform .25s ease, box-shadow .25s ease; }
.sl-rv-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(var(--slc-lime-rgb),0.6); }

@media (max-width: 980px) {
  .sl-rv-title { font-size: 48px; }
  .sl-pt-section { padding: 120px 28px 48px; }
  .sl-pc-section { padding: 120px 28px 70px; }
  .sl-rv-section { padding: 72px 28px 76px; }
  [data-layout="griglia"] .sl-rv-list { column-count: 2; }
}
@media (max-width: 640px) {
  .sl-rv-title { font-size: min(78px, calc((100vw - 40px) / 5.6)); margin-bottom: 14px; } /* 78 px come le FAQ, ridotto solo se la parola più lunga non ci starebbe */
  .sl-pt-section { padding: 108px 20px 40px; }
  .sl-pc-section { padding: 108px 20px 60px; }
  .sl-pc-wrap { font-size: 16px; }
  .sl-rv-section { padding: 56px 20px 64px; }
  .sl-rv-head { gap: 22px; margin-bottom: 28px; }
  .sl-rv-summary b { font-size: 44px; }
  [data-layout="griglia"] .sl-rv-list { column-count: 1; }
  .sl-rv-card { padding: 22px; border-radius: 20px; }
  .sl-rv-mark { font-size: 90px; height: 40px; }
  .sl-rv-av.is-on i { max-width: 140px; }
}

/* ---------- pulsante "torna su" (discreto: compare solo dopo aver scorso) ---------- */
.sl-top { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 50; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(0,17,143,0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease, visibility 0s .3s, background .2s ease, color .2s ease, border-color .2s ease; }
.sl-top.is-visible { opacity: .92; visibility: visible; transform: none; transition-delay: 0s; }
.sl-top:hover, .sl-top:focus-visible { opacity: 1; background: var(--slc-lime); color: var(--slc-ink); border-color: transparent; }
.sl-top:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 640px) { .sl-top { width: 40px; height: 40px; right: 14px; bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { .sl-top { transition: opacity .01s, visibility 0s; transform: none; } }
@media print { .sl-top { display: none; } }

/* etichette che possono andare a capo su schermi stretti: interlinea più larga */
@media (max-width: 640px) { #sl-hero-root .sl-eyebrow { line-height: 1.4; } }
#sl-pd-root small { line-height: 1.3; }

/* titolo della pagina Progetti: stessa misura del titolo dell'Hero (84 / 64 / 56 px) */
.sl-work-title { font-size: 84px; line-height: 0.93; margin: 0 0 22px; }
@media (max-width: 980px) { .sl-work-title { font-size: 64px; margin-bottom: 16px; } }
@media (max-width: 640px) { .sl-work-title { font-size: 56px; margin-bottom: 14px; } }
