* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
}

/*scrolling*/
html {
  scroll-behavior: smooth;
}

body {
  color: #000000;
  background-color: #ffffff;
  overflow-x: hidden;
}

/*header*/
header {
  width: 100%;
  padding: 25px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 1000;
  background-color: white;
  transition: all 0.3s ease;
}

.logo {
  font-weight: bold;
  font-size: 15px;
  color: #000000;
  z-index: 1001;
}

.logo a {
  text-decoration: none;
  color: #000000;
}

/*nav*/
.nav-desktop {
  display: flex;
  gap: 40px;
}

.nav-desktop a {
  text-decoration: none;
  color: #000000;
  font-size: 15px;
  transition: color 0.2s;
  position: relative;
}

.nav-desktop a.explore {
  color: #ff2b00;
  font-weight: bold;
}

.nav-desktop a:hover {
  color: #ff2b00;
}

.page-content {
  padding-top: 90px;
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 320px);
}

/*hero section*/
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: transparent;
}

/*titolo centrato nell'hero*/
.hero h1 {
  font-size: clamp(60px, 12vw, 160px);
  color: #000000;
  font-weight: 800;
  z-index: 10;
  margin-bottom: 40px;
  text-align: center;
  text-align-last: center;
  line-height: 0.85;
  position: relative;
  width: 90%;
  max-width: 1400px;
  padding: 0 40px;
  margin: 0 auto;
}

/*freccia scrolling*/
.scroll-hint {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  color: #000000;
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  z-index: 4;
  width: 40px;
  height: 40px;
  animation: bounce 2s infinite;
  cursor: pointer;
  text-decoration: none;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
}

/*span freccia*/
.scroll-hint span {
  display: block;
  font-size: 40px;
  line-height: 1;
}

/*animazione freccia*/
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/*sezione sotto hero*/
.content {
  padding: 200px 200px;
  text-align: left;
  background-color: rgb(255, 255, 255);
  color: #000000;
  position: relative;
  z-index: 1;
  scroll-margin-top: 90px;
}

.content-flex-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: last baseline;
}

.content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #ff2b00;
}

.content p {
  font-size: 16px;
  color: #000000;
  line-height: 24px;
}

.map-button {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 30px;
  border-radius: 5px;
  background-color: transparent;
  border: 2px solid #ff2b00;
  color: #ff2b00;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.map-button:hover {
  background-color: #ff2b00;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 43, 0, 0.2);
}

/*footer*/
footer {
  width: 100%;
  border-top: 2px solid #ff2b00;
  padding: 80px max(5%, 20px) 80px max(5%, 20px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 80px;
  position: relative;
  color: #000000;
  font-size: 14px;
  background: #fff;
  line-height: 1.5;
  min-height: 320px;
  box-sizing: border-box;
  z-index: 2;
  transition: all 0.3s ease;
  max-width: 1800px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

/*col 1*/
.studio-header {
  margin-bottom: 20px;
}

.studio-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.3;
}

.academic-year {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  font-weight: 400;
}

.degree-link {
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  padding-bottom: 1px;
  transition: all 0.2s;
  display: inline-block;
  margin-bottom: 20px;
}

.degree-link:hover {
  color: #ff2b00;
}

/*polimi logo */
.polimi-logo-container {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.polimi-logo {
  max-height: 105px;
  max-width: 200px;
  width: 100%;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.2s;
  object-fit: contain;
}

.polimi-logo:hover {
  opacity: 1;
}

/*autori*/
.project-team {
  margin-top: 15px;
}

.team-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-name {
  font-size: 14px;
  color: #444;
}

/*col 2*/
.license-section {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.license-content {
  width: 100%;
  max-width: 350px;
}

.license-header {
  font-size: 13px;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.4;
}

.copyright-symbol {
  font-size: 14px;
  margin-right: 4px;
}

.license-badge {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  margin: 0 4px;
  text-decoration: none;
  color: #333;
  display: inline-block;
}

.license-badge:hover {
  background-color: #eee;
  border-color: #ccc;
}

.license-text {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
  margin-top: 30px;
}

.license-link {
  color: #000000;
  text-decoration: underline;
  font-size: 13px;
}

/*contatti*/
.contact-email {
  color: #ff2b00;
  font-weight: 500;
  font-size: 13px;
  word-break: break-all;
}

.license-spacer {
  height: 20px;
}

/*col 3*/
.faculty-section {
  margin-bottom: 20px;
}

.faculty-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.faculty-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.faculty-name {
  font-size: 14px;
  color: #444;
}

.assistants-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.assistants-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 25px;
}

.assistant-name {
  font-size: 14px;
  color: #444;
}

/*DensityDesign e NECST*/
.logos-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 0px;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.design-logo {
  max-height: 95px;
  max-width: 130px;
  width: 100%;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.2s;
  margin-bottom: 5px;
}

.designnecst-logo {
  max-height: 95px;
  max-width: 130px;
  width: 100%;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.2s;
  margin-bottom: 5px;
  display: block;
  object-fit: contain;
}

.design-logo:hover,
.designnecst-logo:hover {
  opacity: 1;
}

canvas {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#p5-background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}