/* ============================================================
   WORKER A — Sezioni 01-04
   ============================================================ */

/* --- 01 HERO --- */

.s-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  padding-top: var(--sp-6);
}

.s-hero__title {
  max-width: 16ch;
}

.s-hero__subtitle {
  max-width: 52ch;
}

.s-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
}

.s-hero__video-wrap {
  width: 100%;
  max-width: 640px;
  margin-top: var(--sp-3);
}

.s-hero__video-frame {
  border-radius: var(--radius-l);
  overflow: hidden;
  transform: perspective(900px) rotateX(2deg);
  transition: transform 0.4s ease;
}

.s-hero__video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.s-hero__scroll {
  margin-top: var(--sp-4);
  display: flex;
  justify-content: center;
}

.s-hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-soft), transparent);
  animation: s-hero-scroll-pulse 2.4s ease-in-out infinite;
}

@keyframes s-hero-scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .s-hero__scroll-line {
    animation: none;
    opacity: 0.5;
  }
  .s-hero__video-frame {
    transform: none;
  }
}

@media (min-width: 860px) {
  .s-hero__inner {
    padding-top: var(--sp-6);
  }
  .s-hero__video-wrap {
    max-width: 720px;
  }
}

/* --- 02 PROBLEMA --- */

.s-problema__inner {
  text-align: left;
}

.s-problema__text {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: var(--lh-body);
  color: var(--ink-dim);
  margin-bottom: var(--sp-3);
  max-width: 56ch;
}

.s-problema__text--emphasis {
  color: var(--ink);
  font-weight: 500;
}

/* --- 03 COME FUNZIONA --- */

.s-come__inner {
  text-align: center;
}

.s-come__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.s-come__card {
  padding: var(--sp-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.s-come__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: var(--sp-1);
}

.s-come__icon svg {
  width: 100%;
  height: 100%;
}

.s-come__card-title {
  margin-bottom: var(--sp-1);
}

.s-come__card-text {
  color: var(--ink-dim);
  max-width: 34ch;
}

.s-come__coda {
  margin-top: var(--sp-4);
  max-width: 56ch;
  margin-inline: auto;
}

@media (min-width: 860px) {
  .s-come__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- 04 AVA --- */

.s-ava__inner {
  text-align: center;
}

.s-ava__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-4);
  align-items: center;
}

.s-ava__points {
  display: grid;
  gap: var(--sp-4);
  text-align: left;
}

.s-ava__point-title {
  margin-bottom: var(--sp-1);
  color: var(--ink);
}

.s-ava__point-text {
  color: var(--ink-dim);
  max-width: 44ch;
}

/* Voce visuale — cerchio + onde concentriche */
.s-ava__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.s-ava__voice {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.s-ava__core {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow);
  position: relative;
  z-index: 2;
}

.s-ava__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  animation: s-ava-ring 3.6s ease-out infinite;
}

.s-ava__ring--1 {
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.s-ava__ring--2 {
  width: 130px;
  height: 130px;
  animation-delay: 1.2s;
}

.s-ava__ring--3 {
  width: 180px;
  height: 180px;
  animation-delay: 2.4s;
}

@keyframes s-ava-ring {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.6);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-ava__ring {
    animation: none;
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1);
  }
  .s-ava__ring--1 { width: 80px; height: 80px; }
  .s-ava__ring--2 { width: 130px; height: 130px; }
  .s-ava__ring--3 { width: 180px; height: 180px; }
}

@media (min-width: 860px) {
  .s-ava__layout {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .s-ava__visual {
    order: 2;
  }
  .s-ava__voice {
    width: 260px;
    height: 260px;
  }
  .s-ava__ring--1 { width: 100px; height: 100px; }
  .s-ava__ring--2 { width: 170px; height: 170px; }
  .s-ava__ring--3 { width: 240px; height: 240px; }
}
