body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    color: #3d3d3d;
}

.fs-7 {
    font-size: 0.8rem !important;
}


.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}


.bg-header {
    background-image: url(../images/head-home-lg.jpg);
    background-size: cover; /* oppure contain */
    background-repeat: no-repeat; /* evita ripetizioni */
    background-position: center; /* centra l'immagine */
    min-height: 748px;
}

.bg-blu {
    background-color: #10384f;
}

.txt-blu {
    color: #10384f;
}

.txt-grey {
    color: #3b3b3b;
}

.txt-green {
    color: #89d329;
}

.nav-link {
    color: #10384f;
    text-decoration: none;
}

    .nav-link:hover {
        color: #89d329;
        text-decoration: none;
    }

.txt-link {
    color: #10384f;
    text-decoration: none;
}

    .txt-link:hover {
        color: #89d329;
        text-decoration: none;
    }

a.navbar-brand {
    width: 50%;
    height: 100%;
    z-index: 999;
}

.offcanvas-header {
    background-color: #89d329;
}

.bg-light {
    background-color: #f2ffff;
}

.bg-green {
    background-color: #c5f883;
}

.bg-green02 {
    background-color: #89d329;
}

.bg-footer {
    background-image: url(../images/bg-footer.png);
    background-size: cover; /* Copre tutta la sezione */
    background-repeat: no-repeat; /* Non si ripete */
    background-position: top right; /* Allineato in alto a destra come nell'immagine */
    min-height: 330px; /* Altezza minima (regola in base al tuo contenuto) */
    position: relative;
}

.card-body {
    background-color: #b4f4614f;
    border: none;
    border-radius: 18px;
}

.custom-checklist {
    list-style: none;
    padding-left: 0;
}

    .custom-checklist li {
        display: flex;
        align-items: start;
        margin-bottom: 0.5rem;
    }

    .custom-checklist .material-symbols-outlined {
        color: #10384f;
        margin-right: 8px;
        font-size: 25px;
        line-height: 1.2;
    }

.download-file {
    text-decoration: none;
    color: #10384f;
}

    .download-file:hover {
        text-decoration: none;
        color: #89d329;
    }

.list-inline-item {
    text-decoration: none;
    color: #fff;
}

    .list-inline-item:hover {
        text-decoration: none;
        color: #89d329;
    }

.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}



.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    width: 3.5em;
    height: 2.5em;
}

.navbar-toggler-icon {
    background-image: url(../images/hamburger-menù.svg);
}

.custom-toggler .navbar-toggler-icon {
    background-image: none; /* Rimuove l'icona Bootstrap */
    width: 60px; /* ← Più largo */
    height: 46px; /* ← Più alto */
    position: relative;
    display: inline-block;
}

    /* Riga 1 (in alto) */
    .custom-toggler .navbar-toggler-icon::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 4px;
        background-color: #89d329;
        border-radius: 2px;
    }

    /* Riga 2 (centrale) */
    .custom-toggler .navbar-toggler-icon::after {
        content: '';
        position: absolute;
        left: 0;
        top: 18px; /* ← più spazio */
        width: 100%;
        height: 4px;
        background-color: #89d329;
        border-radius: 2px;
    }

    /* Riga 3 (in basso) */
    .custom-toggler .navbar-toggler-icon div {
        content: '';
        position: absolute;
        left: 0;
        top: 35px; /* ← più spazio ancora */
        width: 100%;
        height: 4px;
        background-color: #89d329;
        border-radius: 2px;
    }

#hospital-list {
    position: relative;
}

    #hospital-list ul {
        list-style: none;
        margin: 0;
        padding: 0 1rem !important;
    }

    #hospital-list li {
        margin: 0;
        padding: 0;
    }

    /* Rende l'area clic precisa e non enorme */
    #hospital-list a {
        display: block;
        text-decoration: none !important;
        color: #10384f !important;
        cursor: pointer;
        padding: .5rem .25rem !important; /* era 3rem / 1.5rem */
        line-height: 1.25 !important;
        font-size: 1.3rem; /* tieni pure il tuo size */
        font-weight: bold;
    }

        #hospital-list a:hover {
            color: #89d329 !important;
        }


#hospital-detail {
    margin-left: 1.5rem;
}

    #hospital-detail h4 {
        font-weight: bold;
        color: #10384f;
        padding-bottom: 0.6rem;
    }

    #hospital-detail p {
        color: #10384f;
    }


.elenco-ospedali {
    background-color: #f7f7f7 !important;
}

#map-section {
    margin: 0;
    padding: 0;
}

    #map-section > div {
        padding: 0 !important;
        margin: 0 !important;
    }

#map,
#hospital-list,
#hospital-detail {
    height: 600px;
    padding: 0 !important;
}

.bi-printer {
    color: #10384f;
}

    .bi-printer:hover {
        color: #89d329;
    }


.bi-x-circle-fill {
    color: #89d329;
}

.result_item {
    border-bottom: 1px solid #89d329;
    padding:  10px 20px;
}


.fade-in {
    animation: fadeIn .35s forwards;
}

.fade-out {
    animation: fadeOut .35s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes fadeOut {
    from {
        opacity: 1
    }

    to {
        opacity: 0
    }
}




/* Dimensioni base (desktop/tablet) */
.assess-logo {
    max-height: 70px;
    height: auto;
}

.bayer-logo {
    width: 80px;
    height: auto;
    display: block;
}

.custom-toggler {
    padding: .35rem .5rem;
}

    .custom-toggler .navbar-toggler-icon {
        width: 28px;
        height: 28px;
        background-size: 28px 28px;
    }

/* Offcanvas */
.offcanvas-brand {
    width: 50%;
    height: auto;
}

/* Mobile */
@media (max-width: 576px) {
    /* Riduci padding verticale della barra */
    header .navbar .container {
        padding-top: .25rem !important;
        padding-bottom: .25rem !important;
    }

    /* Logo sinistro più compatto */
    .assess-logo {
        max-height: 42px !important;
    }

    /* Burger più piccolo */
    .custom-toggler {
        padding: .25rem .4rem;
        border: none;
    }

        .custom-toggler .navbar-toggler-icon {
            width: 22px;
            height: 22px;
            background-size: 22px 22px;
        }

    /* Logo Bayer più piccolo */
    .bayer-logo {
        width: 56px !important;
    }

    /* Logo dentro l'offcanvas un po' più piccolo */
    .offcanvas-brand {
        width: 40% !important;
    }
}

/* Accessibilità: evidenziazione focus (opzionale ma consigliata) */
.custom-toggler:focus,
.custom-toggler:focus-visible,
.offcanvas .btn-close:focus,
.offcanvas .btn-close:focus-visible,
.navbar-offcanvas-list .nav-link:focus {
    outline: 2px solid rgba(0, 123, 255, .6);
    outline-offset: 2px;
}

/* Link menu offcanvas */
.navbar-offcanvas-list .nav-link {
    padding: .6rem 0;
}

/* Footer logos */
.bayer-footer-logo {
    /* default desktop/tablet */
    max-width: 110px; /* ~ come prima */
    height: auto;
}

.assess-footer-logo {
    /* scala in modo fluido senza rompere il layout */
    width: clamp(140px, 20vw, 260px);
    height: auto;
}

/* Mobile */
@media (max-width: 576px) {
    .bayer-footer-logo {
        max-width: 64px; /* ridotto sul telefono */
    }

    .assess-footer-logo {
        width: clamp(120px, 45vw, 200px);
    }
}

/* (Opzionale) Se vuoi ancor più piccolo su schermi strettissimi */
@media (max-width: 360px) {
    .bayer-footer-logo {
        max-width: 52px;
    }
}
/* Mitigazioni GPU per iOS/Android */
header .navbar {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* MOBILE: fissa l’altezza e il padding-top del body */
@media (max-width: 576px) {
    :root {
        --nav-h: 56px;
    }
    /* scegli 56–64px in base al tuo header */
    body {
        padding-top: var(--nav-h) !important;
    }

    header .navbar {
        height: var(--nav-h);
    }

    /* Assicurati che i contenuti stiano dentro l’altezza fissa */
    .assess-logo {
        max-height: calc(var(--nav-h) - 16px);
    }
    /* margine interno */
    .custom-toggler {
        padding: .25rem .4rem;
        border: none;
    }

        .custom-toggler .navbar-toggler-icon {
            width: 22px;
            height: 22px;
            background-size: 22px 22px;
        }

    .bayer-logo {
        width: 56px;
        height: auto;
    }
}

@media (max-width: 576px) {
    :root {
        --nav-h: 76px;
    }

    body {
        padding-top: var(--nav-h) !important;
    }

    header .navbar {
        height: var(--nav-h);
    }


    .assess-logo {
        max-height: calc(var(--nav-h) - 18px) !important;
    }
}
