/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Jim+Nightshade&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* Imports */

@import "./styles/home.css";
@import "./styles/cast-team.css";
@import "./styles/media.css";
@import "./styles/footer.css";
@import "./styles/contatti.css";
@import "./styles/navbar.css";
@import "./styles/animations.css";

/* General CSS */

*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", Helvetica, sans-serif;
  overflow-x: hidden;
}

:root {
  --s-spacing: 1rem;
  --xs-spacing: 0.5rem;
  --m-spacing: 2rem;
  --xm-spacing: 1.5rem;
  --color-blood: #951c1c;
  --color-medioevo: rgba(82, 50, 33, 0.8);
}

.container {
  max-width: 100vw;
  height: 100vh;
}

h1 {
  text-align: center;
  letter-spacing: 3px;
  font-size: 3rem;
  margin-block: 3rem;
  font-weight: 500;
  text-transform: uppercase;
}

h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: var(--m-spacing);
  font-weight: 400;
  text-transform: uppercase;
}

a {
  text-decoration: none;
  color: #333333;
}

button {
  background-color: #1f2228;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5rem;
  padding: 0.75rem 1.2rem;
  text-align: center;
  text-decoration: none #6b7280 solid;
  text-decoration-thickness: auto;
  transition-duration: 0.2s;
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: auto;
}

button:hover {
  background-color: var(--color-blood);
}

button:focus {
  box-shadow: none;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--m-spacing);
  padding: var(--m-spacing) 3rem;
}

.flex-cl {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--m-spacing);
  padding: var(--m-spacing);
}

.color-r {
  color: var(--color-blood);
}

br {
  margin-bottom: 1px; /* Modifica questa proprietà per aggiungere spaziatura */
}

/* COMMON ELEMENTS */

.back-arrow,
.back-arrow img {
  width: 30px;
}

.back-arrow img:hover {
  opacity: 50%;
}

/* HEADER */

.hero {
  background-color: rgb(0, 0, 0);
  background-image: url("./src/foto/grafiche/logo_bg.webp");
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: 50% -20%;
  filter: saturate(110%);
}

.logo {
  flex: 1;
  order: 1;
}

.logo img {
  height: 80px;
}

header .logo img {
  translate: -25%;
}

.hero-titles {
  color: white;
  padding: 0.8em;

  position: absolute;
  bottom: 50px;
  right: 50%;
  translate: 50%;

  text-align: center;
}

.hero-titles h1 {
  display: none;
}
.hero-titles h2 {
  margin-bottom: var(--s-spacing);
}
.hero-titles h3 {
  font-weight: 300;
  font-size: 16px;
  margin-bottom: var(--m-spacing);
}

.img-title {
  width: 40vw;
  min-width: 400px;
  translate: 0 25%;
}

/* SIDENAV */

.sidenav {
  height: 100%;
  width: 0%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: black;
  overflow-x: hidden;
  transition: 0.8s;
  /* padding: 10px 0 0; */
  text-align: center;
}

.sidenav div {
  height: 80vh;
}

.sidenav a {
  display: block;
  width: 100vw;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 1rem;
  padding: 30px;
  color: azure;
  opacity: 0;
  transition: 1s;
}

.sidenav a:hover {
  text-shadow: 3px 2px 5px #13161a;
}

.closebtn img {
  width: 20px;
  position: absolute;
  top: 20px;
  right: 30px;
}

/* MEDIA QUERY */

/* Per piccoli telefoni in modalità ritratto */
@media (max-width: 320px) {
  /* Stili specifici per schermi fino a 320px di larghezza */
}

/* Per telefoni medi in modalità ritratto */
@media (max-width: 375px) {
  /* Stili specifici per schermi fino a 375px di larghezza */
}

/* Per grandi telefoni in modalità ritratto */
@media (max-width: 425px) {
  /* Stili specifici per schermi fino a 425px di larghezza */
  button {
    padding: 0.4rem 0.8rem;
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .menu-icon {
    display: none;
  }
}

@media (max-height: 740px) {
  .img-title {
    translate: 0 25%;
  }
}

/* Per tablet in modalità ritratto */
@media (max-width: 768px) {
  /* Stili specifici per schermi fino a 768px di larghezza */
  .img-title {
    width: 40vw;
    min-width: 300px;
  }

  .nav-bar .logo img {
    translate: -25%;
  }

  .hero {
    background-size: 80%;
    background-position: 50% 30%;
  }

  .hero-titles button {
    margin-bottom: 1rem;
  }

  .container {
    height: auto;
  }

  nav {
    display: none;
  }

  .menu-icon {
    display: block;
    text-align: right;
    flex: 1;
    order: 3;
  }

  .nav-btn {
    display: none;
    order: 2;
    flex: 1;
    text-align: center;
  }

  .hero {
    height: auto;
  }

  .hero-titles {
    display: flex;
    justify-content: center;
    align-items: end;
    position: static;
    translate: 0%;
    height: calc(100svh - 80px); /* dinamic viewport */
    padding-bottom: 3em;
  }

  .hero-titles h1 {
    font-size: 20px;
    margin-bottom: var(--xs-spacing);
  }
  .hero-titles h2 {
    font-size: 18px;

    margin-bottom: var(--xs-spacing);
  }
  .hero-titles h3 {
    font-size: 12px;
    margin-bottom: var(--xm-spacing);
  }


  .tickets p {
    font-size: 3vw;
  }
}

/* Per tablet in modalità paesaggio */
@media (max-width: 1024px) {
  /* Stili specifici per schermi fino a 1024px di larghezza */
  .flex-row {
    justify-content: center;
  }
}

/* Per schermi piccoli */
@media (min-width: 1280px) {
  /* Stili specifici per schermi fino a 1280px di larghezza */
}

/* Per schermi medi */
@media (max-width: 1440px) {
  /* Stili specifici per schermi fino a 1440px di larghezza */
  .hero {
    background-size: 80%;
    background-position: 50% 30%;
  }
}

/* Per schermi grandi */
@media (max-width: 1920px) {
  /* Stili specifici per schermi fino a 1920px di larghezza */
}

/* Stili per schermi ancora più grandi */
@media (min-width: 1921px) {
  /* Stili specifici per schermi più grandi di 1920px di larghezza */
}
