/* ==================================================
   USSITA POST SISMA
   STILE UNIFORME AETOS
================================================== */

@import url("../style.css");


body.project-detail{
  padding-top:0;
}


/* ==================================================
   SLIDESHOW DELLA COPERTINA
================================================== */

.project-hero{
  position:relative;

  overflow:hidden;

  background:#061831;
}

.project-hero .hero-slide{
  position:absolute;
  inset:0;
  z-index:0;

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  opacity:0;

  transform:scale(1.07);

  transition:
    opacity 1.4s ease,
    transform 7s ease;
}

.project-hero .hero-slide.active{
  opacity:1;

  transform:scale(1);
}

.project-hero .hero-overlay{
  position:absolute;
  inset:0;
  z-index:1;

  background:linear-gradient(
    180deg,
    rgba(6,24,49,.14),
    rgba(6,24,49,.94)
  );
}

.project-hero-content{
  position:relative;
  z-index:2;

  max-width:1100px;
}

.hero-description{
  max-width:900px;

  color:#edf4f8;

  font-size:21px;
}


/* ==================================================
   PULSANTI DELLA COPERTINA
================================================== */

.project-hero-buttons{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;

  gap:18px;

  margin-top:35px;
}

.project-hero-buttons .btn{
  min-width:190px;

  text-align:center;
}


/* ==================================================
   DATI PRINCIPALI
================================================== */

.project-info{
  grid-template-columns:repeat(3,1fr);
}


/* ==================================================
   NUMERI
================================================== */

.numbers{
  display:grid;
  grid-template-columns:repeat(4,1fr);

  gap:20px;

  margin-top:42px;
  padding:0;

  background:transparent;
}

.numbers article{
  padding:28px;

  background:#f3f6f9;

  border-radius:14px;

  text-align:center;
}

.numbers strong{
  display:block;

  margin-bottom:8px;

  color:#075f8f;

  font-size:34px;
}

.numbers span{
  color:#657286;

  font-weight:700;
}


/* ==================================================
   COLONNE TECNICHE
================================================== */

.project-columns article{
  padding:30px;

  background:rgba(255,255,255,.07);

  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
}

.project-columns h3{
  margin-bottom:11px;

  color:#8fd3ff;

  font-size:23px;
}

.project-columns p{
  color:#d9e5ec;
}


/* ==================================================
   SCHEMI STRUTTURALI
================================================== */

.structure-diagram{
  display:grid;
  grid-template-columns:repeat(2,1fr);

  gap:24px;

  margin-top:38px;
}

.structure-diagram article{
  display:grid;
  grid-template-columns:58px 1fr;

  gap:16px;

  padding:27px;

  background:#f3f6f9;

  border-left:5px solid #075f8f;
  border-radius:14px;
}

.structure-diagram > article > span{
  color:#075f8f;

  font-size:29px;
  font-weight:900;
}

.structure-diagram h3{
  margin-bottom:7px;

  color:#061831;

  font-size:22px;
}

.structure-diagram p{
  color:#657286;
}


/* ==================================================
   ANALISI E ATTIVITÀ
================================================== */

.analysis,
.activities{
  display:grid;
  grid-template-columns:repeat(2,1fr);

  gap:24px;

  margin-top:38px;
}

.analysis article,
.activities article{
  display:grid;
  grid-template-columns:58px 1fr;

  gap:16px;

  padding:27px;

  background:#f3f6f9;

  border-radius:14px;
}

.analysis > article > span,
.activities > article > span{
  color:#075f8f;

  font-size:29px;
  font-weight:900;
}

.analysis h3,
.activities h3{
  margin-bottom:7px;

  color:#061831;

  font-size:22px;
}

.analysis p,
.activities p{
  color:#657286;
}


/* ==================================================
   GALLERIA
================================================== */

.gallery-section{
  background:#f3f6f9;
}

.gallery{
  grid-template-columns:repeat(2,1fr);
}

.gallery img{
  height:470px;

  object-fit:cover;
}

.gallery figure.large img{
  height:640px;
}

.gallery figure.technical-image img{
  height:auto;
  max-height:none;

  object-fit:contain;

  padding:22px;

  background:#ffffff;
}


/* ==================================================
   RISULTATO
================================================== */

.result{
  color:#ffffff;

  background:linear-gradient(
    135deg,
    #4f7d5b,
    #061831
  );
}

.result h2{
  color:#ffffff;
}

.result > p{
  color:#e2ebf0;
}


/* ==================================================
   ANIMAZIONI
================================================== */

.reveal{
  opacity:0;

  transform:translateY(35px);

  transition:
    opacity .8s ease,
    transform .8s ease;
}

.reveal.visible{
  opacity:1;

  transform:none;
}


/* ==================================================
   TABLET
================================================== */

@media(max-width:1000px){

  .project-info,
  .numbers{
    grid-template-columns:repeat(2,1fr);
  }

}


/* ==================================================
   SMARTPHONE
================================================== */

@media(max-width:600px){

  .project-info,
  .numbers,
  .structure-diagram,
  .analysis,
  .activities,
  .gallery{
    grid-template-columns:1fr;
  }

  .gallery figure.large{
    grid-column:auto;
  }

  .gallery img,
  .gallery figure.large img{
    height:auto;

    max-height:500px;
  }

  .gallery figure.technical-image img{
    max-height:none;
  }

  .project-hero-buttons{
    flex-direction:column;
    align-items:stretch;

    width:100%;
  }

  .project-hero-buttons .btn{
    width:100%;
    min-width:0;
  }

}
/* ==================================================
   CORREZIONE VISIBILITÀ GALLERIA USSITA
================================================== */

.gallery-section.reveal{
  opacity:1;
  transform:none;
}

.gallery-section .gallery{
  opacity:1;
  visibility:visible;
}

.gallery figure{
  min-height:100px;
}

.gallery img{
  display:block;
  opacity:1;
  visibility:visible;
}