/* Import Monument Extended Font */
@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope-ExtraBold.woff2') format('woff2');
  font-weight: 400; /* Normal weight */
  font-style: normal;
}

@font-face {
  font-family: 'Monument Extended';
  src: url('fonts/Manrope-Medium.woff2') format('woff');
  font-weight: 800; /* Bold weight */
  font-style: normal;
}

@font-face {
  font-family: 'Rubik Doodle Shadow';
  src: url('fonts/RubikDoodleShadow-Regular.woff2') format('woff2');
  font-weight: 400; /* Normal weight */
  font-style: normal;
}

/* Reset di base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  height: 100%;
  background-color: #faf9f6;
  overflow-x: hidden;
  position: relative;
  font-family: 'Manrope', sans-serif; /* 👈 Font globale */
}

.logo img {
  height: 60px;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #faf9f6;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  position: relative;
}

.nav-links a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #faf9f6;
  transition: width 0.3s;
  margin: auto;
  margin-top: 5px;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #ffffff;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.4s;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 100px;
    right: -100%;
    width: 100%;
    background-color: #252525dc;
    border-top: 1px solid #faf9f6;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
    transition: right 0.4s ease-in-out;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
    color: #ffffff;
  }

  .contact-button {
    display: none;
  }
}


/* Background */
#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  z-index: -1;
  pointer-events: none; 
}


/* Footer */
.footer {
  width: 100%;
  padding: 30px 20px;
  display: flex;
  justify-content: center;
}

.footer-content {
  display: flex;
  gap: 150px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-content img.footer-logo {
  height: 60px;
  margin-right: 20px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1b1f3b;
  font-family: 'Manrope', sans-serif;
}
.footer-link p {
  font-size: 16px;
  font-family: 'Manrope', sans-serif;
  color: #1b1f3b;
  font-weight: 400;
}
.logo-email {
  height: 24px;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-link {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .gradient-text {
    font-size: 14px;
    text-align: center;
  }
}

/* Evita overflow orizzontale su tutto */
html, body {
  overflow-x: hidden;
}

/* Riduci padding laterale della navbar su mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 20px 20px;
  }
}

/* Assicura che la contact-content non sfori su mobile */
.contact-content {
  box-sizing: border-box;
}

/* Riduci padding interno su schermi piccoli */
@media (max-width: 480px) {
  .contact-content {
    padding: 40px 20px;
  }

  .project-card {
    max-width: 90vw;
  }

  .project-card h3 {
    margin-bottom: 30px;
  }
}
/* ===============================
   FULLSCREEN VIDEO SCROLL
=================================*/

.video-scroll {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.video-panel {
  position: relative;
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  overflow: hidden;
}

.video-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Evita che la navbar copra i video */
.video-panel::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .video-panel video {
    object-fit: cover;
  }
}
/* ===============================
   VIDEO INFO OVERLAY
=================================*/

.video-panel {
  position: relative;
}

.video-info {
  position: absolute;
  bottom: 60px;
  left: 60px;
  color: white;
  text-align: left;
  z-index: 2;
  max-width: 500px;
}

.video-info h2 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 2px;
  letter-spacing: 1px;
}

.video-info p {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.85;
}

/* Leggero gradiente per leggibilità */
.video-panel::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .video-info {
    left: 25px;
    bottom: 40px;
    max-width: 70%;
  }

  .video-info h2 {
    font-size: 26px;
  }

  .video-info p {
    font-size: 14px;
  }
}