/* =========================================
   PROJECTS – GENERALE / ARCHIVE / SINGLE
========================================= */

/* Container generale */
.main-content, .projects-archive, .project-section {
  max-width: 1200px;
  margin: 2rem auto;
  line-height: 1.5;
}

/* ===============================
   HERO
=============================== */
.project-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.project-hero h1.project-title {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  letter-spacing: 0.1rem;
}

.project-hero h2.project-subtitle {
  font-family: 'Inter', sans-serif;
  margin-bottom: 1rem;
  font-size: 1.7rem;
}

/* Featured image */
.project-featured-image {
  text-align: center;
  margin: 2rem 0;
}

.project-featured-image img {
  width: 100%;
  max-width: 700px;
  max-height: 700px;
  height: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ===============================
   STATEMENT / INTRODUZIONE
=============================== */
.container {
font-size: 1.4rem;
}

.container p{
width: 98%;
margin: 0 auto;
}

strong {
    font-weight: 700;
}

.project-statement{
  text-align: left;
  margin-bottom: 2rem;
  letter-spacing: 0.03rem;
}

.introduzione-title {
  display: block;                /* occupa tutta la larghezza */
  width: 100%;                   /* conferma larghezza completa */
  text-align: center;            /* centra il testo */
  padding: 0.5rem 0;             /* spazio verticale */
  border-radius: 4px;            /* arrotondamento bordi, opzionale */
  margin: 3rem 0;                /* margine sopra e sotto */
  font-size: 1rem;
  letter-spacing: 0.2rem;
  background-color: #d0d0d0cf;
}



.project-statement p,
.introduzione p {
  margin-bottom: 0.6rem;
}


.rientroriga{
  text-indent: 2em;
}
/* ===============================
   IMMAGINI MULTIPLE
=============================== */
.project-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.project-image-single {
  flex: 1 1 300px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-image-single img {
  max-width: 100%;
  max-height: 400px;
  object-fit: cover; /* Riempie il box senza deformarsi */
}

/*
.project-image-single img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 0.5rem;
}
*/
.project-image-single figcaption {
  text-align: center;
  font-size: 1rem;
}

.project-image-single .opera-link {
  text-decoration: none;
  transition: color 0.2s ease;
}


/* ===============================
   CHAPTERS
=============================== */
.project-chapters {
  margin-bottom: 2rem;
  text-align: left;
  font-size: 1rem;
}

.project-chapters h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-chapters ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 5rem;
}

.project-chapters li {
  margin-bottom: 0.5rem;
}

.project-note {
  font-style: italic;
  margin-top: 1rem;
  text-align: center;
}

/* ===============================
   PROJECT DATA
=============================== */
.project-data ul {
  list-style: none;
  padding: 0;
  margin: 5rem;
}

.project-data li {
  margin-bottom: 0.5rem;
}

.project-data h3 {
  text-align: center;
  letter-spacing: 0.2rem;
}

/* ===============================
   NAV / FOOTER LINK
=============================== */
.project-nav {
  text-align: center;
  margin: 3rem 0;
}

.project-nav a {
  text-decoration: none;
  transition: color 0.3s ease;
}

/* =========================================
   ARCHIVE PAGE
========================================= */

/* Header archivio */
.archive-header {
  text-align: center;
  margin-bottom: 3rem;
}

.archive-header h1.page-title {
  margin-bottom: 0.5rem;
  letter-spacing: 0.1rem;
}

.archive-header h2.sub-title {
  font-family: 'Inter', sans-serif;
  font-variation-settings: "wght" 90;
  margin-bottom: 2rem;
}


.archive-header h3.introduzione-title {
  display: flex;
  align-items: center;
  text-align: center;
}

/* Lista progetti */
.projects-list {
  display: block;
  margin-top: 2rem;
}

.projects-list .project-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  background-color: #f5f5f5;
}

.projects-list .project-item:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

.projects-list .project-item a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.projects-list .project-item figure.project-thumb-left {
  flex-shrink: 0;
  margin: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.projects-list .project-item img.project-thumb-small {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 0; /* ← importante */
}


.projects-list .project-item .project-info {
  flex: 1;
}

.projects-list .project-item .project-info h2 {
  margin: 0 0 0.3rem 0;
  font-size: 1.3rem;
}

.projects-list .project-item .project-info p {
  margin: 0;
  font-size: 1rem;
}

/* =========================================
   RESPONSIVE
========================================= */
@media screen and (max-width: 768px) {
  .projects-list .project-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-list .project-item img.project-thumb-small,
  .project-hero img {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .project-hero h1.project-title {
    font-size: 2rem;
  }

  .project-hero h2.project-subtitle {
    font-size: 1.2rem;
  }

  .project-images {
    flex-direction: column;
    gap: 1.5rem;
  }
}
