/* Motion preview, 28 September 2026. Loaded after the existing design.
   Content, section order and the original hero direction are preserved. */
:root {
  --motion-orange: #ff5b16;
  --motion-ease: cubic-bezier(.16, 1, .3, 1);
}

/* The three planes of the tailored service. Text stays on a frontal plane. */
#differenziazione { padding-block: 92px 100px; }
#differenziazione .diff-intro-header { margin-bottom: 48px; }
#differenziazione h2 { color: #141416; }
#differenziazione .diff-intro-desc { color: #52525b; max-width: 68ch; }
#differenziazione .editorial-comparison {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  perspective: 1000px;
}
#differenziazione .editorial-row {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.4fr);
  gap: clamp(28px, 4vw, 64px);
  padding: 32px 36px;
  border: 0;
  border-radius: 14px;
}
#differenziazione .editorial-row::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #f7f7f8;
  box-shadow: 0 10px 24px -20px #20202540;
  transform: perspective(1000px) rotateX(var(--plane-angle, 0deg));
  transition: transform 700ms var(--motion-ease), background-color 500ms;
}
#differenziazione .editorial-row::after {
  content: '';
  position: absolute;
  left: 36px;
  top: 0;
  width: 44px;
  height: 2px;
  background: var(--motion-orange);
  transform: scaleX(var(--plane-accent, 0));
  transform-origin: left;
  transition: transform 600ms var(--motion-ease);
}
#differenziazione .editorial-row.is-current { --plane-accent: 1; }
#differenziazione .editorial-row.is-current::before { background: #fff6f1; }
#differenziazione .ed-subject h3 { font-size: clamp(23px, 2.1vw, 29px); }
#differenziazione .ed-content p { font-size: 17px; line-height: 1.7; color: #52525b; }

/* The existing rail becomes a recessed channel. Only the active node pulses. */
#metodo .method-rail-track { width: 7px; }
#metodo .method-rail-base {
  background: #050505;
  border-inline: 1px solid #303033;
  box-shadow: inset 1px 0 2px #000;
  border-radius: 8px;
}
#metodo .method-rail-glow {
  width: 3px;
  left: 2px;
  background: var(--motion-orange);
  box-shadow: 0 0 5px #ff5b1670;
  transition: none;
}
#metodo .method-rail-cursor {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 7px #ff5b16, 0 0 18px #ff5b1690;
}
#metodo .step-node-dot {
  background: #181819;
  border: 2px solid #67676e;
  box-shadow: 0 3px 5px #0008, inset 0 1px 2px #ffffff40;
  transform: none;
}
#metodo .is-lit .step-node-dot {
  background: #fff;
  border-color: var(--motion-orange);
  box-shadow: 0 3px 6px #0009, 0 0 9px #ff5b1660;
  transform: none;
}
#metodo .node-inner-pulse { animation: none; opacity: 0; }
#metodo .is-current .node-inner-pulse {
  animation: motion-node-arrive 650ms var(--motion-ease) 1;
  border-color: #ff5b16;
}
@keyframes motion-node-arrive {
  0% { transform: scale(1); opacity: .8; }
  35% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
#metodo .step-right-col {
  position: relative;
  isolation: isolate;
  opacity: 1;
  filter: none;
  transform: none;
  padding: 22px 26px;
  margin: -22px -26px;
}
#metodo .step-right-col::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 14px;
  background: linear-gradient(125deg, #242020, #151516 72%);
  opacity: 0;
  transform: perspective(1000px) translateZ(0);
  box-shadow: 0 14px 30px -18px #000;
  transition: transform 650ms var(--motion-ease), opacity 450ms;
}
#metodo .is-current .step-right-col::before {
  opacity: 1;
  transform: perspective(1000px) translateZ(10px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
#metodo .step-description { color: #b8b8c0; font-size: 17px; }
#metodo .step-heading { color: #e7e7ed; }
#metodo .is-current .step-heading { color: #fff; }
#metodo .method-badge-label { color: #aaaab2; }
#metodo .method-badge-num { color: #d2d2d8; }
#metodo .method-badge-block { backdrop-filter: none; transform: none; }
#metodo .is-lit .method-badge-block { box-shadow: none; transform: none; }
#metodo .is-lit .method-badge-num { text-shadow: none; }

/* Four complete answers, with one reading surface per card. */
#obiezioni .objections-header { margin-bottom: 44px; }
#obiezioni .objections-grid { gap: 28px; }
#obiezioni .objection-card {
  position: relative;
  overflow: hidden;
  padding: 32px !important;
  background: #f7f7f8;
  border: 0;
  border-radius: 14px !important;
  transform: none;
}
#obiezioni .objection-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 32px;
  width: 44px;
  height: 2px;
  background: var(--motion-orange);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 550ms var(--motion-ease);
}
#obiezioni .objection-card.is-revealed::after { transform: scaleX(1); }
#obiezioni .objection-title {
  font-size: clamp(21px, 1.85vw, 26px) !important;
  line-height: 1.3 !important;
  font-weight: 650;
  font-style: normal;
  margin-bottom: 22px !important;
}
#obiezioni .objection-answer-box {
  background: transparent;
  border: 0;
  border-radius: 0 !important;
  padding: 0 !important;
}
#obiezioni .objection-answer-box::before { color: #aa3605; margin-bottom: 16px; }
#obiezioni .objection-answer-box p {
  font-size: 16px !important;
  line-height: 1.65 !important;
  margin-bottom: 18px;
}
#obiezioni .objection-answer-box strong { color: #29292e; font-weight: 650; }

/* Native details behavior is retained, including keyboard support. */
#faq summary { gap: 24px; }
#faq summary > span { flex-shrink: 0; transition-duration: 260ms; }
#faq details p { font-size: 16px; }
#faq details[data-opening='true'] summary > span { transform: rotate(45deg); color: var(--motion-orange); }
#faq details[data-opening='false'] summary > span { transform: rotate(0deg); }
#contact-card { scroll-margin-top: 0; }
#contact-form .form-step-container.is-visible { animation: stepFadeIn 220ms var(--motion-ease); }
#contact-form .form-step-title:focus { outline: none; }
#contact-form input { caret-color: var(--motion-orange); }
#contact-form .form-back-nav-btn { min-height: 44px; }
#contact-form .form-field-group:focus-within label { color: #aa3605; }

/* Automatic title sequence. Geometry is measured after fonts load. */
.attention-intro {
  height: auto;
  min-height: 0;
  padding: 140px 0 72px;
}
.attention-intro > .wrap { height: auto; }
.attention-intro .attention-heading {
  height: clamp(380px, 48svh, 500px);
  min-height: 0;
  max-height: none;
}
.attention-heading h1 { font-size: clamp(36px, 4.6vw, 66px); max-width: 76%; line-height: 1.15; }
.attention-heading h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1.12; right: 0; bottom: 0; }
.attention-heading h1, .attention-heading h2 { opacity: 1; }
.attention-rail { inset: 0; width: 100%; height: 100%; stroke-linecap: round; stroke-linejoin: round; }
.attention-rail .rail-base { display: none; }
.attention-rail .rail-light { filter: drop-shadow(0 0 3px #ff5b1690); stroke-width: 2.5px; }
.attention-rail .rail-arrow { stroke-width: 2.5px; }

/* Summary: an early entrance, then a short, readable pinned composition. */
.attention-summary { max-width: 1200px; padding-block: 48px 64px; }
.attention-summary .summary-stage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.attention-summary .summary-stage > p {
  max-width: 680px;
  font-size: clamp(25px, 2.6vw, 36px);
  line-height: 1.45;
  margin: 0;
}
.attention-summary .summary-stage > p + p {
  align-self: flex-end;
  max-width: 570px;
  font-size: clamp(22px, 2vw, 28px);
  color: #bcbcc2;
  margin: 0;
}
.attention-summary .summary-stage > a {
  align-self: center;
  min-height: 48px;
  font-size: 16px;
  margin: 12px 0 0;
}
.attention-summary .summary-stage > a span { display: inline-block; transition: transform 240ms var(--motion-ease); }
.attention-summary .summary-stage > a:hover span { transform: translateY(4px); }
.attention-summary .summary-stage > a:active { opacity: .75; }
.attention-summary.is-story-summary { height: 155svh; padding: 0 !important; }
.attention-summary.is-story-summary .summary-stage {
  position: sticky;
  top: 80px;
  height: calc(100svh - 80px);
  justify-content: center;
  gap: clamp(36px, 6svh, 72px);
  padding-block: 40px;
}
.attention-summary.is-story-summary .summary-stage > p,
.attention-summary.is-story-summary .summary-stage > a {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0;
}
.attention-summary.is-story-summary .summary-stage > p:first-child {
  opacity: var(--summary-one, 1);
  transform: translateY(calc((1 - var(--summary-one, 1)) * 36px));
}
.attention-summary.is-story-summary .summary-stage > p + p {
  opacity: var(--summary-two, 1);
  transform: translateY(calc((1 - var(--summary-two, 1)) * 28px));
}
.attention-summary.is-story-summary .summary-stage > a {
  opacity: var(--summary-cta, 1);
  transform: translateY(calc((1 - var(--summary-cta, 1)) * 12px));
  clip-path: inset(calc((1 - var(--summary-cta, 1)) * 100%) 0 0);
}
#vetrina { scroll-margin-top: 0; }

/* Devices keep their proportions; depth belongs to their shared scene. */
.hardware-scene { perspective: 1400px; }
.hardware-scene .macbook { transform-origin: center bottom; }
.hardware-scene .iphone { transform-origin: center bottom; }
.filter-btn { min-height: 44px; }
.feed-cta { display: inline-flex; align-items: center; min-height: 44px; }
.feed-item .story-desc { font-size: 16px; }
.feed-item .story-title { margin-bottom: 16px; }
.feed-item .stage-bottom-row { overflow: visible; }
.feed-item .story-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.feed-item .story-voice-wrap { margin-top: 52px; max-width: 70ch; }
.feed-item .title-red { color: #ff8188; }
.feed-item .title-green { color: #64d6a5; }
.feed-item .story-voice-title { font-size: 15px; color: var(--motion-orange); margin-bottom: 18px; }
.feed-item .story-voice-wrap blockquote { font-size: 24px; line-height: 1.5; }
.feed-item .stage-cite { color: #b4b4bc; margin-top: 16px; }
.feed-item .feed-content { max-width: 75ch; margin: 32px auto 0; }

@media (min-width: 1000px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  .feed-showcase-stage { perspective: 1400px; }
  .stage-scene { background: #080808; }
  .stage-scene .hardware-scene { width: 880px; padding: 0 88px 15px 26px; }
  .stage-scene .hardware-scene .macbook {
    transform: translate3d(0, 0, 0) rotateY(calc((1 - var(--hardware-progress, 0)) * -2deg));
  }
  .stage-scene .hardware-scene .iphone {
    transform: translate3d(0, calc((1 - var(--hardware-progress, 0)) * 12px), 18px);
  }
  .stage-scene .feed-content { top: 92px; left: 48%; right: 4%; }
  .stage-scene .feed-desc, .stage-scene .feed-functions li { font-size: 15px; }
  .stage-scene .stage-bottom-row { top: 390px; left: 4%; right: 4%; bottom: 48px; }
  .stage-scene .story-duo { gap: 48px; }
  .stage-scene .story-title { font-size: 24px; line-height: 1.25; }
  .stage-scene .story-desc { font-size: 16px; color: #b8b8c0; }
  .stage-scene .title-red { color: #ff8188; }
  .stage-scene .title-green { color: #64d6a5; }
  .stage-scene .story-voice-wrap blockquote { font-size: clamp(22px, 2vw, 28px); line-height: 1.5; }
  .stage-scene .reel-scroll-hint { color: #a1a1aa; bottom: 15px; }
}

@media (max-width: 999px) {
  .attention-heading h1 { font-size: clamp(34px, 4.8vw, 46px); }
  .attention-heading h2 { font-size: clamp(34px, 4.5vw, 44px); }
  #differenziazione .editorial-row { grid-template-columns: 1fr; gap: 18px; }
  .feed-item .hardware-scene { margin-bottom: 38px; }
  .feed-item .feed-content, .feed-item .stage-bottom-row { padding: 0; }
  .feed-item .story-duo { grid-template-columns: 1fr; gap: 32px; }
  .feed-item .story-voice-wrap blockquote { font-size: 23px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 40px); }
  #differenziazione .diff-intro-header { margin-bottom: 32px; }
  #differenziazione .editorial-comparison { gap: 18px; }
  #differenziazione .editorial-row { padding: 26px 22px; }
  #differenziazione .editorial-row::after { left: 22px; }
  #differenziazione .ed-content p, #differenziazione .diff-intro-desc { font-size: 16px; line-height: 1.65; }
  #metodo .method-step-row { padding-left: 44px; }
  #metodo .step-right-col { margin: -12px; padding: 12px; }
  #metodo .is-current .step-right-col::before { transform: perspective(1000px) translateZ(5px); }
  #metodo .step-description { font-size: 16px; line-height: 1.65; }
  #metodo .method-steps-list { gap: 44px; }
  #obiezioni .objections-grid { gap: 26px; }
  #obiezioni .objection-card { padding: 24px 20px !important; }
  #obiezioni .objection-card::after { left: 20px; }
  #obiezioni .objection-title { font-size: 23px !important; }
  #obiezioni .objection-answer-box { padding: 0 !important; }
  #faq summary { font-size: 17px; line-height: 1.45; padding-block: 22px; }
  #faq details p { padding-right: 0; font-size: 16px; line-height: 1.65; }
  #contact-form .form-step-header-content { display: block; }
  #contact-form .form-step-num { display: block; margin-bottom: 12px; }
  #contact-form .form-step-title { text-align: left; font-size: 23px; }
  #contact-form .form-step-desc { text-align: left; }
  #contact-form .form-row-grid { gap: 20px; }
  .attention-intro { padding: 120px 0 40px !important; height: auto; min-height: 0; }
  .attention-intro .attention-heading { height: 360px; min-height: 0 !important; }
  .attention-heading h1 { font-size: clamp(30px, 8.4vw, 36px) !important; max-width: 94%; }
  .attention-heading h2 { font-size: clamp(30px, 8.4vw, 36px) !important; }
  .attention-summary { padding-block: 28px 48px !important; }
  .attention-summary .summary-stage { gap: 30px; }
  .attention-summary .summary-stage > p { font-size: 26px !important; line-height: 1.5; }
  .attention-summary .summary-stage > p + p { font-size: 21px !important; margin: 0 !important; }
  .attention-summary .summary-stage > a { font-size: 16px; margin-top: 4px; }
  .attention-summary.is-story-summary { height: 150svh; padding: 0 !important; }
  .attention-summary.is-story-summary .summary-stage { top: 70px; height: calc(100svh - 70px); gap: 38px; padding-block: 32px; }
  .portfolio-feed { padding-block: 56px; }
  .feed-header { gap: 24px; margin-bottom: 40px; }
  .feed-filters { gap: 10px; }
  .filter-btn { font-size: 14px; padding-inline: 16px; }
  .feed-list { gap: 64px; }
  .feed-item .hardware-scene { padding: 0 9% 12px 5% !important; margin-bottom: 32px !important; }
  .feed-item .feed-content { margin-top: 26px !important; }
  .feed-item .feed-desc, .feed-item .feed-functions li { font-size: 16px; line-height: 1.65; }
  .feed-item .story-desc { font-size: 16px !important; line-height: 1.65; }
  .feed-item .story-title { font-size: 23px !important; margin-bottom: 14px !important; }
  .feed-item .stage-bottom-row { margin-top: 36px !important; }
  .feed-item .story-duo { gap: 32px !important; }
  .feed-item .story-voice-wrap { margin-top: 38px !important; }
  .feed-item .story-voice-wrap blockquote { font-size: 22px !important; }
  .feed-item .story-voice-title, .feed-item .stage-cite { font-size: 15px !important; }
  .feed-item .dynamic-island { width: 28%; height: 6px; top: 9px; left: 36%; }
  .feed-item .home-indicator { height: 2px; bottom: 8px; }
  .feed-item .macbook-lid { padding: 8px 5px 6px; border-radius: 10px 10px 5px 5px; }
  .feed-item .macbook-camera { height: 7px; top: 7px; }
  .feed-item .macbook-camera::after { width: 2px; height: 2px; top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  #differenziazione *, #metodo *, #obiezioni *, #faq *, #contact-form *,
  .attention-intro *, .attention-summary *, .portfolio-feed * {
    animation: none !important;
    transition: none !important;
  }
  #metodo .step-right-col::before { transform: none !important; }
  .attention-summary .summary-stage > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
