/*
Theme Name: AMIU PUGLIA
Theme URI: https://www.bbsitalia.com/
Author: BBS
Author URI: https://www.bbsitalia.com/
Description: Tema custom per AMIU PUGLIA.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amiu-puglia
*/

:root {
    --main-color: #003868;
    --dark-color: #061e32;
    --light-color: #d4e8f9;
    --white-color: #FFF;
    --mid-color: #CECECE;
    --axent-color: #1697c2;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-size: 16px;
    font-family: "Titillium Web", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    overflow-x: hidden;
    color: var(--dark-color);
    scroll-behavior: smooth;
}

.bg-light {
    background-color: var(--light-color);
}

.bg-white {
    background-color: var(--white-color);
}

.bg-dark {
    background-color: var(--dark-color);
}

.bg-mid {
    background-color: var(--mid-color);
}

.bg-axent {
    background-color: var(--axent-color);
}

.bg-main {
    background-color: var(--main-color);
}

.color-main {
    color: var(--main-color);
}

.color-dark {
    color: var(--dark-color);
}

.color-light {
    color: var(--light-color);
}

.color-white {
    color: var(--white-color);
}

.color-mid {
    color: var(--mid-color);
}

.color-axent {
    color: var(--axent-color);
}

.size-h1 {
    font-size: 2.5rem;
    font-weight: 600;
    font-family: "Titillium Web", sans-serif;
}

.size-h2 {
    font-size: 2rem;
    font-weight: 400;
    font-family: "Titillium Web", sans-serif;
}

.size-h3 {
    font-size: 1.5rem;
    font-weight: 400;
    font-family: "Titillium Web", sans-serif;
    line-height: 1.2;
}

.size-h4 {
    font-size: 1.5rem;
    font-weight: 400;
    font-family: "Titillium Web", sans-serif;
}

.size-h5 {
    font-size: 1.2rem;
    font-weight: 300;
    font-family: "Titillium Web", sans-serif;
}

.size-body {
    font-size: 1rem;
    font-weight: 300;
    font-family: "Titillium Web", sans-serif;
}

.uppercase {
    text-transform: uppercase;
}

.bold {
    font-weight: 600;
}

.medium {
    font-weight: 400;
}

.rounded-20 {
    border-radius: 20px;
}

a {
    text-decoration: none;
    color: var(--main-color);
    transition: opacity 0.4s ease;
}

a:hover {
    opacity: 0.7;
}

.shadow-btn {
    box-shadow: 0px 4px 4px #00376837;
}

.btn {
    display: inline-block;
    background-color: var(--axent-color);
    color: var(--white-color);
    font-weight: 600;
    padding: 0.65rem 2rem;
    border-radius: 20px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.btn:hover {
    background-color: var(--main-color);
    opacity: 1;
}

/* ------------------- */
/* ------------------- */
/* ------------------- */
/* ------------------- */

.title-section {
    border-bottom: 4px solid var(--main-color);
}

.title-section-light {
    border-bottom: 4px solid var(--white-color);
}

.header-logo {
    width: 150px;
}

.nav-menu ul {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

.nav-menu ul li {
    list-style: none;
    position: relative;
}

.nav-menu ul li a {
    color: var(--white-color);
    font-weight: 600;
    display: block;
    white-space: nowrap;
}

/* Sottomenu dropdown */
.nav-menu ul li ul.sub-menu {
    display: none;
    position: absolute;
    top: 166%;
    left: 0;
    background-color: var(--light-color);
    min-width: 220px;
    z-index: 100;
    flex-direction: column;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-menu ul li ul.sub-menu li {
    width: 100%;
}

.nav-menu ul li ul.sub-menu li a {
    padding: 0.5rem 1rem;
    font-weight: 400;
    color: var(--dark-color);
}

.nav-menu ul li ul.sub-menu li a:hover {
    background-color: rgba(0,56,104,0.1);
    opacity: 1;
}

/* Freccia chevron outline per voci con sottomenu */
.nav-menu ul li:has(> ul.sub-menu) > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--white-color);
    border-bottom: 2px solid var(--white-color);
    transform: rotate(45deg);
    margin-left: 0.45rem;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

/* Mostra sottomenu (gestito da JS) */
.nav-menu ul li.is-open > ul.sub-menu {
    display: flex;
}

input {
    border: 1px solid var(--main-color);
    border-radius: 10px;
    padding: 0.5rem;
    font-size: 1rem;
}

.search-field-wrapper {
  position: relative;
}

.search-field {
  padding-right: 2.5rem;
}

.search-field-icon {
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  color: currentColor;
}

.servizio-thumbnail,
.pagina-thumbnail {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.servizio-tabs__nav {
    border-bottom: 5px solid var(--tab-color, #333);
}

.servizio-tab-btn {
    background: #fff;
    border: 2px solid var(--tab-color, #333);
    border-radius: 20px 20px 0px 0px;
    border-bottom: none;
    color: var(--main-color);
    cursor: pointer;
    /* transition: all 0.2s, color 0.2s; */
    /* margin-bottom: -2px; */
}

.servizio-tab-btn.is-active,
.servizio-tab-btn[aria-selected="true"] {
    background: var(--tab-color, #333);
    color: var(--white-color);
}

.servizio-calendario {
    gap: 0.1rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    align-items: stretch;
}

.servizio-calendario__giorno {
    display: flex;
    flex-direction: column;
    min-width: 7rem;
}

.servizio-calendario__orari {
    flex: 1;
}

.servizio-accordion__trigger {
    cursor: pointer;
}

/* ── FAQ Accordion ───────────────────────────────────────────────────────── */

.faq-accordion {
    border-bottom: 1px solid var(--light-color);
}

.faq-accordion:first-child {
    border-top: 1px solid var(--light-color);
}

.faq-accordion summary {
    list-style: none;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    cursor: pointer;
    user-select: none;
}

.faq-accordion__icon {
    flex-shrink: 0;
    color: var(--main-color);
    transition: transform 0.3s ease;
}

.faq-accordion[open] .faq-accordion__icon {
    transform: rotate(180deg);
}

.faq-accordion__content {
    padding-bottom: 1.25rem;
    line-height: 1.7;
}

/* ── Offcanvas ───────────────────────────────────────────────────────────── */

/* Mobile: header-wrapper sticky che si nasconde sullo scroll down */
.header-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.header-wrapper.scroll-hidden,
.header-navbar.scroll-hidden {
    transform: translateY(-100%);
}

.header-navbar {
    display: none;
    z-index: 50;
}

.offcanvas-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.offcanvas-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--main-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.offcanvas-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.offcanvas-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.offcanvas-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.offcanvas-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.offcanvas-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--white-color);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 1.5rem 1rem;
}

.offcanvas.is-open {
    transform: translateX(0);
}

.offcanvas-close {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-color);
    padding: 0;
    margin-bottom: 1.5rem;
}

.offcanvas-nav .offcanvas-menu-list {
    padding: 0;
    margin: 0;
}

.offcanvas-nav .offcanvas-menu-list > li > a {
    display: block;
    padding: 0.75rem 0;
    color: var(--dark-color);
    font-weight: 600;
    border-bottom: 1px solid var(--light-color);
    white-space: normal;
}

.offcanvas-nav .offcanvas-menu-list > li > a:hover {
    color: var(--main-color);
    opacity: 1;
}

.offcanvas-nav .sub-menu {
    list-style: none;
    padding-left: 1rem;
    margin: 0;
    display: none;
}

.offcanvas-nav li.is-open > .sub-menu {
    display: block;
}

.offcanvas-nav .sub-menu li a {
    display: block;
    padding: 0.5rem 0;
    color: var(--dark-color);
    font-weight: 400;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--light-color);
}

.offcanvas-nav li:has(> .sub-menu) > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 0.45rem;
    vertical-align: middle;
    position: relative;
    top: -2px;
    transition: transform 0.2s ease, top 0.2s ease;
}

.offcanvas-nav li.is-open:has(> .sub-menu) > a::after {
    transform: rotate(-135deg);
    top: 2px;
}

.header-search {
    display: none;
}

.richiesti-card-divider {
    border-right: 2px solid var(--white-color);
}

/* ── Pre-footer contatti ─────────────────────────────────────────────────── */

.contatti-prefooter__link {
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.3s ease;
}

.contatti-prefooter__link:hover {
    opacity: 0.75;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer-logo {
    width: 120px;
}

.footer__col-title {
    color: var(--main-color);
    border-bottom: 1px solid var(--main-color);
    padding-bottom: 0.5rem;
}

.footer__nav li {
    margin-bottom: 0.35rem;
}

.footer__nav a {
    color: var(--dark-color);
    font-size: 0.875rem;
    font-weight: 300;
}

.footer__nav a:hover {
    color: var(--main-color);
    opacity: 1;
}

.footer__social-label {
    color: var(--main-color);
}

.footer__social-link {
    color: var(--main-color);
}

.footer__social-link:hover {
    opacity: 0.7;
}

.footer__gallery {
    display: flex;
    flex-wrap: wrap;
}

.footer__gallery-img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

/* ── Hero carosello homepage ─────────────────────────────────────────────── */

.hero-swiper-wrapper {
    width: 100%;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    min-height: 400px;
    height: 400px;
}

.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide__content {
    position: relative;
    text-align: center;
    height: fit-content;
    background-color: #0037686e;
}

.hero-slide__title {
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.swiper-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: var(--white-color);
}

.hero-swiper .swiper-pagination-bullet {
    background: var(--white-color);
    opacity: 0.6;
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--axent-color);
}


/* ── I più richiesti homepage ────────────────────────────────────────────── */

.richiesti__inner {
    gap: 0.5rem;
}

.richiesti__cards {
    gap: 1rem;
}

.richiesti-card {
    transition: opacity 0.2s ease;
    min-width: 80px;
    flex-basis: 49%;
}

.richiesti-card:hover {
    opacity: 0.7;
}

.richiesti-card__icon {
    width: 60px;
    object-fit: contain;
}

.richiesti__arrow {
    font-size: 1.4rem;
    letter-spacing: -0.3em;
    padding-left: 0.5rem;
    color: var(--main-color);
    user-select: none;
}

/* ── Sezione Servizi homepage ────────────────────────────────────────────── */

.servizi__grid {
    gap: 0;
}

.servizi__card {
    background-color: var(--white-color);
    height: 100%;
}

.servizi__card-icon {
    width: 68px;
    object-fit: contain;
    display: block;
}

.servizi__card-title {
    border-bottom: 1px solid var(--light-color);
    padding-bottom: 0.75rem;
}

.servizi__card-list {
    margin-top: 0.75rem;
}

.servizi__card-item {
    padding: 0.35rem 0;
    line-height: 1.4;
}

.servizi__card-item:last-child {
    border-bottom: none;
}

.servizi__card-item a {
    color: var(--dark-color);
    font-size: 0.9rem;
}

.servizi__card-item a:hover {
    color: var(--main-color);
    opacity: 1;
}

.servizi__col__icon-area {
    min-height: 130px;
}

.servizi__col__title-area {
    min-height: 100px;
}

/* ── News homepage ───────────────────────────────────────────────────────── */

.news__card {
    border: 1px solid var(--border-color, #d6e4f0);
    height: 100%;
}

.news__card-image {
    border-radius: 20px 20px 0 0;
}

.news__card-img {
    height: 200px;
    object-fit: cover;
    display: block;
    width: 100%;
}

.news__card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news__card-btn {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    text-decoration: none;
    gap: 0.5rem;
}

.news__card-btn:hover {
    opacity: 0.88;
}

/* ── Valutazione stelle ──────────────────────────────────────────────────── */

.valutazione-stelle {
    gap: 0.25rem;
}

.valutazione-stella {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--mid-color);
    padding: 0.25rem;
    line-height: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.valutazione-stella svg,
.valutazione-stella svg * {
    pointer-events: none;
}

.valutazione-stella:hover,
.valutazione-stella.is-hovered,
.valutazione-stella.is-active {
    color: #f5a623;
    transform: scale(1.2);
}

.valutazione-stella.is-active svg polygon {
    fill: currentColor;
}

.valutazione-stella:disabled {
    cursor: default;
    transform: none;
}

.valutazione-feedback {
    min-height: 1.5em;
    margin: 0;
    color: var(--main-color);
}

/* ── Singolo Personale ───────────────────────────────────────────────────── */



.personale-info__row {
    border-bottom: 1px solid var(--light-color);
    padding-bottom: 0.5rem;
}

.personale-info__row:last-child {
    border-bottom: none;
}

/* ── Pagina predefinita ──────────────────────────────────────────────────── */

.pagina-paragrafo:last-child {
    border-bottom: none;
}

.pagina-paragrafo__img {
    width: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.pagina-paragrafo__corpo {
    line-height: 1.7;
}

.pagina-paragrafo__corpo p {
    margin-bottom: 1rem;
}

.pagina-paragrafo__corpo h2,
.pagina-paragrafo__corpo h3,
.pagina-paragrafo__corpo h4 {
    color: var(--main-color);
    margin-bottom: 0.5rem;
}




/* ── Archivio tassonomia tipologia-servizio ──────────────────────────────── */

.tipologia-sezioni__btn {
    display: inline-block;
    transition: opacity 0.3s ease;
}

/* ── Info generali homepage ──────────────────────────────────────────────── */

.info-card {
    border: 1px solid var(--main-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info-card__sezione {
    font-size: 0.9rem;
    color: var(--main-color);
    margin: 0 0 0.25rem;
}

.info-card__descrizione {
    flex: 1;
    line-height: 1.6;
    white-space: pre-line;
}

.info-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    background-color: var(--light-color);
    color: var(--dark-color);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.6rem 1.1rem;
    border-radius: 20px;
    transition: opacity 0.3s ease;
}

.info-card__btn:hover {
    opacity: 0.78;
}

/* ── Social cards homepage ───────────────────────────────────────────────── */

.social__card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color, #d6e4f0);
}

.social__card-image img {
    height: 240px;
    object-fit: cover;
    width: 100%;
    display: block;
}

.social__card-image--placeholder {
    height: 240px;
    background-color: var(--light-color);
}

.social__card-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color, #d6e4f0);
}

.social__card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-color, #d6e4f0);
    background-color: var(--white-color);
}

.social__card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social__card-badge {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social__card-badge--facebook {
    background-color: #1877F2;
}

.social__card-badge--instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social__card-text {
    flex: 1;
    padding: 1rem;
}

.social__card-cta {
    display: block;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff !important;
    transition: opacity 0.3s ease;
    border-radius: 0 0 20px 20px;
    text-decoration: none;
}

.social__card-cta:hover {
    opacity: 0.88;
}

.social__card-cta--facebook {
    background-color: #1877F2;
}

.social__card-cta--instagram {
    background: linear-gradient(90deg, #f09433 0%, #e6683c 20%, #dc2743 40%, #cc2366 70%, #bc1888 100%);
}

@media (min-width: 52em) {
    .hero-swiper {
        min-height: 600px;
        height: 600px;
    }

    /* Reset sticky su header-wrapper: torna al flusso normale */
    .header-wrapper {
        position: relative;
        z-index: auto;
        transition: none;
        transform: none !important;
    }

    .header-navbar {
        display: block;
        transition: transform 0.3s ease;
    }

    .offcanvas-toggle,
    .offcanvas,
    .offcanvas-overlay {
        display: none !important;
    }

    .header-search {
        display: block;
    }

    .kpi-card-wrap {
        max-width: 100%;
    }
}

/* ── Tab hint ────────────────────────────────────────────────────────────── */

.servizio-tabs__hint {
    margin: 0 0 1.5rem;
    color: var(--main-color);
    font-style: italic;
    opacity: 0.8;
}

/* ── Contact Form 7 ──────────────────────────────────────────────────────── */

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wpcf7-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
    width: 100%;
}

.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--dark-color);
    background-color: var(--white-color);
    border: 1.5px solid var(--mid-color);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(0, 56, 104, 0.12);
}

.wpcf7-form textarea {
    resize: vertical;
    min-height: 130px;
}

.wpcf7-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23061e32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.wpcf7-submit {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--main-color);
    color: var(--white-color);
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    padding: 0.65rem 2rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.wpcf7-submit:hover {
    background-color: var(--axent-color);
}

.wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #c0392b;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid {
    border-color: #c0392b;
}

.wpcf7-response-output {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    border: none !important;
    margin: 0 !important;
}

.wpcf7-mail-sent-ok {
    background-color: #eafaf1;
    color: #1e8449;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-spam-blocked,
.wpcf7-validation-errors {
    background-color: #fdedec;
    color: #c0392b;
}

.accettazione-form label {
    flex-direction: row;
    justify-content: center;
    align-items: center;
}



/* KPI — Numeri per l'ambiente -------------------------------------------- */

.kpi-category {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.kpi-category:first-child {
    border-top: none;
    padding-top: 0;
}

.kpi-category__header {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.kpi-category__icon {
    display: flex;
    align-items: center;
    opacity: 0.9;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.kpi-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.kpi-card__value {
    line-height: 1;
    font-size: 2.8rem;
}

.kpi-card__label {
    font-size: 1.1rem;
    line-height: 1.3;
}

.kpi-card__desc {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
}

.kpi-loading {
    min-height: 120px;
}


/* KPI — Numeri per l'ambiente */

.kpi-category__header {
    gap: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.75rem;
}

.kpi-category__icon {
    display: flex;
    align-items: center;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 180px;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.kpi-card__value {
    line-height: 1;
    letter-spacing: -0.02em;
}

.kpi-card__label {
    line-height: 1.2;
}

.kpi-card__desc {
    line-height: 1.4;
}

.kpi-loading {
    min-height: 120px;
}

.pagina-toc__nav {
    min-width: 200px;
    max-width: 200px;
}

