html {
  scroll-behavior: smooth;
}

/* BASE */
body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  color: #111;
  background: #f7f7f5;
  background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 60px;
  border-bottom: 1px solid #eee;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  font-weight: 600;
  letter-spacing: 1px;
}

/* JUMP LINKS — fixed sidebar, always visible on the left */
.jump-links-fixed {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.jump-links-fixed a {
  font-size: 15px;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #111;
  background: #f7f7f5;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 12px 22px;
  transition: 0.25s;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.jump-links-fixed a:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: #111;
  font-size: 17px;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: #e60000;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* WORK LAYOUT */
.work {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px;
}

.project {
  margin-bottom: 0;
}

/* space between two consecutive projects, no divider line */
.project + .project {
  margin-top: 260px;
  padding-top: 0;
}

/* spacer block - forza lo spazio reale nel flusso del documento */
.spacer {
  width: 70px;
  height: 70px;
}

/* remove extra top padding when a project's hero-videos
   directly follows another project, so the gap between
   sections doesn't stack twice */
.project + .project .hero-videos {
  padding-top: 0;
}

/* zero bottom margin on stats so the divider above controls
   all the spacing between projects */
.stats {
  margin-bottom: 0;
}

/* CASE (GRID INTRO + TEXT) */
.case {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #e5e5e5;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.case h3 {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color:#e60000; 
  margin-top: 0;
}

.case p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

/* IMMAGINI (5 IMAGES STORY) */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;

  margin-top: 80px;
  margin-bottom: 80px;
}

.image-grid img {
  width: 100%;
  height: auto;

  object-fit: cover;

  display: block;

  border-radius: 2px;
}



/* HERO VIDEO (UNCHANGED FEEL, SOLO FIX) */
.hero-videos{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;

  max-width: 720px;
  margin: 0 auto;

  padding: 80px 0;
}

.hero-videos video{
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;

  border-radius: 2px;
  display: block;
}

/* VIDEO SECONDARI (IMPORTANTISSIMO) */
.hero-video + .hero-video {
  min-height: auto;
  background: transparent;

  padding: 80px 0;
}

.hero-video + .hero-video video {
  width: 420px;
  height: 760px;
  border-radius: 4px;
}

/* HERO TEXT */
.hero-text {
  margin-top: 40px;
  text-align: left;
}

.hero-text p {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 10px;
}

.hero-text h1 {
  font-size: 46px;
  font-weight: 400;
  line-height: 1.1;
  max-width: 700px;
  margin: 0;
}

.hero-text h1 a.project-link {
  color: inherit;
  text-decoration: none;
  background-size: 0% 1px;
  transition: background-size 0.3s;
}

.hero-text h1 a.project-link:hover {
  background-size: 100% 1px;
}

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;

  padding-top: 10px;
}

.stat::before {
  content: "";
  display: block;

  width: 30px;
  height: 1px;

  background: #c40000;

  margin-bottom: 20px;
}

.stat span {
  display: block;

  font-size: 52px;
  font-weight: 400;
  letter-spacing: -2px;

  margin-bottom: 12px;

  color: #111;
}

.stat p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;

  max-width: 220px;
}

/* SPOTLIGHT (FIRST VIDEO / LAUNCH ANALYSIS) */
.spotlight {
  margin-top: 20px;
  margin-bottom: 80px;
  padding: 40px 0 0;
  border-top: 1px solid #e5e5e5;
}

.spotlight h3 {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e60000;
  margin-top: 0;
  margin-bottom: 16px;
}

.spotlight > p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 40px;
}

/* single-video variant of the hero-videos grid */
.hero-videos.single {
  grid-template-columns: 1fr;
  max-width: 420px;
}

/* triple-video variant: 3 videos side by side, slightly smaller, centered */
.hero-videos.triple {
  grid-template-columns: repeat(3, 1fr);
  max-width: 640px;
  gap: 10px;
}

.spotlight-results-group {
  margin-top: 50px;
}

.spotlight-results-group h4 {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e60000;
  margin: 0 0 14px;
}

.spotlight-results-group + .spotlight-results-group {
  margin-top: 40px;
}

.spotlight-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 720px;
}

.spotlight-results img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  border: 1px solid #e5e5e5;
}

.photography{
  padding: 20px 8% 120px;
}

.photo-intro{
  max-width: 700px;
  margin-bottom: 60px;

}

.photo-intro p{
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 10px;
}

.photo-intro h2{
  font-size: 42px;
  font-weight: 500;
}

.rid { 
  color: #e60000;
}

.photo-grid{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
}

.photo-grid img{
  width: 100%;
  height: auto;
  object-fit: cover;

  display: block;

  border-radius: 2px;
}

.photo-grid2{
  display: grid;
  grid-template-columns: repeat(1,1fr);
  gap: 20px;
  margin-top: 20px;
}

.photo-grid2 img{
  width: 100%;
  height: auto;
  object-fit: cover;

  display: block;

  border-radius: 2px;
}

@media screen and (max-width: 430px) {

  /* BASE TYPOGRAPHY */
  body {
    background-size: 16px 16px;
  }

  /* NAV */
  nav {
    padding: 18px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .logo {
    font-size: 14px;
  }

  .logo-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* JUMP LINKS on mobile: fixed bar at the bottom instead of a side sidebar */
  .jump-links-fixed {
    left: 0;
    right: 0;
    top: auto;
    bottom: 14px;
    transform: none;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    padding: 0 14px;
  }

  .jump-links-fixed a {
    font-size: 14px;
    padding: 11px 18px;
  }

  nav a {
    margin-left: 0;
    margin-right: 18px;
    font-size: 18px;
  }

  /* LAYOUT PRINCIPALE */
  .work {
    padding: 40px 18px;
  }

  .project {
    margin-bottom: 0;
  }

  .project + .project {
    margin-top: 18px;
    padding-top: 18px;
  }

  /* CASE */
  .case {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .case h3 {
    font-size: 10px;
  }

  .case p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* IMMAGINI */
  .image-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .photo-grid2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* HERO VIDEO */
  .hero-video {
    min-height: 75vh;
    padding: 40px 15px;
  }

  .hero-video video {
    width: min(280px, 90vw);
    height: auto;
    aspect-ratio: 9 / 19.5;
  }

  .hero-video + .hero-video video {
    width: min(300px, 92vw);
    height: auto;
    aspect-ratio: 9 / 19.5;
  }

  /* HERO TEXT */
  .hero-text {
    margin-top: 25px;
  }

  .hero-text h1 {
    font-size: clamp(22px, 6vw, 30px);
    padding: 0 10px;
  }

  .hero-text p {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  /* STATS */
  .stats {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .stat span {
    font-size: 36px;
  }

  .stat p {
    font-size: 10px;
    max-width: 100%;
  }

  /* PHOTOGRAPHY */
  .photography {
    padding: 20px 18px 70px;
  }

  /* SPOTLIGHT */
  .spotlight {
    margin-bottom: 40px;
    padding-top: 25px;
  }

  .hero-videos.single {
    max-width: 100%;
  }

  .hero-videos.triple {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    gap: 6px;
  }

  .spotlight-results-group {
    margin-top: 30px;
  }

  .spotlight-results-group + .spotlight-results-group {
    margin-top: 24px;
  }

  .spotlight-results {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 30px;
  }

  .photo-intro h2 {
    font-size: clamp(24px, 7vw, 30px);
  }
}