/*!
Theme Name: Agenzia Area Nolana
Theme URI: http://underscores.me/
Author: adinfo
Author URI: http://adinfo.it/
Description: Tema per Agenzia Area Nolana
Version: 1.0.0
Tested up to: 8.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: agenzia-area-nolana
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

agenzia-area-nolana is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/* Custom
--------------------------------------------- */
body p {
  font-family: "Titillium Web", Geneva, Tahoma, sans-serif !important;
}

ul,
li {
  list-style: none;
  margin: 0;
}

img {
  max-width: 100%;
}

.logo-wrapper {
  width: 170px;
}

.it-header-navbar-wrapper {
  background-color: #06c;
}

a {
  text-decoration: none;
}

.bg-grey {
  background-color: #f7f7f7;
}

.i-comuni .it-list-wrapper .it-list a.list-item span.text,
.i-servizi .it-list-wrapper .it-list a.list-item span.text {
  text-decoration: none;
  font-weight: 400;
}
.i-comuni .it-list-wrapper .it-list a.list-item:hover,
.i-servizi .it-list-wrapper .it-list a.list-item:hover {
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid hsl(210, 4%, 78%);
}

.i-comuni .it-list-wrapper .it-list a.list-item:hover {
  color: #fff;
}

.custom-cover-image-wrapper {
  width: 50%;
  height: 100%;
  position: absolute;
  top: 0;
}

.custom-cover-image-wrapper > img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
}
.custom-cover-image-wrapper.right {
  right: 0;
}
.border-left-gray {
  border-left: 1px solid #5c7083;
}

.i-comuni-page .img-responsive-wrapper .img-responsive .img-wrapper img {
  -o-object-fit: contain;
  object-fit: contain;
}

.img-comune-wrapper {
  text-align: center;
}

.comune-image {
  max-height: 200px;
}

input.fix-placeholder-color::placeholder {
  color: white;
}

.fix-text-overflow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* width: 300px; */
}

.search-result-h3 {
  font-size: 1.65rem;
}

button.splide__pagination__page {
  background-color: white;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: none;
  padding: 0;
}

button.splide__pagination__page.is-active {
  background-color: #06c;
}

.wp-block-adinfo-adinfo-hero .splide__pagination.splide__pagination--ltr {
  right: 0;
  left: auto;
  top: 25px;
  bottom: auto;
}

/* style indice */

.single-card-wrapper .card::after {
  display: none !important;
  content: "";
}

.link-hover-underline:hover {
  text-decoration: underline !important;
}
.link-hover-no-underline:hover {
  text-decoration: none !important;
}

.indice-bar {
  height: 4px;
  background-color: #e0e0e0;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}

.indice-bar-fill {
  height: 100%;
  width: 0%;
  background-color: #0066cc;
  transition: width 0.5s ease-in-out;
}

.indice-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.indice-item {
  padding-left: 1rem;
  margin-bottom: 1rem;
  position: relative;
  color: #0066cc;
  font-size: 1.2rem;
}

.indice-item a {
  color: #0066cc;
}
.indice-item a:hover {
  color: #00264d;
}

.indice-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  height: 1.5rem;
  width: 2px;
  background-color: transparent;
}

.indice-item.active::before {
  background-color: #0066cc;
}

.indice-title {
  color: #0066cc;
  background-color: transparent !important;
}

.accordion-button.indice-title:not(.collapsed) {
  background-color: transparent !important;
  color: #0066cc;
  box-shadow: none;
}

.accordion-button.indice-title {
  border: none;
}

.position-sticky {
  position: sticky !important;
  top: 0;
  z-index: 1020;
}

.card.card-teaser-info {
  border-bottom: 1px solid hsl(0, 0%, 86%);
  border-right: 1px solid hsl(0, 0%, 86%);
  border-top: 1px solid hsl(0, 0%, 86%);
}

.card.card-teaser-info:hover {
  border-color: #0066cc;
  transition: border-color 0.3s ease-in-out;
}

.it-carousel-wrapper .splide__pagination button {
  background-color: #fff;
}

/* Lightbox  */

.lightbox .lb-image {
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  border-bottom-right-radius: 0px !important;
  border-bottom-left-radius: 0px !important;
}

.lb-data .lb-caption {
  color: #999;
  font-size: 20px !important;
  font-weight: 400 !important;
}
.lb-dataContainer {
  background: #fff;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lb-nav a.lb-prev {
  opacity: 1;
}

.lb-nav a.lb-next {
  opacity: 1;
}

.lb-data .lb-details {
  width: 100% !important;
}

.lb-details .lb-number {
  text-align: center;
}

.lightbox .lb-close {
  display: none !important;
}

.lightbox .lb-details {
  padding-bottom: 1em;
}

.lb-number {
  padding-top: 1em;
}

.about-hp-section {
  position: relative;
  top: -40px;
  padding: 0;
}

.ultimi-avvisi-hp .card-wrapper {
  gap: 2rem;
}

@media screen and (max-width: 767px) {
  .ultimi-avvisi-hp .card-wrapper {
    flex-direction: column;
  }

  .about-hp-section {
    position: static;
  }

  .custom-cover-image-wrapper {
    width: 100%;
    height: auto;
    position: static;
  }
  .read-more {
    position: static !important;
  }
  .i-comuni-page h3 {
    font-size: 1.25rem;
  }
}

/* header  */

.logo-img {
  max-width: 150px; /* desktop */
  height: auto;
}

@media (max-width: 768px) {
  .logo-img {
    max-width: 100px; /* tablet */
  }
}

@media (max-width: 576px) {
  .logo-img {
    max-width: 80px; /* mobile */
  }
}

@media (max-width: 1200px) {
  .border-left-gray {
    border: none;
  }
}
