@media (max-width: 600px) {
  .carousel-slide.active img {
    transform: scale(1.12);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
  }
}
@font-face {
  font-family: 'ParmigianoReggiano';
  src: url('../fonts/ParmigianoReggianoRegular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'ParmigianoReggiano';
  src: url('../fonts/ParmigianoReggianoBold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Baskerville';
  src: url('../fonts/BaskervilleBE-Regular.7ef09c72.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baskerville';
  src: url('../fonts/BaskervilleBE-Italic.d4cf459c.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Baskerville';
  src: url('../fonts/BaskervilleBE-Bold.9150c1df.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Baskerville';
  src: url('../fonts/BaskervilleBE-Medium.2cf08fd3.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.3;
  color: #333;
  background: linear-gradient(180deg, #f3e7c1 0%, #f3efe1 100%);
  background-size: cover;

  img {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }

  strong {
    font-weight: 500 !important;
  }

  h1 {
    letter-spacing: 4px;
  }
}
.battitura-body {
  background-image: url('./public/images/bg-big1.jpg');
  background-size: cover;
}
main {
  width: 100%;
  /* background-color: #f3efe1; */
  /* background-image: url('./public/images/bg-big1.jpg'); */
  background-repeat: repeat;
  background-position: center center;
  background-size: cover;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.link-cta {
  display: flex;
  flex-direction: center;
  align-items: center;
  font-family: 'ParmigianoReggiano', serif;
  font-weight: 400;
  font-style: Regular;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  color: #cdaf6d;
  padding: 8px;
  border-bottom: 1px solid #cdaf6d;
  width: fit-content;
  margin-top: 40px;
}
/* Hero Section */
.hero {
  position: relative;
  height: 700px;
  min-height: 500px;
  margin: 20px;
  border-radius: 100px / 300px;
  overflow: hidden;
  /* background-image: url('./public/images/hero.jpg'); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* background-color: #f3e7c1; */
}
.il-taglio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #000000cc;
  z-index: 1;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
.hero-container {
  position: relative;
  height: 100%;
  width: 100%;
}

/* Navigation */
.hero-nav {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  z-index: 10;
}

.logo {
  width: 100%;
  margin: 0 auto;
  max-width: 200px;
}

/* Hero Content */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero-title {
  color: white;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-family: 'ParmigianoReggiano', serif;
}
.hero-subtitle {
  font-family: 'Baskerville', serif;
  color: white;
  size: 24px;
  line-height: 150%;
  font-weight: 400;
}

/* Text Section */
.text-section {
  padding: 60px 0;
  /* background: linear-gradient(180deg, #f3e7c1 0%, #f3efe1 100%); */
  font-family: 'Baskerville', serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-text {
  color: #000000;
  margin-bottom: 24px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Baskerville', serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0%;
  text-align: center;
}

.subtitle {
  font-size: 32px;
  font-weight: 500;
  color: #2c1810;
  text-align: center;
  margin: 0 auto;
}

.grechina {
  min-height: 100px;
  object-fit: cover;
}
.testo-corsivo-container {
  display: flex;
  padding: 0 160px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  /* background-color: #f3efe1; */
  padding-top: 120px;
  padding-bottom: 60px;

  .testo-piccolo {
    color: #000;
    text-align: center;
    font-family: 'Caveat', cursive;
    font-size: 44px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    transform: rotate(3deg);
  }
  .testo-grande {
    color: #000;
    font-family: 'Caveat', cursive;
    font-size: 68px;
    font-style: normal;
    font-weight: 400;
    line-height: 90%;
    margin-top: 30px;
    transform: rotate(3deg);
  }
}
.box-immagine {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  /* background-color: #f3efe1; */
  padding-bottom: 64px;
}
.testo-e-icone {
  margin-bottom: 40px;
  p {
    color: #000;
    text-align: center;
    font-family: 'Caveat', cursive;
    font-size: 52px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    transform: rotate(5deg);
    max-width: 270px;
  }
  .icone {
    display: flex;
  }
}

.text-carousel-container {
  display: flex;
  padding-left: 32px;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  justify-content: space-between;
  margin-bottom: 80px;
  .sx {
    display: flex;
    width: 50%;
    flex-direction: column;
    gap: 32px;
    padding: 80px;
  }

  .dx {
    /* width: 50%; */
  }

  .testi {
    width: 50%;
    p {
      color: #000;
      width: 440px;
      font-family: 'Baskerville', serif;
      font-size: 24px;
      font-style: normal;
      font-weight: 400;
      line-height: normal;
    }
  }
  .corsivo-e-icona {
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-items: flex-end;
    p {
      color: #000;
      text-align: right;
      font-family: 'Caveat', cursive;
      font-size: 44px;
      font-style: normal;
      font-weight: 400;
      line-height: 100%;
      transform: rotate(-3deg);
    }
  }
}
/* Moments Section */
.moments-section {
  padding: 60px 0;
}

.moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.moment-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 570px;
  cursor: pointer;
  transition: transform 0.3s ease;
  h4 {
    font-family: 'Baskerville', serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: center;
    position: relative;
    bottom: 45%;
  }
}

.non-active-moment-card {
  opacity: 1 !important;
}
.non-active-moment-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #190d00cc;
  z-index: 1;
  pointer-events: none;
}

.moment-overlay {
  z-index: 1;
}

.moment-image {
  position: relative;
}

.cta-abs {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
}

.non-active-moment-card .moment-overlay {
  opacity: 1 !important;
  pointer-events: auto;
  transition: none;
}
.moment-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.moment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.moment-card:hover .moment-image img {
  transform: scale(1.1);
}

.moment-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.moment-card:hover .moment-overlay {
  opacity: 1;
}
.non-active-moment-card .moment-title,
.non-active-moment-card h4 {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  z-index: 2;
}

.moment-title {
  color: white;
  font-size: 48px;
  font-weight: 300;
  margin: 0;
  font-family: 'ParmigianoReggiano', serif;
  text-align: center;
}

.cta-button {
  background-color: #cdaf6d;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 400;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'ParmigianoReggiano', serif;
  text-align: center;
  width: fit-content;
}

.cta-button:hover {
  background-color: #c1973b;
}
.carousel-section {
  padding-top: 40px;
}
.carousel {
  position: relative;
  width: 700px;
  max-width: 100vw;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.carousel-text {
  font-family: 'Baskerville', serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0%;
  margin: 0 auto;
  margin-top: 32px;
  max-width: 99%;
}
.carousel2 {
  position: relative;
  width: 700px;
  max-width: 100vw;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#slide2-1:checked ~ .carousel-slides {
  transform: translateX(32%);
}
#slide2-2:checked ~ .carousel-slides {
  transform: translateX(-50px);
}
#slide2-3:checked ~ .carousel-slides {
  transform: translateX(-600px);
}

/* Mostra solo la slide attiva */
#slide2-1:checked ~ .carousel-slides .slide2-1,
#slide2-2:checked ~ .carousel-slides .slide2-2,
#slide2-3:checked ~ .carousel-slides .slide2-3 {
  opacity: 1;
  z-index: 2;
}

/* Dots attivi */
#slide2-1:checked ~ .carousel-nav label[for='slide2-1'],
#slide2-2:checked ~ .carousel-nav label[for='slide2-2'],
#slide2-3:checked ~ .carousel-nav label[for='slide2-3'] {
  width: 80px;
  height: 10px;
  border-radius: 7px;
  opacity: 1;
}

.carousel-slides {
  width: fit-content;
  height: 550px;
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  width: 627px;
  height: 550px;
  flex-shrink: 0;
  padding: 16px;
  display: flex;
  /* justify-content: center; */
  justify-content: flex-end;
  align-items: center;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
}
.video-preview-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.video-preview {
  display: block;
  width: 100%;
  width: 100%;
  height: 80%;
  object-fit: cover;
  padding: 12px;
  background: #fff;
  box-sizing: content-box;
}

.play-icon {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  width: 64px;
  height: 64px;
  pointer-events: none;
  z-index: 2;
}
.play-icon2 {
  top: 28%;
}

#slide1:checked ~ .carousel-slides {
  transform: translateX(36%);
}
#slide2:checked ~ .carousel-slides {
  transform: translateX(280px);
}
#slide3:checked ~ .carousel-slides {
  transform: translateX(-350px);
}
#slide4:checked ~ .carousel-slides {
  transform: translateX(-950px);
}
#slide5:checked ~ .carousel-slides {
  transform: translateX(-1300px);
}

/* Mostra solo la slide attiva con opacità piena */
#slide1:checked ~ .carousel-slides .slide1,
#slide2:checked ~ .carousel-slides .slide2,
#slide3:checked ~ .carousel-slides .slide3,
#slide4:checked ~ .carousel-slides .slide4,
#slide5:checked ~ .carousel-slides .slide5 {
  opacity: 1;
  z-index: 2;
}

.carousel-nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  align-self: flex-start;
}

.carousel-nav label {
  width: 14px;
  height: 14px;
  background: #cdaf6d;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.carousel-arrows {
  display: flex;
  justify-content: center;
  margin-top: -24px;
  margin-right: 52px;
  align-self: center;
  align-self: flex-end;
}
.carousel-arrow[disabled] .arrow-svg .arrow-shape path {
  fill: #cdaf6d80 !important;
  cursor: not-allowed;
  opacity: 0.7;
}
.carousel-arrow[disabled] {
  pointer-events: none;
  opacity: 0.7;
}
#slide1:checked ~ .carousel-nav label[for='slide1'],
#slide2:checked ~ .carousel-nav label[for='slide2'],
#slide3:checked ~ .carousel-nav label[for='slide3'] {
  opacity: 1;
}

.carousel-slide img {
  background: #fff;
  box-sizing: content-box;
  /* height: 100%; */
  height: 80%;
  width: 100%;
  object-fit: cover;
  padding: 12px;
  pointer-events: none;
}

.carousel-slide video {
  height: 80%;
  background: #fff;
  box-sizing: content-box;
  width: 100%;
  object-fit: cover;
  padding: 12px;
}
.carousel-nav label {
  display: block;
  width: 12px;
  height: 12px;
  background: #cdaf6d;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

#slide1:checked ~ .carousel-nav label[for='slide1'],
#slide2:checked ~ .carousel-nav label[for='slide2'],
#slide3:checked ~ .carousel-nav label[for='slide3'],
#slide4:checked ~ .carousel-nav label[for='slide4'],
#slide5:checked ~ .carousel-nav label[for='slide5'] {
  width: 80px;
  height: 10px;
  border-radius: 7px;
  opacity: 1;
}

.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #000000cc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background-color: transparent;
  padding: 0;
  border-radius: 16px;
  max-width: 90vw;
  max-height: 80vh;
  position: relative;
  border: 16px solid white;
  width: 1065px;
  height: 657px;
  aspect-ratio: 1.62;
}

iframe {
  width: 100%;
  height: 100%;
}
.close-modal {
  position: absolute;
  /* top: 12px;
  right: 18px; */
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  z-index: 2;
  top: -100px;
  right: -16px;
}

.close-modal-2 {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.modal video {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  border-radius: 16px;
}
.video-container {
  min-height: 792px;
}
.hero-img {
  max-width: 1920px;
  margin: 0 auto;
  /* background-color: #f3efe1; */
  width: 100%;
  padding-bottom: 80px;
  /* padding-bottom: 80px; 

  /* .overlay-text {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 16px 24px;
    max-width: 660px;
    margin: 0 auto;
    bottom: 70%;
  } */
  .overlay-container {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 16px 24px;
    max-width: 660px;
    margin: 0 auto;
    bottom: 50%;
    z-index: 2;

    p {
      font-family: 'Baskerville', serif;
      font-weight: 400;
      font-size: 24px;
      letter-spacing: 0%;
      text-align: center;
    }

    h3 {
      font-family: 'ParmigianoReggiano', serif;
      font-weight: 400;
      font-size: 56px;
      line-height: 100%;
      text-align: center;
      position: absolute;
      left: 0;
      right: 0;
      text-align: center;
      padding: 16px 24px;
    }
  }

  img {
    max-width: 100%;
    width: 100%;
  }
}

.testo-video {
  width: 100%;
  padding: 40px;
  font-size: 24px;
  font-family: 'Baskerville', serif;
  line-height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-image: url('./public/images/bg-big1.jpg');
  gap: 24px;

  .container-testo {
    width: 50%;
    align-self: center;
  }
  .container-video {
    width: 50%;

    img {
      width: 631px;
      height: 389px;
    }
  }
}

.video-images {
  display: flex;
  gap: 16px;
  justify-content: center;
  font-size: 24px;
  font-family: 'Baskerville', serif;
  gap: 24px;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 32px;

  #video-preview3 {
    max-width: 460px;
    max-height: 260px;
  }

  p {
    max-width: 600px;
  }
}

.first-container,
.second-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
  justify-content: space-around;

  p {
    line-height: 1.3;
  }
}

/* Footer */
.footer {
  background-color: #000000;
  color: white;
  height: 135px;
  padding: 32px 0 32px;
  background-image: url('./public/images/texture-footer.png');
  background-size: cover;
  background-position: center;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.footer-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #d4af37;
  font-family: 'ParmigianoReggiano', serif;
}

.footer-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
  font-family: 'Baskerville', serif;
}

.social-icons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: #2c1810;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #999;
  font-size: 14px;
}

.editable-text {
  font-family: 'Baskerville', serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0%;
  max-width: 440px;
  /* margin: 0 auto; */
  padding-top: 32px;
}

.responsive-images img {
  display: none;
  width: 100%;
  max-width: 1512px;
  margin: 0 auto;
}

/* Desktop */
@media (min-width: 1025px) {
  .container-testo-marchiatura {
    padding-bottom: 80px;
  }
  .responsive-images .desktop {
    display: block;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .responsive-images {
    padding-bottom: 56px;
  }
  .container-testo-marchiatura {
    padding-bottom: 80px;
  }
  .moment-card {
    h4 {
      bottom: 5%;
    }
  }
  .moment-card {
    height: 204px;
  }
  .hero {
    border-radius: 100px 0 0 100px / 300px 0 0 300px;
  }
  .hero-subtitle {
    display: none;
  }
  .responsive-images .tablet {
    display: block;
  }
  .first-container {
    width: 100%;
  }
  .second-container {
    display: none;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .carousel-text {
    padding-right: 16px;
  }
  .video-images {
    padding: 0 !important;
  }
  .play-icon {
    top: 50%;
  }
  .play-icon2 {
    top: 50%;
  }
  .moment-card {
    height: 570px !important;
  }
  .hero {
    position: relative;
    top: 10px;
    margin-left: 10px !important;
    height: 440px;
  }
  .hero-subtitle {
    display: none;
  }
  .responsive-images .mobile {
    display: block;
  }
  .first-container {
    width: 100%;
    padding: 0 16px;
  }
  .second-container {
    display: none;
  }
}

@media (max-width: 1245px) {
  /* .video-images {
    padding: 0 !important;
  } */
  .moment-card {
    h4 {
      bottom: 5%;
    }
  }

  .moment-card {
    height: 204px;
  }
  .text-carousel-container {
    justify-content: center;
    padding: 0;
  }
  .testo-video {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    align-items: center;
    justify-content: center;
    .container-testo,
    .container-video {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
  .carousel {
    width: 96vw;
    max-width: 100vw;
    overflow: hidden;
  }

  .testo-corsivo-container {
    padding: 16px;
    .testo-piccolo {
      font-size: 40px;
    }
    .testo-grande {
      font-size: 60px;
    }
  }
  .text-carousel-container {
    padding: 16px;
    flex-direction: column;
    justify-content: center;

    .testi {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .sx {
      width: 100%;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .dx {
      width: 100%;
    }
    .testi {
      width: 100%;
      p {
        max-width: 440px;
        width: 100%;
        text-align: center;
      }
    }
    .corsivo-e-icona {
      align-items: center;
      padding-bottom: 32px;
      p {
        text-align: center;
        width: 100%;
      }
    }
  }
  .box-immagine {
    flex-direction: column;
    align-items: normal;
    margin-top: 64px;

    .testo-e-icone {
      align-self: center;
    }
  }
  .hero {
    margin: 10px;
    height: 60vh;
    min-height: 400px;
    border-radius: 32px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 100px 0 0 100px / 300px 0 0 300px;
  }

  .hero-title {
    font-size: 64px;
  }

  .text-section {
    padding: 40px 0;
  }

  .main-text {
    font-size: 22px;
    padding: 0 20px;
  }

  .subtitle {
    font-size: 28px;
    padding: 0 20px;
    font-weight: 700;
  }

  .moments-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }
  .moment-overlay {
    opacity: 1 !important;
    pointer-events: auto;
    transition: none;
    background: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
  .footer {
    height: auto;
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .hero {
    margin: 5px;
    border-radius: 100px 0 0 100px / 300px 0 0 300px;
    border-width: 4px;
    margin: 0;
  }

  .logo span {
    font-size: 10px;
  }

  .language-selector {
    font-size: 12px;
  }

  .hero-title {
    font-size: 48px;
  }

  .moments-grid {
    padding: 0 10px;
  }
}

@media (max-width: 600px) {
  .cta-button {
    padding: 12px;
  }
  .grechina {
    object-fit: cover;
  }
  .carousel-slide video {
    height: 90%;
    /* margin-left: 24px; */
  }
  .carousel {
    width: 95vw;
    max-width: 100vw;
    overflow: hidden;
  }
  .carousel-slides {
    width: fit-content;
    height: 300px;
    max-width: 100vw;
    max-height: 70vw;
    margin: 0 auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .carousel-slide {
    width: 320px;
    height: 300px;
    max-width: 90vw;
    max-height: 70vw;
    padding: 8px;
  }
  #slide1:checked ~ .carousel-slides {
    transform: translateX(0);
  }
  #slide2:checked ~ .carousel-slides {
    transform: translateX(-320px);
  }
  #slide3:checked ~ .carousel-slides {
    transform: translateX(-640px);
  }
  #slide4:checked ~ .carousel-slides {
    transform: translateX(-960px);
  }
  #slide5:checked ~ .carousel-slides {
    transform: translateX(-1280px);
  }
  #slide2-1:checked ~ .carousel-slides {
    transform: translateX(0);
  }
  #slide2-2:checked ~ .carousel-slides {
    transform: translateX(-320px);
  }
  #slide2-3:checked ~ .carousel-slides {
    transform: translateX(-640px);
  }
  .video-preview,
  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-sizing: border-box;
    margin-bottom: 0;
  }
  .modal-content {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: 80vh;
    padding: 0;
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
  }
  .modal-content iframe {
    /* width: 100vw;
    max-width: 100vw; */
    height: 56vw;
    min-height: 180px;
    max-height: 60vh;
    border-radius: 12px;
    display: block;
  }
  .close-modal {
    /* top: 8px; */
    right: 12px;
    font-size: 1rem;
    z-index: 2;
    border-radius: 50%;
    padding: 0 8px;
  }
  .modal {
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 0;
  }

  .video-container {
    min-height: 500px;
  }
  .hero-img {
    padding-bottom: 80px !important;
    .overlay-container {
      position: absolute;
      left: 0;
      right: 0;
      text-align: center;
      color: white;
      padding: 16px 24px;
      max-width: 660px;
      margin: 0 auto;
      bottom: 50%;
      z-index: 2;

      p {
        font-family: 'Baskerville', serif;
        font-weight: 400;
        font-size: 22px;
        line-height: 100%;
        letter-spacing: 0%;
        text-align: center;
      }

      h3 {
        font-family: 'ParmigianoReggiano', serif;
        font-weight: 400;
        font-size: 40px;
        line-height: 100%;
        text-align: center;
        position: absolute;
        left: 0;
        right: 0;
        text-align: center;
        padding: 16px 24px;
      }
    }
    img {
      height: 440px;
      object-fit: cover;
      max-height: 100%;
      width: 100%;
    }
  }
}

.moment-image .cta-button {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
}

.moment-image .cta-button,
.moment-image .cta-button:link,
.moment-image .cta-button:visited,
.moment-image .cta-button:hover,
.moment-image .cta-button:active {
  text-decoration: none !important;
  border-bottom: 0 !important;
}
