:root {
    --primary: #121212;
    --primary-contrast: #fff;
    --secondary: #315868;
    /*--secondary: #488CA1;*/
    --secondary-contrast: #fff;
}

::selection {
    background: var(--secondary);
    color: var(--secondary-contrast);
    text-shadow: none;
}

::-moz-selection {
    background: var(--secondary);
    color: var(--secondary-contrast);
    text-shadow: none;
}

.kw-btn-primary {
    background-color: var(--primary);
    border: none;
    color: var(--primary-contrast) !important;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 600;
}

.kw-btn-primary:hover {
    background-color: var(--primary);
}

.kw-btn-secondary {
    background-color: var(--primary-contrast);
    border: none;
    color: var(--secondary) !important;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 600;
}

.kw-btn-secondary:hover {
    background-color: var(--primary-contrast);
}

.kw-text-primary {
    color: var(--primary);
}

.kw-text-secondary {
    color: var(--secondary);
}

.kw-text-secondary-contrast {
    color: var(--secondary-contrast);
}

.art-nav {
    border-bottom: 0;
}

.nav-sticky-wrapper .art-nav {
    opacity: 1;
}

/* =======================================
   HEADER FADE MORBIDO + COLORI LINK
   ======================================= */

.nav-sticky .art-nav {
    position: relative;
    z-index: 2;
}

/* Velo bianco che appare gradualmente */
.nav-sticky .art-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    transition: opacity 0.4s ease, box-shadow 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

/* Quando si scrolla */
.nav-sticky .art-nav.scrolled::before {
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* =======================================
   COLORI LINK
   ======================================= */

.nav-sticky .art-nav .mod-menu > li > a {
    color: #fff;
    transition: color 0.3s ease;
}

/* Dopo scroll: link normali neri */
.nav-sticky .art-nav.scrolled .mod-menu > li:not(.current) > a {
    color: #000;
}

/* Link attivo resta nel colore tema */
.nav-sticky .art-nav.scrolled .mod-menu > li.current > a {
    color: var(--secondary);
}

#fullheight-header-image {
    position: relative;
}

#fullheight-header-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 675px;
    height: auto;
    width: 50vw;
    background: url("../../../images/homepage/pompiliofaggiano.png") no-repeat;
    background-size: contain;
    background-position: center right;
    pointer-events: none;
    z-index: 1;

    /* piccolo trucco per far sì che si veda comunque anche senza dimensioni */
    aspect-ratio: 1 / 1 !important;
}

#fullheight-header-image-contenuto {

    z-index: 2;
}

.navbar {
    margin-left: auto;
    margin-right: auto;
}

.card-soft {
    background: #f7f8f9;
    border-radius: 1.5rem;
}

.kw-servizi-carousel h3, .kw-servizi-carousel h4 a, .kw-servizi-carousel p {
    color: var(--primary-contrast);
}

.kw-servizi-carousel h4 a {
    font-weight: bold;
}

.kw-servizi-carousel img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1.5rem;
}

.kw-servizi-carousel {
    padding-bottom: 5rem;
}

.kw-accordion p {
    margin: 0;
}

.accordion-item {
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
}

.accordion-button {
    padding-left: 0;
    padding-right: 0;
}

.kw-accordion {
    max-width: 800px;
    margin: auto;
}

.kw-contact-band {
    padding-top: 100px;
    padding-bottom: 100px;
}

.kw-contact-band h4 {
    color: var(--primary-contrast);
    line-height: 50px !important;
}

.kw-footer {
    border-top: 6px solid #232323;
    font-family: "Lato", sans-serif;
    padding-top: 30px;
    margin-bottom: 30px;
}

.kw-footer .brand-title {
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1.1;
}

.kw-footer .brand-sub {
    color: #555;
    font-size: 0.95rem;
}

.kw-footer .section-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: #333;
}

.kw-footer .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kw-footer .contact-item i {
    font-size: 1.2rem;
    width: 1.5rem;
    color: #333;
}

.kw-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kw-footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.kw-footer ul {
    padding-left: 0;
    list-style: none;
}

.kw-footer ul li {
    margin-bottom: 0.4rem;
}

.kw-footer .social {
    display: flex;
    flex-direction: column;
}

.kw-footer .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.kw-footer .social a:hover {
    background: #111;
    color: #fff;
    text-decoration: none;
    transform: scale(1.05);
}

ul.art-hmenu > li.active > a {
    color: var(--primary);
    background-color: var(--primary-contrast);
}
ul.art-hmenu > li > a {
    color: var(--primary-contrast);
    background-color: transparent;
    transition: color 0.25s ease, background-color 0.25s ease;
}

ul.art-hmenu > li > a:hover {
    color: var(--primary);
    background-color: var(--primary-contrast);
}

.cardiology-page .bg-soft {
    background-color: rgba(49, 88, 104, 0.06);
}

.cardiology-page .section-box {
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cardiology-page section + section {
    margin-top: 3rem;
}

.section-box {
    background-color: rgba(49, 88, 104, 0.06);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.card-soft {
    background: #f7f8f9;
    border-radius: 1.5rem;
}


/* Extra extra large devices (<1400px) */
@media (max-width: 1399.98px) {

}

/* Extra large devices (max-width 1199.98px) */
@media (max-width: 1199.98px) {

}


/* Large devices (max-width 991.98px): Desktops */
@media (max-width: 991.98px) {
    /*#fullheight-header-image::after {
        width: 400px;
        position: absolute;
        right: 0;
        bottom: 0;
        display: none;
    }*/
}

/* Medium devices (max-width 767.98px): Tablets */
@media (max-width: 767.98px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }

    h4 {
        font-size: 20px;
    }

    .container-search {
        display: none;
    }

    #hamburgerMenu {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .kw-accordion {
        padding: 0 30px;
    }

    nav ul.art-hmenu > li > a {
        color: var(--primary);
    }

    ul.art-hmenu > li.active > a {
        color: var(--secondary);

    }

    #fullheight-header-image-contenuto {
        margin-top: -150px;
    }
}


/* Small devices (max-width 575.98px): Mobile portrait */
@media (max-width: 575.98px) {


}
