/* ===== STRUTTURA BASE ===== */
section {
  /* border: 1px solid red; */
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px; 
}

/* sotto-menu */
.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%;          /* sotto l’elemento principale */
  left: 0;
  background: black;
  display: none;
  min-width: 160px;
  border: 1px solid #444;
  z-index: 1000;
}

/* voci interne */
.submenu li a {
  padding: 8px 12px;
  color: white;
  text-align: left;
}

.submenu li a:hover {
  background: #222;
}
.content {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 80%;
  height: 80vh;
  color: #fff;
  margin-left: 250px;
}

/* ===== COLONNE ===== */
.right-text, .left-text, .right-pics, .left-pics {
  position: relative;
  width: 40%;
  margin: 10px;
}

.left-text, .left-pics {
  order: 0;
}

.right-text, .right-pics {
  order: 1;
}

/* Bordo di debug */
.left-text, .right-text {
  /* border: 1px solid salmon; */
}

.left-pics, .right-pics {
  /* border: 1px solid white; */
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

/* ===== LISTA IMMAGINI ===== */
.left-pics ul,
.right-pics ul {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
  height: 100%;
}

/* ===== BLOCCO IMMAGINE ===== */
.left-pics li,
.right-pics li {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* ===== IMMAGINE ===== */
.left-pics img,
.right-pics img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: object-fit 0.5s ease, transform 0.5s ease;
}

/* ===== EFFETTO HOVER ===== */
.left-pics li:hover img,
.right-pics li:hover img {
  object-fit: contain;   /* mostra immagine intera */
  transform: scale(1.02); /* piccolo zoom per morbidezza */
  background-color: #000; /* opzionale, riempie gli spazi laterali */
}

.content h1 {
    font-size: 20px;
    font-weight: 200;
    font-style: italic;
}

@media (max-width: 724px) {

  .content {
    width: 99%;
    margin:auto;  
  }

  .right-text, .left-text, .right-pics, .left-pics {
  position: relative;
  width: 50%;
  margin: 10px;
}

  .left-text {
    text-align: right;
  }


  .content p {
    font-size: 12px;
  }
}


