@font-face {
  font-family: 'DharmaGothicWeb';
  src: url('../fonts/DharmaGothic.woff2') format('woff2'),
       url('../fonts/DharmaGothic.woff') format('woff'),
       url('../fonts/DharmaGothic.ttf') format('truetype'),
       url('../fonts/DharmaGothic.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: "Saira Extra Condensed", sans-serif;
}

footer {
  background-color: #111;
}

#home{
  background: #1d232e;
  background-position: bottom;
  background-size: cover;
  background-repeat: no-repeat;
  justify-content: flex-end;
}

#trailer{
  background-color: #1d232e;
}

#trailer h1{
  color: #fff;
}

#credits{
  background-color: #1d232e;
}

.ed-logotitolo{
  display: flex !important;
  z-index: 2;
}

.ed-copyright {
  color: #444;
}

.ed-copyright a {
  color: #444;
}

.ed-copyright a:hover {
  color: #666;
}

.ed-social {
  background-color: #111;
  width: 40px;
  height: 40px;
  color: #fff;
  text-decoration: none;
}
.ed-social:hover {
  background-color: #000;
}

.ed-sinossi{
  color: #ce5e9f;
  font-size: 3.5rem;
  font-weight: 400;
  font-family: "DharmaGothicWeb", sans-serif;
}

.container h1 {
  font-size: 3.5rem;
  font-weight: 400;
  padding-bottom: 50px;
  font-family: "DharmaGothicWeb", sans-serif;
}

.container h1:after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #ce5e9f;
  margin-top: 10px;
}

.background-section {
  background-color: #414e66;
  color: #fff;
  font-size: 1.2rem;
}

#trailer,
#film,
#cinema {
  padding: 60px 0;
}

.ed-poster {
  box-shadow: #000 0px 5px 20px;
}

.ed-sidebar {
  width: 300px !important;
  background-color: #222;
  z-index: 9999;
}

.ed-menu-link {
  font-family: "Saira Extra Condensed", sans-serif;
  font-weight: 400;
  font-size:1.3rem;
}

.ed-menu-link:hover {
  background-color: #111;
}

.ed-offcanvas {
  z-index: 999999;
  box-shadow: 0px 0px 10px #000;
}

.ed-credits h3{
  font-weight:600;
  color: #444;
  font-family: "Saira Extra Condensed", sans-serif;
  font-size: 1.2rem;
}

.ed-spacer{
  min-height: 80px;
  content: "";
}

/* Stile personalizzato per il video di sfondo */
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  box-shadow: 0px 0px 15px #111;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ed-arrow{
  color: #ce5e9f;
}

.ed-findticket {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 25px;
  border: 3px solid #ce5e9f;
  display: inline-block;
  font-weight: 500;
  cursor: pointer;
  color: #ffffff;
  font-family: "Saira Extra Condensed", sans-serif;
  font-size: 20px;
  padding: 15px 25px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.ed-findticket:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Stile per l'overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.8);
  /* Sfondo semi-trasparente */
  display: none;
  /* Nascosto di default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: all 0.5s ease-in-out;
}

/* Contenitore dell'iframe */
#overlay iframe {
  width: 80%;
  height: 80%;
  border: none;
}

/* Pulsante di chiusura */
#close-overlay {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

.head-buttons{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap: 20px;
  z-index: 2;
}

@media screen and (max-width: 867px) {
  #home{
    background-size: 130%;
    justify-content: center !important;
  }
  #credits{
    display: none;
  }
  .ed-spacer{
    min-height: 40px;
  }
  .head-buttons{
    flex-direction:column;
    gap: 0px;
  }
  .ed-findticket {
    font-size: 1.1rem;
  }
  .container h1 {
    font-weight: 600;
    font-size: 2.5rem !important;
  }
  .ed-sinossi{
    font-weight: 600;
    font-size: 2.5rem !important;
  }
}