@import url('https://fonts.cdnfonts.com/css/against-2');
@import url('https://fonts.cdnfonts.com/css/old-london');

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
:root{
	--primaryColor:#7D0000;
	--secondaryColor:#4B0000;
	--bgColor:#fbfbfb;
	--textColor:#0e0e0e;
	--fontHeading:'against', sans-serif;
	--fontText:'against', sans-serif;
}
body{
	background:var(--bgColor);
    color:var(--textColor);
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.preloader{
  height: 100%;
  width: 100%;
  z-index: 999;
  background-color: var(--primaryColor);
  position: fixed;
  display: flex;
  top: 0;
  left: 0;

}
.preloader > img{
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}

h1,h2,h3,h4,h5,h6{
    font-family: var(--fontHeading);
}
h1{font-size: 70px; margin: 0;}
h2{font-size: 60px; margin: 0;}
h3{font-size: 40px; margin: 0;}
h4{font-size: 30px; margin: 0;}
h5{font-size: 20px; margin: 0;}
h6{font-size: 16px;margin: 0;}
i{font-size: 250px;}
.font_fiori{font-size: 90px;}
#header_valentin{
    background-color: transparent;
}
.text_red{
    color: var(--primaryColor);
}
.text_white{
    color: var(--bgColor);
}
.btn{
    color: var(--primaryColor);
    background-color: var(--bgColor);
    border-radius: 30px;
    padding: 12px 24px 12px 24px;
}
#hero{
    height: 100%;
    width: 100%;
}
.pulse-img {
            animation: pulse 1.5s infinite ease-in-out;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.1);
                opacity: 1;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }
    
.margin-b{
    margin-bottom: 700px;
}
.m-section{
    margin-top: 600px;
}
#conosciuti{
    background-color: transparent;
}
.clock {
  width: 800px;
  height: 800px;
  border: 5px solid #fff;
  border-radius: 50%;
  position: relative;
  background-image: url(img/orologio_bestia.jpeg);
  background-size: cover;
}

.hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(0deg);
  transition: transform 0.05s linear;
}

.hour-hand {
  width: 6px;
  height: 180px;
  background: #00067d;;
}

.minute-hand {
  width: 4px;
  height: 210px;
  background: #00067d;
}

.second-hand {
  width: 2px;
  height: 200px;
  background:var(--primaryColor);
}

.center-dot {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.orologio{
  width: 80%;
  background-color: var(--secondaryColor);
  border-radius: 30px;
  box-shadow: 10px 10px 10px rgba(0,0,0,0.2);
  height: 100%;
  position: relative;
  padding: 40px;
}
.left_s_0{
    left: 0 !important;
}
.swiper {
    width: 1000px;
    height: 1000px;
  }

  .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
  }

  .swiper-slide:nth-child(1n) {
    background-image:url(img/foto10.jpg);
    background-size: cover;
  }

  .swiper-slide:nth-child(2n) {
    background-image:url(img/foto9.jpg);
    background-size: cover;

  }

  .swiper-slide:nth-child(3n) {
    background-image:url(img/foto8.jpg);
    background-size: cover;

  }

  .swiper-slide:nth-child(4n) {
    background-image:url(img/foto7.jpg);
    background-size: cover;

  }

  .swiper-slide:nth-child(5n) {
    background-image:url(img/foto6.JPG);
    background-size: cover;

  }

  .swiper-slide:nth-child(6n) {
    background-image:url(img/foto5.JPG);
    background-size: cover;

  }

  .swiper-slide:nth-child(7n) {
    background-image:url(img/foto4.JPG);
    background-size: cover;

  }

  .swiper-slide:nth-child(8n) {
    background-image:url(img/foto3.jpg);
    background-size: cover;

  }

  .swiper-slide:nth-child(9n) {
    background-image:url(img/foto2.JPG);
    background-size: cover;

  }

  .swiper-slide:nth-child(10n) {
    background-image:url(img/foto1.JPG);
    background-size: cover;

  }
  #fiori{
    background:var(--primaryColor);
    height: auto;
    padding: 2%;
    display: flex;
    justify-content: center;
  }
  #fiori_interno{
    background:radial-gradient(circle, rgba(223,1,1,1) 0%, rgba(62,0,0,1) 100%);
    width: 70%;
    height: auto;
    border-radius: 5%;
  }
  #main_container {
    background-color:transparent;
    }
    .stage_animation {
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    animation: stage_animation 5s linear infinite;
    }
    .stage_animation h2 {
    display: inline-block;
    font-family: 'Old London', sans-serif;;
    color:var(--secondaryColor);
    font-size: 250px;
    }
    @keyframes stage_animation {
      0% {
      transform: translate3d(0, 0, 0);
      }
      100% {
      transform: translate3d(-50%, 0, 0);
      }
      0% {
        transform: translate3d(0, 0, 0);
        }
      }

      /* ------------------------------------------------- */
          /* Stile del biglietto */
    .bigliettino {
      width: 1200px;
      height: 1100px;
      /* Se non hai un'immagine, puoi usare un colore di sfondo */
      background: url('img/carta.jpg') no-repeat center center/cover;
      background-color: #ddd;
      box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
      transform: scale(0.9) rotate(-5deg);
      transition: transform 0.4s, background 0.4s;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      text-align: center;
      position: relative;
      cursor: pointer;
    }
    /* Il contenuto è nascosto di default */
    .contenuto {
      opacity: 0;
      transform: scale(0.8);
      transition: opacity 0.3s, transform 0.3s;
    }
    /* Il biglietto si apre al passaggio del mouse oppure se ha la classe "open" */
    .bigliettino:hover,
    .bigliettino.open {
      transform: scale(1) rotate(0);
      background: url('img/carta.jpg') no-repeat center center/cover;
    }
    .bigliettino:hover .contenuto,
    .bigliettino.open .contenuto {
      opacity: 1;
      transform: scale(1);
    }
    /* Stile dei bottoni */
    button:hover {
        border: 2px solid #cd0000;
    }
    .pencil-button {
      position: relative;
      padding: 12px 24px;
      font-size: 40px;
      border: 3px solid #4B0000;
      border-radius: 10px;
      background-color: transparent;
      color: black;
      font-family: var(--fontText);
      cursor: pointer;
      overflow: hidden;
    }
    /* L'SVG che copre interamente il pulsante */
    .pencil-button svg.cross {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none; /* L'SVG non interferisce con il click */
      /* Forziamo lo stretching per farlo adattare esattamente alle dimensioni del pulsante */
    }
    /* Stile per le linee della crocetta */
    .line {
      stroke: #4B0000;       /* Colore in linea con il bordo del pulsante */
      stroke-width: 2;
      fill: none;
      /* La lunghezza della linea nel sistema di coordinate dell'SVG (viewBox 0 0 100 100) è circa 141.4 (diagonale di un quadrato 100x100) */
      stroke-dasharray: 141.4;
      stroke-dashoffset: 141.4;
      transition: stroke-dashoffset 0.5s ease-out;
    }
    /* Al passaggio del mouse, la prima linea (da in alto a sinistra a in basso a destra) viene tracciata */
    .pencil-button:hover .line1 {
      stroke-dashoffset: 0;
      transition-delay: 0s;
    }
    /* La seconda linea (da in alto a destra a in basso a sinistra) parte con un breve ritardo */
    .pencil-button:hover .line2 {
      stroke-dashoffset: 0;
      transition-delay: 0.3s;
    }
    .fade-in {
      opacity: 0;
      transform: translateY(30px); /* Sposta il testo verso il basso inizialmente */
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  .fade-in.show {
      opacity: 1;
      transform: translateY(0);
  }

  /* Contenitore */
  .message-container {
    position: relative;
    width: 1200px;
    height: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 30%;
}

/* Pacco regalo */
.gift-box {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--secondaryColor);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 1s ease-in-out;
}

/* Nastro */
.ribbon {
    position: absolute;
    width: 100%;
    height: 20px;
    background: #05003c; /* Oro */
    top: 50%;
    transform: translateY(-50%);
}

/* Fiocco */
.bow {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #05003c; /* Oro */
    top: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

/* Parte superiore del pacco (coperchio) */
.gift-lid {
    position: absolute;
    width: 100%;
    height: 50px;
    background: #a32026; /* Rosso più scuro */
    top: 0;
    border-radius: 10px 10px 0 0;
    transition: transform 1s ease-in-out;
}



