/* =========================================================
PRESENTATION VIDEO
Full-bleed video player. Custom play button overlay → native
controls after click. Audio enabled (no muted attribute).

Uses !important to neutralize inherited .seo-content rules
(max-width, padding, etc.) defined in style.css.
========================================================= */


/* SECTION — full bleed, kill all default .seo-content constraints */
section.presentation-section{
  padding:    0 !important;
  margin:     0 !important;
  max-width:  none !important;
  width:      100% !important;
  background: transparent !important;
}


.presentation-video{
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;

  background: #1a1f3c;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

.presentation-video video{
  width:  100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


/* ---------------------------------------------------------
PLAY BUTTON OVERLAY
--------------------------------------------------------- */

.presentation-play{
  position: absolute;
  inset: 0;
  margin: auto;

  width: 96px;
  height: 96px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(26, 31, 60, 0.78);
  color: #ffffff;

  border: 2px solid #c9a84c;
  border-radius: 50%;

  cursor: pointer;
  z-index: 2;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 12px 32px rgba(15, 18, 36, 0.45);

  transition:
    transform   .25s cubic-bezier(.2, .8, .2, 1),
    background  .25s ease,
    color       .25s ease;
}

/* pulsating ring */
.presentation-play::before{
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(201, 168, 76, 0.45);
  animation: presPulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes presPulse{
  0%   { opacity: 1; transform: scale(1);   }
  100% { opacity: 0; transform: scale(1.4); }
}

.presentation-play:hover{
  background: #c9a84c;
  color: #1a1f3c;
  transform: scale(1.06);
}

.presentation-play:active{
  transform: scale(0.98);
}

.presentation-play:focus-visible{
  outline: 3px solid #c9a84c;
  outline-offset: 4px;
}

.presentation-play svg{
  width:  34px;
  height: 34px;
  fill: currentColor;
  margin-left: 4px; /* optical centering of the play triangle */
}

/* hide overlay once playing */
.presentation-video.is-playing .presentation-play{
  display: none;
}


/* ---------------------------------------------------------
RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 640px){

  .presentation-play{
    width: 72px;
    height: 72px;
  }

  .presentation-play svg{
    width:  28px;
    height: 28px;
  }

}
/* ---------------------------------------------------------
   FULLSCREEN — show video in full (no crop)
   Inline rimane object-fit:cover (riempie il container 16:9).
   In fullscreen passa a contain così il frame è intero,
   con bande nere ai lati su schermi con aspect ratio diverso
   (tipicamente i mobile moderni ~19.5:9).
   --------------------------------------------------------- */
.presentation-video video:fullscreen,
.presentation-video video:-webkit-full-screen,
.presentation-video:fullscreen video,
.presentation-video:-webkit-full-screen video{
  object-fit: contain;
  background: #000;
}
