/* ==========================================================================
   PALMAIN — VSL Landing Page
   Design System / Styles
   Autore: Senior Front-End Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONT
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../../fonts/inter-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Consenso cookie + link footer — estratto da styles.css (landing). Da caricare dopo styles.css in marketing-gratis.html */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.footer__link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.footer__link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* --------------------------------------------------------------------------
   14. CONSENSO COOKIE — card compatta, preferenze inline
   -------------------------------------------------------------------------- */

.cc {
  position: fixed;
  z-index: 140;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: clamp(10px, 1.6vw, 20px);
  padding-bottom: max(clamp(10px, 1.6vw, 20px), env(safe-area-inset-bottom));
  pointer-events: none;
}

.cc[hidden] {
  display: none;
}

.cc__card:focus {
  outline: none;
}

/* ---------------- Card ---------------- */
.cc__card {
  pointer-events: auto;
  position: relative;
  width: min(100%, 448px);
  padding: 18px 18px 14px;
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 2px rgba(43, 43, 43, 0.05),
    0 24px 60px -24px rgba(43, 43, 43, 0.4), 0 8px 20px -12px rgba(43, 43, 43, 0.2);
  animation: cc-enter 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cc-enter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cc__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.9),
    rgba(228, 228, 231, 0.5) 45%,
    rgba(255, 255, 255, 0.9)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@media (min-width: 900px) {
  .cc {
    justify-content: flex-start;
    padding-left: clamp(16px, 2vw, 28px);
  }
}

/* ---------------- Vista principale ---------------- */
.cc__head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.cc__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(43, 43, 43, 0.7);
}

.cc__mark svg {
  width: 17px;
  height: 17px;
}

.cc__headtext {
  min-width: 0;
}

.cc__title {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.cc__text {
  margin-top: 4px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.5;
  text-wrap: pretty;
}

.cc__text--tight {
  margin-top: 3px;
  font-size: 11.5px;
}

/* ---------------- Azioni ---------------- */
.cc__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}

.cc__btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease),
    border-color 0.22s var(--ease), box-shadow 0.22s var(--ease),
    color 0.22s var(--ease);
}

.cc__btn--primary {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(43, 43, 43, 0.75);
}

.cc__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgba(43, 43, 43, 0.85);
}

.cc__btn--primary:active {
  transform: translateY(0) scale(0.99);
}

.cc__btn--ghost {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.cc__btn--ghost:hover {
  border-color: rgba(43, 43, 43, 0.24);
  background: var(--ice);
}

.cc__btn--sm {
  flex: 0 0 auto;
}

.cc__link {
  flex: 0 0 auto;
  padding: 9px 2px 9px 8px;
  border: 0;
  background: none;
  color: var(--secondary);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(43, 43, 43, 0.25);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.22s var(--ease), text-decoration-color 0.22s var(--ease);
}

.cc__link:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.cc__policy {
  margin-top: 9px;
  text-align: center;
  color: var(--muted);
  font-size: 10.5px;
}

.cc__policy a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.22s var(--ease);
}

.cc__policy a:hover {
  color: var(--ink);
}

.cc__btn:focus-visible,
.cc__link:focus-visible,
.cc__close:focus-visible,
.cc__policy a:focus-visible {
  outline: 2px solid rgba(43, 43, 43, 0.45);
  outline-offset: 3px;
}

/* Il focus da click non deve disegnare l'anello sul bottone pieno */
.cc__btn--primary:focus:not(:focus-visible) {
  outline: none;
}

.cc__btn:focus-visible {
  outline-offset: 2px;
}

/* ---------------- Vista preferenze (inline, stessa card) ---------------- */
.cc__view--prefs {
  animation: cc-swap 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cc-swap {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cc__prefhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cc__close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--secondary);
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.cc__close:hover {
  background: var(--ice);
  color: var(--ink);
  border-color: rgba(43, 43, 43, 0.2);
}

.cc__rows {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.cc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ice);
}

.cc__rowtext h3 {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: -0.005em;
}

.cc__rowtext p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.cc__always {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.11);
  color: #15803d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Interruttore */
.cc__switch {
  position: relative;
  flex: 0 0 auto;
  display: block;
  width: 38px;
  height: 22px;
  cursor: pointer;
}

.cc__switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cc__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8d8dd;
  transition: background 0.25s var(--ease);
  pointer-events: none;
}

.cc__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(43, 43, 43, 0.3);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc__switch input:checked + .cc__track {
  background: var(--ink);
}

.cc__switch input:checked + .cc__track .cc__knob {
  transform: translateX(16px);
}

.cc__switch input:focus-visible + .cc__track {
  outline: 2px solid rgba(43, 43, 43, 0.45);
  outline-offset: 2px;
}

.cc__preffoot {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

/* ---------------- Mobile: card a tutta larghezza ---------------- */
@media (max-width: 559px) {
  .cc {
    padding: 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .cc__card {
    width: 100%;
    padding: 16px 15px 13px;
    border-radius: 18px;
  }

  .cc__text {
    font-size: 11.5px;
  }

  /* Mobile: CTA principale a tutta larghezza, poi Rifiuta | Personalizza */
  .cc__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 13px;
  }

  .cc__btn--primary {
    grid-column: 1 / -1;
    min-height: 42px;
  }

  .cc__link {
    padding: 9px 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    text-decoration: none;
    color: var(--secondary);
  }

  .cc__link:hover {
    background: var(--ice);
    color: var(--ink);
  }

  .cc__policy {
    margin-top: 11px;
  }
}

/* La sticky CTA lascia spazio alla card */
body.is-cookie-open .sticky-cta {
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cc__card,
  .cc__view--prefs,
  .cc__knob,
  .cc__btn {
    animation: none !important;
    transition: none !important;
  }
}
/* --------------------------------------------------------------------------
   2. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Colori */
  --white: #ffffff;
  --ink: #2b2b2b;
  --ink-soft: #3a3a3a;
  --ink-hover: #171717;
  --ice: #f7f7f8;
  --line: #e4e4e7;
  --grid: #f4f4f5;
  --text: #4b5563;
  --muted: #6b7280;
  --green: #16a34a;
  --green-soft: #eaf6ee;
  --red: #dc2626;
  --red-soft: #fdf0f0;

  /* Radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Ombre */
  --shadow-card: 0 12px 32px -8px rgba(43, 43, 43, 0.06);
  --shadow-card-hover: 0 24px 48px -16px rgba(43, 43, 43, 0.14);
  --shadow-btn: 0 10px 24px -10px rgba(43, 43, 43, 0.45);
  --shadow-btn-hover: 0 22px 44px -14px rgba(43, 43, 43, 0.5);
  --shadow-frame: 0 40px 90px -30px rgba(43, 43, 43, 0.4),
    0 12px 28px -12px rgba(43, 43, 43, 0.22);
  --shadow-modal: 0 60px 120px -30px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(43, 43, 43, 0.06);

  /* Layout */
  --wrap: 1120px;
  --wrap-narrow: 860px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(58px, 7.5vw, 116px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   3. RESET / BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--white);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv02' 1, 'cv03' 1, 'cv04' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Griglia tecnica geometrica quasi impercettibile + sfumatura radiale */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 68px 68px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(
    ellipse 88% 78% at 50% 22%,
    #000 0%,
    rgba(0, 0, 0, 0.55) 52%,
    transparent 88%
  );
  mask-image: radial-gradient(
    ellipse 88% 78% at 50% 22%,
    #000 0%,
    rgba(0, 0, 0, 0.55) 52%,
    transparent 88%
  );
}

/* Alone radiale morbido in alto */
body::after {
  content: '';
  position: fixed;
  top: -22vh;
  left: 50%;
  width: min(1500px, 180vw);
  height: 110vh;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(43, 43, 43, 0.07),
    rgba(43, 43, 43, 0.03) 55%,
    transparent 100%
  );
}

.page {
  position: relative;
  z-index: 1;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   4. UTILITY / LAYOUT
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding-block: var(--section-y);
}

.section--tight-bottom {
  padding-block: var(--section-y) clamp(40px, 6vw, 72px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   5. COMPONENTI CONDIVISI
   -------------------------------------------------------------------------- */

/* Badge / pillola */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--ice);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(43, 43, 43, 0.03);
}

.pill--ghost {
  background: var(--white);
}

.pill__text {
  text-wrap: balance;
}

/* Mobile: la card occupa tutta la larghezza, quindi il testo va centrato
   (il pallino verde resta a sinistra come marcatore di stato) */
@media (max-width: 599px) {
  header .pill {
    text-align: center;
  }

  header .pill__text {
    flex: 1 1 auto;
    text-align: center;
  }
}

.pill__hl {
  position: relative;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0.005em;
  white-space: nowrap;
  padding-bottom: 1px;
  background-image: linear-gradient(
    to top,
    rgba(22, 163, 74, 0.16) 0.12em,
    transparent 0.12em
  );
}

.dot-live {
  position: relative;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.dot-live::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.35;
  animation: pulse-ring 2.4s var(--ease) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  70% {
    transform: scale(1.9);
    opacity: 0;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* Eyebrow / occhiello di sezione */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--line);
}

/* Bottoni */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 19px 30px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--white);
  font-size: clamp(13.5px, 1.6vw, 15px);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  line-height: 1.25;
  isolation: isolate;
  overflow: hidden;
  box-shadow: var(--shadow-btn), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.3s var(--ease);
}

/* Bagliore interno che attraversa il bottone */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      120% 160% at 50% -40%,
      rgba(255, 255, 255, 0.26),
      transparent 62%
    ),
    radial-gradient(
      80% 120% at 50% 140%,
      rgba(255, 255, 255, 0.08),
      transparent 60%
    );
  opacity: 0.9;
  transition: opacity 0.4s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--ink-hover);
  box-shadow: var(--shadow-btn-hover), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px -8px rgba(43, 43, 43, 0.5);
}

.btn .btn__icon {
  flex: 0 0 auto;
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

.btn--lg {
  width: 100%;
  max-width: 460px;
  padding: 22px 34px;
  border-radius: 16px;
}

@media (min-width: 640px) {
  .btn--lg {
    width: auto;
  }
}

.microcopy {
  max-width: 44ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.microcopy span {
  padding-inline: 2px;
  opacity: 0.5;
}

/* Card base */
.card {
  position: relative;
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.card--hover:hover {
  transform: translateY(-4px);
  border-color: #d6d6da;
  box-shadow: var(--shadow-card-hover);
}

/* Titoli di sezione */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(38px, 5vw, 60px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(27px, 4.6vw, 44px);
  letter-spacing: -0.035em;
}

.section-head p {
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.65;
  letter-spacing: -0.005em;
}

/* --------------------------------------------------------------------------
   6. TOP BAR
   -------------------------------------------------------------------------- */
.topbar {
  position: relative;
  z-index: 2;
  padding-top: clamp(22px, 4vw, 40px);
  padding-bottom: 0;
  text-align: center;
}

.topbar__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  width: auto;
  height: clamp(34px, 5vw, 46px);
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(10px, 1.2vw, 14px);
  padding-bottom: clamp(48px, 7vw, 96px);
  text-align: center;
}

.hero__inner {
  max-width: 940px;
  margin-inline: auto;
}

.hero h1 {
  margin-top: clamp(10px, 1.4vw, 14px);
  font-size: clamp(29px, 5.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.038em;
  font-weight: 700;
}

/* Evidenziazioni sobrie */
.nowrap {
  white-space: nowrap;
}

.hl {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  font-weight: 800;
  color: var(--ink);
}

.hl::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: 0.08em;
  height: 0.16em;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    rgba(43, 43, 43, 0.16),
    rgba(43, 43, 43, 0.06)
  );
  z-index: -1;
}

.hl--strong {
  padding: 0.02em 0.13em 0.04em;
  border-radius: 8px;
  background: var(--ice);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hl--strong::after {
  display: none;
}

/* Punto finale che resta attaccato alla parola evidenziata */
.hl-dot {
  display: inline-block;
  margin-left: -0.02em;
}

.hero__sub {
  max-width: 690px;
  margin: clamp(20px, 3vw, 26px) auto 0;
  color: var(--text);
  font-size: clamp(15px, 2.15vw, 18px);
  line-height: 1.68;
  letter-spacing: -0.008em;
}

/* --------------------------------------------------------------------------
   8. VSL PLAYER
   -------------------------------------------------------------------------- */
.vsl {
  max-width: 940px;
  margin: clamp(34px, 5vw, 54px) auto 0;
}

.vsl__frame {
  position: relative;
  padding: 6px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #3b3b3b, var(--ink) 42%, #1c1c1c);
  box-shadow: var(--shadow-frame), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.vsl__frame::after {
  /* filo luminoso superiore hi-tech */
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  pointer-events: none;
}

.vsl__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 14px 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(10.5px, 1.45vw, 12.5px);
  font-weight: 500;
  letter-spacing: 0.005em;
  text-align: center;
  line-height: 1.35;
}

.vsl__bar-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #fff;
}

.vsl__bar-text {
  min-width: 0;
  line-height: 1.4;
  text-wrap: balance;
}

.vsl__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(
      120% 120% at 50% 0%,
      #343434 0%,
      #1f1f1f 55%,
      #141414 100%
    ),
    #141414;
  isolation: isolate;
}

.vsl__poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.6s var(--ease);
}

.vsl__stage.is-playing .vsl__poster {
  opacity: 0;
}

.vsl__stage video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0d0d0d;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.vsl__stage.is-playing video {
  opacity: 1;
}

/* Player ufficiale Wistia (fallback) */
.vsl__iframe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #000;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.vsl__stage.is-wistia .vsl__iframe {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.vsl__stage.is-wistia video,
.vsl__stage.is-wistia .vsl__poster,
.vsl__stage.is-wistia .vsl__preview,
.vsl__stage.is-wistia::before,
.vsl__stage.is-wistia::after {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Griglia tecnica interna al player */
.vsl__stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 95%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 95%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.vsl__stage::after {
  /* vignettatura inferiore: dà profondità al player e stacca i testi */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
      115% 90% at 50% 46%,
      transparent 42%,
      rgba(0, 0, 0, 0.34) 100%
    ),
    linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 46%);
}

.vsl__preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.vsl__preview-center {
  display: grid;
  place-items: center;
  align-self: center;
}



.vsl__stage.is-playing .vsl__preview {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(66px, 11vw, 88px);
  height: clamp(66px, 11vw, 88px);
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #3f3f3f, #2b2b2b 62%, #232323);
  color: #fff;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.52),
    0 0 0 8px rgba(43, 43, 43, 0.34),
    0 26px 54px -18px rgba(0, 0, 0, 0.9);
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease),
    box-shadow 0.4s var(--ease);
}

.play svg {
  position: relative;
  width: 38%;
  height: 38%;
  /* Centratura geometrica: il viewBox del triangolo ha il "vuoto" a destra,
     perciò il box dell'svg resta centrato senza offset manuali.
     Lo scarto residuo (~2px) è la correzione ottica naturale. */
  margin-left: 0;
}

.play:hover {
  transform: scale(1.06);
  background: #1a1a1a;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5),
    0 0 60px 10px rgba(255, 255, 255, 0.08),
    0 26px 54px -18px rgba(0, 0, 0, 0.9);
}

.play:active {
  transform: scale(0.98);
}

/* Onde concentriche morbide */
.play__glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.03) 58%,
    transparent 72%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.play__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 0;
  animation: ring-out 3.4s var(--ease-out) infinite;
  pointer-events: none;
}

.play__ring:nth-child(2) {
  animation-delay: 1.13s;
}

.play__ring:nth-child(3) {
  animation-delay: 2.26s;
}

@keyframes ring-out {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(2.15);
    opacity: 0;
  }
}

/* Stato: video in caricamento / non disponibile */
.vsl__toast {
  position: absolute;
  left: 50%;
  top: clamp(12px, 2.6vw, 18px);
  z-index: 3;
  transform: translate(-50%, -8px);
  width: max-content;
  max-width: min(340px, calc(100% - 32px));
  padding: 10px 16px;
  text-align: center;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s;
}

.vsl__toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Box descrizione sotto la VSL */
.vsl__note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: clamp(20px, 3vw, 26px) auto 0;
  padding: clamp(16px, 2.6vw, 22px) clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ice);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.vsl__note-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border-radius: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.vsl__note p {
  color: var(--text);
  font-size: clamp(13.5px, 1.9vw, 15px);
  line-height: 1.62;
  letter-spacing: -0.003em;
}

/* CTA hero */
.hero__cta {
  margin-top: clamp(30px, 4.6vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------------------------------
   9. SEZIONE BENTO (offerta)
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  grid-template-columns: 1fr;
}

/* Tablet: prima card a tutta larghezza, le altre due affiancate */
@media (min-width: 720px) and (max-width: 899px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento__card:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

@media (min-width: 720px) {
  .bento__text {
    max-width: 68ch;
  }
}

.bento__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3.2vw, 32px);
  overflow: hidden;
}

.bento__card::before {
  /* filo superiore che si illumina in hover */
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(43, 43, 43, 0.22),
    transparent
  );
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.bento__card:hover::before {
  opacity: 1;
}

.bento__num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bento__step {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bento__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 4px 10px -6px rgba(43, 43, 43, 0.25);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.bento__card:hover .bento__icon {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 20px -10px rgba(43, 43, 43, 0.35);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.2;
}

.badge--green {
  background: var(--green-soft);
  border-color: rgba(22, 163, 74, 0.28);
  color: #15803d;
}

.badge--green .dot-live {
  width: 5px;
  height: 5px;
}

.badge--green .dot-live::after {
  display: none;
}

.bento__title {
  font-size: clamp(18px, 2.4vw, 20.5px);
  letter-spacing: -0.028em;
  line-height: 1.22;
}

.bento__text {
  color: var(--text);
  font-size: clamp(13.5px, 1.75vw, 14.5px);
  line-height: 1.68;
  letter-spacing: -0.002em;
}

.bento__price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 2px;
}

.bento__price-value {
  color: var(--ink);
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.bento__price-old {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  opacity: 0.8;
}

.bento__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   10. CONFRONTO
   -------------------------------------------------------------------------- */
.compare {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 900px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

.compare__col {
  padding: clamp(24px, 3.2vw, 32px);
}

.compare__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.compare__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare__col--pal .compare__label {
  color: var(--ink);
}

.compare__tag {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare__col--pal .compare__tag {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.compare__list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare__item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}

.compare__mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.compare__mark--x {
  background: var(--red-soft);
  color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.16);
}

.compare__mark--ok {
  background: var(--green-soft);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.18);
}

.compare__item h3 {
  font-size: 14.5px;
  letter-spacing: -0.015em;
  line-height: 1.4;
  font-weight: 650;
}

.compare__col--pal .compare__item h3 {
  font-weight: 650;
}

.compare__item p {
  margin-top: 5px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.62;
}

/* Card evolutiva scura */
.evolution {
  position: relative;
  display: grid;
  gap: clamp(26px, 3.4vw, 40px);
  margin-top: clamp(16px, 2.4vw, 22px);
  padding: clamp(24px, 3.6vw, 40px);
  border-radius: var(--r-xl);
  background: radial-gradient(
      120% 140% at 88% -10%,
      rgba(255, 255, 255, 0.09),
      transparent 55%
    ),
    var(--ink);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(43, 43, 43, 0.6);
  isolation: isolate;
}

@media (min-width: 900px) {
  .evolution {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: center;
    gap: clamp(30px, 3.6vw, 52px);
  }
}

.evolution::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.042) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.042) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 72%);
  mask-image: linear-gradient(120deg, #000, transparent 72%);
  opacity: 0.85;
}

.evolution__copy {
  min-width: 0;
}

.evolution__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.evolution h3 {
  color: #fff;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -0.032em;
  line-height: 1.14;
  max-width: 22ch;
}

/* Testo breve, con respiro: niente muri di testo */
.evolution__lead {
  margin-top: 14px;
  position: relative;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(13.5px, 1.7vw, 14.5px);
  line-height: 1.72;
  letter-spacing: -0.002em;
}

/* Keyword evidenziate */
.k {
  color: #fff;
  font-weight: 600;
  background-image: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.17) 0.42em,
    transparent 0.42em
  );
  padding-inline: 0.1em;
  border-radius: 2px;
}

/* Lista puntata: 3 micro-blocchi leggibili invece del paragrafo unico */
.evo-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.evo-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  align-items: start;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.evo-item:hover {
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.evo-item__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
}

.evo-item__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.evo-item__body strong {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.evo-item__body span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12.5px;
  line-height: 1.5;
}

.evo-item__body em {
  color: rgba(255, 255, 255, 0.9);
  font-style: normal;
  font-weight: 600;
}

/* ---------------------------------------------------------------
   SCHEMA / MOTION GRAPHIC (destra)
   --------------------------------------------------------------- */
.evolution__diagram {
  min-width: 0;
}

.diagram {
  position: relative;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.022) 58%,
    rgba(255, 255, 255, 0.05)
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 20px 40px -26px rgba(0, 0, 0, 0.9);
}

.diagram__head {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.diagram__title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.3;
}

.diagram__title .dot-live {
  width: 5px;
  height: 5px;
  background: var(--green);
}

.diagram__title .dot-live::after {
  display: none;
}

.diagram__tag {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.diagram__flow {
  display: grid;
  gap: 0;
}

.diagram__node {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: node-glow 6.5s var(--ease) infinite;
  animation-delay: var(--d, 0s);
}

.diagram__node:nth-of-type(1) {
  --d: 0s;
}
.diagram__node:nth-of-type(2) {
  --d: 1.6s;
}
.diagram__node:nth-of-type(3) {
  --d: 3.2s;
}
.diagram__node:nth-of-type(4) {
  --d: 4.8s;
}

@keyframes node-glow {
  0%,
  74%,
  100% {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  8%,
  20% {
    background: rgba(255, 255, 255, 0.085);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26),
      0 0 0 3px rgba(255, 255, 255, 0.045);
  }
}

.diagram__node--accent {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 10px 24px -16px rgba(0, 0, 0, 0.9);
}

.diagram__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.9);
}

.diagram__node--accent .diagram__icon {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.8);
}

.diagram__label {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.diagram__label strong {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.diagram__label em {
  color: rgba(255, 255, 255, 0.5);
  font-style: normal;
  font-size: 10.5px;
  line-height: 1.35;
}

.diagram__meta {
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(22, 163, 74, 0.16);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.32);
  color: #86efac;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* Connettori con impulso luminoso */
.diagram__link {
  position: relative;
  display: block;
  width: 1px;
  height: 16px;
  margin-left: 26px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.24),
    rgba(255, 255, 255, 0.08)
  );
  overflow: hidden;
}

.diagram__link::after {
  content: '';
  position: absolute;
  left: -1px;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  opacity: 0.85;
  filter: blur(0.4px);
  animation: link-pulse 2.4s linear infinite;
}

.diagram__link:nth-of-type(2)::after {
  animation-delay: 0.8s;
}

.diagram__link:nth-of-type(3)::after {
  animation-delay: 1.6s;
}

@keyframes link-pulse {
  0% {
    top: -8px;
    opacity: 0;
  }
  25% {
    opacity: 0.9;
  }
  75% {
    opacity: 0.9;
  }
  100% {
    top: 16px;
    opacity: 0;
  }
}

/* Tablet e mobile: il tag scende su una seconda riga, allineato a sinistra */
@media (max-width: 899px) {
  .diagram__head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .diagram__title {
    flex: 1 1 100%;
    white-space: normal;
    overflow: visible;
  }

  .diagram__tag {
    margin-left: 0;
    order: 3;
  }
}

/* Mobile: schema sotto il testo, nodi in fila compatta */
@media (max-width: 899px) {
  .diagram__node {
    grid-template-columns: 26px 1fr auto;
    padding: 9px 11px;
  }

  .diagram {
    padding: 12px;
  }
}

/* --------------------------------------------------------------------------
   10b. PROVE SOCIALI — CASO STUDIO + SITI DEMO
   -------------------------------------------------------------------------- */

/* ---------------- Caso studio ---------------- */
.case {
  position: relative;
  padding: clamp(22px, 3.2vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: radial-gradient(
      110% 120% at 92% -10%,
      rgba(43, 43, 43, 0.05),
      transparent 58%
    ),
    var(--ice);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.case::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(43, 43, 43, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 43, 43, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 70% at 12% 0%, #000, transparent 78%);
  mask-image: radial-gradient(80% 70% at 12% 0%, #000, transparent 78%);
}

.case > * {
  position: relative;
}

.case__head {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  padding-bottom: clamp(20px, 3vw, 26px);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .case__head {
    grid-template-columns: 1.25fr 1fr;
    align-items: end;
  }
}

.case__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case h3 {
  font-size: clamp(23px, 3.4vw, 33px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.case__brand {
  white-space: nowrap;
  padding: 0.04em 0.26em;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.case__lead {
  max-width: 46ch;
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(14px, 1.85vw, 15.5px);
  line-height: 1.65;
}

/* keyword su fondo chiaro */
.k2 {
  color: var(--ink);
  font-weight: 650;
  background-image: linear-gradient(
    to top,
    rgba(43, 43, 43, 0.1) 0.45em,
    transparent 0.45em
  );
  padding-inline: 0.1em;
  border-radius: 2px;
}

.case__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 480px) {
  .case__kpis {
    gap: 10px;
  }
}

.case__kpi {
  display: grid;
  gap: 3px;
  padding: clamp(11px, 1.8vw, 15px) clamp(10px, 1.6vw, 14px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: 0 6px 16px -12px rgba(43, 43, 43, 0.3);
}

.case__kpi--accent {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 16px 30px -18px rgba(43, 43, 43, 0.7);
}

.case__kpi-value {
  color: var(--ink);
  font-size: clamp(19px, 2.6vw, 25px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.case__kpi--accent .case__kpi-value {
  color: #fff;
}

.case__kpi-label {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.005em;
}

.case__kpi--accent .case__kpi-label {
  color: rgba(255, 255, 255, 0.66);
}

/* ---------------- Timeline a step ---------------- */
.steps {
  margin: 0;
  padding: clamp(18px, 2.6vw, 26px) 0 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 14px;
  padding-bottom: 18px;
}

@media (min-width: 760px) {
  .step {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 0 18px;
    align-items: start;
    padding-bottom: 16px;
  }
}

.step__rail {
  position: relative;
  display: grid;
  grid-template-rows: 34px 1fr;
  justify-items: center;
  gap: 6px;
  height: 100%;
  align-self: stretch;
}

.step__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 10px -8px rgba(43, 43, 43, 0.5);
}

.step__line {
  display: none;
}

/* Connettore continuo tra gli step (disegnato sul binario) */
.step:not(:last-child) .step__rail::after {
  content: '';
  position: absolute;
  top: 32px;
  bottom: -24px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    #dcdce0,
    #e4e4e7 55%,
    rgba(228, 228, 231, 0.5)
  );
}

.step__body {
  min-width: 0;
  padding-top: 3px;
}

.step__label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.step__body h4 {
  font-size: clamp(14.5px, 1.95vw, 16.5px);
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.32;
}

.step__body p {
  max-width: 62ch;
  margin-top: 5px;
  color: var(--text);
  font-size: clamp(13px, 1.75vw, 14px);
  line-height: 1.62;
}

.step__aside {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  grid-column: 2;
  justify-self: start;
  margin-top: 10px;
  padding: 5px 11px 5px 7px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

@media (min-width: 760px) {
  .step__aside {
    grid-column: 3;
    justify-self: end;
    margin-top: 0;
    align-self: start;
  }
}

.step__aside-mark {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
}

.step__aside-mark--ok {
  background: var(--green-soft);
  color: var(--green);
}

.step__aside--bad {
  border-color: rgba(220, 38, 38, 0.22);
  background: var(--red-soft);
  color: #9f1239;
}

.step__aside--win {
  gap: 8px;
  padding: 7px 13px 7px 9px;
  border-color: var(--ink);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.step__roi {
  display: grid;
  place-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(22, 163, 74, 0.22);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.4);
  color: #86efac;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Step finale: card risultato */
.step--result {
  margin-top: 6px;
  padding: clamp(16px, 2.4vw, 22px);
  padding-left: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #fff, #fcfcfd);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(43, 43, 43, 0.4);
  grid-template-columns: 34px minmax(0, 1fr);
}

@media (min-width: 760px) {
  .step--result {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
}

.step--result .step__rail {
  padding-left: 0;
  margin-left: 0;
}

.step--result .step__num {
  background: var(--green-soft);
  border-color: rgba(22, 163, 74, 0.3);
  color: #15803d;
}

.step--result .step__body h4 {
  font-size: clamp(16px, 2.3vw, 19px);
  letter-spacing: -0.03em;
}

.step__result-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.mini-metric {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.mini-metric strong {
  color: var(--ink);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.mini-metric--win {
  border-color: rgba(22, 163, 74, 0.3);
  background: var(--green-soft);
  color: #166534;
}

.mini-metric--win strong {
  color: #15803d;
}

.mini-arrow {
  color: #c4c4cc;
  font-size: 13px;
  line-height: 1;
}

/* Footer del caso */
.case__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(18px, 2.6vw, 24px);
  padding-top: clamp(16px, 2.4vw, 20px);
  border-top: 1px dashed var(--line);
}

.case__foot p {
  flex: 1 1 320px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.case__cta {
  flex: 0 0 auto;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   10c. PROVE SOCIALI — SECONDO CASO STUDIO + HERO DEI SITI REALI
   -------------------------------------------------------------------------- */

/* I casi studio restano a tutta larghezza, impilati;
   dentro il caso Krinner le due hero reali stanno sulla stessa riga */
.cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.2vw, 24px);
}

/* ---------------- Screenshot delle hero reali ---------------- */
.case__shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: clamp(18px, 2.6vw, 24px);
}

@media (min-width: 640px) {
  .case__shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shotsite {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.shotsite__frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: 0 10px 26px -16px rgba(43, 43, 43, 0.4);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
}

.shotsite__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.shotsite__live {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px -6px rgba(43, 43, 43, 0.35);
}

.shotsite__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shotsite__cap b {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.shotsite__tag {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.shotsite__arrow {
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.shotsite:hover .shotsite__frame,
.shotsite:focus-visible .shotsite__frame {
  transform: translateY(-3px);
  border-color: rgba(43, 43, 43, 0.24);
  box-shadow: 0 20px 38px -20px rgba(43, 43, 43, 0.45);
}

.shotsite:hover .shotsite__frame img {
  transform: scale(1.025);
}

.shotsite:hover .shotsite__arrow {
  color: var(--ink);
  transform: translate(2px, -2px);
}

.shotsite:focus-visible {
  outline: 2px solid rgba(43, 43, 43, 0.45);
  outline-offset: 4px;
  border-radius: var(--r-md);
}

/* ---------------- Elenco punti del secondo caso ---------------- */
.case__list {
  display: grid;
  gap: 10px;
  margin: clamp(16px, 2.4vw, 22px) 0 0;
  padding: 0;
  list-style: none;
}

.case__list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.6;
}

.case__list-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: var(--green);
  font-size: 9.5px;
  font-weight: 700;
}

/* ---------------- Contatore "su 43" ---------------- */
.demos__count {
  display: inline-block;
  margin-left: 0.25em;
  padding: 0.14em 0.5em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ice);
  color: var(--secondary);
  font-size: 0.44em;
  font-weight: 600;
  letter-spacing: 0.01em;
  vertical-align: 0.28em;
  white-space: nowrap;
}

.demos-nav__tot {
  margin-left: 3px;
  opacity: 0.62;
}

@media (max-width: 559px) {
  .demos__count {
    display: block;
    width: fit-content;
    margin: 10px auto 0;
    font-size: 0.5em;
    vertical-align: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shotsite__frame,
  .shotsite__frame img,
  .shotsite__arrow {
    transition: none !important;
  }

  .shotsite:hover .shotsite__frame,
  .shotsite:hover .shotsite__frame img {
    transform: none;
  }
}

/* ---------------- Carosello siti demo ---------------- */
.demos-carousel {
  position: relative;
}

/* Barra di navigazione: contatore + progresso + frecce */
.demos-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.demos-nav__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.demos-nav__count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.demos-nav__count b {
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}

.demos-nav__sep {
  opacity: 0.45;
  margin-inline: 1px;
}

.demos-track {
  position: relative;
  flex: 1 1 auto;
  height: 3px;
  max-width: 240px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
}

.demos-track__bar {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: var(--ink);
  transition: width 0.35s var(--ease), transform 0.35s var(--ease);
}

.demos-nav__buttons {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 12px -10px rgba(43, 43, 43, 0.4);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.carousel-btn:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

.carousel-btn:active:not(:disabled) {
  transform: translateY(0);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* Binario scorrevole */
.demos {
  display: flex;
  gap: clamp(12px, 1.6vw, 18px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 4px 0 14px;
  margin: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.demos::-webkit-scrollbar {
  display: none;
}

/* Le schede "sborda" oltre il contenitore: più respiro visivo */
/* Mobile: la scheda successiva resta visibile (peek) per invitare allo scroll */
.demos > .demo {
  flex: 0 0 calc(100% - 58px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin: 0;
}

@media (min-width: 480px) {
  .demos > .demo {
    flex: 0 0 calc(100% - 78px);
  }
}

@media (min-width: 640px) {
  .demos > .demo {
    flex: 0 0 calc((100% - 18px) / 2);
  }
}

@media (min-width: 1000px) {
  .demos > .demo {
    flex: 0 0 calc((100% - 36px) / 3);
  }
}

.demos {
  cursor: grab;
}

.demo__frame:active {
  transform: translateY(-4px) scale(0.995);
}

.demos.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.demos.is-dragging img {
  pointer-events: none;
}

.demos:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
  border-radius: var(--r-lg);
}

.demo__frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--ice);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.demo__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  transform: scale(1);
  transition: transform 0.6s var(--ease);
}

.demo__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 43, 43, 0.34), transparent 46%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

/* CTA che appare al passaggio: rende evidente che la scheda è cliccabile */
.demo__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(24, 24, 26, 0.28);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.demo__overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.2;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(6px) scale(0.97);
  transition: transform 0.35s var(--ease);
}

.demo__overlay-btn svg {
  flex: 0 0 auto;
}

.demo:hover .demo__overlay,
.demo__frame:focus-visible .demo__overlay {
  opacity: 1;
}

.demo:hover .demo__overlay-btn,
.demo__frame:focus-visible .demo__overlay-btn {
  transform: none;
}

/* Su touch l'overlay resta sempre visibile in basso, in versione compatta */
@media (hover: none) {
  .demo__overlay {
    opacity: 1;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    place-items: end center;
    padding-bottom: 10px;
  }

  .demo__overlay-btn {
    padding: 8px 13px;
    font-size: 11px;
    transform: none;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.45);
  }
}

.demo:hover .demo__frame {
  transform: translateY(-4px);
  border-color: #d6d6da;
  box-shadow: var(--shadow-card-hover);
}

.demo:hover .demo__frame img {
  transform: scale(1.035);
}

.demo:hover .demo__frame::after {
  opacity: 1;
}

.demo__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
  padding-inline: 2px;
}

.demo__name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.demo__tags {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

/* Sfumatura sul bordo destro: ammorbidisce la scheda "peek" su mobile */
@media (max-width: 999px) {
  .demos-carousel::after {
    content: '';
    position: absolute;
    top: 52px;
    right: 0;
    width: 46px;
    bottom: 34px;
    pointer-events: none;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.92) 72%,
      #fff
    );
    z-index: 1;
    transition: opacity 0.3s var(--ease);
  }

  /* a fine corsa la sfumatura sparisce */
  .demos-carousel.is-end::after {
    opacity: 0;
  }
}

/* Suggerimento di scorrimento (solo mobile/tablet) */
.demos-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.demos-hint svg {
  flex: 0 0 auto;
  opacity: 0.7;
}

@media (min-width: 1000px) {
  .demos-hint {
    display: none;
  }
}

/* Chips di prova sopra la griglia */
.demos-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -14px auto clamp(24px, 3.4vw, 34px);
}

.demos-proof__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.2;
  box-shadow: 0 4px 12px -10px rgba(43, 43, 43, 0.4);
}

.demos-proof__item svg {
  flex: 0 0 auto;
  color: var(--green);
  opacity: 0.95;
}

/* Nota di trasparenza */
.demos__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 72ch;
  margin: clamp(22px, 3vw, 30px) auto 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ice);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.62;
  text-align: left;
}

.demos__note svg {
  flex: 0 0 auto;
  margin-top: 2px;
  opacity: 0.65;
}

.demos__note p {
  margin: 0;
}

.demos__note b {
  color: var(--text);
  font-weight: 600;
}

/* CTA di chiusura sezione */
.demos__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: clamp(30px, 4.4vw, 44px);
  text-align: center;
}

.demos__cta p {
  color: var(--text);
  font-size: clamp(14px, 1.9vw, 16px);
  line-height: 1.55;
  letter-spacing: -0.008em;
}

@media (min-width: 640px) {
  .demos__cta {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
}

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--ice);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq__item + .faq__item {
  border-top: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: clamp(18px, 2.6vw, 24px) clamp(18px, 3vw, 28px);
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ink);
  font-size: clamp(14.5px, 2vw, 16.5px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.42;
  transition: background-color 0.3s var(--ease);
}

.faq__q:hover {
  background: rgba(255, 255, 255, 0.66);
}

.faq__icon {
  flex: 0 0 auto;
  order: 2;
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  transition: background-color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.45s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.faq__icon::before {
  width: 11px;
  height: 1.5px;
}

.faq__icon::after {
  width: 1.5px;
  height: 11px;
}

.faq__item.is-open .faq__icon {
  background: var(--ink);
  border-color: var(--ink);
  transform: rotate(180deg);
}

.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after {
  background: #fff;
}

.faq__item.is-open .faq__icon::after {
  transform: scaleY(0);
  opacity: 0;
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.48s var(--ease);
}

.faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
}

.faq__panel-inner {
  overflow: hidden;
}

.faq__a {
  padding: 0 clamp(18px, 3vw, 28px) clamp(20px, 2.8vw, 26px);
  padding-right: clamp(44px, 6vw, 64px);
  color: var(--text);
  font-size: clamp(13.5px, 1.85vw, 15px);
  line-height: 1.7;
  letter-spacing: -0.002em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s var(--ease) 0.08s, transform 0.4s var(--ease) 0.08s;
}

.faq__item.is-open .faq__a {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   12. CTA FINALE + FOOTER
   -------------------------------------------------------------------------- */
.final-cta {
  position: relative;
  padding: clamp(34px, 5.6vw, 66px) clamp(22px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: radial-gradient(
      100% 130% at 50% -20%,
      rgba(43, 43, 43, 0.055),
      transparent 62%
    ),
    var(--white);
  box-shadow: var(--shadow-card);
  text-align: center;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 80% at 50% 0%,
    #000,
    transparent 80%
  );
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 80%);
}

.final-cta > * {
  position: relative;
}

.final-cta .pill {
  margin-bottom: 22px;
}

.final-cta h2 {
  max-width: 640px;
  margin-inline: auto;
  font-size: clamp(24px, 4.4vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.final-cta p {
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--text);
  font-size: clamp(14px, 1.9vw, 16px);
  line-height: 1.65;
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(26px, 3.6vw, 34px);
}

.footer {
  padding: clamp(34px, 5vw, 52px) 0 clamp(38px, 5vw, 54px);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: clamp(26px, 3.6vw, 34px);
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo {
  width: auto;
  height: clamp(30px, 4vw, 36px);
  opacity: 0.9;
  transition: opacity 0.3s var(--ease);
}

.footer__brand:hover .footer__logo {
  opacity: 1;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 12px;
}

.footer__meta a {
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.footer__meta a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.footer__link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   13. MODAL + FORM
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.34s var(--ease), visibility 0.34s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(26, 26, 26, 0.55);
  -webkit-backdrop-filter: blur(8px) saturate(0.9);
  backdrop-filter: blur(8px) saturate(0.9);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 588px;
  max-height: calc(100dvh - clamp(24px, 6vw, 64px));
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  transform: translateY(18px) scale(0.975);
  opacity: 0;
  transition: transform 0.46s var(--ease-out), opacity 0.36s var(--ease);
}

.modal.is-open .modal__panel {
  transform: none;
  opacity: 1;
}

.modal__head {
  position: relative;
  flex: 0 0 auto;
  padding: clamp(20px, 3.4vw, 28px) clamp(20px, 3.4vw, 32px)
    clamp(16px, 2.6vw, 20px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfcfd, var(--white));
}

.modal__logo {
  width: auto;
  height: 26px;
  margin-bottom: 14px;
}

.modal__title {
  font-size: clamp(18px, 3vw, 22px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding-right: 44px;
}

.modal__sub {
  margin-top: 8px;
  color: var(--text);
  font-size: clamp(12.5px, 1.8vw, 13.5px);
  line-height: 1.55;
  padding-right: 20px;
}

.modal__close {
  position: absolute;
  top: clamp(14px, 2.4vw, 20px);
  right: clamp(14px, 2.4vw, 20px);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--muted);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease),
    transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.modal__close:hover {
  background: var(--ice);
  color: var(--ink);
  border-color: #d6d6da;
  transform: rotate(90deg);
}

.modal__body {
  flex: 1 1 auto;
  padding: clamp(18px, 3.2vw, 26px) clamp(20px, 3.4vw, 32px)
    clamp(22px, 3.6vw, 30px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Griglia form */
.form {
  display: grid;
  gap: clamp(14px, 2vw, 17px);
}

.form__grid {
  display: grid;
  gap: clamp(14px, 2vw, 17px);
}

@media (min-width: 520px) {
  .form__grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 7px;
}

.field__label {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.4;
}

.field__req {
  color: var(--muted);
  font-weight: 500;
}

.field__opt {
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
}

.input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px; /* evita lo zoom automatico su iOS */
  line-height: 1.4;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.input::placeholder {
  color: #9ca3af;
}

.input:hover {
  border-color: #d6d6da;
}

.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(43, 43, 43, 0.12);
}

.field.has-error .input {
  border-color: rgba(220, 38, 38, 0.65);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.09);
}

.field__error {
  display: none;
  color: var(--red);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
}

.field.has-error .field__error {
  display: block;
}

/* Selettore a pillole (radio) */
.pills {
  display: grid;
  gap: 8px;
}

@media (min-width: 560px) {
  .pills--3 {
    grid-template-columns: 1fr;
  }
}

.pill-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease),
    color 0.22s var(--ease), box-shadow 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.pill-opt:hover {
  border-color: #d6d6da;
  background: #fcfcfd;
}

.pill-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.pill-opt__dot {
  flex: 0 0 auto;
  position: relative;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid #d4d4d8;
  background: var(--white);
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.pill-opt__dot::after {
  content: '';
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: var(--white);
  transform: scale(0);
  transition: transform 0.22s var(--ease-out);
}

.pill-opt input:checked ~ .pill-opt__dot {
  border-color: var(--ink);
  background: var(--ink);
}

.pill-opt input:checked ~ .pill-opt__dot::after {
  transform: scale(1);
}

.pill-opt:has(input:checked) {
  border-color: var(--ink);
  background: var(--ice);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--ink), 0 8px 18px -12px rgba(43, 43, 43, 0.4);
}

.pill-opt:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(43, 43, 43, 0.14);
}

/* Selettore fascia oraria */
.slot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.slot-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.slot-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.slot-opt__title {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.slot-opt__time {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.slot-opt:hover {
  border-color: #d6d6da;
  background: #fcfcfd;
}

.slot-opt:has(input:checked) {
  border-color: var(--ink);
  background: var(--ice);
  box-shadow: 0 0 0 1px var(--ink);
}

.slot-opt:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(43, 43, 43, 0.14);
}

/* Riga privacy + submit */
.form__note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.form__note svg {
  flex: 0 0 auto;
  margin-top: 1.5px;
  opacity: 0.75;
}

.form__note a {
  color: var(--text);
  text-underline-offset: 2px;
}

.btn--submit {
  width: 100%;
  padding: 18px 24px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  letter-spacing: 0.03em;
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.82;
  transform: none !important;
}

.btn__spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form__alert {
  display: none;
  padding: 11px 14px;
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: var(--r-sm);
  background: var(--red-soft);
  color: #b91c1c;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
}

.form__alert.is-on {
  display: block;
}

/* Stato di conferma */
.success {
  display: none;
  padding: clamp(12px, 2vw, 20px) 0 clamp(6px, 1vw, 10px);
  text-align: center;
}

.modal.is-sent .form {
  display: none;
}

.modal.is-sent .success {
  display: block;
  animation: fade-up 0.6s var(--ease) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.success__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 6px auto 22px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.22);
}

.success__icon::before,
.success__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(22, 163, 74, 0.32);
  animation: ring-out 2.6s var(--ease-out) infinite;
}

.success__icon::after {
  animation-delay: 1.3s;
}

.success__icon svg {
  width: 30px;
  height: 30px;
}

.success__icon svg path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 0.6s var(--ease) 0.18s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.success h3 {
  font-size: clamp(18px, 2.8vw, 21px);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.success p {
  max-width: 40ch;
  margin: 12px auto 0;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.65;
}

.success__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.success__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: var(--ice);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 500;
}

.success__close {
  margin-top: 24px;
  padding: 13px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.success__close:hover {
  background: var(--ice);
  border-color: #d6d6da;
}

/* Lock scroll */
body.is-locked {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   13a. PREVIEW SITO DEMO
   -------------------------------------------------------------------------- */
.preview {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.4vw, 28px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.32s var(--ease), visibility 0.32s;
}

.preview.is-open {
  visibility: visible;
  opacity: 1;
}

.preview__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(22, 22, 24, 0.6);
  -webkit-backdrop-filter: blur(10px) saturate(0.92);
  backdrop-filter: blur(10px) saturate(0.92);
  cursor: zoom-out;
}

.preview__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1080px;
  max-height: calc(100dvh - clamp(20px, 5vw, 56px));
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  transform: translateY(16px) scale(0.978);
  opacity: 0;
  transition: transform 0.44s var(--ease-out), opacity 0.34s var(--ease);
}

.preview.is-open .preview__panel {
  transform: none;
  opacity: 1;
}

.preview__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(13px, 2vw, 17px) clamp(14px, 2.2vw, 20px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfcfd, var(--white));
}

.preview__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.preview__logo {
  width: auto;
  height: 26px;
  flex: 0 0 auto;
  padding-right: 12px;
  border-right: 1px solid var(--line);
  opacity: 0.95;
}

.preview__titles {
  min-width: 0;
}

.preview__title {
  font-size: clamp(14px, 1.9vw, 16.5px);
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview__sub {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.preview__open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px -12px rgba(43, 43, 43, 0.6);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.preview__open:hover {
  background: var(--ink-hover);
  transform: translateY(-1px);
}

.preview__open[hidden] {
  display: none;
}

.preview__close {
  position: static;
  flex: 0 0 auto;
}

.preview__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(12px, 2vw, 18px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--ice);
}

/* Cornice browser */
.preview__browser {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 18px 40px -30px rgba(43, 43, 43, 0.5);
}

.preview__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--ice);
}

.preview__dots {
  display: inline-flex;
  gap: 5px;
  flex: 0 0 auto;
}

.preview__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6d6da;
}

.preview__dots i:nth-child(1) {
  background: #ff5f56;
}
.preview__dots i:nth-child(2) {
  background: #ffbd2e;
}
.preview__dots i:nth-child(3) {
  background: #27c93f;
}

.preview__url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 420px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.preview__url svg {
  flex: 0 0 auto;
  opacity: 0.6;
}

.preview__url span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview__viewport {
  position: relative;
  max-height: min(62vh, 640px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  scrollbar-width: thin;
}

/* Ritaglio della barra browser interna al mockup (48px su 900):
   fuori resta solo la cornice del modale, niente doppioni */
/* Le immagini dei demo sono screenshot reali 4:3: nessun ritaglio forzato,
   la pagina interna scorre dentro la cornice browser */
.preview__crop {
  position: relative;
  overflow: hidden;
}

.preview__crop img {
  display: block;
  width: 100%;
  height: auto;
}

.preview__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.preview__loading.is-off {
  opacity: 0;
  visibility: hidden;
}

.preview__spinner {
  width: 26px;
  height: 26px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.preview__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: clamp(12px, 1.8vw, 16px);
}

.preview__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 260px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.preview__note svg {
  flex: 0 0 auto;
  margin-top: 2px;
  opacity: 0.65;
}

.preview__cta {
  flex: 0 0 auto;
  padding: 13px 20px;
  border-radius: 11px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

@media (max-width: 560px) {
  .preview__head {
    padding: 11px 12px;
    gap: 10px;
  }

  .preview__logo {
    display: none;
  }

  .preview__open span {
    display: none;
  }

  .preview__open {
    padding: 10px;
  }

  .preview__viewport {
    max-height: min(48vh, 420px);
  }

  .preview__cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview__panel {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   13b. STICKY CTA MOBILE
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}

.sticky-cta.is-on {
  transform: none;
  opacity: 1;
}

.sticky-cta__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--wrap);
  margin-inline: auto;
}

.sticky-cta__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sticky-cta__title {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta__sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sticky-cta__sub .dot-live {
  width: 5px;
  height: 5px;
}

.sticky-cta__sub .dot-live::after {
  display: none;
}

.sticky-cta__btn {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 22px -12px rgba(43, 43, 43, 0.6);
}

/* Attiva solo su mobile, e lascia respiro al footer */
@media (max-width: 430px) {
  .pill {
    padding: 8px 14px;
    font-size: 12px;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .sticky-cta {
    display: block;
  }

  body.is-locked .sticky-cta {
    display: none;
  }

  .footer {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 767px) and (min-width: 380px) {
  .sticky-cta__inner {
    gap: 16px;
  }
}

/* Schermi molto stretti: niente troncamenti, resta la promessa + il bottone */
@media (max-width: 359px) {
  .sticky-cta {
    padding-inline: 12px;
  }

  .sticky-cta__title {
    display: none;
  }

  .sticky-cta__btn {
    padding: 12px 15px;
    font-size: 11.5px;
  }
}

/* --------------------------------------------------------------------------
   14. MOTION UTILITIES
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   15. PRINT (minimo)
   -------------------------------------------------------------------------- */
@media print {
  body::before,
  body::after,
  .modal {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   14. CONSENSO COOKIE — card compatta, preferenze inline
   -------------------------------------------------------------------------- */

.cc {
  position: fixed;
  z-index: 140;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: clamp(10px, 1.6vw, 20px);
  padding-bottom: max(clamp(10px, 1.6vw, 20px), env(safe-area-inset-bottom));
  pointer-events: none;
}

.cc[hidden] {
  display: none;
}

.cc__card:focus {
  outline: none;
}

/* ---------------- Card ---------------- */
.cc__card {
  pointer-events: auto;
  position: relative;
  width: min(100%, 448px);
  padding: 18px 18px 14px;
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 2px rgba(43, 43, 43, 0.05),
    0 24px 60px -24px rgba(43, 43, 43, 0.4), 0 8px 20px -12px rgba(43, 43, 43, 0.2);
  animation: cc-enter 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cc-enter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cc__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.9),
    rgba(228, 228, 231, 0.5) 45%,
    rgba(255, 255, 255, 0.9)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@media (min-width: 900px) {
  .cc {
    justify-content: flex-start;
    padding-left: clamp(16px, 2vw, 28px);
  }
}

/* ---------------- Vista principale ---------------- */
.cc__head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.cc__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(43, 43, 43, 0.7);
}

.cc__mark svg {
  width: 17px;
  height: 17px;
}

.cc__headtext {
  min-width: 0;
}

.cc__title {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.cc__text {
  margin-top: 4px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.5;
  text-wrap: pretty;
}

.cc__text--tight {
  margin-top: 3px;
  font-size: 11.5px;
}

/* ---------------- Azioni ---------------- */
.cc__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}

.cc__btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease),
    border-color 0.22s var(--ease), box-shadow 0.22s var(--ease),
    color 0.22s var(--ease);
}

.cc__btn--primary {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(43, 43, 43, 0.75);
}

.cc__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgba(43, 43, 43, 0.85);
}

.cc__btn--primary:active {
  transform: translateY(0) scale(0.99);
}

.cc__btn--ghost {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.cc__btn--ghost:hover {
  border-color: rgba(43, 43, 43, 0.24);
  background: var(--ice);
}

.cc__btn--sm {
  flex: 0 0 auto;
}

.cc__link {
  flex: 0 0 auto;
  padding: 9px 2px 9px 8px;
  border: 0;
  background: none;
  color: var(--secondary);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(43, 43, 43, 0.25);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.22s var(--ease), text-decoration-color 0.22s var(--ease);
}

.cc__link:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.cc__policy {
  margin-top: 9px;
  text-align: center;
  color: var(--muted);
  font-size: 10.5px;
}

.cc__policy a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.22s var(--ease);
}

.cc__policy a:hover {
  color: var(--ink);
}

.cc__btn:focus-visible,
.cc__link:focus-visible,
.cc__close:focus-visible,
.cc__policy a:focus-visible {
  outline: 2px solid rgba(43, 43, 43, 0.45);
  outline-offset: 3px;
}

/* Il focus da click non deve disegnare l'anello sul bottone pieno */
.cc__btn--primary:focus:not(:focus-visible) {
  outline: none;
}

.cc__btn:focus-visible {
  outline-offset: 2px;
}

/* ---------------- Vista preferenze (inline, stessa card) ---------------- */
.cc__view--prefs {
  animation: cc-swap 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cc-swap {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cc__prefhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cc__close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--secondary);
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.cc__close:hover {
  background: var(--ice);
  color: var(--ink);
  border-color: rgba(43, 43, 43, 0.2);
}

.cc__rows {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.cc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ice);
}

.cc__rowtext h3 {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: -0.005em;
}

.cc__rowtext p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.cc__always {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.11);
  color: #15803d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Interruttore */
.cc__switch {
  position: relative;
  flex: 0 0 auto;
  display: block;
  width: 38px;
  height: 22px;
  cursor: pointer;
}

.cc__switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cc__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8d8dd;
  transition: background 0.25s var(--ease);
  pointer-events: none;
}

.cc__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(43, 43, 43, 0.3);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc__switch input:checked + .cc__track {
  background: var(--ink);
}

.cc__switch input:checked + .cc__track .cc__knob {
  transform: translateX(16px);
}

.cc__switch input:focus-visible + .cc__track {
  outline: 2px solid rgba(43, 43, 43, 0.45);
  outline-offset: 2px;
}

.cc__preffoot {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

/* ---------------- Mobile: card a tutta larghezza ---------------- */
@media (max-width: 559px) {
  .cc {
    padding: 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .cc__card {
    width: 100%;
    padding: 16px 15px 13px;
    border-radius: 18px;
  }

  .cc__text {
    font-size: 11.5px;
  }

  /* Mobile: CTA principale a tutta larghezza, poi Rifiuta | Personalizza */
  .cc__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 13px;
  }

  .cc__btn--primary {
    grid-column: 1 / -1;
    min-height: 42px;
  }

  .cc__link {
    padding: 9px 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    text-decoration: none;
    color: var(--secondary);
  }

  .cc__link:hover {
    background: var(--ice);
    color: var(--ink);
  }

  .cc__policy {
    margin-top: 11px;
  }
}

/* La sticky CTA lascia spazio alla card */
body.is-cookie-open .sticky-cta {
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cc__card,
  .cc__view--prefs,
  .cc__knob,
  .cc__btn {
    animation: none !important;
    transition: none !important;
  }
}
