/* ══════════════════════════════════════════════════════
   SITI WEB — page stylesheet (v3)
═══════════════════════════════════════════════════════ */

/* -------------------------------------------------------
   Mock browser riutilizzabile
------------------------------------------------------- */
.sw-browser {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  width: 100%;
  min-width: 0;
}

.sw-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #1b1817;
  border-bottom: 1px solid var(--color-border);
}

.sw-browser__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  opacity: 0.55;
}
.sw-browser__dot:nth-child(1) { background: #f06767; }
.sw-browser__dot:nth-child(2) { background: #f2c53b; }
.sw-browser__dot:nth-child(3) { background: #7cc15b; }

.sw-browser__url {
  margin-left: 12px;
  padding: 4px 12px;
  background: rgba(244, 237, 226, 0.05);
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 0.66rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.sw-browser__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.sw-browser__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
}


/* ══════════════════════════════════════════════════════
   §01 · HERO — live-build demo (scroll-driven)
═══════════════════════════════════════════════════════ */

.sw-hero {
  position: relative;
  background:
    radial-gradient(ellipse 1000px 600px at 85% -10%, rgba(242, 169, 59, 0.08), transparent 60%),
    radial-gradient(ellipse 800px 500px at 5% 110%, rgba(214, 69, 51, 0.05), transparent 60%),
    var(--color-bg);
}

.sw-hero__stage {
  position: relative;
  padding-top: calc(var(--navbar-h) + var(--sp-8));
  padding-bottom: var(--sp-12);
}
@media (min-width: 768px) {
  .sw-hero__stage {
    padding-top: calc(var(--navbar-h) + var(--sp-16));
    padding-bottom: var(--sp-20);
  }
}

.sw-hero__rail { display: none; }

@media (min-width: 1100px) {
  .sw-hero__rail {
    position: absolute;
    left: var(--sp-8);
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-5);
    color: var(--color-text-dim);
    z-index: 2;
  }
}

.sw-hero__rail-tag { font-size: 0.58rem; letter-spacing: 0.3em; color: var(--color-accent); }
.sw-hero__rail-barcode {
  writing-mode: horizontal-tb;
  transform: rotate(180deg);
  display: inline-flex;
  gap: 2px;
  color: var(--color-text-dim);
}
.sw-hero__rail-barcode i { display: block; width: 2px; height: 56px; background: currentColor; }
.sw-hero__rail-barcode i:nth-child(3n) { width: 1px; }
.sw-hero__rail-barcode i:nth-child(4n) { width: 3px; height: 72px; }
.sw-hero__rail-barcode i:nth-child(5n) { width: 1.5px; }
.sw-hero__rail-barcode i:nth-child(7n) { width: 2.5px; height: 64px; }

.sw-hero__rail-live {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}
.sw-hero__rail-dot {
  writing-mode: horizontal-tb;
  display: inline-block;
  width: 7px; height: 7px;
  background: #7cc15b;
  border-radius: 50%;
  animation: sw-pulse 1.6s ease-in-out infinite;
}
@keyframes sw-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

.sw-hero__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}
@media (min-width: 900px) {
  .sw-hero__inner {
    grid-template-columns: 1fr 1.15fr;
    gap: var(--sp-12);
  }
}

.sw-hero__text {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
@media (min-width: 900px) {
  .sw-hero__text { gap: var(--sp-10); }
}

.sw-hero__eyebrow { color: var(--color-accent); margin-bottom: 0; }

.sw-hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  padding-bottom: 0.12em;
  margin: 0;
}

.sw-hero__line { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .sw-hero__line {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  }
  .sw-hero__line:nth-of-type(1) { transition-delay: 120ms; }
  .sw-hero__line:nth-of-type(2) { transition-delay: 320ms; }
  .sw-hero.is-revealed .sw-hero__line { opacity: 1; transform: translateY(0); }
}

.sw-hero__line--accent {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, #f2a93b 0%, #d97706 50%, #d64533 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 7s ease-in-out infinite;
  padding-bottom: 0.2em;
}

.sw-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.65;
  color: rgba(244, 237, 226, 0.84);
  max-width: 52ch;
  margin: 0;
}

.sw-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: 0;
}

/* Spec nascosta su mobile — info ripetuta nella sezione pricing */
@media (max-width: 767px) {
  .sw-hero__spec { display: none; }
}

.sw-hero__spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--sp-3) var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(244, 237, 226, 0.06);
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .sw-hero__sub, .sw-hero__ctas, .sw-hero__spec {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  }
  .sw-hero__sub { transition-delay: 700ms; }
  .sw-hero__ctas { transition-delay: 850ms; }
  .sw-hero__spec { transition-delay: 1000ms; transform: none; }
  .sw-hero.is-revealed .sw-hero__sub,
  .sw-hero.is-revealed .sw-hero__ctas,
  .sw-hero.is-revealed .sw-hero__spec {
    opacity: 1; transform: none;
  }
}

.sw-hero__spec-item { display: flex; flex-direction: column; gap: 4px; }
.sw-hero__spec-item dt {
  color: var(--color-text-muted);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.sw-hero__spec-item dd {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}
.sw-hero__spec-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(244, 237, 226, 0.78);
  letter-spacing: 0;
}

/* -------------------------------------------------------
   Live-build browser (Opzione A)
------------------------------------------------------- */
.sw-hero__build-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  width: 100%;
  min-width: 0;
}

.sw-browser--big {
  width: 100%;
  max-width: 640px;
  min-width: 0;
  margin-inline: auto;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8);
  border-color: #2f2b28;
}

.sw-build {
  transition: transform 800ms var(--ease-out);
}
.sw-build[data-stage="0"] { transform: scale(0.96); }
.sw-build[data-stage="1"] { transform: scale(0.98); }
.sw-build[data-stage="2"] { transform: scale(1.00); }
.sw-build[data-stage="3"] { transform: scale(1.02); }
@media (max-width: 639px) {
  .sw-build[data-stage] { transform: none; }
}

.sw-build .sw-browser__url {
  transition: color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
  flex: 1;
  max-width: none;
  font-size: 0.62rem;
}
.sw-build[data-stage="0"] .sw-browser__url { color: var(--color-text-dim); }
.sw-build[data-stage="3"] .sw-browser__url {
  color: var(--color-accent);
  background: rgba(242, 169, 59, 0.1);
}

.sw-build__live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-text-dim);
  margin-left: var(--sp-2);
  transition: background var(--dur-base) var(--ease-out);
}
.sw-build[data-stage="3"] .sw-build__live-dot {
  background: #7cc15b;
  box-shadow: 0 0 10px rgba(124, 193, 91, 0.7);
  animation: sw-pulse 1.4s ease-in-out infinite;
}

.sw-build__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0c0b0a;
  overflow: hidden;
}

.sw-build__stage {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
  pointer-events: none;
}
.sw-build__stage.is-active { opacity: 1; }

/* Stage 1 — vuoto */
.sw-build__empty-inner {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  color: var(--color-text-dim);
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(244,237,226,0.015) 12px 24px);
}
.sw-build__wait {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  opacity: 0.6;
}
.sw-build__cursor {
  width: 10px; height: 20px;
  background: var(--color-accent);
  animation: sw-cursor 1.05s steps(2, start) infinite;
  border-radius: 2px;
}
@keyframes sw-cursor {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* Stage 2 — wireframe */
.sw-build__stage--wire { color: var(--color-text-dim); }
.sw-build__wire-svg { width: 100%; height: 100%; display: block; }
.sw-build__wire-el {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 700ms var(--ease-out);
}
.sw-build__stage--wire.is-active .sw-build__wire-el {
  stroke-dashoffset: 0;
}
.sw-build__stage--wire.is-active .sw-build__wire-el:nth-child(1) { transition-delay: 0ms; }
.sw-build__stage--wire.is-active .sw-build__wire-el:nth-child(2) { transition-delay: 120ms; }
.sw-build__stage--wire.is-active .sw-build__wire-el:nth-child(3) { transition-delay: 220ms; }
.sw-build__stage--wire.is-active .sw-build__wire-el:nth-child(4) { transition-delay: 320ms; }
.sw-build__stage--wire.is-active .sw-build__wire-el:nth-child(5) { transition-delay: 420ms; }
.sw-build__stage--wire.is-active .sw-build__wire-el:nth-child(6) { transition-delay: 520ms; }
.sw-build__stage--wire.is-active .sw-build__wire-el:nth-child(7) { transition-delay: 620ms; }
.sw-build__stage--wire.is-active .sw-build__wire-el:nth-child(8) { transition-delay: 720ms; }

/* Stage 3 — color blocks (mock site layout) */
.sw-build__stage--blocks { background: #f4ede2; overflow: hidden; }
.sw-build__blk {
  position: absolute;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.sw-build__stage--blocks.is-active .sw-build__blk { opacity: 1; transform: translateY(0); }
.sw-build__stage--blocks.is-active .sw-build__blk--nav  { transition-delay: 0ms; }
.sw-build__stage--blocks.is-active .sw-build__blk--hero { transition-delay: 160ms; }
.sw-build__stage--blocks.is-active .sw-build__blk--c1   { transition-delay: 340ms; }
.sw-build__stage--blocks.is-active .sw-build__blk--c2   { transition-delay: 440ms; }
.sw-build__stage--blocks.is-active .sw-build__blk--c3   { transition-delay: 540ms; }

.sw-build__blk--nav {
  top: 0; left: 0; right: 0;
  height: 9%;
  background: #0f0d0b;
}
.sw-build__blk--hero {
  top: 9%; left: 0; right: 0;
  height: 46%;
  background: linear-gradient(135deg, #2a211a 0%, #3b2a1f 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6%;
  gap: 6px;
}
.sw-build__blk-line {
  height: 7px; width: 62%;
  background: rgba(244, 237, 226, 0.75);
  border-radius: 2px;
}
.sw-build__blk-line--short { width: 38%; background: rgba(244, 237, 226, 0.45); }
.sw-build__blk-pill {
  margin-top: 6px;
  width: 80px; height: 14px;
  background: var(--color-accent);
  border-radius: 999px;
}
.sw-build__blk--c1, .sw-build__blk--c2, .sw-build__blk--c3 {
  bottom: 0;
  height: 45%;
  width: 33.34%;
}
.sw-build__blk--c1 { left: 0; background: #e7cfa3; }
.sw-build__blk--c2 { left: 33.33%; background: #d4b06e; }
.sw-build__blk--c3 { left: 66.66%; background: #b88a3a; }

/* Stage 4 — immagine live finale */
.sw-build__stage--final {}
.sw-build__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.2) brightness(0.6);
  transition: filter 900ms var(--ease-out);
}
.sw-build__stage--final.is-active .sw-build__img {
  filter: saturate(1) brightness(1);
}
.sw-build__badge {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  padding: 4px 10px;
  background: #7cc15b;
  color: #0a0909;
  border-radius: 999px;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 400ms var(--ease-out) 600ms, transform 400ms var(--ease-out) 600ms;
}
.sw-build__stage--final.is-active .sw-build__badge {
  opacity: 1; transform: scale(1);
}

/* Steps progress sotto browser */
.sw-build__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
  margin-inline: auto;
  width: 100%;
  min-width: 0;
}
@media (min-width: 640px) {
  .sw-build__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sw-build__step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-3) 0;
  border-top: 2px solid var(--color-border);
  color: var(--color-text-muted);
  transition: color 500ms var(--ease-out), border-color 500ms var(--ease-out);
  min-width: 0;
}
.sw-build__step.is-active {
  border-top-color: var(--color-accent);
  color: var(--color-text);
}
.sw-build__step-num {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}
.sw-build__step-label {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

/* Ticker sotto lo scroll wrapper */
.sw-hero__ticker {
  padding: var(--sp-4) 0;
  border-top: 1px solid rgba(244, 237, 226, 0.06);
  border-bottom: 1px solid rgba(244, 237, 226, 0.06);
  overflow: hidden;
  white-space: nowrap;
  background: var(--color-bg);
}
.sw-hero__ticker-track {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  animation: ticker 32s linear infinite;
}


/* ══════════════════════════════════════════════════════
   §02 · PRICING — fattura compact
═══════════════════════════════════════════════════════ */

.sw-pricing {
  position: relative;
  background: var(--color-surface);
  padding-block: var(--sp-20);
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 768px) { .sw-pricing { padding-block: var(--sp-32); } }

.sw-pricing__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.93 0 0 0 0 0.88 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.sw-pricing__inner { position: relative; z-index: 2; }

.sw-pricing__header { max-width: 820px; margin-bottom: var(--sp-12); }
.sw-pricing__h2 { margin-top: var(--sp-3); }

.sw-pricing__invoice {
  position: relative;
  background: var(--color-bg);
  border: 1px solid rgba(242, 169, 59, 0.46);
  border-radius: 6px;
  padding: var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(242, 169, 59, 0.08),
    0 26px 70px -42px rgba(242, 169, 59, 0.42);
}
@media (min-width: 768px) { .sw-pricing__invoice { padding: var(--sp-8) var(--sp-10); gap: var(--sp-3); } }
@media (min-width: 960px) {
  .sw-pricing__invoice {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    grid-template-rows: auto 1fr;
    gap: 0;
    padding: 0;
  }
}

.sw-pricing__invoice-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-bottom: var(--sp-2);
  margin-bottom: 0;
  border-bottom: 1px dashed rgba(244, 237, 226, 0.1);
}
@media (min-width: 640px) {
  .sw-pricing__invoice-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    padding-bottom: var(--sp-2);
  }
}
@media (min-width: 960px) {
  .sw-pricing__invoice-head {
    grid-column: 2;
    grid-row: 1;
    align-items: flex-start;
    padding: var(--sp-8);
    border-bottom: 1px dashed rgba(242, 169, 59, 0.22);
    border-left: 1px solid rgba(242, 169, 59, 0.28);
  }
}

.sw-pricing__invoice-label {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.sw-pricing__invoice-client {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.sw-pricing__desktop-copy { display: none; }
.sw-pricing__mobile-copy { display: inline; }

@media (min-width: 768px) {
  .sw-pricing__desktop-copy { display: inline; }
  .sw-pricing__mobile-copy { display: none; }
}

/* Timbro BOZZA GRATUITA — appare con effetto stamp dopo 1.5s */
@keyframes stamp-in {
  0%   { opacity: 0; transform: scale(2) rotate(-15deg); filter: blur(4px); }
  55%  { opacity: 1; transform: scale(0.94) rotate(4deg); filter: blur(0); }
  75%  { transform: scale(1.03) rotate(-1deg); }
  100% { transform: scale(1) rotate(-3deg); }
}

.sw-pricing__invoice-stamp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: var(--sp-3) var(--sp-5);
  border: 2px solid var(--color-accent-2);
  border-radius: 6px;
  background: rgba(214, 69, 51, 0.06);
  color: var(--color-accent-2);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  transform: rotate(-3deg);
  max-width: 260px;
  align-self: flex-start;
  animation: stamp-in 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s both;
}
@media (min-width: 640px) { .sw-pricing__invoice-stamp { align-self: center; } }
@media (prefers-reduced-motion: reduce) {
  .sw-pricing__invoice-stamp { animation: none; opacity: 1; transform: rotate(-3deg); }
}

.sw-pricing__invoice-stamp span:last-child {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 400;
  color: var(--color-accent-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.85;
}

/* Linee prodotto (no code, no table) */
.sw-pricing__lines {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 960px) {
  .sw-pricing__lines {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding: var(--sp-8);
    justify-content: center;
  }
}
.sw-pricing__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px dashed rgba(244, 237, 226, 0.08);
}
.sw-pricing__line:last-child { border-bottom: none; }

.sw-pricing__line-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }

.sw-pricing__line-item {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.sw-pricing__line-sub {
  color: var(--color-text-muted);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.sw-pricing__line-price {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum" 1;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.sw-pricing__line-cur { color: var(--color-accent); font-size: 0.8em; }
.sw-pricing__line-unit { font-family: var(--font-body); font-size: 0.62rem; color: var(--color-text-muted); font-weight: 400; margin-left: 4px; }

@media (max-width: 480px) {
  .sw-pricing__line {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--sp-2);
  }

  .sw-pricing__line-price { align-self: flex-end; }
}

.sw-pricing__invoice-split {
  display: block;
  padding-top: var(--sp-4);
  border-top: 1px dashed rgba(244, 237, 226, 0.1);
}
@media (min-width: 960px) {
  .sw-pricing__invoice-split {
    grid-column: 2;
    grid-row: 2;
    padding: var(--sp-8);
    border-top: 0;
    border-left: 1px solid rgba(242, 169, 59, 0.28);
    display: flex;
    align-items: center;
  }
}

.sw-pricing__invoice-col { display: flex; flex-direction: column; gap: var(--sp-3); }

/* ─── Pagamento editoriale: 100€ | 400€ in linea, no box ─── */

.sw-pricing__pay-compact {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-4) var(--sp-5);
  margin: 0;
}

@media (min-width: 540px) {
  .sw-pricing__pay-compact { gap: var(--sp-4) var(--sp-8); }
}

/* su schermi davvero stretti, impila — ma la regola di Marco
   è "tieni in linea", quindi solo sotto i 360px */
@media (max-width: 359px) {
  .sw-pricing__pay-compact { grid-template-columns: 1fr; }
  .sw-pricing__pay-rule    { width: 40%; height: 1px; justify-self: start; }
}

.sw-pricing__pay-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sw-pricing__pay-amount {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.sw-pricing__pay-amount i {
  font-style: normal;
  font-size: 0.65em;
  margin-left: 1px;
  opacity: 0.6;
}

.sw-pricing__pay-label {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* divisore verticale tra i due importi */
.sw-pricing__pay-rule {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(242, 169, 59, 0.4) 50%,
    transparent 100%);
  justify-self: center;
}

.sw-pricing__invoice-col--total {
  align-items: flex-start;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--color-border);
}
@media (min-width: 720px) {
  .sw-pricing__invoice-col--total {
    border-top: none;
    border-left: 1px solid var(--color-border);
    padding-top: 0;
    padding-left: var(--sp-8);
  }
}

.sw-pricing__total-big {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 6rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--color-text);
  margin-block: var(--sp-2);
  font-feature-settings: "tnum" 1;
}
.sw-pricing__total-cur { color: var(--color-accent); font-size: 0.5em; font-weight: 400; margin-left: 6px; letter-spacing: 0; }
.sw-pricing__total-note { color: var(--color-text-muted); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Addons — riga compatta */
.sw-pricing__addons { margin-top: var(--sp-12); }
.sw-pricing__addons-title {
  display: inline-block;
  color: var(--color-text-muted);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.sw-pricing__addon-list {
  list-style: none;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.sw-pricing__addon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: var(--sp-1) var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px dashed rgba(244, 237, 226, 0.08);
  align-items: baseline;
}
.sw-pricing__addon-row:last-child { border-bottom: none; }
@media (min-width: 640px) {
  .sw-pricing__addon-row { padding: var(--sp-4) var(--sp-6); }
}

.sw-pricing__addon-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
  grid-column: 1;
  grid-row: 1;
}

.sw-pricing__addon-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-accent);
  white-space: nowrap;
  justify-self: end;
  grid-column: 2;
  grid-row: 1;
}

.sw-pricing__addon-desc {
  grid-column: 1 / -1;
  grid-row: 2;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}
.sw-pricing__addon-unit {
  font-family: var(--font-body);
  font-size: 0.62rem;
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 2px;
}


/* ══════════════════════════════════════════════════════
   §03 · INCLUDE / ESCLUDE — compact
═══════════════════════════════════════════════════════ */

.sw-include {
  background: var(--color-bg);
  padding-block: var(--sp-20);
}
@media (min-width: 768px) { .sw-include { padding-block: var(--sp-32); } }

.sw-include__header { max-width: 720px; margin-bottom: var(--sp-10); }
.sw-include__h2 { margin-top: var(--sp-3); }

.sw-include__tabs {
  display: flex;
  gap: var(--sp-2);
  padding: 5px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-8);
  width: fit-content;
  max-width: 100%;
}

.sw-include__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.sw-include__tab.is-active { background: var(--color-text); color: var(--color-bg); }
.sw-include__tab-mark { font-family: var(--font-mono); font-weight: 500; }
.sw-include__tab-count {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(242, 169, 59, 0.15);
  color: var(--color-accent);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}
.sw-include__tab.is-active .sw-include__tab-count {
  background: rgba(10, 9, 9, 0.12);
  color: var(--color-bg);
}

/* Lista compatta: solo mark + title, più righe per viewport */
.sw-include__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 640px) {
  .sw-include__list { grid-template-columns: 1fr 1fr; border-top: none; }
  .sw-include__list .sw-include__item { border-top: 1px solid var(--color-border); }
}
@media (min-width: 900px) {
  .sw-include__list { grid-template-columns: 1fr 1fr 1fr; }
}
.sw-include__list[hidden] { display: none; }

.sw-include__list.is-active .sw-include__item {
  animation: sw-flip-in 500ms var(--ease-out) both;
}
.sw-include__list.is-active .sw-include__item:nth-child(1) { animation-delay: 40ms; }
.sw-include__list.is-active .sw-include__item:nth-child(2) { animation-delay: 90ms; }
.sw-include__list.is-active .sw-include__item:nth-child(3) { animation-delay: 140ms; }
.sw-include__list.is-active .sw-include__item:nth-child(4) { animation-delay: 190ms; }
.sw-include__list.is-active .sw-include__item:nth-child(5) { animation-delay: 240ms; }
.sw-include__list.is-active .sw-include__item:nth-child(6) { animation-delay: 290ms; }

@keyframes sw-flip-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sw-include__item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-4) var(--sp-4) 0;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 640px) {
  .sw-include__item { padding: var(--sp-5) var(--sp-5) var(--sp-5) 0; }
}

.sw-include__item-mark {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-accent);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.sw-include__item--out .sw-include__item-mark { color: var(--color-accent-2); }

.sw-include__item-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--color-text);
}
.sw-include__item--out .sw-include__item-title {
  color: var(--color-text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(214, 69, 51, 0.35);
  text-decoration-thickness: 1px;
}

.sw-include__note {
  margin-top: var(--sp-6);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.sw-include__note-link {
  color: var(--color-accent);
  border-bottom: 1px dotted var(--color-accent);
}
.sw-include__note-link:hover { opacity: 0.7; }


/* ══════════════════════════════════════════════════════
   §04 · ALTRI SITI (invariato)
═══════════════════════════════════════════════════════ */

.sw-altri {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--sp-12);
}

.sw-altri__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 900px) { .sw-altri__inner { grid-template-columns: auto 1fr auto; gap: var(--sp-8); } }

.sw-altri__icon {
  color: var(--color-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  background: var(--color-bg);
}

/* ─── Ciclo 4 icone: carrello → gestionale → lock → API ───
   Ogni icona è visibile ~2s con cross-fade + scale.
   Ciclo totale: 10s, infinito. */

.sw-altri__icon { position: relative; }

.sw-altri__icon-svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30px;
  height: 30px;
  opacity: 0;
  transform: scale(0.78);
  animation: sw-altri-cycle 10s ease-in-out infinite;
}

.sw-altri__icon-svg:nth-child(1) { animation-delay: 0s;   }
.sw-altri__icon-svg:nth-child(2) { animation-delay: 2.5s; }
.sw-altri__icon-svg:nth-child(3) { animation-delay: 5s;   }
.sw-altri__icon-svg:nth-child(4) { animation-delay: 7.5s; }

@keyframes sw-altri-cycle {
  0%        { opacity: 0; transform: scale(0.78); }
  6%        { opacity: 1; transform: scale(1);    }
  22%       { opacity: 1; transform: scale(1);    }
  28%       { opacity: 0; transform: scale(0.78); }
  100%      { opacity: 0; transform: scale(0.78); }
}

@media (prefers-reduced-motion: reduce) {
  .sw-altri__icon-svg { animation: none; opacity: 0; }
  .sw-altri__icon-svg:first-child { opacity: 1; transform: scale(1); }
}

.sw-altri__h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-block: var(--sp-2) var(--sp-3);
}
.sw-altri__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--sp-3);
  max-width: 58ch;
}
.sw-altri__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  list-style: none;
}
.sw-altri__tags li {
  padding: 3px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sw-altri__meta {
  color: var(--color-text-dim);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sw-altri__cta { align-self: start; }
@media (min-width: 900px) { .sw-altri__cta { align-self: center; } }


/* ══════════════════════════════════════════════════════
   §05 · PORTFOLIO — stesso formato della home
══════════════════════════════════════════════════════ */

.sw-portfolio {
  background: var(--color-bg);
  padding-block: var(--sp-20);
}
@media (min-width: 768px) { .sw-portfolio { padding-block: var(--sp-32); } }

.sw-portfolio__header { max-width: 720px; margin-bottom: var(--sp-10); }
.sw-portfolio__h2 { margin-top: var(--sp-3); }

.sw-portfolio__scroll {
  display: flex;
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--sp-3) var(--sp-5) var(--sp-6);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sw-portfolio__scroll::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .sw-portfolio__scroll { padding-inline: var(--sp-8); gap: var(--sp-6); }
}
@media (min-width: 900px) {
  .sw-portfolio__scroll {
    --sw-portfolio-tile-w: clamp(300px, 28vw, 380px);
    width: 100vw;
    margin-inline: 50%;
    transform: translateX(-50%);
    gap: clamp(18px, 2vw, 28px);
    padding-inline: max(var(--sp-8), calc((100vw - var(--sw-portfolio-tile-w)) / 2));
    scroll-padding-inline: max(var(--sp-8), calc((100vw - var(--sw-portfolio-tile-w)) / 2));
  }
}

/* Tile — identiche alla home */
.portfolio-tile {
  scroll-snap-align: center;
  flex: 0 0 80vw;
  max-width: 340px;
  background: var(--color-surface);
  border-radius: var(--r-md);
  overflow: hidden;
  opacity: 0.55;
  transform: scale(0.96);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  cursor: pointer;
}
@media (min-width: 768px) {
  .portfolio-tile { flex: 0 0 30vw; max-width: 380px; }
}
@media (min-width: 900px) {
  .portfolio-tile {
    flex: 0 0 var(--sw-portfolio-tile-w);
    max-width: none;
    filter: saturate(0.78) brightness(0.62);
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.8);
  }
}
.portfolio-tile.is-focus {
  opacity: 1;
  transform: scale(1);
}
@media (min-width: 900px) {
  .portfolio-tile.is-focus {
    filter: saturate(1.06) brightness(1.08);
    box-shadow:
      0 34px 70px -28px rgba(0, 0, 0, 0.85),
      0 0 0 1px rgba(242, 169, 59, 0.24),
      0 0 42px -14px rgba(242, 169, 59, 0.72);
  }
}

.portfolio-tile__img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.portfolio-tile__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.portfolio-tile:hover .portfolio-tile__img { transform: scale(1.04); }
.portfolio-tile__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .portfolio-tile__video { transition: opacity 0.4s var(--ease-out); }
}
.portfolio-tile.is-playing .portfolio-tile__video { opacity: 1; }

.portfolio-tile__info {
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.portfolio-tile__client {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
  text-decoration: none;
}
.portfolio-tile__client:hover { color: var(--color-accent); }

/* Footer / dots / counter */
.sw-portfolio__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-5);
}
.sw-portfolio__dots { display: flex; gap: var(--sp-2); }
.sw-portfolio__dots span {
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--color-border);
  transition: background var(--dur-fast), width var(--dur-fast);
  cursor: pointer;
}
.sw-portfolio__dots span.is-active {
  background: var(--color-accent);
  width: 32px;
}
.sw-portfolio__counter { color: var(--color-text-dim); font-size: 0.66rem; letter-spacing: 0.12em; }


/* ══════════════════════════════════════════════════════
   §06 · METODO — LAY-034 + immagini per step
═══════════════════════════════════════════════════════ */

.sw-metodo {
  position: relative;
  background: #141211;
  padding-block: var(--sp-20);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
@media (min-width: 768px) { .sw-metodo { padding-block: var(--sp-32); } }

.sw-metodo__grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.sw-metodo .container { position: relative; z-index: 2; }

.sw-metodo__header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-bottom: var(--sp-16);
  max-width: 1100px;
}
@media (min-width: 900px) {
  .sw-metodo__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-12);
  }
}

.sw-metodo__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  border: 1px solid rgba(244, 237, 226, 0.2);
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  align-self: flex-start;
}
.sw-metodo__tag-dash { color: var(--color-accent); }

.sw-metodo__h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--color-text);
  max-width: 15ch;
}
.sw-metodo__h2-em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent);
}
.sw-metodo__lead {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 44ch;
}

.sw-metodo__wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  --metodo-progress: 0;
}

/* SVG legacy disabilitato — sostituito dalla linea CSS sotto */
.sw-metodo__svg { display: none; }

/* Timeline verticale: traccia base + fill progressivo guidato da --metodo-progress */
.sw-metodo__wrap::before,
.sw-metodo__wrap::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  pointer-events: none;
  z-index: 0;
}
.sw-metodo__wrap::before { background: rgba(242, 169, 59, 0.18); }
.sw-metodo__wrap::after {
  background: linear-gradient(to bottom, var(--color-accent) 0%, var(--color-accent-2) 100%);
  transform-origin: top;
  transform: scaleY(var(--metodo-progress));
  transition: transform 200ms linear;
  box-shadow: 0 0 10px rgba(242, 169, 59, 0.45);
}

/* su desktop la linea va al centro tra le due colonne alternate */
@media (min-width: 900px) {
  .sw-metodo__wrap::before,
  .sw-metodo__wrap::after {
    left: 50%;
    transform-origin: top center;
  }
  .sw-metodo__wrap::after {
    transform: translateX(-1px) scaleY(var(--metodo-progress));
  }
}

.sw-metodo__step {
  position: relative;
  z-index: 2;
  padding: var(--sp-10) var(--sp-2) var(--sp-16);
  padding-left: var(--sp-10);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  opacity: 0.25;
  transition: opacity 600ms var(--ease-out);
  will-change: opacity;
}
.sw-metodo__step.is-hl { opacity: 1; }

@media (min-width: 900px) {
  .sw-metodo__step {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    padding: var(--sp-10) 0 var(--sp-24);
    align-items: center;
  }
  .sw-metodo__step--l .sw-metodo__step-body { grid-column: 1; padding-right: var(--sp-8); padding-left: var(--sp-16); }
  .sw-metodo__step--l .sw-metodo__step-media { grid-column: 2; padding-right: var(--sp-16); }
  .sw-metodo__step--r .sw-metodo__step-body { grid-column: 2; padding-left: var(--sp-8); padding-right: var(--sp-16); text-align: right; margin-left: auto; }
  .sw-metodo__step--r .sw-metodo__step-media { grid-column: 1; padding-left: var(--sp-16); }
}

.sw-metodo__step-body { max-width: 44ch; }

.sw-metodo__step-kicker {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
@media (min-width: 900px) {
  .sw-metodo__step--r .sw-metodo__step-kicker { justify-content: flex-end; }
}

.sw-metodo__step-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgba(244, 237, 226, 0.25);
  transition: color 700ms var(--ease-out);
}
.sw-metodo__step.is-hl .sw-metodo__step-num { color: var(--color-accent); }

.sw-metodo__step-label {
  color: var(--color-text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sw-metodo__step-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--sp-4);
}

.sw-metodo__step-text {
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 42ch;
}
@media (min-width: 900px) {
  .sw-metodo__step--r .sw-metodo__step-text { margin-left: auto; }
}

.sw-metodo__step-media {
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 900ms var(--ease-out), opacity 900ms var(--ease-out);
  opacity: 0.6;
}
.sw-metodo__step.is-hl .sw-metodo__step-media {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.sw-metodo__step-cap {
  display: block;
  margin-top: var(--sp-3);
  color: var(--color-text-dim);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


/* ══════════════════════════════════════════════════════
   §07 · FAQ — scroll snap carousel (invariato)
═══════════════════════════════════════════════════════ */

.sw-faq {
  background: var(--color-bg);
  padding-block: var(--sp-20);
}
@media (min-width: 768px) { .sw-faq { padding-block: var(--sp-32); } }

.sw-faq__header { max-width: 720px; margin-bottom: var(--sp-10); }
.sw-faq__h2 { margin-top: var(--sp-3); }

.sw-faq__scroll {
  display: flex;
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--sp-3) var(--sp-5) var(--sp-6);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sw-faq__scroll::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .sw-faq__scroll { padding-inline: var(--sp-8); gap: var(--sp-6); }
}

.sw-faq__card {
  position: relative;
  flex: 0 0 85%;
  max-width: 460px;
  min-height: 340px;
  scroll-snap-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
@media (min-width: 768px) { .sw-faq__card { flex: 0 0 460px; padding: var(--sp-8); } }

.sw-faq__card:hover,
.sw-faq__card.is-focus {
  border-color: rgba(242, 169, 59, 0.4);
  transform: translateY(-4px);
}

.sw-faq__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  border-bottom: 1px dashed rgba(244, 237, 226, 0.08);
}

.sw-faq__card-code {
  color: var(--color-accent);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sw-faq__card-tag {
  padding: 3px 10px;
  border: 1px solid rgba(244, 237, 226, 0.15);
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sw-faq__card-q {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

.sw-faq__card-a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.sw-faq__card-corner {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 10px; height: 10px;
  border-right: 1px solid var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  opacity: 0.5;
  pointer-events: none;
}

.sw-faq__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-5);
}

.sw-faq__dots { display: flex; gap: var(--sp-2); }
.sw-faq__dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--dur-fast), width var(--dur-fast);
  cursor: pointer;
}
.sw-faq__dots span.is-active {
  background: var(--color-accent);
  width: 22px;
  border-radius: 999px;
}
.sw-faq__counter { color: var(--color-text-dim); font-size: 0.66rem; letter-spacing: 0.12em; }


/* ══════════════════════════════════════════════════════
   §08 · CTA FINALE (invariato)
═══════════════════════════════════════════════════════ */

.sw-cta {
  position: relative;
  background: var(--color-bg);
  padding-block: var(--sp-24);
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 768px) { .sw-cta { padding-block: var(--sp-32); } }

.sw-cta__watermark {
  position: absolute;
  right: -3vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(18rem, 45vw, 32rem);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 237, 226, 0.04);
  pointer-events: none;
  user-select: none;
}

.sw-cta__inner { position: relative; z-index: 2; max-width: 960px; }

.sw-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-block: var(--sp-5) var(--sp-8);
}

.sw-cta__line { display: block; color: var(--color-text); }

.sw-cta__line--fill {
  background: linear-gradient(90deg, #f2a93b 0%, #d64533 40%, #f2a93b 80%, #d64533 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease-in-out infinite;
  padding-bottom: 0.2em;
}

.sw-cta__line--small {
  font-size: 0.6em;
  color: var(--color-text-muted);
  margin-top: var(--sp-3);
  font-weight: 400;
}

.sw-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}

.sw-cta__note { font-size: 0.68rem; }
