
/*==================================================text with parallax=====================================================*/

.image-container {
    position: relative;
    width: 100%;
    height: 100vh; 
    overflow: hidden;
    background-color: var(--black); 
}

.parallax {
  background-image: url("../content/commissione/sfondo-commissione.jpg");

  min-height: 100vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
  
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 50%;
    
}
 
.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: var(--white);
    text-shadow: 2px 2px 4px var(--black); 
    font-family: 'Viga';
}

/*=======================================================================================================*/


@media screen and (max-width: 340px) {
    .image-container {
      height: 50vh;
    }
    .image-container img {
      width: 50%; 
      margin: 0 auto; 
    }
    .text-overlay {
      font-size: 4vw;
    }

}
  

@media screen and (min-width: 1118px) {
    .image-container {
      height: 100vh;
    }
    .text-overlay {
      font-size: 4vw;
    }
}


h3{
  font-size: 2rem;
  font-family: var(--body-font);
  color: var(--blue);
}
.content1{
  margin: 3rem;
  text-align: left;
  font-size: 1.2rem;
}
.content2 img{
  width: 90%;
  height: 70%;
  position: relative;
}

.content2{
  margin: 1rem;
  display: flex;
  align-items: center;

}

/*=================================EVENTS=================================*/

.gallery{
  width: 100%;
}
.gallery-container{
  align-items: center;
  display: flex;
  height: 400px;
  margin: 0 auto;
  max-width: 1000px;
  position: relative;
}
.gallery-item{
  height: 200px;
  opacity: 0;
  position: absolute;
  transition: all 0.3s ease-in-out;
  width: 330px;
  z-index: 0;
  border-radius: 15px;
  background-size: contain;
}
.gallery-item-1{
  left: 15%;
  opacity: .4;
  transform: translateX(-50%);
}

.gallery-item-2, .gallery-item-4{
  height: 250px;
  opacity: 0.8;
  width: 380px;
  z-index: 1;
}

.gallery-item-2{
  left: 30%;
  transform: translate(-50%);
}

.gallery-item-3{
  box-shadow: -2px 5px 33px 6px rgba(0,0,0,0.35);
  height: 300px;
  opacity: 1;
  left: 50%;
  transform: translateX(-50%);
  width: 430px;
  z-index: 2;
}

.gallery-item-4{
  left: 70%;
  transform: translateX(-50%);
}

.gallery-item-5{
  left: 85%;
  opacity: .4;
  transform: translateX(-50%);
}

.gallery-controls{
  display: flex;
  justify-content: center;
  height: 100px;
}

.gallery-controls button{
  background-color: transparent;
  border: 0;
  cursor: pointer;
  font-size: 30px;
  margin: 0 50px;
  padding: 0 12px;
  text-transform: capitalize;
}

.gallery-controls-button:focus{
  outline: none;
}

.gallery-controls-previous{
  position: relative;
}

.gallery-controls-previous::before{
  border: solid #000;
  border-width: 0 5px 5px 0;
  content: '';
  display: inline-block;
  height: 5px;
  left: -30px;
  padding: 10px;
  position: absolute;
  top: 25%;
  transform: rotate(135deg) translateX(-50%);
  transition: left 0.15s ease-in-out;
  width: 5px;
}

.gallery-controls-previous:hover::before{
  left: -40px;
}

.gallery-controls-next{
  position: relative;
}

.gallery-controls-next::before{
  border: solid #000;
  border-width: 0 5px 5px 0;
  content: '';
  display: inline-block;
  height: 5px;
  padding: 10px;
  position: absolute;
  right: -30px;
  top: 45;
  transform: rotate(-45deg) translateX(-50%);
  transition: right 0.15s ease-in-out;
  width: 5px;
}

.gallery-controls-next:hover:before{
  right: -40px;
}

.gallery-nav{
  bottom: -15px;
  display: flex;
  justify-content: center;
  list-style: none;
  position: absolute;
  width: 100%;
}

.gallery-nav li{
  background: #ccc;
  border-radius: 50%;
  height: 10px;
  margin: 0 16px;
  width: 10px;
}
.gallery-nav li.gallery-item-selected{
  background: #555;
}
.gallery-title{
  padding: 1rem;
}

.titolo{
  text-align: center;
  font-family: Viga;
  color: var(--blue);
  font-size: 3rem;
}
.eventi-text{
  text-align: center;
}
                
.content1{
  text-align: justify;
}