
.bg-agenda{
  background-image: url('../../img/bg-agenda.jpg');
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  padding: 20px 0 70px 0;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  background-color: lightgray, linear-gradient(180deg, #00203B 14.42%, #443775 46.15%, #9FB0B8 86.06%);

}

.bg-agenda  p{
	text-shadow: 0px 3px 5px #000000;
}

.bg-luogo{
  position: relative;
  background-image: url('../../img/bg-luogo-evento.jpg');
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

.card-agenda-container{
  margin-top: -25px;
}

.card-agenda-container .badge.text-bg-info {
  color: #06c !important;
  background-color: #F2F7FC !important;
  font-weight: 400 !important;
  font-size: 16px !important;
}

.card-agenda-container h3.card-title{
  font-size: 1.5rem;
}

.card-agenda-container .card{

  border-radius: 16px;
}

.card-agenda-container .card .card-text{
	text-shadow: none;
}

.card-agenda-container .card i.bi.bi-geo-alt-fill {
    font-size: 1.2rem !important;
}

#hero video {
  height: 700px;
  width:100%;
  object-fit: none;
}

.hero-section #hero {
  max-height: 600px;
  position: relative;
}

.hero-section h1{
	text-shadow: 0px 3px 5px #000000;
	padding-bottom: 15px;
	border-bottom: 1px solid #fff;
	display: inline-block;
}

.hero-section .date {
  font-size: 1.1rem;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0%;
  text-align: center;
  text-shadow: 0px 3px 5px #000000;
}
.date{
  font-family: "Roboto", sans-serif;


}
.stats h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

.hero-intro{
  width: 80%;
  position: absolute !important;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 350px;
  background-color: rgba(255 255 255 / 0.10);
  padding:20px 40px;
  border-radius:32px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  /*effetto */
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%); /* Safari */


}

.hero-intro .lead{
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0%;
  text-align: center;
  line-height: 28px;
  text-shadow: 0px 3px 5px #000000;
}

/* Effetto fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.didascalia{
  font-size: 16px;
  font-weight: 600;
}
.intro .card-body{
  padding: 32px;
}


@media (min-width:992px){
  .hero-section #hero {
    max-height: 775px;
  }
  #hero video {
    height: 700px;
    object-fit: cover;
  }
  .hero-intro{
    top: 60%;
    width: 50%;
  }
  .didascalia{
    max-width: 250px;
  }
}

/*** card obiettivi**/
.card-animate {
  display: flex;
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  height: 400px; /* Altezza fissa */
}

.card-animate .card {
  flex: 1;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  min-width: 0;
  transition:
    flex 0.4s ease,
    background-size 0.6s ease;
}


.card-animate .card:focus, .card-animate .card:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

/* sfondi card */
.card-animate .card.obiettivo-1{
  background-image: url('../../img/persone2.jpg?v=2');
  border-bottom: 20px solid #472683;
}
.card-animate .card.obiettivo-2{
  background-image: url('../../img/luoghi2.jpg?v=2');
  border-bottom: 20px solid #D47EB2;
}
.card-animate .card.obiettivo-3{
  background-image: url('../../img/tecnologie2.jpg?v=2');
  border-bottom: 20px solid #DE4172;
}
.card-animate .card.obiettivo-4{
  background-image: url('../../img/metodologie2.jpg?v=2');
  border-bottom: 20px solid #14A4C9;
}


.card-animate .card.expanded {
  flex: 2.5;
}

.card-animate .card .card-body {
  background: linear-gradient(180deg, rgba(2, 27, 48, 0) 0%, #021b30d6 95.21%);
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 16px;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.card-animate .card.expanded .card-body{
 background: linear-gradient(180deg, rgba(2, 27, 48, 0) 0%, #021B30 50%);
}
/*
.card-animate .obiettivo-1 .card-body {
  background: linear-gradient(180deg, rgba(0, 102, 22, 0) 40%, #437F04 100%);
}
.card-animate .obiettivo-2 .card-body {
  background: linear-gradient(180deg, rgba(18, 163, 200, 0) 40%, #12A3C8 100%);
}
.card-animate .obiettivo-3 .card-body {
  background: linear-gradient(180deg, rgba(51, 0, 102, 0) 40%, #330066 100%);

}
.card-animate .obiettivo-4 .card-body {
  background: linear-gradient(180deg, rgba(170, 145, 36, 0) 40%, #AA9124 100%);

}
.card-animate .obiettivo-5 .card-body {
  background: linear-gradient(180deg, rgba(202, 106, 54, 0) 40%, #CA6A36 100%);

}
.card-animate .obiettivo-6 .card-body {
  background: linear-gradient(180deg, rgba(163, 67, 160, 0) 40%, #A343A0 100%);

}

*/
.card-animate .card .title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  position: relative;
  color: #fff;
  text-align: center;
}
.card-animate .card.expanded .title {
  text-align: left;
}

.card-animate .description {
  max-height: 0;
  min-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition:
    max-height 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.8s ease 0.4s,
    padding 1s ease,
    transform 0.8s ease 0.4s;
  font-size: 14px;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(20px);
  color: #fff;
}

.card-animate .card.expanded .description {
  max-height: 300px;
  min-height: 200px;
  opacity: 1;
  padding-top: 10px;
  padding-bottom: 10px;
  pointer-events: auto;
  transform: translateY(0);
  font-size: 1rem;
}

/* Responsive layout */
@media (max-width: 992px) {
  .card-animate {
    flex-wrap: wrap;
    height: auto;
  }

  .card-animate .card {
    flex: 1 1 calc(100% - 10px);
    height: 95px;
    border-radius: 40px;
  }

  .card-animate .card.expanded {
    flex: 1 1 100%;
  }
  .card-animate .title {
    text-align: center;
  }
  .card-animate .card.expanded .description {
    max-height: initial;
    min-height: 30px;
    opacity: 1;
    padding-top: 10px;
    padding-bottom: 10px;
    pointer-events: auto;
    transform: translateY(0);
  }
  .card-animate .card.expanded {
    height: 450px;
  }
}


/*************/

.delay-1{
	transition-delay: 0s;
}
.delay-2{
	transition-delay: 0.2s;
}
.delay-3{
	transition-delay: 0.4s;
}
.delay-4{
	transition-delay: 0.5s;
}
.delay-5{
	transition-delay: 0.6s;
}
.bg-lente{
    background-color: rgba(255 255 255 / 0.25) !important;
    border-color: #ffffff30;
}

