/* ! notizie in primo piano */
#inEvidenza .card-title {
  font-size: 1.4em;
  font-weight: 500;
  margin-bottom: .3em;
}

#inEvidenza .card-title a {
  text-decoration: none;
  display: block;
}

#inEvidenza .card-title a:hover {
  text-decoration: underline;
}

#inEvidenza .card-text {
  margin-bottom: .4rem;
  line-height: inherit !important;
}

#inEvidenza .card-text p {
  margin-bottom: 0;
}

#inEvidenza .card-text a {
  font-weight: 600;
}

.img-responsive-wrapper .img-responsive {
  padding-bottom: 61.29%;
  padding-bottom: 66%;
}

#inEvidenza .owl-stage-outer {
  box-shadow: 0 2px 20px 0 rgba(0, 0, 0, .1);
}

#inEvidenza .it-carousel-wrapper.it-carousel-landscape-abstract .owl-stage-outer {
  border-right-width: 0px;
}

#inEvidenza .it-carousel-wrapper.it-carousel-landscape-abstract .owl-dots {
  position: relative;
  left: 0;
  margin-left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  height: 46px;
  line-height: 34px;
}

#inEvidenza .img-responsive-wrapper .img-responsive {
  height: 100%;
}

@media only screen and (min-width: 992px) {
  #inEvidenza .it-carousel-wrapper .img-responsive-wrapper {
    flex-basis: 40%;
  }

  #inEvidenza .it-text-slider-wrapper-outside {
    flex-basis: 60% !important;
  }

  #inEvidenza .it-single-slide-wrapper .card .card-body {
    padding: .5em 1em !important;
  }
}

@media screen and (max-width: 1024px) and (min-width: 992px) {
  #inEvidenza .card-title {
    margin-bottom: 0.1em;
    font-size: 22px;
  }

  #inEvidenza .card-text p {
    margin-bottom: 0;
    line-height: 1.2 !important;
  }

  #inEvidenza .mb-2 {
    margin-bottom: 0 !important;
  }

  #inEvidenza .read-more {
    bottom: 6px;
  }
}

.it-carousel-control {
  position: absolute;
  bottom: 9px;
  right: 8px;
  line-height: 0;
  z-index: 1;
}

.it-carousel-control #play {
  display: none;
}

.it-carousel-control i {
  color: #0059b3;
}

.it-carousel-control i:hover {
  color: #00264d;
}

.it-carousel-control .btn {
  padding: 0;
  font-size: 22px;
  width: 28px;
  height: 28px;
  border-radius: 50px;
  line-height: inherit;
}

/* ! notizie in evidenza  */
#notizie .card-title {
  font-size: 1.4em;
  font-weight: 500;
  margin-bottom: .5em;
}

#notizie .card-title a {
  text-decoration: none;
  display: block;
}

#notizie .card-title a:hover {
  text-decoration: underline;
}

#notizie .ufficio {
  background: #013971;
  padding: 8px 24px;
  font-size: .8em;
  color: #fff;
  border-top: 1px solid #001c38;
}

#notizie .data-luogo {
  padding-bottom: .3em;
  color: #435A70;
}

#notizie .data-luogo span:not(:first-child) {
  font-size: .9em;
}

/* #notizie .card-text {
  margin-bottom: 1rem;
  line-height: inherit !important;
} */

/* #notizie .card-text p {
  margin-bottom: 0;
} */

#notizie .card-text a {
  font-weight: 600;
}

/* ! multimedia */
#media .card-horizontal {
  display: flex;
  flex-flow: column;
  position: relative;
  align-items: stretch;
}

#media .card-horizontal .card-horizontal-text {
  padding: .6em 0 0 0;
  margin-bottom: 0;
  flex: 1 1 50%;
}

#media .card-horizontal .card-horizontal-text .org-emitt,
#media .card-horizontal .card-horizontal-text .data {
  font-size: .77778rem;
}

#media .card-horizontal .card-horizontal-text .org-emitt {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .9px;
}

#media .card-horizontal .card-horizontal-text a {
  display: block;
  text-decoration: none;
}

#media .card-horizontal .card-horizontal-text a:hover {
  text-decoration: underline;
}

#media .card-horizontal .card-horizontal-image {
  min-height: 320px;
  flex: 1 1 50%;
  position: relative;
}

#media .card-horizontal .card-horizontal-image img {
  height: 100%;
  width: 100%;
  position: absolute;
  object-fit: cover;
}

@media (min-width: 992px) {
  #media .card-horizontal {
    flex-flow: row;
  }

  #media .card-horizontal .card-horizontal-text {
    padding: 0 .6em;
  }

  #media .card-horizontal .card-horizontal-image {
    min-height: 200px;
  }
}

/* ! documenti */
#doc .even-columns>* {
  flex-basis: 100%;
}

#doc .btn-documenti {
  line-height: 1.3;
  margin-right: .5em;
}

#doc .btn-documenti:last-child {
  margin-right: 0;
}

#doc .btn-documenti:hover {
  background: #e3e3e3;
}

#doc .btn-documenti .center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#doc .card .card-body .category-top,
#doc .card .card-body .card-title {
  margin-bottom: 0;
}

@media only screen and (max-width: 992px) {
  #doc .even-columns {
    flex-direction: column;
  }

  #doc .even-columns a {
    margin-right: 0;
    margin-bottom: 1em;
  }
}

/* ! sezioni centrali e regionali */
.card-sezioni {
  height: 100%;
  position: relative;
}

.card-sezioni:before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  content: "";
  background-size: cover;
}

.card-sezioni.controllo:before {
  background-image: url(/img/controllo.jpg);
}

.card-sezioni.giurisdizione:before {
  background-image: url(/img/giurisdizione.jpg);
}

.card-sezioni.procura:before {
  background-image: url(/img/procura.jpg);
}

.card-sezioni-body {
  background-color: rgba(0, 85, 176, 0.85);
  position: relative;
  color: #fff;
  height: 100%;
  padding: 24px;
}

.card-sezioni-body:after {
  content: '';
  display: block;
  margin-top: 48px;
}

.card-sezioni-body .read-more {
  position: absolute;
  bottom: 1.5em;
}

/* ! sedi regionali */
#sediRegionali ul li a {
  display: block;
  border-radius: 4px;
}

#sediRegionali ul li a:hover {
  background: #eee;
}

#sediRegionali #italyMap svg {
  max-height: 440px;
}

#sediRegionali a {
  white-space: nowrap;
}

#sediRegionali a:focus .cls-1 {
  fill: #f90 !important;
  stroke-width: 2px;
}

/* ! notizie */
#notizie-owl-carousel {
  display: none;
}

/* ! carousel */
.it-carousel-wrapper .owl-stage-outer {
  padding-top: 0;
}

.it-carousel-wrapper .owl-dots .owl-dot {
  opacity: inherit;
  background-color: #2E96FF;
}

.it-carousel-wrapper .owl-dots .owl-dot.active {
  background-color: #00264d;
}

#notizie-owl-carousel .owl-stage-outer,
#agenda-owl-carousel .owl-stage-outer {
  border-right: none;
}

.it-carousel-wrapper .owl-dots .owl-dot {
  width: 16px;
  height: 16px;
}

.it-carousel-wrapper {
  position: relative;
}

/* ! registrazione servizi HP */
#regServ .it-hero-wrapper.it-hero-small-size {
  min-height: 120px !important;
}

#regServ .it-hero-wrapper img {
  filter: grayscale(100%);
  object-position: 0 82%;
}

#regServ .it-hero-wrapper.it-overlay .img-responsive-wrapper:after {
  background: rgba(255,255,255,.8);
}

#regServ .it-hero-wrapper.it-bottom-overlapping-content {
  margin-bottom: -50px;
}

#regServ .it-hero-wrapper .it-hero-text-wrapper {
  padding: 1em !important;
  margin-bottom: 2.8em;
}

#regServ a div {
  background-color: #E1E9F6;
  border-radius: 50%;
  width: 62px;
  height: 62px;
  padding: .6em;
}

#regServ a:hover {
  background-color: #E1E9F6 !important;
}

#regServ a:hover div {
  background-color: #fff !important;
}

/* ! media query */

@media only screen and (min-width: 992px) {
  #comunicati-owl-carousel .owl-stage-outer {
    overflow: visible;
  }

  #agenda-owl-carousel .owl-dots {
    position: relative;
    left: 0;
    margin-left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    height: 46px;
    line-height: 34px;
  }
}

@media only screen and (max-width: 991.98px) {

  #notizie-no-carousel,
  .it-carousel-control {
    display: none;
  }

  #notizie-owl-carousel {
    display: block;
  }
}

@media only screen and (max-width: 767.98px) {

  #ufficiCentraliRegionali p,
  #cardInfoUtili p,
  #cardInfoUtili ul,
  #cardServizi p,
  #cardServizi ul {
    display: none;
  }

  #ufficiCentraliRegionali .it-hero-wrapper,
  #servizi .it-hero-wrapper {
    min-height: inherit;
  }
}
