/*
Theme Name: ASP Pavia
Template: design-comuni-wordpress-theme
Author: Demetra
Description: Child theme per ASP Pavia basato su design-comuni-wordpress-theme
Version: 1.0.0
*/

/* WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
    /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
    /* Above WP toolbar. */
}

.it-header-slim-wrapper .it-header-slim-wrapper-content #headerSlimMenu a span {
    color: #fff;
}

#search-modal,
#spid-modal {
    z-index: 99999;
}

#spid-modal .modal-dialog {
    max-width: 100%;
    margin: 0;
    height: 100vh;
}

#spid-modal .modal-title {
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    padding: 1.125rem 1.5rem;
    font-weight: 600;
    line-height: 1.5;
    color: #455a64;
    margin-bottom: 4.375rem;
}

@media (min-width: 768px) {
    #spid-modal .modal-title {
        box-shadow: none;
        justify-content: space-between;
        line-height: 1.1;
    }
}

/* RL */

.callout li {
    font-family: Lora, Georgia, serif;
    font-size: 0.889rem;
    color: #5b6f82;
}

.callout-inner.nessuna-previsione,
.callout:not(.callout-highlight):not(.callout-more)
.callout-title.nessuna-previsione::before {
    border-color: #636363 !important;
}

.callout-inner.codice-verde,
.callout:not(.callout-highlight):not(.callout-more)
.callout-title.codice-verde::before {
    border-color: #47ae45 !important;
}

.callout-inner.codice-giallo,
.callout:not(.callout-highlight):not(.callout-more)
.callout-title.codice-giallo::before {
    border-color: #f3e600 !important;
}

.callout-inner.codice-arancione,
.callout:not(.callout-highlight):not(.callout-more)
.callout-title.codice-arancione::before {
    border-color: #f49819 !important;
}

.callout-inner.codice-rosso,
.callout:not(.callout-highlight):not(.callout-more)
.callout-title.codice-rosso::before {
    border-color: #e52621 !important;
}

#protezione-civile
.callout:not(.callout-highlight):not(.callout-more)
.callout-title::before {
    width: 2.222rem;
}

.logo-e015,
.logoRL {
    height: 40px;
}

.card dd,
.card ol,
.card ul,
#footer dd,
#footer ol,
#footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.logo-company {
    height: 25px;
}

#ultimi-messaggi-list .card-teaser-info,
#messaggi-list .card-teaser-info {
    border-left: 8px solid #9C0769;
}

/** FORM BUILDER CSS */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-number input[type="text"] {
    display: unset;
}

.input-number.input-number-currency input[type="text"],
.input-number.input-number-percentage input[type="text"] {
    padding-left: 40px;
}

.input-number button,
.cmp-input .clean-input {
    display: none;
}

.card .card-calendar {
    max-height: 110px !important;
}

#cerca .section.section-image::before {
    content: none;
}

/* Rimuovo bandiera da leaflet*/
.leaflet-control-attribution.leaflet-control svg.leaflet-attribution-flag {
    display: none !important;
}

.carousel-caption {
    background-color: rgba(255, 255, 255, 1);
    left: 0 !important;
    right: 50% !important;
    bottom: 0 !important;
    text-align: left !important;
}

.carousel-indicators {
    text-align: left !important;
    float: left !important;
    left: 1.5% !important;
    right: inherit !important;
    margin-bottom: 0 !important;
}

.carousel-indicators [data-bs-target] {
    width: 50px !important;
    height: 5px !important;
}

@media (min-width: 1200px) {
    .carousel-indicators [data-bs-target] {
        width: 100px !important;
    }
}
@media (min-width: 992px) {
    .carousel-indicators [data-bs-target] {
        width: 80px !important;
    }
}
@media (min-width: 768px) {
    .carousel-indicators [data-bs-target] {
        width: 60px !important;
    }
}

@media (min-width: 992px) {
    .carousel-item img {
        max-width: 1500px; /* Limita la larghezza dell'immagine */
        width: 100%; /* Assicurati che l'immagine si ridimensioni correttamente */
        height: auto; /* Mantieni le proporzioni originali */
    }
    .carousel-item.active {
        display: flex !important; /* Abilita Flexbox */
        justify-content: center; /* Centra orizzontalmente */
        align-items: center; /* Centra verticalmente */
        height: 100%; /* Assicurati che il contenitore abbia una altezza per il centro verticale */
    }
}

/* Set a fixed height for the carousel on mobile devices */
@media (max-width: 992px) {
    .carousel-item {
        height: 40vh; /* Adjust the height as needed */
    }

    .carousel-item img {
        object-fit: cover;
        height: 100%;
    }
}

/* Set a fixed height for the carousel on mobile devices */
@media (max-width: 767px) {
    .carousel-item {
        height: 30vh; /* Adjust the height as needed */
    }

    .carousel-item img {
        object-fit: cover;
        height: 100%;
    }
}

/* change transition duration to control the speed of fade effect */
.carousel-item {
    /*transition: transform 0s ease-in-out !important;*/
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    transition: opacity 0s 0s !important;
}

.navbar-collapsable {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.carousel-image-background-blur {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    backdrop-filter: blur(20px);
    z-index: -1;
}

.logo-hamburger img {
    height: 60px;
    width: auto;
}

.image-full-width-background .image-full-width-blur{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    backdrop-filter: blur(20px);
    z-index: -1;
}

@media (min-width: 992px) {
    .image-full-width-background{
        min-height: auto !important;
    }

    .image-full-width-background img {
        max-width: 1500px; /* Limita la larghezza dell'immagine */
        width: 100%; /* Assicurati che l'immagine si ridimensioni correttamente */
        height: auto; /* Mantieni le proporzioni originali */
        min-height: auto !important;
    }

    .image-full-width-background .carousel-inner {
        display: flex !important;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
}

/* Set a fixed height for the carousel on mobile devices */
@media (max-width: 992px) {
    .image-full-width-background {
        height: 30vh; /* Adjust the height as needed */
    }

    .image-full-width-background img {
        object-fit: cover;
        height: 100%;
    }
}

/* Set a fixed height for the carousel on mobile devices */
@media (max-width: 767px) {
    .image-full-width-background {
        height: 25vh; /* Adjust the height as needed */
    }

    .image-full-width-background img {
        object-fit: cover;
        height: 100%;
    }

    #professionisti button{
        left: 15% !important;
    }
}

/* Sticky header: quando scrollato, nascondi slim+center e fissa la navbar */
.asp-header-scrolled .it-header-slim-wrapper {
  display: none !important;
}
.asp-header-scrolled .it-header-center-wrapper {
  display: none !important;
}
.asp-header-scrolled .it-header-navbar-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  margin-top: 0 !important;
}
/* Placeholder per evitare il "salto" del contenuto quando la navbar diventa fixed */
.asp-header-scrolled .it-nav-wrapper {
  padding-top: 48px;
}

/* Fix allineamento icona ricerca nell'input search (pagina risultati) */
/*.cmp-input-search-button .input-group {*/
/*  align-items: center;*/
/*}*/
.cmp-input-search-button .input-group-prepend .input-group-text {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Modale ricerca: input e bottone sulla stessa riga */
.search-modal .form-group .d-flex > .input-group {
  flex: 1 1 0%;
}
.search-modal .form-group .btn-primary {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Riduce spaziatura tra checkbox nei filtri sidebar (ricerca e come-fare-per) */
.scroll-filter-wrapper .checkbox-body,
.bg-grey-card .form-check {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}
.scroll-filter-wrapper .categoy-list li,
.bg-grey-card .link-list li {
  margin-bottom: 0;
}

/* Amministrazione Trasparente — contenuto single */
.at-content ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.at-content li {
  list-style: none !important;
  list-style-type: none !important;
}
.at-content li::marker {
  content: none !important;
  display: none !important;
  font-size: 0 !important;
}

/* Accessibilità: focus visibile da tastiera (WCAG 2.4.7)
   Override di asl-colors.css che imposta outline:0.
   :not(.focus--mouse) = Bootstrap Italia aggiunge .focus--mouse ai click,
   così il focus ring appare solo da navigazione tastiera. */
a:focus:not(.focus--mouse),
button:focus:not(.focus--mouse) {
    outline: 2px solid currentColor !important;
    outline-offset: 2px;
}

/* Card notizie: forza altezza 100% su tutta la catena */
.bg-grey-card .row > [class*="col"] > .card-wrapper,
.bg-grey-card .row > [class*="col"] > .card-wrapper > .card {
    height: 100%;
}
.bg-grey-card .row > [class*="col"] > .card-wrapper > .card > .card-body {
    display: flex;
    flex-direction: column;
}
/* Variante senza immagine: stessa cosa sui wrapper interni */
.cmp-list-card-img-hr .card > .row,
.cmp-list-card-img-hr .card > .row > [class*="col"],
.cmp-list-card-img-hr .card > .row > [class*="col"] > .card-body {
    height: 100%;
}
.cmp-list-card-img-hr .card > .row > [class*="col"] > .card-body {
    display: flex;
    flex-direction: column;
}

/* Card notizie: categoria e data in fondo alla card */
.card-category-bottom {
    border-top: 1px solid #e6e6e6;
    font-size: .8125rem;
    margin-top: auto;
}
.card-category-label {
    color: var(--bs-link-color, hsl(180, 100%, 19%)) !important;
    font-size: .8125rem;
    letter-spacing: .02em;
}
.card-category-label:hover {
    text-decoration: underline !important;
}
.card-category-date {
    white-space: nowrap;
}
