/* =============================== */
/*   STILE PAGINE PROGETTO        */
/* =============================== */

/* HERO */
.project-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 80px 0;
}

.project-hero-text .eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

.project-hero-text h1 {
  font-size: 3rem;
  margin: 10px 0 20px;
}

.project-hero-text .lead {
  font-size: 1.3rem;
  line-height: 1.5;
  opacity: 0.85;
}

.project-hero-image img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* DESCRIZIONE */
.project-description {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 0;
}

.project-description h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.project-description p {
  margin-bottom: 20px;
  line-height: 1.7;
  opacity: 0.9;
}

/* GALLERIE */
.project-gallery,
.project-section {
  padding: 60px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.project-image img {
  width: 100%;
  border-radius: 8px;
  display: block;
  cursor: zoom-in;
}

.project-image figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* SEZIONI TESTO + IMMAGINE */
.project-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.project-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.project-section p {
  line-height: 1.7;
  opacity: 0.9;
}

/* DATI DI PROGETTO */
.project-data {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 0;
}

.project-data h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.project-data ul {
  list-style: none;
  padding: 0;
}

.project-data li {
  margin-bottom: 10px;
  font-size: 1rem;
  opacity: 0.85;
}

/* LINK DI RITORNO */
.project-backlink {
  text-align: center;
  padding: 60px 0;
}

.button-link {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #000;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.2s ease;
}

.button-link:hover {
  background: #000;
  color: #fff;
}

/* =============================== */
/*   FULLSCREEN HERO (ZOOM IMG)   */
/* =============================== */

#fullscreen-hero {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

#fullscreen-hero.visible {
  opacity: 1;
  pointer-events: auto;
}

#fullscreen-hero img {
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 0.8rem;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
  cursor: zoom-out;
}

#fullscreen-hero img:hover {
  transform: scale(1.02);
}

/* =============================== */
/*   RESPONSIVE                   */
/* =============================== */

@media (max-width: 900px) {
  .project-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .project-section {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}
/* =============================== */
/* PAGINA: CASA A VOLUMI INTRECCIATI */
/* =============================== */

.page-project {
  background: #f5f5f5;
}

/* HERO PROGETTO */

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
  padding: 80px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-hero-text .eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.project-hero-text h1 {
  font-size: 2.8rem;
  margin: 10px 0 20px;
  letter-spacing: -0.03em;
}

.project-hero-text .lead {
  font-size: 1.15rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 10px;
}

.project-hero-image img {
  width: 100%;
  border-radius: 14px;
  display: block;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

/* INTRODUZIONE */

.project-description {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 50px;
}

.project-description h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.project-description p {
  margin-bottom: 16px;
  line-height: 1.7;
  opacity: 0.9;
}

/* GALLERIE E SEZIONI */

.project-gallery,
.project-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
}

.project-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.project-section:nth-of-type(even) {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
}

.project-section h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.project-section p {
  line-height: 1.7;
  opacity: 0.9;
}

/* IMMAGINI E DIDASCALIE */

.project-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 18px 45px rgba(0,0,0,0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-image img:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

.project-image figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* BACK LINK */

.project-backlink {
  text-align: center;
  padding: 50px 20px 70px;
}

.button-link {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 4px;
  border: 1px solid #000;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: 0.25s ease;
}

.button-link:hover {
  background: #000;
  color: #fff;
}

/* ANIMAZIONE LEGGERA */

.project-hero,
.project-description,
.project-gallery,
.project-section,
.project-backlink {
  opacity: 0;
  transform: translateY(18px);
  animation: projectFadeUp 0.7s ease forwards;
}

.project-description { animation-delay: 0.05s; }
.project-gallery:nth-of-type(1) { animation-delay: 0.1s; }
.project-section:nth-of-type(1) { animation-delay: 0.15s; }
.project-section:nth-of-type(2) { animation-delay: 0.2s; }
.project-gallery:nth-of-type(2) { animation-delay: 0.25s; }
.project-section:nth-of-type(3) { animation-delay: 0.3s; }
.project-section:nth-of-type(4) { animation-delay: 0.35s; }
.project-backlink { animation-delay: 0.4s; }

@keyframes projectFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .project-hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 60px;
  }

  .project-section {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .project-hero-text h1 {
    font-size: 2.2rem;
  }
}

