/* ============================================================
   BODY
   - centra il contenuto
   - imposta la larghezza massima
   - aggiunge padding superiore per l’header fisso
   ============================================================ */
body {
  padding-top: 9rem;
  background-color: var(--white);
  font-family: var(--font-family);
  min-height: 100vh;
  line-height: var(--line-height-default);
  -webkit-font-smoothing: antialiased;
}

/* === IMMAGINE PRINCIPALE (HERO) === */ 
.xue-kitchen {
  max-width: 800px; /* limite estetico */ 
  margin: 1.5rem auto 1.5rem;
  overflow: hidden;  
}

.xue-kitchen img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-m); /* angoli morbidi */ 
}

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

/* ============================================================
   WRAPPER PRINCIPALE — allineato all’header
============================================================ */
.project {
  max-width: 68.75rem; /* 1100px → identico all’header */
  margin: 0 auto;
  padding: 0; /* 10px → 1rem */
  background: var(--white);
}

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

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

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

/* ============================================================
   NUMERI SEPARATORI
============================================================ */
.number-01,
.number-02,
.number-03,
.number-04,
.number-05 {
  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,
.number-05::before  {
  content: "";
  width: 0.125rem; /* 2px */
  height: 3.75rem; /* 60px */
  background: var(--grey-300);
  position: absolute;
  top: -3.75rem;
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================================
   TRIANGOLAZIONE (masonry 2 colonne)
============================================================ */
.triangulation,
.island-columns { 
  display: grid; 
  grid-template-columns: 1fr 1fr; /* due colonne uguali */ 
  gap: var(--space-md); 
  width: 100%; 
}

.triangulation figure,
.island-columns figure {
  margin: 0;
  padding: 0;
}

.triangulation img,
.island-columns img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--byakuroku);
}

.triangulation figcaption,
.island-columns figcaption {
  margin-top: var(--space-xxs);
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-light);
  color: var(--wakatake-iro);
  text-align: right;
}

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

  .triangulation,
  .island-columns { 
    grid-template-columns: 1fr; /* impilate */ 
  }
}

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

  .triangulation,
  .island-columns { 
  padding: var(--space-md) 10px;
  }
}

/* ============================================================
   RIGA 05 — SECTION + 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; 
  /* questa riga mi permette di modificare
  la grandezza e proporzione dell'immagine */
  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 grande */
.project-storytelling img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--byakuroku);
}

.project-storytelling figcaption {
  margin-top: var(--space-xxs);
  font-size: var(--fs-xs);
  font-weight: var(--font-weight-light);
  color: var(--wakatake-iro);
  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 var(--byakuroku);

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

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

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

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

/* RESPONSIVE BREAKPOINTS */

/* ============================================================
   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 3 colonne, divise in 1/4 + 1/4 + 2/4)
============================================================ */
.renderings { 
  display: grid; 
  grid-template-columns: 0.455fr 0.455fr 1.09fr; 
  /* due colonne uguali 1/2, 1/2 + una colonna 2/4 */ 
  /* grid-template-rows: 1fr; */
  gap: var(--space-xs); 
  width: 100%; 
}

.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(--wakatake-iro); */
}

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

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

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

  .renderings figure:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   MOBILE (max 600px)
============================================================ */
@media (max-width: 37.5rem) { /* 600px */

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

  .renderings figure:nth-child(3) {
    grid-column: auto;
  }
}

/* ============================================================
   GRID NUMERI A - B - C - D - E - F
============================================================ */
.description-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* desktop: 6 affiancati */
  gap: var(--space-md);
  margin: 3.75rem auto;
  max-width: 1100px; /* limite richiesto */ 
  text-align: center;
  font-size: 2rem;
  font-weight: 400;
  color: darkslategray;
  justify-items: center;
}

.letter-a,
.letter-b,
.letter-c,
.letter-d,
.letter-e,
.letter-f {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;          /* Forma circolare */
  
  color: var(--white);
  border: 0.125rem solid var(--grey-300);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.95rem;
  font-weight: var(--font-weight-regular);
  position: relative;
  margin: 1rem auto 4rem;   /* Centra e distanzia */
}

.letter-a img,
.letter-b img, 
.letter-c img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* riempie il cerchio */
  border-radius: 50%;    /* mantiene la forma circolare */
  display: block;
  z-index: 1; /* immagine sotto la linea */
}
.letter-d { background-color: var(--color-milk); }
.letter-e { background-color: var(--color-cotto); }
.letter-f { background-color: var(--color-lavagna); }



/* Stile dei numeri (opzionale, se vuoi uniformità) */
.letter-a::before,
.letter-b::before,
.letter-c::before,
.letter-d::before,
.letter-e::before,
.letter-f::before {
  content: "";
  width: 0.125rem;
  height: 3.75rem;
  background: var(--grey-300);
  position: absolute;
  bottom: -3.75rem;                  /* Posiziona la linea sopra il cerchio */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2; /* la linea torna visibile */
}

.description-grid, .desc {
  margin-top: 0.625rem;
  font-size: var( --fs-md);
  color: var(--grey-300);
  gap: 1.25rem;
}

@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;
  }
}