/* ── BANNER PROGETTO ── */
.progetto-banner {
  background: var(--nebbia);
  position: relative; overflow: hidden;
  border-bottom: 3px solid var(--grano);
  min-height: 260px; display: flex; align-items: center;
}


.progetto-banner-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(74,155,181,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,155,181,0.06) 1px, transparent 1px);
  background-size: 55px 55px;
}

.progetto-banner-num {
   position: absolute; right: -1rem; top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(8rem, 18vw, 16rem); font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(74,155,181,0.25); /* ← era 0.1, ora 0.25 */
  line-height: 1; 
  pointer-events: none; 
  user-select: none;
  margin-right: 2px;
}

.prog-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--acqua-m);
  margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.8rem;
}

.prog-tag::before { content:''; width:24px; height:1px; background:currentColor; }

.prog-banner-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700;
  color: var(--acqua); line-height: 1.05; margin-bottom: 0.8rem;
}

.prog-banner-title em { font-style: italic; color: var(--acqua-m); }

.prog-banner-desc {
  font-size: 0.95rem; font-weight: 300;
  color: #666; line-height: 1.8; max-width: 480px;
}

/* ── TESTI ── */
.prog-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: var(--acqua); margin-bottom: 1.5rem;
}

.prog-section-title em { font-style: italic; color: var(--salvia); }

.prog-testo {
  font-size: 0.95rem; font-weight: 300; color: #555; line-height: 1.9;
}

/* ── FOTO GRID INTRO ── */
.prog-foto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
}

.prog-foto-main {
  grid-column: 1 / -1;
  height: 220px; overflow: hidden; border-radius: 4px;
}

.prog-foto-small {
  height: 130px; overflow: hidden; border-radius: 4px;
}

.prog-foto-main img,
.prog-foto-small img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.4s;
}

.prog-foto-main:hover img,
.prog-foto-small:hover img { transform: scale(1.03); }

/* ── LOTTI ── */
.prog-lotto-card {
  background: #fff; border-radius: 4px;
  padding: 1.5rem; height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border-top: 4px solid var(--acqua-m);
  transition: transform 0.2s;
}

.prog-lotto-card:hover { transform: translateY(-3px); }

.prog-lotto-completato { border-top-color: var(--salvia); }
.prog-lotto-in-corso   { border-top-color: var(--grano); }

.prog-lotto-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 2px;
  display: inline-flex; align-items: center;
  margin-bottom: 1rem;
}

.prog-lotto-completato .prog-lotto-badge {
  background: rgba(107,143,107,0.12); color: var(--salvia);
}

.prog-lotto-in-corso .prog-lotto-badge {
  background: rgba(212,168,67,0.12); color: #a07820;
}

.prog-lotto-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700; color: var(--acqua);
  margin-bottom: 0.2rem;
}

.prog-lotto-fondo {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--acqua-m);
  margin-bottom: 0.8rem;
}

.prog-lotto-comuni {
  font-size: 0.85rem; color: #555; margin-bottom: 0.6rem;
}

.prog-lotto-desc {
  font-size: 0.82rem; color: #888; font-weight: 300;
  line-height: 1.6; margin-bottom: 0.8rem;
}

.prog-lotto-importo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700; color: var(--grano);
}

/* ── MAPPA ── */
.prog-mappa-wrapper {
  border: 2px solid rgba(212,168,67,0.3); border-radius: 4px;
  overflow: hidden; cursor: zoom-in; transition: transform 0.3s;
}

.prog-mappa-wrapper:hover { transform: scale(1.005); }

.prog-mappa-wrapper img { width: 100%; height: auto; display: block; }

/* ── GALLERY CANTIERE ── */
.prog-gallery-item {
  position: relative; overflow: hidden; border-radius: 4px;
  height: 240px;
}

.prog-gallery-wide { height: 500px; }

.prog-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.4s;
}

.prog-gallery-item:hover img { transform: scale(1.03); }

.prog-gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.5rem 1rem;
  background: linear-gradient(transparent, rgba(26,58,74,0.8));
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--grano);
}

/* ── SOSTENIBILITÀ ── */
.prog-sostenibilita {
  background: var(--acqua); position: relative; overflow: hidden;
}

.prog-sost-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(168,216,232,0.15);
  border-top: 3px solid var(--grano);
  padding: 1.5rem; border-radius: 4px; height: 100%;
  text-align: center;
}

.prog-sost-icon { font-size: 2rem; margin-bottom: 0.8rem; }

.prog-sost-titolo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: #fff; margin-bottom: 0.6rem;
}

.prog-sost-testo {
  font-size: 0.85rem; color: var(--acqua-l);
  font-weight: 300; line-height: 1.8;
}

/* ── FOTO NATURA ── */
.prog-natura-foto {
  height: 160px; overflow: hidden; border-radius: 4px;
  border: 1px solid rgba(168,216,232,0.1);
}

.prog-natura-foto img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.4s;
}

.prog-natura-foto:hover img { transform: scale(1.05); }

/* ── LIGHTBOX ── */
.mappa-lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); align-items: center;
  justify-content: center; cursor: zoom-out;
}

.mappa-lightbox.aperta { display: flex; }

.mappa-lightbox img {
  max-width: 95vw; max-height: 90vh;
  object-fit: contain; border: 1px solid rgba(212,168,67,0.2);
}

.mappa-lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: #fff; font-size: 2rem; cursor: pointer;
  opacity: 0.7; transition: opacity 0.2s;
  background: none; border: none;
}

.mappa-lightbox-close:hover { opacity: 1; }

.prog-num-inline {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--acqua);
  background: rgba(74,155,181,0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  border-bottom: 2px solid var(--acqua-m);
}

.prog-num-gold {
  color: #a07820;
  background: rgba(212,168,67,0.1);
  border-bottom-color: var(--grano);
}

/* ── CAROSELLI PICCOLI ── */
.prog-car-small {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(168,216,232,0.15);
  position: relative;
}

.prog-car-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.prog-car-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.4rem 0.6rem;
  background: rgba(26,58,74,0.75);
  backdrop-filter: blur(4px);
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grano);
  z-index: 5;
}

/* Frecce più piccole */
.prog-car-small .carousel-control-prev,
.prog-car-small .carousel-control-next {
  width: 24px;
  opacity: 0;
  transition: opacity 0.2s;
}

.prog-car-small:hover .carousel-control-prev,
.prog-car-small:hover .carousel-control-next {
  opacity: 0.8;
}

.prog-car-small .carousel-control-prev-icon,
.prog-car-small .carousel-control-next-icon {
  width: 14px; height: 14px;
}