/* Slider Module */
.wf-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius, 8px);
}

.wf-slider--fullwidth {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
}

.wf-slider__track {
  display: flex;
}

.wf-slider__slide {
  display: none;
  width: 100%;
  position: relative;
  /* Altezza stabile riservata PRIMA del load immagine → niente collasso/flash/CLS al cambio slide.
     L'aspect-ratio prenota il box in base alla larghezza; max-height lo cappa come prima (520px). */
  aspect-ratio: 16 / 9;
  max-height: 520px;
}

.wf-slider__slide.is-active {
  display: block;
}

.wf-slider__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wf-slider__overlay { position: absolute; inset: 0; pointer-events: none; }

/* NB: la regola base .wf-slider__content è definita più in basso, accanto alle varianti
   data-pos (sezione "Posizionamento contenuto per-slide") — qui rimossa la duplicazione. */

.wf-slider__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.wf-slider__text {
  font-size: 1rem;
  margin: 0 0 0.8rem;
  opacity: 0.9;
}

.wf-slider__btn {
  display: inline-flex;
  align-items: center;
  padding: var(--btn-pad-v, 0.5rem) var(--btn-pad-h, 1.4rem);
  background: var(--color-primary, #2563eb);
  border: var(--btn-border-w, 2px) solid var(--color-primary, #2563eb);
  color: #fff;
  border-radius: var(--radius-btn, var(--radius, 8px));
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  align-self: flex-end;
}

.wf-slider__prev,
.wf-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}

.wf-slider__prev:hover,
.wf-slider__next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.wf-slider__prev {
  left: 12px;
}

.wf-slider__next {
  right: 12px;
}

.wf-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.wf-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.wf-slider__dot.is-active {
  background: #fff;
}

@media (max-width: 640px) {
  .wf-slider__content {
    padding: 1rem;
  }
  .wf-slider__title {
    font-size: 1.1rem;
  }
  .wf-slider__prev,
  .wf-slider__next {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}

/* ── Gallery ─────────────────────────────────────────────────── */
.wf-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .wf-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .wf-gallery { grid-template-columns: 1fr; }
}
.wf-gallery__item {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}
.wf-gallery__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.wf-gallery__item:hover .wf-gallery__img {
  transform: scale(1.04);
}

/* ── Lightbox ────────────────────────────────────────────────── */
.wf-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.wf-lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}
.wf-lightbox__caption {
  color: #fff;
  font-size: .9rem;
  text-align: center;
}
.wf-lightbox__close,
.wf-lightbox__prev,
.wf-lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
}
.wf-lightbox__close { top: 16px; right: 20px; }
.wf-lightbox__prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.wf-lightbox__next  { right: 16px; top: 50%; transform: translateY(-50%); }

/* ── Media+Testo ─────────────────────────────────────────────── */
.wf-media-testo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.wf-media-testo--right .wf-media-testo__media { order: 2; }
.wf-media-testo--right .wf-media-testo__content { order: 1; }
.wf-media-testo__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.wf-media-testo__title { margin: 0 0 .75rem; font-size: 1.4rem; }
.wf-media-testo__body { margin: 0 0 1rem; line-height: 1.6; }
.wf-media-testo__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.wf-media-testo__btn {
  display: inline-flex;
  align-items: center;
  padding: var(--btn-pad-v, .5rem) var(--btn-pad-h, 1.25rem);
  border-radius: var(--radius-btn, 4px);
  background: var(--color-primary, #1a73e8);
  border: var(--btn-border-w, 2px) solid var(--color-primary, #1a73e8);
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  align-self: flex-end;
}
@media (max-width: 640px) {
  .wf-media-testo { grid-template-columns: 1fr; }
  .wf-media-testo--right .wf-media-testo__media { order: 0; }
  .wf-media-testo--right .wf-media-testo__content { order: 0; }
}

.wf-media-testo__subtitle { margin: 0 0 .75rem; font-size: 1.1rem; opacity: .85; }
.wf-media-testo--overlay {
  display: flex;
  align-items: center;
  min-height: 340px;
  padding: 3rem 2rem;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}
.wf-media-testo--overlay .wf-media-testo__content { align-items: flex-start; max-width: 640px; }
.wf-media-testo--overlay .wf-media-testo__btn { align-self: flex-end; }

/* ── Cards ───────────────────────────────────────────────────── */
.wf-cards {
  display: grid;
  grid-template-columns: repeat(var(--wf-cols, 3), 1fr);
  gap: 1.5rem;
}
.wf-cards[data-cols="1"] { --wf-cols: 1; }
.wf-cards[data-cols="2"] { --wf-cols: 2; }
.wf-cards[data-cols="3"] { --wf-cols: 3; }
.wf-cards[data-cols="4"] { --wf-cols: 4; }
@media (max-width: 768px) { .wf-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .wf-cards { grid-template-columns: 1fr; } }
.wf-cards__item {
  padding: 1.5rem;
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 8px;
  text-align: center;
}
.wf-cards__icon { font-size: 2rem; margin-bottom: .7rem; }
.wf-cards__media { margin-bottom: .8rem; }
.wf-cards__media img { width: 100%; height: auto; display: block; border-radius: 4px; object-fit: cover; }
.wf-cards[data-cols="2"] .wf-cards__media img { aspect-ratio: 16 / 9; }
.wf-cards[data-cols="3"] .wf-cards__media img { aspect-ratio: 4 / 3; }
.wf-cards[data-cols="4"] .wf-cards__media img { aspect-ratio: 1 / 1; }
.wf-cards__title { margin: 0 0 .5rem; font-size: 1.1rem; }
.wf-cards__body { margin: 0 0 1rem; color: var(--color-muted, #666); font-size: .95rem; }
.wf-cards__link {
  display: inline-block;
  font-size: .9rem;
  color: var(--color-primary, #1a73e8);
  text-decoration: none;
  font-weight: 600;
}

/* ── CTA / Banner ────────────────────────────────────────────── */
.wf-cta { position: relative; padding: 3rem 1.5rem; text-align: center; }
.wf-cta__inner { position: relative; max-width: 680px; margin: 0 auto; }
.wf-cta__title { margin: 0 0 .75rem; font-size: 1.8rem; }
.wf-cta__body { margin: 0 0 1.5rem; font-size: 1.05rem; opacity: .9; }
.wf-cta__btn {
  display: inline-block;
  padding: .7rem 2rem;
  border-radius: 4px;
  background: rgba(255,255,255,.2);
  border: 2px solid currentColor;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background .2s;
}
.wf-cta__btn:hover { background: rgba(255,255,255,.35); }

/* ── Accordion ───────────────────────────────────────────────── */
.wf-accordion { border: 1px solid var(--color-border, #e0e0e0); border-radius: 6px; overflow: hidden; }
.wf-accordion__item { border-bottom: 1px solid var(--color-border, #e0e0e0); }
.wf-accordion__item:last-child { border-bottom: none; }
.wf-accordion__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wf-accordion__question::after { content: '+'; font-size: 1.2rem; }
.wf-accordion__question[aria-expanded="true"]::after { content: '−'; }
.wf-accordion__answer { padding: .25rem 1.25rem 1rem; line-height: 1.6; }

/* ── Testimonial ─────────────────────────────────────────────── */
.wf-testimonials { position: relative; overflow: hidden; }
.wf-testimonials__slide { display: none; text-align: center; padding: 2rem 1.5rem; }
.wf-testimonials__slide.is-active { display: block; }
.wf-testimonials__avatar {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  display: block; margin: 0 auto 1rem;
}
.wf-testimonials__quote {
  font-size: 1.1rem; font-style: italic; line-height: 1.7;
  margin: 0 0 1.25rem; color: var(--color-text, #333);
}
.wf-testimonials__author { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.wf-testimonials__name { font-weight: 700; font-size: .95rem; }
.wf-testimonials__role { font-size: .85rem; color: var(--color-muted, #666); }
.wf-testimonials__controls {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 1rem;
}
.wf-testimonials__prev,
.wf-testimonials__next {
  background: none; border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 50%; width: 36px; height: 36px; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.wf-testimonials__prev:hover,
.wf-testimonials__next:hover { background: var(--color-border, #e0e0e0); }
.wf-testimonials__dots { display: flex; gap: 6px; }
.wf-testimonials__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-border, #e0e0e0); border: none; cursor: pointer; padding: 0;
  transition: background .2s;
}
.wf-testimonials__dot.is-active { background: var(--color-primary, #1a73e8); }

/* ── Button ──────────────────────────────────────────────────── */
.wf-btn {
  display: inline-block; padding: .55rem 1.4rem; border-radius: 4px;
  text-decoration: none; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: opacity .2s;
  border: var(--btn-border-w, 2px) solid transparent;
}
.wf-btn:hover { opacity: .85; }
.wf-btn--primary   { background: var(--color-primary, #1a73e8); color: #fff; border: var(--btn-border-w, 2px) solid var(--color-primary, #1a73e8); }
.wf-btn--secondary { background: var(--color-muted, #666); color: #fff; border: var(--btn-border-w, 2px) solid var(--color-muted, #666); }
.wf-btn--outline   { background: transparent; border: var(--btn-border-w, 2px) solid var(--color-primary, #1a73e8); color: var(--color-primary, #1a73e8); }
.wf-btn--small  { padding: .35rem .9rem; font-size: .85rem; }
.wf-btn--normal { padding: .55rem 1.4rem; font-size: .95rem; }
.wf-btn--large  { padding: .75rem 2rem; font-size: 1.05rem; }

/* Override .content a color/underline for module anchor-buttons */
a.wf-cta__btn         { color: inherit; text-decoration: none; }
a.wf-media-testo__btn { color: #fff; text-decoration: none; }
a.wf-btn              { text-decoration: none; }
a.wf-btn--primary     { color: #fff; }
a.wf-btn--secondary   { color: #fff; }
a.wf-btn--outline     { color: var(--color-primary, #1a73e8); }

/* ── Video ───────────────────────────────────────────────────── */
.wf-video { width: 100%; }
.wf-video__player { width: 100%; height: auto; display: block; border-radius: 4px; }

/* ── Audio ───────────────────────────────────────────────────── */
.wf-audio { width: 100%; }
.wf-audio__player { width: 100%; }

/* ── Section ─────────────────────────────────────────────────── */
/* Fase 2 (G): ancore menu one-page — l'header sticky non copre il target */
.wf-section[id] {
  scroll-margin-top: var(--header-h, 60px);
}

.wf-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.wf-section--fullwidth {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.wf-section--boxed {
  max-width: var(--max-width, 1140px);
  margin-left: auto;
  margin-right: auto;
}

.wf-section__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.wf-section__overlay--dark  { background: #000; }
.wf-section__overlay--light { background: #fff; }
.wf-section__inner {
  position: relative;
  max-width: var(--max-width, 1140px);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wf-section__inner--full { max-width: none; padding: 0; }
.wf-section--pad-sm  { padding-top: calc(var(--space, 96px) / 3);       padding-bottom: calc(var(--space, 96px) / 3); }
.wf-section--pad-md  { padding-top: calc(var(--space, 96px) * 2 / 3);   padding-bottom: calc(var(--space, 96px) * 2 / 3); }
.wf-section--pad-lg  { padding-top: var(--space, 96px);                  padding-bottom: var(--space, 96px); }
.wf-section--pad-xl  { padding-top: calc(var(--space, 96px) * 3 / 2);   padding-bottom: calc(var(--space, 96px) * 3 / 2); }
.wf-section--center  { text-align: center; }

/* ── Fullwidth modifier (tutti i moduli) ─────────────────────── */
.wf-cta--fullwidth,
.wf-testimonials--fullwidth,
.wf-cards--fullwidth,
.wf-media-testo--fullwidth,
.wf-accordion--fullwidth,
.wf-gallery--fullwidth,
.wf-audio--fullwidth,
.wf-video--fullwidth {

  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
}

/* ── Focus visible (a11y) ──────────────────────────────────────────────────── */
.btn:focus-visible, button:focus-visible, [type="submit"]:focus-visible {
  outline: 2px solid var(--ink, #111);
  outline-offset: 2px;
}

/* ── Slider — Ken Burns + posizionamento contenuto (Task slider-potenziamento) ── */
.wf-slider__slide { overflow: hidden; }

/* Ken Burns (livello slider, applicato a tutte le immagini) */
@keyframes wf-kb-in  { from { transform: scale(1); }    to { transform: scale(1.12); } }
@keyframes wf-kb-out { from { transform: scale(1.12); } to { transform: scale(1); } }
.wf-slider__slide.is-active .wf-slider__img--kb-in  { animation: wf-kb-in  9s ease-out forwards; }
.wf-slider__slide.is-active .wf-slider__img--kb-out { animation: wf-kb-out 9s ease-out forwards; }
@media (prefers-reduced-motion: reduce) {
  .wf-slider__slide .wf-slider__img--kb-in,
  .wf-slider__slide .wf-slider__img--kb-out { animation: none !important; }
}

/* Posizionamento contenuto per-slide: la content copre la slide, posiziona un box interno */
.wf-slider__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  background: none;
}
.wf-slider__content[data-pos-h="left"]   { justify-content: flex-start; }
.wf-slider__content[data-pos-h="center"] { justify-content: center; }
.wf-slider__content[data-pos-h="right"]  { justify-content: flex-end; }
.wf-slider__content[data-pos-v="top"]    { align-items: flex-start; }
.wf-slider__content[data-pos-v="center"] { align-items: center; }
.wf-slider__content[data-pos-v="bottom"] { align-items: flex-end; }
.wf-slider__box {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 70%;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.45));
  border-radius: var(--radius, 8px);
  color: #fff;
}
.wf-slider__content[data-pos-h="left"]   .wf-slider__box { align-items: flex-start; text-align: left; }
.wf-slider__content[data-pos-h="center"] .wf-slider__box { align-items: center; text-align: center; }
.wf-slider__content[data-pos-h="right"]  .wf-slider__box { align-items: flex-end; text-align: right; }
.wf-slider__subtitle { font-size: 1.05rem; margin: 0; opacity: .92; }

/* Mobile: posizione di sicurezza leggibile (basso-centro) a prescindere dalla scelta desktop */
@media (max-width: 640px) {
  .wf-slider__content { justify-content: center !important; align-items: flex-end !important; }
  .wf-slider__box { max-width: 92%; align-items: center !important; text-align: center !important; }
}

.wf-slider__box .wf-slider__btn { align-self: auto; }

/* ===========================================================================
   Facade terze parti al click (GDPR F2) — Maps / YouTube
   =========================================================================== */
.wf-facade {
  position: relative;
  display: block;
  width: 100%;
  background: #1f2417;            /* placeholder scuro neutro, no immagini di terzi */
  color: #f7fbf5;
  border-radius: var(--radius, 8px);
  overflow: hidden;
  min-height: var(--wf-facade-h, 320px);
}
.wf-facade--ratio { min-height: 0; padding-top: var(--wf-facade-ratio, 56.25%); }
.wf-facade--ratio .wf-facade__inner { position: absolute; inset: 0; }
/* poster self-hosted (immagine fornita dall'utente, zero richieste a terzi):
   sfondo + velo scuro leggero per tenere leggibili testo e pulsante */
.wf-facade--poster { background-size: cover; background-position: center; background-repeat: no-repeat; }
.wf-facade--poster::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: rgba(0,0,0,.45);
}
.wf-facade--poster .wf-facade__inner { position: relative; z-index: 1; }
/* dopo il click l'iframe del terzo deve coprire velo e poster */
.wf-facade--poster .wf-facade__iframe { position: relative; z-index: 3; }
.wf-facade--fullwidth { width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; }
.wf-facade__inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; text-align: center; padding: 1.5rem; height: 100%;
}
.wf-facade__icon { font-size: 2.5rem; line-height: 1; }
.wf-facade__title { font-size: 1.15rem; font-weight: 600; }
.wf-facade__note { margin: 0; max-width: 460px; font-size: .85rem; opacity: .82; line-height: 1.5; }
.wf-facade__btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  padding: var(--btn-pad-v, .55rem) var(--btn-pad-h, 1.4rem);
  background: var(--color-primary, #1a73e8); color: #fff; border: 0;
  border-radius: var(--radius-btn, 6px); font-size: .95rem; font-weight: 500;
}
.wf-facade__btn:hover { opacity: .9; }
.wf-facade__links a { color: #cfe0a3; font-size: .8rem; }
/* play YouTube — pulsante centrale sopra il placeholder */
.wf-facade__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 48px; border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.wf-facade__play:hover { background: #c00; }
.wf-facade__play-icon { font-size: 1.4rem; line-height: 1; }
.wf-facade__iframe { display: block; width: 100%; height: 100%; border: 0; }
.wf-facade--ratio .wf-facade__iframe { position: absolute; inset: 0; }

/* ===========================================================================
   Banner di consenso (GDPR F4) — solo modalità 'standard'
   =========================================================================== */
.wf-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  display: flex; justify-content: center; padding: 1rem;
  background: rgba(0,0,0,.35);
}
.wf-consent[hidden] { display: none; }
.wf-consent__box {
  width: 100%; max-width: 640px; background: #fff; color: #222;
  border-radius: var(--radius, 10px); box-shadow: 0 10px 40px rgba(0,0,0,.25);
  padding: 1.25rem 1.4rem; font-size: .92rem;
}
.wf-consent__head strong { display: block; font-size: 1.05rem; margin-bottom: .35rem; }
.wf-consent__head p { margin: 0; line-height: 1.5; color: #555; }
.wf-consent__head a { color: var(--color-primary, #1a73e8); }
.wf-consent__cats { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0; }
.wf-consent__cats[hidden] { display: none; }
.wf-consent__cat { display: flex; gap: .6rem; align-items: flex-start; }
.wf-consent__cat input { margin-top: .25rem; }
.wf-consent__cat-txt { display: flex; flex-direction: column; }
.wf-consent__cat-desc { font-size: .82rem; color: #666; }
.wf-consent__actions {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: 1rem;
}
.wf-consent__btn {
  cursor: pointer; border-radius: var(--radius-btn, 6px); font-size: .9rem;
  padding: .5rem 1.1rem; border: 1px solid var(--color-border, #ddd); background: #f5f5f5; color: #333;
}
.wf-consent__btn--accept { background: var(--color-primary, #1a73e8); border-color: var(--color-primary, #1a73e8); color: #fff; }
.wf-consent__btn--save   { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.wf-consent__btn--ghost  { background: transparent; }
@media (max-width: 520px) { .wf-consent__actions { justify-content: stretch; } .wf-consent__btn { flex: 1; } }

/* ===========================================================================
   Banner INFORMATIVO (Modalità A — privacy-first) — non modale, in basso a sx
   =========================================================================== */
.wf-consent--info {
  background: none;            /* niente backdrop scuro: è informativo, non bloccante */
  justify-content: flex-start; /* allineato a sinistra, accanto all'icona flottante */
  align-items: flex-end;
  padding: 1rem;
  pointer-events: none;        /* il backdrop trasparente non intercetta i click */
}
.wf-consent--info .wf-consent__box {
  pointer-events: auto;
  max-width: 420px; margin-left: 4.5rem; /* spazio per l'icona flottante a sinistra */
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
@media (max-width: 560px) {
  .wf-consent--info { padding: .75rem; }
  .wf-consent--info .wf-consent__box { margin-left: 0; max-width: none; }
}

/* Icona flottante "Privacy & Cookie" (stile caiparma.it) — basso a SINISTRA */
.wf-privacy-float {
  position: fixed; left: 18px; bottom: 18px; z-index: 9998;
  width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary, #1a73e8); color: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.28);
  transition: transform .15s ease, filter .15s ease;
}
.wf-privacy-float:hover { transform: translateY(-2px); filter: brightness(1.08); }
.wf-privacy-float svg { display: block; }
@media (prefers-reduced-motion: reduce) { .wf-privacy-float { transition: none; } }

/* Pulsantino legacy "Preferenze privacy" (rimosso dal footer; classe mantenuta) */
.site-footer__prefs {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  color: inherit; text-decoration: underline; opacity: .85;
}
.site-footer__prefs:hover { opacity: 1; }

/* ── Modulo PDF Slider ─────────────────────────────────────────────────── */
.wf-pdfslider {
  margin: 1.5rem auto;
  max-width: 100%;
}
.wf-pdfslider--full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
}
.wf-pdfslider__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
}
.wf-pdfslider__loading,
.wf-pdfslider__error {
  color: var(--muted, #6b7280);
  font-size: .95rem;
  padding: 2rem 1rem;
  text-align: center;
}
.wf-pdfslider__book {
  margin: 0 auto;
  touch-action: pan-y;
}
.wf-pdfslider__book img,
.wf-pdfslider__book canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.wf-pdfslider__toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.wf-pdfslider__toolbar[hidden] { display: none; }
.wf-pdfslider__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .7rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border: 1px solid var(--color-primary, #2563eb);
  background: var(--color-primary, #2563eb);
  color: #fff;
  border-radius: var(--radius-btn, var(--radius, 8px));
  text-decoration: none;
}
.wf-pdfslider__btn:hover { opacity: .9; }
.wf-pdfslider__counter {
  font-size: .9rem;
  color: var(--muted, #6b7280);
  min-width: 64px;
  text-align: center;
}
.wf-pdfslider:fullscreen {
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}
.wf-pdfslider:fullscreen .wf-pdfslider__stage {
  flex: 1;
  min-height: 0;
}
