/*
  File utilizzato per la sola sezione hero della home.
*/

/* ======================================== */
/* ======================================== */
/* ========== Stagione teatrale. ========== */
/* ======================================== */
/* ======================================== */

*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body{
  background-color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main{
  margin-bottom: 80px;
}

#hero{
  position: relative;
  padding-top: 9.5em;
  padding-left: 5em;
  padding-right: 5em;
  padding-bottom: 5em;
  width: 100%;
  background-image: url("../../Immagini/Home/Malmanew.avif"), url("../../Immagini/Home/Malmanew.webp"), url("../../Immagini/Home/Malmanew.jpg"), url("../../Immagini/Home/Malmanew.png");
  background-size: cover;
  background-color: #111;
}

.container{
  /* font-size: 1rem; */
  margin: auto;
}

/* ======================================= */

.containerTeatro{
  position: relative;
  row-gap: 50px;
  color: #fff;
}

/* ========== Titoli. ========== */

.titoli{
  /* grid-area: Titoli; */
  position: relative;
  margin-bottom: 4em;
}

.titoli h1{
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: .4em;
  animation-name: slideDownH1;
  animation-duration: 1.5s;
  animation-direction: normal;
  animation-timing-function: cubic-bezier(.21,.51,.41,1.02);
  animation-fill-mode: forwards;
}

.titoli h1 > span{
  font-size: .8em;
}

.titoli h1 > span > b{
  color: #39f;
}

.titoli .titoloStagione{
  height: auto;
  font-size: 4.5em;
  font-weight: bold;
  line-height: 1.1;
  /* line-height: normal; */
  filter: drop-shadow(1px 1px 1px #ccc);
}

.titoli .titoloStagione > div:first-child{
  /* animation: slideLeft 1s ease-out forwards; */
  animation-name: slideLeft;
  animation-duration: 1.5s;
  /* animation-delay: .2s; */
  /* animation-iteration-count: number; */
  animation-direction: normal;
  animation-timing-function: cubic-bezier(.21,.51,.41,1.02);
  animation-fill-mode: forwards;
}

.titoli .titoloStagione > div:last-child{
  animation-name: slideRight;
  animation-duration: 1.5s;
  /* animation-delay: .2s; */
  /* animation-iteration-count: number; */
  animation-direction: normal;
  animation-timing-function: cubic-bezier(.21,.51,.41,1.02);
  animation-fill-mode: forwards;
}

/* ======================================= */

.concorso{
  position: absolute;
  top: -3em;
  right: -3em;
  font-size: .8em;
  /* transform: translate(3em, -3em); */
}

.concorso a{
	/* grid-area: Concorso; */
	display: block;
	padding: 2.5em;
	text-decoration: none;
	color: #fff;
	text-align: center;
	border-radius: 20px;
	background-color: rgba(153, 9, 9, 1);
	box-shadow: inset 1px 0px 27px 5px rgba(0,0,0,0.85);
}

.concorso .d0{
	font-size: 1.3em;
	margin-bottom: .25em;
}

.concorso h2{
	font-size: 2em;
	margin-bottom: .25em;
}

.concorso .d1{
	font-size: 1.2em;
	margin-bottom: .5em;
}

.concorso .d2{
	margin-bottom: 1.5em;
}

.concorso .d3{
	position: relative;
	margin-bottom: 1em;
	padding: 0.5em 1em;
	border-radius: .5em;
	width: fit-content;
	left: 50%;
	transform: translateX(-50%);
	background-color: #f40;
}

/* ======================================= */

.appuntamentiTeatro{
  /* grid-area: AppuntamentiTeatro; */
  width: fit-content;
  font-size: 1em;
  margin-bottom: 8em;
}

.appuntamentiTeatro .logoTeatro{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.5em;
  margin-bottom: 20px;
}

.appuntamentiTeatro .logoTeatro > img{
  height: 2.5em;
}

.appuntamentiTeatro .logoTeatro > div{
  /* width: fit-content; */
  font-size: 3.4em;
}

.appuntamentiTeatro .collaborazioni{
  max-width: 400px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 5px;
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
  background-color: rgba(120, 120, 120, .2);
  margin-bottom: 30px;
}

.appuntamentiTeatro .collaborazioni > a > img{
  transition-duration: .5s;
  transition-property: transform;
  transition-timing-function: ease;
}

.appuntamentiTeatro .collaborazioni > a > img:hover{
  transform: scale(1.05);
}

/* ======================================= */

.linkSocialHero{
  display: flex;
  /* align-items: center; */
  justify-content: space-between;
  max-width: 400px;
}

.linkSocialHero > a{
  height: 50px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.linkSocialHero > a > div{
  padding: 10px 20px;
  background-color: #0ef;
  border-radius: 20px;
  box-shadow: none;
  font-size: 14px;
  color: #000;
  font-weight: bold;
  transition-duration: .8s;
  transition-property: box-shadow, color;
  transition-timing-function: ease;
}

.linkSocialHero > a:hover > div{
  color: #fff;
  box-shadow: 0 0 20px #0ef;
}

.socialHeroStagione{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.socialHeroStagione > a{
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.socialHeroStagione > a > div{
  height: 40px;
  width: 40px;
  background-color: #0877f0;
  border-radius: 5px;
  box-shadow: none;
  transition-duration: .5s;
  transition-property: box-shadow, background-color;
  transition-timing-function: ease;
}

.socialHeroStagione > a:hover > div{
  background-color: #0ef;
  box-shadow: 0 0 20px #0ef;
}

.socialHeroStagione > a:first-child{
  margin-right: 20px;
}

.socialHeroStagione > a > div > img{
  height: 100%;
}

/* Media queries collaborazioni e link social. */

@media screen and (max-width: 420px){
  .collaborazioni{
    display: inline-flex;
    padding: 5px 0;
    column-gap: 0;
    row-gap: 20px;
    justify-content: left;
    margin-bottom: 30px;
  }

  .collaborazioni > div, .collaborazioni > a{
    width: 50%;
    display: flex;
    justify-content: center;
  }

  .linkSocialHero{
    display: block;
  }

  .linkSocialHero > a{
    margin-bottom: 20px;
  }
}


@media only screen and (max-width: 1000px){
	.container{
		font-size: 0.8em;
	}
}

@media only screen and (max-width: 850px){
  .containerTeatro{
    display: block;
    position: relative;
  }

  /* .titoli{
    margin-bottom: 4em;
  } */

  .concorso{
    /* position: absolute; */
    /* display: block; */
    top: -8em;
    right: -5em;
    width: 25em;
    font-size: 0.6em;
  }

  /* .appuntamentiTeatro{
    margin-bottom: 6em;
  } */
}

@media only screen and (max-width: 750px){
  #hero{
    padding-top: 13.5em;
    padding-left: 3em;
    padding-right: 3em;
  }

  .concorso{
    /* transform: translate(0, 0); */
    top: -15em;
    right: -3em;
  }
}

@media only screen and (max-width: 700px){
  /* .concorso{
    width: 20em;
  } */

  .concorso .d1, .concorso .d2{
    display: none;
  }
}

@media only screen and (max-width: 650px){
  .appuntamentiTeatro .logoTeatro > div{
    font-size: 2.5em;
  }
}

@media only screen and (max-width: 600px){
  #hero{
    padding-top: 16em;
  }

  .concorso{
    top: -17.5em;
  }
}

@media only screen and (max-width: 500px){
  .titoli, .appuntamentiTeatro{
    font-size: 0.8em;
  }
}

@media only screen and (max-width: 450px){
  .titoli, .appuntamentiTeatro{
    font-size: 0.6em;
  }
}


/* ========================================= */
/* ========================================= */
/* ========== Stagione didattica. ========== */
/* ========================================= */
/* ========================================= */

.containerScuola{
  max-width: 600px;
  margin: auto;
  color: #0ef;
}

/* =================================== */
.containerScuola > .didatticaTitle{
  height: 150px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
}

.containerScuola > .didatticaTitle > img{
  height: 100%;
}

@media screen and (max-width: 400px){
  .containerScuola > .didatticaTitle{
    height: 100px;
  }
}

/* =================================== */

.didatticaTxt{
  /* color: #0ef; */
  margin-bottom: 50px;
}

.didatticaTxt > h2{
  font-size: 36px;
  margin-bottom: 20px;
}

.didatticaTxt > div{
  margin-bottom: 20px;
}

/* =================================== */

.offerteCorsi{
  display: flex;
  flex-wrap: wrap;
  /* color: #0ef; */
  /* justify-content: space-around; */
  justify-content: space-between;
  row-gap: 20px;
  margin-bottom: 40px;
}

@media screen and (max-width: 700px){
  .offerteCorsi{
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 370px){
  .offerteCorsi{
    max-width: 150px;
    /* margin-left: auto; */
    /* margin-right: auto; */
    justify-content: center;
  }
}

.corso{
  display: flex;
  flex-wrap: wrap;
  width: 110px;
  flex-direction: column;
  align-items: center;
  row-gap: 20px;
  column-gap: 20px;
}

.corso > a{
  position: relative;
  display: block;
  height: 100px;
  width: 100px;
  border: 2px solid #0ef;
  border-radius: 50%;
  overflow: hidden;
  /* transition: .5s box-shadow ease; */
  transition-duration: .5s;
  transition-property: box-shadow;
  transition-timing-function: ease;
}

.corso > a:hover{
  box-shadow: 0 0 20px #0ef;
}

.corso > a > img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.corso > div{
  text-align: center;
}

@media screen and (max-width: 400px){
  .corso{
    row-gap: 10px;
  }
}

/* =================================== */

.socialHeroDidattica{
  /* height: 50px; */
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.socialHeroDidattica > a{
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.socialHeroDidattica > a > div{
  width: 40px;
  height: 40px;
  background-color: #0877f0;
  border-radius: 5px;
  box-shadow: none;
  transition-duration: .5s;
  transition-property: box-shadow, background-color;
  transition-timing-function: ease;
}

.socialHeroDidattica > a:hover > div{
  background-color: #0ef;
  box-shadow: 0 0 20px #0ef;
}

.socialHeroDidattica > a > div > img{
  height: 100%;
}

/* ================================= */
/* ========== Animazioni. ========== */
/* ================================= */

@keyframes slideDownH1{
  from{
    transform: translateY(-80px);
    opacity: 0;
  }

  to{
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideLeft{
  from{
    transform: translateX(-50px);
    opacity: 0;
  }

  to{
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideRight{
  from{
    transform: translateX(50px);
    opacity: 0;
  }

  to{
    transform: translateX(0);
    opacity: 1;
  }
}
