/********************

Body e stili di default

********************/
body {
  font-family: "Kodchasan", sans-serif;
}
a {
  text-decoration: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--main-color-primary);
}
.active {
  background-color: var(--main-color-primary) !important;
  color: var(--main-color-active) !important;
}
.img-responsive {
  display: block;
  max-width: 100%;
  max-height: 900px;
}
@media screen and (max-width: 1200px) {
  .img-responsive {
    max-height: 400px;
  }
}
@media screen and (max-width: 600px) {
  .img-responsive {
    max-height: 300px;
  }
}
.text-justify {
  text-align: justify;
}
.img-header {
  height: 960px;
  object-fit: cover;
  width: 2563px;
}
.linea-primary {
  width: 100px;
  height: 2px;
  background-color: var(--main-color-primary);
}
/********************

gestione css degli input dei form

********************/
input,
textarea {
  box-shadow: none !important;
}

/********************

css per scroll to top

********************/

#gotoTop {
  display: none;
  z-index: 299;
  position: fixed;
  width: 40px;
  height: 40px;
  background-color: #333;
  background-color: rgba(0, 0, 0, 0.3);
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  color: var(--color-white);
  top: auto;
  left: auto;
  right: 30px;
  bottom: 50px;
  cursor: pointer;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
}
#gotoTop:hover {
  background: var(--main-color-primary);
}

/********************

css per tutti i bottoni

********************/
.btn-custom {
  padding: 12px 26px 12px 26px;
  font-size: 15px;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  font-weight: 400;
  line-height: 1.5;
}
.btn-color-primary {
  color: var(--color-white);
  background-color: var(--main-color-primary);
}
.btn-color-primary:hover {
  color: var(--main-color-primary);
  background-color: var(--color-white);
  border: 1px solid var(--main-color-primary);
}
.btn-color-secondary {
  color: var(--color-white);
  background-color: rgb(255 126 89);
}
.btn-color-secondary:hover {
  color: rgb(255 126 89);
  background-color: var(--color-white);
  border: 1px solid rgb(255 126 89);
}

/********************

css della pagina page.header.inc.php

********************/

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  font-size: 18px;
}

/********************

Loader caricamento pagina

********************/
#loading {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.7;
  background-color: var(--color-white);
  z-index: 99;
}

.spinner {
  position: absolute;
  width: 9px;
  height: 9px;
}

.spinner div {
  position: absolute;
  width: 50%;
  height: 150%;
  background: #483933;
  transform: rotate(calc(var(--rotation) * 1deg))
    translate(0, calc(var(--translation) * 1%));
  animation: spinner-fzua35 1s calc(var(--delay) * 1s) infinite ease;
}

.spinner div:nth-child(1) {
  --delay: 0.1;
  --rotation: 36;
  --translation: 150;
}

.spinner div:nth-child(2) {
  --delay: 0.2;
  --rotation: 72;
  --translation: 150;
}

.spinner div:nth-child(3) {
  --delay: 0.3;
  --rotation: 108;
  --translation: 150;
}

.spinner div:nth-child(4) {
  --delay: 0.4;
  --rotation: 144;
  --translation: 150;
}

.spinner div:nth-child(5) {
  --delay: 0.5;
  --rotation: 180;
  --translation: 150;
}

.spinner div:nth-child(6) {
  --delay: 0.6;
  --rotation: 216;
  --translation: 150;
}

.spinner div:nth-child(7) {
  --delay: 0.7;
  --rotation: 252;
  --translation: 150;
}

.spinner div:nth-child(8) {
  --delay: 0.8;
  --rotation: 288;
  --translation: 150;
}

.spinner div:nth-child(9) {
  --delay: 0.9;
  --rotation: 324;
  --translation: 150;
}

.spinner div:nth-child(10) {
  --delay: 1;
  --rotation: 360;
  --translation: 150;
}

@keyframes spinner-fzua35 {
  0%,
  10%,
  20%,
  30%,
  50%,
  60%,
  70%,
  80%,
  90%,
  100% {
    transform: rotate(calc(var(--rotation) * 1deg))
      translate(0, calc(var(--translation) * 1%));
  }

  50% {
    transform: rotate(calc(var(--rotation) * 1deg))
      translate(0, calc(var(--translation) * 1.5%));
  }
}

/***************************
PAGINA COMUNI
****************************/
.card-custom-comuni {
  border-width: 1px;
  border-color: rgb(207 207 207 / var(1, 1));
  border-radius: 0.75rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.card-custom-comuni .card-image-container {
  overflow: hidden;
}
.card-custom-comuni .card-image-container .img-card-custom {
  transition: transform 0.4s ease;
  overflow: hidden;
}
.card-custom-comuni:hover .card-image-container .img-card-custom {
  transform: scale(1.1);
}
.color-subtitle-comune {
  color: rgb(255 126 89) !important;
}
.border-radius-img {
  border-radius: 0.75rem;
}
.border-radius-img-2 {
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

@media (min-width: 992px) {
  .p-start-custom {
    padding-left: 3rem;
  }
}

@media (max-width: 576px) {
  .w-sm-100 {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .w-md-100 {
    width: 100% !important;
  }
  .mx-md-auto {
    margin: 0 auto;
  }
}

.display-2 {
  font-size: calc(1.425rem + 2.1vw);
  font-weight: 300;
  line-height: 1.2;
}
@media (min-width: 992px) {
  .display-2 {
    font-size: calc(1.575rem + 3.9vw);
    font-weight: 300;
    line-height: 1.2;
  }
}
@media (max-width: 991.98px) {
  .navbar-mobile-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 1055;
    background-color: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.25rem 0;
  }

  .navbar-mobile-bottom .nav-link {
    font-size: 0.75rem;
    color: #555;
  }

  .active {
    color: var(--main-color-primary) !important;
    background-color: transparent !important;
  }

  .navbar-mobile-bottom .dropdown-item-custom:hover,
  .navbar-mobile-bottom .dropdown-item-custom.active {
    background-color: #f8f9fa;
    color: #000;
  }

  @media screen and (max-width: 991px) {
    .navbar-mobile-bottom .my-dropdown {
      display: inline-block;
      align-items: center;
      display: flex;
    }

    .navbar-mobile-bottom .dropdown-content {
      display: none;
      position: absolute;
      background-color: #f9f9f9;
      width: 100%;
      box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
      padding: 12px 16px;
      z-index: 3000;
      top: auto;
      right: 0;
      bottom: 59px;
      max-height: 300px;
      overflow-y: auto;
    }

    .navbar-mobile-bottom .dropdown-content a {
      padding: 12px 16px;
      display: block;
    }
  }
}
