body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: white;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* Layout principale */
#hero {
  display: flex;
  height: 100vh;
}

/* Colonne */
.hero-left,
.hero-right {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Immagini di sfondo sovrapposte */
.bg1, .bg2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 1.5s ease;
  opacity: 0;
}

/* Parte destra */
.hero-right {
  background: white;
  position: relative;
}

/* Logo pagina home */
.logo {
  display: block;
  margin: 30px auto 0 auto;
  max-width: 700px;
  height: auto;
}

/* Contenitore del pulsante */
.button-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Pulsante stile pillola trasparente */
.portfolio-button {
  padding: 12px 30px;
  background-color: transparent;
  color: black;
  text-decoration: none;
  font-size: 18px;
  border: 2px solid black;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.instagram-icon {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.instagram-icon img {
  width: 20px; /* cambia la dimensione se vuoi */
  height: auto;
  cursor: pointer;
}

.portfolio-button:hover {
  background-color: black;
  color: white;
}

@media (max-width: 768px) {
  /* Layout verticale */
  #hero {
    flex-direction: column;
  }

  .hero-left,
  .hero-right {
    width: 100%;
    height: 50vh; /* metà schermo ciascuno */
  }

  .hero-right {
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 7px;
  }

  .logo {
    max-width: 300px;
    margin-bottom: 60px;
  }

  .button-wrapper {
    position: static;
    transform: none;
  }

  .portfolio-button {
    font-size: 16px;
    padding: 10px 24px;
  }

  .instagram-icon {
    bottom: 100px; /* o qualsiasi valore che ti sembra più adatto */
  }

}


/* --- STILI PER PAGINE PROFESSIONAL E PERSONAL --- */

/* --- HEADER PAGINA PROFESSIONAL --- */

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgb(255, 255, 255);
  position: relative;
}

.header-logo {
  height: 70px;
  width: auto;
}

.main-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.main-menu a {
  color: rgb(58, 55, 55);
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.3s ease;
}

.main-menu a:hover {
  opacity: 0.6;
}

.menu-instagram-icon {
  margin-top: 0px;
  text-align: center;
}

.menu-instagram-icon img {
  width: 22px;
  height: auto;
  cursor: pointer;
}

/* --- GALLERIA A COLONNA --- */

.photo-column {
  display: flex;
  flex-direction: column;
  margin: 0px;
  padding: 0px;
}

.photo-column img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  margin: 0;
  padding: 0;
  display: block;
}

.photo-block {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.photo-block a {
  display: block;
  position: relative;
  z-index: 2;
}

.image-wrapper {
  position: relative;
}

.image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0); /* base trasparente */
  transition: background-color 0.3s ease;
  z-index: 3;
}

.image-wrapper:hover::after {
  background-color: rgba(0, 0, 0, 0.2); /* overlay al passaggio */
}

.photo-block img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}

.photo-caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  font-size: 32px;
  padding: 6px 12px;
  border-radius: 4px;
  z-index: 5;
}

/* --- PERSONALIZZAZIONE PER LA COPERTINA DI PERSONAL/MILANO --- */
.img-milan {
  object-position: 50% 15%;
}

/* --- PERSONALIZZAZIONE PER LA COPERTINA DI PERSONAL/DOLOMITI --- */
.img-dolomiti {
  object-position: 50% 55%;
}

/* --- PERSONALIZZAZIONE PER LA COPERTINA DI PERSONAL/VENEZIA --- */
.img-venice {
  object-position: 50% 45%;
}

/* --- PERSONALIZZAZIONE PER LA COPERTINA DI PERSONAL/PARIGI --- */
.img-paris {
  object-position: 50% 35%;
}

/* --- PERSONALIZZAZIONE PER LA COPERTINA DI PERSONAL/ROMA --- */
.img-rome {
  object-position: 50% 50%;
}

/* --- PERSONALIZZAZIONE PER LA COPERTINA DI PERSONAL/PORTRAITS --- */
.img-portraits {
  object-position: 50% 30%;
}

/* --- PERSONALIZZAZIONE PER LA COPERTINA DI PROFESSIONAL/BABY --- */
.img-baby {
  object-position: 50% 30%;
}

/* Stile bottone hamburger */
.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

.close-menu {
  display: none;
}

@media (max-width: 768px) {
  .photo-block img {
    aspect-ratio: 3 / 4;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .top-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1000;
    overflow: hidden;
  }

  .hamburger {
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    max-width: 100%;
    color: black;
  }
  
  .header-logo {
    max-width: 200px;
    margin-left: -20px;
  }

  .main-menu {
    display: none !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: black;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    z-index: 9999;
  }

  .main-menu.show {
    display: flex !important;
  }

  .menu-instagram-icon {
  display: none;
}

  .main-menu.show .menu-instagram-icon {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  }

  .main-menu.show .menu-instagram-icon img {
  width: 30px;
  height: auto;
  display: block;
  filter: invert(1);
  }

  .main-menu a {
    color: white;
    font-size: 24px;
    padding: 16px 0;
    text-decoration: none;
  }

  .close-menu {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
  display: block;
}
  
}

/* --- STILI PER PAGINE ALBUM --- */

/* Copertina in alto (come personal.html) */
/* Contenitore della copertina centrato con margini laterali */
.cover-block {
  max-width: 1800px;
  margin: 0 auto;
  padding: 20px;
}

/* Immagine di copertina senza bordi tondi */
.album-cover {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

/* Galleria 3 colonne */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;     /* centra la galleria orizzontalmente */
  gap: 5px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-image {
  width: 400px;                /* dimensione fissa più piccola */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 0;            /* niente angoli arrotondati */
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: row;
  padding: 0;
  margin: 0;
}

.lightbox.hidden {
  display: none;
}

.lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.lightbox-image {
  position: absolute;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px black;
  opacity: 1;
  filter: blur(0px);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  user-select: none;
  padding: 0 10px;
  z-index: 10000;
  transition: color 0.2s ease, font-size 0.2s ease;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: white;
  font-size: 40px;
}


@media (max-width: 768px) {
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 16px;
  }

  .gallery-image {
    width: 100%;         /* si adatta alla colonna */
    aspect-ratio: 3 / 4;  /* proporzione verticale */
    object-fit: cover;
  }

  .album-cover {
    height: 50vh !important;
    max-height: 500px !important;
    object-fit: cover !important;
    width: 100% !important;
    display: block !important;
  }

  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}
