*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

html,
body {
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

body {
  background: #eaeaea;
  color: #3f473f;
}

/* Fonts */
@font-face {
  font-family: 'Andasia';
  src: url('fonts/Andasia.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.f-andasia {
  font-family: 'Andasia', serif;
  font-size: 6dvh;
  color: #658067;
}

.f-information {
  font-family: 'Ovo', serif;
  font-size: 4dvh;
  color: #3f473f;
}

.f-cr {
  font-family: 'Andasia', serif;
  font-size: 6.5dvh;
  color: #658067;
}

@media screen and (min-width: 480px) {
  .f-cr {
    font-size: 8dvh;
  }
}

/* Fine fonts */

/* Scroll and sections */
.scroll-container {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.section {
  height: 100dvh;
  scroll-snap-align: start;
  transition: opacity 1.5s;
  opacity: 0;
}

.fade-in {
  opacity: 1;
}

.fade-out {
  opacity: 0;
}

/* Fine scroll/sezioni */

.main {
  width: 100%;
  max-width: 1400px;
  overflow-x: hidden;
  min-width: 0;
  height: 100dvh;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.no-webp .main-bg {
  background: url("assets/bg.png") center center/cover no-repeat;
}

.webp .main-bg {
  background: url("assets/bg.webp") center center/cover no-repeat;
}

/* Corner Images */
.corner-img {
  position: absolute;
  width: 16.666%;
}

.corner-img-left {
  top: 0;
  left: 0;
}

.corner-img-right {
  top: 0;
  right: 0;
}

.corner-img-bottom-left {
  width: 20%;
  bottom: 0;
  left: 0;
}

.corner-img-bottom-right {
  bottom: 0;
  right: 0;
}

/* Fine Corner Images */

/* Intro */
.section-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  height: auto;
  z-index: 1;
}

/* Fine intro */

/* CR */
.section-cr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding-top: 5%;
  padding-bottom: 5%;
}

.section-cr .cr {
  text-align: center;
}

.section-cr .information {
  text-align: center;
  padding-top: 2%;
}

.section-cr .image {
  padding-top: 2%;
  display: flex;
  justify-content: center;
  width: 65%;
}

.cr-img {
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Fine CR */

/* Ceremony  */
.section-ceremony {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding-top: 5%;
  padding-bottom: 5%;
}

.section-ceremony .information {
  text-align: center;
  padding-left: 15%;
  padding-right: 15%;
}

.section-ceremony .place {
  text-align: center;
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 4%;
}

.section-ceremony .image {
  display: flex;
  justify-content: center;
}

.chiesa-img {
  width: 90%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Fine ceremony */

/* Restaurant */
.section-restaurant {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding-top: 5%;
  padding-bottom: 5%;
}

.section-restaurant .information {
  text-align: center;
  padding-left: 15%;
  padding-right: 15%;
}

.section-restaurant .place {
  text-align: center;
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 4%;
}

.section-restaurant .image {
  display: flex;
  justify-content: center;
  width: 65%;
}

.portico-img {
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Fine restaurant */
.zoom-effect {
  display: inline-block;
  transition: transform 0.4s ease;
}

.zoom-effect:hover {
  transform: scale(1.05);
}

.zoom-effect:active {
  transform: scale(0.98);
}


/* Animazione zoom in/out per link attivi */
@keyframes zoom-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

/* Classe che applica l'animazione */
.zoom-pulse {
  animation: zoom-pulse 1.2s ease-in-out 0.6s;
}
