@font-face {
  font-family: Iansui;
  src: url(../Fonts/Iansui/Iansui-Regular.ttf);
}

@font-face {
  font-family: 'luckiest guy';
  src: url(../Fonts/luckiest-guy/LuckiestGuy-Regular.ttf);
}

@font-face {
  font-family: rock-salt;
  src: url('../Fonts/rock-salt/RockSalt-Regular.ttf');
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  background: rgb(238, 238, 238);
  background-size: cover;
  font-family: Iansui;
  font-size: 16px;
  font-weight: 400;
  z-index: -1;
}

main {
  position: relative;
  margin: 0 20px;
}

.emoji {
  width: 60px;
  border-radius: 50%;
  cursor: pointer;
}

.emoji.hop {
  animation: hop 1s;
}

@keyframes hop {
  0% {
    transform: translateY(0px) scale(1);
  }
  20% {
    transform: translateY(-20px) rotate(0deg) scale(1.2);
  }
  80% {
    transform: translateY(-20px) rotate(360deg) scale(1.2);
  }
  100% {
    transform: translateY(0px) rotate(360deg) scale(1);
  }
}

h3,
h2 {
  font-weight: 800;
  margin-top: 5%;
  margin-bottom: 5vh;
}

h3 {
  justify-self: center;
  text-align: center;
}

.hero {
  display: grid;
  justify-items: center;
  margin: 1rem 4rem;
}

.photo-wrapper {
  width: 40em;
  height: 40em;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 2em;
  justify-self: center;
  grid-column: 1 / 2;
  grid-row: 1;
  box-shadow: 0 0 100px rgba(255, 217, 0, 0.8);
}

.green-txt {
  color: rgb(32, 138, 89) !important;
}

.bold-font {
  font-weight: 900;
}

#val-photo {
  width: 100%;
  height: auto;
  position: relative;
  bottom: -15px;
  display: block;
  object-fit: cover;
  object-position: bottom;
  filter: brightness(0.75) contrast(1.4) saturate(1.3);
}

h1 {
  letter-spacing: -3px;
  font-weight: 900;
  color: black;
  font-family: rock-salt;
  text-shadow: 3px 3px 5px hsl(152, 69%, 31%);
  font-size: clamp(1.8em, 3vw, 3em);
}

.indent-me {
  margin-top: 1rem;
}

.accent-txt {
  color: rgb(226, 13, 13);
  font-family: rock-salt;
}

.intro-txt {
  letter-spacing: -1px;
  margin: 1rem;
  grid-column: 2 / 3;
  text-align: center;
  align-self: center;
}

.logo img {
  height: 50px;
  position: absolute;
  right: 2%;
  top: 14%;
}

#loader-backdrop {
  width: 100vw;
  height: 100%;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(54, 54, 54, 0.8);
  z-index: 100;
}

#loader-backdrop img {
  width: 40vw;
  border-radius: 50px;
  position: relative;
  align-self: center;
  z-index: 50;
}

#loader-backdrop h4 {
  z-index: 100;
  font-weight: 600;
  position: absolute;
  text-align: center;
  text-justify: center;
  width: 200px;
  height: 50px;
  bottom: 20vh;
  border-radius: 50%;
  background-color: rgb(168, 244, 252);
  border: 2px solid rgb(192, 0, 0);
  color: rgb(25, 97, 25);
}

header {
  background-image: linear-gradient(
    45deg,
    hsl(152, 69%, 31%),
    white,
    rgb(226, 13, 13)
  );
  text-align: center;
  margin: 0px;
  padding: 20px;
  border: 0px;
  border-bottom: 2px solid rgb(25, 97, 25);
  display: flexbox;
  z-index: 10;
  position: sticky;
  top: 0;
}

.head-button {
  background-color: rgb(226, 13, 13);
  color: white;
  padding: 0.5em 2em;
  border-radius: 25px;
  border: 2px solid hsl(152, 69%, 31%);
  text-align: center;
  margin: 0.5em;
  box-shadow: 3px 3px 5px rgb(58, 58, 58);
  transition-duration: 200ms;
}

.head-button:hover {
  background-color: white;
  color: red;
  border: 2px solid red;

  transform: scale(1.2);
}

.head-button:active {
  background-color: hsl(152, 69%, 31%);
  border-color: red;
  color: white;
  transform: scale(0.9);
}

#head-buttons-div {
  display: flex;
  position: relative;
  justify-content: center;
  gap: 15px;
}

.form-btn {
  border: 2px solid red;
  background: gold;
  padding: 0.5em 4em;
  color: black;
  font-weight: 800;
  font-size: 1rem;
}


ul {
  list-style: none;
  padding: 0;
  margin: 0%;
}

.nav-links {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  width: 34px;
}

.bar {
  flex-basis: 100%;
  height: 4px;
  background-color: black;
  margin: 3px;
  border-radius: 2px;
}

#header-headline {
  font-size: 48px;
  position: relative;
  justify-self: center;
  font-weight: 800;
  text-shadow: 3px 3px 5px;
}

.link-fix {
  display: contents;
}

#prenota,
#galleria-div,
#libro-div,
#recensioni,
#contatti:target {
  scroll-margin-top: 4em;
}

.libro-btn {
  display: inline-block;
}

#libro {
  float: left;
  border: 1px solid green;
  width: 20em;
  margin: 0 2em 2em 0;
}

#libro-div {
  color: white;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../Images/Italy-Pictures/1PolignanoItalyshutterstock_1356233981.avif);
  background-size: cover;
  padding-bottom: 1%;
  border-radius: 20px;
  padding: 0 2em 2em;
}

iframe {
  display: block;
  position: relative;
  top: 2vh;
  justify-self: center;
  border-radius: 20px;
  box-shadow: 4px 4px 10px;
  height: 50vh;
  width: 50vw;
}

#chi-sono {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#polignano {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.picture-img-frame {
  height: 500px;
  overflow: hidden;
}

.picture-std {
  width: 100%;
  position: relative;
  top: -40%;
  transition: all 100ms ease-in-out;
}

.picture-std:hover,
.picture-std2:hover {
  transform: scale(1.3);
  transition: all 200ms ease-in-out;
}

.grid-img {
  width: 80%;
  align-self: center;
  justify-self: center;
  border-radius: 50px;
  border: 1px solid green;
  box-shadow: 5px 5px 7px rgb(58, 58, 58);
  filter: brightness(0.9) contrast(1.3) saturate(1.1);
}

.prenota-img-frame {
  margin-top: 2em;
  align-self: center;
  justify-self: center;
  border-radius: 50px;
  border: 1px solid green;
  box-shadow: 5px 5px 7px rgb(58, 58, 58);
  filter: brightness(0.9) contrast(1.3) saturate(1.1);
  width: 80%;
  overflow: hidden;
}
.prenota-img {
  width: 100%;
}

.here-link {
  text-decoration: underline;
  color: blue;
}

.carousel-inner {
  border-radius: 20px;
}

.carousel-item {
  background-color: rgba(0, 0, 0, 1);
  justify-items: center;
  text-shadow: 3px 3px 4px rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}
.carousel-item > img {
  display: flex;
  justify-self: center;
  transform: scale(1.2);
  opacity: 0.5;
}

.carousel-item:hover img {
  transform: scale(1);
  opacity: 0.3;
  filter: blur(2px);
}

.review-container {
  max-width: 80%;
  margin: auto;
  background: white;
  padding: 1.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

.reviews-display {
  min-height: 150px;
  justify-content: space-between;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow: hidden;
}

.review-text {
  background: #eee;
  /* color: white; */
  border-radius: 20px;
  border: 1px solid black;
  width: 30%;
  padding: 1rem;
  font-style: italic;
  transition: opacity 0.3s ease;
}

.controls {
  margin-top: 1rem;
  display: flex;
  gap: 2em;
  align-items: center;
  justify-content: center;
}

.prenota-p {
  justify-self: center;
  width: 60vw;
}

.center-me {
  justify-self: center;
}

.card-transition {
  transition: transform 0.8s ease, opacity 0.8s ease;
  opacity: 0; /* start invisible */
}

.card-transition:nth-of-type(3n-2).visible,
.card-transition:nth-of-type(3n).visible,
.card-transition:nth-of-type(3n-1).visible {
  transform: translate(0, 0);
  opacity: 1;
}

.card-transition:nth-of-type(3n-2) {
  transform: translateX(-90%);
}

.card-transition:nth-of-type(3n) {
  transform: translateX(90%);
  transition-delay: 300ms;
}
.card-transition:nth-of-type(3n-1) {
  transform: translateY(60%);
}

.left-align {
  text-align: left;
  list-style-type: disc;
  margin-left: 1em;
  margin-right: 1em;
}

#galleria-pics-div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
}

.hidden {
  opacity: 0;
  filter: blur(1000px);
  transition: 600ms;
}

.show {
  opacity: 1;
  filter: blur(0);
}

.galleria {
  width: 30%;
  margin: 0.5% 0;
  background-color: white;
  padding: 0.5em 0.5em 0 0.5em;
  box-shadow: 5px 5px 7px rgb(58, 58, 58);
  border-radius: 5px;
  justify-content: center;
  transition: all 0.5s;
  cursor: pointer;
}

.galleria > p {
  padding: 0.5em;
  transform: rotate(-4deg);
  font-family: rock-salt;
  font-size: 1.8em;
  text-align: center;
}

.galleria > img {
  width: 100%;
  border-radius: 5px;
}

.clicked-left {
  transform: scale(2.5);
  transform-origin: left center;

  z-index: 5;
  position: relative;
}

.clicked-center {
  transform: scale(2.5);
  transform-origin: center center;
  z-index: 5;
  position: relative;
}

.clicked-right {
  transform: scale(2.5);
  transform-origin: right center;
  z-index: 5;
  position: relative;
}

fieldset div {
  width: 100%;
  display: flex;
  position: relative;
  flex-direction: column;
  padding: 15px;
}

#contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
}

.contatti-form {
  width: 90%;
}

footer {
  text-align: center;
  justify-content: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(../Images/Italy-Pictures/SPOLETO-PANORAMICA.jpg);
  border-top: 1px solid red;
  background-position: 0 33%;
  background-size: cover;
  color: white;
  font-size: 15px;
  padding: 5% 0px;
}
.crossout {
  text-decoration: line-through !important;
}
.sale-img {
  width: 6rem;
}
.sale-img:hover {
  animation: hop 1.5s;
}

.foot-icons {
  width: 40px;
  transition: all 200ms ease-in-out;
  margin: 0 0.5cap;
}
.foot-icons:hover {
  transform: scale(1.3);
  transition: all 200ms ease-in-out;
}

a {
  text-decoration: none;
}

@media (prefers-reduced-motion) {
  .hidden {
    transition: none;
  }
}
@media (min-width: 1071px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: none;
  }
}

@media (max-width: 1070px) {
  .nav-links {
    display: none;
  }
  #header-headline {
    display: none;
  }
  #head-buttons-div {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .hero {
    display: block;
  }
  #chi-sono {
    display: block;
  }
}

@media (max-width: 970px) {
  .logo img {
    display: block;
  }
  #contatti-grid {
    display: block;
  }

  .prenota-p {
    width: 80vw;
  }
}

@media (max-width: 850px) {
  .controls {
    display: block;
  }

  iframe {
    height: 40vh;
    margin-bottom: 5vh;
  }
  .photo-wrapper {
    height: 85vw;
    width: 85vw;
  }

  #galleria-pics-div {
    display: block;
    justify-items: center;
  }
  .galleria {
    display: block;
    width: 90vw;
    margin: 5% 0;
  }
  #libro-div {
    padding: 5%;
  }
  #libro-div img {
    display: flex;
    justify-self: center;
  }
  .prenota-p {
    width: 95vw;
  }
  .reviews-display {
    display: block;
  }
  .review-text {
    width: 100%;
    margin: 1em 0;
  }

  .grid-img {
    height: 80vh;
  }

  .picture-img-frame {
    height: auto;
    overflow: hidden;
  }

  .picture-std {
    top: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .col:hover {
    transform: none;
    z-index: 100;
  }

  .col:hover:nth-of-type(3n) {
    transform: none;
    z-index: 100;
  }

  .col:hover:nth-of-type(3n - 2) {
    transform: none;
    z-index: 100;
  }

  .prenota-img-frame {
    width: 90%;
  }
}

@media (max-width: 600px) {
  .form-btn,
  .book-now-btn {
    padding: 0.5rem;
    width: 100%;
  }
}

@media (max-width: 435px) {
  #libro {
    margin: auto;
    width: 100%;
  }
}
