:root {
  --bg-base: #f5f6f8;
    --bg-black: #050505a6;
  --bg-purple: #3e2988;
  --grid-color: #d1d5db;
  --text-main: #111111;
  --text-muted: #6b7280;
  --nav-active: #4f46e5;

  /* 3D Claymorphism Shadows */
  --clay-shadow-light: 15px 20px 35px rgba(0, 0, 0, 0.08),
    -10px -10px 20px rgba(255, 255, 255, 0.8),
    inset 2px 4px 8px rgba(255, 255, 255, 0.9),
    inset -2px -4px 8px rgba(0, 0, 0, 0.05);

  --clay-shadow-dark: 15px 20px 35px rgba(0, 0, 0, 0.2),
    inset 2px 4px 8px rgba(255, 255, 255, 0.2),
    inset -2px -4px 8px rgba(0, 0, 0, 0.6);

  --clay-shadow-color: 15px 20px 35px rgba(0, 0, 0, 0.15),
    inset 2px 4px 8px rgba(255, 255, 255, 0.4),
    inset -2px -4px 8px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--clay-shadow-light);
  /* Dotted Grid Background */
  background-size: 24px 24px;
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 150vh; /* Allows for scroll-driven animations */
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* --- Header & Navigation --- */
header {
  display: flex;
  align-items: center;
  padding: 30px 0;
  position: relative;
  z-index: 100;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #000;
  border-radius: 12px;
  box-shadow: var(--clay-shadow-dark);
  overflow: hidden;
}

.logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 40px;
  font-size: 14px;
  font-weight: 600;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  transition: color 0.2s ease;
}

nav a.active {
  color: var(--nav-active);
}

nav a:hover {
  color: var(--nav-active);
}
.hero-project {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1fr);
  gap: 8vw;
  align-items: center;
  min-height: 68vh;
  padding: 90px 8vw 110px;
  position: relative;
  z-index: 10;
  background: #f5f6f8;
}

.hero-project-copy {
  justify-self: end;
  max-width: 700px;
}

.project-kicker {
  margin: 0 0 18px;
  color: var(--bg-purple);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.hero-project p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

.hero-project h1 {
  max-width: 780px;
  margin: 0 0 28px;
  font-size: clamp(44px, 6.5vw, 92px);
  font-weight: 800;
  line-height: .84;
  letter-spacing: -3px;
}

.hero-project h1 em {
  color: var(--bg-purple);
  font-style: normal;
}

.hero-project-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.hero-project-visual svg {
  width: min(100%, 420px);
  height: auto;
  overflow: visible;
  color: var(--bg-purple);
  animation: project-svg-float 8s ease-in-out infinite;
}

.project-svg-path,
.project-svg-connector,
.project-svg-mark,
.project-svg-ring {
  fill: none;
  stroke: currentColor;
}

.project-svg-path {
  stroke-width: 3;
  opacity: .85;
}

.project-svg-connector {
  stroke-width: 2;
  opacity: .45;
}

.project-svg-ring {
  stroke-width: 1;
  stroke-dasharray: 2 12;
  opacity: .5;
  transform-origin: center;
  animation: project-svg-spin 22s linear infinite;
}

.project-svg-dot {
  fill: #d9f13f;
  transform-origin: center;
  animation: project-svg-pulse 2.4s ease-in-out infinite;
}

.project-svg-mark {
  stroke: #111;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-project-visual span {
  position: absolute;
  bottom: 8%;
  left: 4%;
  color: var(--bg-purple);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.4;
}

@keyframes project-svg-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes project-svg-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes project-svg-pulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}
.btn-connect {
  background-color: #000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: var(--clay-shadow-dark);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-connect:hover {
  transform: scale(1.05);
}

.btn-connect:active {
  transform: scale(0.95);
}

.project-section {
  padding: 80px 0;
  position: relative;
  z-index: 10;
}
.project-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.project-section p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 32px;
}
.project-section .siti {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  background-color: var(--bg-purple);
}
.project-section .siti .card {
  background-color: var(--bg-base);
  border-radius: 20px;
  box-shadow: var(--clay-shadow-light);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-section .comunicazione{
  background-color: #d1ea40;

}
.project-section .siti .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--clay-shadow-dark);
}

.projects-showcase {
  padding: 24px 8vw 140px;
  background: #111;
}

.project-category {
  padding: 64px 0 76px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  overflow: hidden;
}

.project-category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.project-category-heading h2 {
  color: #fff;
  font-size: clamp(42px, 7vw, 94px);
  line-height: .86;
  letter-spacing: -3px;
}

.project-category-heading > p {
  max-width: 330px;
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
  line-height: 1.5;
}

.category-index {
  margin-bottom: 12px;
  color: #d9f13f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.project-category-orange .category-index {
  color: #ff9b62;
}

.project-category-blue .category-index {
  color: #72c7ff;
}

.project-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.project-track::-webkit-scrollbar {
  display: none;
}

.project-card {
  position: relative;
  flex: 0 0 min(78vw, 420px);
  aspect-ratio: 1.25;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #292929;
  cursor: pointer;
  scroll-snap-align: start;
  text-align: left;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card span {
  position: absolute;
  z-index: 1;
  bottom: 20px;
  left: 20px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.project-card span b {
  color: #d9f13f;
}

.project-controls {
  display: flex;
  justify-content: end;
  gap: 8px;
  margin-top: 22px;
}

.project-control {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.project-control:hover {
  color: #111;
  background: #d9f13f;
  border-color: #d9f13f;
}

.project-detail-page {
  min-height: 100vh;
  color: #fff;
  background: #111;
}

.project-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 8vw;
}

.project-detail-back,
.project-detail-brand {
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
}

.project-detail-back:hover {
  color: #d9f13f;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
  gap: 8vw;
  align-items: center;
  padding: 80px 8vw 140px;
}

.project-detail-intro h1,
.project-detail-not-found h1 {
  max-width: 700px;
  font-size: clamp(48px, 8vw, 120px);
  line-height: .88;
  letter-spacing: -4px;
}

.project-detail-description {
  max-width: 480px;
  margin-top: 34px;
  color: rgba(255, 255, 255, .7);
  font-size: 17px;
  line-height: 1.6;
}

.project-detail-button {
  display: inline-flex;
  justify-content: space-between;
  gap: 28px;
  margin-top: 38px;
  padding: 15px 18px;
  color: #111;
  background: #d9f13f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
}

.project-detail-button span {
  font-size: 18px;
  line-height: .6;
}

.project-detail-image {
  margin: 0;
  aspect-ratio: 1 / 1.12;
  overflow: hidden;
  background: #292929;
}

.project-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-not-found {
  grid-column: 1 / -1;
}

.project-detail-not-found em {
  color: #d9f13f;
  font-style: normal;
}

@media (max-width: 900px) {
  .hero-project {
    display: block;
    min-height: 0;
    padding: 78px 20px 90px;
  }

  .hero-project-copy {
    max-width: none;
  }

  .hero-project h1 {
    letter-spacing: -1.5px;
  }

  .hero-project-visual {
    min-height: 290px;
    margin-bottom: 42px;
  }

  .hero-project-visual svg {
    width: min(100%, 320px);
  }

  .project-detail-header {
    padding: 22px 20px;
  }

  .project-detail-brand {
    display: none;
  }

  .project-detail {
    display: block;
    padding: 64px 20px 80px;
  }

  .project-detail-intro h1,
  .project-detail-not-found h1 {
    letter-spacing: -1.5px;
  }

  .project-detail-image {
    margin-top: 64px;
  }
}

@media (max-width: 900px) {
  .projects-showcase {
    padding: 10px 20px 80px;
  }

  .project-category {
    padding: 48px 0 54px;
  }

  .project-category-heading {
    display: block;
  }

  .project-category-heading > p {
    margin-top: 22px;
  }

  .project-category-heading h2 {
    letter-spacing: -1.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-project-visual svg,
  .project-svg-ring,
  .project-svg-dot {
    animation: none;
  }
}

@media (max-width: 480px) {
  .hero-project,
  .project-detail,
  .projects-showcase {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-project {
    padding-top: 58px;
    padding-bottom: 68px;
  }

  .hero-project h1,
  .project-detail-intro h1,
  .project-detail-not-found h1,
  .project-category-heading h2 {
    letter-spacing: -1px;
  }

  .project-card {
    flex-basis: 84vw;
  }

  .project-controls {
    justify-content: start;
  }

  .project-detail-button {
    width: 100%;
  }
}
