/* @font-face per il font personalizzato */
@font-face {
    font-family: 'Chilly Variable';
    src: url('fonts/Chilly-Variable.ttf') format('truetype');
    font-weight: 400 700; /* Adatta i pesi in base ai file disponibili */
    font-style: normal;
}

h1, h2, h3, p {
    margin: 0;
}
/* Stile generale del corpo */
body {
    font-family: 'Poppins', sans-serif;
    color: #1F1F1F;
    background-color: #E3E3E3;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Titoli principali (H1) */
h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 60px;
    line-height: 110%;
}

/* Titoli secondari (H2) */
h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: normal;
}

/* Paragrafi */
p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
}

/* Pulsanti, logotipo e testi speciali */
button, .logo, .special-text {
    font-family: 'Chilly Variable', sans-serif;
    font-weight: 600;
}


/* Pulsanti piccoli */
button.small {
    font-family: 'Chilly Variable', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #FFFFFF;
    background-color: #1F1F1F;
    padding: 8px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

/* Logotipo */
.logo {
    font-family: 'Chilly Variable', sans-serif;
    font-weight: 600;
    font-size: 108px;
    line-height: normal;
}

/* Titoli H1 riquadrati */
h1.boxed {
    font-family: 'Chilly Variable', sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: normal;
}

/* Media Query per dispositivi mobili */
@media (max-width: 768px) {
    /* Titoli principali (H1) */
    h1 {
        font-size: 36px;
        line-height: 105%;
    }

    /* Titoli secondari (H2) */
    h2 {
        font-size: 16px;
    }

    /* Paragrafi */
    p {
        font-size: 12px;
    }

    /* Pulsanti piccoli */
    button.small {
        font-size: 16px;
        padding: 6px 20px;
    }

    /* Logotipo */
    .logo {
        font-size: 72px;
    }

    /* Titoli H1 riquadrati */
    h1.boxed {
        font-size: 32px;
    }

    .highlight{
      font-size: 16px;
    }
    
}

.page-wrapper {
    position: relative;
}

/* HEADER */

/* Header generale: posizionato in alto, centrato orizzontalmente */
header {
  display: flex;
  justify-content: center;
  align-items: center;
 margin: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: transparent;
}

/* Pillola centrale dell'header */
/* Stile della pillola dell'header */


.header-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 16px;
  border-radius: 20px;
  background-color: #FFFFFF;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  width: fit-content;
}

.hamburger {
  display: none; /* Verrà mostrata solo a schermi piccoli */
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #F72585;
  border-radius: 12px;
  transition: 0.3s;
}

/* Menu di navigazione */
.header-pill nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}


/* Logo testuale GiuntiTrail */
.header-text-logo {
  color: #F72585;
    position: absolute;
    font-family: 'Chilly Variable', sans-serif;
    width: 100px;
    height: auto;
    font-weight: 600;
    left: 0;
    top: 0;
    margin-left: 60px;
    margin-top: 16px;
    opacity: 0; /* Inizialmente nascosto */
    transition: opacity 0.5s ease-in-out;
}

.header-text-logo.visible {
    opacity: 1; /* Appare quando la Hero è fuori dallo schermo */
}

.header-logo-link {
  text-decoration: none;
  color: inherit;
}

.header-logo {
  position: relative;
  max-height: 40px;
  width: 60px;
  color: #1F1F1F; /* o qualsiasi altro colore */
}


/* Link del menu */
.header-pill nav ul li a {
    text-decoration: none;
    font-family: 'Chilly Variable', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #1F1F1F;
    padding: 8px 16px;
    border-radius: 5px;
    position: relative; /* Necessario per la sottolineatura */
}

/* Effetto sottolineatura all'hover */
.header-pill nav ul li a:not(.btn-prenota):not(.btn-livello)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: 0;
    left: 50%;
    background-color: #1F1F1F;
    transition: all 0.3s ease-in-out;
}

.header-pill nav ul li a:not(.btn-prenota):not(.btn-livello):hover::after {
    width: calc(100% - 32px); /* Sottrae il padding laterale totale */
    left: 16px; /* Uguale al padding-left */
}

/* Pulsante "Prenota" con animazione continua */
.header-pill nav ul li a.btn-prenota {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 24px;
    font-family: 'Chilly Variable', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
    background-color: #1F1F1F;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    position: relative; /* Necessario per la rotazione dell'ombra */
    box-shadow: 0px 4px 8px 3px rgba(255, 0, 153, 0.15), 0px 1px 3px 0px rgba(0, 64, 255, 0.30);
    animation: rotateShadow 4s linear infinite; /* Animazione continua */
    transition: background-color 0.3s ease-in-out;
}

.header-pill nav ul li a.btn-prenota:hover {
    background-color: #F72585;
}

/* Pulsante "Scopri il tuo livello" */
.header-pill nav ul li a.btn-livello {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 24px;
    font-family: 'Chilly Variable', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #1F1F1F;
    background-color: none;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #1F1F1F;
    position: relative; /* Necessario per la rotazione dell'ombra */
    transition: all 0.3s ease-in-out;
}

.header-pill nav ul li a.btn-livello:hover {
    color: #F72585;
    border-color: #F72585;
}

/* ----------- MEDIA QUERY per mobile < 768px ----------- */
@media (max-width: 1200px) {

  .header-pill {
    width: 100vw;
    border-radius: 12px;
    background-color: transparent;
    box-shadow: none;
    display: flex;
    justify-content: flex-end; /* Sposta il contenuto a destra */
    padding: 0px 12px 0px 0px;
  }

  header{
    justify-content: right;
    padding: 8px 0px;
  }

  .header-text-logo {
    z-index: 1000;
    font-size: 18px;
    margin-left: 12px;
    margin-top: 12px;
  }


  .header-logo {
    position: relative;
    max-height: 40px;
    width: 40px;
    color: #f72585; /* o qualsiasi altro colore */
  }

  /* L'hamburger appare */
  .hamburger {
    display: flex; /* visibile su mobile */
  }

  /* Il menu orizzontale si nasconde di default */
  .header-pill nav ul {
    display: none;
    position: fixed; /* Schermo intero */
    top: 0; /* Inizia dall'angolo in alto a sinistra */
    left: 0;
    width: 100vw; /* Larghezza intera */
    height: 110vh; /* Altezza intera della viewport */
    flex-direction: column; /* voci in colonna */
    justify-content: center; /* Centra verticalmente */
    align-items: center; /* Centra orizzontalmente */
    gap: 30px;
    background: rgba(227, 227, 227, 0.9); /* Sfondo con trasparenza */
    backdrop-filter: blur(20px); /* Effetto sfocatura */
    background: linear-gradient(to bottom right, rgba(227, 227, 227, 0.6) 50%, rgba(0, 64, 255, 0.2) 100%); /* Gradiente diagonale */
    border-radius: 0;
    box-shadow: none;
    z-index: -1;
    margin-top: -50px;
  }

  /* Se hamburger è "attivo", mostra il menu */
  /* Usiamo una classe .open sul nav o sul ul */
  .header-pill nav ul.open {
    display: flex; /* appare la colonna di voci */
  }


  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .header-pill .logo{
    display: none;
  }

}

/* Keyframe per la rotazione dell'ombra */
@keyframes rotateShadow {
    0% {
        box-shadow: 0px 4px 8px 3px rgba(255, 0, 153, 0.15), 0px 1px 3px 0px rgba(0, 64, 255, 0.30);
    }
    25% {
        box-shadow: -4px 4px 8px 3px rgba(255, 0, 153, 0.15), 0px -1px 3px 0px rgba(0, 64, 255, 0.30);
    }
    50% {
        box-shadow: 0px -4px 8px 3px rgba(255, 0, 153, 0.15), 0px 1px -3px 0px rgba(0, 64, 255, 0.30);
    }
    75% {
        box-shadow: 4px 4px 8px 3px rgba(255, 0, 153, 0.15), -1px 1px 3px 0px rgba(0, 64, 255, 0.30);
    }
    100% {
        box-shadow: 0px 4px 8px 3px rgba(255, 0, 153, 0.15), 0px 1px 3px 0px rgba(0, 64, 255, 0.30);
    }
}



html, body {
    overscroll-behavior: none; /* blocca i rimbalzi */
    margin: 0;
    padding: 0;
    width: 100%; /* o la larghezza massima che desideri */
    margin: 0 auto;    /* centra orizzontalmente nel body */
  }
  @media (max-width: 768px) {
    html, body {
      max-width: 100vw;
    }

  }



  /* AMAZING SECTION */
.amazing-section {
  justify-content: center;
  position: relative;
  width: 100%;
  height: 200vh;
}

.amazing-background-mobile {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  transform-origin: center;
  transition: border-radius 0.3s ease, transform 0.3s ease;
  display: none;
}

.amazing-background {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  transform-origin: center;
  transition: border-radius 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.amazing-logo {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: fixed;
  max-width: 400px;
  width: 100%;
  height: auto;
  z-index: 2;
  fill: white;
  mix-blend-mode: difference;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Aggiungi la banda con gradiente e l'icona */
.amazing-gradient-band {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
  z-index: 100;
  margin-top: calc(100vh - 100px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.amazing-gradient-band svg {
  width: 32px;
  height: 32px;
  color: white;
  transform: rotate(90deg);
  margin-top: 10px;
}
/* Media query per mobile */
@media (max-width: 768px) {
  .amazing-logo {
    max-width: 200px;
  }
  .amazing-background-mobile {
    display: block;
    position: sticky;
    top: 0;
    left: 0;
    max-width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    transform-origin: center;
    transition: border-radius 0.3s ease, transform 0.3s ease;
  }
  .amazing-background {
    display: none;
  }

  .amazing-gradient-band {
    height: 40px;
    width: 40px;
    margin-top: calc(100vh - 60px);
  }
  
  .amazing-gradient-band svg {
    width: 24px;
    height: 24px;
  }
}



/* HERO SECTION */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    text-align: center;
    overflow: hidden;
    background-color: #e3e3e3;
    padding: 0px 0px 100px 0px;
    z-index: 100;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    z-index: 3;
    margin-bottom: 40px;
    /* Rimuoviamo le animazioni CSS poiché ora gestite da JS */
    will-change: transform, opacity;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    will-change: transform, opacity;
}


/* Manteniamo solo le animazioni necessarie per altri elementi */
@keyframes fadeInVideo {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Media queries esistenti */
@media (max-width: 1200px) {
    .hero-content {
        gap: 20px;
    }
}

.hero .subtitle {
    flex-direction: column;
    display: flex;
    gap: 16px;
    color: #1F1F1F;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    text-align: center;
    margin-bottom: 16px;
}

.hero .highlight {
    display: inline-flex;

    padding: 8px 24px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    border: 0.5px solid #1F1F1F;
    background-color: transparent;
    transition: opacity 0.1s ease-in-out;
    font-size: 22px;
}

.hero .description {
    max-width: 500px;
}

.hero-content .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.hero-video {
    position: absolute;
    width: 50vw;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    opacity: 0;
    animation: fadeInVideo 0.8s ease-out forwards 1.2s;
}

.hero-video.left {
    left: 0;
}

.hero-video.right {
    right: 0;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(227, 227, 227, 0) 10%, #e3e3e3 50%, rgba(227, 227, 227, 0) 90%);
    z-index: 2;
    pointer-events: none;
}

/* Animazioni */
@keyframes fadeInVideo {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLogo {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInButton {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInHeader {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}








/* cont
/* Sezione esperienza */
/* Stato iniziale: parte più in basso e invisibile */
.experience-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    height: 250vh; /* Occupa tutta l'altezza della viewport */
    background-color: #E3E3E3;
    margin-top: 100px;
    opacity: 0; /* Nasconde la sezione all'inizio */
    transition: transform 1s ease-out, opacity 1s ease-out, box-shadow 0.5s ease-in-out;
}

/* Quando diventa visibile */
.experience-section.animate-in {
    transform: translateY(0);
    opacity: 1;
}
/* container esperienza */
.experience-container {


    position: sticky;
    display: flex; /* Dispone le colonne orizzontalmente */
    justify-content: center;
    width: 100%;
    bottom: 0;
    height: 100vh;
    align-self: flex-end; /* Allinea il contenuto verso il basso */
    background-color: #E3E3E3;
    gap: 80px;
    padding-bottom: 5vh;
}

.experience-content-wrapper {


    display: flex; /* Dispone le colonne orizzontalmente */
    justify-content: center;
    bottom: 0;
    max-width: 1440px;
    align-self: flex-end; /* Allinea il contenuto verso il basso */
    gap: 80px;
    z-index: 10;
}
/* Colonna sinistra */
.experience-content {
    max-width: 500px; /* Occupa il 40% della larghezza */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Titolo principale */
.experience-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 110%;
    color: #1F1F1F;
}

/* Box descrittivo */
.experience-box {
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlight-big{
  font-family: 'Chilly Variable', sans-serif;
  display: inline-flex;
    padding: 8px 24px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    border: 0.5px solid #1F1F1F;
    background-color: transparent;
    transition: opacity 0.1s ease-in-out;
    font-size: 22px;
    width: fit-content;
}
/* Titolo del box */
.experience-box h2 {
    font-family: 'Chilly', sans-serif;
    font-weight: 600;
    color: #1F1F1F;
}


/* Paragrafo del box */
.experience-box p {
    font-family: 'Chilly', sans-serif;
    color: #1F1F1F;
}

/* Contenitore dei pulsanti di highlight */
.highlight-container {
    display: flex;
    gap: 10px;
}

/* Pulsanti di highlight */
.experience-section .highlight {
    display: inline-flex;
    padding: 8px 24px;
    font-size: 14px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    border: 0.5px solid #1F1F1F;
    background-color: transparent;
}

/* Colonna centrale (slider) */
.experience-divider {
    width: 5%; /* Occupa il 5% della larghezza */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Linea divisoria */

.divider-line {
    border-radius: 2px;
    width: 4px;
    height: 1%; /* Altezza iniziale a 0 */
    background-color: #F72585; /* Colore dell'accento rosa */
    transition: height 0.3s ease-out; /* Transizione fluida */
    align-self: flex-start;
}

/* Colonna destra */
.experience-video-box {
    width: 40vw;
    display: flex;
    justify-content: center;
    align-items: bottom;
}

/* Video */
.experience-video {
    width: 100%;
    height: 80vh;
    object-fit: cover; /* Ritaglia il video per riempire il contenitore */
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    filter: brightness(1.5) saturate(1.0) sepia(0.2) hue-rotate(0deg); /* Aumenta la luminosità, mantiene il rosa saturo, aggiunge un filtro seppia */
}

.experience-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/mountain-experience.webp');
    background-size: cover;
    background-position: center;
    z-index:1; /* Posiziona l'immagine dietro tutto */
}
.mountain-experience-img{
    position: absolute;
    width: 100%;
    z-index: 2;
    pointer-events: none;
}
.experience-video-box-mobile{
  display: none;
}

.experience-video-overlay {
  display: none;
}
/* Media Query per la sezione experience sotto  */
@media (max-width: 1200px) {

  .experience-content{
    max-width: 35vw;
  }

  .experience-video-box {
    width: 40vw;
  }

}

/* Media Query per la sezione experience su mobile */
@media (max-width: 728px) {


    .experience-section {
        height: 300vh; /* Riduciamo leggermente l'altezza totale */
        margin-top: 0px;
        
    }

    .experience-container {
        gap: 12px;
        padding-bottom: 0px;
    }
    .experience-background {

      background-image: none;
  }
    .experience-content-wrapper {
        flex-direction: column; /* Imposta layout verticale */
        gap: 20px;
        align-items: flex-start;
        height: 100vh;
        justify-content: start;
        
    }

    /* Riposiziona la linea divisoria a sinistra */
    .experience-divider {
        position: absolute;
        top:0;
        left: 0px;
        width: 3px;
        height: 100%;
    }

    .experience-section .highlight {
      font-size: 12px;
    }
    



    .divider-line {
        width: 3px;
        height: 100%;
        align-self: stretch;
    }

    /* Adatta il contenuto principale */
    .experience-content {
        max-width: 320px;
        gap: 8px;
        padding-top: 15vh;
    }

    .experience-title {
        font-size: 36px;
    }

    /* Adatta il video */
    .experience-video-box {
       display: none;
    }

    .experience-video {
      box-shadow: none;
      transform: scale(1.5);
      border-radius: 0px;
        width: 100%;
        height: 100%; /* Altezza video come richiesto */
    }

    .experience-video-overlay {
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to bottom, rgba(227, 227, 227, 1) 40%, rgba(227, 227, 227, 0) 60%); /* Sfumatura dall'alto verso il basso */
      pointer-events: none; /* Permette agli eventi del mouse di passare attraverso l'overlay */
      z-index: 1; /* Assicura che l'overlay sia sopra il video */
  }
    .experience-video-box-mobile{
      display: block;
      overflow: hidden;
      position: absolute;
      width: 100vw;
      height: 60vh;
      display: flex;
      justify-content: center;
      align-items: bottom;
      bottom: 0;
    }

    /* Adatta il box esperienza */
    .experience-box {
        padding: 12px;
        
    }

    /* Adatta i pulsanti highlight */
    .highlight-container {
        flex-wrap: wrap;
    }
    /* Stile per i pulsanti di highlight per evitare che appaiano come link su iOS */
.experience-section .highlight {
  color: #1F1F1F; /* Colore del testo */
  text-decoration: none; /* Rimuove la sottolineatura */
  -webkit-tap-highlight-color: transparent; /* Rimuove il colore di evidenziazione su iOS */
}
}


/* ------------------------------
   JOURNEY SECTION
------------------------------ */

.journey-section {
  margin-top: -25vh; /* Aumentato da -15vh a -25vh per ridurre lo spazio bianco */
  min-height: 300vh; /* Altezza sufficiente per lo scroll */
  position: relative;
  opacity: 1;
  transition: all 1s cubic-bezier(0.17, 0.67, 0.24, 0.99);
}

.journey-container {
  position: sticky;
  top: 0; /* Necessario per sticky positioning */
  height: 100vh; /* Altezza viewport per rimanere fisso */
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center; /* Centrato orizzontalmente */
  justify-content: center; /* Centrato verticalmente */
  width: 80%;
  margin: 0 auto; /* Centrato nel contenitore */
  overflow: hidden;
}

.journey-title {
  color: var(--testo, #1f1f1f);
  font-family: "Poppins-SemiBold", sans-serif;
  font-size: 28px;
  line-height: 120%;
  font-weight: 600;
  position: absolute; /* Cambiato da relative a absolute */
  text-align: center; /* Cambiato da left a center */
  top: 50%; /* Centrato verticalmente */
  left: 50%; /* Centrato orizzontalmente */
  transform: translate(-50%, 70px); /* Aggiustato per mantenere l'animazione e centrare */
  opacity: 0;
  transition: all 1s cubic-bezier(0.17, 0.67, 0.24, 0.99);
  z-index: 10; /* Aggiunto per assicurarsi che sia sopra gli altri elementi */
  width: 80%; /* Larghezza controllata */
  max-width: 800px; /* Larghezza massima */
  filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.1));
}

.journey-title-span, .journey-title-span3 {
  color: var(--testo, #1f1f1f);
  font-family: "Poppins-SemiBold", sans-serif;
  font-size: 28px;
  line-height: 120%;
  font-weight: 600;
  
}

.journey-title-span2, .journey-title-span4{
  color: var(--testo, #1f1f1f);
  font-family: "Poppins-SemiBold", sans-serif;
  font-size: 28px;
  line-height: 120%;
  font-weight: 600;
  text-decoration: underline;
}

.journey-content {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
  opacity: 0;
  transform: translateY(70px);
  transition: all 1s cubic-bezier(0.17, 0.67, 0.24, 0.99);
  width: 100%;
  margin-top: 40px;
}

.journey-column {
  display: flex;
  flex-direction: column;
  gap: 21px;
  flex-shrink: 0;
  width: 478px;
  position: relative;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s cubic-bezier(0.17, 0.67, 0.24, 0.99);
}

.journey-column:nth-child(2) {
  transform: translateX(50px); /* Inizia spostato a destra */
}

.journey-section.content-visible .journey-column {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); /* Aggiungo un effetto elastico */
}

/* Delay progressivo per le colonne quando il contenuto è visibile */
.journey-section.content-visible .journey-column:nth-child(1) { transition-delay: 0.1s; }
.journey-section.content-visible .journey-column:nth-child(2) { transition-delay: 0.3s; }

.journey-div-big {
  background: var(--testo, #1f1f1f);
  border-radius: 20px;
  align-self: stretch;
  height: 375px;
  position: relative;
  align-content: flex-end;
  box-shadow: var(
    --drop-shadow-600-box-shadow,
    0px 16px 32px -8px rgba(12, 12, 13, 0.4)
  );
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  transform: scale(0.95);
  opacity: 0.8;
}

.journey-div {
  background:#1f1f1f;
  border-radius: 20px;
  align-self: stretch;
  align-content: center;
  height: 226px;
  position: relative;
  box-shadow: var(
    --drop-shadow-600-box-shadow,
    0px 16px 32px -8px rgba(12, 12, 13, 0.4)
  );
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  transform: scale(0.95);
  opacity: 0.8;
}

.journey-section.content-visible .journey-div-big,
.journey-section.content-visible .journey-div {
  transform: scale(1);
  opacity: 1;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Classe per l'animazione */
.journey-div-big.animate,
.journey-div.animate {
  border-color: #f72585;
  border-width: 4px;
  box-shadow: inset 0px 0px 48px 4px rgba(247, 37, 133, 0.5),
              0px 16px 32px -8px rgba(12, 12, 13, 0.4);
  transform: scale(1.05);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.journey-big-text {
  color: #ffffff;
  text-align: left;
  font-family: "Poppins-SemiBold", sans-serif;
  font-size: 40px;
  line-height: 120%;
  font-weight: 600;
  position: relative;
  max-width: 80%;
  margin-left: 48px;
  margin-bottom: 30px;
}

.journey-small-text {
  color: #ffffff;
  text-align: left;
  font-family: "Poppins-SemiBold", sans-serif;
  font-size: 28px;
  line-height: 120%;
  font-weight: 600;
  position: relative;
  max-width: 80%; 
  margin-left: 48px;
}


/* Animazione degli elementi interni */
.journey-title, .journey-content {
  opacity: 0;
  transform: translateY(70px);
  transition: all 1s cubic-bezier(0.17, 0.67, 0.24, 0.99);
}

/* Quando la sezione diventa visibile */
.journey-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Sostituiamo le vecchie animazioni con le nuove */
/* .journey-section.animate-in .journey-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.journey-section.animate-in .journey-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.journey-section.animate-in .journey-column {
  opacity: 1;
  transform: translateX(0);
}

.journey-section.animate-in .journey-column:nth-child(1) { transition-delay: 0.6s; }
.journey-section.animate-in .journey-column:nth-child(2) { transition-delay: 0.8s; } */

/* Stato dei vari steps di animazione basati sulla classe aggiunta da JavaScript */
.journey-section.title-visible .journey-title {
  opacity: 1;
  transform: translate(-50%, 0); /* Animazione mantenendo il centro */
}

.journey-section.title-hidden .journey-title {
  opacity: 0;
  transform: translate(-50%, -50px); /* Animazione mantenendo il centro */
  transition: all 0.5s cubic-bezier(0.17, 0.67, 0.24, 0.99);
}

.journey-section.content-visible .journey-content {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s cubic-bezier(0.17, 0.67, 0.24, 0.99);
}

.journey-section.content-visible .journey-column {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); /* Aggiungo un effetto elastico */
}

.journey-div-big, .journey-div {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.journey-hover-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--testo, #1f1f1f);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
}

.journey-hover-text p {
  color: #ffffff;
  font-family: "Poppins-Regular", sans-serif;
  font-size: 20px;
  line-height: 140%;
  margin: 0;
  padding: 48px;
}



.plus-icon {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.plus-line {
  position: absolute;
  background-color: white;
  transition: all 0.3s ease;
}

.plus-line.horizontal {
  width: 24px;
  height: 1px;
  top: 50%;
  transform: translateY(-50%);
}

.plus-line.vertical {
  width: 1px;
  height: 24px;
  left: 50%;
  transform: translateX(-50%);
}
.journey-div-big:hover .journey-hover-text,
.journey-div:hover .journey-hover-text {
  opacity: 1;
}

.journey-div-big:hover .plus-line.vertical,
.journey-div:hover .plus-line.vertical {
  transform: translateX(-50%) rotate(90deg) scale(0);
}

/* Aggiungi dopo le classi journey-div e journey-div-big */
.combo-1 {
  background-image: url('images/journey-img1.webp');
  background-size: cover;
  background-position: center;
}

.combo-2 {
  background-image: url('images/journey-img2.webp');
  background-size: cover;
  background-position: center;
}

.combo-3 {
  background-image: url('images/journey-img3.webp');
  background-size: cover;
  background-position: center;
}

.combo-4 {
  background-image: url('images/journey-img4.webp');
  background-size: cover;
  background-position: center;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(31, 31, 31, 1) 0%, rgba(31, 31, 31, 0.4) 100%);
  pointer-events: none;
}

@media (min-aspect-ratio: 16/9) and (max-aspect-ratio: 16/1) {
  .journey-container {
    width: 768px;
  }

  .journey-column {
    width: 375px;
  }

  .journey-big-text {
    font-size: 32px;
    margin-left: 32px;
  }

  .journey-small-text {
    font-size: 24px;
    margin-left: 32px;
  }

  .journey-div-big {
    height: 260px;
  }

  .journey-div {
    height: 140px;
  }

  .journey-hover-text p {
    font-size: 14px;
    padding: 32px;
  }

  .journey-title,
  .journey-title-span,
  .journey-title-span2,
  .journey-title-span3,
  .journey-title-span4 {
    font-size: 24px;
  }
  }


@media (max-width: 1200px) {
  .journey-container {
    width: 768px;
  }

  .journey-column {
    width: 375px;
  }

  .journey-big-text {
    font-size: 32px;
    margin-left: 32px;
  }

  .journey-small-text {
    font-size: 20px;
    margin-left: 32px;
  }

  .journey-div-big {
    height: 260px;
  }

  .journey-div {
    height: 140px;
  }

  .journey-hover-text p {
    font-size: 14px;
    padding: 32px;
  }

  .journey-title,
  .journey-title-span,
  .journey-title-span2,
  .journey-title-span3,
  .journey-title-span4 {
    font-size: 24px;
  }
}



@media (max-width: 768px) {

  .journey-section {
   justify-content: center;
   align-items: center;
   width: 100%;
   max-width: 100vw;
   margin: -40vh auto;
   padding: 0;
  }

 
  .journey-content {
    flex-direction: column;
    max-width: 320px;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 0px;
    margin: 0 auto;
    left: 0;
    right: 0;
  }
  
  .journey-div, .journey-div-big{
    max-width: 320px;
    width: 100%;
    border-radius: 12px;
    align-content: center;
    align-self: center;
    margin: 0 auto;
    padding: 0;
    left: 0;
    right: 0;
  }

  .journey-column {
    align-items: center;
    width: 100%;
    gap: 16px;
    margin: 0 auto;
    padding: 0;
    left: 0;
    right: 0;
    transform: none;
  } 


  .journey-container {
    justify-content: center;
    align-items: center;
    margin: 0 auto; 
    padding: 0;
    width: 100%;
    max-width: 320px;
    gap: 18px;
    left: 0;
    right: 0;
  }
  
  .journey-div-big {
    width: 320px;
    height: 120px;

  }
  .journey-div {
    height: 120px;
  }

  .journey-big-text, .journey-small-text {
    font-size: 18px;
    width: 300px;
    position: relative;
    margin-left: 12px;
    margin-bottom: 0px;
    font-weight: 400;

  }
  .journey-title {
    font-size: 22px;
    width: 90%; /* Larghezza maggiore su mobile */
  }

  .journey-title-span2, .journey-title-span4, .journey-title-span, .journey-title-span3 {
    font-size: 22px;
  }


  .journey-div-big:hover .journey-big-text,
  .journey-div:hover .journey-small-text {
    opacity: 0;
  }
  
  .journey-hover-text p {
    align-self: center;
    justify-content: center;
    font-size: 12px;
    padding: 0px;
    margin-left: 12px;
  }
  
  .journey-div-big.active .journey-hover-text,
  .journey-div.active .journey-hover-text {
    opacity: 1;
  }
  





  .plus-icon {
    bottom: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
  }

  .plus-line.horizontal {
    width: 20px;
  }

  .plus-line.vertical {
    height: 20px;
  }


}

@media (max-width: 380px) {
  .journey-container {
    width: 240px;
  }

  .journey-content {
    max-width: 240px;
    gap: 12px;

  }
  .journey-column {
    gap: 12px;
  }

  .journey-title {
    font-size: 16px;
  }

  .journey-title-span2, .journey-title-span4, .journey-title-span, .journey-title-span3 {
    font-size: 16px;
  }

  .journey-big-text, .journey-small-text {
    font-size: 16px;
  }

  .journey-div-big, .journey-div {
    height: 120px;
  }
}





/* cont
/* Sezione maestri più hotels nested in combined-section */


.combined-section {
    position: relative;
    width: 100%;
    height: 200vh; /* Altezza totale della sezione */
    background-color: #E3E3E3;
}
.sticky-wrapper {
    position: sticky;
    height: 100vh; /* Altezza combinata per gestire entrambe le sezioni sticky */
    width: 100%;
    top: 0;
    width: 100%;
    overflow: hidden;
}

/* Sezione maestri */
.masters-section {
    position: absolute;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    width: 100%;
    top: 0;
    left: 0;
    align-self: flex-end; /* Allinea il contenuto verso il basso */
    z-index: 9;
}

.hotels-section {
    position: absolute;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    width: 100%;
    top: 0;
    left: 0;
    align-self: flex-end; /* Allinea il contenuto verso il basso */
    z-index: 10; 
   
}


/* Immagine di sfondo */
.background-image {
    position: absolute;
    top: 0;
    margin-top: 35vh;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/mountain-maestri.webp') center/cover no-repeat;
    z-index: 1;
}

/* Contenuto centrale */
.masters-content {
    position: relative;
    align-items: center;
    display: flex; /* Disposizione orizzontale */
    flex-direction: column;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    margin-top: -30vh;
}



/* Titolo e highlight allineati */
.masters-title-wrapper {
    display: flex; /* Disposizione orizzontale */
    justify-content: center; /* Allinea al centro */
    align-items: center; /* Allinea verticalmente */
    gap: 16px; /* Spazio tra il titolo e il box */
    flex-wrap: nowrap; /* Evita il ritorno a capo */
    margin-bottom: 20px; /* Spazio inferiore */
}

/* Titolo */
.masters-title {
    font-family: 'Poppins', sans-serif;
    font-size: 60px;
    font-weight: 600;
    color: #1F1F1F;
    line-height: 110%;
    display: flex; /* Dispone il titolo e il box highlight sulla stessa riga */
    justify-content: center;
    align-items: center;
    gap: 10px; /* Spaziatura tra il titolo e il box */
    flex-wrap: nowrap; /* Impedisce che vadano a capo */

}

/* Highlight riquadrato */
.highlight-box {
    font-family: 'Chilly Variable', sans-serif;
    font-size: 48px;
    font-weight: 600;
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid #1F1F1F;
    border-radius: 22px;
}

/* Descrizione */
.masters-description {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #1F1F1F;
    margin-bottom: 40px;
}

/* Immagine centrale */
.masters-image img {
    width: 100%;
    max-width: 65vw;
    align-self: flex-start;
    position: absolute;
    pointer-events: none;
    bottom: 0;
    margin-bottom: -30vh;
    z-index: 10;
 
}

.description-content {
    display: flex; /* Disposizione orizzontale */
    flex-direction: column;
    max-width: 600px;
    justify-content: center; /* Allinea al centro */
    align-items: center; /* Allinea verticalmente */
    gap: 16px; /* Spazio tra il titolo e il box */
    flex-wrap: nowrap; /* Evita il ritorno a capo */
    margin-bottom: 20px; /* Spazio inferiore */

}


/* Immagine di sfondo */
.background-image-hotels {
    position: absolute;
    top: 0;
    margin-top: -200px;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: url('images/mountain-hotels.webp') center/cover no-repeat;*/
    z-index: 1;

}

/* Contenitore principale */
.hotels-content {
    position: relative;
    margin-bottom: -10vh;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    padding: 40px 20px;
    max-width: 1200px;
}

.hotels-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    max-width: 1200px;
}
/* Contenitore immagini hotel */
.hotels-images {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-bottom: 0px;
}

/* Stile delle immagini degli hotel */
.hotel-image {
    width: 240px;
    height: 240px;
    overflow: hidden;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Titolo e highlight allineati */
.hotels-title-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    margin-bottom: 20px;
}

/* Titolo */
.hotels-title {
    font-family: 'Poppins', sans-serif;
    font-size: 60px;
    font-weight: 600;
    color: #1F1F1F;
    line-height: 110%;
}

/* Highlight riquadrato */
.hotels-title-wrapper .highlight-box {
    font-family: 'Chilly Variable', sans-serif;
    font-size: 48px;
    font-weight: 600;
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid #1F1F1F;
    border-radius: 22px;
}

/* Sottotitolo */
.hotels-text .subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Descrizione */
.hotels-description {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #1F1F1F;
    line-height: 1.5;
    max-width: 600px;
    text-align: center;
}
/* Overlay testo sopra l'immagine */
/* Overlay testo sopra l'immagine */
.hotel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Sfondo semi-trasparente */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0; /* Nascondiamo l'overlay */
    transition: opacity 0.3s ease-in-out;
    border-radius: 12px;
}

/* Stile del testo dentro l'overlay */
.hotel-overlay h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hotel-overlay p {
    font-family: 'Poppins', sans-serif;
    margin: 0 15px 12px; /* Spazio tra testo e pulsante */
}

.hotel-overlay a.small {
    font-family: 'Chilly Variable', sans-serif;
    font-weight: 600;
    color: #FFFFFF;
    background-color: #1F1F1F;
    padding: 8px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
}

/* Effetto hover: cambia colore */
.hotel-overlay button.small:hover {
    background-color: #F72585; /* Colore rosa acceso per il pulsante */
}



.hotel-image:hover .hotel-overlay {
    opacity: 1; /* Mostriamo il div al passaggio del mouse */
}

/* Montagne - Posizionamento iniziale */
.background-image {
    position: absolute;
    top: 0%;
    left: 50%;
   
}

/* Immagine maestri - Posizionamento iniziale */
.masters-image img {
    position: absolute;
    bottom: 0;
    left: 50%;
   
}

.background-image-hotels {
    position: absolute;
    top: 0%;
    left: 50%;
   
}

@media (min-aspect-ratio: 16/7) and (max-aspect-ratio: 16/1) {
  .masters-image img {
      margin-bottom: -60vh; /* Riduce il margine inferiore */
      max-width: 70vw; /* Aumenta la larghezza massima */
  }

  .masters-content {
      margin-top: -20vh; /* Aggiusta il margine superiore per il testo */
  }
  .hotel-image {
    width: 150px; /* Le immagini degli hotel occupano tutta la larghezza */
    height: 150px; /* Imposta un'altezza fissa */
}
}


@media (min-aspect-ratio: 16/9) and (max-aspect-ratio: 16/7) {
  .masters-image img {
      margin-bottom: -30vh; /* Riduce il margine inferiore */
      max-width: 55vw; /* Aumenta la larghezza massima */

  }


  .masters-content {
      margin-top: -20vh; /* Aggiusta il margine superiore per il testo */
  }
  .hotel-image {
    width: 180px; /* Le immagini degli hotel occupano tutta la larghezza */
    height: 180px; /* Imposta un'altezza fissa */
}

}

@media (max-width: 1200px) {
  .hotel-image {
      width: 150px; /* Le immagini degli hotel occupano tutta la larghezza */
      height: 150px; /* Imposta un'altezza fissa */
  }
  .hotels-content{
    gap: 20px;
  }
  .experience-content-wrapper{
    gap: 40px;
  }
}



@media (max-width: 768px) {
  .combined-section{
    height: 300vh;
  }

    .hotels-section {
      height: 100vh;
    }

    .masters-section{
      height: 100vh;
      justify-content: flex-end;
    }
    .background-image-hotels{
      height: 50vh;
      margin-top: -5px;
      width: 100vw;
    }

    .masters-title-wrapper, 
    .hotels-title-wrapper{
      flex-direction: column;
    }

    .masters-content,
    .hotels-content {
      max-width: 360px;
      padding: 0px;
        gap: 20px; /* Riduce lo spazio tra gli elementi */
        margin-bottom: -40px;
    }

    .masters-title,
    .hotels-title {
        font-size: 36px; /* Riduce la dimensione del titolo */
    }

    .highlight-box {
        font-size: 18px; /* Riduce la dimensione dell'highlight */
        padding: 8px 24px; /* Riduce il padding */
        border-radius: 12px;
    }
    .hotels-title-wrapper .highlight-box{
      font-size: 18px;
      border-radius: 12px;
    }

    .masters-description,
    .hotels-description {
        font-size: 12px; /* Mantiene la dimensione del testo */
    }

    .masters-image img {
        position: relative; /* Rimuove l'absolute positioning */
        margin-bottom: -10px; /* Resetta il margine inferiore */
        width: 120vw;
        max-width: 200%; /* L'immagine occupa tutta la larghezza */
        bottom: 0;
    }

    .hotels-images {

        gap: 20px; /* Aumenta lo spazio tra le immagini */
    }

    .hotel-image {
      overflow: hidden;
        width: 100px; /* Le immagini degli hotel occupano tutta la larghezza */
        height: 100px; /* Imposta un'altezza fissa */
    }
    .hotel-overlay {
      position: absolute;
      background: rgba(0, 0, 0, 0.6); /* Sfondo semi-trasparente */
      color: #ffffff;
  }
  .hotel-overlay h3 {

    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hotel-overlay p {
  display: none;
}

.hotel-overlay a.small {
  display: none;

}
}

/* ------------------------------
   TRAILS SLIDER SECTION
------------------------------ */

/* Contenitore generale */
.trails-slider {
    margin-top: 10vh;
    position: relative;
    width: 100%;
    padding: 60px 0; /* Spazio verticale intorno allo slider */
    overflow: hidden;
  
  }
  .trails-slider .subtitle{
    text-align: center;
    /*text-decoration: underline;*/
    /* Stato iniziale: leggermente traslato in basso, opacità 0 */
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
  }
  .trails-slider .title{
    width: 100%;
    align-self: center;
    justify-self: center;
    text-align: center;
    margin-bottom: 20px;
    /* Stato iniziale: leggermente traslato in basso, opacità 0 */
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
    /* Ritardo per creare un effetto a cascata */
    transition-delay: 0.2s;
  }
  
  /* Stato finale (quando l'utente li vede) */
  .trails-slider .title.animate-in,
  .trails-slider .subtitle.animate-in {
    transform: translateY(0);
    opacity: 1;
  }
  
  /* Contenitore orizzontale per le card */
  .slider {
    display: flex;
  flex-wrap: nowrap;   /* Impedisce il ritorno a capo delle card */
  gap: 20px;           /* Spaziatura orizzontale tra le card */
  
  overflow-x: auto;    /* Scroll orizzontale */
  overflow-y: hidden;  /* Nascondi eventuali scrollbar verticali */
  
  padding: 80px 120px;     /* Bordo laterale se vuoi un po' di spazio */
  box-sizing: border-box;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  }
  .slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
  }
  
  /* Firefox */
  .slider {
    scrollbar-width: none; /* Firefox */
  }
  /* Edge/IE */
  .slider {
    -ms-overflow-style: none; /* IE 10+ e Edge */
  }
  .grabbing {
    cursor: grabbing !important; /* Cambia il puntatore mentre trascini */
  }
/* La card è un flex container alto 650px */
.card {
    flex: 0 0 auto;    /* Occupa esattamente lo spazio necessario, senza shrink */
    /* Oppure: flex-shrink: 0; se preferisci restare con flex-basis auto */
    
    width: 500px;      /* Dimensioni desiderate */
    height: 700px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid #1E6091;
    transition: border-color 0.3s;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); 
  }
  
  .card:hover {
    border-color: #F72585;
  }
  /* Stato iniziale: leggermente traslate in basso, opacità 0 */
.card {
    transform: translateY(200px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
  }
  
  /* Stato finale (quando l'utente le vede) */
  .card.animate-in {
    transform: translateY(0);
    opacity: 1;
  }
  /* Sfondo e overlay come prima */
  .card-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center center;
    z-index: 1;
    border-radius: 20px;
  }
  .card-overlay {
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
    z-index: 2;
    border-radius: 20px;
  }
  
  /* .card-content riempie lo spazio verticale e allinea in basso */
  .card-content {
    flex: 1;  /* Riempie lo spazio verticalmente */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* spinge i figli in basso */
    box-sizing: border-box;
    gap: 16px;
    padding: 20px;
    position: relative;
    z-index: 3;      /* Sopra l'overlay */
    color: #FFFFFF;  /* Testo bianco */
    border-radius: 20px;
  }
  
  /* Il pallino rosa alla fine del titolo */
  .dot {
    color: #F72585;
  }
  
  /* Area card-details contenente testo + anteprima hotel */
  .card-details {
    display: flex;
    gap: 20px;
    margin-bottom: 16px; /* Piccolo spacing in basso */
  }
  
  /* Testi principali */
  .card-text {
    align-items: flex-start;
    text-align: left;
    flex: 1; /* Cresce per riempire lo spazio */
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  h1 {
    text-align: left;
  }
  
  .card-text h2 {
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .card-text p {
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
  }
  
  /* Highlights (date, posti rimasti) */
  .highlights {

    display: flex;
    gap: 10px;
    margin-top: auto; /* Spinge gli highlight in basso */
  }
  
  .highlight.white {
    font-size: 14px;
    padding: 8px 24px;
    border: solid 1px #FFFFFF;
    border-radius: 10px;
    color: #FFFFFF;
  }
  
  /* Anteprima hotel a destra */
  .hotel-preview {
    flex-shrink: 0; /* Non si riduce oltre la sua dimensione contenuto */
    width: 180px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    align-self: flex-end; /* Allinea il box in fondo a dx */
  }
  
  .hotel-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  @media (min-aspect-ratio: 16/9) and (max-aspect-ratio: 16/1) {
    .card{
      height: 480px;
      width: 400px;
    }
    .hotel-preview {
      width: 120px;
      height: 120px;
    }
  }

  @media (max-width: 1400px) {
    .card{
      height: 520px;
      width: 400px;
    }
    .hotel-preview {
      width: 120px;
      height: 120px;
    }
    .highlight.white {
      padding: 6px 16px;
      font-size: 12px;
    }
    .slider{
      padding: 80px 100px;
    }


  }

  @media (max-width: 768px) {
  .trails-slider{
    margin-top: 40vh;
  }

  .card-content{
    border-radius: 20px;
  }
  .card-background{
    border-radius: 20px;

  }

    .trails-slider .subtitle{
      text-align: center;
      /*text-decoration: underline;*/
      /* Manteniamo l'animazione ma con valori più piccoli per mobile */
      transform: translateY(30px);
    }
    .trails-slider .title{
      align-self: center;
      justify-self: center;
      text-align: center;
      margin-bottom: 8px;
      /* Manteniamo l'animazione ma con valori più piccoli per mobile */
      transform: translateY(30px);
    }
    .trails-slider {
      padding: 40px 0;
    }
  
    .slider {
      padding: 40px 20px;
      gap: 10px;
    }
    .card-details {
      flex-direction: column-reverse;
    }
  
    .card {
      width: 320px;
      height: 520px;
      border-radius: 20px;
      overflow: hidden;
    }
  
    .card-content .small.white {
      font-size: 14px;
      padding: 6px 16px;
    }
  
    .hotel-preview {
     display: none;
    }

    .left-icon-container {
      display: none;
      transform: scale(0.7);
      margin-left: 10px;
    }

    .icon-container {
      display: none;
      transform: scale(0.7);
      margin-right: 10px;
    }
    .highlight.white {
      padding: 6px 14px;
      font-size: 12px;
    }
  .card-overlay {
    height: 80%;
    background: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0));
  }
}
  
  /* Il link Prenota in stile "small white" 
     (pulsante rotondo, testo scuro su sfondo bianco)
  */
  .card-content .small.white {
    font-family: 'Chilly Variable', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #1F1F1F;           /* Testo scuro */
    background-color: #FFFFFF; 
    padding: 8px 24px;
    border-radius: 10px;
    text-decoration: none;
    
    display: inline-flex;     /* Inline-flex, così non va a larghezza piena */
    align-items: center;
    justify-content: center;
    width: auto;              /* Larghezza basata sul contenuto */
  
    transition: background-color 0.2s ease-in-out;
  }
  
  .card-content .small.white:hover {
    background-color: #F72585; /* Colore di hover, se desideri */
    color: #ffffff;   
  }

  /* Stile per il bottone "Inviti Terminati" */
  .card-content .small.white.inviti-terminati {
    background-color: #F72585; /* Rosa fisso */
    color: #ffffff;
    text-decoration: line-through; /* Testo barrato */
    cursor: not-allowed; /* Cursore che indica che non è cliccabile */
    pointer-events: none; /* Disabilita gli eventi del mouse */
  }
  
  /* Icona centrata verticalmente e orizzontalmente */
.left-arrow-svg {
    position: absolute;
    width: 28px;
    height: 28px;
    right: 30%;
    bottom: 27%;

}
.right-arrow-svg {
  position: absolute;
  width: 28px;
  height: 28px;
  right: 25%;
  bottom: 27%;


}

  
  .left-icon-container, .icon-container {
    background-color: #E3E3E3;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Aggiunge un'ombra scura */

}

  .icon-container {
    position: absolute;
    top: 60%;
    right: 0%;
    margin-right: 40px;
    color: #fff;        /* colore icona */
    font-size: 24px;    /* dimensione icona, regola come preferisci */
    z-index: 100;
  }


  
  /* Icona freccia sinistra centrata a sinistra */
  .left-icon-container {
    position: absolute;
    top: 60%;
    left: 0%;
    margin-left: 40px;
    color: #fff;        /* colore icona */
    font-size: 24px;    /* dimensione icona, regola come preferisci */
    z-index: 100;
  }

/* ----------------------
   SEZIONE Community 
----------------------- */
/* Sezione principale alta 200vh, con background di base */
.community-section {
    position: relative;
    width: 100%;
    height: 250vh; /* Altezza doppia della viewport */
    z-index: 120;
  }
  
  .community-bg {
    position: absolute;
    width: 100vw;
    height: 100vh;
    /* Sfondi di base (puoi sostituire con un'immagine) */
    background: url('images/bg-community.webp') center/cover no-repeat;
    /* Teniamo "cover" come base. Vedremo come zoommare e ruotare via JS */
    transition: transform 0.1s linear; /* Per un piccolo smoothing */
    z-index: -1;
  }
  .community-content {
    position: relative;
    width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Testo centrato orizzontalmente */
    text-align: center;  /* Allinea i paragrafi al centro */
    padding: 20px;
    z-index: 10;
    gap: 20px;
    background: radial-gradient(50% 50% at 50% 50%, #E3E3E3 61.5%, rgba(227, 227, 227, 0.00) 100%);
  }

  /* Contenitore sticky, occupa l'intera viewport in altezza */
  .community-sticky {
    position: sticky;
    flex: auto;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    
    /* Evita lo scroll orizzontale ma lascia il contenuto espandersi verticalmente */
    overflow-x: hidden;
    overflow-y: clip;
}
  
.community-content h1 {
  text-align: center;
}

  .community-content p {
    max-width: 600px;
    line-height: 1.5;
  }

  .community-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    max-width: 600px;
    line-height: 1.5;
  }

  /* Pulsante "Prenota" con animazione continua */
.community-buttons a.btn-community {
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 8px 24px;
    font-family: 'Chilly Variable', sans-serif;
    font-weight: 600;
    color: #FFFFFF;
    background-color: #1F1F1F;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    position: relative; /* Necessario per la rotazione dell'ombra */
    box-shadow: 0px 2px 6px rgba(0,0,0,0.15);
}
.community-buttons a.btn-community:hover {
    background: #F72585;
}

/* Icona nei pulsanti */
.btn-community img {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
  .community-content {
    max-width: 360px;
      gap: 16px; /* Ridotto il gap */
      background: radial-gradient(50% 50% at 50% 50%, #E3E3E3 40%, rgba(227, 227, 227, 0) 100%); /* Modificato il gradiente */
  }


  .community-buttons {
      flex-direction: column; /* Disposizione verticale dei pulsanti */
      align-items: center; /* Allineamento al centro */
      gap: 8px; /* Ridotto il gap tra i pulsanti */
  }

  .btn-community img {
      width: 20px; /* Dimensione dell'icona ridotta */
      height: 20px; /* Dimensione dell'icona ridotta */
  }

  .community-bg {

    background: url('images/bg-community-mobile.webp') center/contain no-repeat;
  }
}


  /* ----------------------
   SEZIONE SOCIAL
----------------------- */

.social-section {
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.2); /* Ombra scura verso l'alto */
  background-color: #000000;
  color: #ffffff;
  padding: 200px 0 200px 0;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  align-content: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Aggiungo un overlay per l'effetto di entrata */
.social-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f72585 0%, #000000 100%);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease-out;
  pointer-events: none;
}

.social-section.animate-in::before {
  opacity: 0.3;
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.1;
    filter: blur(10px);
  }
  100% {
    opacity: 0.3;
    filter: blur(20px);
  }
}

.social-container {
  background: #000000;
  border-radius: 32px;
  border-style: solid;
  border-color: #f72585;
  border-width: 2px;
  padding: 120px 0px 120px 0px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-self: center;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0px 4px 40px 0px rgba(247, 37, 133, 1);
  overflow: hidden;
  max-width: 1200px;
  z-index: 2;
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.17, 0.67, 0.24, 0.99), 
              opacity 1.2s cubic-bezier(0.17, 0.67, 0.24, 0.99),
              box-shadow 1.2s cubic-bezier(0.17, 0.67, 0.24, 0.99);
}

.social-section.animate-in .social-container {
  transform: translateY(0) scale(1);
  opacity: 1;
  box-shadow: inset 0px 4px 40px 0px rgba(247, 37, 133, 1), 
              0px 0px 60px 10px rgba(247, 37, 133, 0.5);
}

.social-content {
  border-radius: 40px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 120px;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.social-text {
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
  max-width: 800px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.17, 0.67, 0.24, 0.99) 0.3s,
              transform 0.8s cubic-bezier(0.17, 0.67, 0.24, 0.99) 0.3s;
}

.social-section.animate-in .social-text {
  opacity: 1;
  transform: translateY(0);
}

.social-section .social-title {
  color:#ffffff;
  text-align: center;
  font-family: "Poppins-SemiBold", sans-serif;
  font-size: 60px;
  font-weight: 600;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.17, 0.67, 0.24, 0.99) 0.5s,
              transform 0.8s cubic-bezier(0.17, 0.67, 0.24, 0.99) 0.5s;
}

.social-section.animate-in .social-title {
  opacity: 1;
  transform: translateY(0);
  animation: glowText 3s infinite alternate;
}

@keyframes glowText {
  0% {
    text-shadow: 0 0 5px rgba(247, 37, 133, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(247, 37, 133, 0.8), 0 0 30px rgba(247, 37, 133, 0.5);
  }
}

.social-section .social-subtitle {
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  position: relative;
  margin-top: 10px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.17, 0.67, 0.24, 0.99) 0.7s,
              transform 0.8s cubic-bezier(0.17, 0.67, 0.24, 0.99) 0.7s;
}

.social-section.animate-in .social-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.social-section .social-description {
  color: #ffffff;
  text-align: center;
  font-family: "Poppins-Regular", sans-serif;
  font-size: 14px;
  font-weight: 400;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.17, 0.67, 0.24, 0.99) 0.9s,
              transform 0.8s cubic-bezier(0.17, 0.67, 0.24, 0.99) 0.9s;
}

.social-section.animate-in .social-description {
  opacity: 1;
  transform: translateY(0);
}

.social-button {
  display: flex;
  flex-direction: row;
  max-width: 600px;
  line-height: 1.5;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.17, 0.67, 0.24, 0.99) 1.1s,
              transform 0.8s cubic-bezier(0.17, 0.67, 0.24, 0.99) 1.1s,
              background-color 0.3s ease;
}

.social-section.animate-in .social-button {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: pulseButton 2s infinite alternate 1.1s;
}

@keyframes pulseButton {
  0% {
    transform: scale(1);
    box-shadow: 0px 2px 6px rgba(0,0,0,0.15);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0px 5px 15px rgba(247, 37, 133, 0.5);
  }
}

/* Pulsante "Prenota" con animazione continua */
.social-button {
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 8px 24px;
  font-family: 'Chilly Variable', sans-serif;
  font-weight: 600;
  color: #000000;
  background-color: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  position: relative; /* Necessario per la rotazione dell'ombra */
  box-shadow: 0px 2px 6px rgba(0,0,0,0.15);
}

.social-button:hover {
  background: #F72585;
  animation: none; /* Ferma l'animazione al passaggio del mouse */
  transform: scale(1.1) !important;
  box-shadow: 0px 5px 15px rgba(247, 37, 133, 0.7) !important;
}

.prenota-il-tuo-prossimo-trail {
  color: var(--testo, #1f1f1f);
  text-align: left;
  font-family: "ChillaxVariable-Semibold", sans-serif;
  font-size: 16px;
  font-weight: 600;
  position: relative;
}

.social-carusel {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.17, 0.67, 0.24, 0.99) 1.3s,
              transform 1s cubic-bezier(0.17, 0.67, 0.24, 0.99) 1.3s;
}

.social-section.animate-in .social-carusel {
  opacity: 1;
  transform: translateY(0);
}

.social-image-small {
  opacity: 0.2;
  transform: translateX(-100px) scale(0.8);
  transition: transform 1.2s cubic-bezier(0.17, 0.67, 0.24, 0.99) 1.5s,
              opacity 1.2s cubic-bezier(0.17, 0.67, 0.24, 0.99) 1.5s;
}

.social-section.animate-in .social-image-small:first-child {
  transform: translateX(0) scale(1);
  opacity: 0.2;
  animation: floatLeft 5s ease-in-out infinite;
}

.social-section.animate-in .social-image-small:last-child {
  transform: translateX(0) scale(1);
  opacity: 0.2;
  animation: floatRight 5s ease-in-out infinite;
}

@keyframes floatLeft {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-15px) rotate(0deg);
  }
}

@keyframes floatRight {
  0%, 100% {
    transform: translateY(0) rotate(2deg);
  }
  50% {
    transform: translateY(-15px) rotate(0deg);
  }
}

.social-image-big, .social-image-small  {
  border-radius: 20px;
  flex-shrink: 0;
  width: 827px;
  height: 628px;
  position: relative;
  object-fit: cover;
}

.social-image-big {
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.17, 0.67, 0.24, 0.99) 1.7s,
              opacity 1.2s cubic-bezier(0.17, 0.67, 0.24, 0.99) 1.7s,
              filter 1.2s cubic-bezier(0.17, 0.67, 0.24, 0.99) 1.7s;
  filter: grayscale(100%);
}

.social-section.animate-in .social-image-big {
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: grayscale(0%);
  animation: pulseBorder 4s infinite alternate 2s;
}

@keyframes pulseBorder {
  0% {
    box-shadow: 0 0 0 0 rgba(247, 37, 133, 0);
  }
  100% {
    box-shadow: 0 0 30px 5px rgba(247, 37, 133, 0.8);
  }
}

/* Particelle che si muovono nella sezione */
.social-section .particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.social-section .particle {
  position: absolute;
  display: block;
  pointer-events: none;
  width: 6px;
  height: 6px;
  background-color: #f72585;
  border-radius: 50%;
  opacity: 0;
}

.social-section.animate-in .particle {
  animation: moveParticle 15s linear infinite;
}

@keyframes moveParticle {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-1000px) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .social-section {
    padding: 200px 0 80px 0;
  } 
  .social-container{
    width: 100vw;
  }
  .social-text {
    max-width: 340px;
  }
  .social-button {
    flex-direction: column; /* Disposizione verticale dei pulsanti */
    align-items: center; /* Allineamento al centro */
    gap: 8px; /* Ridotto il gap tra i pulsanti */
  }
  .social-section .social-title {
    font-size: 36px;
  }
  .social-section .social-subtitle {
    font-size: 12px;
  }
  .social-section .social-description {
    font-size: 12px;
  }
  .social-image-big, .social-image-small {
    width: 240px;
    height: 400px;
  }
  .social-carusel {
    gap: 16px;
  }
}


/**************************************
  SEZIONE FAQ
***************************************/

.faq-section {
  background-color: #000000;         
  color: #ffffff;           /* Testo scuro */
  padding: 200px 0 200px 0;
  font-family: 'Poppins', sans-serif;
  min-height: 80vh;             /* Altezza impostata a 80vh */
  justify-content: center;
  align-content: center;

}

.faq-container {

  border-radius: 20px;
  max-width: 600px;
  margin: 0 auto; /* Centra il contenitore orizzontalmente */
  padding: 40px; /* Aggiunge un po' di padding laterale */
}


.faq-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
  /* Se vuoi uno stile personalizzato, es.:
     font-weight: 600; 
  */
}


.faq-subtitle {

  text-align: center;
  font-size: 14px; /* Dimensione del font più piccola rispetto al titolo */
  margin-bottom: 60px; /* Spazio inferiore per separare dal contenuto successivo */
  font-family: 'Poppins', sans-serif;
  color: #ffffff; /* Colore del testo scuro */
}


.faq-item {
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  /* Questo aiuta a separare le varie FAQ */
}

/* --- DOMANDA FAQ --- */
.faq-question {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 18px;
  margin-bottom: 12px;
  color: #ffffff;        /* Testo scuro */
  background-color: transparent;
  border-radius: 10px;
  transition: background-color 0.25s;
  font-family: 'Poppins', sans-serif;
  gap:18px
}
.faq-question:hover {
  /* Effetto hover leggero */
  background-color: rgba(227, 227, 227, 0.1);
}

/* Icona quadrata a sinistra: 20x20 con cornice 2px e croce interna */
.faq-icon {
  position: relative;
  min-width: 40px;
  width: 40px;
  height: 40px;
  color: #ffffff;
  border-radius: 100px;
  box-sizing: border-box;    /* Contiamo la border dentro i 20px totali */
  font-family: 'Poppins', sans-serif;
}

/* Segmenti della croce (+) orizzontale e verticale */
.faq-icon .horizontal,
.faq-icon .vertical {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  height: 1px;
  border-radius: 100px;
  background-color: #ffffff;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease; /* Aggiungiamo transform alla transizione */
}

/* Vertical = la stanghetta verticale del + */
.faq-icon .vertical {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Quando la FAQ è aperta, ruotiamo la stanghetta verticale di 90° in senso orario */
.faq-item.open .faq-icon .vertical {
  transform: translate(-50%, -50%) rotate(180deg); /* Rotazione in senso orario */
  opacity: 0;
}

/* Se la .faq-item ha classe .open => la stanghetta verticale scompare (diventa -) */
.faq-item.open .vertical {
  opacity: 0;
}

/* --- RISPOSTA FAQ --- */
.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 10px;
  color: #ffffff;
  border-radius: 6px;
  line-height: 1.4;
  transition: all 0.3s ease-in-out;
  font-family: 'Poppins', sans-serif;
  transform: translateY(-20px);
}

.faq-item.open .faq-answer {
  max-height: 500px; /* Altezza massima per l'animazione */
  opacity: 1;
  padding: 10px 10px 20px;
  transform: translateY(0);
}

@media (max-width: 768px) {

  .faq-icon .horizontal,
  .faq-icon .vertical {
    height: 1px;
    width: 50%;
  }

  .faq-section {
    height: auto;
    margin: 0;
    padding: 80px 0 80px 0;
  }

  .faq-container {
    max-width: 320px;
    padding: 24px 16px 0px 16px;
  }
  .faq-question {
    font-size: 14px;
    margin-bottom: 0px;
  }
  .faq-answer {
    font-size: 12px;
  }
  .faq-subtitle{
    margin-bottom: 20px;
  }
}



/* ------------------------------------------------------------------
   ANIMAZIONE FAQ
------------------------------------------------------------------ */
.faq-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}


.faq-title, .faq-subtitle, .faq-container {
  opacity: 0;
  transform: translateY(70px);
  transition: all 1s cubic-bezier(0.17, 0.67, 0.24, 0.99);
}

.faq-section.animate-in .faq-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.faq-section.animate-in .faq-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.faq-section.animate-in .faq-container {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* Animazione aggiuntiva per le singole FAQ */
.faq-item {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s cubic-bezier(0.17, 0.67, 0.24, 0.99);
}

.faq-section.animate-in .faq-item {
  opacity: 1;
  transform: translateX(0);
}

/* Applica un delay progressivo a ogni FAQ */
.faq-section.animate-in .faq-item:nth-child(1) { transition-delay: 0.7s; }
.faq-section.animate-in .faq-item:nth-child(2) { transition-delay: 0.8s; }
.faq-section.animate-in .faq-item:nth-child(3) { transition-delay: 0.9s; }
.faq-section.animate-in .faq-item:nth-child(4) { transition-delay: 1.0s; }
.faq-section.animate-in .faq-item:nth-child(5) { transition-delay: 1.1s; }
.faq-section.animate-in .faq-item:nth-child(6) { transition-delay: 1.2s; }
.faq-section.animate-in .faq-item:nth-child(7) { transition-delay: 1.3s; }
.faq-section.animate-in .faq-item:nth-child(8) { transition-delay: 1.4s; }
.faq-section.animate-in .faq-item:nth-child(9) { transition-delay: 1.5s; }






  /* ----------------------
   SEZIONE NEWSLETTER
----------------------- */
.newsletter-section {
    position: relative; /* IMPORTANTE: serve per ancorare le immagini absolute */
    background: #000000;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 100px;
  }

  .newsletter-wrapper {
    width: 100%;
    margin: 60px;
    border-radius: 20px;
    position: relative; /* IMPORTANTE: serve per ancorare le immagini absolute */
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/newsletter-bg.webp');
    background-size: cover;
    background-position: center 20%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    padding: 120px 0 240PX 0;
    /* box-shadow: 0 4px 40px rgba(247, 37, 133, 0.5); Ombra rosa del brand */
    
    /* Aggiungo proprietà per l'animazione */
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
  }

  /* Classe per animare il wrapper quando entra nel viewport */
  .newsletter-wrapper.animate-in {
    transform: scale(1);
    opacity: 1;
  }

  /* Aggiungo animazione per i contenuti interni */
  .newsletter-container {
    position: relative; /* per far sì che z-index funzioni */
    z-index: 2;         /* sopra .newsletter-image (che ha z-index:1) */
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
    
    /* Aggiungo proprietà per l'animazione */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s; /* Ritardo di 0.3s */
  }

  /* Classe per animare il container quando entra nel viewport */
  .newsletter-container.animate-in {
    opacity: 1;
    transform: translateY(0);
  }

  .newsletter-image {
    position: absolute; /* esce dal flusso normale */
    z-index: 1;         /* sotto il contenuto .newsletter-container (che avrà z-index: 2) */
    height: 120%; 
    max-width: 1500px; /* dimensione massima (adatta a piacere) */
    pointer-events: none; /* le immagini decorative non devono essere cliccabili */
  }
  
/* Immagine Marta: parte in basso (translateY(150px)), la porteremo a 0 */
.newsletter-left-image {
    bottom: -10%;
    margin-left: -1000px;
    pointer-events: none;
    transform: translateY(100px);
    transition: transform 1s ease-out; /* 1s di animazione */
  }
  
  
  /* Quando aggiungiamo la classe .animate-in, riportiamo translateY(0) */
  .newsletter-left-image.animate-in {
    transform: translateY(0);
  }
  

  .newsletter-container {
    position: relative; /* per far sì che z-index funzioni */
    z-index: 2;         /* sopra .newsletter-image (che ha z-index:1) */
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
  }
  
  /* Testo */
  .newsletter-text {
    color: #FFFFFF;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    max-width: 1200px;
    gap: 20px;
    
    /* Aggiungo proprietà per l'animazione */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s; /* Ritardo di 0.4s */
  }

  .newsletter-text.animate-in {
    opacity: 1;
    transform: translateY(0);
  }

  .newsletter-text p {
    max-width: 600px;
    margin-top: -4px;
  }
  .newsletter-text h1 {
    text-align: center;
  }

  /* Contenitore orizzontale unico */
.newsletter-bar {
    position: relative;
    display: flex;
    align-items: center;
  
    /* Sfondo bianco, bordi arrotondati, ombra */
    background-color: #FFFFFF;
    border-radius: 20px; /* arrotondato tipo "pill" */
    box-shadow: 0px 2px 6px rgba(0,0,0,0.15);
  
    /* Spazi interni */
    padding: 8px 16px;
    gap: 8px; /* Piccolo spazio tra icona, input e pulsante */
    width: 600px;
    margin: 0 auto;   /* Centra orizzontalmente */
    
    /* Aggiungo proprietà per l'animazione */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.6s, transform 0.6s ease-out 0.6s; /* Ritardo di 0.6s */
}

.newsletter-bar.animate-in {
    opacity: 1;
    transform: translateY(0);
}

  /* Form */
  .newsletter-form {

    width: 320px;
    display: flex;
    gap: 16px; 
    flex-wrap: wrap; /* Per adattarsi se lo schermo è stretto */
    justify-content: center;
    align-items: center;
  }
  
  /* Input con icona */
  .newsletter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.15);
    padding: 8px 16px;
  }
  
 /* L'icona (sinistra) */
.newsletter-bar .newsletter-icon {
    width: 27px;
    height: 27px;
    margin-right: 8px;
    flex-shrink: 0;
  }
  
  /* L'input si allarga per occupare lo spazio */
.newsletter-bar input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333;
    flex: 1;             /* occuperà tutto lo spazio rimanente */
    min-width: 0;        /* per evitare overflow su schermi stretti */
  }
  
  /* Pulsante stile "small white" (ereditato) */
  .newsletter-bar button#newsletter-submit {
    position: relative;
    font-family: 'Chilly Variable', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    background-color: #1f1f1f;
    padding: 8px 24px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    box-shadow: 0px 4px 8px 3px rgba(255, 0, 153, 0.15), 0px 1px 3px 0px rgba(0, 64, 255, 0.30);
    
  }

  /* Hover pulsante */
  .newsletter-bar button#newsletter-submit:hover {
    background-color: #F72585;
    color: #ffffff;
    border-color: #F72585;
  }
  
  #newsletter-message {
    display: none;
    position: relative;
    font-family: 'Chilly Variable', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    background-color: #1f1f1f;
    padding: 8px 24px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    transition: background-color 0.2s ease-in-out;
    box-shadow: 0px 4px 8px 3px rgba(255, 0, 153, 0.15), 0px 1px 3px 0px rgba(0, 64, 255, 0.30);
  }

#newsletter-message.success {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
}

#newsletter-message.error {
    display: inline-block;
    background-color: #F44336;
    color: white;
}
@media (max-width: 768px) {

  .newsletter-wrapper {
    margin: 16px;
    height: auto; /* Altezza automatica per adattarsi al contenuto */
    padding: 80px 0 10px 0;
    background-position: center;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/newsletter-bg-mobile.webp');
  }

  .newsletter-container {
    display: flex;
    flex-direction: column; /* Imposta la direzione degli elementi in colonna */
    margin-bottom: 40px;
    padding: 20px 12px 120px 12px; /* Aggiunto un po' di padding interno */
  }

  .newsletter-text {
    padding: 20px 10px; /* Ridotto il padding laterale */
    gap: 10px; /* Ridotto il gap */
  }

  .newsletter-bar {
    width: 240px; /* Barra newsletter a tutta larghezza */
    flex-direction: column; /* Impila gli elementi verticalmente */
    align-items: stretch; /* Allinea gli elementi a tutta larghezza */
    padding: 10px; /* Ridotto il padding */
    border-radius: 12px;
    margin-top: 30px;
  }

  .newsletter-input-wrapper {
    width: 100%; /* Input a tutta larghezza */
    margin-bottom: 10px; /* Spazio sotto l'input */
  }

  .newsletter-bar input {
    font-size: 14px; /* Dimensione del testo nell'input ridotta */
  }

  .newsletter-bar button#newsletter-submit {
    width: 100%; /* Pulsante a tutta larghezza */
    font-size: 16px; /* Dimensione del testo nel pulsante ridotta */
    padding: 10px; /* Ridotto il padding del pulsante */
  }

  .newsletter-icon {
    display: none; /* Nascondi l'icona su mobile */
  }

  .newsletter-left-image {
    position: absolute; /* Riporta l'immagine nel flusso del documento */
    width: 100%; /* Occupa tutta la larghezza */
    max-width: none; /* Rimuove la larghezza massima */
    height: auto; /* Altezza automatica */
    margin-left: 0; /* Rimuove il margine sinistro */
    bottom: 0; /* Resetta la posizione bottom */
    left: 0;
    margin-left: -0%;
    margin-bottom: -15vh;
  }

}



  /* ----------------------
     FOOTER NERO
  ----------------------- */
  .footer {
    position: relative;
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
  }
  
  /* Parte alta con logo gigante */
  .footer-top {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Logo "tagliato" (adatta dimensioni come vuoi) */
  .footer-big-logo {
    max-width: 1400px; 
    margin-bottom: -140px;
    /* Se l'immagine è "tagliata" su uno sfondo nero, 
       si vedrà integrata nella banda */
  }
  
  /* Parte bassa con link */
  .footer-bottom {
    position: relative;
    text-align: center;
    overflow: hidden;
    align-items:center ;
  }
  
  .footer-links {
    display: flex;
    flex-direction: row;
    gap: 24px;
    list-style: none;
    margin-bottom: 20px; 
    padding: 0;
  }
  
  .footer-links li a {
    text-decoration: none;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: color 0.2s ease-in-out;
  }
  .footer-links li a:hover {
    color: #F72585;
  }

  .footer-logo .logo {
    align-items: center;
    width: 90vw;
    height: 100%;
    transform: translateY(50%);
  }
  .startup-juice-logo {
    max-width: 80px;
    margin-top: 20px;
  }
  .sj-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }


  @media (max-width: 768px) {
    .footer {
      padding-top: 40px; /* Riduce il padding top */
    }

    .footer-top {
      width: 80%;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
    }
  
    .footer-links {
      flex-direction: column;
      gap: 12px; /* Riduce lo spazio tra i link */
    }
  
    .footer-links li a {
      font-size: 12px; /* Riduce la dimensione del testo dei link */
    }
    
    .copyright-line {
      margin: 15px 0;
    }
    
    .copyright-line p {
      font-size: 10px;
    }

    .startup-juice-logo {
      max-width: 60px;
      margin-top: 20px;
    }
  }

  


/* Nascondi gli overlay e le icone sotto i 480px */
@media (max-width: 768px) {
  .edge-overlay,
  .icon-container,
  .left-overlay,
  .left-icon-container {
    display: none !important;
  }
}

/* Riga di copyright e partita IVA */
.copyright-line {
  width: 100%;
  text-align: center;
  margin: 20px 0;
}

.copyright-line p {
  color: #666666;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  margin: 0;
}

/* Stile per il link al blog nella sezione newsletter */
.blog-link {
  margin-top: 20px;
}

.blog-link a {
  color: #1f1f1f;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid #1f1f1f;
  padding-bottom: 2px;
}

.blog-link a:hover {
  color: #555;
  border-bottom-color: #555;
}


