/* ===========================================================
   Fymera — layout e stile delle pagine di contenuto.

   NAMESPACE: root .fy-site-page + classi .fys-*
   Footer .fyf-*, utility Tailwind .fyt-*.

   I token sono gli STESSI della homepage (--site-bg #080810,
   superfici, bordi .12, raggio 22px, ombre) e le superfici usano
   il vetro smerigliato di .service-inner: le pagine devono
   sembrare lo stesso sito, non un tema diverso.
   =========================================================== */

.fy-site-page {
  /* --- token allineati alla homepage --- */
  --fys-grad: linear-gradient(90deg, #ff007f, #5a1a86 55%, #1e90ff);
  --fys-accent: #ff2d8f;
  --fys-bg: #080810;
  --fys-surface: rgba(0, 0, 0, 0.28);
  --fys-surface-2: rgba(255, 255, 255, 0.04);
  --fys-stroke: rgba(255, 255, 255, 0.12);
  --fys-stroke-2: rgba(255, 255, 255, 0.28);
  --fys-text: #eef2ff;
  --fys-muted: #c2c7db;
  --fys-r-lg: 22px;
  --fys-r-md: 16px;
  --fys-shadow: 0 14px 50px rgba(0, 0, 0, 0.42);
  --fys-shadow-soft: 0 10px 34px rgba(0, 0, 0, 0.28);

  /* --- ritmo: una scala sola, usata ovunque --- */
  --fys-gutter: 56px;
  --fys-max: 1240px;
  --fys-section-y: clamp(72px, 7vw, 128px);
  --fys-gap: clamp(20px, 1.9vw, 30px);
  --fys-stack: 22px;

  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--fys-bg);
  color: var(--fys-text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

/* Sfondo con aloni come in homepage: le pagine non devono essere
   un rettangolo nero piatto. */
.fy-site-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 8% 2%, rgba(255, 0, 127, 0.10), transparent 58%),
    radial-gradient(880px 640px at 92% 18%, rgba(30, 144, 255, 0.09), transparent 58%),
    radial-gradient(1000px 700px at 50% 62%, rgba(90, 26, 134, 0.10), transparent 62%),
    radial-gradient(760px 560px at 12% 96%, rgba(255, 0, 127, 0.07), transparent 60%);
}

.fy-site-page *,
.fy-site-page *::before,
.fy-site-page *::after { box-sizing: border-box; }

.fy-site-page img { max-width: 100%; height: auto; display: block; }
.fy-site-page a { color: inherit; }
.fy-site-page :focus-visible {
  outline: 2px solid var(--fys-accent);
  outline-offset: 3px;
  border-radius: 10px;
}

.entry-content > .fy-site-page,
.wp-block-post-content > .fy-site-page {
  max-width: none; width: 100%; margin-inline: 0;
}

/* -----------------------------------------------------------
   CONTAINER
   ----------------------------------------------------------- */
.fys-container {
  width: min(100% - var(--fys-gutter), var(--fys-max));
  margin-inline: auto;
}

/* -----------------------------------------------------------
   SEZIONI — intestazione a sinistra, contenuto a destra
   ----------------------------------------------------------- */
.fys-section {
  padding-block: var(--fys-section-y);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
}
.fys-section--tight { padding-block: calc(var(--fys-section-y) * 0.66); }

@media (min-width: 1000px) {
  .fys-section > .fys-container {
    display: grid;
    grid-template-columns: minmax(300px, 27%) 1fr;
    column-gap: clamp(48px, 5vw, 88px);
    align-items: start;
  }
  .fys-section > .fys-container > .fys-eyebrow,
  .fys-section > .fys-container > h2,
  .fys-section > .fys-container > .fys-lead { grid-column: 1; }

  .fys-section > .fys-container > *:not(.fys-eyebrow):not(h2):not(.fys-lead) {
    grid-column: 2;
    grid-row: 1 / span 99;
  }

  /* I bottoni appartengono al blocco di testo, non alla colonna dei
     contenuti: altrimenti finiscono in cima a destra, staccati. */
  .fys-section > .fys-container > .fys-actions { grid-column: 1; grid-row: auto; }

  /* Sezioni di solo testo: senza contenuto per la destra il layout a
     due colonne lascerebbe mezza pagina vuota. */
  .fys-section > .fys-container:not(:has(.fys-grid, .fys-cardlinks, .fys-faq,
      .fys-check, .fy-island, .fys-note, .fys-fallback)) { display: block; }
  .fys-section > .fys-container:not(:has(.fys-grid, .fys-cardlinks, .fys-faq,
      .fys-check, .fy-island, .fys-note, .fys-fallback)) .fys-lead { max-width: 64ch; }

  /* Il marquee è una riga sola: nella colonna destra resta compresso. */
  .fys-section > .fys-container:has([data-island="stack-marquee"]) { display: block; }
  .fys-section > .fys-container:has([data-island="stack-marquee"]) .fys-lead { max-width: 60ch; }

  /* Chiusura di pagina centrata */
  .fy-site-page > .fys-section:last-child > .fys-container { display: block; text-align: center; }
  .fy-site-page > .fys-section:last-child h2 { max-width: 24ch; margin-inline: auto; }
  .fy-site-page > .fys-section:last-child .fys-lead { max-width: 58ch; margin-inline: auto; }
  .fy-site-page > .fys-section:last-child .fys-eyebrow,
  .fy-site-page > .fys-section:last-child .fys-actions { justify-content: center; }
}

/* -----------------------------------------------------------
   HERO
   ----------------------------------------------------------- */
.fys-hero {
  padding-block: clamp(116px, 12vw, 190px) clamp(64px, 7vw, 104px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.fys-hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -20%;
  height: 150%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(820px 460px at 10% 12%, rgba(255, 0, 127, 0.18), transparent 62%),
    radial-gradient(760px 500px at 86% 0%, rgba(30, 144, 255, 0.15), transparent 60%),
    radial-gradient(980px 560px at 46% 98%, rgba(90, 26, 134, 0.18), transparent 66%);
}
.fys-hero .fys-container { display: block; }

/* -----------------------------------------------------------
   TIPOGRAFIA — corpi e interlinee generosi.
   Il tema applica Bebas Neue ai titoli: è condensato, quindi ha
   bisogno di corpi grandi e interlinea larga per restare leggibile.
   ----------------------------------------------------------- */
.fys-eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ba1ba;
  margin: 0 0 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}
.fys-eyebrow::before {
  content: '';
  width: 26px; height: 2px;
  border-radius: 2px;
  background: var(--fys-grad);
  flex: none;
}

.fy-site-page h1 {
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  font-weight: 700;
  margin: 0 0 26px;
  text-wrap: balance;
  max-width: 16ch;
  color: var(--fys-text);
}

.fy-site-page h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.008em;
  font-weight: 700;
  margin: 0 0 22px;
  text-wrap: balance;
  max-width: 16ch;
  color: var(--fys-text);
}

.fy-site-page h3 {
  font-size: clamp(20px, 1.6vw, 23px);
  line-height: 1.26;
  letter-spacing: 0.004em;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--fys-text);
}

.fys-lead {
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.62;
  color: var(--fys-muted);
  max-width: 48ch;
  margin: 0 0 var(--fys-stack);
  text-wrap: pretty;
}
.fys-hero .fys-lead { max-width: 58ch; font-size: clamp(19px, 1.6vw, 23px); }

.fy-site-page p {
  font-size: 17px;
  line-height: 1.72;
  max-width: 68ch;
  margin: 0 0 var(--fys-stack);
  text-wrap: pretty;
}
.fy-site-page p:last-child { margin-bottom: 0; }

.fys-grad {
  background: var(--fys-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -----------------------------------------------------------
   AZIONI
   ----------------------------------------------------------- */
.fys-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.fys-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.fys-btn:hover { transform: translateY(-2px); }

.fys-btn--primary {
  background: var(--fys-grad);
  color: #fff;
  box-shadow: 0 12px 34px rgba(255, 0, 127, 0.28);
}
.fys-btn--primary:hover { box-shadow: 0 18px 46px rgba(255, 0, 127, 0.40); }

.fys-btn--ghost {
  border-color: var(--fys-stroke-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fys-text);
  backdrop-filter: blur(10px) saturate(1.06);
  -webkit-backdrop-filter: blur(10px) saturate(1.06);
}
.fys-btn--ghost:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.09); }

/* -----------------------------------------------------------
   GRIGLIE
   ----------------------------------------------------------- */
.fys-grid { display: grid; gap: var(--fys-gap); grid-template-columns: 1fr; }
@media (min-width: 640px)  { .fys-grid--2, .fys-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .fys-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* -----------------------------------------------------------
   CARD — vetro smerigliato, come .service-inner in homepage
   ----------------------------------------------------------- */
.fys-card {
  position: relative;
  background: var(--fys-surface);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--fys-r-lg);
  padding: clamp(26px, 2.2vw, 34px);
  min-width: 0;
  overflow: hidden;
  backdrop-filter: blur(10px) saturate(1.06);
  -webkit-backdrop-filter: blur(10px) saturate(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--fys-shadow-soft);
  transition: border-color .28s ease, transform .28s ease, box-shadow .28s ease;
}
.fys-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--fys-grad);
  opacity: 0; transition: opacity .28s ease;
}
.fys-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), var(--fys-shadow);
}
.fys-card:hover::before { opacity: 1; }

.fys-card p { color: var(--fys-muted); font-size: 16px; line-height: 1.68; max-width: none; margin-bottom: 0; }
.fys-card h3 { margin-bottom: 11px; }
.fys-card img { border-radius: var(--fys-r-md); margin-bottom: 20px; aspect-ratio: 1; object-fit: cover; }

.fys-num {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--fys-accent);
  display: block;
  margin-bottom: 16px;
}

/* -----------------------------------------------------------
   ELENCHI
   ----------------------------------------------------------- */
.fys-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
@media (min-width: 900px) { .fys-check { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 44px; } }
.fys-check li {
  position: relative;
  padding-left: 30px;
  color: var(--fys-muted);
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 52ch;
}
.fys-check li::before {
  content: '';
  position: absolute; left: 0; top: 12px;
  width: 14px; height: 2px; border-radius: 2px;
  background: var(--fys-grad);
}
.fys-check strong { color: var(--fys-text); font-weight: 650; display: block; margin-bottom: 5px; font-size: 17px; }

/* -----------------------------------------------------------
   FAQ
   ----------------------------------------------------------- */
.fys-faq { display: grid; gap: 12px; max-width: none; }
.fys-faq details {
  background: var(--fys-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--fys-r-md);
  padding: 0 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .22s ease, background .22s ease;
}
.fys-faq details:hover { border-color: rgba(255, 255, 255, 0.24); }
.fys-faq details[open] { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.24); }
.fys-faq summary {
  cursor: pointer;
  padding: 24px 0;
  font-weight: 650;
  font-size: 17px;
  line-height: 1.45;
  list-style: none;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.fys-faq summary::-webkit-details-marker { display: none; }
.fys-faq summary::after {
  content: '';
  width: 11px; height: 11px; flex: none;
  border-right: 2px solid var(--fys-accent);
  border-bottom: 2px solid var(--fys-accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .24s ease;
}
.fys-faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.fys-faq details > p {
  color: var(--fys-muted);
  font-size: 16.5px;
  line-height: 1.72;
  padding-bottom: 26px;
  margin: 0;
  max-width: 76ch;
}

/* -----------------------------------------------------------
   NOTA
   ----------------------------------------------------------- */
.fys-note {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 3px solid var(--fys-accent);
  border-radius: 0 var(--fys-r-md) var(--fys-r-md) 0;
  background: linear-gradient(90deg, rgba(255, 0, 127, 0.09), rgba(255, 255, 255, 0.03) 45%);
  padding: 28px 32px;
  max-width: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.fys-note p { font-size: 16.5px; line-height: 1.7; color: var(--fys-muted); max-width: 72ch; }
.fys-note strong { color: var(--fys-text); }

/* -----------------------------------------------------------
   BREADCRUMB
   ----------------------------------------------------------- */
.fys-crumb {
  font-size: 13.5px;
  color: #868ca6;
  margin: 0 0 26px;
  display: flex; gap: 9px; flex-wrap: wrap;
  max-width: none;
}
.fys-crumb a { text-decoration: none; }
.fys-crumb a:hover { color: var(--fys-text); }

/* -----------------------------------------------------------
   CARD-LINK
   ----------------------------------------------------------- */
.fys-cardlinks {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--fys-gap); grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .fys-cardlinks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .fys-cardlinks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.fys-cardlinks a {
  position: relative;
  display: flex; flex-direction: column; height: 100%;
  padding: clamp(26px, 2.2vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--fys-r-lg);
  background: var(--fys-surface);
  backdrop-filter: blur(10px) saturate(1.06);
  -webkit-backdrop-filter: blur(10px) saturate(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--fys-shadow-soft);
  text-decoration: none;
  overflow: hidden;
  transition: border-color .28s ease, transform .28s ease, box-shadow .28s ease;
}
.fys-cardlinks a::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--fys-grad); opacity: 0; transition: opacity .28s ease;
}
.fys-cardlinks a:hover {
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), var(--fys-shadow);
}
.fys-cardlinks a:hover::before { opacity: 1; }
.fys-cardlinks a::after {
  content: '→';
  margin-top: auto; padding-top: 22px;
  color: var(--fys-accent); font-size: 19px;
  transition: transform .28s ease;
}
.fys-cardlinks a:hover::after { transform: translateX(6px); }
.fys-cardlinks .t { font-weight: 700; font-size: 21px; line-height: 1.24; display: block; margin-bottom: 10px; }
.fys-cardlinks .d { color: var(--fys-muted); font-size: 16px; line-height: 1.66; display: block; }

/* -----------------------------------------------------------
   ISLAND REACT
   ----------------------------------------------------------- */
.fy-island:empty { min-height: 0; }
.fys-fallback[hidden] { display: none !important; }

/* ===========================================================
   ANIMAZIONI DI SCROLL

   Le classi di partenza vengono aggiunte da fymera-reveal.js:
   senza JavaScript non viene nascosto NIENTE, quindi il contenuto
   resta sempre leggibile e indicizzabile.
   =========================================================== */
html.fys-anim .fys-rv {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity .78s cubic-bezier(.22, 1, .36, 1),
    transform .78s cubic-bezier(.22, 1, .36, 1),
    filter .78s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--fys-d, 0ms);
  will-change: opacity, transform;
}
html.fys-anim .fys-rv.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html.fys-anim .fys-rv {
    opacity: 1 !important; transform: none !important;
    filter: none !important; transition: none !important;
  }
  .fys-btn:hover, .fys-card:hover, .fys-cardlinks a:hover { transform: none; }
  .fy-site-page *, .fy-site-page *::before, .fy-site-page *::after {
    animation-duration: .01ms !important;
  }
}

/* -----------------------------------------------------------
   MOBILE
   ----------------------------------------------------------- */
@media (max-width: 699px) {
  .fy-site-page { --fys-gutter: 36px; font-size: 16.5px; }
  .fy-site-page h1, .fy-site-page h2 { max-width: none; }
  .fys-lead { max-width: none; }
  .fys-btn { width: 100%; justify-content: center; }
  .fys-card, .fys-cardlinks a { padding: 24px; }
}

/* ===========================================================
   VISUAL ASTRATTI DELLA HERO — geometrie in CSS puro.
   Nessuna immagine: griglie di sistema, schermi, livelli, segnale.
   La variante usa le classi page-id-* stampate da WordPress.
   =========================================================== */
.fys-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  right: -4%;
  top: 50%;
  translate: 0 -50%;
  width: min(46%, 640px);
  aspect-ratio: 1 / 1;
  opacity: 0.9;
  /* BASE — piano quadrettato in prospettiva */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(1000px) rotateX(56deg) rotateZ(-34deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 26%, transparent 76%);
  mask-image: radial-gradient(closest-side, #000 26%, transparent 76%);
}

/* WEB APP / SERVIZI — griglia con nodi luminosi */
body.page-id-1663 .fys-hero::after,
body.page-id-1661 .fys-hero::after {
  background-image:
    radial-gradient(circle, rgba(255, 0, 127, 0.6) 1.8px, transparent 2.4px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 96px 96px, 48px 48px, 48px 48px;
}

/* APP MOBILE — schermo in prospettiva */
body.page-id-1664 .fys-hero::after {
  background-image:
    repeating-linear-gradient(180deg, transparent 0 28px,
      rgba(255, 255, 255, 0.11) 28px 29px, transparent 29px 58px),
    linear-gradient(160deg, rgba(30, 144, 255, 0.12), rgba(255, 0, 127, 0.12));
  background-size: 100% 58px, 100% 100%;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: perspective(1100px) rotateY(-24deg) rotateX(9deg) rotateZ(-3deg);
  width: min(32%, 380px);
  aspect-ratio: 9 / 16;
  -webkit-mask-image: linear-gradient(200deg, #000 44%, transparent 90%);
  mask-image: linear-gradient(200deg, #000 44%, transparent 90%);
}

/* AI — onde concentriche, il segnale che si propaga */
body.page-id-1665 .fys-hero::after {
  background-image:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 32px,
      rgba(255, 255, 255, 0.12) 32px 33px, transparent 33px 66px),
    radial-gradient(circle at 50% 50%, rgba(255, 0, 127, 0.24), transparent 58%);
  background-size: auto, auto;
  transform: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 34%, transparent 80%);
  mask-image: radial-gradient(closest-side, #000 34%, transparent 80%);
}

/* PORTALI — livelli sovrapposti */
body.page-id-1666 .fys-hero::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)),
    linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)),
    linear-gradient(120deg, rgba(255, 0, 127, 0.18), rgba(30, 144, 255, 0.16));
  background-size: 74% 60%, 86% 60%, 100% 60%;
  background-position: 0% 12%, 8% 32%, 16% 52%;
  background-repeat: no-repeat;
  transform: perspective(1200px) rotateY(-20deg) rotateX(12deg);
  -webkit-mask-image: linear-gradient(210deg, #000 48%, transparent 92%);
  mask-image: linear-gradient(210deg, #000 48%, transparent 92%);
}

/* SITI WEB — ritmo di un wireframe */
body.page-id-1667 .fys-hero::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16)),
    linear-gradient(rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.09)),
    linear-gradient(rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.09)),
    linear-gradient(90deg, rgba(255, 0, 127, 0.34), rgba(90, 26, 134, 0.26)),
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06));
  background-size: 58% 13px, 84% 9px, 72% 9px, 30% 36px, 100% 46%;
  background-position: 0% 16%, 0% 30%, 0% 39%, 0% 52%, 0% 78%;
  background-repeat: no-repeat;
  transform: perspective(1200px) rotateY(-19deg) rotateX(7deg);
  -webkit-mask-image: linear-gradient(200deg, #000 52%, transparent 94%);
  mask-image: linear-gradient(200deg, #000 52%, transparent 94%);
}

body.page-id-176 .fys-hero::after,
body.page-id-604 .fys-hero::after { opacity: 0.55; }

@media (max-width: 1099px) { .fys-hero::after { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .fys-hero::after { animation: fys-drift 26s ease-in-out infinite alternate; }
}
@keyframes fys-drift {
  from { translate: 0 -50%; }
  to   { translate: 0 calc(-50% - 20px); }
}

/* ===========================================================
   PAGINE DI TESTO (privacy, cookie policy, termini)

   Erano rimaste senza stile: il tema le rendeva con testo scuro
   o addirittura trasparente su fondo nero, quindi illeggibili.
   Il contenuto NON viene toccato — è generato da Complianz e può
   essere rigenerato: qui si stila soltanto.
   =========================================================== */
.fys-prose { padding-block: clamp(112px, 11vw, 172px) clamp(72px, 7vw, 120px); }

.fys-prose .fys-container { max-width: none; }
/* Niente vincolo di larghezza qui: alcune di queste pagine hanno
   un impaginato proprio, che verrebbe tagliato. La misura di lettura
   è imposta solo ai paragrafi. */
.fys-prose .fys-doc { width: 100%; }

.fys-prose h1,
.fys-prose h2,
.fys-prose h3,
.fys-prose h4 { color: var(--fys-text) !important; }

.fys-prose h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.06; margin: 0 0 32px; max-width: 20ch; }
.fys-prose h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.16; margin: 56px 0 18px; max-width: 26ch; }
.fys-prose h3 { font-size: 21px; margin: 36px 0 14px; }

.fys-prose p,
.fys-prose li,
.fys-prose td,
.fys-prose th,
.fys-prose div,
.fys-prose span {
  color: var(--fys-muted) !important;
  font-size: 17px;
  line-height: 1.76;
}

.fys-prose p { max-width: 74ch; margin: 0 0 20px; }
.fys-prose strong, .fys-prose b { color: var(--fys-text) !important; font-weight: 650; }

.fys-prose ul, .fys-prose ol { max-width: 74ch; margin: 0 0 24px; padding-left: 24px; }
.fys-prose li { margin-bottom: 10px; }
.fys-prose li::marker { color: var(--fys-accent); }

.fys-prose a { color: #ff6bb0 !important; text-decoration: underline; text-underline-offset: 3px; }
.fys-prose a:hover { color: #fff !important; }

.fys-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 28px;
  display: block;
  overflow-x: auto;
}
.fys-prose th, .fys-prose td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 14px;
  text-align: left;
  font-size: 15.5px;
}
.fys-prose th { color: var(--fys-text) !important; background: rgba(255, 255, 255, 0.05); }

/* I blocchi generati dal plugin cookie devono restare leggibili */
.fys-prose .cmplz-document,
.fys-prose .cmplz-document * { color: var(--fys-muted) !important; }
.fys-prose .cmplz-document h1,
.fys-prose .cmplz-document h2,
.fys-prose .cmplz-document h3,
.fys-prose .cmplz-document strong { color: var(--fys-text) !important; }
