/* Boosted v4 · bozza E — «Il problema. La nostra risposta.» (parti/sfide.html + parti/sfide.js)
   Cinque blocchi: etichetta, problema grande, risposta cromata, il visual, il link. Ogni selettore parte da .sfide.
   Gli stati «prima di entrare» valgono solo con .sf-anima (lo mette sfide.js quando il movimento è permesso);
   .sf-pin (blocco dei siti fermo mentre scorri) solo con movimento permesso. Senza JavaScript, con movimento ridotto
   o con html.fermo si vede subito lo stato finale, fermo. Animazioni: solo transform e opacity. */

.sfide {
  --sf-col: clamp(56px, 6vw, 112px);
  --sf-metallo: linear-gradient(135deg, #fdfdfe 0%, #9a9aa4 9%, #3e3e46 18%, #efe4fa 27%, #f1f1f5 30%, #ffffff 36%, #dfc9f0 39%, #77777f 48%, #2c2c33 57%, #d7d7de 67%, #fbfbfd 75%, #8b8b95 86%, #4a4a52 100%);
  --sf-icona-tel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.6 3.5h2.6l1.6 4.3-2 1.3a11.5 11.5 0 0 0 6.1 6.1l1.3-2 4.3 1.6v2.6a2 2 0 0 1-2.2 2A16.5 16.5 0 0 1 4.6 5.7a2 2 0 0 1 2-2.2z'/%3E%3C/svg%3E");
  position: relative;
  padding: 112px max(var(--g), calc((100% - 1240px) / 2)) 104px;
  overflow-x: clip;
}
.sfide .sf-vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* the «Esempio» tag, the same everywhere */
.sfide .sf-esempio {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; line-height: 1.3; font-weight: 700; letter-spacing: 0.01em; font-style: normal; color: var(--lilla-chiaro);
  background: rgba(201, 169, 233, 0.12); border: 1px solid rgba(201, 169, 233, 0.34);
}

/* ── Titolo: due righe che salgono ───────────────────────── */
.sfide .sfide__titolo { font-size: clamp(40px, 10.6vw, 96px); line-height: 1; font-weight: 760; letter-spacing: -0.032em; max-width: none; }
.sfide .sfide__riga { display: block; overflow: clip; overflow-clip-margin: 0.14em; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.sfide .sfide__riga > span { display: inline-block; }
.sfide .sfide__titolo:not(.sf-in-vista) .cromo, .sfide .sfide__blocco:not(.sf-in-vista) .cromo { animation-play-state: paused; }
.sfide.sf-anima .sfide__riga > span { transform: translateY(108%); transition: transform 1000ms var(--curva); }
.sfide.sf-anima .sfide__riga + .sfide__riga > span { transition-delay: 90ms; }
.sfide.sf-anima .sfide__titolo.visto .sfide__riga > span { transform: none; }

/* ── I blocchi: etichetta, problema, risposta, (colpo), link ── */
.sfide .sfide__lista { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 104px; }
.sfide .sfide__blocco { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.sfide .sfide__testo { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; }

.sfide .sfide__etichetta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 14px; line-height: 1.3; font-weight: 650; letter-spacing: 0.01em; color: var(--lilla-chiaro);
}
.sfide .sfide__etichetta svg { flex: none; width: 12px; height: 12px; fill: var(--lilla); filter: drop-shadow(0 0 5px rgba(201, 169, 233, 0.8)); }
.sfide .sfide__etichetta::after {
  content: ''; flex: 1 1 auto; height: 1px; margin-left: 6px;
  background: linear-gradient(90deg, rgba(201, 169, 233, 0.45), rgba(201, 169, 233, 0) 85%);
  transform-origin: 0 50%;
}
.sfide .sfide__problema {
  font-size: clamp(28px, 7.9vw, 46px); line-height: 1.1; font-weight: 720; letter-spacing: -0.03em;
  text-wrap: balance; color: var(--testo);
}
.sfide .sfide__lato { min-width: 0; }
.sfide .sfide__risposta {
  position: relative; margin-top: 20px; padding-left: 18px;
  font-size: clamp(18.5px, 4.9vw, 23px); line-height: 1.4; font-weight: 650; letter-spacing: -0.012em;
  text-wrap: pretty; max-width: 30em;
}
.sfide .sfide__risposta::before {
  /* the chrome rule that ties the answer to the problem */
  content: ''; position: absolute; left: 0; top: 0.25em; bottom: 0.25em; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #F4EAFF, #C9A9E9 45%, #8B6FB8);
  transform-origin: 50% 0;
}
.sfide .sfide__colpo {
  margin-top: 16px; padding-left: 18px;
  font-size: 15.5px; line-height: 1.45; font-weight: 720; letter-spacing: -0.01em; color: var(--testo);
}

/* the link: a small key of Boosted (tasti.css + tasti.js, data-metallo) */
.sfide .sfide__link { justify-self: start; margin-top: 30px; min-height: 48px; padding: 0 6px 0 20px; gap: 12px; font-size: 15px; }
.sfide .sfide__link:not(:has(.metallo-scritta)) {
  border: 1.5px solid transparent;
  background: linear-gradient(180deg, #212227 0%, #0d0e10 60%, #08090A 100%) padding-box, var(--sf-metallo) border-box;
}
.sfide .sfide__link .metallo-scritta { gap: 12px; }
.sfide .sfide__freccia {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  background: rgba(201, 169, 233, 0.16); box-shadow: inset 0 0 0 1px rgba(201, 169, 233, 0.35);
}
.sfide .sfide__freccia svg { width: 16px; height: 16px; fill: none; stroke: var(--testo); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 300ms var(--curva); }
.sfide .sfide__link:active .sfide__freccia svg { transform: translateX(3px); }
@media (hover: hover) and (pointer: fine) { .sfide .sfide__link:hover .sfide__freccia svg { transform: translateX(3px); } }
.sfide .sfide__link:focus-visible { outline: 2px solid var(--lilla); outline-offset: 4px; }

.sfide .sfide__palco { margin-top: 40px; min-width: 0; }

/* reveal of the words (the key comes in with `translate`, so the press of tasti.css keeps its `transform`) */
.sfide.sf-anima .sfide__testo :is(.sfide__etichetta, .sfide__problema, .sfide__risposta, .sfide__colpo) {
  opacity: 0; transform: translateY(22px);
  transition: opacity 700ms ease-out, transform 1000ms var(--curva);
}
.sfide.sf-anima .sfide__testo .sfide__problema { transition-delay: 70ms; }
.sfide.sf-anima .sfide__testo .sfide__risposta { transition-delay: 170ms; }
.sfide.sf-anima .sfide__testo .sfide__colpo { transition-delay: 260ms; }
.sfide.sf-anima .sfide__testo.visto :is(.sfide__etichetta, .sfide__problema, .sfide__risposta, .sfide__colpo) { opacity: 1; transform: none; }
.sfide.sf-anima .sfide__link { transition: opacity 700ms ease-out 120ms, translate 1000ms var(--curva) 120ms, transform 150ms ease, box-shadow 150ms ease; }
.sfide.sf-anima .sfide__link:not(.visto) { opacity: 0; translate: 0 22px; }
.sfide.sf-anima .sfide__etichetta::after { transform: scaleX(0); transition: transform 1200ms var(--curva) 200ms; }
.sfide.sf-anima .sfide__testo.visto .sfide__etichetta::after { transform: none; }
.sfide.sf-anima .sfide__risposta::before { transform: scaleY(0); transition: transform 900ms var(--curva) 380ms; }
.sfide.sf-anima .sfide__testo.visto .sfide__risposta::before { transform: none; }

/* ── 1 · Google e sito: tre telefoni coi siti veri ───────── */
/* The block stands still for a stretch (.sf-pin); while the page goes down, inside each phone the whole site scrolls
   from the top to the footer. sfide.js moves only the transform of .sf-siti__pagina, once per frame, rounded to the
   device pixel, and there is NO transition on it: a transition chasing the scroll is what made it shake. */
.sfide .sf-siti__fermo { display: flex; flex-direction: column; }
.sfide .sf-siti__palco {
  /* a size container: the phones are as big as the stage allows, in height and in width */
  position: relative; container-type: size;
  height: min(124vw, 500px); margin-top: 36px;
}
.sfide.sf-pin .sf-siti { height: 260vh; height: 260svh; }
.sfide.sf-pin .sf-siti__fermo {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  padding: calc(var(--testa) + 12px) 0 14px;
}
.sfide.sf-pin .sf-siti__palco { flex: 1 1 auto; height: auto; min-height: 200px; margin-top: 22px; }

.sfide .sf-siti__tels, .sfide .sf-siti__nomi {
  --sf-nomi: 44px;
  --h: min(calc(100cqh - var(--sf-nomi)), calc(100cqw * 0.52 * 2.164), 560px);
  --w: calc(var(--h) / 2.164); /* the clips are 390x844: the frame has their same shape */
  --top: max(0px, calc((100cqh - var(--sf-nomi) - var(--h)) * 0.62));
  /* where the side phones end up: fanned behind the centre one on the phone, in a row on the computer */
  --fx: calc(var(--w) * 0.6); --fy: calc(var(--h) * 0.07); --fr: 7deg; --fs: 0.82;
}
.sfide .sf-siti__tels { position: absolute; inset: 0; transition: opacity 800ms ease-out, transform 1100ms var(--curva); }
.sfide.sf-anima .sf-siti__tels:not(.visto) { opacity: 0; transform: translateY(48px); }
.sfide .sf-siti__tels::before {
  /* the light under the phones */
  content: ''; position: absolute; left: 4%; right: 4%; top: calc(var(--top) + var(--h) * 0.55); height: calc(var(--h) * 0.5); pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 111, 184, 0.25), rgba(139, 111, 184, 0));
}
.sfide .sf-siti__tel {
  /* the phones stand still: their place is fixed, only the site inside moves */
  position: absolute; left: 50%; top: var(--top); width: var(--w); height: var(--h); margin-left: calc(var(--w) / -2);
  border-radius: calc(var(--w) * 0.12); background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 5px #0c0d0f, 0 0 0 6px rgba(255, 255, 255, 0.08), 0 40px 70px -24px rgba(0, 0, 0, 0.9);
}
.sfide .sf-siti__tel--centro { z-index: 3; }
.sfide .sf-siti__tel--sx { z-index: 1; transform: translate(calc(var(--fx) * -1), var(--fy)) rotate(calc(var(--fr) * -1)) scale(var(--fs)); }
.sfide .sf-siti__tel--dx { z-index: 2; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(var(--fs)); }
.sfide .sf-siti__schermo {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #fff;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* WebKit: keep the page inside the rounded corners */
}
/* the whole page of the site, as wide as the screen: sfide.js slides it up from the top to the footer */
.sfide .sf-siti__pagina {
  position: absolute; left: 0; top: 0; display: block; width: 100%; height: auto; max-width: none;
  transform: translate3d(0, 0, 0); will-change: transform; backface-visibility: hidden;
}
/* the scroll indicator of the phone, like the real one */
.sfide .sf-siti__barra {
  position: absolute; z-index: 1; right: 3px; top: 7px; width: 3px; height: 13%; border-radius: 3px; pointer-events: none;
  background: rgba(30, 30, 34, 0.5); box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.55);
  transform: translate3d(0, 0, 0); will-change: transform;
}
.sfide .sf-siti__schermo::after {
  /* glass, and a little shade on the side phones */
  content: ''; position: absolute; z-index: 2; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 26%);
}
.sfide :is(.sf-siti__tel--sx, .sf-siti__tel--dx) .sf-siti__schermo::after {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 26%), rgba(8, 9, 10, 0.22);
}
/* (the clips of the old markup, if a page still has them: shown still, from the top) */
.sfide .sf-siti__video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; background: var(--nero-2); }

.sfide .sf-siti__nomi {
  position: absolute; left: 0; right: 0; top: calc(var(--top) + var(--h) + 14px);
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: 6px;
  font-size: 12px; line-height: 1.3; font-weight: 650; color: var(--sec); text-align: center; text-wrap: balance;
}

/* small phones: the side phones stay inside the screen, with a little air */
@media (max-width: 399.98px) {
  .sfide .sf-siti__tels, .sfide .sf-siti__nomi {
    --h: min(calc(100cqh - var(--sf-nomi)), calc(100cqw * 0.5 * 2.164), 560px);
    --fx: calc(var(--w) * 0.56); --fy: calc(var(--h) * 0.06); --fr: 6deg; --fs: 0.8;
  }
}

/* ── 2 · Social: contro il solito trendino ───────────────── */
.sfide .sf-reel { position: relative; isolation: isolate; width: 100%; max-width: 480px; margin-inline: auto; }
.sfide .sf-reel::before {
  content: ''; position: absolute; left: 4%; right: 4%; top: 26%; height: 58%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 111, 184, 0.2), rgba(139, 111, 184, 0));
}
.sfide .sf-reel__coppia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
.sfide .sf-reel__tessera {
  position: relative; display: grid; gap: 12px; min-width: 0; border-radius: 14px;
  color: var(--testo); text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: opacity 700ms ease-out, transform 1100ms var(--curva);
}
.sfide .sf-reel__tessera + .sf-reel__tessera { transition-delay: 120ms; }
.sfide .sf-reel__foto {
  position: relative; display: block; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--riga-2); background: var(--nero-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 26px 60px -28px rgba(201, 169, 233, 0.4), 0 18px 40px -22px rgba(0, 0, 0, 0.85);
  transition: transform 150ms ease-out;
}
.sfide .sf-reel__foto img { display: block; width: 100%; height: auto; }
.sfide .sf-reel__foto::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 26%);
}
.sfide .sf-reel__tessera:active .sf-reel__foto { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .sfide .sf-reel__tessera:hover .sf-reel__foto { transform: translateY(-3px); }
  .sfide .sf-reel__tessera:hover .sf-reel__esce { transform: translate(2px, -2px); }
}
.sfide .sf-reel__tessera:focus-visible { outline: none; }
.sfide .sf-reel__tessera:focus-visible .sf-reel__foto { outline: 2px solid var(--lilla); outline-offset: 3px; }
.sfide .sf-reel__didascalia { display: grid; gap: 1px; padding-left: 2px; font-size: 13px; line-height: 1.38; font-weight: 550; color: var(--sec); }
.sfide .sf-reel__chi { display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.005em; color: var(--testo); }
.sfide .sf-reel__nota { color: var(--lilla-chiaro); font-weight: 600; }
.sfide .sf-reel__esce {
  display: inline-block; vertical-align: -2px; width: 14px; height: 14px; margin-left: 4px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  color: var(--sec); transition: transform 300ms var(--curva);
}
.sfide.sf-anima .sf-reel:not(.visto) .sf-reel__tessera { opacity: 0; transform: translateY(36px) scale(0.97); }

/* right after the two reels: «Senza spendere un euro in sponsorizzate.», big as a title, chrome, the whole width */
.sfide .sfide__zero {
  margin-top: 52px; max-width: none;
  font-size: clamp(35px, 9.6vw, 52px); line-height: 1.04; font-weight: 760; letter-spacing: -0.034em; text-wrap: balance;
  transition: opacity 800ms ease-out, transform 1100ms var(--curva);
}
.sfide.sf-anima .sfide__zero:not(.visto) { opacity: 0; transform: translateY(28px); }

/* (old markup of the campaigns, the wire that lights up while you scroll: kept only until index.html gets the new block) */
.sfide .sf-percorso { width: 100%; }
.sfide .sf-percorso__tappe { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.sfide .sf-percorso__tappa { --f: 1; position: relative; padding-left: 38px; min-width: 0; }
.sfide .sf-percorso__tappa:not(:last-child)::before, .sfide .sf-percorso__tappa:not(:last-child)::after {
  /* the stretch of wire from this campaign to the next one (fill = --f, set by sfide.js while scrolling) */
  content: ''; position: absolute; left: 8px; top: 11px; width: 2px; height: calc(100% + 26px); border-radius: 2px; pointer-events: none;
}
.sfide .sf-percorso__tappa:not(:last-child)::before { background: var(--riga-2); }
.sfide .sf-percorso__tappa:not(:last-child)::after {
  /* follows the scroll directly (sfide.js, once per frame): no transition chasing it */
  background: linear-gradient(180deg, #F4EAFF, #C9A9E9 45%, #8B6FB8);
  box-shadow: 0 0 10px rgba(201, 169, 233, 0.55);
  transform-origin: 50% 0; transform: scaleY(var(--f));
}
.sfide .sf-percorso__punto {
  position: absolute; z-index: 1; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--nero); box-shadow: inset 0 0 0 1.5px rgba(201, 169, 233, 0.4);
}
.sfide .sf-percorso__punto::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #DFC9F0 35%, #8B6FB8 100%);
  box-shadow: 0 0 0 4px rgba(201, 169, 233, 0.16), 0 0 18px 2px rgba(201, 169, 233, 0.7);
  transition: opacity 400ms ease-out, transform 600ms var(--curva);
}
.sfide .sf-percorso__nome { font-size: 22px; line-height: 1.1; font-weight: 750; letter-spacing: -0.025em; color: var(--testo); }
/* each campaign: to whom, what, and what you get — three labelled lines */
.sfide .sf-percorso__dati { display: grid; margin: 10px 0 0; max-width: 30em; }
.sfide .sf-percorso__dati > div { display: grid; align-content: start; gap: 3px; padding: 11px 0 12px; border-top: 1px solid var(--riga); }
.sfide .sf-percorso__dati > div:first-child { border-top: 0; padding-top: 4px; }
.sfide .sf-percorso__dati dt { font-size: 12.5px; line-height: 1.3; font-weight: 700; letter-spacing: 0.01em; color: var(--lilla); }
.sfide .sf-percorso__dati dd { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 500; color: var(--sec); text-wrap: pretty; }
.sfide .sf-percorso__dati b { font-weight: 700; color: var(--testo); }
.sfide .sf-percorso__nome, .sfide .sf-percorso__dati { transition: opacity 500ms ease-out, transform 700ms var(--curva); }
.sfide.sf-anima .sf-percorso__tappa:not(.sf-on) .sf-percorso__punto::after { opacity: 0; transform: scale(0.3); }
.sfide.sf-anima .sf-percorso__tappa:not(.sf-on) :is(.sf-percorso__nome, .sf-percorso__dati) { opacity: 0.4; transform: translateX(-4px); }

/* under the three: small, the line on the database and the consent */
.sfide .sf-percorso__legge {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--riga);
  font-size: 13.5px; line-height: 1.5; font-weight: 550; color: var(--sec);
}
.sfide .sf-percorso__legge svg { flex: none; width: 10px; height: 10px; margin-top: 5px; fill: var(--lilla); filter: drop-shadow(0 0 4px rgba(201, 169, 233, 0.8)); }

/* ── 3 · Sponsorizzate: tre schede, ognuna col suo telefono d'esempio ── */
/* The words first (to whom, what they see, the result: simple words, the technical name small), then a phone that tells
   the scene by itself. The three stories start when they come on screen, one after the other, then on tap (sfide.js).
   Inside the screens: the colours of a real dark phone (feed, iOS sheets, WhatsApp), system font (San Francisco on
   iPhone, else Inter). Every movement is transform or opacity; sfide.js only adds classes (k-…) at the right moments.
   Without movement (reduced motion, html.fermo) each screen shows its last frame. */
.sfide .sf-camp { position: relative; width: 100%; transition: opacity 700ms ease-out, transform 1100ms var(--curva); }
.sfide.sf-anima .sf-camp:not(.visto) { opacity: 0; transform: translateY(36px); }

/* the three tabs: the segmented control of the assistant, in two lines on the phone */
.sfide .sf-camp__schede {
  --i: 0;
  position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.sfide .sf-camp__pillola {
  position: absolute; z-index: -1; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 3); border-radius: 15px;
  background: rgba(201, 169, 233, 0.2); box-shadow: inset 0 0 0 1px rgba(201, 169, 233, 0.5), 0 6px 18px -8px rgba(201, 169, 233, 0.7);
  transform: translateX(calc(var(--i) * 100%)); transition: transform 460ms var(--curva);
}
.sfide .sf-camp__scheda {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 0; min-height: 54px; padding: 6px 4px; border: 0; border-radius: 15px; background: transparent; cursor: pointer;
  font: 650 13.5px/1.18 'Montserrat', 'Inter', system-ui, sans-serif; letter-spacing: -0.01em; color: var(--sec); text-align: center;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: color 200ms ease-out;
}
.sfide .sf-camp__parole > span { display: block; }
.sfide .sf-camp__n { display: none; }
.sfide .sf-camp__scheda[aria-selected="true"] { color: var(--testo); }
.sfide .sf-camp__scheda:focus-visible { outline: 2px solid var(--lilla); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .sfide .sf-camp__scheda:hover { color: var(--testo); } }
/* while a story plays by itself: a thin line fills under its tab */
.sfide .sf-camp__avanza {
  position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, #F4EAFF, #C9A9E9); opacity: 0; transform: scaleX(0); transform-origin: 0 50%;
}
.sfide .sf-camp__scheda.sf-avanza .sf-camp__avanza { opacity: 0.85; transform: scaleX(1); transition: transform var(--dur, 8s) linear, opacity 300ms ease-out; }

/* the panels, one on top of the other; the words share one row so the phones never jump when you switch */
.sfide .sf-camp__pannelli { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
.sfide .sf-camp__pannello {
  grid-column: 1; grid-row: 1 / 3; display: grid; grid-template-rows: subgrid; min-width: 0;
  transition: opacity 260ms ease-out;
}
.sfide .sf-camp__pannello:not(.sf-on) { visibility: hidden; opacity: 0; }
.sfide .sf-camp__spiega { grid-row: 1; min-width: 0; padding: 16px 2px 0; }
.sfide .sf-camp__demo { grid-row: 2; }
.sfide .sf-camp__gergo { font-size: 12.5px; line-height: 1.3; font-weight: 600; color: var(--sec); }
.sfide .sf-camp__gergo b { font-weight: 700; color: var(--lilla-chiaro); }
.sfide .sf-camp__dati { display: grid; margin: 10px 0 0; }
.sfide .sf-camp__dati > div { display: grid; grid-template-columns: 86px minmax(0, 1fr); column-gap: 12px; padding: 8px 0 9px; border-top: 1px solid var(--riga); }
.sfide .sf-camp__dati dt { padding-top: 2px; font-size: 12.5px; line-height: 1.4; font-weight: 700; letter-spacing: 0.01em; color: var(--lilla); white-space: nowrap; }
.sfide .sf-camp__dati dd { margin: 0; font-size: 15px; line-height: 1.42; font-weight: 550; color: var(--testo); text-wrap: pretty; }
.sfide .sf-camp__esito dd { font-weight: 720; }

/* under the three: the line on the contacts and the consent */
.sfide .sf-camp__legge {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--riga);
  font-size: 13.5px; line-height: 1.5; font-weight: 550; color: var(--sec);
}
.sfide .sf-camp__legge svg { flex: none; width: 10px; height: 10px; margin-top: 5px; fill: var(--lilla); filter: drop-shadow(0 0 4px rgba(201, 169, 233, 0.8)); }

/* the phone */
.sfide .sf-camp__demo { position: relative; display: grid; justify-items: center; align-content: start; padding: 14px 0 12px; }
.sfide .sf-camp__demo::before {
  content: ''; position: absolute; left: 4%; right: 4%; top: 18%; height: 70%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 111, 184, 0.19), rgba(139, 111, 184, 0));
}
.sfide .sf-camp__tel {
  position: relative; padding: 8px; border-radius: 46px;
  background: linear-gradient(165deg, #3a3c43 0%, #17191c 18%, #0c0d0f 58%, #1c1e23 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.7), 0 46px 80px -30px rgba(0, 0, 0, 0.95);
}
.sfide .sf-camp__demo > .sf-esempio {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  background: #1b1622; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.8);
}

/* the screen: a fixed size, so every scene is drawn in place */
.sfide .sf-k {
  --sw: 252px; --sh: 506px;
  --k-blu: #0A84FF; --k-verde: #30D158; --k-sec: #A8A8A8; --k-riga: #262626; --k-card: #1C1C1E; --k-campo: #2C2C2E;
  position: relative; isolation: isolate; overflow: hidden; width: var(--sw); height: var(--sh); border-radius: 38px;
  background: #000; color: #F5F5F5; text-align: left;
  font: 400 12.5px/1.3 -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif; letter-spacing: -0.01em;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.sfide .sf-k::before {
  /* the island */
  content: ''; position: absolute; z-index: 9; top: 10px; left: 50%; width: 82px; height: 24px; border-radius: 999px;
  background: #000; transform: translateX(-50%);
}
.sfide .sf-k::after {
  /* the home indicator */
  content: ''; position: absolute; z-index: 9; bottom: 7px; left: 50%; width: 104px; height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.72); transform: translateX(-50%);
}
.sfide .sf-k :where(p) { margin: 0; } /* (low weight: the margins of the rows below win) */
.sfide .sf-k svg { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* status bar */
.sfide .sf-k-stato {
  position: absolute; z-index: 8; top: 0; left: 0; right: 0; height: 44px; display: flex; align-items: center; justify-content: space-between;
  padding: 3px 20px 0 30px; pointer-events: none;
}
.sfide .sf-k-stato b { font-size: 13.5px; line-height: 1; font-weight: 600; letter-spacing: -0.01em; transition: opacity 300ms ease-out; }
.sfide .sf-k-icone { display: flex; align-items: center; gap: 5px; }
.sfide .sf-k-icone svg { height: 10px; width: auto; fill: #fff; stroke: none; }
.sfide .sf-k-icone svg:first-child { width: 15px; }
.sfide .sf-k-icone .sf-k-wifi { width: 14px; fill: none; stroke: #fff; stroke-width: 1.9; }
.sfide .sf-k-wifi circle { fill: #fff; stroke: none; }
.sfide .sf-k-icone .sf-k-pila { width: 23px; height: 11px; }
.sfide .sf-k-pila-bordo { fill: none; stroke: rgba(255, 255, 255, 0.45); }
.sfide .sf-k-pila-polo { fill: rgba(255, 255, 255, 0.45); }

/* the social app: top bar, the feed that scrolls, the tab bar */
.sfide .sf-k-app {
  position: absolute; z-index: 3; top: 44px; left: 0; right: 0; height: 40px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 13px; background: #000;
}
.sfide .sf-k-app__titolo { display: flex; align-items: center; gap: 2px; font-size: 19px; line-height: 1; font-weight: 700; letter-spacing: -0.025em; }
.sfide .sf-k-app__titolo svg { width: 15px; height: 15px; stroke-width: 2.2; }
.sfide .sf-k-app__icone { display: flex; gap: 15px; }
.sfide .sf-k-app__icone svg { width: 22px; height: 22px; }
.sfide .sf-k-vista { position: absolute; z-index: 1; top: 84px; left: 0; right: 0; bottom: 48px; overflow: hidden; }
.sfide .sf-k-feed { transform: translateY(0); transition: transform 1500ms cubic-bezier(0.2, 0.75, 0.22, 1); }
.sfide .sf-k-barra {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 48px; display: flex; justify-content: space-around; align-items: flex-start;
  padding: 8px 6px 0; background: #000; box-shadow: inset 0 0.5px 0 var(--k-riga);
}
.sfide .sf-k-barra svg { width: 22px; height: 22px; }
.sfide .sf-k-io, .sfide .sf-k-storia i, .sfide .sf-k-avatar--lettera {
  display: grid; place-items: center; border-radius: 50%; font-style: normal; font-weight: 600; color: rgba(255, 255, 255, 0.92);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 60%), var(--a, #3a3d44);
}
.sfide .sf-k-io { width: 23px; height: 23px; font-size: 10.5px; box-shadow: 0 0 0 1.5px #fff; }

/* stories: always 86px tall (the scroll of the feed counts on it) */
.sfide .sf-k-storie { display: flex; gap: 9px; height: 86px; padding: 5px 9px 0; overflow: hidden; box-shadow: inset 0 -0.5px 0 var(--k-riga); }
.sfide .sf-k-storia { position: relative; isolation: isolate; flex: none; display: grid; justify-items: center; gap: 5px; width: 56px; }
.sfide .sf-k-storia i { position: relative; width: 50px; height: 50px; margin: 3px 3px 0; font-size: 17px; box-shadow: 0 0 0 2px #000; }
.sfide .sf-k-storia i::before {
  /* the ring of a story not seen yet */
  content: ''; position: absolute; z-index: -1; inset: -4px; border-radius: 50%;
  background: linear-gradient(45deg, #FEDA75, #FA7E1E 28%, #D62976 58%, #962FBF 82%, #4F5BD5);
}
.sfide .sf-k-storia--tua i { box-shadow: none; }
.sfide .sf-k-storia--tua i::before { display: none; }
.sfide .sf-k-storia small { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 9.5px; line-height: 1.2; color: #E0E0E0; }

/* a post: header 40, photo as wide as the screen, actions 36, text 36 (the scroll of the feed counts on these) */
.sfide .sf-k-post__testa { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 9px 0 10px; }
.sfide .sf-k-avatar { flex: none; display: block; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: #222; }
.sfide .sf-k-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sfide .sf-k-avatar--lettera { display: grid; font-size: 12px; }
.sfide .sf-k-chi { display: grid; min-width: 0; line-height: 1.2; }
.sfide .sf-k-chi b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sfide .sf-k-chi small { font-size: 10.5px; color: var(--k-sec); white-space: nowrap; }
.sfide .sf-k-altro { width: 18px; height: 18px; margin-left: auto; fill: #F5F5F5; stroke: none; }
.sfide .sf-k-post__foto { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #111; }
.sfide .sf-k-post__foto img { width: 100%; height: 100%; object-fit: cover; }
.sfide .sf-k-post__azioni { display: flex; align-items: center; gap: 13px; height: 36px; padding: 0 10px; }
.sfide .sf-k-post__azioni svg { width: 22px; height: 22px; }
.sfide .sf-k-post__azioni .sf-k-salva { margin-left: auto; }
.sfide .sf-k-post__testo {
  height: 36px; padding: 0 10px; overflow: hidden; font-size: 11.5px; line-height: 1.38; color: #E8E8E8;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.sfide .sf-k-post__testo b { font-weight: 600; color: #F5F5F5; }
/* the ad: the offer on the photo, the button bar under it */
.sfide .sf-k-offerta {
  position: absolute; left: 10px; bottom: 10px; display: grid; gap: 1px; max-width: 78%; padding: 7px 10px 8px; border-radius: 9px;
  background: #F6EFE4; color: #1E1A16; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6);
}
.sfide .sf-k-offerta small { font-size: 10px; line-height: 1.2; font-weight: 600; color: #6E5F4E; }
.sfide .sf-k-offerta b { font-size: 14px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.sfide .sf-k-post__cta {
  position: relative; display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 10px 0 12px;
  background: var(--k-blu); font-size: 12.5px; font-weight: 600;
}
.sfide .sf-k-post__cta svg { width: 16px; height: 16px; stroke-width: 2.2; }

/* scene 1: the feed scrolls from the stories to the ad (stories + the first post = 198px + the photo) */
.sfide .sf-k.k-scorre .sf-k-feed:not(.sf-k-feed--due) { transform: translateY(calc(-1 * (198px + var(--sw)))); }

/* the sheet that comes up from the bottom, and the shade behind it */
.sfide .sf-k-velo { position: absolute; z-index: 5; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 420ms ease-out; }
.sfide .sf-k.k-foglio .sf-k-velo { opacity: 1; }
.sfide .sf-k-foglio {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; padding: 7px 14px 30px; border-radius: 16px 16px 0 0;
  background: var(--k-card); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(102%); transition: transform 560ms var(--curva);
}
.sfide .sf-k.k-foglio .sf-k-foglio { transform: none; }
.sfide .sf-k-foglio__maniglia { display: block; width: 36px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: #48484A; }
.sfide .sf-k-modulo { transition: opacity 260ms ease-out; }
.sfide .sf-k-modulo__testa { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.sfide .sf-k-modulo__testa .sf-k-avatar { width: 24px; height: 24px; }
.sfide .sf-k-modulo__testa b { font-weight: 600; }
.sfide .sf-k-modulo__titolo { margin-top: 10px; font-size: 17px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.sfide .sf-k-modulo__sotto { margin-top: 4px; font-size: 11.5px; line-height: 1.35; color: var(--k-sec); }
.sfide .sf-k-campo { display: grid; gap: 2px; margin-top: 8px; padding: 6px 11px 7px; border-radius: 10px; background: var(--k-campo); }
.sfide .sf-k-campo small { font-size: 10px; line-height: 1.2; color: #8E8E93; }
.sfide .sf-k-campo__valore { display: block; min-height: 18px; font-size: 13.5px; line-height: 18px; white-space: pre; }
.sfide .sf-k-spunta { display: flex; align-items: flex-start; gap: 9px; margin-top: 11px; font-size: 11.5px; line-height: 1.35; }
.sfide .sf-k-spunta small { display: block; font-size: 10px; color: #8E8E93; }
.sfide .sf-k-casella {
  position: relative; flex: none; width: 19px; height: 19px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #636366;
}
.sfide .sf-k-casella::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--k-blu); opacity: 0; transition: opacity 180ms ease-out;
}
.sfide .sf-k-casella svg {
  position: absolute; inset: 2px; width: 15px; height: 15px; stroke: #fff; stroke-width: 3; opacity: 0; transform: scale(0.5);
  transition: opacity 180ms ease-out, transform 360ms var(--curva);
}
.sfide .sf-k.k-spunta .sf-k-casella::before, .sfide .sf-k.k-spunta .sf-k-casella svg { opacity: 1; }
.sfide .sf-k.k-spunta .sf-k-casella svg { transform: none; }
.sfide .sf-k-bottone {
  position: relative; display: grid; place-items: center; height: 40px; margin-top: 13px; border-radius: 12px;
  background: var(--k-blu); font-size: 14px; font-weight: 600;
}
/* done */
.sfide .sf-k-fatto {
  position: absolute; inset: 22px 14px 18px; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity 380ms ease-out 120ms;
}
.sfide .sf-k-fatto__segno {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 6px; border-radius: 50%; background: var(--k-verde);
  transform: scale(0.55); transition: transform 640ms var(--curva) 160ms;
}
.sfide .sf-k-fatto__segno svg { width: 30px; height: 30px; stroke: #fff; stroke-width: 2.8; }
.sfide .sf-k-fatto b { font-size: 17px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.sfide .sf-k-fatto small { font-size: 12px; line-height: 1.35; color: var(--k-sec); }
.sfide .sf-k.k-fatto .sf-k-modulo { opacity: 0; }
.sfide .sf-k.k-fatto .sf-k-fatto { opacity: 1; }
.sfide .sf-k.k-fatto .sf-k-fatto__segno { transform: none; }

/* typing: one letter at a time; the cursor walks behind the letters, then blinks on the last one */
.sfide .sf-k-scrive { --v: 70ms; }
.sfide .sf-k-campo--numero .sf-k-scrive { --v: 46ms; }
.sfide .sf-k-c { position: relative; opacity: 0; transition: opacity 60ms linear; transition-delay: calc(var(--c) * var(--v)); }
.sfide .sf-k-c::after {
  content: ''; position: absolute; right: -1.5px; top: 1px; bottom: 1px; width: 1.5px; border-radius: 1px; background: var(--k-blu); opacity: 0;
}
.sfide .sf-k.k-nome .sf-k-campo--nome .sf-k-c,
.sfide .sf-k.k-numero .sf-k-campo--numero .sf-k-c,
.sfide .sf-k.k-scrive .sf-k-wa__campo .sf-k-c { opacity: 1; }
.sfide.sf-anima .sf-k.k-nome:not(.k-numero) .sf-k-campo--nome .sf-k-c::after,
.sfide.sf-anima .sf-k.k-numero:not(.k-tocca-spunta) .sf-k-campo--numero .sf-k-c::after,
.sfide.sf-anima .sf-k.k-scrive:not(.k-mio) .sf-k-wa__campo .sf-k-c::after {
  animation: sf-k-cursore var(--v) steps(1, end) calc(var(--c) * var(--v)) 1;
}
.sfide.sf-anima .sfide__blocco.sf-in-vista .sf-k.k-nome:not(.k-numero) .sf-k-campo--nome .sf-k-c--ultima::after,
.sfide.sf-anima .sfide__blocco.sf-in-vista .sf-k.k-numero:not(.k-tocca-spunta) .sf-k-campo--numero .sf-k-c--ultima::after,
.sfide.sf-anima .sfide__blocco.sf-in-vista .sf-k.k-scrive:not(.k-mio) .sf-k-wa__campo .sf-k-c--ultima::after {
  animation: sf-k-lampeggia 1000ms steps(1, end) calc(var(--c) * var(--v)) infinite;
}
@keyframes sf-k-cursore { from { opacity: 1; } to { opacity: 1; } }
@keyframes sf-k-lampeggia { 0% { opacity: 1; } 50% { opacity: 0; } }

/* the finger: a touch like the ones of a screen recording; it comes in, presses, lifts */
.sfide .sf-dito {
  position: absolute; z-index: 4; left: var(--dx, 50%); top: var(--dy, 50%); width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.4); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.65), 0 6px 16px rgba(0, 0, 0, 0.35);
  opacity: 0; pointer-events: none;
}
.sfide .sf-dito--cta { --dx: 72%; }
.sfide .sf-dito--invia { --dx: 58%; }
@keyframes sf-k-tocco {
  0% { opacity: 0; transform: translate(24px, 34px) scale(1.12); }
  38% { opacity: 1; transform: none; }
  55% { opacity: 1; transform: scale(0.8); }
  72% { opacity: 0.95; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}
@keyframes sf-k-premuto { 0%, 100% { opacity: 1; } 50% { opacity: 0.62; } }
.sfide.sf-anima .sf-k.k-tocca-cta .sf-dito--cta,
.sfide.sf-anima .sf-k.k-tocca-spunta .sf-dito--spunta,
.sfide.sf-anima .sf-k.k-tocca-invia :is(.sf-dito--invia, .sf-dito--manda),
.sfide.sf-anima .sf-k.k-tocca-giorno .sf-dito--giorno,
.sfide.sf-anima .sf-k.k-tocca-ora .sf-dito--ora,
.sfide.sf-anima .sf-k.k-tocca-notifica .sf-dito--notifica { animation: sf-k-tocco 760ms var(--curva) both; }
.sfide.sf-anima .sf-k.k-tocca-cta .sf-k-post--ad .sf-k-post__cta > :not(.sf-dito),
.sfide.sf-anima .sf-k.k-tocca-invia .sf-k-bottone,
.sfide.sf-anima .sf-k.k-tocca-notifica .sf-k-notifica__testo { animation: sf-k-premuto 520ms ease-out 240ms both; }

/* scene 2: the video, the jump of a few days, the feed with the ad that comes back */
.sfide .sf-k-video { position: absolute; z-index: 2; inset: 0; overflow: hidden; background: #000; transition: opacity 500ms ease-out; }
.sfide .sf-k-video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 3400ms linear; }
.sfide .sf-k.k-guarda .sf-k-video > img { transform: scale(1.14) translateY(-2%); }
.sfide .sf-k-video__ombra {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.72) 100%);
}
.sfide .sf-k-video__testa { position: absolute; top: 48px; left: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; }
.sfide .sf-k-video__testa b { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.sfide .sf-k-video__testa svg { width: 22px; height: 22px; }
.sfide .sf-k-video__lato { position: absolute; right: 10px; bottom: 98px; display: grid; gap: 18px; }
.sfide .sf-k-video__lato svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)); }
.sfide .sf-k-video__lato .sf-k-pieno { fill: #fff; stroke: none; }
.sfide .sf-k-video__piede { position: absolute; left: 12px; right: 52px; bottom: 34px; display: grid; gap: 7px; }
.sfide .sf-k-video__chi { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.sfide .sf-k-video__chi b { font-weight: 600; }
.sfide .sf-k-segui { padding: 4px 9px; border-radius: 7px; font-size: 11px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
.sfide .sf-k-video__testo { font-size: 11.5px; line-height: 1.35; color: rgba(255, 255, 255, 0.92); }
.sfide .sf-k-video__corsa { position: absolute; left: 0; right: 0; bottom: 20px; height: 2px; background: rgba(255, 255, 255, 0.28); }
.sfide .sf-k-video__corsa i { display: block; height: 100%; background: #fff; transform: scaleX(0.03); transform-origin: 0 50%; transition: transform 2700ms linear; }
.sfide .sf-k.k-guarda .sf-k-video__corsa i { transform: scaleX(1); }
.sfide .sf-k.k-salto .sf-k-video { opacity: 0.22; }
.sfide .sf-k.k-feed .sf-k-video { opacity: 0; }

.sfide .sf-k-salto {
  position: absolute; z-index: 7; left: 50%; top: 50%; display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 13px; border-radius: 999px;
  background: rgba(22, 18, 28, 0.94); box-shadow: inset 0 0 0 1px rgba(201, 169, 233, 0.45), 0 12px 30px -10px rgba(0, 0, 0, 0.8);
  font: 650 13px/1 'Montserrat', 'Inter', system-ui, sans-serif; letter-spacing: -0.01em; color: var(--testo); white-space: nowrap;
  opacity: 0; transform: translate(-50%, -50%) scale(0.9); transition: opacity 360ms ease-out, transform 560ms var(--curva);
}
.sfide .sf-k-salto svg { width: 17px; height: 17px; stroke: var(--lilla); }
.sfide .sf-k.k-salto .sf-k-salto { opacity: 1; transform: translate(-50%, -50%); }
.sfide .sf-k.k-feed .sf-k-salto { opacity: 0; }

.sfide .sf-k-scena-feed { position: absolute; z-index: 1; inset: 0; opacity: 0; transition: opacity 500ms ease-out; }
.sfide .sf-k.k-feed .sf-k-scena-feed { opacity: 1; }
/* the second feed starts halfway down someone else's post, then scrolls to the ad */
.sfide .sf-k-feed--due { transform: translateY(calc(var(--sw) * -0.5)); }
.sfide .sf-k.k-scorre .sf-k-feed--due { transform: translateY(calc(-1 * (112px + var(--sw)))); }

/* the booking sheet: day, time, people */
.sfide .sf-k-modulo__titolo + .sf-k-etichetta { margin-top: 14px; }
.sfide .sf-k-etichetta { margin-top: 11px; font-size: 10.5px; line-height: 1.2; font-weight: 600; color: #8E8E93; }
.sfide .sf-k-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 5px; }
.sfide .sf-k-chips > span {
  position: relative; isolation: isolate; display: grid; place-items: center; height: 32px; border-radius: 9px; background: var(--k-campo);
  font-size: 12.5px; font-weight: 600;
}
.sfide .sf-k-chip::before {
  content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--k-blu); opacity: 0; transition: opacity 200ms ease-out;
}
.sfide .sf-k.k-giorno .sf-k-chip--giorno::before, .sfide .sf-k.k-ora .sf-k-chip--ora::before { opacity: 1; }
.sfide .sf-k-persone { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 12.5px; font-weight: 600; }
.sfide .sf-k-passi { display: flex; align-items: center; gap: 12px; }
.sfide .sf-k-passi i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--k-campo); font-style: normal; font-size: 15px; line-height: 1; }
.sfide .sf-k-passi b { font-size: 14px; }

/* scene 3: the lock screen, the message, the chat */
.sfide .sf-k-blocco {
  position: absolute; z-index: 2; inset: 0; overflow: hidden;
  background:
    radial-gradient(120% 70% at 18% 8%, rgba(139, 111, 184, 0.85), rgba(139, 111, 184, 0) 62%),
    radial-gradient(110% 60% at 92% 96%, rgba(58, 74, 140, 0.9), rgba(58, 74, 140, 0) 64%),
    radial-gradient(80% 50% at 70% 45%, rgba(201, 169, 233, 0.28), rgba(201, 169, 233, 0) 70%),
    #0c0b14;
  transition: opacity 420ms ease-out, transform 620ms var(--curva);
}
.sfide .sf-k.k-chat .sf-k-blocco { opacity: 0; transform: scale(1.06); }
.sfide .sf-k-blocco__lucchetto { position: absolute; top: 46px; left: 50%; width: 15px; height: 15px; margin-left: -7.5px; stroke-width: 2; }
.sfide .sf-k-blocco__data { position: absolute; top: 68px; left: 0; right: 0; text-align: center; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.86); }
.sfide .sf-k-blocco__ora {
  position: absolute; top: 84px; left: 0; right: 0; text-align: center;
  font-size: 72px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.93); font-variant-numeric: tabular-nums;
}
.sfide .sf-k[data-copione="torna"]:not(.k-chat) .sf-k-stato b { opacity: 0; } /* on the lock screen the time is the big one */
.sfide .sf-k-notifica {
  position: absolute; left: 9px; right: 9px; top: 196px; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px;
  padding: 11px 12px 12px 11px; border-radius: 20px;
  background: rgba(62, 60, 76, 0.66); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
  opacity: 0; transform: translateY(-16px) scale(0.96); transition: opacity 360ms ease-out, transform 640ms var(--curva);
}
.sfide .sf-k.k-notifica .sf-k-notifica { opacity: 1; transform: none; }
.sfide .sf-k-notifica__app { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(180deg, #5FE07E, #22B04B); }
.sfide .sf-k-notifica__app svg { width: 22px; height: 22px; fill: #fff; stroke: none; }
.sfide .sf-k-notifica__testo { display: grid; gap: 1px; min-width: 0; font-size: 12px; line-height: 1.32; }
.sfide .sf-k-notifica__riga { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.sfide .sf-k-notifica__riga b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sfide .sf-k-notifica__riga small { font-size: 10.5px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.sfide .sf-dito--notifica { --dx: 62%; --dy: 56%; }
.sfide .sf-k-blocco__tasti { position: absolute; left: 30px; right: 30px; bottom: 26px; display: flex; justify-content: space-between; }
.sfide .sf-k-blocco__tasti span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, 0.32); }
.sfide .sf-k-blocco__tasti svg { width: 20px; height: 20px; }

.sfide .sf-k-wa {
  --wa-fondo: #0B141A; --wa-barra: #1F2C34; --wa-bolla: #202C33; --wa-mia: #005C4B; --wa-testo: #E9EDEF; --wa-sec: #8696A0; --wa-verde: #00A884;
  position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; background: var(--wa-fondo); color: var(--wa-testo);
  opacity: 0; transform: scale(0.94); transform-origin: 50% 42%; transition: opacity 420ms ease-out, transform 620ms var(--curva);
}
.sfide .sf-k.k-chat .sf-k-wa { opacity: 1; transform: none; }
.sfide .sf-k-wa__testa { flex: none; display: flex; align-items: center; gap: 8px; height: 96px; padding: 44px 12px 0 6px; background: var(--wa-barra); }
.sfide .sf-k-wa__testa > svg { width: 20px; height: 20px; }
.sfide .sf-k-wa__testa .sf-k-wa__indietro { width: 22px; height: 22px; margin-right: -4px; stroke-width: 2.2; }
.sfide .sf-k-wa__testa .sf-k-avatar { width: 32px; height: 32px; }
.sfide .sf-k-wa__testa .sf-k-chi { flex: 1 1 auto; }
.sfide .sf-k-wa__testa .sf-k-chi b { font-size: 13.5px; }
.sfide .sf-k-wa__testa > svg + svg { margin-left: 14px; }
.sfide .sf-k-wa__stato { display: grid; }
.sfide .sf-k-wa__stato small { grid-area: 1 / 1; color: var(--wa-sec); transition: opacity 200ms ease-out; }
.sfide .sf-k-wa__stato small + small { color: var(--wa-verde); opacity: 0; }
.sfide .sf-k.k-pensa:not(.k-fine) .sf-k-wa__stato small:first-child { opacity: 0; }
.sfide .sf-k.k-pensa:not(.k-fine) .sf-k-wa__stato small + small { opacity: 1; }
.sfide .sf-k-wa__chat { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 10px 9px 8px; overflow: hidden; }
.sfide .sf-k-wa__giorno { align-self: center; margin-bottom: 6px; padding: 4px 9px; border-radius: 7px; background: #182229; font-size: 10.5px; color: var(--wa-sec); }
.sfide .sf-k-wa__msg {
  position: relative; max-width: 84%; padding: 6px 8px 6px 9px; border-radius: 9px; font-size: 12.5px; line-height: 1.36;
  transition: opacity 260ms ease-out, transform 420ms var(--curva);
}
.sfide .sf-k-wa__msg small { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 7px 0 -5px 9px; font-size: 9.5px; line-height: 1; color: rgba(233, 237, 239, 0.62); }
.sfide .sf-k-wa__msg small svg { width: 15px; height: 10px; stroke: #53BDEB; stroke-width: 1.6; }
.sfide .sf-k-wa__msg--loro { align-self: flex-start; border-top-left-radius: 2px; background: var(--wa-bolla); transform-origin: 0 0; }
.sfide .sf-k-wa__msg--mio { align-self: flex-end; border-top-right-radius: 2px; background: var(--wa-mia); transform-origin: 100% 0; }
.sfide .sf-k-wa__msg--mio, .sfide .sf-k-wa__msg--fine { opacity: 0; transform: translateY(8px) scale(0.96); }
.sfide .sf-k.k-mio .sf-k-wa__msg--mio, .sfide .sf-k.k-fine .sf-k-wa__msg--fine { opacity: 1; transform: none; }
.sfide .sf-k-wa__scrivi { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 7px 24px; }
.sfide .sf-k-wa__campo {
  position: relative; flex: 1 1 auto; display: flex; align-items: center; min-width: 0; height: 36px; padding: 0 13px; border-radius: 18px;
  background: var(--wa-barra); font-size: 13px; white-space: pre;
}
.sfide .sf-k-wa__segnaposto { position: absolute; left: 13px; color: var(--wa-sec); transition: opacity 120ms linear; }
.sfide .sf-k.k-scrive:not(.k-mio) .sf-k-wa__segnaposto { opacity: 0; }
.sfide .sf-k.k-mio .sf-k-wa__campo .sf-k-scrive { opacity: 0; }
.sfide .sf-k-wa__campo .sf-k-c::after { background: var(--wa-verde); }
.sfide .sf-k-wa__tasto { position: relative; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wa-verde); }
.sfide .sf-k-wa__tasto svg { grid-area: 1 / 1; width: 19px; height: 19px; transition: opacity 160ms ease-out, transform 300ms var(--curva); }
.sfide .sf-k-wa__mic { stroke: #fff; stroke-width: 2; }
.sfide .sf-k-wa__invia { fill: #fff; stroke: none; opacity: 0; transform: scale(0.6); }
.sfide .sf-k.k-scrive:not(.k-mio) .sf-k-wa__invia { opacity: 1; transform: none; }
.sfide .sf-k.k-scrive:not(.k-mio) .sf-k-wa__mic { opacity: 0; transform: scale(0.6); }

/* a screen shown at its last frame (no movement, or stopped): nothing replays */
.sfide .sf-k.sf-k-finito *, .sfide .sf-k.sf-k-finito *::before, .sfide .sf-k.sf-k-finito *::after { animation: none !important; }
.sfide:not(.sf-anima) .sf-camp *, .sfide:not(.sf-anima) .sf-camp *::before, .sfide:not(.sf-anima) .sf-camp *::after { transition: none; animation: none; }
/* back to the start of a story: no transitions for one frame (sfide.js) */
.sfide .sf-k-salta, .sfide .sf-k-salta *, .sfide .sf-k-salta *::before, .sfide .sf-k-salta *::after { transition: none !important; animation: none !important; }

/* ── 4 · Gestionale: un'app vera, nel modo di iOS (scuro) ── */
/* Barra di stato, titolo grande, liste raggruppate, barra dei moduli in basso. Nella schermata d'esempio si usano i colori
   di iOS (sfondo nero, grigi, verde/arancio/rosso degli stati); la tinta dell'app è il lilla di Boosted. Font di sistema
   (su iPhone il San Francisco), altrimenti Inter. */
.sfide .sf-app { position: relative; width: 100%; display: grid; justify-items: center; }
.sfide .sf-app::before {
  content: ''; position: absolute; left: 6%; right: 6%; top: 16%; height: 74%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 111, 184, 0.2), rgba(139, 111, 184, 0));
}
.sfide .sf-app__telefono {
  position: relative; width: min(340px, 100%); padding: 10px; border-radius: 54px;
  background: linear-gradient(165deg, #3a3c43 0%, #17191c 18%, #0c0d0f 58%, #1c1e23 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.7), 0 50px 90px -30px rgba(0, 0, 0, 0.95);
  transition: opacity 700ms ease-out, transform 1200ms var(--curva);
}
.sfide.sf-anima .sf-app:not(.visto) .sf-app__telefono { opacity: 0; transform: translateY(46px); }
.sfide .sf-app__schermo {
  --ios-card: #1C1C1E; --ios-riga: rgba(84, 84, 88, 0.6); --ios-sec: rgba(235, 235, 245, 0.6); --ios-ter: rgba(235, 235, 245, 0.32);
  --ios-grigio: #8E8E93; --ios-fill: rgba(118, 118, 128, 0.24);
  --ios-verde: #30D158; --ios-arancio: #FF9F0A; --ios-rosso: #FF6961; --ios-tinta: var(--lilla);
  position: relative; isolation: isolate; overflow: hidden; height: 624px; border-radius: 44px;
  background: #000; color: #fff; text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif; letter-spacing: -0.012em;
  font-variant-numeric: tabular-nums;
}
.sfide .sf-app__schermo::before {
  /* the island */
  content: ''; position: absolute; z-index: 4; top: 11px; left: 50%; width: 96px; height: 28px; border-radius: 999px;
  background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); transform: translateX(-50%);
}
.sfide .sf-app__schermo::after {
  /* the home indicator */
  content: ''; position: absolute; z-index: 4; bottom: 8px; left: 50%; width: 120px; height: 5px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.7); transform: translateX(-50%);
}

/* status bar and navigation */
.sfide .sf-app__stato {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  height: 50px; padding: 4px 26px 0 34px;
}
.sfide .sf-app__stato b { font-size: 15.5px; line-height: 1; font-weight: 600; letter-spacing: -0.01em; }
.sfide .sf-app__icone { display: flex; align-items: center; gap: 6px; }
.sfide .sf-app__icone svg { display: block; height: 11.5px; width: auto; fill: #fff; }
.sfide .sf-app__icone .sf-app__rete { width: 17px; }
.sfide .sf-app__icone .sf-app__wifi { width: 16px; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; }
.sfide .sf-app__wifi path { fill: none; }
.sfide .sf-app__icone .sf-app__pila { width: 26px; height: 12px; }
.sfide .sf-app__pila-bordo { fill: none; stroke: rgba(255, 255, 255, 0.45); }
.sfide .sf-app__pila-polo { fill: rgba(255, 255, 255, 0.45); }
.sfide .sf-app__nav { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 16px; }
.sfide .sf-app__nav .sf-esempio { font-family: 'Montserrat', 'Inter', sans-serif; letter-spacing: 0.01em; }
.sfide .sf-app__piu { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(201, 169, 233, 0.16); }
.sfide .sf-app__piu svg { width: 17px; height: 17px; fill: none; stroke: var(--ios-tinta); stroke-width: 2.4; stroke-linecap: round; }

/* the screens of the modules */
.sfide .sf-app__pannelli { position: absolute; z-index: 1; top: 88px; left: 0; right: 0; bottom: 0; display: grid; }
.sfide .sf-app__pannello { grid-area: 1 / 1; min-width: 0; padding: 0 16px 96px; overflow: hidden; }
.sfide .sf-app__pannello:not(.sf-on) { visibility: hidden; }
.sfide .sf-app__titolo { margin: 2px 0 12px; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.sfide .sf-app__sezione { margin: 18px 4px 7px; font-size: 13px; line-height: 1.2; font-weight: 600; color: var(--ios-sec); letter-spacing: -0.005em; }

/* segmented control, search, days of the week */
.sfide .sf-app__segmenti {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 2px; border-radius: 9px; background: var(--ios-fill);
  font-size: 13px; line-height: 1; font-weight: 600; letter-spacing: -0.01em;
}
.sfide .sf-app__segmenti > span { padding: 7px 4px; border-radius: 7px; text-align: center; color: #fff; }
.sfide .sf-app__segmenti > .sf-app__seg-on { background: #636366; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); }
.sfide .sf-app__cerca {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 9px; border-radius: 10px; background: var(--ios-fill);
  font-size: 15.5px; line-height: 1; color: var(--ios-sec);
}
.sfide .sf-app__cerca svg { width: 17px; height: 17px; fill: none; stroke: var(--ios-sec); stroke-width: 2.2; stroke-linecap: round; }
.sfide .sf-app__settimana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); justify-items: center; }
.sfide .sf-app__settimana > span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-size: 14px; line-height: 1; font-weight: 600; color: var(--ios-sec);
}
.sfide .sf-app__settimana > .sf-app__seg-on { background: var(--ios-tinta); color: #000; }

/* inset grouped list */
.sfide .sf-app__lista { list-style: none; margin: 0; padding: 0; border-radius: 12px; background: var(--ios-card); }
.sfide .sf-app__riga {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; column-gap: 11px;
  min-height: 58px; padding: 8px 13px 8px 12px;
}
.sfide .sf-app__riga--semplice { grid-template-columns: minmax(0, 1fr) auto; padding-left: 15px; }
.sfide .sf-app__riga + .sf-app__riga::before {
  content: ''; position: absolute; top: 0; left: 57px; right: 0; height: 1px; background: var(--ios-riga); transform: scaleY(0.6); transform-origin: 50% 0;
}
.sfide .sf-app__riga--semplice + .sf-app__riga--semplice::before { left: 15px; }
.sfide .sf-app__avatar {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(180deg, #A6A6AD, #828289); color: #fff;
  font-size: 13px; line-height: 1; font-weight: 600; letter-spacing: 0.01em;
}
.sfide .sf-app__avatar--tavolo { border-radius: 9px; background: rgba(201, 169, 233, 0.17); color: var(--lilla-chiaro); font-size: 15px; font-weight: 700; }
.sfide .sf-app__avatar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sfide .sf-app__avatar--vuoto { background: none; color: var(--ios-grigio); box-shadow: inset 0 0 0 1.5px rgba(142, 142, 147, 0.55); }
.sfide .sf-app__chi { display: grid; gap: 2px; min-width: 0; }
.sfide .sf-app__chi b, .sfide .sf-app__chi small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sfide .sf-app__chi b { font-size: 15px; line-height: 1.25; font-weight: 600; }
.sfide .sf-app__chi small { font-size: 13px; line-height: 1.3; color: var(--ios-sec); }
.sfide .sf-app__lato { display: grid; justify-items: end; gap: 4px; }
.sfide .sf-app__ora { font-size: 13px; line-height: 1.2; color: var(--ios-sec); white-space: nowrap; }
.sfide .sf-app__qta { font-size: 15px; line-height: 1.2; font-weight: 600; white-space: nowrap; }
.sfide .sf-app__tag {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 12px; line-height: 1.2; font-weight: 600; letter-spacing: -0.005em; color: var(--ios-sec);
}
.sfide .sf-app__tag::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sfide .sf-app__tag--ok { color: var(--ios-verde); }
.sfide .sf-app__tag--attesa { color: var(--ios-arancio); }
.sfide .sf-app__tag--allerta { color: var(--ios-rosso); }
.sfide .sf-app__tag--nuova { color: var(--ios-tinta); }

/* takings: no amounts, the week as bars without numbers */
.sfide .sf-app__grafico { margin-bottom: 18px; padding: 13px 14px 10px; border-radius: 12px; background: var(--ios-card); }
.sfide .sf-app__grafico-testa { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; line-height: 1.2; color: var(--ios-sec); }
.sfide .sf-app__grafico-testa b { font-size: 22px; line-height: 1; font-weight: 700; color: #fff; }
.sfide .sf-app__barre { display: flex; align-items: flex-end; gap: 9px; height: 92px; margin-top: 12px; padding-bottom: 1px; border-bottom: 1px solid var(--ios-riga); }
.sfide .sf-app__barre i { flex: 1 1 0; height: calc(var(--h) * 100%); min-height: 2px; border-radius: 4px 4px 1px 1px; background: rgba(201, 169, 233, 0.38); }
.sfide .sf-app__barre i.sf-app__oggi { background: var(--ios-tinta); }
.sfide .sf-app__barre i.sf-app__chiuso { background: rgba(235, 235, 245, 0.2); }
.sfide .sf-app__barre i.sf-app__poi { background: none; box-shadow: inset 0 0 0 1px rgba(235, 235, 245, 0.18); }
.sfide .sf-app__giorni { display: flex; gap: 9px; margin-top: 6px; }
.sfide .sf-app__giorni > span { flex: 1 1 0; text-align: center; font-size: 11px; line-height: 1; font-weight: 600; color: var(--ios-ter); }

/* tab bar: the five modules */
.sfide .sf-app__tabbar {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 5px 6px 24px;
  background: rgba(22, 22, 24, 0.94); box-shadow: inset 0 1px 0 rgba(84, 84, 88, 0.55);
}
.sfide .sf-app__tab {
  display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 0; min-height: 50px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--ios-grigio); cursor: pointer;
  font: 500 10px/1.1 -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif; letter-spacing: -0.01em;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: color 200ms ease-out;
}
.sfide .sf-app__tab span { white-space: nowrap; }
.sfide .sf-app__tab svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 150ms ease-out; }
.sfide .sf-app__tab[aria-selected="true"] { color: var(--ios-tinta); }
.sfide .sf-app__tab[aria-selected="true"] svg { stroke-width: 2; }
.sfide .sf-app__tab:active svg { transform: scale(0.9); }
.sfide .sf-app__tab:focus-visible { outline: 2px solid var(--lilla); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .sfide .sf-app__tab:hover { color: #fff; } .sfide .sf-app__tab[aria-selected="true"]:hover { color: var(--ios-tinta); } }

/* switching module: the new screen comes in, row after row */
.sfide .sf-app__pannello > *, .sfide .sf-app__pannello .sf-app__riga {
  --i: 0;
  transition: opacity 340ms ease-out, transform 520ms var(--curva);
  transition-delay: calc(var(--i) * 38ms);
}
.sfide .sf-app__pannello > :nth-child(2) { --i: 1; }
.sfide .sf-app__pannello > :nth-child(3) { --i: 2; }
.sfide .sf-app__pannello > .sf-app__lista { transition: none; }
.sfide .sf-app__pannello .sf-app__riga:nth-child(1) { --i: 3; }
.sfide .sf-app__pannello .sf-app__riga:nth-child(2) { --i: 4; }
.sfide .sf-app__pannello .sf-app__riga:nth-child(3) { --i: 5; }
.sfide .sf-app__pannello .sf-app__riga:nth-child(4) { --i: 6; }
.sfide .sf-app__pannello .sf-app__riga:nth-child(5) { --i: 7; }
.sfide .sf-app__pannello:not(.sf-on) > :not(.sf-app__lista),
.sfide .sf-app__pannello:not(.sf-on) .sf-app__riga { opacity: 0; transform: translateY(8px); transition-duration: 0ms; transition-delay: 0ms; }

/* small phones */
@media (max-width: 379.98px) {
  .sfide .sf-app__pannello { padding-inline: 13px; }
  .sfide .sf-app__titolo { font-size: 30px; }
  .sfide .sf-app__riga { column-gap: 10px; padding-right: 11px; }
  .sfide .sf-app__tab { font-size: 9.5px; letter-spacing: -0.02em; }
  .sfide .sf-app__tabbar { padding-inline: 3px; }
}

/* ── 5 · Assistente telefonico: telefono, WhatsApp, sito ─── */
.sfide .sf-voce {
  position: relative; width: 100%; max-width: 520px; margin-inline: auto;
  padding: 14px 14px 18px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(26, 28, 32, 0.94), rgba(11, 12, 14, 0.95));
  border: 1px solid var(--riga);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 50px 90px -40px rgba(0, 0, 0, 0.95), 0 30px 90px -50px rgba(201, 169, 233, 0.45);
  transition: opacity 700ms ease-out, transform 1100ms var(--curva);
}
.sfide .sf-voce::before {
  content: ''; position: absolute; left: 26px; right: 26px; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(201, 169, 233, 0), #C9A9E9 30%, #EFE4FA 50%, #8B6FB8 72%, rgba(139, 111, 184, 0));
  opacity: 0.75;
}
.sfide.sf-anima .sf-voce:not(.visto) { opacity: 0; transform: translateY(36px); }
.sfide .sf-voce__testa { display: grid; justify-items: start; gap: 12px; padding: 2px 2px 14px; border-bottom: 1px solid var(--riga); }
.sfide .sf-voce__schede {
  --i: 0;
  position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%;
  padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.sfide .sf-voce__pillola {
  position: absolute; z-index: -1; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 3); border-radius: 999px;
  background: rgba(201, 169, 233, 0.2); box-shadow: inset 0 0 0 1px rgba(201, 169, 233, 0.5), 0 6px 18px -8px rgba(201, 169, 233, 0.7);
  transform: translateX(calc(var(--i) * 100%)); transition: transform 460ms var(--curva);
}
.sfide .sf-voce__scheda {
  min-height: 44px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 650 14px/1 'Montserrat', 'Inter', system-ui, sans-serif; color: var(--sec);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.sfide .sf-voce__scheda[aria-selected="true"] { color: var(--testo); }
.sfide .sf-voce__scheda:focus-visible { outline: 2px solid var(--lilla); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .sfide .sf-voce__scheda:hover { color: var(--testo); } }

.sfide .sf-voce__pannelli { display: grid; padding-top: 16px; }
.sfide .sf-voce__pannello { grid-area: 1 / 1; min-width: 0; transition: opacity 260ms ease-out; }
.sfide .sf-voce__pannello:not(.sf-on) { visibility: hidden; opacity: 0; }
.sfide .sf-voce__righe { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.sfide .sf-voce__msg { position: relative; font-size: 15px; line-height: 1.45; transition: opacity 360ms ease-out, transform 560ms var(--curva); }
.sfide .sf-parola { transition: opacity 260ms ease-out; transition-delay: calc(var(--w, 0) * 55ms); }

/* the call: who is speaking, a voice that moves, the transcript that writes itself */
.sfide .sf-voce__chiamata { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 4px 2px 14px; }
.sfide .sf-voce__avatar {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(201, 169, 233, 0.16); box-shadow: inset 0 0 0 1px rgba(201, 169, 233, 0.45);
}
.sfide .sf-voce__avatar::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(201, 169, 233, 0.55); opacity: 0;
}
.sfide .sf-voce__avatar svg { width: 19px; height: 19px; fill: none; stroke: var(--lilla-chiaro); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sfide .sf-voce__chi { display: grid; gap: 2px; min-width: 0; }
.sfide .sf-voce__chi b { font-size: 15px; line-height: 1.25; font-weight: 720; }
.sfide .sf-voce__chi small, .sfide .sf-voce__barra small { font-size: 12.5px; line-height: 1.3; font-weight: 550; color: var(--sec); }
.sfide .sf-voce__onda { display: flex; align-items: center; gap: 3px; height: 26px; }
.sfide .sf-voce__onda i { width: 3px; height: 100%; border-radius: 2px; background: linear-gradient(180deg, var(--lilla-chiaro), var(--viola)); transform: scaleY(calc(var(--h) * 0.5)); }
.sfide .sf-voce__trascrizione { margin-bottom: 10px; padding-top: 12px; border-top: 1px solid var(--riga); font-size: 12px; line-height: 1.3; font-weight: 650; color: var(--sec); }
.sfide .sf-voce__pannello--tel .sf-voce__msg { display: grid; gap: 2px; }
.sfide .sf-voce__nome { font-size: 12px; line-height: 1.3; font-weight: 700; color: var(--sec); }
.sfide .sf-voce__pannello--tel .sf-voce__msg--ai .sf-voce__nome { color: var(--lilla); }
.sfide .sf-voce__pannello--tel .sf-voce__msg--cliente .sf-voce__testo { color: #C9CED6; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.fermo) .sfide .sf-voce.sf-in-vista .sf-voce__pannello--tel.sf-parla .sf-voce__onda i { animation: sf-voce 900ms ease-in-out infinite alternate; animation-delay: calc(var(--h) * -900ms); }
  html:not(.fermo) .sfide .sf-voce.sf-in-vista .sf-voce__pannello--tel.sf-on .sf-voce__avatar::before { animation: sf-squillo 2200ms ease-out infinite; }
}
@keyframes sf-voce { from { transform: scaleY(0.18); } to { transform: scaleY(1); } }
@keyframes sf-squillo { 0% { opacity: 0.8; transform: scale(0.85); } 70%, 100% { opacity: 0; transform: scale(1.35); } }

/* the chats: WhatsApp and the chat of the site */
.sfide .sf-voce__barra { display: grid; gap: 2px; margin-bottom: 14px; padding: 0 2px 12px; border-bottom: 1px solid var(--riga); }
.sfide .sf-voce__barra b { font-size: 15px; line-height: 1.25; font-weight: 720; }
.sfide .sf-voce__pannello--chat .sf-voce__msg { max-width: 86%; }
.sfide .sf-voce__pannello--chat .sf-voce__msg--cliente {
  justify-self: end; padding: 9px 14px; border-radius: 18px 18px 6px 18px; transform-origin: 100% 100%;
  background: linear-gradient(180deg, #DCC6F2, var(--lilla)); color: var(--nero); font-weight: 600;
  box-shadow: 0 10px 24px -14px rgba(201, 169, 233, 0.7);
}
.sfide .sf-voce__pannello--chat .sf-voce__msg--ai {
  justify-self: start; padding: 9px 14px; border-radius: 6px 18px 18px 18px; transform-origin: 0 100%;
  background: rgba(247, 248, 248, 0.06); box-shadow: inset 0 0 0 1px var(--riga-2); font-weight: 500;
}
.sfide .sf-voce__pannello--sito .sf-voce__msg--ai { border-radius: 14px; }
.sfide .sf-voce__pannello--sito .sf-voce__msg--cliente { border-radius: 14px; }
.sfide .sf-voce__puntini {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 5px; height: 40px; padding: 0 15px;
  border-radius: 6px 18px 18px 18px; background: rgba(247, 248, 248, 0.06); box-shadow: inset 0 0 0 1px var(--riga-2);
  opacity: 0; pointer-events: none; transition: opacity 200ms ease-out;
}
.sfide .sf-voce__puntini i { width: 7px; height: 7px; border-radius: 50%; background: var(--lilla-chiaro); opacity: 0.55; }
.sfide .sf-voce__msg.sf-pensa .sf-voce__puntini { opacity: 1; }
.sfide .sf-voce__testo { transition: opacity 200ms ease-out; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.fermo) .sfide .sf-voce__msg.sf-pensa .sf-voce__puntini i { animation: sf-salta 900ms ease-in-out infinite; }
  html:not(.fermo) .sfide .sf-voce__msg.sf-pensa .sf-voce__puntini i:nth-child(2) { animation-delay: 150ms; }
  html:not(.fermo) .sfide .sf-voce__msg.sf-pensa .sf-voce__puntini i:nth-child(3) { animation-delay: 300ms; }
}
@keyframes sf-salta { 0%, 60%, 100% { transform: none; opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* WhatsApp: its dark colours, the quick replies of the bot and the summary of the request */
.sfide .sf-voce__pannello--wa {
  --wa-fondo: #0B141A; --wa-bolla: #202C33; --wa-mia: #005C4B; --wa-testo: #E9EDEF; --wa-sec: #8696A0; --wa-verde: #00A884;
  padding: 0 10px 12px; border-radius: 16px; background: var(--wa-fondo); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.sfide .sf-voce__pannello--wa .sf-voce__barra {
  grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px;
  margin: 0 -10px 10px; padding: 8px 12px; border-radius: 16px 16px 0 0; border-bottom: 0; background: var(--wa-bolla);
}
.sfide .sf-voce__wa-foto { width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #EFE4FA, var(--lilla) 45%, var(--viola)); }
.sfide .sf-voce__wa-chi { display: grid; gap: 1px; min-width: 0; }
.sfide .sf-voce__pannello--wa .sf-voce__barra b { color: var(--wa-testo); }
.sfide .sf-voce__pannello--wa .sf-voce__barra small { color: var(--wa-sec); }
.sfide .sf-voce__pannello--wa .sf-voce__righe { gap: 6px; }
.sfide .sf-voce__pannello--wa .sf-voce__msg { font-size: 14.5px; line-height: 1.35; }
.sfide .sf-voce__pannello--wa .sf-voce__msg--cliente {
  padding: 6px 11px; border-radius: 10px 10px 3px 10px; background: var(--wa-mia); color: var(--wa-testo); font-weight: 500; box-shadow: none;
}
.sfide .sf-voce__pannello--wa .sf-voce__msg--ai {
  padding: 6px 11px; border-radius: 3px 10px 10px 10px; background: var(--wa-bolla); color: var(--wa-testo); box-shadow: none;
}
.sfide .sf-voce__pannello--wa .sf-voce__puntini { height: 34px; border-radius: 3px 10px 10px 10px; background: var(--wa-bolla); box-shadow: none; }
.sfide .sf-voce__pannello--wa .sf-voce__puntini i { background: var(--wa-sec); }
.sfide .sf-voce__pannello--wa .sf-voce__msg:has(.sf-voce__scelte) { max-width: 94%; }
.sfide .sf-voce__scelte { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.sfide .sf-voce__scelte > span:not(.sf-vh) {
  padding: 5px 9px; border-radius: 999px; font-size: 12.5px; line-height: 1.2; font-weight: 600; color: var(--wa-verde);
  box-shadow: inset 0 0 0 1px rgba(0, 168, 132, 0.45);
}
.sfide .sf-voce__riepilogo {
  display: block; margin-top: 6px; padding: 5px 10px; border-radius: 6px; border-left: 3px solid var(--wa-verde);
  font-size: 13.5px; line-height: 1.3; font-weight: 700; color: var(--wa-testo); background: rgba(255, 255, 255, 0.05);
}
.sfide :is(.sf-voce__scelte, .sf-voce__riepilogo) { transition: opacity 300ms ease-out, transform 500ms var(--curva); }
.sfide .sf-voce__msg.sf-pensa :is(.sf-voce__scelte, .sf-voce__riepilogo) { opacity: 0; }

/* while a conversation plays: hidden until its turn; the bubble of the assistant waits while the dots move */
.sfide.sf-anima .sf-voce__pannello:not(.sf-fatto) .sf-voce__msg:not(.sf-on):not(.sf-pensa) { opacity: 0; transform: translateY(10px) scale(0.97); }
.sfide.sf-anima .sf-voce__pannello:not(.sf-fatto) .sf-voce__msg--ai:not(.sf-on) .sf-parola { opacity: 0; transition-delay: 0ms; }
.sfide.sf-anima .sf-voce__pannello--chat:not(.sf-fatto) .sf-voce__msg--ai:not(.sf-on) { background: transparent; box-shadow: none; }
.sfide.sf-anima .sf-voce__pannello:not(.sf-fatto) .sf-voce__msg--ai:not(.sf-on) :is(.sf-voce__scelte, .sf-voce__riepilogo) { opacity: 0; transform: translateY(6px); transition-delay: 0ms; }
.sfide.sf-anima .sf-voce__msg--ai.sf-on :is(.sf-voce__scelte, .sf-voce__riepilogo) { transition-delay: 420ms; }
.sfide .sf-voce__msg.sf-pensa .sf-voce__testo { opacity: 0; }

/* without movement (reduced motion, html.fermo): switching module or tab is instant */
.sfide:not(.sf-anima) :is(.sf-app__pannello > *, .sf-app__riga, .sf-app__tab, .sf-voce__pannello, .sf-voce__pillola),
.sfide:not(.sf-anima) .sf-percorso__tappa::after { transition: none; }

/* ── Tablet ──────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .sfide .sfide__problema, .sfide .sfide__risposta { max-width: 22em; }
}

/* ── Computer: colonne uguali, testo e visual alternati ──── */
@media (min-width: 1024px) {
  .sfide { padding-top: 152px; padding-bottom: 140px; }
  .sfide .sfide__lista { margin-top: 104px; gap: 168px; }
  .sfide .sfide__problema { font-size: clamp(36px, 3.2vw, 50px); }
  .sfide .sfide__risposta { font-size: clamp(19px, 1.5vw, 22px); margin-top: 22px; }
  .sfide .sfide__colpo { font-size: 16.5px; }
  .sfide .sfide__link { margin-top: 32px; }

  /* text and visual side by side, the two columns the same width */
  .sfide .sfide__blocco:not(.sfide__blocco--largo) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--sf-col);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". palco" "testo palco" "link palco" ". palco";
  }
  .sfide .sfide__blocco--inverso:not(.sfide__blocco--largo) { grid-template-areas: "palco ." "palco testo" "palco link" "palco ."; }
  .sfide .sfide__blocco:not(.sfide__blocco--largo) > .sfide__testo { grid-area: testo; }
  .sfide .sfide__blocco:not(.sfide__blocco--largo) > .sfide__palco { grid-area: palco; margin-top: 0; align-self: center; }
  .sfide .sfide__blocco:not(.sfide__blocco--largo) > .sfide__link { grid-area: link; }
  /* social: under the two columns, «Senza spendere un euro in sponsorizzate.» across the whole width */
  .sfide .sfide__blocco--social:not(.sfide__blocco--largo) {
    grid-template-rows: 1fr auto auto 1fr auto;
    grid-template-areas: ". palco" "testo palco" "link palco" ". palco" "zero zero";
  }
  .sfide .sfide__blocco--social > .sfide__zero { grid-area: zero; margin-top: 112px; font-size: clamp(56px, 6.4vw, 100px); text-wrap: wrap; }

  /* the wide blocks: the problem on the left, the answer on the right (same columns), the visual across under them */
  .sfide .sfide__blocco--largo .sfide__testo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--sf-col); align-items: end;
    grid-template-areas: "etichetta etichetta" "problema lato";
  }
  .sfide .sfide__blocco--largo .sfide__etichetta { grid-area: etichetta; }
  .sfide .sfide__blocco--largo .sfide__problema { grid-area: problema; }
  .sfide .sfide__blocco--largo .sfide__lato { grid-area: lato; }
  .sfide .sfide__blocco--largo .sfide__risposta { margin-top: 0; text-wrap: balance; }
  .sfide .sfide__blocco--largo > .sfide__link { margin-top: 40px; }
  .sfide .sfide__blocco--siti > .sfide__link { justify-self: center; margin-top: 28px; }

  /* siti: three phones in a row, big */
  .sfide .sf-siti__palco { height: 600px; margin-top: 44px; }
  .sfide.sf-pin .sf-siti { height: 250vh; height: 250svh; }
  .sfide.sf-pin .sf-siti__fermo { padding: calc(var(--testa) + 28px) 0 22px; }
  .sfide.sf-pin .sf-siti__palco { margin-top: 36px; }
  .sfide .sf-siti__tels, .sfide .sf-siti__nomi {
    --sf-nomi: 46px; --sf-spazio: clamp(32px, 4vw, 64px);
    --h: min(calc(100cqh - var(--sf-nomi)), calc((100cqw - var(--sf-spazio) * 2) / 3 * 2.164), 600px);
    --fx: calc(var(--w) + var(--sf-spazio)); --fy: 0px; --fr: 0deg; --fs: 1;
  }
  .sfide :is(.sf-siti__tel--sx, .sf-siti__tel--dx) .sf-siti__schermo::after { background: linear-gradient(155deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 26%); }
  .sfide .sf-siti__nomi { grid-template-columns: repeat(3, var(--w)); column-gap: var(--sf-spazio); justify-content: center; font-size: 14px; }

  /* sponsorizzate: the three campaigns in a row, the wire across; the three lines line up from one campaign to the next */
  .sfide .sf-percorso { margin-top: 64px; }
  .sfide .sf-percorso__tappe { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 0 var(--sf-col); }
  .sfide .sf-percorso__tappa { display: grid; grid-row: span 4; grid-template-rows: subgrid; padding: 42px 0 0; }
  .sfide .sf-percorso__dati { grid-row: 2 / span 3; grid-template-rows: subgrid; margin-top: 14px; max-width: none; }
  .sfide .sf-percorso__tappa:not(:last-child)::before, .sfide .sf-percorso__tappa:not(:last-child)::after {
    left: 9px; top: 10px; width: calc(100% + var(--sf-col)); height: 2px;
  }
  .sfide .sf-percorso__tappa:not(:last-child)::after {
    background: linear-gradient(90deg, #F4EAFF, #C9A9E9 45%, #8B6FB8);
    transform-origin: 0 50%; transform: scaleX(var(--f));
  }
  .sfide .sf-percorso__nome { font-size: 26px; }
  .sfide .sf-percorso__dati > div { padding: 13px 0 14px; }
  .sfide .sf-percorso__dati dt { font-size: 13px; }
  .sfide .sf-percorso__dati dd { font-size: 16px; }
  .sfide .sf-percorso__legge { margin-top: 36px; padding-top: 18px; font-size: 14px; }

  /* sponsorizzate: tabs, words and the consent line as one group on the left, centred beside the phone on the right */
  .sfide .sf-camp {
    margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr;
    column-gap: var(--sf-col);
  }
  .sfide .sf-camp__schede { grid-area: 2 / 1; z-index: 2; }
  .sfide .sf-camp__scheda { min-height: 54px; padding: 6px 10px; font-size: 14.5px; }
  .sfide .sf-camp__parole > span { display: inline; }
  .sfide .sf-camp__n {
    display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
    font-size: 11.5px; font-weight: 700; background: rgba(201, 169, 233, 0.14); color: var(--lilla-chiaro);
  }
  .sfide .sf-camp__pannelli { grid-area: 1 / 1 / 6 / 3; grid-template-columns: subgrid; grid-template-rows: subgrid; }
  .sfide .sf-camp__pannello { grid-column: 1 / 3; grid-row: 1 / 6; grid-template-columns: subgrid; }
  .sfide .sf-camp__spiega { grid-area: 3 / 1; padding: 34px 0 0; }
  .sfide .sf-camp__demo { grid-area: 1 / 2 / 6 / 3; padding-top: 0; }
  .sfide .sf-camp__legge { grid-area: 4 / 1; z-index: 2; margin-top: 30px; font-size: 14px; }
  .sfide .sf-camp__gergo { font-size: 13.5px; }
  .sfide .sf-camp__dati { margin-top: 14px; }
  .sfide .sf-camp__dati > div { grid-template-columns: 124px minmax(0, 1fr); padding: 15px 0 16px; }
  .sfide .sf-camp__dati dt { padding-top: 4px; font-size: 13.5px; }
  .sfide .sf-camp__dati dd { font-size: 20px; line-height: 1.4; }
  .sfide .sf-k { --sw: 290px; --sh: 600px; border-radius: 41px; }
  .sfide .sf-camp__tel { padding: 9px; border-radius: 50px; }

  /* the visuals of the side-by-side blocks: about the same height */
  .sfide .sf-reel { max-width: 500px; }
  .sfide .sf-app__telefono { width: 360px; }
  .sfide .sf-app__schermo { height: 660px; }
  .sfide .sf-app__titolo { font-size: 34px; }
  .sfide .sf-app__riga { min-height: 62px; }
  .sfide .sf-voce { padding: 16px 18px 22px; }
  .sfide .sf-voce__msg { font-size: 15.5px; }
}

/* Sites inside the phones tied to the scroll by the browser itself, on the same beat as the sticky phones: no shaking.
   The stretch where the block stands still is the «contain» range of the tall .sf-siti; the sites run through 90% of it.
   sfide.js only writes --corsa (how far each long screenshot can travel). Without support, sfide.js moves them. */
@supports (animation-timeline: view()) {
  .sfide.sf-pin .sf-siti { view-timeline: --sf-siti block; }
  .sfide.sf-pin .sf-siti__pagina { animation: sf-siti-scorri linear both; animation-timeline: --sf-siti; animation-range: contain 0% contain 90%; }
  .sfide.sf-pin .sf-siti__barra { animation: sf-siti-barra linear both; animation-timeline: --sf-siti; animation-range: contain 0% contain 90%; }
}
@keyframes sf-siti-scorri { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, calc(var(--corsa, 0) * -1px), 0); } }
@keyframes sf-siti-barra { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, calc(var(--corsa-barra, 0) * 1px), 0); } }

/* ── 22/10 sera · Siti: no standing-still stretch and nothing tied to the finger (it shook on iPhones without
   scroll timelines). The three phones stay whole on screen; inside, each site scrolls by itself, slow, on the
   compositor, down to the footer and back, only while the block is on screen. ── */
.sfide.sf-pin .sf-siti { height: auto; view-timeline: none; }
.sfide.sf-pin .sf-siti__fermo { position: static; height: auto; padding: 0; }
.sfide.sf-pin .sf-siti__palco, .sfide .sf-siti__palco { flex: none; height: min(128vw, 520px); margin-top: 28px; }
.sfide .sf-siti .sf-siti__pagina, .sfide.sf-pin .sf-siti .sf-siti__pagina {
  animation: sf-siti-scorri 26s ease-in-out infinite alternate; animation-timeline: auto; animation-range: normal;
  animation-play-state: paused;
}
.sfide .sf-siti .sf-siti__barra, .sfide.sf-pin .sf-siti .sf-siti__barra {
  animation: sf-siti-barra 26s ease-in-out infinite alternate; animation-timeline: auto; animation-range: normal;
  animation-play-state: paused;
}
.sfide .sf-siti__tel--sx .sf-siti__pagina, .sfide .sf-siti__tel--sx .sf-siti__barra { animation-delay: -6s; }
.sfide .sf-siti__tel--dx .sf-siti__pagina, .sfide .sf-siti__tel--dx .sf-siti__barra { animation-delay: -13s; }
.sfide .sfide__blocco.sf-in-vista .sf-siti .sf-siti__pagina, .sfide .sfide__blocco.sf-in-vista .sf-siti .sf-siti__barra { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .sfide .sf-siti__pagina, .sfide .sf-siti__barra { animation: none; } }

/* ── Campagne: the phone fits on the screen together with its three lines ── */
@media (max-width: 760px) { .sfide .sf-camp__tel { zoom: 0.8; } }
