/*
Theme Name: Unilav
Theme URI: http://bit.ly/ItaliaWP
Description: Tema child Unilav per personalizzazioni di ItaliaWP2.
Author: Boris Amico
Author URI: http://bit.ly/ItaliaWP
Template: italiawp2
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
Text Domain: unilav
*/

/*
 * Aggiungi qui le personalizzazioni CSS del tema Unilav.
 */

/* Neutralizza gli stili del tema padre sulle immagini inserite dall'editor. */
.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-caption,
#articolo-dettaglio-testo figure,
#articolo-dettaglio-testo .wp-block-image,
#articolo-dettaglio-testo .wp-caption {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.entry-content figure img,
.entry-content .wp-block-image img,
.entry-content .wp-caption img,
#articolo-dettaglio-testo figure img,
#articolo-dettaglio-testo .wp-block-image img,
#articolo-dettaglio-testo .wp-caption img {
    border: 0;
    box-shadow: none;
}

.image-content figure,
.image-content figure.u-background-grey-60,
#articolo-dettaglio-testo .image-content figure,
#articolo-dettaglio-testo .image-content figure.u-background-grey-60 {
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.image-content figure figcaption > p:first-of-type,
#articolo-dettaglio-testo .image-content figure figcaption > p:first-of-type {
    display: none !important;
}

.unilav-register {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1rem;
}

.unilav-register__intro {
    margin-bottom: 2rem;
}

.unilav-register__eyebrow {
    margin-bottom: 0.5rem;
    color: #0066cc;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.unilav-register__notice {
    margin-bottom: 1.5rem;
}

.unilav-register__notice p:last-child {
    margin-bottom: 0;
}

.unilav-register__form .form-group {
    margin-bottom: 1rem;
}

.unilav-register__form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.unilav-register__form .form-control {
    min-height: 3rem;
    border-radius: 0.5rem;
}

.unilav-register__form input[name="codice_fiscale"] {
    text-transform: uppercase;
}

.unilav-register__form .form-group--date {
    position: relative;
    padding-top: 0rem;
}

.unilav-register__form .form-group--date label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    margin-bottom: 0;
    padding: 0 0.25rem;
    background: #fff;
    color: #5c6f82;
    pointer-events: none;
    transition: transform 0.18s ease, top 0.18s ease, font-size 0.18s ease, color 0.18s ease;
}

.unilav-register__form .form-group--date.is-focused label,
.unilav-register__form .form-group--date.has-value label {
    top: 1rem;
    transform: translateY(-100%);
    font-size: 0.875rem;
    color: #0066cc;
}

.unilav-register__form .form-group--date .form-control {
    padding-top: 1rem;
}

.unilav-register__hint {
    margin: 0.5rem 0 0;
    color: #5c6f82;
}

.unilav-register__checkbox {
    margin-top: 1rem;
}

.unilav-register__checkbox label {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-weight: 500;
}

.unilav-register__actions {
    margin-top: 1.75rem;
}

.unilav-register__actions .btn {
    min-width: 180px;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
}

.unilav-register__footer {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.unilav-post-card {
    position: relative;
    overflow: hidden;
}

.unilav-post-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: #0059b3;
}

.unilav-post-ribbon::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
}

.unilav-post-ribbon--archive {
    position: absolute;
    top: 1rem;
    right: -0.75rem;
    z-index: 3;
    padding: 0.55rem 1rem;
    border-radius: 999px 0 0 999px;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.18);
}

.unilav-post-ribbon--archive::after {
    content: "";
    position: absolute;
    top: 0;
    right: -0.7rem;
    width: 1.1rem;
    height: 100%;
    background: #004494;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.unilav-post-ribbon--single {
    margin-bottom: 1rem;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
}

.unilav-location-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 3rem;
    background:
        radial-gradient(circle at top right, rgba(0, 102, 204, 0.16), transparent 34%),
        linear-gradient(135deg, #f5f8fc 0%, #ffffff 56%, #eef4fb 100%);
}

.unilav-location-hero__content {
    max-width: 44rem;
}

.unilav-location-hero__eyebrow {
    margin-bottom: 0.75rem;
    color: #0066cc;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.unilav-location-hero__title {
    margin-bottom: 1rem;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 0.96;
}

.unilav-location-hero__excerpt {
    max-width: 38rem;
    margin-bottom: 0;
    color: #33485c;
    font-size: 1.125rem;
    line-height: 1.7;
}

.unilav-location-hero__badge {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 87, 179, 0.12);
    border-radius: 1.5rem;
    box-shadow: 0 1rem 2rem rgba(0, 48, 99, 0.08);
    backdrop-filter: blur(10px);
}

.unilav-location-hero__badge span {
    display: block;
    margin-bottom: 0.45rem;
    color: #5c6f82;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.unilav-location-hero__badge strong {
    display: block;
    color: #17324d;
    font-size: 1.05rem;
    line-height: 1.5;
}

.unilav-location-layout {
    padding: 0 0 4.5rem;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 14rem);
}

.unilav-location-card {
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 1.75rem;
    box-shadow: 0 1rem 2.25rem rgba(15, 45, 80, 0.08);
}

.unilav-location-card--media {
    position: sticky;
    top: 2rem;
}

.unilav-location-card__meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dfe8f2;
}

.unilav-location-card__meta span {
    display: block;
    margin-bottom: 0.3rem;
    color: #5c6f82;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.unilav-location-card__meta strong {
    color: #17324d;
    font-size: 1rem;
}

.unilav-location-card__intro {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e4ebf3;
}

.unilav-location-card__intro h2 {
    margin-bottom: 0.65rem;
}

.unilav-location-card__intro p {
    margin-bottom: 0;
    color: #5c6f82;
}

.unilav-location-map {
    min-height: 420px;
    border-radius: 1.25rem;
    overflow: hidden;
}

.unilav-location-photo {
    margin: 0;
}

.unilav-location-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 1.25rem;
}

.unilav-location-photo figcaption {
    margin-top: 0.85rem;
    color: #5c6f82;
    font-size: 0.95rem;
}

.unilav-location-placeholder {
    display: flex;
    min-height: 420px;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border: 1px dashed #bfd1e5;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #f6f9fd 0%, #eef5fc 100%);
}

.unilav-location-placeholder h2 {
    margin-bottom: 0.75rem;
}

.unilav-location-placeholder p {
    max-width: 26rem;
    margin-bottom: 0;
    color: #5c6f82;
}

.unilav-location-content > :last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .unilav-register {
        border-radius: 0.75rem;
    }

    .unilav-register__actions .btn {
        width: 100%;
    }

    .unilav-post-ribbon--archive {
        top: 0.75rem;
        right: -0.5rem;
        padding: 0.5rem 0.85rem;
    }

    .unilav-location-hero {
        padding: 3.5rem 0 2rem;
    }

    .unilav-location-hero__badge,
    .unilav-location-card {
        border-radius: 1.25rem;
    }

    .unilav-location-card--media {
        position: static;
    }

    .unilav-location-map,
    .unilav-location-photo img,
    .unilav-location-placeholder {
        min-height: 320px;
        aspect-ratio: auto;
    }
}

@media (min-width: 1200px) {.container {max-width: 1324px !important;padding:0;}}
@media (min-width: 992px) {
    .navbar .navbar-collapsable .navbar-nav li a.nav-link {
        padding: 13px 13px;
    }

    #mainheader.ridotto .navbar {
        margin-left: 32px;
    }

    #mainheader.ridotto .nav.navbar-nav > li > a,
    #mainheader.ridotto .navbar .navbar-collapsable .navbar-nav li a.nav-link {
        padding: 15px 10px;
        font-size: 0.92rem;
        line-height: 1.1;
    }

    #mainheader.ridotto .navbar .navbar-collapsable .navbar-nav {
        display: flex;
        flex-wrap: nowrap;
    }

    #mainheader.ridotto .navbar .navbar-collapsable .navbar-nav > li {
        flex: 0 1 auto;
        min-width: 0;
    }

    #mainheader.ridotto .navbar .navbar-collapsable .navbar-nav > li > a {
        white-space: nowrap;
    }
}
.nav.navbar-nav > li > a{
    font-weight: unset !important;
}
#mainheader .comune .logoimg {
    margin-top: 20px;
    width: 82px;
}
#mainheader .comune .logoimg img {
    max-height: 82px;
    max-width: 82px;
}
#mainheader .comune .logotxt{
    width: calc(100% - 102px);
}
