/* ================= PROGETTI ================= */

html,
body {
  background-color: #05060a;
  font-family: 'Space Grotesk', sans-serif;
}

.projects-root {
  position: relative;
  min-height: 100vh;
  color: #ffffff;
  overflow: hidden;
}

.projects-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../../img/background1.png") center top / cover repeat;
}

.projects-bg::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 70vh;
  background: url("../../img/head.png") center / cover no-repeat;
}

.projects-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(6,8,14,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px) saturate(150%);
}

.projects-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.projects-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.projects-logo {
  height: 30px;
  width: auto;
}

.projects-back {
  text-decoration: none;
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  opacity: 0.9;
  transition: transform 0.35s ease, background 0.35s ease, opacity 0.35s ease;
}

.projects-back:hover {
  transform: translateX(-4px);
  background: rgba(255,255,255,0.16);
  opacity: 1;
}

.projects-contact {
  text-decoration: none;
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.35s ease;
}

.projects-contact:hover {
  opacity: 1;
}

.projects-glass {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 120px 6vw 120px;
  backdrop-filter: blur(28px) saturate(135%);
  background: linear-gradient(
    to bottom,
    rgba(8,10,18,0.78),
    rgba(8,10,18,0.9) 40%,
    rgba(8,10,18,0.96)
  );
}

.projects-main {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.projects-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.projects-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.projects-section-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.projects-sphere-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 36px;
}

.projects-sphere-future-col2 {
  grid-column: 2;
}

.projects-sphere-future-col1 {
  grid-column: 1;
}

.projects-sphere-future-col3 {
  grid-column: 3;
}

.projects-sphere-future {
  grid-row: 2;
}

.projects-sphere {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s ease;
}

.projects-sphere-icon {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
}

.projects-sphere-icon img {
  width: 120px;
  height: auto;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.projects-sphere-title {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.projects-sphere:hover {
  transform: translateY(-4px);
}

.projects-sphere:hover .projects-sphere-icon img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 18px rgba(140,200,255,0.6));
}

.projects-sphere-disabled {
  opacity: 0.75;
  pointer-events: none;
}

.projects-sphere-disabled:hover {
  transform: none;
}

.projects-section-title {
  display: none;
}

@media (max-width: 900px) {
  .projects-glass {
    padding: 110px 6vw 100px;
  }

  .projects-sphere-future-col2,
  .projects-sphere-future-col3 {
    grid-column: auto;
  }

  .projects-sphere-future {
    grid-row: auto;
  }

  .projects-sphere-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  .projects-header-inner {
    height: auto;
    padding: 14px 16px;
  }

  .projects-header-left {
    gap: 10px;
  }

  .projects-logo {
    height: 26px;
  }

  .projects-back {
    font-size: 11px;
    padding: 6px 10px;
  }

  .projects-contact {
    font-size: 11px;
  }

  .projects-section-title {
    font-size: 22px;
    letter-spacing: 0.12em;
  }

  .projects-sphere-grid {
    grid-template-columns: 1fr;
  }

  .projects-sphere-icon {
    width: 130px;
    height: 130px;
  }

  .projects-sphere-icon img {
    width: 104px;
  }
}
