/* Reset generali */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.full-width-container {
  width: 100vw;
  margin-left: calc(50% - 50vw); /* annulla centratura */
  overflow: hidden;
}
html {
  scrollbar-gutter: stable;
}
body {
  font-family: Verdana, sans-serif;
  overflow-x: hidden;
  background-color: #ffffff;
}
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}

/* Layout a 3 colonne */
.layout {
  display: flex;
  width: 100%;
  height: 70vh;
}
.col {
  height: 100%;
}
.col.left,
.col.right {
  width: 10%;
  background-color: #6D0D1B;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.col.center {
  width: 80%;
  position: relative;
  overflow: hidden;
  /* background-color: rgba(0, 255, 0, 0.1); */
}

/* logo */
.logo-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.logo-menu-box {
  position: fixed;
  top: 25px;
  left: 75px;
  transform: translateX(-50%);
  background-color: #4e0a14; /* colore più scuro del granata */
  padding: 15px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 1000;
}
.logo {
  width: 80px;
  height: 80px;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* SLIDESHOW */
.hero {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #6D0D1B;
  opacity: 0;
  z-index: 5;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.hero-overlay.active {
  opacity: 1;
}

/* .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
} */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}
        .slide.active {
            opacity: 1;
            z-index: 2;
        }
        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

/* Titolo centrale */
.title-central {
  position: fixed;
  top: 15px;
  left: 15%;
  width: 70%;
  text-align: center;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 3.5rem;
  color: white;
  z-index: 10000;
  user-select: none;
  pointer-events: none;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}
.title-central.hide-on-scroll {
    opacity: 0;
    transform: translate(-50%, -30px);
}

/* Colonna destra */
.right-col {
  background-color: #6D0D1B;
  width: 10%;
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  padding: 10px;
  box-sizing: border-box;
}
.right-col img {
  width: 95%;       
  height: auto;     
  align-self: center; 
  margin-top: 8px;
}

/* Fullscreen overlay */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #6D0D1B;
  z-index: 900;
  display: none;
}
.fullscreen-overlay.active {
  display: block;
}

/* Colonna centrale effetti */
.col.center.fade-granata {
  background-color: #6D0D1B;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  font-weight: bold;
  position: relative;
  transition: background-color 0.5s ease;
}
.col.center.fade-granata .hero {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.col.center.menu-active {
  background-color: #6D0D1B;
}

/* Caption */
.caption {
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 2rem;
  font-weight: bold;
  z-index: 10;
}
.captionpiccolo{
    font-size: 1.2rem;
}

/* BOX NEWS */
.info-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* <-- centra i box */
  gap: 40px;
  width: 85%;
  margin: 60px auto 40px auto;
}

.info-box {
  flex: 0 0 calc(33.333% - 40px); /* 3 per riga meno gap */
  max-width: calc(33.333% - 40px);
  box-sizing: border-box;
  text-align: center;
}
.info-box img {
  width: 80%;
  height: auto;
  object-fit: cover;
  box-shadow: 5px 5px 5px #000;
  border-radius: 6px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.info-box:hover img {
  transform: scale(1.025);      
  filter: brightness(0.80);     
}
.info-title {
  margin-top: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #6D0D1B;
}
.info-line {
  width: 100%;
  height: 2px;
  background-color: #6D0D1B;
  margin: 8px 0;
}
.info-footer {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #6D0D1B;
}
.info-text-wrapper {
  width: 80%;
  max-width: 300px;
  margin: 10px auto 0 auto; /* centrato e distanziato dall'immagine */
  text-align: center;
}

/********************************************************** mobile **********************************************/
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
                display: block;
            }
            .layout {
                flex-direction: column;
                height: auto;
            }
            .title-central {
                font-size: 22px;
                font-weight: bold;
                text-align: center;
                text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
                flex: 1;
            }
            
.info-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* o space-between */
  gap: 20px;
  width: 95%;
  margin: 0 auto;
  margin-top: 25px;
}
    .info-box {
    flex: 1 1 45%;
    max-width: 45%; /* o 100% se preferisci a tutta larghezza */
  }
            
            .info-text-wrapper {
                width: 100%;
                box-sizing: border-box;
            }
  .info-box img {
    width: 100%;
  }
            .info-title{
                font-size: 18px;
            }
            .info-line {
                width: 100%; /* stessa larghezza dell'immagine */
                height: 2px;
                background-color: #6D0D1B;
                margin: 10px 0;
            }

           .caption {
                font-size: 1.0rem;
                left: 10px;
                right: 10px;
            }
            .hero {
                height: auto;
                margin-top: 0px;
                padding-top: 0px;
                aspect-ratio: 16 / 9;
            }
            .mobile-topbar {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 60px;
                background-color: #6D0D1B;
                color: white;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0 15px;
                z-index: 1000;
            }
            .mobile-logo img {
                height: 40px;
                width: auto;
            }
            .mobile-hamburger {
                width: 30px;
                height: 22px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                cursor: pointer;
                padding: 2px; /* aggiunto padding per non far attaccare le barre ai bordi */
                box-sizing: border-box;
                background-color: transparent; /* assicurati che sia trasparente */
            }
            .mobile-hamburger span {
                display: block;
                width: 100%;
                height: 4px; /* leggermente più alto */
                background-color: white !important; /* forza il colore bianco */
                border-radius: 2px;
            }
            /* Stato X attivo */
.mobile-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.mobile-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

            .mobile-carousel {
                position: relative;
                width: 100%;
                background-color: black;
                overflow: hidden;
                padding-top: 60px;   /* spazio sopra per il topbar */
                /* min-height: 400px;    */
            }

            .mobile-carousel .slide {
                display: none;
                opacity: 0;
                transition: opacity 1s ease-in-out;
                position: relative;  /* evita sovrapposizioni */
            }

            .mobile-carousel .slide.active {
                display: block;
                opacity: 1;
            }

            .mobile-carousel img {
                width: 100%;
                height: auto;
                object-fit: cover; /* mostra tutta l'immagine senza tagli */
                display: block;
                margin: 0 auto;
                /* max-height: 90vh; */
            }
            .caption {
                color: white;
                /* background-color: rgba(0, 0, 0, 0.6); */
                font-size: 1rem;
                padding: 10px;
            }
        }
