/*
 Theme Name:   Chaplin Child
 Template:     chaplin
 Version:      1.0
*/

@font-face {
  font-family: 'Museo';
  src: url('/wp-content/themes/chaplin-child/fonts/MuseoSans-300.otf') format('opentype');
  font-weight: 300; /* peso normale */
  font-style: normal; /* stile normale */
}

body, p, h1, h2, h3, h4, h5, h6, a, li, span, input, button {
  font-family: 'Museo', sans-serif !important;
  font-weight: 300;
  font-style: normal;
}

.footer-copyright{
  margin-left: auto !important;
  margin-right: auto !important;
  font-size:small;
}


/* ===============================
   RESET SCROLLBAR
================================= */

html::-webkit-scrollbar { display:none; }
html { scrollbar-width:none; -ms-overflow-style:none; }

/* ===============================
   HEADER
================================= */

h1.entry-title, p.theme-credits { display:none!important; }

#site-header {
  margin-top: 20px;
    padding:0!important;
    margin-bottom:0!important;
}

.header-titles {
  margin-right: auto !important;
  margin-left: auto !important;
}

/* #site-header .section-inner { margin-left:20px!important; } */

.header-navigation-wrapper { display:none!important; }
#post-inner { padding-top:0; }
.video-reel, .title-latest-films { padding-top:0!important; }

/* ===============================
   VIDEO GALLERY
================================= */

.video-wrapper { width:100%; }

@media (min-width:1024px){

  .video-wrapper{
      max-width:1800px;
      margin:0 auto;
      padding:0 50px;
      box-sizing:border-box;
  }

  .video-wrapper .swiper-wrapper{
      display:grid!important;
      grid-template-columns:repeat(3,1fr);
      gap:25px;
      width:100%;
  }

  .video-wrapper .swiper-slide{
      width:100%!important;
  }
}

.video-card{ cursor:pointer; }

.video-thumb{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  aspect-ratio:16/9;
}

.video-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .4s ease;
}

.video-card:hover img{ transform:scale(1.05); }

/* ===============================
   PLAY BUTTON
================================= */
/* .play-button{

  --size:40px;

  position:absolute;
  width:var(--size);
  height:var(--size);
  background:rgba(255,255,255,.9);
  border-radius:50%;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
}
/* TRIANGOLO
.play-button::after{ 
  content:'';
  position:absolute;
  left:calc(var(--size) * 0.40);
  top:calc(var(--size) * 0.30);
  border-left:calc(var(--size) * 0.25) solid #000;
  border-top:calc(var(--size) * 0.16) solid transparent;
  border-bottom:calc(var(--size) * 0.16) solid transparent;
} */

/*===============================
   Andare a capo nei titoli
================================= */
.video-title span{
  display:block !important;
}
/* ===============================
   LIGHTBOX
================================= */

.video-lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.95);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
  padding:20px;
  flex-direction: column; /* per allineare contenuto + footer- aggiunto per frecce*/
}

.video-lightbox.active{ display:flex; }

.video-lightbox-inner{
  display:flex;
  max-width:1200px;
  width:100%;
  gap:40px;
  color:#fff;
  margin-bottom: 20px; /* spazio per il footer con le frecce   aggiunto per frecce*/
}

.video-left{ flex:2; }
.video-left video{
  width:100%;
  max-height:80vh;
  border-radius:12px;
  background:#000;
}

.video-right{ flex:1; }
.video-right .video-title{
  font-size:1.8rem;
  margin-bottom:15px;
}
.video-right .video-desc{
  font-size:1rem;
  line-height:1.5;
}

.video-right{
  margin-top: auto;
  margin-bottom: auto;
}

.video-title {
  margin-top: auto;
  margin-bottom: auto;
  text-align: justify;
}

/* ===============================
   NAVIGAZIONE POPUP
================================= */

/* .lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:50px;
  color:white;
  cursor:pointer;
  padding:10px 20px;
  user-select:none;
  z-index:10001;
}

.lightbox-prev{ left:30px; }
.lightbox-next{ right:30px; }

.lightbox-nav:hover{ opacity:.7; } */
/**inizio nuovo*/
/* ==========================
   LIGHTBOX FOOTER (FRECCE)
=========================== */
.lightbox-footer {
  display: flex;
  justify-content: space-between; /* freccia sx e dx */
  width: 100%;
  margin-top: 20px;
}

/* FRECCE */
.lightbox-nav {
  font-size: 28px;
  color: white;
  cursor: pointer;
  user-select: none;
  opacity: 0.7;
  transition: all 0.25s ease;
}

.lightbox-nav:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* LIGHTBOX INNER - desktop */
@media(min-width:1024px){
  .video-lightbox-inner{
      display:flex;
      flex-direction:row;
      gap:40px;
      max-width:1200px;
      margin:0 auto;
      align-items:flex-start;
  }

  .video-left{
      flex:2;
  }
  .video-left video{
      width:100%;
      max-height:80vh;
      border-radius:12px;
      background:#000;
  }

  .video-right{
      flex:1;
  }
  .video-right .video-title{
      font-size:1.8rem;
      margin-bottom:15px;
  }
  .video-right .video-desc{
      font-size:1rem;
      line-height:1.5;
  }

  /* FRECCE desktop: sotto il contenitore */
  .lightbox-footer{
      display:flex;
      justify-content: space-between;
      max-width:1200px;
      margin:20px auto 0 auto; /* sotto video+testo, centrato */
      padding:0 10px;
  }

  .lightbox-nav{
      font-size:30px;
      cursor:pointer;
      user-select:none;
      color:#fff;
      transition:opacity .3s;
  }
  .lightbox-nav:hover{
      opacity:0.7;
  }
}

/* LIGHTBOX INNER - mobile */
@media(max-width:1023px){
  .video-lightbox-inner{
      display:flex;
      flex-direction:column;
      gap:10px;
      align-items:center;
  }

  .video-left { 
    width:100%;
    max-height:50vh;  /* Altezza uniforme */
    flex-shrink:0;
  }

  .video-left video{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:12px;
    background:#000;
  }
  .video-right { 
    width:100%; 
    text-align:center; 
  }

  .video-right .video-title{
    max-height:200px;      /* Altezza massima del titolo */
    overflow-y:auto;       /* Abilita scroll verticale */
    padding-right:5px;     /* Non tagliare scrollbar */
  }

  .video-right .video-title::-webkit-scrollbar-thumb {
    background:rgba(255,255,255,0.5);
    border-radius:2px;
  }

  /* FRECCE mobile: subito sotto il video, prima del titolo */
  .lightbox-footer{
      display:flex;
      justify-content:space-between;
      width:60%; /* più strette e centrali */
      margin:10px auto;
      padding:0;
  }

  .lightbox-nav{
      font-size:30px;
      cursor:pointer;
      user-select:none;
      color:#fff;
      transition:opacity .3s;
  }
  .lightbox-nav:hover{
      opacity:0.7;
  }
}
/*fine nuvoov*/

.close-lightbox{
  position:absolute;
  top:20px;
  right:30px;
  font-size:36px;
  color:white;
  cursor:pointer;
  z-index:10002;
}

@media(max-width:1024px){
  .video-lightbox-inner{
      flex-direction:column;
      align-items:center;
  }
}


  /* =========================================
     SBLOCCO LARGHEZZA BLOCCO GUTENBERG
  ========================================= */
  
  .wp-block-group {
    max-width: 100% !important;
  }
  
  .wp-block-group__inner-container {
    max-width: 100% !important;
  }
  
  .section-inner {
    max-width: 1800px !important;
    width: 95% !important;
  }
  
  .entry-content {
    max-width: 1800px !important;
  }

/*****footer*/
/* ---------- FOOTER ---------- */

.custom-footer{
  background:#000;
  color:#ddd;
  padding:80px 40px;
  font-family:Museo, Helvetica, Arial, sans-serif;
}

/* contenitore */

.footer-container{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:60px;
  align-items:flex-start;
}

/* blocchi */

.footer-block h4{
  font-size:13px;
  letter-spacing:3px;
  text-transform:uppercase;
  margin-bottom:18px;
  font-weight:600;
}

.footer-block p, .footer-block a{
  font-size:16px;
  margin:0;
  color:#ddd;
}

/* ---------- SOCIAL ---------- */

.social-icons{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:26px; /* più spazio tra i social */
  flex-wrap:nowrap;
  margin-top:2px;
}

/* rimuove qualsiasi margine dei paragrafi */

.social-icons p{
  margin:0;
  padding:0;
}

/* link social */

.social-icons a,
.footer-block a{
  display:inline-block !important;
  text-decoration:none !important;
  /* color:#fff; */
  font-size:14px;
  letter-spacing:1px;
  white-space:nowrap;
  transition:opacity 0.25s ease;
}

/* hover */

a:hover, .social-icons a:hover{
  text-decoration:none !important;
  transform: none !important;
  opacity:0.7; /* effetto hover leggero  */
}

/* rimuove eventuali icone del tema */

.social-icons i,
.social-icons svg,
.social-icons img{
  display:none !important;
}

.social-icons a::before,
.social-icons a::after{
  display:none !important;
  content:none !important;
}

/* ---------- TABLET ---------- */

@media (max-width:900px){

.footer-container{
  grid-template-columns:1fr 1fr;
  gap:40px;
}

.footer-block{
  text-align:center;
}

.social-icons{
  justify-content:center;
}

}

/* ---------- MOBILE ---------- */

@media (max-width:500px){

.custom-footer{
  padding:60px 20px;
}

.footer-container{
  grid-template-columns:1fr;
  gap:35px;
}

.footer-block{
  text-align:center;
}

.social-icons{
  justify-content:center;
}

}

/* WRAPPER LOGO CENTRATO E RIDOTTO */

.site-logo{
  margin: 0px !important;
}
#site-header .site-logo {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* RIDUZIONE LOGO E LINK CONTENITORE */
#site-header .site-logo .custom-logo-link {
  width: auto !important;        /* lascia adattare la larghezza all'immagine */
  display: inline-flex !important;
  justify-content: center !important;
}

#site-header .site-logo img {
  width: 70% !important;         /* Desktop -20% */
  max-width: 70% !important;
  height: auto !important;
}

/* MOBILE */
@media (max-width: 768px) {
  #site-header .site-logo img {
      width: 50% !important;     /* Mobile -50% */
      max-width: 50% !important;
  }
}