/* ==========================================================================
   pages/video.css
   Eccezioni della pagina video.
   Caricato da 1 pagina.
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-corpo,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif);
  line-height: 1.6;
}

.hero-inner-page .hero-sub {
  opacity: .9;
}

.video-intro {
  margin-bottom: 12px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

.grid {
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
}

.yt-bg-25 {
  background-image: url("/images/video-poster-nicola-bellisario-micarelli-2012.webp");
}

.card .wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.yt-facade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-play {
  width: 68px;
  height: 48px;
  background: rgba(212,0,0,.92);
  border: none;
  border-radius: var(--r);
  color: #fff;
  font-size: 1.4rem;
  line-height: 48px;
  text-align: center;
  transition: background .15s,transform .15s;
  pointer-events: none;
}

.yt-play::before {
  content: "▶";
  display: block;
  line-height: 48px;
  text-indent: 4px;
}

.yt-facade:hover .yt-play,
.yt-facade:focus .yt-play {
  background: #c00;
  transform: scale(1.08);
}

.yt-facade:focus {
  outline: 3px solid var(--acc);
  outline-offset: -3px;
}

.info {
  padding: 14px;
}

.info h3 {
  margin-bottom: 6px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: .6rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom-right-radius: 4px;
  transition: top .15s ease;
}

.skip-link:focus {
  top: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.sec-galleria {
  border-top: 2px solid #e8ecf2;
  margin-top: 72px;
  margin-bottom: 16px;
}

.sec-galleria .galleria-header {
  margin-bottom: 2rem;
}

.sec-galleria .galleria-header h2 {
  color: var(--blu,var(--blu-notte));
  letter-spacing: -.01em;
}

.sec-galleria .galleria-header p {
  color: #4a5568;
}

.ph-foto {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f4f6fa;
}

.ph-foto img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.ph-foto:hover img {
  transform: scale(1.03);
}

.ph-foto figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-weight: 500;
  letter-spacing: .01em;
}

.video-detail-link {
  color: var(--blu-accent);
  font-weight: 600;
}

.video-section-title {
  padding-bottom: 6px;
}

.video-relatori {
  margin-top: 32px;
}

.gallery-inner--flush {
  padding-bottom: 0;
}

.gallery-cta-wrap {
  text-align: center;
}

.video-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.video-approfondimenti {
  margin-top: 56px;
}

.video-approfondimenti .grid {
  margin-top: 18px;
}

.video-approfondimenti .info p {
  margin-top: 6px;
}

.video-approfondimenti .card a {
  color: var(--blu-accent);
  font-weight: 600;
  text-decoration: none;
}

.video-approfondimenti .card a:hover {
  text-decoration: underline;
}

.yt-bg-senato {
  background-image: url("/images/audizione-senato-ddl-1712.jpg");
}

.yt-ext {
  text-decoration: none;
  color: inherit;
}

body.page-video .hero .glb-hero-button-grid--actions {
  grid-template-columns: repeat(3,minmax(0,1fr));
  width: min(100%,840px);
}

.gallery-link-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  min-height: 52px;
  padding: .8rem 1.5rem;
  border: 2px solid var(--blu,var(--blu-accent));
  border-radius: var(--r-pill);
  color: var(--blu,var(--blu-accent));
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s,color .2s,transform .15s;
}

.gallery-link-cta:hover,
.gallery-link-cta:focus-visible {
  background: var(--blu,var(--blu-accent));
  color: #fff;
  transform: translateY(-1px);
}

.video-contact-actions .btn-w,
.video-contact-actions .btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 52px;
}

.yt-bg-2303 {
  background-image: url("/images/audizione-camera-pdl2303.jpg");
}

.lazy-video-posters .yt-facade {
  background-image: none;
}

body.page-video .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

body.page-video .grid>* {
  flex: 0 1 calc((100% - 44px)/3);
  max-width: calc((100% - 44px)/3);
}

body.page-video .glb-axis-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
}

body.page-video .glb-axis-grid>* {
  flex: 0 1 220px;
}

body.page-video .video-section-title {
  display: block;
  width: max-content;
  text-wrap: balance;
}

@media (max-width: 900px) {
  body.page-video .hero .glb-hero-button-grid--actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.page-video .grid>* {
    flex-basis: calc((100% - 22px)/2);
    max-width: calc((100% - 22px)/2);
  }
}

@media (max-width: 480px) {
  body.page-video .grid>* {
    flex-basis: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  body.page-video .glb-axis-grid {
    gap: .85rem;
  }
  body.page-video .glb-axis-grid>* {
    flex-basis: 100%;
    max-width: 100%;
  }
}

@media (max-width: 340px) {
  body.page-video .video-section-title {
    width: fit-content;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 769px) {
  body.page-video .glb-axis-grid>* {
    flex: 0 1 350px;
    max-width: 350px;
  }
}
