/* Animazioni d'ingresso (replica di framer-motion: opacity 0->1, y 28/36 -> 0, 0.7s, ease [.2,.8,.2,1]) */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(28px);
    animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) forwards;
  }
  .reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s),
      transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Lettere dell'hero: parallasse col mouse */
[data-letter] {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Tooltip "Apri il caso studio" */
.work-tip {
  pointer-events: none;
  position: absolute;
  z-index: 10;
  transform: translate(-50%, -130%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: #a0d8ef;
  color: #32292f;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
}

/* Card dei lavori / servizi: pressione tattile */
a.sticky-cta:active, #hero-cta:active { transform: scale(0.97); }

/* ---- Pulsante flottante "Prenota il domani" ------------------------------ */
.sticky-cta {
  position: fixed; z-index: 40;
  left: 50%; bottom: max(1rem, env(safe-area-inset-bottom));
  white-space: nowrap;
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 1.25rem);
  transition: opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.22s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0s linear 0.22s,
    background-color 0.2s, color 0.2s;
}
.sticky-cta.is-shown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition-delay: 0s;
}
.sticky-cta.is-shown:active { transform: translate(-50%, 0) scale(0.97); }

/* Pagina caso studio: la colonna del testo resta ancorata solo se entra nello schermo */
@media (min-width: 1024px) {
  .case-aside { position: sticky; top: 4.5rem; max-height: calc(100vh - 4.5rem); overflow-y: auto; scrollbar-width: thin; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta, .sticky-cta.is-shown { transition: none; }
}

/* ---- Utility aggiunte (il CSS compilato originale non le contiene) ------- */
.gap-8 { gap: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.pb-14 { padding-bottom: 3.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-prose { max-width: 65ch; }
.text-balance { text-wrap: balance; }
.shadow-\[0_25px_60px_rgba\(160\,216\,239\,0\.55\)\] { box-shadow: 0 25px 60px rgba(160, 216, 239, 0.55); }
.shadow-\[0_8px_30px_rgba\(50\,41\,47\,0\.35\)\,0_0_45px_rgba\(160\,216\,239\,0\.75\)\] { box-shadow: 0 8px 30px rgba(50, 41, 47, 0.35), 0 0 45px rgba(160, 216, 239, 0.75); }
.group:hover .group-hover\:translate-x-1 { transform: translate(0.25rem, -0.25rem); }
@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:-translate-y-4 { transform: translateY(-1rem); }
  .md\:pt-4 { padding-top: 1rem; }
  .md\:pb-20 { padding-bottom: 5rem; }
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:mb-16 { margin-bottom: 4rem; }
  .md\:mt-16 { margin-top: 4rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:h-12 { height: 3rem; }
  .md\:w-12 { width: 3rem; }
}
@media (min-width: 1024px) {
  .lg\:items-start { align-items: flex-start; }
  .lg\:shrink-0 { flex-shrink: 0; }
  .lg\:pt-10 { padding-top: 2.5rem; }
}

/* ======================= SFONDI VIVI ======================================= */
.has-decor > *:not(.decor):not(.wave-strip) { position: relative; z-index: 1; }
.decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.decor-wrap { position: absolute; will-change: transform; }
.blob {
  display: block; width: 100%; height: 100%;
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  filter: blur(46px) opacity(0.7);
  animation: blob-morph 22s ease-in-out infinite alternate;
}
@keyframes blob-morph {
  0%   { transform: translate(0, 0) rotate(0) scale(1); border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; }
  50%  { transform: translate(4%, -6%) rotate(40deg) scale(1.12); border-radius: 42% 58% 40% 60% / 56% 44% 58% 42%; }
  100% { transform: translate(-5%, 5%) rotate(-30deg) scale(0.94); border-radius: 52% 48% 62% 38% / 40% 60% 46% 54%; }
}
.wave-strip { position: absolute; inset: auto 0 0 0; height: 7rem; overflow: hidden; pointer-events: none; z-index: 0; }
.wave-strip-flip { transform: scaleY(-1); inset: 0 0 auto 0; }

/* ======================= SERVIZI =========================================== */
@media (min-width: 1024px) { .svc-slot-1 { margin-top: 3rem; } .svc-slot-2 { margin-top: 1.25rem; } }
.svc {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1.5rem; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s, border-radius 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.svc-0 { background: #a0d8ef; color: #32292f; border-radius: 3.5rem 1.5rem 3.5rem 1.5rem; }
.svc-1 { background: #32292f; color: #fdf7c9; border-radius: 1.5rem 3.5rem 1.5rem 3.5rem; }
.svc-2 { background: #6ec6e4; color: #32292f; border-radius: 4rem 2rem 4rem 2rem; }
.svc:hover { transform: translateY(-0.5rem) rotate(-0.6deg); box-shadow: 0 25px 60px rgba(50, 41, 47, 0.25); }
.svc-0:hover { border-radius: 1.5rem 3.5rem 1.5rem 3.5rem; }
.svc-1:hover { border-radius: 3.5rem 1.5rem 3.5rem 1.5rem; }
.svc-2:hover { border-radius: 2rem 4rem 2rem 4rem; }
.svc-art { height: 11rem; display: flex; justify-content: flex-end; }
.svc-blob {
  position: relative; display: block; width: 11rem; height: 11rem; overflow: hidden;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  animation: svc-morph 9s ease-in-out infinite alternate;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.svc:hover .svc-blob { transform: rotate(8deg) scale(1.06); }
@keyframes svc-morph {
  to { border-radius: 42% 58% 38% 62% / 58% 44% 56% 42%; }
}
.svc-chip {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.4rem 0.9rem; border-radius: 9999px;
  border: 1.5px solid currentColor; font-size: 0.95rem; line-height: 1.2;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s cubic-bezier(0.23, 1, 0.32, 1);
}
.svc-chip:hover { background: currentColor; }
.svc-0 .svc-chip:hover { color: #a0d8ef; background: #32292f; border-color: #32292f; }
.svc-1 .svc-chip:hover { color: #32292f; background: #fdf7c9; border-color: #fdf7c9; }
.svc-2 .svc-chip:hover { color: #6ec6e4; background: #32292f; border-color: #32292f; }
.svc-chip:active { transform: scale(0.96); }

/* ======================= PROCESSO ========================================== */
.step-line { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 7rem; margin-top: -3.5rem; opacity: 0.35; display: none; }
@media (min-width: 1280px) {
  .step-line { display: block; }
  .step-slot-1 { transform: translateY(2.5rem); }
  .step-slot-3 { transform: translateY(2.5rem); }
}
.step {
  position: relative; overflow: hidden; height: 100%; min-height: 16rem;
  padding: 3.5rem 2rem 2rem; display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.45s, border-radius 0.5s;
}
.step-0 { background: #32292f; color: #fdf7c9; }
.step-1 { background: #a0d8ef; color: #32292f; box-shadow: 0 18px 40px rgba(110, 198, 228, 0.35); }
.step:hover { transform: translateY(-0.5rem) rotate(0.8deg); box-shadow: 0 0 45px rgba(160, 216, 239, 0.6); }
.step-ghost {
  position: absolute; top: -1.5rem; right: 1rem; font-family: var(--font-heading); font-size: 8rem; line-height: 1;
  font-weight: 700; pointer-events: none; user-select: none; opacity: 0.18;
}
.step-0 .step-ghost { color: #a0d8ef; }
.step-pill {
  align-self: flex-start; position: relative; z-index: 1; font-family: var(--font-mono); font-size: 0.875rem;
  padding: 0.125rem 0.625rem; border-radius: 9999px;
}
.step-0 .step-pill { background: #a0d8ef; color: #32292f; }
.step-1 .step-pill { background: #32292f; color: #fdf7c9; }

/* ======================= METODO: un brief, tre risultati ==================== */
.method-stage { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .method-stage { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: start; } }
.tile { margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.tile-frame { border-radius: 2.5rem 1rem 2.5rem 1rem; overflow: hidden; box-shadow: 0 20px 50px rgba(50, 41, 47, 0.2); isolation: isolate; }
.tile-ai .tile-frame { border-radius: 1rem 2.5rem 1rem 2.5rem; }
@media (min-width: 768px) { .tile-dim { transform: translateY(-1rem); } .tile-dim .tile-frame { box-shadow: 0 25px 60px rgba(160, 216, 239, 0.7); } }
.tile-dim .tile-frame { border-radius: 3rem; }
.tile figcaption { display: grid; gap: 0.5rem; }
.tile-tag {
  justify-self: start; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 9999px; background: rgba(50, 41, 47, 0.12); color: #32292f;
}
.tile-dim .tile-tag { background: #32292f; color: #fdf7c9; }
.tile figcaption p { font-size: 1.05rem; line-height: 1.5; max-width: 30ch; }

.poster { position: relative; overflow: hidden; container-type: inline-size; aspect-ratio: 16 / 10; }
@media (min-width: 768px) { .poster { aspect-ratio: 4 / 5; } }

/* CapCut: template di default */
.poster-cc { background: linear-gradient(160deg, #ff5f6d 0%, #ffc371 100%); font-family: Impact, "Arial Black", system-ui, sans-serif; }
.cc-title {
  position: absolute; left: 8%; top: 24%; font-size: 17cqw; line-height: 0.95; text-transform: uppercase; color: #fff;
  -webkit-text-stroke: 0.6cqw #1b1b1b; paint-order: stroke fill; letter-spacing: 0.01em; text-shadow: 0.8cqw 0.8cqw 0 #1b1b1b;
}
.cc-burst { position: absolute; right: 8%; top: 8%; background: #ffe600; color: #1b1b1b; font-size: 7cqw; padding: 1.2cqw 3cqw; transform: rotate(8deg); border-radius: 1cqw; }
.cc-sticker { position: absolute; right: 12%; bottom: 26%; background: #1b1b1b; color: #fff; font-size: 9cqw; padding: 2cqw 3.5cqw; border-radius: 50%; transform: rotate(-10deg); }
.cc-timeline { position: absolute; left: 4%; right: 4%; bottom: 5%; height: 9cqw; display: flex; gap: 1cqw; padding: 1.2cqw; background: rgba(0,0,0,0.55); border-radius: 2cqw; }
.cc-timeline i { flex: 0 0 var(--w); background: #fff; opacity: 0.9; border-radius: 1cqw; }
.cc-timeline i:nth-child(even) { background: #ff5f6d; }

/* AI: gradiente generico, pezzi scollegati */
.poster-ai { background: linear-gradient(135deg, #6d5df6 0%, #b565f0 55%, #f59ed6 100%); color: #fff; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.ai-orb {
  position: absolute; width: 56%; aspect-ratio: 1; left: 14%; top: 8%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.85), rgba(255,255,255,0.12) 62%, transparent 70%);
  animation: ai-drift 4.8s steps(6) infinite alternate;
}
.ai-star { position: absolute; width: 8cqw; right: 12%; top: 10%; opacity: 0.9; animation: ai-drift 3.4s steps(5) infinite alternate-reverse; }
.ai-title { position: absolute; left: 9%; bottom: 24%; max-width: 70%; font-weight: 700; font-size: 8cqw; line-height: 1.1; letter-spacing: -0.01em; transform: rotate(-2deg); }
.ai-chip { position: absolute; left: 9%; bottom: 9%; padding: 1.2cqw 3cqw; border-radius: 9999px; background: rgba(255,255,255,0.22); backdrop-filter: blur(6px); font-size: 3.4cqw; font-weight: 600; transform: translate(0.4rem, 0.3rem) rotate(1.5deg); }
.ai-bar { position: absolute; right: 10%; bottom: 12%; width: 22%; height: 2.2cqw; border-radius: 9999px; background: rgba(255,255,255,0.45); animation: ai-drift 5.6s steps(4) infinite alternate; }
@keyframes ai-drift {
  0% { transform: translate(0, 0); } 33% { transform: translate(0.6rem, -0.4rem) rotate(3deg); }
  66% { transform: translate(-0.5rem, 0.5rem) rotate(-2deg); } 100% { transform: translate(0.3rem, 0.8rem); }
}

/* dimanə: su misura */
.poster-dim { background: #a0d8ef; color: #32292f; }
.dim-title { position: absolute; left: 8%; bottom: 22%; font-size: 17cqw; line-height: 0.95; letter-spacing: -0.03em; font-weight: 700; }
.dim-sub { position: absolute; left: 8%; bottom: 10%; font-family: var(--font-mono); font-size: 3.2cqw; letter-spacing: 0.2em; text-transform: uppercase; }
.bubbles i {
  position: absolute; bottom: -12cqw; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: rgba(253, 247, 201, 0.78); box-shadow: inset -0.9cqw -0.9cqw 0 rgba(110, 198, 228, 0.55);
  animation: bubble-up var(--t) linear var(--dl) infinite;
}
@keyframes bubble-up { 0% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-65cqw) translateX(3cqw); } 100% { transform: translateY(-130cqw) translateX(-1.5cqw); } }

/* ======================= LOGO 3D NELLA CTA ================================= */
.cta-logo3d { position: absolute; z-index: 5; width: 13rem; aspect-ratio: 1; right: -0.5rem; top: -4.25rem; cursor: grab; pointer-events: auto; }
@media (min-width: 1024px) { .cta-logo3d { width: 17rem; right: -1.5rem; top: -4.75rem; } }

@media (prefers-reduced-motion: reduce) {
  .blob, .svc-blob, .ai-orb, .ai-star, .ai-bar, .bubbles i { animation: none !important; }
}

.pb-16 { padding-bottom: 4rem; }
.pb-24 { padding-bottom: 6rem; }
.tracking-\[-0\.03em\] { letter-spacing: -0.03em; }
@media (min-width: 768px) { .md\:mb-10 { margin-bottom: 2.5rem; } .md\:pb-32 { padding-bottom: 8rem; } }
@media (min-width: 1024px) { .lg\:gap-6 { gap: 1.5rem; } }

.svc h3 { font-size: clamp(1.9rem, 2.4vw, 2.6rem); line-height: 1; overflow-wrap: anywhere; }
@media (max-width: 1023px) { .svc h3 { font-size: 2.25rem; } }

/* ======================= GRADIENTI E SEZIONI ================================ */
/* Le sezioni sono trasparenti sul fondo crema: le macchie sfumano da una sezione
   all'altra senza bordi netti. Si taglia solo in orizzontale. */
section.has-decor {
  background: transparent !important;
  overflow-x: clip; overflow-y: visible;
}
.decor { overflow: visible; }
.wave-strip { z-index: 0; }
body { background: #fdf7c9; overflow-x: clip; }

/* Hero: tra 1024 e 1279px il testo non passa sotto il logo 3D */
@media (min-width: 1024px) and (max-width: 1279px) {
  #hero .leading-relaxed { max-width: 24rem; }
  #hero .rise.relative.z-10.mt-6 { max-width: 24rem; }
}

/* ======================= TITOLI CARATTERE PER CARATTERE ===================== */
.ch { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .split-ready .ch { opacity: 0; transform: translateY(0.55em) rotate(5deg); filter: blur(6px); }
  .split-ready.is-visible .ch, .reveal.is-visible .split-ready .ch {
    animation: ch-in 0.65s cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: calc(var(--i) * 28ms);
  }
  .hero-letter { animation: letter-in 0.8s cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: calc(0.18s + var(--i) * 70ms); }
}
@keyframes ch-in { from { opacity: 0; transform: translateY(0.55em) rotate(5deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes letter-in { from { opacity: 0; translate: 0 0.5em; rotate: 6deg; filter: blur(8px); } to { opacity: 1; translate: 0 0; rotate: 0deg; filter: blur(0); } }

/* ======================= CASI STUDIO ======================================= */
.cover-type {
  background: linear-gradient(150deg, #3a2f36, #241d22); color: #fdf7c9; overflow: hidden;
  background-image: radial-gradient(circle at 80% 15%, rgba(160, 216, 239, 0.45), transparent 55%), linear-gradient(150deg, #3a2f36, #241d22);
}
.cover-type b {
  position: absolute; left: 1.25rem; bottom: 1rem; right: 1rem; font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 0.95; letter-spacing: -0.03em;
}
.swatch { display: grid; gap: 0.4rem; justify-items: start; }
.swatch span { width: 3.5rem; height: 3.5rem; border-radius: 1.1rem; box-shadow: inset 0 0 0 2px rgba(50, 41, 47, 0.18); }
.swatch b { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; font-weight: 500; text-transform: uppercase; }

/* ======================= PAGINA CASO STUDIO ================================ */
.cs { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem 3rem; }
@media (min-width: 768px) { .cs { padding: 0 2.5rem 4rem; } }
.cs-back { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding-top: 6rem; font-family: var(--font-mono); font-size: 0.875rem; letter-spacing: 0.2em; text-transform: uppercase; }
.cs-back:hover { text-decoration: underline; text-underline-offset: 0.5rem; }

.cs-hero { display: grid; gap: 2.5rem; padding: 1.5rem 0 3.5rem; }
@media (min-width: 1024px) { .cs-hero-media { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 4rem; align-items: start; } }
.cs-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.cs-meta li { display: inline-flex; gap: 0.5rem; align-items: baseline; padding: 0.4rem 0.9rem; border-radius: 9999px; background: rgba(50, 41, 47, 0.08); font-size: 0.95rem; }
.cs-meta span { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.65; }
.cs-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 0.95; letter-spacing: -0.04em; text-wrap: balance; margin-bottom: 1.25rem; }
.cs-lead { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.45; max-width: 36rem; }
.cs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 0.75rem; margin-top: 2rem; max-width: 36rem; }
.cs-kpis li { background: #32292f; color: #fdf7c9; border-radius: 1.5rem; padding: 1rem 1.1rem; display: grid; gap: 0.35rem; }
.cs-kpis b { font-family: var(--font-heading); font-size: 1.6rem; line-height: 1; }
.cs-kpis span { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; line-height: 1.35; }

.cs-story { display: grid; gap: 2.5rem; padding: 3rem 0; border-top: 2px solid #a0d8ef; }
@media (min-width: 900px) { .cs-story { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } .cs-story-palette { grid-column: 1 / -1; } }
.cs-story h2 { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 0.9rem; }
.cs-story h2::before { content: ""; width: 1.5rem; height: 3px; border-radius: 9999px; background: #a0d8ef; }
.cs-story p { font-size: 1.15rem; line-height: 1.65; max-width: 38rem; }
.cs-palette { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Foto: proporzioni originali, a colonne (masonry) */
.cs-media { display: grid; gap: 3rem; padding-top: 1rem; }
.cs-gallery { columns: 1; column-gap: 1.25rem; }
@media (min-width: 640px) { .cs-gallery { columns: 2; } }
.cs-shot { break-inside: avoid; margin: 0 0 1.25rem; }
.cs-zoom { display: block; width: 100%; padding: 0; border-radius: 1.75rem; overflow: hidden; cursor: zoom-in; background: #32292f10; transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s; }
.cs-zoom img { display: block; width: 100%; height: auto; }
.cs-zoom:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(50, 41, 47, 0.2); }
.cs-zoom:active { transform: scale(0.99); }

/* Video verticali (Instagram / TikTok) in una cornice "telefono" */
.cs-videos { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 22rem)); justify-content: center; }
.cs-phone { margin: 0; display: grid; gap: 0.9rem; justify-items: center; }
.cs-phone-frame { width: 100%; max-width: 22rem; aspect-ratio: 9 / 17; border-radius: 2.25rem; overflow: hidden; background: #32292f; border: 0.5rem solid #32292f; box-shadow: 0 25px 60px rgba(50, 41, 47, 0.28); }
.cs-phone-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.cs-phone figcaption a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: underline; text-decoration-color: #a0d8ef; text-decoration-thickness: 4px; text-underline-offset: 0.5rem; }
.cs-featured { display: flex; justify-content: center; }

.cs-next { margin-top: 4rem; padding-top: 2.5rem; border-top: 2px solid #a0d8ef; }
.cs-next a { display: grid; gap: 0.75rem; }
.cs-next span { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.7; }
.cs-next b { font-family: var(--font-heading); font-size: clamp(1.9rem, 5vw, 3.75rem); letter-spacing: -0.04em; display: flex; align-items: center; gap: 1rem; transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1); }
.cs-next a:hover b { transform: translateX(0.5rem); }
.cover-contain { background: radial-gradient(circle at 70% 10%, rgba(160, 216, 239, 0.5), transparent 60%), #3a2f36; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(36, 29, 34, 0.88); backdrop-filter: blur(6px); }
.lightbox img { display: block; max-width: 96vw; max-height: 94vh; width: auto; height: auto; border-radius: 1.25rem; }
.lightbox-close { position: absolute; top: -0.75rem; right: -0.75rem; width: 2.75rem; height: 2.75rem; border-radius: 9999px; background: #fdf7c9; color: #32292f; font-size: 1.6rem; line-height: 1; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.lightbox[open] { animation: lb-in 0.22s cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.96); } }

/* ======================= REVISIONE ========================================= */
.step-mark { text-decoration: underline; text-decoration-color: #a0d8ef; text-decoration-thickness: 0.3em; text-underline-offset: 0.18em; text-decoration-skip-ink: none; }
.step-pill { font-size: 0.8rem; }
.step { min-height: 13.5rem; padding: 3rem 1.75rem 1.75rem; }
.step h3 { font-size: clamp(1.9rem, 2.6vw, 2.5rem); }
.svc-art { height: 9rem; }
.svc-blob { width: 9rem; height: 9rem; }
@media (min-width: 640px) and (max-width: 1023px) { .svc-slot-2 { grid-column: 1 / -1; } .svc-slot-2 .svc { min-height: 0; } }
@media (min-width: 768px) { .poster { aspect-ratio: 1 / 1.08; } .tile-dim { transform: translateY(-0.75rem); } }
.tile figcaption p { font-size: 1rem; }

.cs-logo { width: 3.5rem; height: 3.5rem; border-radius: 50%; margin-bottom: 1rem; box-shadow: 0 6px 18px rgba(50, 41, 47, 0.2); }
.cs-hero-img { margin: 0; width: 100%; }
.cs-hero-img .cs-zoom { box-shadow: 0 25px 60px rgba(50, 41, 47, 0.25); }
.cs-extra { margin: 0; width: 100%; max-width: 22rem; }
.cs-videos { align-items: start; }
.step-mark {
  text-decoration: none;
  background-image: linear-gradient(transparent 64%, #a0d8ef 64%, #a0d8ef 92%, transparent 92%);
  padding: 0 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ======================= PRENOTAZIONI: card di conferma ==================== */
.booking-dialog { border: 0; padding: 0; background: transparent; margin: auto; max-width: min(34rem, calc(100vw - 2rem)); overflow: visible; }
.booking-dialog::backdrop { background: rgba(50, 41, 47, 0.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.booking-dialog[open] { animation: lb-in 0.28s cubic-bezier(0.23, 1, 0.32, 1); }
.booking-dialog[open]::backdrop { animation: backdrop-in 0.28s ease-out; }
@keyframes backdrop-in { from { opacity: 0; } }
.booking-card { background: #32292f; color: #fdf7c9; padding: 2rem; border-radius: 3rem 1.5rem 3rem 1.5rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 60px rgba(160, 216, 239, 0.35); }
@media (min-width: 640px) { .booking-card { padding: 2.5rem; } }
.booking-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.booking-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.25rem; border-radius: 9999px;
  border: 1.5px solid rgba(253, 247, 201, 0.5); color: #fdf7c9; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
}
.booking-btn:hover { background: #a0d8ef; color: #32292f; border-color: #a0d8ef; }
.booking-btn:active { transform: scale(0.97); }
.booking-btn-main { background: #a0d8ef; color: #32292f; border-color: #a0d8ef; }
.booking-btn-main:hover { background: #fdf7c9; border-color: #fdf7c9; }
#booking-form select, #booking-form input[type="date"] { appearance: none; -webkit-appearance: none; }
#booking-form select:disabled { opacity: 0.6; }

/* ======================= CASO STUDIO: copertina + logo + reel ============== */
.cs-pair { display: grid; gap: 2rem; padding: 3rem 0 1rem; align-items: start; }
@media (min-width: 900px) { .cs-pair { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 3rem; } }
.cs-pair-img { margin: 0; }
.cs-pair-frame { position: relative; border-radius: 2rem; overflow: hidden; box-shadow: 0 25px 60px rgba(50, 41, 47, 0.25); }
.cs-pair-frame .cs-zoom { border-radius: 0; }
.cs-overlay-logo {
  position: absolute; aspect-ratio: 1; height: auto; border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 0.35rem rgba(253, 247, 201, 0.9);
}
.cs-pair-video { display: flex; justify-content: center; }

/* ======================= HEADER ============================================ */
.site-header { position: fixed; z-index: 50; top: 0.75rem; left: 0.75rem; right: 0.75rem; max-width: 72rem; margin-inline: auto; }
@media (min-width: 768px) { .site-header { top: 1rem; left: 1.5rem; right: 1.5rem; } }
.site-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 3.5rem; padding: 0 0.5rem 0 0.5rem;
  border-radius: 9999px; color: #fdf7c9;
  background: rgba(50, 41, 47, 0.82); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(50, 41, 47, 0.22), inset 0 0 0 1px rgba(253, 247, 201, 0.08);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled .site-nav { background: rgba(36, 29, 34, 0.92); box-shadow: 0 14px 40px rgba(50, 41, 47, 0.32), inset 0 0 0 1px rgba(253, 247, 201, 0.1); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding-right: 0.75rem; font-family: "NauryzRedKeds", sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; color: #fdf7c9; }
.brand img { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; }
.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .nav-links { display: flex; } .nav-toggle { display: none !important; } .nav-menu { display: none !important; } }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border-radius: 9999px;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: #fdf7c9;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-links a:hover { background: rgba(253, 247, 201, 0.12); }
.nav-links a.is-active { background: #a0d8ef; color: #32292f; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 9999px; color: #fdf7c9; transition: background-color 0.18s ease, transform 0.15s cubic-bezier(0.23, 1, 0.32, 1); }
.nav-toggle:hover { background: rgba(253, 247, 201, 0.12); }
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle svg path { transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1); transform-origin: center; transform-box: fill-box; }
.nav-toggle[aria-expanded="true"] .bar-a { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar-b { transform: translateY(-4px) rotate(-45deg); }
.nav-menu {
  margin-top: 0.5rem; padding: 0.75rem; display: grid; gap: 0.25rem; border-radius: 2rem 1rem 2rem 1rem;
  background: rgba(50, 41, 47, 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(50, 41, 47, 0.3);
  transform-origin: top center; animation: menu-in 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-0.5rem) scale(0.98); } }
.nav-menu a {
  display: flex; align-items: center; min-height: 3rem; padding: 0 1rem; border-radius: 1rem; color: #fdf7c9;
  font-family: var(--font-heading); font-size: 1.6rem; letter-spacing: -0.02em;
}
.nav-menu a:active { background: rgba(253, 247, 201, 0.12); }
.nav-menu a.is-active { background: #a0d8ef; color: #32292f; }
.nav-menu .nav-menu-cta { margin-top: 0.25rem; justify-content: center; background: #fdf7c9; color: #32292f; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; }
/* l'header non copre i titoli quando si salta a un'ancora */
section[id] { scroll-margin-top: 5.5rem; }

/* ======================= CAPCUT / AI: volutamente anonimi ================== */
.poster-cc {
  background: linear-gradient(160deg, #a89a98 0%, #bda98a 100%);
  filter: saturate(0.5) contrast(0.9) brightness(0.98);
}
.poster-cc::after, .poster-ai::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,0.035) 0 2px, transparent 2px 6px);
}
.cc-title { color: #e8e2da; -webkit-text-stroke-color: #4d4846; text-shadow: 0.8cqw 0.8cqw 0 #4d4846; }
.cc-burst { background: #c8c28a; color: #4d4846; }
.cc-sticker { background: #5b5654; color: #e8e2da; }
.cc-timeline { background: rgba(60, 56, 54, 0.55); }
.cc-timeline i { background: #d9d3cb; }
.cc-timeline i:nth-child(even) { background: #a98f8c; }

.poster-ai {
  background: linear-gradient(135deg, #8c88a4 0%, #a595ae 55%, #b8a2a6 100%);
  filter: saturate(0.5) contrast(0.92);
}
.poster-ai .ai-orb { background: radial-gradient(circle at 35% 30%, rgba(240,238,245,0.7), rgba(240,238,245,0.1) 62%, transparent 70%); }
.poster-ai .ai-title, .poster-ai .ai-star { color: #ece9f1; }
.poster-ai .ai-chip { background: rgba(240, 238, 245, 0.2); }

/* ======================= SMARTPHONE ======================================== */
/* nessun menu su mobile: il header è solo il marchio */
.nav-toggle, .nav-menu { display: none !important; }

/* Servizi e lavori a carosello (solo telefoni) */
@media (max-width: 767px) {
  .svc-grid, .works-grid {
    display: flex !important; grid-template-columns: none;
    gap: 1rem; margin-inline: -1.25rem; padding: 0.5rem 1.25rem 1rem;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .svc-grid::-webkit-scrollbar, .works-grid::-webkit-scrollbar { display: none; }
  .svc-grid > *, .works-grid > * { flex: 0 0 84%; max-width: 21rem; scroll-snap-align: center; scroll-snap-stop: always; }
  .svc-slot-1, .svc-slot-2 { margin-top: 0 !important; }
  .svc-slot-2 { grid-column: auto; }
  .svc-grid > *, .works-grid > * { transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease; }
  .svc-grid > .is-off, .works-grid > .is-off { transform: scale(0.94); opacity: 0.7; }
}
.snap-dots { display: none; justify-content: center; gap: 0.5rem; margin-top: 0.25rem; }
@media (max-width: 767px) { .snap-dots { display: flex; } }
.snap-dots button { width: 0.55rem; height: 0.55rem; padding: 0; border-radius: 9999px; background: rgba(50, 41, 47, 0.25); transition: width 0.25s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.2s; position: relative; }
.snap-dots button::after { content: ""; position: absolute; inset: -0.75rem -0.3rem; }
.snap-dots button[aria-current="true"] { width: 1.6rem; background: #32292f; }

/* Metodo: comparatore (mobile) vs tre card (desktop) */
.mcmp { display: none; }
@media (max-width: 767px) {
  .method-stage { display: none; }
  .mcmp { display: grid; gap: 1rem; }
}
.mcmp-tabs { display: inline-flex; justify-self: start; padding: 0.25rem; gap: 0.25rem; border-radius: 9999px; background: rgba(50, 41, 47, 0.1); }
.mcmp-tab { min-height: 2.5rem; padding: 0 1.1rem; border-radius: 9999px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: #32292f; transition: background-color 0.2s, color 0.2s, transform 0.15s cubic-bezier(0.23, 1, 0.32, 1); }
.mcmp-tab[aria-pressed="true"] { background: #32292f; color: #fdf7c9; }
.mcmp-tab:active { transform: scale(0.96); }
.mcmp-frame { position: relative; aspect-ratio: 9 / 14; border-radius: 2.5rem 1rem 2.5rem 1rem; overflow: hidden; box-shadow: 0 20px 50px rgba(50, 41, 47, 0.22); isolation: isolate; }
.mcmp-layer { position: absolute; inset: 0; display: none; }
.mcmp-layer .poster { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.mcmp[data-generic="cc"] .mcmp-l-cc, .mcmp[data-generic="ai"] .mcmp-l-ai, .mcmp[data-generic="dim"] .mcmp-l-dim { display: block; }
.mcmp-tabs { justify-self: stretch; display: flex; }
.mcmp-tab { flex: 1; padding: 0 0.5rem; }
.mcmp-cap { display: none; align-items: center; gap: 0.9rem; }
.mcmp-cap p { font-size: 1rem; line-height: 1.4; }
.mcmp[data-generic="cc"] .mcmp-c-cc, .mcmp[data-generic="ai"] .mcmp-c-ai, .mcmp[data-generic="dim"] .mcmp-c-dim { display: flex; }
.mcmp-cap { font-size: 1.05rem; line-height: 1.5; }
.mcmp-frame:focus-within { outline: 3px solid #32292f; outline-offset: 3px; }

/* mobile: l'header è solo il marchio, la pillola si stringe attorno */
@media (max-width: 767px) {
  .site-header { right: auto; margin-inline: 0; }
  .site-nav { padding-right: 0.5rem; }
  .brand { padding-right: 0.5rem; }
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ======================= VIDEO YOUTUBE (orizzontali) ======================= */
.cs-yt-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .cs-yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .cs-yt-grid > .cs-yt:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}
.cs-yt { margin: 0; display: grid; gap: 0.75rem; }
.cs-yt-frame { aspect-ratio: 16 / 9; border-radius: 1.75rem; overflow: hidden; background: #32292f; box-shadow: 0 20px 50px rgba(50, 41, 47, 0.22); }
.cs-yt-frame iframe { width: 100%; height: 100%; border: 0; }
.cs-yt figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.25rem 1rem; }
.cs-yt figcaption span { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; }
.cs-yt figcaption a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: underline; text-decoration-color: #a0d8ef; text-decoration-thickness: 4px; text-underline-offset: 0.5rem; }

/* ======================= Player YouTube a intervallo ======================= */
.cs-yt-frame { position: relative; }
.yt-mount, .yt-mount iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-mount iframe { pointer-events: none; }
.yt-cover {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; display: grid; place-items: center;
  background-size: cover; background-position: center; background-color: #32292f; cursor: pointer;
}
.yt-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(36, 29, 34, 0.55), transparent 55%); }
.yt-big {
  position: relative; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: #fdf7c9; color: #32292f; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.2s;
}
.yt-big svg { width: 1.9rem; height: 1.9rem; margin-left: 0.2rem; }
.yt-cover:hover .yt-big { transform: scale(1.08); background: #a0d8ef; }
.yt-cover:active .yt-big { transform: scale(0.96); }
.yt-replay { display: none; position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; background: #32292f; color: #fdf7c9; padding: 0.35rem 0.8rem; border-radius: 9999px; }
.yt-cover.is-end .yt-replay { display: block; }
/* il cover sparisce quando il player è attivo e non in fine */
.cs-yt-frame.is-covered-off:not(.is-covered) .yt-cover { display: none; }
.cs-yt-frame.is-loading .yt-cover { opacity: 0.7; pointer-events: none; }
.cs-yt-frame.is-loading .yt-big { animation: yt-pulse 1s ease-in-out infinite alternate; }
@keyframes yt-pulse { to { transform: scale(0.9); } }
.yt-hit { position: absolute; inset: 0; z-index: 1; background: transparent; cursor: pointer; }
.yt-ui {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 0.75rem;
  padding: 1.5rem 0.9rem 0.7rem; color: #fdf7c9;
  background: linear-gradient(to top, rgba(36, 29, 34, 0.8), transparent);
}
.yt-ui[hidden] { display: none; }
.yt-toggle { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: #fdf7c9; flex: none; transition: background-color 0.18s, transform 0.15s cubic-bezier(0.23, 1, 0.32, 1); }
.yt-toggle:hover { background: rgba(253, 247, 201, 0.18); }
.yt-toggle:active { transform: scale(0.94); }
.yt-toggle svg { width: 1.3rem; height: 1.3rem; }
.yt-time { flex: none; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.yt-seek { --p: 0%; flex: 1; min-width: 0; height: 2.75rem; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.yt-seek::-webkit-slider-runnable-track { height: 0.3rem; border-radius: 9999px; background: linear-gradient(to right, #a0d8ef var(--p), rgba(253, 247, 201, 0.35) var(--p)); }
.yt-seek::-moz-range-track { height: 0.3rem; border-radius: 9999px; background: rgba(253, 247, 201, 0.35); }
.yt-seek::-moz-range-progress { height: 0.3rem; border-radius: 9999px; background: #a0d8ef; }
.yt-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 1rem; height: 1rem; margin-top: -0.35rem; border-radius: 50%; background: #fdf7c9; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.yt-seek::-moz-range-thumb { width: 1rem; height: 1rem; border: 0; border-radius: 50%; background: #fdf7c9; }

/* Foto di testata circolare */
.cs-hero-img.is-circle { width: min(100%, 26rem); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; overflow: hidden; box-shadow: 0 30px 70px rgba(50, 41, 47, 0.3), 0 0 0 0.6rem rgba(160, 216, 239, 0.7); }
.cs-hero-img.is-circle .cs-zoom, .cs-hero-img.is-circle img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .yt-big { animation: none !important; transition: none; } }

/* barra dei controlli piena: nasconde l'interfaccia nativa di YouTube in basso */
.yt-ui { padding: 0 0.9rem 0 0.4rem; height: 3.1rem; background: #241d22; }

/* ======================= REVISIONE: pagine dei casi ======================== */
.cs-hero-img.is-circle { box-shadow: 0 30px 70px rgba(50, 41, 47, 0.28); }  /* niente anello */
.cs-hero-img.is-circle img { transform: scale(var(--zoom, 1)); }

/* sfondo vivo delle schede dei lavori */
.cs-page {
  position: relative; overflow-x: clip;
  background:
    radial-gradient(52rem 38rem at 92% -4%, rgba(160, 216, 239, 0.55), transparent 62%),
    radial-gradient(46rem 36rem at -6% 38%, rgba(160, 216, 239, 0.38), transparent 62%),
    radial-gradient(54rem 40rem at 104% 78%, rgba(110, 198, 228, 0.32), transparent 64%),
    #fdf7c9;
}
.cs-page > .decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cs-page > *:not(.decor):not(.wave-strip):not(.site-header) { position: relative; z-index: 1; }
.cs-wave { position: relative; height: 7rem; margin-top: 2rem; overflow: hidden; pointer-events: none; }
.cs-wave .wave-strip { height: 100%; }

/* testi impilati + reel a destra */
.cs-story-side { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .cs-story-side { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 4rem; align-items: start; } }
.cs-story-text { display: grid; gap: 2.5rem; }
.cs-story-side .cs-story-video { display: flex; justify-content: center; }
.cs-story-side .cs-phone { width: 100%; max-width: 24rem; }

/* Fullscreen del player */
.yt-fs { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: #fdf7c9; flex: none; transition: background-color 0.18s, transform 0.15s cubic-bezier(0.23, 1, 0.32, 1); }
.yt-fs:hover { background: rgba(253, 247, 201, 0.18); }
.yt-fs:active { transform: scale(0.94); }
.yt-fs svg { width: 1.2rem; height: 1.2rem; }
.cs-yt-frame:fullscreen, .cs-yt-frame:-webkit-full-screen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; background: #000; }
.cs-yt-frame.is-pseudo-fs { position: fixed; inset: 0; z-index: 200; aspect-ratio: auto; border-radius: 0; background: #000; width: 100%; height: 100%; }
.yt-lock { overflow: hidden; }

/* ======================= HEADER MOBILE: CTA dentro la pillola ============== */
.nav-cta { display: none; }
@media (max-width: 767px) {
  .site-header { right: 0.75rem; margin-inline: 0; }
  .nav-cta {
    display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: 0 1rem; margin-right: 0.15rem;
    border-radius: 9999px; background: #a0d8ef; color: #32292f; white-space: nowrap;
    font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
    transition: background-color 0.18s, transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .nav-cta:active { transform: scale(0.96); background: #fdf7c9; }
  .sticky-cta { display: none !important; }
}

/* Reel Instagram: il video riempie la cornice (header e footer dell'embed restano fuori) */
.cs-phone-ig .cs-phone-frame { border-width: 0.35rem; }
.cs-phone-ig .cs-phone-frame iframe { transform-origin: 50% 40.4%; transform: translateY(9.6%) scale(1.87); }

/* ======================= APPARIZIONE DELLE CARD ============================ */
@media (prefers-reduced-motion: no-preference) {
  .pop { opacity: 0; }
  .pop.is-visible { opacity: 1; animation: pop-in 0.85s cubic-bezier(0.23, 1, 0.32, 1) var(--d, 0s) backwards; }
}
@keyframes pop-in { from { opacity: 0; transform: translateY(56px) scale(0.93) rotate(1.2deg); } }

/* ======================= "SVEGLIATI!" + MAPPA DEL TESORO =================== */
.step-head { margin-bottom: 2rem; }
.wake { font-size: clamp(2.6rem, 8.6vw, 7.2rem); line-height: 0.92; margin-bottom: 1.25rem; }
.wake-1, .wake-2 { display: block; }
.wake-2 { margin-top: 0.12em; }
.step-mark {
  text-decoration: none; padding: 0 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background-image: linear-gradient(transparent 62%, #a0d8ef 62%, #a0d8ef 94%, transparent 94%);
  background-repeat: no-repeat; background-position: left; background-size: 100% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .wake .step-mark { background-size: 0% 100%; }
  .reveal.is-visible .wake .step-mark { animation: mark-sweep 1s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards; }
}
@keyframes mark-sweep { to { background-size: 100% 100%; } }

.treasure { position: relative; display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1rem; }
.treasure-path { display: none; }
.map-card-slot { position: relative; z-index: 1; width: min(100%, 26rem); }
.map-pos-0 { transform: rotate(-1.5deg); }
.map-pos-1 { align-self: flex-end; transform: rotate(1.8deg); }
.map-pos-2 { transform: rotate(1.2deg); }
.map-pos-3 { align-self: flex-end; transform: rotate(-1.8deg); }
.treasure-x { order: 9; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; color: #32292f; }
.treasure-x svg { width: 3rem; height: 3rem; }
.treasure-x b { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.step { min-height: 0; }
@media (min-width: 768px) {
  .treasure { display: block; height: 46rem; margin-top: 2rem; }
  .map-card-slot { position: absolute; width: 43%; max-width: 26rem; }
  .map-pos-0 { left: 2%; top: 0; }
  .map-pos-1 { left: 52%; top: 9%; align-self: auto; }
  .map-pos-2 { left: 8%; top: 44%; }
  .map-pos-3 { left: 50%; top: 60%; align-self: auto; }
  .treasure-path { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.55; clip-path: inset(0 100% 0 0); }
  .treasure.is-visible .treasure-path { animation: map-draw 2.6s cubic-bezier(0.45, 0, 0.2, 1) 0.2s forwards; }
  .treasure-x { position: absolute; left: 90%; top: 92%; transform: translate(-50%, -50%); z-index: 1; order: 0; }
  .treasure-x svg { animation: x-pulse 2.4s ease-in-out infinite alternate; }
}
@keyframes map-draw { to { clip-path: inset(0 0 0 0); } }
@keyframes x-pulse { to { transform: scale(1.14) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .treasure-path { clip-path: none; animation: none !important; } .treasure-x svg { animation: none; } }

/* ======================= RISULTATI (metriche) ============================== */
.cs-metrics { padding: 3rem 0 1rem; border-top: 2px solid #a0d8ef; display: grid; gap: 1.75rem; }
.cs-metrics-head h2 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.6rem; }
.cs-metrics-head h2::before { content: ""; width: 1.5rem; height: 3px; border-radius: 9999px; background: #a0d8ef; }
.cs-metrics-head p { opacity: 0.7; }
.cs-metrics-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .cs-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
.metric {
  position: relative; overflow: hidden; padding: 1.75rem; color: #fdf7c9; display: grid; gap: 0.9rem;
  background: linear-gradient(160deg, #3a2f36, #241d22); border-radius: 3rem 1.25rem 3rem 1.25rem;
  box-shadow: 0 25px 60px rgba(50, 41, 47, 0.25);
}
.metric:nth-child(2) { border-radius: 1.25rem 3rem 1.25rem 3rem; }
.metric-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.75; }
.metric-big { font-family: var(--font-heading); font-weight: 700; font-size: clamp(4.5rem, 12vw, 7rem); line-height: 0.9; letter-spacing: -0.04em; color: #a0d8ef; font-variant-numeric: tabular-nums; }
.metric-big i { font-style: normal; font-size: 0.5em; margin-left: 0.08em; color: #fdf7c9; }
.metric-gauge { height: 0.7rem; border-radius: 9999px; background: rgba(253, 247, 201, 0.14); overflow: hidden; }
.metric-gauge span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #6ec6e4, #a0d8ef); transition: width 1.4s cubic-bezier(0.23, 1, 0.32, 1) 0.3s; }
.metric.is-visible .metric-gauge span { width: var(--v); }
.metric-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.15em; opacity: 0.55; margin-top: -0.45rem; }
.metric-curve { width: 100%; height: 5.5rem; color: #a0d8ef; overflow: visible; opacity: 0.9; }
.metric-curve path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.metric.is-visible .metric-curve path { animation: curve-draw 1.8s cubic-bezier(0.45, 0, 0.2, 1) 0.4s forwards; }
@keyframes curve-draw { to { stroke-dashoffset: 0; } }
.metric-line { font-size: 1.1rem; line-height: 1.4; }
.metric-line b { font-family: var(--font-heading); font-size: 1.6rem; font-variant-numeric: tabular-nums; color: #fdf7c9; }
.metric-line span { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; margin-top: 0.15rem; }
@media (prefers-reduced-motion: reduce) { .metric-gauge span { width: var(--v); transition: none; } .metric-curve path { stroke-dashoffset: 0; animation: none; } }

/* video locale */
.cs-file-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

.metric-curve { height: auto; aspect-ratio: 200 / 84; max-height: 6rem; }

/* ======================= PROCESSO: versione compatta ======================= */
.step-head { margin-bottom: 1rem; }
.wake { font-size: clamp(2.2rem, 5.6vw, 4.6rem); margin-bottom: 0.75rem; }
.step-head p { font-size: 1.05rem; }
.step { padding: 2.25rem 1.5rem 1.4rem; gap: 0.6rem; }
.step h3 { font-size: clamp(1.7rem, 2.1vw, 2.2rem); line-height: 1; }
.step p { font-size: 0.95rem; line-height: 1.45; }
.step-ghost { font-size: 5.5rem; top: -0.75rem; right: 0.75rem; }
.step-0 .step-ghost { color: #a0d8ef; opacity: 0.2; }
.step-1 .step-ghost { color: #32292f; opacity: 0.14; }
.treasure { gap: 0.9rem; margin-top: 0.5rem; }
.treasure-x svg { width: 5.5rem; height: 5.5rem; color: #32292f; filter: drop-shadow(0 6px 0 #a0d8ef) drop-shadow(0 14px 18px rgba(50, 41, 47, 0.25)); }
.treasure-x b { font-size: 0.9rem; letter-spacing: 0.22em; background: #32292f; color: #fdf7c9; padding: 0.4rem 0.9rem; border-radius: 9999px; }
@media (min-width: 768px) {
  .treasure { height: 34rem; margin-top: 0.75rem; }
  .map-card-slot { width: 40%; max-width: 22rem; }
  .map-pos-0 { left: 3%; top: 0; }
  .map-pos-1 { left: 54%; top: 6%; }
  .map-pos-2 { left: 10%; top: 42%; }
  .map-pos-3 { left: 50%; top: 56%; }
  .treasure-x { left: 91%; top: 90%; }
  .treasure-x svg { width: 7rem; height: 7rem; }
}

/* ======================= PROCESSO: card quadrate, sezione stretta =========== */
#processo { padding-top: 2.5rem; padding-bottom: 2.75rem; }
.step-head { margin-bottom: 0.25rem; }
.treasure-x b { display: none; }
.map-card-slot { width: min(100%, 16rem); }
.step { aspect-ratio: 1 / 1; height: auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.4rem 1.25rem 1.25rem; }
.step h3 { font-size: clamp(1.6rem, 2vw, 2rem); }
.step p { font-size: 0.9rem; }
.step-ghost { font-size: 4.5rem; top: -0.5rem; }
@media (max-width: 767px) {
  .map-card-slot { width: min(78%, 16rem); }
  .treasure { margin-top: 1.25rem; }
}
@media (min-width: 768px) {
  .treasure { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; justify-items: center; padding: 1.5rem 0 0.5rem; }
  .map-card-slot { position: relative; left: auto; top: auto; width: min(100%, 16rem); max-width: none; }
  .map-pos-0, .map-pos-1, .map-pos-2, .map-pos-3 { left: auto; top: auto; }
  .map-pos-1 { margin-top: 2rem; }
  .map-pos-3 { margin-top: 2rem; }
  .treasure-path { display: none; }
  .treasure-x { position: static; transform: none; grid-column: 1 / -1; order: 9; }
  .treasure-x svg { width: 5rem; height: 5rem; }
}
@media (min-width: 1024px) {
  .treasure { grid-template-columns: repeat(4, minmax(0, 1fr)) 8rem; align-items: start; gap: 1rem; padding-top: 0.5rem; }
  .map-pos-0 { margin-top: 0; }
  .map-pos-1 { margin-top: 2.75rem; }
  .map-pos-2 { margin-top: 0.75rem; }
  .map-pos-3 { margin-top: 3.5rem; }
  .treasure-x { grid-column: auto; align-self: center; justify-self: center; margin-top: 2.5rem; }
  .treasure-x svg { width: 7rem; height: 7rem; }
  .treasure-path { display: block; }
}

/* ======================= CASI: meno vuoto in fondo ========================= */
.cs { padding-bottom: 0.5rem; }
.cs-story { padding: 2.25rem 0; }
.cs-story-side .cs-story-text p { font-size: 1.3rem; line-height: 1.6; }
@media (min-width: 900px) { .cs-story-side { align-items: center; } }
.cs-next { margin-top: 2.25rem; padding-top: 1.75rem; padding-bottom: 0.5rem; }
.cs-wave { height: 5rem; margin-top: 0.5rem; }
.cs-page footer { padding-top: 2.5rem; }
.cs-media { padding-top: 0; }

/* ======================= REVISIONE FINALE =================================== */
/* Pagine dei lavori: nessun vuoto sotto il footer (le macchie non allungano la pagina) */
.cs-page { overflow: clip; }
.cs-page > .decor { overflow: clip; }

/* Card "Svegliati": titoli e numeri grandi */
.step h3 { font-size: clamp(2.3rem, 2.9vw, 3rem); line-height: 0.95; letter-spacing: -0.02em; }
.step p { font-size: 0.92rem; }
.step-ghost { font-size: 8.5rem; top: -1.4rem; right: 0.35rem; line-height: 0.85; opacity: 0.24; }
.step-0 .step-ghost { opacity: 0.26; }
.step-1 .step-ghost { opacity: 0.16; }
@media (min-width: 1024px) and (max-width: 1279px) { .step h3 { font-size: 2.1rem; } .step-ghost { font-size: 7rem; } }

/* ===================== PRENOTA: layout, passi, selettori ===================== */
.bk-page { position: relative; min-height: 100vh; overflow: clip; background: linear-gradient(#fdf7c9, rgba(160,216,239,0.55) 45%, #fdf7c9); font-family: var(--font-body); }
.bk-blob { position: absolute; z-index: 0; pointer-events: none; filter: blur(2px); animation: bk-float 16s ease-in-out infinite; }
.bk-blob-a { top: 7%; left: -10rem; width: 26rem; height: 26rem; background: #a0d8ef; opacity: 0.45; border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; }
.bk-blob-b { bottom: 12%; right: -9rem; width: 22rem; height: 22rem; background: #fdf7c9; border: 2px solid rgba(50,41,47,0.08); border-radius: 45% 55% 40% 60% / 55% 40% 60% 45%; animation-delay: -7s; }
@keyframes bk-float { 50% { transform: translate3d(1.5rem, -1.5rem, 0) rotate(8deg); } }

.bk-main { position: relative; z-index: 1; max-width: 72rem; margin: 0 auto; padding: 7.5rem 1.25rem 5rem; display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .bk-main { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4rem; padding-top: 9rem; } .bk-intro { position: sticky; top: 7rem; } }

.bk-intro { container-type: inline-size; }
.bk-eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; margin-bottom: 1rem; }
.bk-title { font-family: var(--font-heading); font-weight: 700; font-size: min(14.5cqw, 4.6rem); line-height: 1; letter-spacing: -0.04em; white-space: nowrap; margin-bottom: 1.25rem; }
.bk-lead { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3; max-width: 28rem; text-wrap: pretty; margin-bottom: 1.75rem; }
.bk-points { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.bk-points li { display: flex; align-items: center; gap: 0.7rem; font-size: 1.15rem; font-weight: 500; }
.bk-points svg { flex: none; width: 1.7rem; height: 1.7rem; padding: 0.35rem; border-radius: 999px; background: #a0d8ef; }
.bk-when { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; }

.bk-form { position: relative; background: rgba(253,247,201,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 2.75rem 1.25rem 2.75rem 1.25rem; padding: 1.5rem; box-shadow: 0 24px 70px rgba(50,41,47,0.16), 0 0 0 1px rgba(50,41,47,0.05); }
@media (min-width: 640px) { .bk-form { padding: 2.25rem; } }
.bk-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-bottom: 1.75rem; }
.bk-progress i { height: 0.3rem; border-radius: 99px; background: rgba(50,41,47,0.12); position: relative; overflow: hidden; }
.bk-progress i::after { content: ""; position: absolute; inset: 0; background: #32292f; transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); }
.bk-progress i.on::after { transform: scaleX(1); }

.bk-error { margin-bottom: 1.25rem; padding: 0.8rem 1rem; border-radius: 1rem; background: #32292f; color: #fdf7c9; font-size: 1.05rem; animation: bk-shake 0.4s; }
@keyframes bk-shake { 20% { transform: translateX(-6px); } 60% { transform: translateX(6px); } }

.bk-step { padding-block: 1.4rem; border-top: 2px dashed rgba(50,41,47,0.14); }
.bk-step:first-of-type { border-top: 0; padding-top: 0; }
.bk-step-title { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.bk-step-title b { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 999px; background: #a0d8ef; font-size: 1.05rem; transition: background 0.3s, color 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bk-step.done .bk-step-title b { background: #32292f; color: #fdf7c9; transform: rotate(-8deg) scale(1.08); }

/* argomento */
.bk-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; border: 0; padding: 0; margin: 0; }
.bk-chip { position: relative; cursor: pointer; }
.bk-chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bk-chip span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 3.2rem; padding: 0.5rem 0.75rem; border-radius: 1rem; background: rgba(160,216,239,0.3); font-size: 1.15rem; font-weight: 500; transition: background 0.2s, color 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bk-chip:hover span { background: rgba(160,216,239,0.55); }
.bk-chip:has(input:checked) span { background: #32292f; color: #fdf7c9; transform: scale(1.03); }
.bk-chip:has(input:focus-visible) span { outline: 3px solid #32292f; outline-offset: 2px; }
.bk-chip:active span { transform: scale(0.97); }

/* giorni */
.bk-daybar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; }
.bk-range { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.65; }
.bk-nav { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: rgba(160,216,239,0.4); transition: background 0.2s, transform 0.2s, opacity 0.2s; }
.bk-nav svg { width: 1.2rem; height: 1.2rem; }
.bk-nav:hover:not(:disabled) { background: #a0d8ef; }
.bk-nav:active:not(:disabled) { transform: scale(0.92); }
.bk-nav:disabled { opacity: 0.3; cursor: default; }
.bk-days { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 0.45rem; }
.bk-day { display: grid; justify-items: center; gap: 0.1rem; padding: 0.65rem 0.2rem; min-height: 4.6rem; border-radius: 1.1rem; background: rgba(160,216,239,0.3); transition: background 0.2s, color 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); animation: bk-pop 0.4s cubic-bezier(0.23, 1, 0.32, 1) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
.bk-day small { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.65; }
.bk-day strong { font-family: var(--font-heading); font-size: 1.7rem; line-height: 1.05; }
.bk-day em { font-style: normal; font-size: 0.9rem; opacity: 0.7; }
.bk-day:hover { background: rgba(160,216,239,0.6); transform: translateY(-2px); }
.bk-day[aria-pressed="true"] { background: #32292f; color: #fdf7c9; transform: translateY(-3px) rotate(-1.5deg); }
.bk-day:active { transform: scale(0.96); }
@keyframes bk-pop { from { opacity: 0; transform: translateY(10px) scale(0.92); } }

/* orari */
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: 0.5rem; margin-top: 0.9rem; min-height: 3rem; align-content: start; }
.bk-hint { grid-column: 1 / -1; font-size: 1.1rem; opacity: 0.6; padding: 0.4rem 0; }
.bk-slot { min-height: 2.9rem; border-radius: 999px; background: rgba(160,216,239,0.3); font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.04em; transition: background 0.2s, color 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); animation: bk-pop 0.35s cubic-bezier(0.23, 1, 0.32, 1) backwards; animation-delay: calc(var(--i, 0) * 30ms); }
.bk-slot:hover { background: rgba(160,216,239,0.65); }
.bk-slot[aria-pressed="true"] { background: #32292f; color: #fdf7c9; transform: scale(1.06); }
.bk-slot:active { transform: scale(0.95); }
.bk-skel { min-height: 2.9rem; border-radius: 999px; background: linear-gradient(90deg, rgba(160,216,239,0.25), rgba(160,216,239,0.6), rgba(160,216,239,0.25)); background-size: 200% 100%; animation: bk-shim 1.1s linear infinite; }
@keyframes bk-shim { to { background-position: -200% 0; } }

/* dati */
.bk-fields { display: grid; gap: 0.9rem; }
@media (min-width: 640px) { .bk-fields { grid-template-columns: 1fr 1fr; } .bk-wide { grid-column: 1 / -1; } }
.bk-field { display: grid; gap: 0.35rem; }
.bk-field span { font-size: 1.05rem; font-weight: 700; }
.bk-field em { font-style: normal; font-weight: 400; opacity: 0.55; margin-left: 0.3rem; }
.bk-field input, .bk-field textarea { width: 100%; min-height: 3.1rem; padding: 0.7rem 1rem; border-radius: 1rem; border: 2px solid transparent; background: rgba(160,216,239,0.28); font: inherit; font-size: 1.2rem; color: #32292f; outline: none; resize: vertical; transition: background 0.2s, border-color 0.2s; }
.bk-field input::placeholder, .bk-field textarea::placeholder { color: rgba(50,41,47,0.4); }
.bk-field input:focus, .bk-field textarea:focus { background: rgba(255,255,255,0.7); border-color: #32292f; }
.bk-field input.bad { border-color: #32292f; background: rgba(160,216,239,0.6); animation: bk-shake 0.4s; }

/* invio */
.bk-submit { display: grid; gap: 0.8rem; padding-top: 1.4rem; border-top: 2px dashed rgba(50,41,47,0.14); }
.bk-summary { font-size: 1.15rem; font-weight: 500; text-align: center; }
.bk-summary b { font-family: inherit; font-weight: 700; font-size: 1.2rem; }
.bk-go { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.4rem; padding-inline: 1.75rem; border-radius: 999px; background: #32292f; color: #fdf7c9; font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.06em; box-shadow: 0 0 30px rgba(160,216,239,0.7); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, color 0.2s, box-shadow 0.3s; }
.bk-go:hover:not(:disabled) { background: #a0d8ef; color: #32292f; transform: translateY(-2px); }
.bk-go:active:not(:disabled) { transform: scale(0.97); }
.bk-go:disabled { opacity: 0.6; cursor: progress; }
.bk-go.ready { animation: bk-pulse 2.4s ease-in-out infinite; }
@keyframes bk-pulse { 50% { box-shadow: 0 0 48px rgba(160,216,239,1); } }

/* ===================== PRENOTA: card di conferma ===================== */
.booking-dialog[open] { animation: none; }
.booking-dialog[open] .booking-card { animation: bk-card-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.booking-card { position: relative; overflow: visible; text-align: center; padding: 4.4rem 1.5rem 1.75rem; background: #32292f; border-radius: 3rem 1.25rem 3rem 1.25rem; }
@media (min-width: 640px) { .booking-card { padding: 4.6rem 2.5rem 2.25rem; } }
@keyframes bk-card-in { from { opacity: 0; transform: translateY(60px) scale(0.82) rotate(-4deg); } 60% { opacity: 1; } }
.booking-dialog[open]::backdrop { animation: backdrop-in 0.4s ease-out; }

.bk-seal { position: absolute; left: 50%; top: 0; width: 5.5rem; height: 5.5rem; transform: translate(-50%, -50%); background: #a0d8ef; border-radius: 999px; box-shadow: 0 0 0 0.45rem #32292f, 0 0 50px rgba(160,216,239,0.7); stroke: #32292f; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; animation: bk-seal-pop 0.6s 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
.bk-seal-ring { stroke: rgba(50,41,47,0.18); stroke-width: 3; stroke-dasharray: 264; animation: bk-draw 0.7s 0.4s ease-out backwards; }
.bk-seal-check { stroke-dasharray: 60; stroke-dashoffset: 0; animation: bk-draw-check 0.45s 0.7s cubic-bezier(0.6, 0, 0.2, 1) backwards; }
@keyframes bk-seal-pop { from { transform: translate(-50%, -50%) scale(0); } }
@keyframes bk-draw { from { stroke-dashoffset: 264; } to { stroke-dashoffset: 0; } }
@keyframes bk-draw-check { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }

.bk-c { animation: bk-up 0.55s cubic-bezier(0.23, 1, 0.32, 1) backwards; animation-delay: calc(0.55s + var(--i, 0) * 90ms); }
@keyframes bk-up { from { opacity: 0; transform: translateY(16px); } }
.bk-conf-eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: #a0d8ef; margin-bottom: 0.6rem; }
.bk-conf-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.1rem, 6vw, 3rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 1.25rem; text-wrap: balance; }
.bk-ticket { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 auto 1.1rem; padding: 0.9rem 1.25rem; max-width: 22rem; border-radius: 1.25rem; background: rgba(253,247,201,0.1); border: 2px dashed rgba(160,216,239,0.55); }
.bk-ticket strong { font-family: var(--font-heading); font-size: clamp(2.2rem, 7vw, 3rem); line-height: 1; color: #a0d8ef; }
.bk-ticket span { font-size: 1.2rem; font-weight: 500; text-align: left; text-transform: capitalize; text-wrap: balance; }
.bk-conf-note { font-size: 1.15rem; line-height: 1.35; opacity: 0.85; margin-bottom: 1.5rem; text-wrap: pretty; }
.bk-conf-note b { color: #a0d8ef; font-weight: 700; overflow-wrap: anywhere; }
.booking-actions { justify-content: center; }

.bk-confetti { position: absolute; left: 50%; top: 0; width: 0; height: 0; pointer-events: none; z-index: 3; }
.bk-confetti i { position: absolute; left: 0; top: 0; width: var(--w); height: var(--h); background: var(--c); border-radius: var(--r); opacity: 0; animation: bk-burst 1.5s var(--d) cubic-bezier(0.15, 0.7, 0.3, 1) forwards; }
@keyframes bk-burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(0.4); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .bk-blob, .bk-go.ready, .bk-skel { animation: none; }
  .booking-dialog[open] .booking-card, .bk-seal, .bk-seal-ring, .bk-seal-check, .bk-c, .bk-day, .bk-slot { animation: none; }
  .bk-confetti { display: none; }
}
@media (max-width: 959px) { .bk-when { display: none; } .bk-main { padding-top: 6.5rem; gap: 1.75rem; } .bk-points { margin-bottom: 0; } }

/* calendario espanso: tutto il mese */
.bk-expand { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.7rem; min-height: 2.5rem; padding: 0 0.9rem 0 1rem; border-radius: 999px; background: rgba(160,216,239,0.3); font-size: 1.05rem; font-weight: 700; transition: background 0.2s, transform 0.2s; }
.bk-expand:hover { background: #a0d8ef; }
.bk-expand:active { transform: scale(0.96); }
.bk-expand svg { width: 1.1rem; height: 1.1rem; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bk-expand.open svg { transform: rotate(180deg); }
.bk-month { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; animation: bk-pop 0.35s cubic-bezier(0.23, 1, 0.32, 1); }
.bk-wd { text-align: center; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.55; padding-bottom: 0.2rem; }
.bk-cell { display: grid; place-items: center; aspect-ratio: 1; border-radius: 999px; font-family: var(--font-heading); font-size: 1.15rem; transition: background 0.2s, color 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
button.bk-cell { background: rgba(160,216,239,0.35); }
button.bk-cell:hover { background: #a0d8ef; transform: scale(1.08); }
button.bk-cell[aria-pressed="true"] { background: #32292f; color: #fdf7c9; transform: scale(1.1); }
button.bk-cell:active { transform: scale(0.94); }
.bk-cell.off { opacity: 0.25; }

/* ===== Hero: logo 3D anche su smartphone ===== */
.hero-logo { position: absolute; z-index: 5; width: min(42vw, 10.5rem); right: 5vw; top: 4.6rem; touch-action: pan-y; cursor: grab; }
@media (max-height: 720px) and (max-width: 767px) { .hero-logo { width: 8rem; } }
@media (min-width: 768px) {
  .hero-logo { top: auto; bottom: 1rem; right: 2rem; width: 16rem; }
}
@media (min-width: 1024px) { .hero-logo { width: 30rem; } }
@media (min-width: 1280px) { .hero-logo { bottom: 2rem; right: 4rem; width: 38rem; } }

/* ===== Prenota: il footer sta sopra le forme decorative ===== */
.bk-page > footer { position: relative; z-index: 1; }

/* ===== Svegliati: linea tratteggiata anche su smartphone ===== */
.treasure-path-m { display: none; }
@media (max-width: 767px) {
  .treasure-path-m { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.55; clip-path: inset(0 0 100% 0); pointer-events: none; }
  .treasure.is-visible .treasure-path-m { animation: map-draw-v 2.8s cubic-bezier(0.45, 0, 0.2, 1) 0.2s forwards; }
}
@keyframes map-draw-v { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .treasure-path-m { clip-path: none; animation: none !important; } }
[data-logo3d] { position: relative; }
[data-logo3d] canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }

/* ===================== CASI STUDIO: redesign ===================== */
/* hero: logo/immagine circolare a destra su un alone azzurro */
.cs-visual { position: relative; width: min(100%, 26rem); margin-inline: auto; animation: cs-float 8s ease-in-out infinite; }
@keyframes cs-float { 50% { transform: translateY(-0.6rem) rotate(1deg); } }
.cs-visual .cs-hero-img.is-circle { width: 100%; position: relative; z-index: 1; }
@media (max-width: 1023px) { .cs-visual { width: min(78%, 20rem); } }

/* sfida / soluzione: due card organiche */
.cs-story2 { display: grid; gap: 1.75rem; padding: 2rem 0 1rem; }
.cs-cards { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .cs-story2:not(.cs-story-side) .cs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: start; } .cs-story2:not(.cs-story-side) .cs-card-sky { margin-top: 3.5rem; } }
.cs-card { position: relative; overflow: hidden; padding: 3.6rem 1.75rem 2rem; min-height: 14rem; }
@media (min-width: 640px) { .cs-card { padding: 4rem 2.25rem 2.5rem; } }
.cs-card-ink { background: #32292f; color: #fdf7c9; border-radius: 3rem 1.25rem 3rem 1.25rem; transform: rotate(-0.8deg); box-shadow: 0 24px 60px rgba(50, 41, 47, 0.28); }
.cs-card-sky { background: #a0d8ef; color: #32292f; border-radius: 1.25rem 3rem 1.25rem 3rem; transform: rotate(0.9deg); box-shadow: 0 24px 60px rgba(160, 216, 239, 0.55); }
.cs-ghost { position: absolute; top: -0.4rem; right: 1.25rem; font-family: var(--font-heading); font-size: 7.5rem; line-height: 1; opacity: 0.16; pointer-events: none; }
.cs-card h2 { position: relative; font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.1rem, 3.4vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 0.9rem; }
.cs-card h2::after { content: ""; display: block; width: 3rem; height: 0.35rem; margin-top: 0.7rem; border-radius: 99px; background: #a0d8ef; }
.cs-card-sky h2::after { background: #32292f; }
.cs-card p { position: relative; font-size: 1.25rem; line-height: 1.55; max-width: none; }
.cs-story-side .cs-story-text { gap: 1.5rem; }
.cs-story-side .cs-story-text .cs-card p { font-size: 1.25rem; }

.cs-pal { display: grid; gap: 0.9rem; padding: 1.4rem 1.6rem; border-radius: 1.75rem; background: rgba(253, 247, 201, 0.7); border: 2px dashed rgba(50, 41, 47, 0.2); }
.cs-pal h3 { font-family: var(--font-heading); font-size: 1.5rem; letter-spacing: -0.02em; }

/* sezione materiali */
.cs-section-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.5rem; }
.cs-shot .cs-zoom { border-radius: 2rem 1rem 2rem 1rem; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s; }
.cs-shot:nth-child(even) .cs-zoom { border-radius: 1rem 2rem 1rem 2rem; }
.cs-shot:nth-child(odd):hover .cs-zoom { transform: translateY(-6px) rotate(-1deg); }
.cs-shot:nth-child(even):hover .cs-zoom { transform: translateY(-6px) rotate(1deg); }

/* metriche: titolo più forte */
.cs-metrics-head h2 { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.04em; text-transform: none; font-weight: 700; line-height: 1; }
.cs-metrics-head h2::before { display: none; }

/* prossimo caso: card con miniatura circolare a destra */
.cs-next { border-top: 0; padding-top: 0; }
.cs-next-card { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.75rem; border-radius: 3rem 1.25rem 3rem 1.25rem; background: #32292f; color: #fdf7c9; box-shadow: 0 24px 60px rgba(50, 41, 47, 0.3); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@media (min-width: 768px) { .cs-next-card { padding: 2.25rem 2.75rem; } }
.cs-next-card:hover { transform: translateY(-4px) rotate(-0.6deg); }
.cs-next-text { display: grid; gap: 0.6rem; min-width: 0; }
.cs-next-text > span { color: #a0d8ef; }
.cs-next-card b { color: #fdf7c9; }
.cs-next-thumb { flex: none; width: clamp(5rem, 16vw, 9rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 0.35rem rgba(160, 216, 239, 0.5); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cs-next-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-next-card:hover .cs-next-thumb { transform: rotate(10deg) scale(1.06); }

@media (prefers-reduced-motion: reduce) { .cs-visual { animation: none; } }
.cs-next a.cs-next-card { display: flex; }
.cs-next .cs-next-card b { font-size: clamp(1.7rem, 4vw, 3.2rem); flex-wrap: nowrap; }
.cs-next .cs-next-text > span { color: #a0d8ef; opacity: 1; }

.cs-visual::before { content: ""; position: absolute; z-index: 0; inset: -16%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(160, 216, 239, 0.75) 0%, rgba(160, 216, 239, 0.35) 45%, rgba(160, 216, 239, 0) 70%); pointer-events: none; }
.cs-hero-img.is-circle.is-contain { background: var(--hero-bg, #32292f); }
.cs-hero-img.is-circle.is-contain img { object-fit: contain; padding: 14%; transform: none; }
.cs-shot.has-bg .cs-zoom { background: var(--shot-bg); padding: 12% 14%; }

/* ===== Confronto logo attuale / concept con slider (a comparsa) ===== */
.cs-cmp-hero { --p: 100%; --k: 1; align-items: center; padding-bottom: 2.5rem; }
.cs-compare { position: relative; width: min(100%, 17rem); aspect-ratio: 432 / 577; margin-inline: auto; animation: none; touch-action: pan-y; cursor: ew-resize; }
.cs-compare::before { inset: -22% -34%; }
.cs-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; z-index: 1; pointer-events: none; }
.cs-cmp-after { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.cs-cmp-line { position: absolute; z-index: 2; top: -3%; bottom: -3%; left: var(--p); width: 3px; margin-left: -1.5px; border-radius: 3px; background: #32292f; box-shadow: 0 0 0 2px rgba(253, 247, 201, 0.85); pointer-events: none; opacity: 0; transition: opacity 0.25s; }
.cs-cmp-line::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 2.6rem; height: 2.6rem; transform: translate(-50%, -50%) scale(0.7); display: grid; place-items: center; border-radius: 50%; background: #32292f; color: #fdf7c9; font-size: 1.15rem; box-shadow: 0 0 0 4px rgba(253, 247, 201, 0.9), 0 8px 20px rgba(50, 41, 47, 0.3); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cs-cmp-hero.is-active .cs-cmp-line { opacity: 1; }
.cs-cmp-hero.is-active .cs-cmp-line::after { transform: translate(-50%, -50%) scale(1); }
.cs-cmp-tag { position: absolute; z-index: 3; bottom: -2.6rem; padding: 0.4rem 0.9rem; border-radius: 999px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; pointer-events: none; transition: opacity 0.25s; }
.cs-cmp-tag-before { left: 0; background: rgba(50, 41, 47, 0.12); opacity: 0; }
.cs-cmp-tag-after { right: 0; background: #32292f; color: #fdf7c9; opacity: 1; }
.cs-cmp-hero.is-active .cs-cmp-tag-before { opacity: 1; }
.cs-range-wrap, .cs-cmp-range { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }
.cs-cmp-range:focus-visible ~ .cs-cmp-line::after { outline: 3px solid #a0d8ef; outline-offset: 5px; }
.cs-scrollhint { margin-top: 1.5rem; max-width: 24rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; line-height: 1.6; text-transform: uppercase; opacity: 0.7; }
.cs-scrollhint .hint-touch { display: none; }
@media (hover: none) { .cs-scrollhint .hint-hover { display: none; } .cs-scrollhint .hint-touch { display: inline; } }
@media (max-width: 1023px) { .cs-compare { width: min(54vw, 14rem); margin-bottom: 2.8rem; } }
.cs-cmp-tag { font-size: 0.6rem; letter-spacing: 0.1em; padding: 0.4rem 0.7rem; }
.cs-cmp-tag-before { left: -14%; }
.cs-cmp-tag-after { right: -14%; }
.cs-cmp-before { clip-path: inset(0 0 0 var(--p)); }

/* ===== Footer: contatti ===== */
.ft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 3rem; }
@media (min-width: 900px) { .ft-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 1rem; } }
.ft-card { position: relative; display: flex; align-items: center; gap: 0.9rem; min-height: 5.5rem; padding: 1rem 1.1rem; background: #32292f; color: #fdf7c9; border-radius: 1.75rem 0.75rem 1.75rem 0.75rem; overflow: hidden; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s, color 0.25s, border-radius 0.4s; }
.ft-card:nth-child(even) { border-radius: 0.75rem 1.75rem 0.75rem 1.75rem; }
a.ft-card:hover { background: #a0d8ef; color: #32292f; transform: translateY(-4px) rotate(-1deg); border-radius: 0.75rem 1.75rem 0.75rem 1.75rem; }
a.ft-card:nth-child(even):hover { border-radius: 1.75rem 0.75rem 1.75rem 0.75rem; transform: translateY(-4px) rotate(1deg); }
a.ft-card:active { transform: scale(0.97); }
a.ft-card:focus-visible { outline: 3px solid #a0d8ef; outline-offset: 3px; }
.ft-ico { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgba(253, 247, 201, 0.12); transition: background 0.25s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
a.ft-card:hover .ft-ico { background: #32292f; color: #fdf7c9; transform: rotate(-8deg) scale(1.08); }
.ft-text { display: grid; gap: 0.15rem; min-width: 0; }
.ft-text small { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.65; }
.ft-text b { font-size: 1.1rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.ft-arrow { position: absolute; top: 0.8rem; right: 0.9rem; opacity: 0; transform: translate(-6px, 6px); transition: opacity 0.25s, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1); }
a.ft-card:hover .ft-arrow { opacity: 1; transform: none; }
.ft-card-static { background: rgba(50, 41, 47, 0.1); color: #32292f; }
.ft-card-static .ft-ico { background: #a0d8ef; }
@media (max-width: 899px) { .ft-card { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 1rem; } .ft-text b { font-size: 1.02rem; } }
.cs-compare { aspect-ratio: var(--cmp-ar, 432 / 577); }
.cs-compare.cmp-cover .cs-cmp-before { object-fit: cover; }

/* Card AI (metodo): il video riempie la locandina */
.poster-video { background: #1a1722; }
.poster-video::after { display: none !important; }
.poster-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* ===== Metodo: card più grandi, testo dentro la card su gradiente scuro ===== */
@media (min-width: 768px) {
  .method-stage { gap: 1.25rem; }
  .poster { aspect-ratio: 3 / 4; }
}
@media (min-width: 1100px) { .method-stage { margin-inline: -1.5rem; gap: 1.5rem; } }
.tile-frame { position: relative; }
.tile-frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; gap: 0.6rem;
  padding: 5.5rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(22, 16, 21, 0.94) 0%, rgba(22, 16, 21, 0.78) 42%, rgba(22, 16, 21, 0) 100%);
  color: #fdf7c9;
}
.tile-frame figcaption p { font-size: 1.1rem; line-height: 1.45; max-width: 32ch; color: #fdf7c9; opacity: 0.95; }
.tile-frame .tile-tag, .tile-dim .tile-frame .tile-tag { justify-self: start; background: rgba(253, 247, 201, 0.16); color: #fdf7c9; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tile-dim .tile-frame .tile-tag { background: #a0d8ef; color: #32292f; }

/* CTA finale: niente bordino sotto il video (lo span inline lasciava una riga vuota) */
span.cta-video-box { display: block; }
span.cta-video-box video { display: block; }

/* ===== Metodo: sfondo azzurro che si dissolve nella sezione successiva ===== */
section#metodo.has-decor {
  background: linear-gradient(to bottom, #a0d8ef 0%, #a0d8ef 62%, rgba(160, 216, 239, 0) 100%) !important;
  padding-bottom: 9rem;
}
@media (min-width: 768px) { section#metodo.has-decor { padding-bottom: 11rem; } }
.tile-dim .tile-frame { box-shadow: 0 25px 70px rgba(255, 207, 51, 0.8), 0 0 0 0 transparent; }

/* Metodo: titolo su due righe, meno vuoto verso i servizi */
.method-title { font-size: min(7.2vw, 4.75rem); line-height: 1.04; }
.method-title > span { display: block; white-space: nowrap; }
section#metodo.has-decor { padding-bottom: 3.5rem; }
@media (min-width: 768px) { section#metodo.has-decor { padding-bottom: 5rem; } }

/* Footer: icona TikTok dal file fornito */
.ft-mask { display: block; width: 1.3rem; height: 1.3rem; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

/* ===== Metodo (desktop): la card dimanə è al centro e in risalto, a parità di dimensione ===== */
@media (min-width: 768px) {
  .tile-cc { order: 1; }
  .tile-dim { order: 2; z-index: 2; transform: translateY(-1.5rem); }
  .tile-ai { order: 3; }
  .tile-dim .tile-frame {
    box-shadow: 0 0 0 4px #fdf7c9, 0 0 0 8px rgba(255, 207, 51, 0.95), 0 30px 80px rgba(255, 207, 51, 0.85);
    animation: dim-glow 3.2s ease-in-out infinite;
  }
  .tile-dim .tile-frame::before {
    content: "\2605  su misura"; position: absolute; z-index: 4; top: 1rem; left: 50%; transform: translateX(-50%);
    padding: 0.4rem 0.9rem; border-radius: 999px; background: #32292f; color: #fdf7c9;
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
    box-shadow: 0 8px 22px rgba(50, 41, 47, 0.35);
  }
  .tile-cc .tile-frame, .tile-ai .tile-frame { filter: saturate(0.85); opacity: 0.94; }
}
@keyframes dim-glow {
  50% { box-shadow: 0 0 0 4px #fdf7c9, 0 0 0 8px rgba(255, 207, 51, 0.95), 0 36px 100px rgba(255, 207, 51, 1); }
}
@media (prefers-reduced-motion: reduce) { .tile-dim .tile-frame { animation: none; } }

/* ===== Metodo: logo (rounded square) a sinistra del testo, etichetta dentro il copy ===== */
.tile-frame figcaption { display: flex; align-items: center; gap: 0.9rem; padding: 5.5rem 1.25rem 1.25rem; }
.tile-logos { position: relative; flex: none; width: 3.6rem; height: 3.6rem; }
.tile-logos img { display: block; width: 3.6rem; height: 3.6rem; object-fit: cover; border-radius: 26%; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); transform: rotate(-7deg); }
.tile-logos-2 img { position: absolute; width: 2.5rem; height: 2.5rem; }
.tile-logos-2 img:nth-child(1) { top: 0; left: 0; }
.tile-logos-2 img:nth-child(2) { right: 0; bottom: 0; }
.tile-frame figcaption p { max-width: none; font-size: 1.02rem; line-height: 1.4; }
.tile-frame figcaption p b { color: #a0d8ef; font-weight: 700; }
.tile-dim .tile-frame figcaption p b { color: #ffd966; }
.tile-logos-2 img:nth-child(1) { transform: rotate(-9deg); }
.tile-logos-2 img:nth-child(2) { transform: rotate(7deg); }
.tile-dim .tile-logos img { transform: rotate(6deg); }
.cs-hero-img.is-circle.is-contain .cs-zoom { background: var(--hero-bg, #32292f); }
.cs-hero-img.is-circle.is-contain img { background: var(--hero-bg, #32292f); padding: 9%; }

/* Video decorativi (metodo, CTA): nessun tocco, nessun menu, nessun fullscreen */
video[data-autoplay] { pointer-events: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
video[data-autoplay]::-webkit-media-controls, video[data-autoplay]::-webkit-media-controls-enclosure, video[data-autoplay]::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }


/* Hero: muro di reel sullo sfondo, a destra, dietro alle onde e al logo 3D (solo desktop) */
.reel-wall { display: none; }
@media (min-width: 1024px) {
  .reel-wall {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
    position: absolute; z-index: 0; inset: 0 0 0 auto; width: 54%; padding-inline: 1.5rem;
    opacity: 0.32; pointer-events: none; overflow: hidden;
    perspective: 1400px; perspective-origin: 0% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%);
  }
  .reel-wall > .reel-col { transform: rotateY(-30deg); transform-origin: 0% 50%; transform-style: preserve-3d; overflow: visible; }
  #hero .absolute.bottom-0 { z-index: 1; }
  .reel-track { display: flex; flex-direction: column; gap: 1.25rem; will-change: transform; }
  .reel-up .reel-track { animation: reel-up 60s linear infinite; }
  .reel-down .reel-track { animation: reel-down 70s linear infinite; }
  .reel-col:nth-child(3) .reel-track { animation-duration: 80s; }
  @keyframes reel-up { to { transform: translateY(calc(-50% - 0.625rem)); } }
  @keyframes reel-down { from { transform: translateY(calc(-50% - 0.625rem)); } to { transform: none; } }
  .reel-col video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 1.1rem; background: #32292f; display: block; }
}
@media (prefers-reduced-motion: reduce) { .reel-track { animation: none !important; } }

/* Hero: dissolvenza in basso sul muro di reel; su smartphone il muro riempie lo sfondo e il logo 3D non c'è */
@media (min-width: 1024px) {
  .reel-wall {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%), linear-gradient(180deg, #000 55%, transparent 92%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24%), linear-gradient(180deg, #000 55%, transparent 92%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
}
@media (max-width: 1023px) {
  .reel-wall {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
    position: absolute; z-index: 0; inset: 0; padding-inline: 0.75rem; opacity: 0.2; pointer-events: none; overflow: hidden;
    perspective: 900px; perspective-origin: 0% 50%;
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 90%); mask-image: linear-gradient(180deg, #000 45%, transparent 90%);
  }
  .reel-wall > .reel-col { transform: rotateY(-30deg); transform-origin: 0% 50%; transform-style: preserve-3d; }
  #hero .absolute.bottom-0 { z-index: 1; }
  .reel-track { display: flex; flex-direction: column; gap: 0.75rem; will-change: transform; }
  .reel-up .reel-track { animation: reel-up-m 50s linear infinite; }
  .reel-down .reel-track { animation: reel-down-m 60s linear infinite; }
  .reel-col:nth-child(3) .reel-track { animation-duration: 70s; }
  @keyframes reel-up-m { to { transform: translateY(calc(-50% - 0.375rem)); } }
  @keyframes reel-down-m { from { transform: translateY(calc(-50% - 0.375rem)); } to { transform: none; } }
  .reel-col video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 0.9rem; background: #32292f; display: block; }
}
@media (max-width: 767px) { .hero-logo { display: none !important; } }

/* Passaggio hero → Metodo: il fondo dell'hero sfuma nello stesso azzurro con cui parte il Metodo */
#hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 7rem; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, rgba(160, 216, 239, 0), #a0d8ef 85%); }
@media (min-width: 768px) { #hero::after { height: 9rem; } }
/* le macchie del Metodo non toccano il bordo alto: la giuntura con l'hero resta di un solo azzurro */
#metodo > .decor { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9rem); mask-image: linear-gradient(to bottom, transparent 0, #000 9rem); }

/* Metodo mobile: testo e icone sovrapposti alla card in basso, come su desktop */
.mcmp-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: none; align-items: center; gap: 0.9rem;
  padding: 5.5rem 1.25rem 1.25rem; color: #fdf7c9; pointer-events: none;
  background: linear-gradient(to top, rgba(22, 16, 21, 0.94) 0%, rgba(22, 16, 21, 0.78) 42%, rgba(22, 16, 21, 0) 100%);
}
.mcmp-cap p { font-size: 1rem; line-height: 1.4; }
.mcmp-cap p b { color: #a0d8ef; font-weight: 700; }
.mcmp-c-dim p b { color: #ffd966; }
.mcmp-c-dim .tile-logos img { transform: rotate(6deg); }
.mcmp-tab[data-g="dim"] { position: relative; }
.mcmp-tab[data-g="dim"][aria-pressed="true"] { background: #a0d8ef; color: #32292f; box-shadow: 0 0 0 3px #fdf7c9, 0 0 22px rgba(160, 216, 239, 1), 0 0 44px rgba(160, 216, 239, 0.9); }
/* da inattivo: anello che si espande + scossetta, per invitare al tocco */
.mcmp-tab[data-g="dim"][aria-pressed="false"] { animation: tab-nudge 3.2s ease-in-out infinite; }
.mcmp-tab[data-g="dim"][aria-pressed="false"]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #32292f; animation: tab-ping 3.2s ease-out infinite; pointer-events: none; }
@keyframes tab-ping { 0% { transform: scale(1); opacity: 0.7; } 45%, 100% { transform: scale(1.45, 1.7); opacity: 0; } }
@keyframes tab-nudge { 0%, 55%, 100% { transform: none; } 62% { transform: rotate(-4deg) scale(1.06); } 70% { transform: rotate(4deg) scale(1.06); } 78% { transform: rotate(-2deg); } 86% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .mcmp-tab[data-g="dim"], .mcmp-tab[data-g="dim"]::after { animation: none !important; } }

/* Header mobile: "Prenota il domani" solo dopo l'hero, nascosto alla CTA finale */
@media (max-width: 767px) {
  .nav-cta[data-after]:not(.is-shown) { display: none; }
  /* meno vuoto tra hero e Metodo */
  section#metodo.has-decor { padding-top: 2.5rem; }
}
@media (min-width: 768px) { section#metodo.has-decor { padding-top: 3rem; } }

/* Header mobile: entrata del pulsante "Prenota il domani" */
@media (max-width: 767px) {
  .nav-cta[data-after].is-shown { animation: nav-cta-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
  @keyframes nav-cta-in { 0% { opacity: 0; transform: translateX(1.5rem) scale(0.6); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .nav-cta[data-after].is-shown { animation: none; } }

/* Prenota: tag di scarsità sul giorno */
.bk-day { position: relative; }
.bk-tag {
  position: absolute; top: -1.15rem; left: 50%; z-index: 2; padding: 0.22rem 0.5rem; border-radius: 0.6rem; white-space: nowrap; text-align: center; line-height: 1.15;
  background: #ff5a3c; color: #fff; font-family: var(--font-mono); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(255, 90, 60, 0.4); transform: translateX(-50%) rotate(-8deg); pointer-events: none;
}
.bk-tag-1 { transform: translateX(-50%) rotate(7deg); background: #f5a623; box-shadow: 0 4px 10px rgba(245, 166, 35, 0.4); }

/* La "ǝ" del carattere del marchio ha larghezza nulla: senza spazio proprio i telefoni la schiacciano o la tagliano */
.hero-letter { flex: none; }
.hero-schwa { width: 0.36em; }
.schwa { display: inline-block; width: 0.36em; }

/* Card "prossimo caso studio": testo che non invade la foto, niente anello azzurro */
.cs-next-card { gap: 2rem; }
.cs-next-thumb { box-shadow: none; }
.cs-next .cs-next-card b { flex-wrap: wrap; font-size: clamp(1.4rem, 4vw, 3.2rem); line-height: 1.05; gap: 0.5rem; }
@media (max-width: 767px) {
  .cs-next-card { padding: 1.5rem 1.25rem; gap: 1.75rem; }
  .cs-next-thumb { width: 5.5rem; }
  .cs-next .cs-next-card b { font-size: 1.5rem; }
  .cs-next-card b svg { width: 1.5rem; height: 1.5rem; }
}

/* Metodo: più aria tra il titolo e le card (il bagliore della card dimanə non tocca il testo) */
.method-stage { margin-top: 1.5rem; }
@media (min-width: 768px) { .method-stage { margin-top: 5rem; } }

/* Monitor grandi: tutto in rem scala con la larghezza (16px a 1600px, 1vw oltre) */
@media (min-width: 1600px) { html { font-size: min(1vw, 40px); } }

/* ======================= CHI SIAMO ========================================= */
.ab { padding-bottom: 3rem; }
.ab-sec { margin-top: 3.5rem; }
.ab-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .ab-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } .ab-sec { margin-top: 5rem; } }
.ab-card { padding: 1.75rem; border-radius: 2.5rem 1rem 2.5rem 1rem; display: grid; gap: 0.6rem; align-content: start; min-height: 14rem; }
.ab-card-0 { background: #a0d8ef; }
.ab-card-1 { background: #32292f; color: #fdf7c9; border-radius: 1rem 2.5rem 1rem 2.5rem; }
.ab-card-2 { background: #6ec6e4; }
.ab-when { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.7; }
.ab-card h3 { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; letter-spacing: -0.03em; }
.ab-card p:last-child { font-size: 1.05rem; line-height: 1.5; }
.ab-do { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; }
.ab-do li { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; padding-bottom: 1.25rem; border-bottom: 2px dashed rgba(50, 41, 47, 0.2); }
.ab-do li:last-child { border-bottom: 0; }
.ab-num { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.2em; padding: 0.35rem 0.7rem; border-radius: 9999px; background: #a0d8ef; }
.ab-do h3 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.ab-do p { font-size: 1.1rem; line-height: 1.5; max-width: 38rem; }
.ab-steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.9rem; counter-reset: ab; }
@media (min-width: 768px) { .ab-steps { grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; } }
.ab-steps li { counter-increment: ab; display: grid; gap: 0.25rem; padding-left: 3.25rem; position: relative; }
.ab-steps li::before { content: counter(ab); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #32292f; color: #fdf7c9; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8rem; }
.ab-steps b { font-family: var(--font-heading); font-size: 1.4rem; letter-spacing: -0.02em; }
.ab-steps span { line-height: 1.45; opacity: 0.85; }
.ab-end { margin-top: 4rem; padding: 2rem 1.5rem; border-radius: 3rem 1.25rem 3rem 1.25rem; background: #32292f; color: #fdf7c9; display: grid; gap: 1.25rem; }
.ab-end > p { font-family: var(--font-heading); font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 32rem; }
.ab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.ab-link { text-decoration: underline; text-decoration-color: #a0d8ef; text-decoration-thickness: 3px; text-underline-offset: 0.45rem; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; min-height: 2.75rem; display: inline-flex; align-items: center; }
@media (min-width: 768px) { .ab-end { padding: 3rem; } }

/* Chi siamo: fondatori e storia */
.ab-frame { aspect-ratio: 4 / 5; border-radius: 2.5rem 1rem 2.5rem 1rem; overflow: hidden; background: linear-gradient(160deg, #a0d8ef, #6ec6e4); box-shadow: 0 20px 50px rgba(50, 41, 47, 0.22); }
.ab-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.ab-ph { position: relative; width: 100%; height: 100%; display: grid; place-items: end center; }
.ab-ph svg { width: 78%; fill: rgba(50, 41, 47, 0.32); }
.ab-ph em { position: absolute; top: 0.9rem; left: 50%; transform: translateX(-50%); font-style: normal; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 9999px; background: rgba(253, 247, 201, 0.85); white-space: nowrap; }

/* ======================= SERVIZI: card con sfondo video ==================== */
.svc-slot { margin-top: 0 !important; }
.sv { position: relative; height: 100%; min-height: 27rem; overflow: hidden; color: #fdf7c9; background: #32292f; border-radius: 2.5rem 1rem 2.5rem 1rem; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 0 20px 50px rgba(50, 41, 47, 0.28); isolation: isolate; transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s; }
.sv-1 { border-radius: 1rem 2.5rem 1rem 2.5rem; }
.sv-2 { border-radius: 2.5rem 1.25rem 2.5rem 1.25rem; }
.sv-media { position: absolute; inset: 0; z-index: -2; }
.sv-media video, .sv-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(22, 16, 21, 0.92) 0%, rgba(22, 16, 21, 0.7) 38%, rgba(22, 16, 21, 0) 72%); }
.sv-tag { position: absolute; top: 1rem; left: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.85rem 0.4rem 0.6rem; border-radius: 9999px; background: #fdf7c9; color: #32292f; font-size: 0.85rem; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }
.sv-tag svg { width: 1rem; height: 1rem; color: #f5b82e; }
.sv-body { padding: 1.5rem; display: grid; gap: 0.9rem; }
.sv h3 { font-family: var(--font-heading); font-size: clamp(1.9rem, 2.6vw, 2.6rem); line-height: 1; letter-spacing: -0.03em; color: #fdf7c9; }
.sv-chips { list-style: none; margin: 0; padding: 0.9rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; border-top: 1px solid rgba(253, 247, 201, 0.3); }
.sv-chip { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.3rem 0.8rem; border-radius: 9999px; border: 1.5px solid rgba(253, 247, 201, 0.75); font-size: 0.9rem; line-height: 1.2; color: #fdf7c9; transition: background-color 0.18s, color 0.18s, transform 0.18s cubic-bezier(0.23, 1, 0.32, 1); }
.sv-chip:hover { background: #fdf7c9; color: #32292f; }
.sv-chip:active { transform: scale(0.96); }
.sv-more { display: none; }
@media (max-width: 767px) { .sv { min-height: 28rem; } .sv h3 { font-size: 2.2rem; } }

/* Servizi: tre card uguali, sempre aperte */
@media (min-width: 1024px) { .svc-grid { min-height: 30rem; } .sv { min-height: 30rem; } }

/* Servizi: sfocatura al posto del gradiente scuro, card più alte e leggermente inclinate */
.sv::before {
  inset: auto 0 0 0; height: 72%; background: rgba(50, 41, 47, 0.22);
  -webkit-backdrop-filter: blur(10px) saturate(1.15); backdrop-filter: blur(10px) saturate(1.15);
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent 100%); mask-image: linear-gradient(to top, #000 35%, transparent 100%);
  transition: height 0.6s cubic-bezier(0.23, 1, 0.32, 1), backdrop-filter 0.6s, -webkit-backdrop-filter 0.6s;
}
.sv h3 { text-shadow: 0 2px 14px rgba(22, 16, 21, 0.45); }
.sv-chips { border-top-color: rgba(253, 247, 201, 0.55); }
.sv-chip { background: rgba(253, 247, 201, 0.92); color: #32292f; border-color: transparent; font-weight: 500; box-shadow: 0 4px 12px rgba(22, 16, 21, 0.18); }
.sv-chip:hover { background: #fff; color: #32292f; }
.sv { min-height: 31rem; transform: rotate(-1.2deg); }
.svc-slot-1 .sv { transform: rotate(1deg); }
.svc-slot-2 .sv { transform: rotate(-0.8deg); }
.sv:hover, .svc-slot-1 .sv:hover, .svc-slot-2 .sv:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 28px 60px rgba(50, 41, 47, 0.32); }
.sv:hover::before { height: 100%; -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); -webkit-mask-image: linear-gradient(to top, #000 80%, rgba(0,0,0,0.5)); mask-image: linear-gradient(to top, #000 80%, rgba(0,0,0,0.5)); }
@media (min-width: 1024px) { .svc-grid { min-height: 34rem; } .sv { min-height: 34rem; } }
@media (max-width: 767px) { .sv { min-height: 32rem; } }

/* Servizi: sfocatura solo in basso e sfumata; i tag salgono dal basso al passaggio del mouse */
.sv::before {
  height: 46%; background: rgba(50, 41, 47, 0.12);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 100%); mask-image: linear-gradient(to top, #000 30%, transparent 100%);
}
.sv:hover::before { height: 64%; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); -webkit-mask-image: linear-gradient(to top, #000 40%, transparent 100%); mask-image: linear-gradient(to top, #000 40%, transparent 100%); }
@media (hover: hover) and (min-width: 768px) {
  .sv-chips { max-height: 0; padding-top: 0; opacity: 0; overflow: hidden; transform: translateY(1.25rem); border-top-color: transparent; transition: max-height 0.55s cubic-bezier(0.23, 1, 0.32, 1), padding 0.4s, opacity 0.35s, transform 0.55s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s; pointer-events: none; }
  .sv:hover .sv-chips, .sv:focus-within .sv-chips { max-height: 12rem; padding-top: 0.9rem; opacity: 1; transform: none; border-top-color: rgba(253, 247, 201, 0.55); pointer-events: auto; }
}

/* Servizi: sfocatura sfumata fatta con una copia del fondo (la maschera non funziona sul backdrop-filter).
   Due strati con maschera fissa: a riposo solo il basso, all'hover si alza quello più alto. */
.sv::before { display: none; }
.sv-blur { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 30%); mask-image: linear-gradient(to top, #000 8%, transparent 30%); }
.sv-blur-up { opacity: 0; transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  -webkit-mask-image: linear-gradient(to top, #000 26%, transparent 70%); mask-image: linear-gradient(to top, #000 26%, transparent 70%); }
.sv:hover .sv-blur-up { opacity: 1; }
.sv-blur img { width: 100%; height: 100%; object-fit: cover; display: block; filter: blur(12px); transform: scale(1.1); }
.sv-blur canvas { width: 100%; height: 100%; display: block; filter: blur(3px); transform: scale(1.05); }
.sv-blur::after { content: ""; position: absolute; inset: 0; background: rgba(50, 41, 47, 0.14); }
@media (max-width: 767px), (hover: none) {
  .sv-blur:not(.sv-blur-up) { -webkit-mask-image: linear-gradient(to top, #000 20%, transparent 52%); mask-image: linear-gradient(to top, #000 20%, transparent 52%); }
  .sv-blur-up { display: none; }
}
/* in-app: il muro di reel usa immagini animate */
.reel-col img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 1.1rem; background: #32292f; display: block; }

/* Servizi: freccia che suggerisce i tag (solo dove si usa il mouse) */
.sv-arrow { display: none; }
@media (hover: hover) and (min-width: 768px) {
  .sv-arrow { display: grid; place-items: center; position: relative; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: rgba(253, 247, 201, 0.92); color: #32292f; box-shadow: 0 6px 16px rgba(22, 16, 21, 0.25); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s; animation: sv-nudge 2.4s ease-in-out infinite; }
  .sv:hover .sv-arrow { transform: rotate(45deg) scale(0.9); opacity: 0; animation: none; }
  @keyframes sv-nudge { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 0 -0.3rem; } 90% { translate: 0 0.1rem; } }
}
@media (prefers-reduced-motion: reduce) { .sv-arrow { animation: none !important; } }

/* Chi siamo: nome come tag colorato sovrapposto alla foto */
.ab-name { position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 2; padding: 0.45rem 1rem; border-radius: 9999px; font-family: var(--font-heading); font-size: clamp(1.1rem, 3vw, 1.5rem); letter-spacing: -0.02em; box-shadow: 0 8px 20px rgba(22, 16, 21, 0.25); transform: rotate(-4deg); }

.sv-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.ab-person figcaption { display: none; }

/* ======================= CHI SIAMO 2: testo a sinistra, foto a destra ====== */
.ab-layout { display: grid; gap: 3rem; padding-top: 5.5rem; align-items: center; }
@media (min-width: 1024px) { .ab-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4rem; padding-top: 6rem; min-height: 80vh; } }
.ab-eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; padding: 0.4rem 0.9rem; border-radius: 9999px; background: #32292f; color: #fdf7c9; margin-bottom: 1.25rem; transform: rotate(-2deg); }
.ab-h1 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.9rem, 9vw, 6.2rem); line-height: 0.95; letter-spacing: -0.045em; display: grid; gap: 0.1em; margin-bottom: 1.75rem; }
.ab-h1 > span { display: block; }
.ab-h1 > span:nth-child(2) { padding-left: 0.6em; }
.ab-h1-end em { font-style: normal; background: linear-gradient(transparent 58%, #a0d8ef 58%); padding: 0 0.08em; }
.ab-lead { font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.4; font-weight: 600; max-width: 34rem; margin-bottom: 1.5rem; }
.ab-story { display: grid; gap: 1rem; max-width: 34rem; padding-left: 1.25rem; border-left: 4px solid #a0d8ef; }
.ab-story p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; }
.ab-story b { background: linear-gradient(transparent 62%, rgba(160, 216, 239, 0.8) 62%); font-weight: 700; }
.ab-stickers { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ab-sticker { padding: 0.5rem 1.1rem; border-radius: 9999px; font-family: var(--font-heading); font-size: 1.15rem; letter-spacing: -0.02em; box-shadow: 0 6px 16px rgba(50, 41, 47, 0.18); }
.ab-sticker-0 { background: #a0d8ef; transform: rotate(-3deg); }
.ab-sticker-1 { background: #fdf7c9; border: 2px solid #32292f; transform: rotate(2deg); }
.ab-sticker-2 { background: #32292f; color: #fdf7c9; transform: rotate(-1.5deg); }

.ab-stage { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 2.5rem 0.5rem 1.5rem; --mx: 0; --my: 0; }
@media (min-width: 1024px) { .ab-stage { gap: 1.5rem; padding: 3rem 1rem 2rem; } }
.ab-schwa { position: absolute; z-index: 0; right: -2%; top: -8%; font-family: var(--font-heading); font-size: clamp(14rem, 36vw, 30rem); line-height: 1; color: rgba(160, 216, 239, 0.45); pointer-events: none; user-select: none; transform: translate(calc(var(--mx) * -14px), calc(var(--my) * -14px)); transition: transform 0.3s ease-out; }
.ab-person { position: relative; z-index: 1; margin: 0; transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1); }
.ab-person-0 { transform: rotate(-3deg) translate(calc(var(--mx) * 8px), calc(var(--my) * 8px)); }
.ab-person-1 { transform: rotate(3deg) translateY(2.5rem) translate(calc(var(--mx) * 14px), calc(var(--my) * 14px)); }
.ab-person:hover { z-index: 3; }
.ab-frame { aspect-ratio: 3 / 4; }
.ab-badge { position: absolute; z-index: 4; left: 50%; top: 0; width: 6.5rem; height: 6.5rem; margin-left: -3.25rem; padding: 0.4rem; border-radius: 50%; background: #fdf7c9; box-shadow: 0 10px 28px rgba(50, 41, 47, 0.28); animation: ab-spin 18s linear infinite; }
.ab-badge text { font-family: var(--font-mono); font-size: 9.6px; letter-spacing: 0.14em; text-transform: uppercase; fill: #32292f; }
.ab-badge circle { fill: #a0d8ef; }
@keyframes ab-spin { to { transform: rotate(360deg); } }
@media (min-width: 1024px) { .ab-badge { width: 7.5rem; height: 7.5rem; margin-left: -3.75rem; } }
@media (prefers-reduced-motion: reduce) { .ab-badge { animation: none; } .ab-schwa, .ab-person { transition: none; } }
.ab-end { margin-top: 5rem; }
.ab-person-0 .ab-name { background: #32292f; color: #fdf7c9; }
.ab-person-1 .ab-name { background: #a0d8ef; color: #32292f; transform: rotate(3deg); left: auto; right: 0.9rem; }
.ab-person-1 .ab-frame { border-radius: 1rem 2.5rem 1rem 2.5rem; background: linear-gradient(160deg, #fdf7c9, #a0d8ef); }
.ab-h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
.ab-h1 > span { white-space: nowrap; }
@media (max-width: 480px) { .ab-h1 { font-size: 2.45rem; } .ab-h1 > span:nth-child(2) { padding-left: 0.4em; } }
.ab-h1 { font-size: clamp(2.4rem, 5.3vw, 4.4rem); }
@media (min-width: 1024px) { .ab-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
@media (max-width: 480px) { .ab-h1 { font-size: 2.45rem; } }

/* Chi siamo 3: titolo semplice, card grandi, inclinate e sovrapposte */
.ab-h1 { display: block; font-size: clamp(3.2rem, 9vw, 7rem); line-height: 0.95; letter-spacing: -0.04em; margin-bottom: 1.75rem; }
.ab-h1 > span { display: inline; white-space: normal; padding-left: 0; }
.ab-stage { display: block; position: relative; min-height: 31rem; padding: 0; }
@media (min-width: 1024px) { .ab-stage { min-height: 46rem; } }
.ab-person { position: absolute; width: 68%; }
.ab-person-0 { left: 0; top: 0; z-index: 1; transform: rotate(-7deg) translate(calc(var(--mx) * 8px), calc(var(--my) * 8px)); }
.ab-person-1 { right: 0; bottom: 0; z-index: 2; transform: rotate(5deg) translate(calc(var(--mx) * 14px), calc(var(--my) * 14px)); }
.ab-person:hover { z-index: 3; }
.ab-schwa { top: 8%; right: -4%; }
.ab-badge { display: none; }
.ab-person-0 .ab-name { top: 3.4rem; bottom: auto; left: -0.6rem; }

/* Chi siamo 4: card appena sovrapposte, nomi in basso, "di ma nə" dietro, card finale nuova */
.ab-stage { min-height: 33rem; }
@media (min-width: 1024px) { .ab-stage { min-height: 41rem; } }
.ab-person { width: 56%; }
.ab-person-0 { left: 0; top: 0; transform: rotate(-5deg) translate(calc(var(--mx) * 8px), calc(var(--my) * 8px)); }
.ab-person-1 { right: 0; bottom: 0; top: auto; transform: rotate(4deg) translate(calc(var(--mx) * 14px), calc(var(--my) * 14px)); }
.ab-person .ab-name, .ab-person-0 .ab-name, .ab-person-1 .ab-name { top: auto; bottom: 0.9rem; z-index: 3; }
.ab-person-0 .ab-name { left: 0.9rem; right: auto; transform: rotate(-4deg); }
.ab-person-1 .ab-name { right: 0.9rem; left: auto; transform: rotate(3deg); }
.ab-schwa { display: none; }
.ab-word { position: absolute; z-index: 0; left: 50%; top: 50%; display: grid; justify-items: center; pointer-events: none; user-select: none; font-family: var(--font-heading); font-weight: 700; font-size: clamp(7rem, 17vw, 14rem); line-height: 0.8; letter-spacing: -0.04em; color: rgba(160, 216, 239, 0.6); transform: translate(calc(-50% + var(--mx) * -16px), calc(-50% + var(--my) * -16px)); transition: transform 0.3s ease-out; }
.ab-word i { display: inline-block; width: 0.36em; font-style: normal; }
.ab-end { position: relative; overflow: hidden; background: #a0d8ef; color: #32292f; border-radius: 3rem 1.25rem 3rem 1.25rem; transform: rotate(-1deg); box-shadow: 0 24px 60px rgba(50, 41, 47, 0.18); }
.ab-end::after { content: ""; position: absolute; right: -4rem; bottom: -5rem; width: 18rem; height: 18rem; border-radius: 50%; background: #fdf7c9; opacity: 0.55; pointer-events: none; }
.ab-end > p { color: #32292f; position: relative; z-index: 1; }
.ab-actions { position: relative; z-index: 1; }
.ab-cta { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 3.5rem; padding: 0 1.75rem; border-radius: 9999px; background: #32292f; color: #fdf7c9; font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; box-shadow: 0 12px 30px rgba(50, 41, 47, 0.3); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s; }
.ab-cta:hover { transform: translateY(-3px) rotate(-1deg); background: #fff; color: #32292f; }
.ab-end-tag { position: absolute; z-index: 1; top: 1.25rem; right: 1.25rem; padding: 0.4rem 0.9rem; border-radius: 9999px; background: #fdf7c9; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; transform: rotate(4deg); box-shadow: 0 6px 16px rgba(50, 41, 47, 0.18); }
@media (prefers-reduced-motion: reduce) { .ab-end, .ab-cta:hover { transform: none; } .ab-word { transition: none; } }
.ab-word { left: 0; right: 0; width: 100%; justify-items: stretch; font-size: clamp(8rem, 19vw, 16rem); transform: translate(calc(var(--mx) * -16px), calc(-50% + var(--my) * -16px)); }
.ab-word span { display: block; }
.ab-word span:nth-child(1) { justify-self: end; padding-right: 2%; }
.ab-word span:nth-child(2) { justify-self: center; }
.ab-word span:nth-child(3) { justify-self: start; padding-left: 2%; }

.ab-word, .ab-word span, .ab-word i { font-family: 'NauryzRedKeds', sans-serif; }

/* Header: il centro ottico del testo "Dimanǝ" coincide con quello del pittogramma */
.brand img { object-fit: contain; }
.brand span { display: block; line-height: 1.5; transform: translateY(-0.07em); }

.brand span { transform: none; }
.brand-word { display: block; height: 1.125rem; width: auto; flex: none; }

/* ======================= LAVORI: card compatte, immagine a tutta card ===== */
.wk { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; aspect-ratio: 5 / 4; overflow: hidden; isolation: isolate; color: #fdf7c9; background: #32292f; border-radius: 2.25rem 1rem 2.25rem 1rem; box-shadow: 0 18px 44px rgba(50, 41, 47, 0.22); transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s; }
.wk-1 { border-radius: 1rem 2.25rem 1rem 2.25rem; }
.wk-2 { border-radius: 2.25rem; }
.wk-3 { border-radius: 1.25rem 1.25rem 2.5rem 2.5rem; }
.wk:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(50, 41, 47, 0.3), 0 0 0 3px #a0d8ef; }
.wk-media, .wk-blur { position: absolute; inset: 0; }
.wk-media { z-index: -2; }
.wk-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1); }
.wk-img.is-contain { object-fit: contain; padding: 12% 18% 30%; }
.wk-contain .wk-media { background: radial-gradient(circle at 70% 10%, rgba(160, 216, 239, 0.45), transparent 60%), #3a2f36; }
.wk:hover .wk-img { transform: scale(1.06); }
.wk-blur { z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, #000 18%, transparent 52%); mask-image: linear-gradient(to top, #000 18%, transparent 52%); }
.wk-blur .wk-img { filter: blur(14px); transform: scale(1.12); }
.wk-blur::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(40, 32, 38, 0.82), rgba(40, 32, 38, 0.35)); }
.wk-tag { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2; max-width: calc(100% - 1.8rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0.3rem 0.7rem; border-radius: 9999px; background: #a0d8ef; color: #32292f; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; }
.wk-body { position: relative; padding: 1.1rem 1.25rem 1.2rem; display: grid; gap: 0.35rem; }
.wk-meta { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-title { font-family: 'Monotalic', sans-serif; font-weight: 700; font-size: clamp(1.25rem, 1.6vw, 1.55rem); line-height: 1.1; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; text-shadow: 0 2px 12px rgba(22, 16, 21, 0.4); }
.wk-arrow { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #fdf7c9; color: #32292f; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s; }
.wk:hover .wk-arrow { transform: rotate(45deg); background: #a0d8ef; }
.wk-ex { font-size: 0.85rem; line-height: 1.45; opacity: 0.85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) and (min-width: 768px) {
  .wk-ex { max-height: 0; opacity: 0; transition: max-height 0.45s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s; }
  .wk:hover .wk-ex, .wk:focus-visible .wk-ex { max-height: 3rem; opacity: 0.85; }
  .wk:hover .wk-blur { -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 70%); mask-image: linear-gradient(to top, #000 30%, transparent 70%); }
}
@media (max-width: 767px) { .wk { aspect-ratio: 4 / 4.6; } .wk-blur { -webkit-mask-image: linear-gradient(to top, #000 28%, transparent 62%); mask-image: linear-gradient(to top, #000 28%, transparent 62%); } }
.wk .work-tip { z-index: 5; }

/* Lavori: tag a icona che si espande in testo; gradiente azzurro dietro la card all'hover */
.wk-tag { display: inline-flex; align-items: center; gap: 0; padding: 0; height: 2.1rem; min-width: 2.1rem; max-width: none; overflow: hidden; border-radius: 9999px; box-shadow: 0 4px 12px rgba(22, 16, 21, 0.25); transition: gap 0.35s; }
.wk-ico { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; }
.wk-tag-txt { display: block; max-width: 0; opacity: 0; white-space: nowrap; overflow: hidden; transition: max-width 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s, padding 0.5s cubic-bezier(0.23, 1, 0.32, 1); }
.wk:hover .wk-tag-txt, .wk:focus-visible .wk-tag-txt { max-width: 18rem; opacity: 1; padding-right: 0.85rem; }
.wk:hover { box-shadow: 0 26px 60px rgba(50, 41, 47, 0.3); }
.wk-wrap { position: relative; isolation: isolate; }
.wk-wrap::before { content: ""; position: absolute; z-index: -1; inset: 6% 4% -4%; border-radius: 3rem; background: linear-gradient(135deg, #a0d8ef, #6ec6e4 55%, #3fb3dd); filter: blur(26px); opacity: 0; transform: scale(0.9); transition: opacity 0.4s, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); pointer-events: none; }
.wk-wrap:hover::before { opacity: 0.95; transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .wk-wrap::before, .wk-tag-txt { transition: none; } }
.wk-wrap::before { inset: -5% -4% -9%; filter: blur(30px); }
.wk-wrap:hover { z-index: 2; }

/* Tooltip "Apri il caso studio": fisso sulla pagina, accanto al cursore */
.work-tip { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.75rem 0.45rem 0.9rem; border-radius: 9999px; background: #32292f; color: #fdf7c9; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.66rem; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(22, 16, 21, 0.35); opacity: 0; scale: 0.6; rotate: -6deg;
  transition: opacity 0.2s ease, scale 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), rotate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.work-tip svg { width: 0.9rem; height: 0.9rem; color: #a0d8ef; }
.work-tip.is-on { opacity: 1; scale: 1; rotate: -3deg; }
/* alone più contenuto, pillola azzurra */
.wk-wrap::before { inset: 2% 1% -5%; filter: blur(22px); }
.wk-wrap:hover::before { opacity: 0.55; transform: scale(1); }
.work-tip { background: #a0d8ef; color: #32292f; }
.work-tip svg { color: #32292f; }

/* Video decorativi: uno "scudo" trasparente sopra ogni video, così il tocco non arriva mai al player */
.poster-video::after, .sv-media::after, .cta-video-box::after { content: ""; position: absolute; inset: 0; z-index: 1; background: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.sv-media video, .poster-video video { pointer-events: none; }

/* Caroselli su smartphone: più spazio sopra e sotto, così le ombre e le card inclinate non vengono tagliate */
@media (max-width: 767px) {
  .svc-grid, .works-grid { padding-top: 1.25rem; padding-bottom: 3.5rem; margin-top: -0.75rem; margin-bottom: -2.5rem; }
}

/* lo scudo dei video del Metodo usa ::before (::after è già usato e nascosto) */
.poster-video::before { content: ""; position: absolute; inset: 0; z-index: 2; background: transparent; -webkit-touch-callout: none; }
