/* ==========================================================================
   IMPACTA HUB - ROTATORE "IL PUNTO DI PARTENZA" (#casi-studio / #perdi)
   Standard: Digitam SAGL / Apple Silk Motion Engine
   Zero AI Slop - Dark Luxury Minimalist Gateway
   ========================================================================== */

.perdi-rot-section {
  position: relative;
  padding: clamp(90px, 11vh, 140px) 24px;
  background: #05050a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.perdi-rot-inner {
  max-width: min(1360px, 94vw);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.perdi-rot-inner .hud {
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a1a1aa;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-block;
  margin-bottom: 24px;
}

.perdi-static-line {
  display: block;
}

.perdi-rot-section .giant {
  margin: 0 auto;
  font-size: clamp(28px, 3.8vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: #ffffff;
  max-width: min(1360px, 94vw);
  width: 100%;
}

.perdi-rot-section .rot {
  display: grid;
  color: #ff5500;
  font-style: italic;
  font-weight: 300;
  margin-top: 8px;
}

.perdi-rot-section .rot-w {
  grid-area: 1/1;
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(8px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  will-change: transform, filter, opacity;
  white-space: normal;
}

@media (min-width: 900px) {
  .perdi-static-line {
    white-space: nowrap !important;
  }
  .perdi-rot-section .rot-w {
    white-space: nowrap !important;
  }
}

.perdi-rot-section .rot-w.on {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.perdi-rot-section .giant-ft {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}

.perdi-rot-section .rot-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.perdi-rot-section .rot-dots i {
  position: relative;
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.perdi-rot-section .rot-dots i::after {
  content: "";
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: -4px;
  right: -4px;
}

.perdi-rot-section .rot-dots i:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scaleY(1.3);
}

.perdi-rot-section .rot-dots i.on {
  background: #ff5500;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.6);
  transform: scaleY(1.3);
}

.perdi-rot-section .giant-ft p {
  margin: 0;
  color: #a1a1aa;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
  max-width: 58ch;
  text-wrap: balance;
}

.perdi-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.btn-perdi {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-perdi.pri {
  background: #ffffff;
  color: #05050a;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.14);
}

.btn-perdi.pri:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
  background: #f4f4f5;
}

.btn-perdi.sec {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.btn-perdi.sec:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.09);
}

.btn-perdi .arr {
  font-size: 14px;
  transition: transform 0.25s ease;
}

.btn-perdi:hover .arr {
  transform: translate(2px, -2px);
}

@media (max-width: 768px) {
  .perdi-rot-section {
    padding: 70px 18px;
  }
  .perdi-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-perdi {
    width: 100%;
    justify-content: center;
  }
}
