/* ⚙️ REGOLE FONDAMENTALI */
* { box-sizing: border-box; }

a {
  text-decoration: none;
  color: black;
}
a:hover, a:visited {
  text-decoration: none;
  color: black;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Times New Roman", Times, serif;
  font-weight: normal;
  background-color: white;
  font-size: 24px;
  line-height: 25px;
  color: black;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: #FFFF00; color: black; }
::-moz-selection { background: #FFFF00; color: black; }

/* ------------------------------------- */
/* 🔝 HEADER FISSO */
/* ------------------------------------- */

.footer1 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 10px 10px 10px;
  margin: 0;
  background-color: white;
  z-index: 1000;
  color: black;
  font-weight: normal;
  font-size: inherit;
  font-family: inherit;
  box-sizing: border-box;
}

.header-left { text-align: left; }
.header-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.header-location { margin-top: 0; }
.nav-link { margin-top: 0; }

/* Homepage: header trasparente, solo orologio in overlay, niente barra che riserva spazio */
body.homepage .footer1 {
  justify-content: flex-end;
  background-color: transparent;
  pointer-events: none;
}
body.homepage #div_horloge {
  color: black;
  mix-blend-mode: none;
}

/* ------------------------------------- */
/* 🎞️ SLIDESHOW FULLSCREEN A DISSOLVENZA (index.html) */
/* ------------------------------------- */

.slideshow-container {
  position: relative;
  overflow: hidden;
  background-color: white;
}

.slideshow-container.fullscreen {
  width: 100vw;
  height: 100vh;
  margin: 0;
  box-sizing: border-box;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
  overflow: hidden;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

/* MOBILE (default): comportamento invariato, immagine intera ancorata in alto a sx, vuoto dove serve */
.slide-media {
  object-fit: contain;
  object-position: left top;
}

/* DESKTOP: le immagini riempiono sempre tutta la pagina, senza vuoti */
body.desktop-mode .slide-media {
  object-fit: cover;
  object-position: center;
}

/* DESKTOP: due immagini verticali affiancate, ognuna a piena altezza, insieme rompono tutta la pagina */
.slide-pair {
  display: flex;
  width: 100%;
  height: 100%;
}
.pair-half {
  position: relative;
  flex: 1 1 50%;
  height: 100%;
  overflow: hidden;
}
.pair-half .slide-media {
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 50px;
  left: 100px;
  margin: 0;
  color: white;
  mix-blend-mode: difference;
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.0;
  z-index: 5;
  pointer-events: none;
}

@media (hover: hover) {
  .video-toggle { cursor: pointer; }
}
.video-toggle::-webkit-media-controls {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.slideshow-caption {
  position: fixed;
  top: 50%;
  left: 100px;
  transform: translateY(-50%);
  color: black;
  mix-blend-mode: none;
  z-index: 10;
  text-align: left;
  font-family: inherit;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

/* ------------------------------------- */
/* 👥 PAGINA ABOUT */
/* ------------------------------------- */

.about-wrapper {
  padding: 90px 10px 60px 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.about-columns > div {
  flex: 1 1 0;
}

.about-columns h2 {
  font-weight: normal;
  font-size: inherit;
  margin: 0 0 6px 0;
}

.about-columns p {
  margin: 0 0 16px 0;
}

.about-list {
  margin: 0 0 16px 0;
}
.about-list div {
  margin-bottom: 2px;
}

.about-bio {
  min-height: calc(100vh - 90px - 60px); /* stessa area verticale del resto del contenuto */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-bio p {
  margin: 0 0 16px 0;
  max-width: 480px;
}

/* ------------------------------------- */
/* 📱 MOBILE */
/* ------------------------------------- */

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

  .footer1 {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 10px;
    height: auto;
  }
  .header-right {
    align-items: flex-start;
    text-align: left;
    margin-top: 10px;
  }

  .slideshow-container.fullscreen {
    height: 100vh;
  }
  .slideshow-caption {
    left: 10px;
    font-size: 20px;
  }
  .video-toggle { pointer-events: none; }

  .about-wrapper { padding-top: 120px; }
  .about-columns {
    flex-direction: column;
    gap: 30px;
  }
}
