/* ==========================================================================
   3C SCAVI S.r.l.s. - Uniform Earth-Toned Projects Page Stylesheet
   Grafica uniforme color terra: Escavatore che scava attraverso gli strati geologici
   ========================================================================== */

.progetti-page-header {
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  /* Seamless transition from road surface into earth gravel */
  background: 
    linear-gradient(180deg, 
      var(--c-asphalt-dark) 0%, 
      var(--c-asphalt-main) 40%, 
      var(--c-strata-gravel) 100%
    );
  border-bottom: 3px solid var(--c-border-earth);
  position: relative;
}

.progetti-filter-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

.filter-btn {
  background: rgba(30, 20, 13, 0.7);
  border: 1px solid var(--c-border-earth);
  color: var(--c-text-muted);
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #FFF;
  border-color: var(--c-brand-yellow);
}

.filter-btn.active {
  background: var(--c-brand-yellow);
  color: #1A120B;
  border-color: var(--c-brand-yellow);
  font-weight: 800;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
}

.filter-count {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Continuous Earth Shaft & Digging Timeline Container
   ========================================================================== */
.dig-experience-container {
  position: relative;
  padding: 4rem 0 8rem 0;
  /* Earth strata gradient descending deep into bedrock */
  background: 
    linear-gradient(180deg, 
      var(--c-strata-gravel) 0%, 
      var(--c-strata-sand) 15%, 
      var(--c-strata-clay) 40%, 
      var(--c-strata-clay-dark) 65%, 
      var(--c-strata-tuff) 85%, 
      var(--c-strata-rock) 100%
    );
  min-height: 1400px;
}

.dig-layout-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 3rem;
  position: relative;
}

/* Sticky Excavator & Depth Shaft (Left Side) */
.shaft-column {
  position: relative;
}

.shaft-sticky-wrapper {
  position: sticky;
  top: 90px;
  background: rgba(36, 22, 14, 0.95);
  border: 2px solid var(--c-brand-yellow);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-earth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 20;
}

.shaft-rig-box {
  width: 100%;
  height: 190px;
  background: #190F09;
  border: 1px solid var(--c-border-earth);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.8);
}

.shaft-rig-svg {
  width: 220px;
  height: 160px;
  transition: transform 0.2s ease-out;
}

.depth-meter-box {
  width: 100%;
  background: #140C07;
  border: 1px dashed var(--c-brand-yellow);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.depth-meter-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--c-text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.depth-meter-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 900;
  color: var(--c-brand-yellow);
  line-height: 1;
}

.depth-stratum-name {
  font-size: 0.82rem;
  color: #38BDF8;
  margin-top: 0.4rem;
  font-weight: 800;
}

.shaft-depth-bar {
  width: 100%;
  height: 9px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--c-border-earth);
}

.shaft-depth-fill {
  height: 100%;
  width: 15%;
  background: linear-gradient(90deg, var(--c-brand-yellow), var(--c-brand-orange));
  border-radius: 999px;
  transition: width 0.15s ease-out;
}

.strata-jump-list {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.75rem;
}

.strata-jump-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(20, 12, 7, 0.6);
  border: 1px solid var(--c-border-earth);
  color: var(--c-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 700;
}

.strata-jump-item:hover,
.strata-jump-item.active {
  background: rgba(245, 158, 11, 0.2);
  color: var(--c-brand-yellow);
  border-color: var(--c-brand-yellow);
  border-left: 4px solid var(--c-brand-yellow);
}

/* ==========================================================================
   Project Dossiers (Right Side)
   Unearthed directly from the soil layers
   ========================================================================== */
.projects-feed {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  position: relative;
}

.projects-feed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    180deg,
    var(--c-brand-yellow),
    var(--c-brand-yellow) 10px,
    transparent 10px,
    transparent 20px
  );
  z-index: 1;
}

.geotech-stratum-band {
  position: relative;
  z-index: 2;
  margin-bottom: -1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stratum-band-badge {
  background: linear-gradient(135deg, #3D2615, #24160E);
  color: var(--c-brand-yellow);
  border: 1px solid var(--c-brand-yellow);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.05em;
}

.stratum-band-line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--c-border-earth), transparent);
}

/* Project Card (Unearthed Soil Plaque) */
.project-card {
  position: relative;
  z-index: 2;
  margin-left: 50px;
  background: var(--c-bg-card-earth);
  border: 1px solid var(--c-border-earth);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-earth);
  transition: all var(--transition-normal);
  backdrop-filter: blur(14px);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--c-brand-yellow);
  box-shadow: var(--shadow-earth), var(--shadow-glow-yellow);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 35px;
  left: -40px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-brand-yellow);
  border: 3px solid #1A1009;
  box-shadow: 0 0 14px var(--c-brand-yellow);
  z-index: 3;
}

.project-card-header {
  padding: 1.75rem 2rem 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 235, 205, 0.1);
}

.project-meta-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.project-depth-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.2);
  color: var(--c-brand-yellow-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--c-brand-yellow);
}

.project-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
  color: #FFF;
}

.project-client {
  font-size: 0.88rem;
  color: var(--c-text-muted);
}

.project-client strong {
  color: #FFF;
}

.status-in-progress {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--c-brand-yellow);
  color: var(--c-brand-yellow-light);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.status-completed {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10B981;
  color: #6EE7B7;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.project-card-body {
  padding: 1.75rem 2rem;
}

.project-summary {
  font-size: 1rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.project-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: rgba(20, 12, 7, 0.75);
  border: 1px solid var(--c-border-earth);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.metric-cell {
  display: flex;
  flex-direction: column;
}

.metric-cell .label {
  font-size: 0.72rem;
  color: var(--c-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.metric-cell .value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFF;
}

.project-progress-wrap {
  margin-bottom: 1.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
  color: var(--c-text-muted);
}

.progress-track {
  height: 7px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--c-border-earth);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-brand-yellow), var(--c-brand-orange));
  border-radius: 999px;
}

.project-machinery-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.machinery-tag-label {
  font-size: 0.75rem;
  color: var(--c-text-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.machinery-tag {
  background: rgba(20, 12, 7, 0.6);
  border: 1px solid var(--c-border-earth);
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #E5D5C5;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.machinery-tag i {
  color: var(--c-brand-yellow);
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .dig-layout-grid { grid-template-columns: 1fr; }
  .shaft-column { display: none; }
  .project-card { margin-left: 30px; }
  .project-metrics-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .project-card { margin-left: 10px; }
  .projects-feed::before { display: none; }
  .project-card::before { display: none; }
  .project-card-header { flex-direction: column; padding: 1.25rem; }
  .project-card-body { padding: 1.25rem; }
}
