@font-face {
  font-family: 'Slight';
  src: url('../fonts/Slight-Regular.woff2') format('woff2'),
    url('../fonts/Slight-Regular.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}


body {
  margin: 0;
}

section {
  width: 100%;
  /* background-color: red; */
}

.green {
  color: #264D1C;
}

.hFull {
  height: 100vh;
}

/* section:nth-child(odd) {
      background-color: green;
    } */

.inner {
  width: 75%;
  display: flex;
  height: 100%;
  align-items: center;
  justify-self: center;
  flex-direction: column;
}

.one,
.five {
  /* Sostituisci con i tuoi URL o percorsi file */
  background-image:
    url('../img/bg1_topright.png'),
    url('../img/bg1_bottomleft.png');

  /* Posizionamento: la prima va in alto a destra, la seconda in basso a destra */
  background-position:
    top right,
    bottom left;

  /* Evita che le immagini si ripetano coprendo tutto il div */
  background-repeat: no-repeat;

  /* Opzionale: controlla la dimensione delle immagini (es. 100px di larghezza) */
  background-size:
    350px auto,
    500px auto;


  /* Aggiungi del padding a destra per evitare che il testo finisca sopra le immagini */
  /* padding-right: 160px; */

  /* Solo per estetica dell'esempio */
  min-height: 400px;
}

.three {
  position: relative;
}

.three::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/fedi.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.1;
  z-index: 0;
}

.white {
  color: white;
}

.quicksand {
  font-family: "Quicksand", sans-serif;
  font-weight: 200;
}

.cormorant {
  font-family: "Cormorant", serif;
  font-weight: 200;
}

.uppercase {
  text-transform: uppercase;
}

.slight {
  font-family: 'Slight';
  font-weight: 300;
  font-style: normal;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.divider {
  height: 1px;
  background-color: #264D1C;
  ;
  width: 100px;
}

.dates {
  margin: 0 0;
}

.mZero {
  margin: 0;
}

.mY {
  margin: 15px 0;
}

.mYSmall {
  margin: 5px 0;
}

.taCenter {
  text-align: center;
}

.taRight {
  text-align: right;
}

.annonciament {
  margin: 20px 0;
}

.churc {
  margin-top: 20px;
  text-align: center;
}

.churc img {
  width: 100px;
  height: auto;
}

.fsSmall {
  font-size: 18px;
}


#countdown-container {
  display: flex;
  gap: 20px;
  font-family: sans-serif;
  text-align: center;
}

.time-block {
  display: flex;
  flex-direction: column;
  /* Mette la label sotto il numero */
}

.number {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1;
  font-family: "Quicksand", sans-serif;
}

.label {
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-top: 5px;
  font-family: "Quicksand", sans-serif;
}

.two {
  background-image: url('../img/foto-bg.jpeg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Contenitore Principale */
.timeline-container {
  position: relative;
  padding: 20px 0;
  width: 100%;
}

/* La linea centrale verticale */
.timeline-container::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: #ddd;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
  z-index: -1;
}

/* Singolo blocco */
.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

/* Pallino sulla linea centrale */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  right: -7px;
  background-color: #fff;
  border: 2px solid #333;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  z-index: 2;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -7px;
}

/* Contenuto interno (Immagine + Testo) */
.content {
  display: flex;
  /* flex-direction: column; */
  /* Testo sotto l'immagine */
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  /* Centra orizzontalmente */
}

.taRight {
  text-align: right;
}

.image {
  flex: 1;
  max-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-img {
  width: 100%;
  height: auto;
  /* padding: 10px; */
  /* object-fit: cover; */
  /* border-radius: 8px; */
  /* margin-bottom: 10px; */
}

.text-box {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.time {
  font-weight: bold;
  font-size: 1.1rem;
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
  color: #264D1C;
}

.event {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Quicksand", sans-serif;
  font-weight: 200;
  color: #264D1C;
}

.four img {
  width: 100%;
  height: auto;
}

.address-box {
  /* width: 200px; */
  background-color: #7F9E7A;
  padding: 10px 20px;
  border-radius: 50px;
  margin-top: 30px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
}

.address-box a {
  display: flex;
  gap: 10px;
  align-items: stretch;
  /* justify-content: space-between; */
  color: #FFF;
  text-decoration: none;
}

.address-box p {
  margin: 0;
  padding: 0;
  color: #FFF;
}

.address-box a:visited,
.address-box a:active,
.address-box a:hover {
  color: #FFF;
  text-decoration: none;
}

.flex1 {
  flex: 1;
}

.features-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  background-color: silver;
}

/* Responsive: su schermi piccoli tutto a sinistra */

/* @media screen and (max-width: 600px) {
      .timeline-container::after {
        left: 31px;
      }

      .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
      }

      .timeline-item::after {
        left: 23px;
      }

      .right {
        left: 0;
      }

      .content {
        align-items: flex-start;
        text-align: left;
      }

      .text-box {
        align-items: flex-start;
      }
    } */

.title {
  font-size: 3rem;
  padding: 10px 0;
}

.title-container {
  width: 50%;
  margin-top: 30px;
}



.button {
  border-radius: 50%;
  border: none;
  color: #fff;
  cursor: pointer;
  background-color: #264D1C;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
  /* transition: all 0.2s ease; */
}

.button:active {
  transform: scale(0.96);
}

.button:before,
.button:after {
  position: absolute;
  content: "";
  width: 150%;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
  z-index: -1000;
  background-repeat: no-repeat;
}

.button:hover:before {
  top: -70%;
  background-image: radial-gradient(circle, #264D1C 20%, transparent 20%),
    radial-gradient(circle, transparent 20%, #264D1C 20%, transparent 30%),
    radial-gradient(circle, #264D1C 20%, transparent 20%),
    radial-gradient(circle, #264D1C 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, #264D1C 15%, transparent 20%),
    radial-gradient(circle, #264D1C 20%, transparent 20%),
    radial-gradient(circle, #264D1C 20%, transparent 20%),
    radial-gradient(circle, #264D1C 20%, transparent 20%),
    radial-gradient(circle, #264D1C 20%, transparent 20%);
  background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%,
    10% 10%, 18% 18%;
  background-position: 50% 120%;
  animation: greentopBubbles 0.6s ease;
}

@keyframes greentopBubbles {
  0% {
    background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%,
      40% 90%, 55% 90%, 70% 90%;
  }

  50% {
    background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%,
      50% 50%, 65% 20%, 90% 30%;
  }

  100% {
    background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%,
      50% 40%, 65% 10%, 90% 20%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}

.button:hover::after {
  bottom: -70%;
  background-image: radial-gradient(circle, #264D1C 20%, transparent 20%),
    radial-gradient(circle, #264D1C 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, #264D1C 15%, transparent 20%),
    radial-gradient(circle, #264D1C 20%, transparent 20%),
    radial-gradient(circle, #264D1C 20%, transparent 20%),
    radial-gradient(circle, #264D1C 20%, transparent 20%),
    radial-gradient(circle, #264D1C 20%, transparent 20%);
  background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 20% 20%, 18% 18%;
  background-position: 50% 0%;
  animation: greenbottomBubbles 0.6s ease;
}

@keyframes greenbottomBubbles {
  0% {
    background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%,
      70% -10%, 70% 0%;
  }

  50% {
    background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%,
      105% 0%;
  }

  100% {
    background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%,
      110% 10%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}

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

  .title {
    font-size: 2.3rem;
  }

  .fsSmall {
    font-size: 14px;
  }

  .title-container {
    width: 100%;
  }

  .inner {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
  }

  .two {
    background-size: cover;
    background-position: bottom center;
  }

  .timeline-item {
    padding: 10px;
  }
}