body {
  font-family: Lato, sans-serif;
  --bs-body-bg: #f6efe6;
  --bs-body-color: #1e2f22;
}

::selection {
  background: #71cc82;
  color: #ffffff;
}

header {
  position: relative;
  background-color: rgba(54,78,59,0.4);
  height: 100vh;
  min-height: 25rem;
  width: 100%;
  overflow: hidden;
}

/* Header video */

header video {
  /*position: absolute;*/
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  -ms-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}

.video-background {
  /*background: #000;*/
  /*position: fixed;*/
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -99;
}

.video-foreground, .video-background iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (max-width: 576px) {
  .video-foreground, .video-background iframe {
    width: 150%;
    height: 100vh;
  }
}

@media (min-aspect-ratio: 16/9) {
  .video-foreground {
    height: 300%;
    top: -100%;
  }
}

@media (max-aspect-ratio: 16/9) {
  .video-foreground {
    width: 300%;
    left: -100%;
  }
}

@media all and (max-width: 600px) {
  .vid-info {
    width: 50%;
    /*padding: 0.5rem;*/
  }
}

@media all and (max-width: 600px) {
  .vid-info h1 {
    /*margin-bottom: 0.2rem;*/
  }
}

@media all and (max-width: 500px) {
  .vid-info .acronym {
    display: none;
    height: 100%;
  }
}

/* Header carousel */

header #carousel-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: 100vh;
  z-index: 0;
  -ms-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}

.carousel-item::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  /*background: rgba(54, 78, 59, 0.3);*/
  background: rgba(30, 47, 34, 0.4);
}

.carousel-caption {
  bottom: 300px;
  /*padding-left: 100px;*/
  padding-right: 300px;
  /*height: 100vh;*/
  /*margin: auto;*/
}

.slider-btn {
  margin-top: 30px;
}

.slider-btn .btn {
  background-color: red;
  color: white;
  border-radius: 0;
  padding: 1.5rem 2rem;
  font-size: 1rem;
  margin-right: 15px;
}

.slider-btn .btn-2 {
  color: #111010;
  background-color: white;
}

header .container {
  position: relative;
  z-index: 2;
}

header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  /*background: rgba(54, 78, 59, 0.4);*/
  background: rgba(30, 47, 34, .4);
  z-index: 1;
}

/* Media Query for devices withi coarse pointers and no hover functionality */

/* This will use a fallback image instead of a video for devices that commonly do not support the HTML5 video element */

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
  font-family: "judson", serif;
  font-weight: 700;
}

h2 {
  font-family: "judson", serif;
  font-optical-sizing: auto;
  font-size: 54px;
}

h3 {
  font-family: "judson", serif;
  font-optical-sizing: auto;
  font-size: 48px;
}

@media (max-width: 991px) {
  h2 {
    font-size: 36px;
  }
}

@media (max-width: 991px) {
  h3 {
    font-size: 32px;
  }
}

.evidenziato {
  color: #71cc82;
}

/* scrolldown */

@keyframes deco {
  0% {
    transform: translateY(-56px);
  }
  25% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes big {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  25% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(2);
    opacity: 0;
  }
  50.01% {
    transform: scale(1);
    opacity: 1;
  }
  75% {
    transform: scale(2);
    opacity: 0;
  }
  75.01% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.scrolldown {
  position: absolute;
  bottom: 20px;
  left: calc(50% - 39px);
  width: 78px;
  padding-bottom: 90px;
  z-index: 100;
}

.scrolldown:before {
  content: '';
  display: block;
  position: absolute;
  bottom: 12px;
  left: 50%;
  width: 1px;
  height: 60px;
  background-image: linear-gradient(to bottom, #FFFFFF 100%,#FFFFFF 100%);
  opacity: 0.35;
}

.scrolldown .text {
  line-height: 14px;
  text-align: center;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3em;
}

.scrolldown .deco {
  position: absolute;
  bottom: 0;
  left: calc(50% - 15px);
  width: 30px;
  height: 30px;
  animation: deco 4s ease infinite;
}

.scrolldown .deco:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 100%;
  animation: big 4s ease infinite;
}

.scrolldown .deco:after {
  content: '';
  display: block;
  position: absolute;
  top: calc(50% - 4px);
  left: calc(50% - 3px);
  z-index: 2;
  width: 7px;
  height: 7px;
  background-color: #71cc82;
  border-radius: 7px;
}

/* card */

.tipo-viaggi {
  /*width: 24rem;*/
  height: 31.25rem;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  color: #f0f0f0;
}

.tipo-viaggi img {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.9;
  transition: opacity 0.2s ease-out;
}

.tipo-viaggi .card-title {
  position: absolute;
  inset: auto auto 60px 30px;
  margin: 0;
  transition: inset 0.3s 0.3s ease-out;
}

.tipo-viaggi p, .tipo-viaggi a {
  position: absolute;
  opacity: 0;
  max-width: 80%;
  transition: opacity 0.3s ease-out;
}

.tipo-viaggi p {
  inset: auto auto 80px 30px;
}

.tipo-viaggi a {
  inset: auto auto 40px 30px;
  color: inherit;
  text-decoration: none;
}

.tipo-viaggi:hover .card-title {
  inset: auto auto 200px 30px;
  transition: inset 0.3s ease-out;
}

.tipo-viaggi:hover p, .card:hover a {
  opacity: 1;
  transition: opacity 0.5s 0.1s ease-in;
}

.tipo-viaggi:hover img {
  transition: opacity 0.3s ease-in;
  opacity: 1;
}

/* L'overlay copre l'intera immagine */

.tipo-viaggi .overlay-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /*background: rgba(54, 78, 59, 0.3);*/
  background: rgba(30, 47, 34, 0.4);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.news {
  border: 0!important;
  background-color: #ebdcc9;
  /*box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.2);*/
}

.teams {
  border: 0!important;
  background-color: #ffffff;
  /*box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.2);*/
}

/* CTA */

.cta {
  background: url(../../assets/img/background-cta.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.cta-overlay {
  /*background: rgba(54, 78, 59, 0.3);*/
  background: rgba(30, 47, 34, 0.4);
}

/* Footer */

.page-footer {
  /*background-color: #f3f3f2;*/
  padding-top: 50px;
  padding-bottom: 10px;
}

.page-footer .footer-links a {
  color: #555;
  /*font-size: 14px;*/
}

.page-footer .footer-legal .legal-links .item {
  padding-right: 13px;
  border-right: 1px solid #ccc;
  margin: 0;
  margin-right: 13px;
}

.page-footer .footer-legal .legal-links .item:last-child {
  border-right: none;
}

/* back 2 top */

#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 100;
  background-color: #71cc82;
  width: 60px;
  height: 60px;
  border-radius: 30px;
}

/* Links */

a.go-right {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding-bottom: 8px;
}

a.go-right:after {
  content: "";
  background: #71cc82;
  height: 3px;
  position: absolute;
  bottom: 0;
}

/* Underline goes to the right */

a.go-right:after {
  transition: 0.33s all;
  width: 0;
  left: 100%;
}

a.go-right:hover:after {
  transition: 0.33s width;
  width: 100%;
  left: 0;
}

/* menu */

.transition-navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar-scroll {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .menu1 {
    /*background-color: rgba(30,47,34, 0.5);*/
    background-color: rgba(255,255,255, 0.15);
  }
}

/* margin top scroll anchor */

.anchor {
  scroll-margin-top: 80px;
}

/* jumbotron.hero */

div.jumbotron.hero-1 {
  color: #fff;
  text-align: center;
  background: url('../../assets/img/card-viaggio-sposi.webp');
  background-size: cover;
  background-position: center;
  padding-top: 200px;
  padding-bottom: 100px;
}

div.jumbotron.hero-2 {
  color: #fff;
  text-align: center;
  background: url('../../assets/img/hero-2.webp');
  background-size: cover;
  background-position: center;
  padding-top: 200px;
  padding-bottom: 100px;
}

/* breadcrumb */

.breadcrumb-item {
  padding-right: 13px;
  border-right: 1px solid #ccc;
  margin: 0;
  margin-right: 0;
}

.breadcrumb-item:before {
  padding-right: 0!important;
}

.breadcrumb-item:last-child {
  border-right: none;
}

