body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  overflow-x: hidden;
}


/* ==========================
   TYPOGRAPHY
========================== */

h1, h2, .logo, .links a {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h1 {
  font-size: 48px;
  margin: 0;
}

h2 {
  font-size: 32px;
  margin: 0 0 35px 0;
}

p {
  font-size: 16px;
  color: gray;
  line-height: 1.6;
}



/* ==========================
   NAVBAR
========================== */

.navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: white;
  border-bottom: 1px solid #e8e8e8;
  z-index: 1000;
}

.links {
  display: flex;
  gap: 45px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
}

.links a {
  color: #111;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.links a:visited {
  color: #111;
}
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  overflow-x: hidden;
}


/* ==========================
   TYPOGRAPHY
========================== */

h1, h2, .logo, .links a {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h1 {
  font-size: 48px;
  margin: 0;
}

h2 {
  font-size: 32px;
  margin: 0 0 35px 0;
}

p {
  font-size: 16px;
  color: gray;
  line-height: 1.6;
}



/* ==========================
   NAVBAR
========================== */

.navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: white;
  border-bottom: 1px solid #e8e8e8;
  z-index: 1000;
}

.links {
  display: flex;
  gap: 45px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
}

.links a {
  color: #111;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.links a:visited {
  color: #111;
}

.links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.links a:active {
  color: #111;
}

.links a:hover {
  text-decoration: underline;
}


/* ==========================
   HERO
========================== */

.hero {
  height: 70vh;
  position: relative;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ==========================
   SEZIONI
========================== */

section {
  margin: 0 auto;
  padding: 50px 20px;
}


/* ==========================
   PROGETTI GRID
========================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}


/* ==========================
   CARD
========================== */

.card {
  background: rgb(197, 178, 149);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: left;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}


/* ==========================
   ANIMAZIONI
========================== */

.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================
   SMOOTH SCROLL
========================== */

html {
  scroll-behavior: smooth;
}


/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 700px) {

  section {
    padding: 50px 20px;
  }

  .navbar {
    padding: 20px;
  }

}


/* ==========================
   CONTACT LINKS
========================== */

.contact a,
.contact a:visited,
.contact a:hover,
.contact a:active {
  color: #111;
  text-decoration: underline;
}

.contact a:hover {
  opacity: 0.6;
}


/* ==========================
   PRESS
========================== */

.press {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.press-item {
  padding: 18px 0;
  border-bottom: 1px solid #ececec;
}

.press-list {
  margin-top: 40px;
}

.press-row {
  display: grid;
  grid-template-columns: 120px 1fr 80px;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #eaeaea;
  align-items: center;
}

.press-meta {
  font-size: 14px;
  color: #777;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.press-title {
  font-size: 16px;
  line-height: 1.4;
}

.press-link a {
  font-size: 14px;
  text-decoration: none;
  color: black;
}

.press-link a:hover {
  text-decoration: underline;
}


/* ==========================
   PROYECTOS
========================== */

.proyectos {
  max-width: 900px;
}

.project {
  border-bottom: 1px solid #e5e5e5;
  padding: 25px 0;
}

.project-title {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.project-title span {
  font-size: 30px;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.project.active .project-gallery {
  display: grid;
}

.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

@media (hover: hover) {

  .project-gallery img:hover {
    transform: scale(1.02);
  }

}


/* ==========================
   QUANDO APERTO
========================== */

.project.active .project-gallery {
  display: grid;
}

.project.active .project-title span {
  transform: rotate(45deg);
}


/* ==========================
   MOBILE RESPONSIVE
========================== */

@media (max-width: 700px) {

  /* NAVBAR */

  .navbar {
    padding: 20px;
    flex-direction: column;
    gap: 20px;
  }

  .logo {
    font-size: 22px;
  }

  .links {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .links a {
    font-size: 12px;
  }


  /* HERO */

  .hero {
    height: 55vh;
  }


  /* SECCIONES */

  section {
    padding: 80px 20px;
  }

  h2 {
    font-size: 26px;
    margin-bottom: 30px;
  }

  p {
    font-size: 15px;
  }


  /* CV */

  .cv {
    text-align: left;
  }

  .cv-item {
    display: block;
  }

  .year {
    display: block;
    margin-bottom: 10px;
  }


  /* PROYECTOS */

  .proyectos {
    max-width: 100%;
  }

  .project-title {
    font-size: 20px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }


  /* PRENSA */

  .press {
    text-align: left;
  }

  .press-item h3 {
    font-size: 18px;
  }


  /* CONTACTO */

  .contact {
    text-align: left;
  }

}


/* ==========================
   CV
========================== */

.cv {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}


/* ==========================
   PROJECT GALLERY
========================== */

.project-gallery {
  margin-top: 40px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}


/* ==========================
   BODY COLOR
========================== */

body {
  color: #222;
}


/* ==========================
   CONTACT
========================== */

.contact {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.cv,
.proyectos,
.press,
.contact {
  margin-top: 0;
  margin-bottom: 0;
}


/* ==========================
   CORREZIONE SCROLL CON NAVBAR
========================== */

section {
  scroll-margin-top: 100px;
}


/* ==========================
   SMALL MOBILE
========================== */

@media (max-width: 480px) {

  .navbar {
    padding: 16px;
  }

  .logo {
    font-size: 20px;
  }

  .links {
    gap: 16px;
  }

  .links a {
    font-size: 11px;
  }

  h2 {
    font-size: 24px;
  }

  p {
    font-size: 14px;
  }

}


/* ==========================
   LANGUAGE SWITCHER
========================== */

.nav-right {
  display: flex;
  align-items: center;
  gap: 35px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s ease;
}

.lang-btn:hover {
  color: #111;
}

.lang-btn.active {
  color: #111;
  text-decoration: underline;
}


/* ==========================
   MOBILE LANGUAGE SWITCHER
========================== */

@media (max-width: 700px) {

  .nav-right {
    flex-direction: column;
    gap: 15px;
  }

  .language-switcher {
    font-size: 11px;
  }

  .lang-btn {
    font-size: 11px;
  }

}


/* ==========================
   PHOTO CREDIT
========================== */

.photo-credit {
  position: absolute;
  bottom: 12px;
  left: 20px;
  font-size: 11px;
  color: white;
  opacity: 0.75;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}


/* ==========================
   FORCE CONTACT LINKS COLOR
========================== */

#contacto a,
#contacto a:link,
#contacto a:visited,
#contacto a:hover,
#contacto a:active {
  color: #111 !important;
  text-decoration: underline;
}

#contacto a:hover {
  opacity: 0.6;
}


/* ==========================
   LIGHTBOX
========================== */

.lb-link {
  display: block;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox.open {
  display: flex;
}

.lb-image {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  user-select: none;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  opacity: 0.75;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  opacity: 1;
}

.lb-close {
  top: 16px;
  right: 22px;
  font-size: 40px;
}

.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 64px;
  padding: 10px 18px;
}

.lb-prev { left: 8px; }
.lb-next { right: 8px; }

.lb-counter {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  opacity: 0.7;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
}

@media (max-width: 700px) {
  .lb-prev,
  .lb-next {
    font-size: 48px;
    padding: 10px 8px;
  }
}


/* ==========================
   HERO IN VERTICALE
   (telefono o schermo in verticale: altezza ridotta e immagine
   ancorata a destra, dove si trova il soggetto principale)
========================== */

@media (orientation: portrait) {

  .hero {
    height: 40vh;
  }

  .hero img {
    object-position: 85% center;
  }

}

