
/* ============================================================
   BODY
============================================================ */
body {
  padding-top: 10rem; /* 160px → 10rem */
  background-color: var(--white);
  font-family: var(--font-family);
  min-height: 100vh;
  line-height: var(--line-height-default);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   WRAPPER PRINCIPALE — allineato all’header
============================================================ */

/* === IMMAGINE PRINCIPALE (HERO) === */ 
.hero { 
  display: block; /* rimuove spazi indesiderati */ 
  width: 100%; /* immagine sempre responsive */ 
  max-width: 1000px; /* limite estetico */ 
  margin: 1.5rem auto 1.5rem; /* centra + margine sopra e sotto */ 
  border-radius: var(--radius-m); /* angoli morbidi */ 
  object-fit: cover; 
}

.project {
  max-width: 68.75rem; /* 1100px → identico all’header */
  margin: 0 auto;
  /* stesso padding laterale dell’header */
  padding: 0; /* nessun bordo sul lato sinistro, ma coincidente con l'header */
  background: var(--white);
}

.title {
  font-size: var(--fs-lg);
  text-align: center;
  color: var(--darkslategray);
  margin-bottom: 1.5rem; /* spazio tra titolo e immagine */
}


/* ============================================================
   NUMERI SEPARATORI
============================================================ */
.number-01,
.number-02,
.number-03,
.number-04 {
  width: 3.125rem;   /* 50px */
  height: 3.125rem;
  border-radius: 50%;
  color: var(--grey-300);
  border: 0.125rem solid var(--grey-300);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-regular);
  position: relative;
  margin: 5rem auto 3.5rem;
}

.number-01::before,
.number-02::before,
.number-03::before,
.number-04::before {
  content: "";
  width: 0.125rem; /* 2px */
  height: 3.75rem; /* 60px */
  background: var(--grey-300);
  position: absolute;
  top: -3.75rem;
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================================
  RIGA 02 CONCEPT DIAGRAM — IMAGE + CAPTION
   ============================================================ */

.concept-diagram {
  max-width: 900px; /* limite estetico coerente con il layout */ 
  margin: var(--space-lg) auto; /* centra il blocco e aggiunge respiro */ 
  padding: 0; /* nessun padding interno */
}

.concept-diagram img {
  display: block; /* elimina spazi indesiderati */ 
  width: 100%; /* immagine responsive */ 
  border-radius: var(--radius-m); /* angoli morbidi */ 
  object-fit: cover; /* mantiene proporzioni corrette */
}

.concept-diagram p {
  margin-top: var(--space-xxs); 
  font-size: var(--fs-sm); 
  font-weight: var(--font-weight-light); 
  color: var(--darkslategray); 
  text-align: center; 
  letter-spacing: var(--letter-tight);
}

/* ============================================================
   GRIGLIA PRINCIPALE (DESKTOP)
   85% gallery — 15% legenda
============================================================ */
.project-layout--prospects {
  display: grid;
  grid-template-columns: 2fr 0.8fr;
  gap: clamp(0.5rem, 1vw, 1rem);

  width: 80%;
  max-width: 55rem;
  margin: 0 auto;
  padding: 0;
  justify-items: stretch;
}

/* ============================================================
   RIGA 03 UNA PIANTA IN SKETCHUP + PHOTOSHOP (masonry 1 colonna)
============================================================ */
.project-gallery {
  grid-column: 1 / 2;
  width: 100%;
  column-count: 1;
  column-gap: var(--space-sm);
  margin: 0;
  padding-left: 0;
  
}

.project-gallery figure {
  break-inside: avoid;
  margin: 0 0 var(--space-lg) 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

.project-gallery img {
  width: 100%;
  border-radius: var(--radius-m);
  display: block;
  object-fit: cover;
  box-shadow: none;
  
}

.project-gallery figcaption {
  margin-top: var(--space-xxs);
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-light);
  color: var(--darkslategray);
  text-align: right;
  margin-bottom: var(--space-lg); /* spazio tra le immagini in colonna */
}

.facade {
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.08);
}

/* ============================================================
   LEGENDA — CARD STYLE (15%)
============================================================ */
.project-legend {
  grid-column: 2 / 3;
  align-self: start;

  background: var(--white);
  border-radius: var(--radius-m);
  padding: clamp(1rem, 2vw, 1.5rem);

  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vw, 1rem);

  max-width: 18rem; /* ≈ 149.6px → elegante, non si allarga mai troppo */ 
  width: 100%; /* si adatta ma non supera max-width */
}

.project-legend h3 {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-medium);
  color: var(--darkslategray);
}

.project-legend ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-light);
  color: var(--darkslategray);
  line-height: var(--line-height-default);
}

.project-legend li {
  font-size: var(--fs-xs);
  margin-bottom: clamp(0.25rem, 0.5vw, 0.5rem);
}

.project-legend p {
  font-size: var(--fs-xs);
  font-weight: var(--font-weight-light);
  margin-bottom: clamp(0.25rem, 0.5vw, 0.5rem);
  color: var(--darkslategray);
  line-height: var(--line-height-default);
  text-align: justify;
}

/* Testo italiano in corsivo,
   per distinguere la voce bilingue. */
.italian_text {
  font-style: italic;
  /* font-weight: var(--font-weight-extralight); */
}

@media (max-width: 43.75rem) {

  .project-layout--prospects {
    grid-template-columns: 1fr; /* una colonna */
    width: 100%;
    max-width: none;
  }

  .project-gallery {
    grid-column: 1 / -1; /* prima */
  }

  .project-legend {
    grid-column: 1 / -1; /* ultima */
    max-width: 100%;
  }
}

/* ============================================================
   BLOCCO 02 — SECTION + DETAIL + STORYTELLING
============================================================ */

.project-layout--story {
  display: grid;
  grid-template-columns: 2fr 1fr; 
  /* sinistra: immagini section & details, destra: card storytelling
  questa riga mi permette di proporzionare i tre elementi a mio piacimento */
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  align-items: start;
}

/* ============================================================
   SECTION + STORYTELLING — DESKTOP & TABLET
============================================================ */

.project-storytelling {
  display: grid;
  grid-template-columns: 3fr; 
  /* sez grande + dettaglio piccolo, questa riga mi permette di modificare
  la grandezza e proporzione delle due immagini */
  gap: var(--space-lg);
  max-width: 900px; /* come richiesto */
  margin: 0 auto;
  /* padding: var(--space-lg); */
  padding: 0;
  align-items: start;
}

.project-storytelling figure {
  margin: 0;
}

/* Immagine sezione cliccabile*/
.project-storytelling img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.project-storytelling figcaption {
  margin-top: var(--space-xxs);
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-light);
  color: var(--darkslategray);
  text-align: right;
}

/* ============================================================
   STORYTELLING 
============================================================ */
.storytelling {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: clamp(1rem, 2vw, 1.5rem);
  margin: 0;

  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vw, 1rem);

  max-width: 100%;
  /* max-width: 15rem; /* ≈ 240px → elegante, non si allarga mai troppo */ 
  width: 100%; /* si adatta ma non supera max-width */
}

.storytelling h3 {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-medium);
  color: var(--darkslategray);
}

.storytelling p {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: var(--font-weight-light);
  color: var(--darkslategray);
  text-align: justify;
}

.section:hover {
  cursor: crosshair; /* il cursore cambia con una croce sulle immagini, quest'ultime
  si ingrandiscono su una nuova pagina web, cliccandoci su */
}

.inspirationHub4 {
  font-weight: var(--font-weight-medium);
}

/* ============================================================
   TABLET (max 1100px)
============================================================ */

@media (max-width: 68.75rem) { /* 1100px */

  .project-section {
    grid-column: 2 / 3;
    column-count: 2;
    width: 100%;
  }

}

/* ============================================================
   MOBILE (max 700px)
============================================================ */

@media (max-width: 43.75rem) { /* 700px */

  .project-layout--story {
    grid-template-columns: 1fr; /* immagini + card impilate */
    max-width: 100%;
    padding: var(--space-md);
  }

  .project-storytelling {
    grid-template-columns: 1fr; /* sezione e dettaglio impilati */
  }
  
  .storytelling {
    max-width: 100%; 
  }

}

/* ============================================================
   RENDERING (masonry 2 colonne)
============================================================ */
.renderings { 
  display: grid; 
  grid-template-columns: 1fr 1fr; /* due colonne uguali */ 
  gap: var(--space-xs); 
  width: 100%; 
  margin-bottom: var(--space-xxl); /* spazio tra le immagini ed il copyright di 3rem */
}

.renderings figure {
  margin: 0;
  padding: 0;
}

.renderings img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--color-aragosta);
}

.renderings figcaption {
  margin-top: var(--space-xxs);
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-light);
  color: var(--darkslategray);
  text-align: right;
}


/* ============================================================
   TABLET (max 1100px)
============================================================ */
@media (max-width: 68.75rem) { /* 1100px */

  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    grid-column: 1 / 2;
    column-count: 1 / 2; /* vedrai le tre piante su un unica riga su tablet & desktop */
    width: 100%;
  }

  .project-legend {
    grid-column: 1 / 2;
    width: auto; /* non occupa il 100% */ 
    max-width: 18rem; /* ≈ 288px → più comoda su tablet */ 
    margin: 0 auto; /* centrata */
  }

  .renderings { 
    grid-template-columns: 1fr; /* impilate */ 
  }
}

/* ============================================================
   MOBILE (max 700px)
============================================================ */
@media (max-width: 43.75rem) { /* 700px */

  .project-layout--story {
    grid-template-columns: 1fr; /* immagini + card impilate */
    max-width: 100%;
    padding: var(--space-md);
  }

  .project-storytelling {
    grid-template-columns: 1fr; /* sezione e dettaglio impilati */
  }
  
  .storytelling {
    max-width: 100%; 
  }

  .project-layout--renderings { 
    padding: var(--space-md) 10px;
  }
}


@media (max-width: 62.5rem) { /* 1000px */
  .description-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 37.5rem) { /* 600px */
  .description-grid {
    grid-template-columns: 1fr;
  }
}





