/* RESET & BASE STYLES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #7a3831;
  /* global scope */
  --secondary-color: #4d211c;
  font-size: 16px;
}

body {
  background-color: var(--primary-color);
  color: #000;
  padding-bottom: 50px;
  font-family: "Merriweather Sans", sans-serif;
}



@media only screen and (max-width: 600px) {
  .container {
    margin: 0 auto;
    padding: 0 5px;

    .audiocontrol>div {
      margin-top: 10px;
    }

    .section-card {
      background-color: #fbfbfb;
      border: 1px solid #f2f2f2;
      border-radius: 12px;
      padding: 15px 5px 5px 5px;
      margin-bottom: 40px;
    }
  }

  .audio-player-box {
    background-color: #f2f2f2;
    border-radius: 8px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 0px;
  }

  .audio-player-box .div1 {
    grid-area: 1 / 1 / 2 / 2;
  }

  .audio-player-box .div2 {
    grid-area: 2 / 1 / 3 / 2;
    margin-top: 20px;
  }


  #lottie {
    width: 400px;
    height: 80px;
  }

  p.sottotitolo {
    margin-top: 5px;
    font-size: 25px;
  }

  #intro {
    font-family: "Merriweather Sans", sans-serif;
    
    color: #fff;
    margin: 0 40px 40px 40px;
    text-align: center;
  }
  #intro h4 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #fff;

margin: 0 0 15px 0;
  }
  #intro p {
    font-size: 0.9rem;
    font-weight: 100;
    color: #fff;
margin: 0 0 15px 0;

    line-height: 1.3rem;
  }
  
.item {
    display: block;
    width: 100%;align-self: flex-start;
  }

  .image-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .image-container img {
    width: 800px;
    min-width: 10%;
    height: 10%;
    object-fit: contain;


  }
}

@media only screen and (min-width: 601px) {
  .image-container {
  width: 100%;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: item;
  user-select: none;
  -webkit-user-drag: none;
}

.item {
    display: block;
    width: 20%;align-self: flex-start;
  }
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  #lottie {

    width: 500px;
    height: 100px;

  }

  p.sottotitolo {

    font-size: 30px;

  }

  .section-card {
    background-color: #fbfbfb;
    border: 1px solid #f2f2f2;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
  }

  .audiocontrol {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-top: 5px;
  }


  .audiocontrol>p {
    position: relative;
    display: inline-block;
    width: auto;
  }

  .audiocontrol>div {
    position: relative;
    display: inline-block;
    float: right;
    width: fit-content;
  }

  .audio-player-box {
    background-color: #f2f2f2;
    border-radius: 8px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(1fr 180px);
    grid-template-rows: 1fr;
    grid-column-gap: 20px;
    grid-row-gap: 0px;
    align-items: center;
  }

  .audio-player-box .div1 {
    grid-area: 1 / 1 / 2 / 2;
  }

  .audio-player-box .div2 {
    grid-area: 1 / 2 / 2 / 3;
    text-align: right;
  }

  #intro {
    font-family: "Merriweather Sans", sans-serif;
    
    color: #fff;
    margin: 0 40px 40px 40px;
    text-align: center;
  }
  #intro h4 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #fff;

margin: 0 0 15px 0;
  }
  #intro p {
    font-size: 1rem;
    font-weight: 100;
    color: #fff;
    line-height: 1.4rem;
margin: 0 0 15px 0;
  }

}

#lottie {
  display: block;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  margin: auto;
  opacity: 1;

}

#lottie>h1 {
  text-indent: -9999px;
  position: absolute;
}

/* LAYOUT & UTILITIES */

.mt-5 {
  margin-top: 3rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

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

.text-muted {
  color: #6c757d;
}



.text-info {
  color: #575757;
  font-family: "Merriweather Sans", sans-serif;
  font-size: 1.063rem;
  margin-top: 4px;
}



.d-none {
  display: none !important;
}

/* TYPOGRAPHY */
/*h1 {
  font-family: "Merriweather Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}*/

h2 {
  font-family: "Merriweather Sans", sans-serif;
  color: var(--primary-color);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  margin-left: 20px;
}

p.sottotitolo {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #fff;
}

h5 {
  /*margin-bottom: 0.5rem;*/
  color: #292929;
  font-family: "Playfair Display", serif;
  font-size: 1.563rem;
}

/* BUTTONS */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
  text-decoration: none;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 4px;
}

.btn-outline-dark {
  color: #212529;
  border-color: #212529;
  background-color: transparent;
}

.btn-outline-dark:hover {
  color: #fff;
  background-color: #212529;
}

.btn-primary {
  color: #fff;
  background-color: #3372A6;
  margin-right: 0.5rem;
}

.btn-primary:hover {
  background-color: #235177;
}

.btn-secondary {
  color: #fff;
  background-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #404950;
}

.btn-warning {
  color: #fff;
  background-color: #7CA023;
  margin-right: 0.5rem;
}

.btn-warning:hover {
  background-color: #516816;
}

#back-nav {
  text-align: center;
}

#back-nav>a:link,
#back-nav>a:visited {
  color: var(--primary-color);
  background-color: #ab6e68;
  ;
}

#back-nav>a:hover,
#back-nav>a:active {
  color: #000;
  background-color: #fff;
}



/* CUSTOM COMPONENTS */






/* NATIVE CAROUSEL */
.carousel {
  position: relative;
  width: 100%;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-item {
  position: relative;
  display: none;
  width: 100%;
  animation: fade 0.4s ease-in-out;
}

.carousel-item.active {
  display: block;
}

.carousel-item img,
.carousel-item video {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1.7;
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  padding: 0;
  color: #fff;
  text-align: center;
  background: none;
  border: 0;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.15s ease;
  height: 100%;
  font-size: 4rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 0.9;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ROUTING SYSTEM (.hash-mode) */
.hash-mode .app-section {
  display: none;
}

.hash-mode .app-section:target {
  display: block;
}

@keyframes fade {
  from {
    opacity: 0.7;
  }

  to {
    opacity: 1;
  }
}



/* MAP */

#map.section-card {
  padding: 0;
  background-color: #fff;
  overflow: hidden;
}


.items {
    display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
  align-content: stretch;
  gap: 30px;
padding: 10px 30px 40px 30px ;
  }

  

#map .item span {
    color: #292929;
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
}

#map .item h4 {
font-family: "Merriweather Sans", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

#map .item p {
font-family: "Merriweather Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 100;
    color: #000;
    line-height: 1.2rem;
}

#colophon {
  border-top: #fff 1px solid;
  padding-top: 40px;
}

#colophon .item p {
font-family: "Merriweather Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 100;
    color: #fff;
    line-height: 1.2rem;
    margin-bottom: 10px;
}

#colophon img {
  width: 100%;
  max-width: 250px;
  margin-bottom:3px;
}

#colophon a:link, #colophon a:visited {
  color: #fff;
  text-decoration: underline;
}

#colophon a:hover, #colophon a:active {
  color: #fff;
  text-decoration: underline;
}