@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900");

.btn2 {
  position: relative;
  display: inline-block;
  padding: 15px 30px;
  border: 2px solid #2a7db6;
  text-transform: uppercase;
  color: #2a7db6;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  transition: 0.5s;
}

.btn2::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% - -2px);
  background-color: white;
  transition: 0.5s ease-out;
  transform: scaleY(1);
}

.btn2::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% - 50px);
  background-color: white;
  transition: 0.5s ease-out;
  transform: scaleY(1);
}

.btn2:hover::before {
  transform: translateY(-25px);
  height: 0;
}

.btn2:hover::after {
  transform: scaleX(0);
  transition-delay: 0.15s;
}

.btn2:hover {
  border: 2px solid #2a7db6;
}

.btn2 span {
  position: relative;
  z-index: 3;
}

button {
  text-decoration: none;
  border: none;
  background-color: transparent;
}

.container1 {
  position: relative;
  width: 100vw;
  /* Larghezza intera dello schermo */
  height: 40vh;
  /* Altezza dello schermo */
  display: flex;
  justify-content: center;
  align-items: center;
}

.container1 .glass {
  position: relative;
  width: 238px;
  height: 238px;
  background: linear-gradient(white, transparent);
  border: 1px solid #2a7db6;
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: normal;
  transition: 0.5s;
  border-radius: 10px;
  margin: 0 -45px;
  backdrop-filter: blur(10px);
  transform: rotate(calc(var(--r) * 1deg));
}

.glass {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.container1:hover .glass {
  transform: rotate(0deg);
  margin: 10px;
  padding: 10px;
}

.container1 .glass::before {
  content: attr(data-text);
  position: absolute;
  margin-top: 100px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #2a7db6;
  padding: 10px 15px; /* aggiungi padding per distanziare il testo */
  box-sizing: border-box; /* per includere il padding nella larghezza */
  text-align: center; /* per centrare il testo */
}

.container1 .glass svg {
  font-size: 2.5em;
  fill: #2a7db6;
}

@media (max-width: 1200px) {
  .container1 .glass {
    position: relative;
    width: 238px;
    height: 250px;
    background: linear-gradient(white, transparent);
    border: 1px solid #2a7db6;
    box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: normal;
    border-radius: 10px;
    transition: none;
    backdrop-filter: blur(10px);
    margin: 5px;
    transform: none;
  }

  .glass {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .container1 .glass::before {
    content: attr(data-text);
    position: absolute;
    margin-top: 100px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2a7db6;
    padding: 10px 15px; /* aggiungi padding per distanziare il testo */
    box-sizing: border-box; /* per includere il padding nella larghezza */
    text-align: center; /* per centrare il testo */
  }

  .container1 .glass svg {
    font-size: 2.5em;
    fill: #2a7db6;
  }
}
@media (max-width: 768px) {
  .container1 {
    display: flex; /* assicurati che sia flex */
    flex-wrap: wrap; /* consente di andare a capo */
    justify-content: center; /* centra i contenitori */
    align-items: flex-start; /* allinea in alto */
    height: auto;
    background-color: transparent;
  }

  .container1 .glass {
    position: relative;
    width: calc(50% - 20px); /* 2 colonne con margine */
    max-width: 250px;
    height: 250px;
    max-height: 250px;
    /* background: linear-gradient(white, transparent); */
    border: 1px solid #2a7db6;
    box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: normal;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    margin: 10px;
    flex-wrap: nowrap;
    transition: none;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .container1 .glass::before {
    content: attr(data-text);
    position: absolute;
    margin-top: 100px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2a7db6;
    padding: 10px 15px; /* aggiungi padding per distanziare il testo */
    box-sizing: border-box; /* per includere il padding nella larghezza */
    text-align: center; /* per centrare il testo */
  }

  .container1 .glass svg {
    font-size: 2.5em;
    fill: #2a7db6;
  }
}

.welcome-area {
  margin-top: -200px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(#348cd2, #ffffff);
  background-repeat: no-repeat;
  background-position: center center;
  flex-wrap: nowrap;
  height: 80vh;
  background-size: 108% 98%;
  padding-top: 200px;
  z-index: -999;
}

.welcome-area .header-text {
  position: absolute;
  top: 46%;
  transform: translateY(-55%);
  text-align: center;
  width: 100%;
}

.welcome-area .header-text h1 {
  font-weight: 600;
  font-size: 48px;
  line-height: 54px;
  letter-spacing: 1.4px;
  margin-bottom: 30px;
  color: #fff;
}

.welcome-area .header-text p {
  font-weight: 400;
  font-size: 20px;
  color: #fff;
  line-height: 28px;
  letter-spacing: 0.25px;
  margin-bottom: 40px;
  margin-top: 25px;
  position: relative;
}

#container1 {
  margin-top: -320px;
}

.visible {
  display: inline !important;
}

/* 
---------------------------------------------
Responsive Style
--------------------------------------------- 
*/

body {
  overflow-x: hidden;
}

@media screen and (orientation: landscape) and (max-width: 1024px) {
  .welcome-area {
    margin-top: 0;
  }
  #container1 {
    margin-top: 0;
  }
}
