html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}
body {
  display: flex;
  flex-direction: column;
  background-color: #fffefd;
}

/* INIZIO SFONDO ULIVI */

.wrapper-svg-angolo-sotto {
  position: absolute;
  bottom: 0;
  right: 0;
  overflow: hidden;
  width: 100vw;
  height: 150vh;
  pointer-events: none;
}

.svg-angolo-sopra {
  position: absolute;
  top: -143px; /* sporge fuori dal top */
  left: -151px; /* sporge fuori da sinistra */
  pointer-events: none;
}

.svg-angolo-sotto {
  position: absolute;
  bottom: -100px;
  right: -119px;
  z-index: -1;
  pointer-events: none;
  width: auto;
  max-width: none;
  height: auto;
}

/* FINE SFONDO ULIVI */

/* INIZIO HOMEPAGE */

.contenitore {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
}

.item1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Allura";
  color: #64664a;
  font-size: 76px;
  font-weight: 400;
  line-height: 80px;
}

.item2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(20px, 5vw, 25px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 40px; /* distanza dal fondo, puoi regolarla */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.item3data {
  font-size: clamp(28px, 5vw, 39px);
}

/* FINE HOMEPAGE */
.contenitoreextra {
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: #a29f7e;
  border-radius: 10px;
  min-height: 150vh; /* assicura che sia almeno alto quanto lo schermo */
}

/* INIZIO STORIA */

.contenitore2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  height: 144vh;
  min-height: 100vh;
  height: auto;
}

.title {
  font-family: "Cormorant Garamond";
  font-size: 49px;
  color: #64664a;
  font-weight: bold;
  padding-top: 10px;
  text-align: center;
}

p {
  font-family: "Montserrat";
  width: 90%;
  max-width: 360px;
  font-size: 16px;
}

.prima,
.seconda {
  width: 90%;
  max-width: 360px;
  height: auto;
  border-radius: 10px;
  margin-top: 10px;
}

.margherite {
  margin-top: 15px;
  margin-bottom: 15px;
}

p b {
  color: #64664a;
}

#we-said-yes {
  font-family: "Allura";
  font-size: 61px;
  color: #bdaa91;
  margin: 20px;
}

/* FINE STORIA  */

/* INIZIO REGALO */
.contenitore3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  text-align: center;
  /* height: 454px; */
  color: #fffefd;
  border-radius: 10px;
  border-top-right-radius: 10px;
}

.alberofine {
  max-width: 100%;
  width: 246px;
  height: auto;
  display: block;
}

.contenitore3 > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contenitore3 > div:first-of-type {
  margin-top: 30px;
}

.contenitore3 p {
  font-family: "Montserrat", sans-serif;
  font-size: 25px;
  font-weight: 500;
  color: #fffefd;
  margin: 8px 0;
  width: 100%;
  text-align: center;
}

.prova {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  margin-bottom: 26px;
}

.prova img {
  display: block;
  margin: 0 auto 10px auto;
  max-width: 100%;
  height: auto;
}

.prova p {
  margin: 0;
}

a {
  text-decoration: none;
  color: #fffefd;
}

button:hover {
  background-color: #fffefd;
  color: #64664a; /* colore scuro leggibile sullo sfondo chiaro */
}

/* FINE REGALO */

/* INIZIO IL NOSTRO VIAGGIO  */
.title2 {
  font-family: "Cormorant Garamond";
  color: #fffefd;
  font-weight: bold;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  margin-bottom: 10px;
  display: block;
  margin: 0 auto;
  margin-bottom: 10px;
}

.contenitore4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url(./svg/africa.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-top: 10px;
}

.contenitore4 p b,
.tanzania {
  /* Stili qui */
  color: #fffefd;
  margin-bottom: 10px;
}

.tanzania {
  font-size: 30px;
}

.contenitore4 p {
  /* Stili qui */
  color: #33322e;
}

.contenitore5 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
  max-width: 360px; /* Limita la larghezza totale */
  margin: 0 auto;
}

.top img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 24px;
}

.bottom {
  display: flex;
  gap: 10px;
  width: 100%;
}

.bottom img {
  width: calc(50% - 5px); /* 10px gap totale / 2 = 5px per lato */
  height: auto;
  border-radius: 10px;
}

/* FINE IL NOSTRO VIAGGIO  */

/*  INIZIO ANIMAZIONE ANELLI E CUORE */
.animazione {
  position: relative;
  width: 33.45px;
  height: 26px;
  margin-bottom: 20px;
}

.ring,
.heart {
  position: absolute;
  top: 0;
  left: 0;
  width: 33.45px;
  height: 26px;
  transform-origin: center center;
}

.heart {
  transition: opacity 1s ease, transform 1s ease;
}

.heart.hidden {
  opacity: 0;
  transform: scale(0.5);
}

@keyframes floatHeart {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
/*  FINE ANIMAZIONE ANELLI E CUORE */

.alberofine {
}
/* INIZIO MEDIA */
@media (max-width: 320px) {
  .contenitore3 > img {
    max-width: 100%;
    width: 70%;
    height: auto;
    display: block;
  }

  .contenitore3 p {
    font-size: 20px;
  }

  .title {
    font-size: 41px;
    margin-bottom: -20px;
  }

  .title2 {
    font-size: 29px;
    margin-top: 10px;
  }

  .margherite {
    margin: 0;
  }

  @media (max-width: 320px) {
    .contenitore5 {
      max-width: 300px;
      gap: 8px;
      padding: 8px;
    }

    .bottom {
      gap: 8px;
    }

    .bottom img {
      width: calc(50% - 4px);
    }
  }
}

/* FINE MEDIA */

/* INIZIO ANIMAZIONE AEREO */

.carousel-container {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  padding: 20px 8px; /* leggero padding per non incollare le immagini ai bordi */
  box-sizing: border-box;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  width: max-content;
}

.carousel img {
  width: 172px;
  height: 213px;
  object-fit: cover;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  color: #333; /* o bianco, se lo sfondo è scuro */
  cursor: pointer;
  z-index: 2;
  padding: 0;
  opacity: 0.8;
}

.arrow:hover {
  opacity: 1;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

/* 📱 Mobile only: fino a 767px */
@media (min-width: 768px) {
  .carousel-container {
    overflow-x: visible;
    scroll-snap-type: none;
    justify-content: center;
    max-width: none;
  }

  .carousel {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }

  .carousel img {
    scroll-snap-align: unset;
  }
}

.flight-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.flight-svg {
  width: 300px;
  height: 150px;
}

.iban-box {
  display: flex;
  background: rgba(217, 217, 217, 0.39);
  border-radius: 10px;
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
}

.iban-box input {
  border: none;
  background: transparent;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  width: 250px;
}

.iban-box button {
  background: transparent;
  border: 0.5px solid #33322e;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#thanks-msg {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 20px;
  color: #64664a;
  transition: opacity 0.4s ease;
  text-align: center;
  width: 100%;
}

#final-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.hidden {
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

.visible {
  opacity: 1;
  height: auto;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 20px;
  color: #64664a;
  transition: opacity 0.4s ease;
}

/* FINE ANIMAZIONE AEREO */

/* FOOTER  */

.contenitore6 {
  background-color: #33322e;
  color: white;
  padding: 40px 20px;
  width: 100vw; /* largo quanto lo schermo */
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.contenitore6 h2 {
  font-family: "Cormorant Garamond", serif;
  text-align: center;
  font-size: 25px;
  margin-bottom: 40px;
  line-height: 1.4;
}

.contenitore6 .sezione {
  margin-bottom: 25px; /* separa i blocchi */
}

.contenitore6 h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 10px;
  margin-bottom: 0; /* attacca a <p> */
  text-transform: uppercase;
}

.contenitore6 p,
.contenitore6 address {
  font-size: 10px;
  font-style: normal;
  margin-top: 0; /* attacca a <h3> */
  margin-bottom: 0;
  text-transform: none;
}

.p-finale {
}

.noi {
  font-size: 9px;
  margin-left: 22px;
}

.contenioreextra {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  background-color: #a29f7e;
  border-radius: 10px;
  padding-top: 40px;
}

.paga {
  text-align: center;
}
