/* Popup video della landing - resa coerente con il riquadro DANA */
.tc-dana-video-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(13, 33, 58, 0.22);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.tc-dana-video-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.tc-dana-video-dialog {
  width: auto;
  max-width: 240px;
  padding: 14px 14px 16px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  text-align: center;
  box-sizing: border-box;
  transform: translateY(12px) scale(0.985);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tc-dana-video-overlay.is-open .tc-dana-video-dialog {
  transform: translateY(0) scale(1);
}

.tc-dana-video-frame {
  position: relative;
  width: 200px;
  max-width: 70vw;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

.tc-dana-video-player {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: inherit;
  background: #000;
  object-fit: cover;
}

.tc-dana-video-playback {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.tc-dana-video-playback:hover {
  background: rgba(255, 255, 255, 0.44);
  transform: scale(1.06);
}

.tc-dana-video-playback:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.tc-dana-video-playback svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.tc-dana-video-playback.is-playing {
  background: rgba(18, 43, 71, 0.68);
}

.tc-dana-video-start {
  margin-top: 12px;
  width: 100%;
  max-width: 200px;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #18488d 0%, #1d3557 100%);
  color: #ffffff;
  font-family: Montserrat, Inter, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(24, 72, 141, 0.24);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.tc-dana-video-start:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #123a73 0%, #152b47 100%);
  box-shadow: 0 10px 22px rgba(24, 72, 141, 0.32);
}

.tc-dana-video-start:focus-visible {
  outline: 3px solid rgba(24, 72, 141, 0.35);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .tc-dana-video-dialog {
    max-width: 230px;
    padding: 12px 12px 14px;
    border-radius: 20px;
  }

  .tc-dana-video-frame {
    width: 190px;
    max-width: 72vw;
    border-radius: 16px;
  }

  .tc-dana-video-start {
    max-width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-dana-video-overlay,
  .tc-dana-video-dialog,
  .tc-dana-video-playback,
  .tc-dana-video-start {
    transition: none !important;
  }
}
