/*METTI QUI IL TUO CSS*/
:root {
  --bs-link-color: #B31919;
  --bs-link-hover-color: #B31919;
  --bs-body-bg: #fff;
  --bs-body-color: #000;
}

a {
  color: var(--bs-link-color);
  text-decoration: none;

  &:hover,
  &:active {
    text-decoration: underline;
    color: var(--bs-link-hover-color);
  }
}

a:focus-visible,
a:focus {

  outline: 3px solid var(--primary-color);
  border: 3px solid var(--primary-color);
}

.com-content-article__body a {
  color: var(--primary-color) !important;
}

.com-content-article__body a:hover {
  color: var(--primary-color) !important;
  font-weight: bold !important;
}

/*bottoni*/
.btn:focus-visible,
.btn:focus {
  outline: medium dotted var(--secondary-color) !important
}

.btn-primary {
  font-weight: bold;
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--primary-color);
  --bs-btn-border-color: none;
  box-shadow: 2px 2px 5px -3px #000000;
  border-radius: 5px;
  --bs-btn-border-width: none;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--primary-color);
  --bs-btn-hover-border-color: none;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--primary-color);
  --bs-btn-active-border-color: none;
  --bs-btn-focus-shadow-rgb: 29, 41, 75;
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #6F7376;
  --bs-btn-disabled-border-color: #6F7376;

  &:hover,
  &:active,
  &:focus-visible {
    text-decoration: underline;
    box-shadow: none;
  }
}

.btn-secondary {
  font-weight: bold;
  --bs-btn-color: #000000;
  --bs-btn-bg: var(--secondary-color);
  --bs-btn-border-color: none;
  box-shadow: 2px 2px 5px -3px #000000;
  border-radius: 5px;
  --bs-btn-border-width: none;
  --bs-btn-hover-color: #000000;
  --bs-btn-hover-bg: var(--secondary-color);
  --bs-btn-hover-border-color: none;
  --bs-btn-active-color: #000000;
  --bs-btn-active-bg: var(--secondary-color);
  --bs-btn-active-border-color: none;
  --bs-btn-active-shadow: none;
  --bs-btn-focus-shadow-rgb: 29, 41, 75;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #6F7376;
  --bs-btn-disabled-border-color: #6F7376;

  &:hover,
  &:active,
  &:focus-visible {
    text-decoration: underline;
    box-shadow: none;
  }

}


.overlay-black {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.571);
  z-index: 1;
}


/*focus frecce carousel grande homepage*/
button.carousel-control-prev.z-2:focus,
button.carousel-control-prev.z-2:focus-visible,
button.carousel-control-next.z-2:focus,
button.carousel-control-next.z-2:focus-visible,
button.carousel-control-prev:focus-visible,
button.carousel-control-next:focus-visible {
  outline: 3px solid var(--primary-color);
}

/*FINE focus frecce carousel piccoli*/

.nav-link {
  color: #000;
}

.nav-link:hover {
  color: var(--primary-color);
}

hr {
  width: 15% !important;
  border-top: 5px solid var(--primary-color);
  opacity: 1;
}

/* carousel card responsive */
.carousel-inner-card {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/*fine carousel card responsive*/

/*classi per modificare le frecce del carousel*/
.next-carousel-control,
.prev-carousel-control {
  position: unset;
  display: unset;
  padding: 0;
  width: unset;
  border: unset;
  background-color: unset;

  &:focus-visible {
    outline: 3px solid var(--primary-color);
  }
}

@media (min-width: 1200px) {
  .custom-height {
    height: 380px;
  }
}

@media (max-width: 768px) {
  .fs-md-5 {
    font-size: 1.25rem !important;
  }

  .custom-hr {
    margin: auto;
  }
}

.nav-pills {
  --bs-nav-pills-link-active-bg: var(--primary-color);
}


/*MIO*/
body {
  font-family: sans-serif;
}

.header-logo img {
  min-width: 150px;
  min-height: 60px;
  padding-left: 0.5em;
}

/*GENERALE*/
img {
  width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: cover;
}

/*HEADER*/
.header-middle {
  background-color: white;
  padding: 0.5em 0;
}

/*HOME*/
.article-home {
  background-color: var(--secondary-color);
  color: white;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

/*SEDI*/
.sedi a {
  color: var(--primary-color);
}

.sedi a:hover {
  color: var(--primary-color) !important;
}

.article-sede img {
  max-height: 420px;
  object-fit: cover;
}

.article-sede .img-sede {
  min-height: 320px;
}

.campi span.bi {
  color: var(--primary-color);
}

.campi .text-white a {
  color: white;
}

.inline-email .fields-container {
  display: inline-block;
}

.fields-container {
  margin: 0;
}

.no-bullets ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/*NOTIZIE*/
.notizie {
  background-color: var(--secondary-color);
}

.notizie .btn {
  color: white !important;
  font-weight: normal;
}

.notizie .btn:hover {
  color: white !important;
  font-weight: bold;
}

.notizie h3 a {
  color: white !important;
}

.notizie h3 a:hover {
  color: var(--primary-color) !important;
}

.fill-primary {
  fill: var(--primary-color);
}

.doc:hover {
  color: var(--primary-color);
}

/*Corsi - Progetti*/
hr.normal {
  width: 100% !important;
  border: 1px solid gray;
}

.corsi span.bi {
  color: var(--primary-color);
}

.corsi h3 a {
  color: black !important;
}

.corsi h3 a:hover {
  color: var(--primary-color) !important;
}

.article-corsi img {
  max-height: 420px;
  object-fit: cover;
}

.article-sede .rigacorsi {
  display: none;
}

.com-content-article__sidebar {
  z-index: 5;
  top: -50px;
}

.text-primary {
  color: var(--primary-color) !important;
}

@media (max-width: 767.5px) {
  .com-content-article__sidebar {
    position: static !important;
  }
}


/*Imprese - Persone*/
.imp-per img,
.imp-per .imp-per-block {
  max-height: 100%;
}

.overlay-bottom {
  background: linear-gradient(to top, rgba(0, 0, 0, .95) 0, rgba(0, 0, 0, 0) 100%);
  height: 100%;
  position: absolute;
  width: 100%;
  display: block;
  content: '';
  bottom: 0;
}

/*News*/
.article-news img {
  max-height: 420px;
  object-fit: cover;
}

/*Contatti*/
.contatti a:hover {
  color: var(--primary-color) !important;
}

.contatti .align-items-center {
  align-items: start !important;
}

/*Footer*/
.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.footer-content a {
  color: white !important;
}

.footer-content a:hover {
  color: var(--primary-color) !important;
}

/*Torna su*/
#backToTop {
  background-color: var(--secondary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
  width: 3rem;
  height: 3rem;
  z-index: 400;
}


/*ALLEGATI*/
.attachmentsContainer {
  /* display: inline-block;
  padding: 0 1em 0 0; */
  margin: 0 !important;
}

/*LICENZE*/
.licenze img {
  max-width: 120px;
  min-width: 60px;
  aspect-ratio:  4/3;
  object-fit: contain;
  margin: 0 auto;
}

.img-fluid{
  aspect-ratio: 16/9;
}