/*
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. */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6{
    font-weight: 600;
}
#articolo-dettaglio-testo .testolungo .wp-block-heading,
#articolo-dettaglio-testo .testolungo{
    font-family: "Titillium Web", Geneva, Tahoma, sans-serif;
}


.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__label--required::after {
    content: " *";
    color: #c81d25;
    font-weight: 700;
}

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

.unilav-password-field {
    position: relative;
}

.unilav-password-field__input {
    padding-right: 3.25rem;
}

.unilav-password-field__toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    color: #445a70;
    background: transparent;
    border: 0;
    border-radius: 999px;
    transform: translateY(-50%);
    cursor: pointer;
}

.unilav-password-field__toggle:hover,
.unilav-password-field__toggle:focus {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.08);
    outline: 0;
}

.unilav-password-field__toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.22);
}

.unilav-password-field__icon {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}

.unilav-password-field__icon--hide {
    display: none;
}

.unilav-password-field.is-visible .unilav-password-field__icon--show {
    display: none;
}

.unilav-password-field.is-visible .unilav-password-field__icon--hide {
    display: block;
}

.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 0 0.5rem;
    color: #5c6f82;
}

.unilav-register__hint--password {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    color: #17324d;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
    background: #eef6ff;
    border-left: 4px solid #0066cc;
    border-radius: 0.5rem;
}

.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-contact-map-section {
    padding: 0 !important;
    margin-bottom: 0 !important;
    background:
        radial-gradient(circle at top left, rgba(0, 102, 204, 0.08), transparent 28%),
        linear-gradient(180deg, #f6f9fc 0%, #ffffff 100%);
}

.unilav-contact-card,
.unilav-contact-map {
    height: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.unilav-contact-card {
    padding: 3rem 3.5rem;
}

.unilav-contact-card__header {
    margin-bottom: 1.5rem;
}

.unilav-contact-card__eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #0066cc;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.unilav-contact-card__title {
    margin-bottom: 0.75rem;
    color: #17324d;
}

.unilav-contact-card__text {
    margin-bottom: 0;
    color: #5c6f82;
    line-height: 1.7;
}

.unilav-contact-card .wpcf7 form > p,
.unilav-contact-card .wpcf7 .screen-reader-response + p {
    margin-bottom: 1rem;
}

.unilav-contact-card .wpcf7 form {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
}

.unilav-contact-card .wpcf7 form > p {
    width: 100%;
}

.unilav-contact-card .wpcf7 form > p:nth-of-type(1),
.unilav-contact-card .wpcf7 form > p:nth-of-type(2) {
    width: calc(50% - 0.5rem);
}

.unilav-contact-card .wpcf7 p:last-of-type {
    margin-bottom: 0;
}

.unilav-contact-card .wpcf7 label {
    display: block;
    margin-bottom: 0.5rem;
    color: #30373d !important;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
}

.unilav-contact-card .wpcf7 label.unilav-contact-field {
    position: relative;
    margin-bottom: 0;
}

.unilav-contact-card .wpcf7-form-control-wrap {
    display: block;
    margin-top: 0;
}

.unilav-contact-card .unilav-contact-field__label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: #5c6f82;
    font-size: 1rem;
    line-height: 1;
    font-weight: 600;
    pointer-events: none;
    transform-origin: left top;
    transition: transform 0.18s ease, color 0.18s ease, top 0.18s ease;
}

.unilav-contact-card .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.unilav-contact-card .wpcf7 select,
.unilav-contact-card .wpcf7 textarea {
    display: block;
    width: 100% !important;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 1.35rem 0 0.45rem !important;
    color: #495057 !important;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    background-color: transparent !important;
    background-clip: padding-box;
    border: 0 !important;
    border-bottom: 1px solid #002255 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.unilav-contact-card .wpcf7 textarea {
    min-height: 9rem;
    resize: vertical;
}

.unilav-contact-card .wpcf7 input::placeholder,
.unilav-contact-card .wpcf7 textarea::placeholder {
    color: #6f8498;
}

.unilav-contact-card .wpcf7 input:not([type="submit"]):focus,
.unilav-contact-card .wpcf7 select:focus,
.unilav-contact-card .wpcf7 textarea:focus {
    color: #495057 !important;
    background-color: transparent !important;
    border-color: #0066cc !important;
    outline: 0;
    box-shadow: inset 0 -1px 0 #0066cc !important;
}

.unilav-contact-card .wpcf7 label.unilav-contact-field.is-focused .unilav-contact-field__label,
.unilav-contact-card .wpcf7 label.unilav-contact-field.has-value .unilav-contact-field__label {
    top: 0.2rem;
    color: #445a70;
    transform: scale(0.82);
}

.unilav-contact-card .wpcf7 input[type="checkbox"],
.unilav-contact-card .wpcf7 input[type="radio"] {
    margin-right: 0.45rem;
}

.unilav-contact-card .wpcf7-list-item {
    margin-left: 0;
}

.unilav-contact-card .wpcf7 .wpcf7-submit {
    min-width: 180px;
    padding: 0.9rem 1.6rem;
    color: #fff;
    background: linear-gradient(135deg, #0066cc 0%, #0053a6 100%);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 102, 204, 0.2);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.unilav-contact-card .wpcf7 .wpcf7-submit:hover,
.unilav-contact-card .wpcf7 .wpcf7-submit:focus {
    background: linear-gradient(135deg, #0053a6 0%, #004494 100%);
    box-shadow: 0 1rem 1.75rem rgba(0, 83, 166, 0.24);
    transform: translateY(-1px);
    outline: 0;
}

.unilav-contact-card .wpcf7-spinner {
    margin: 0.75rem 0 0 0.75rem;
}

.unilav-contact-card .wpcf7-not-valid-tip {
    margin-top: 0.4rem;
    color: #b31217;
    font-size: 0.85rem;
    font-weight: 600;
}

.unilav-contact-card .wpcf7 form .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    font-size: 0.95rem;
}

.unilav-contact-map {
    position: relative;
    min-height: 100%;
}

.unilav-contact-map .map-container {
    height: 100%;
    min-height: 620px;
    border-radius: 0;
}

.unilav-contact-map .leaflet-container {
    font-family: "Titillium Web", Geneva, Tahoma, sans-serif;
}

.unilav-contact-map .leaflet-popup-content-wrapper {
    border-radius: 0.85rem;
    box-shadow: 0 0.75rem 2rem rgba(15, 45, 80, 0.18);
}

@media (min-width: 992px) {
    #mainheader .preheader .entesup {
        display: flex;
        align-items: center;
    }

    #mainheader .preheader .entesup > .float-right {
        float: none !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 1;
        margin-left: 1.5rem;
    }

    #mainheader .preheader .entesup > .float-right > .float-left {
        float: none !important;
    }

    #mainheader .preheader .entesup > .float-right > .accedi {
        float: none !important;
        display: flex;
        align-items: center;
        margin-left: auto;
    }
}

.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 0 0;
    //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-contact-map-section {
        padding: 0 !important;
    }

    .unilav-contact-card {
        padding: 2.5rem 1.5rem 2rem;
    }

    .unilav-contact-map,
    .unilav-contact-map .map-container {
        min-height: 360px;
        border-radius: 0;
    }

    .unilav-contact-card .wpcf7 .wpcf7-submit {
        width: 100%;
    }

    .unilav-contact-card .wpcf7 form > p:nth-of-type(1),
    .unilav-contact-card .wpcf7 form > p:nth-of-type(2) {
        width: 100%;
    }

    .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-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: 1200px) {
    .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);
}

@media (max-width: 1199px) {
    #mainheader #sub_nav {
        display: none !important;
    }

    #mainheader .menu-btn {
        display: block !important;
        float: left;
        width: 24px;
        height: 24px;
        padding: 0;
        margin: 35px 4px 16px 24px;
        border: 0;
        background: transparent;
    }

    #mainheader.ridotto .menu-btn {
        margin-top: 20px;
    }

    #mainheader .menu-btn .icon-bar {
        position: relative;
        z-index: 171;
        display: block;
        width: 24px;
        height: 4px;
        border-radius: 0;
        background-color: #fff;
    }

    #mainheader .menu-btn .icon-bar + .icon-bar {
        margin-top: 4px;
    }

    #mainheader .menu-btn .icon-bar1,
    #mainheader .menu-btn .icon-bar3 {
        width: 16px;
    }

    #mainheader .navbar-toggle.menu-active .icon-bar1,
    #mainheader .navbar-toggle.menu-active .icon-bar3 {
        width: 24px;
    }

    #mainheader .navbar-toggle.menu-active {
        position: fixed;
        top: 75px;
        right: 30px;
        left: auto;
        z-index: 999999;
        margin: 0;
    }

    #mainheader .comune .logoimg {
        margin-top: 2px;
    }
}

@media (max-width: 1280px) {
    body, html {
        font-size: 16px;
    }
}

@media (max-width: 1199px) {
    #mainheader {
        height: unset;
    }
    #mainheader .cerca{
        margin-top: 10px;
    }
    #mainheader .comune .logoimg img{
        margin: 5px 0;
    }
}

.btn-blu,
.btn-verde{
    color: #fff;
    background-color: #0066cc;
    border: 1px solid #0073E6;
    font-size: 0.778em;
    padding: 8px 24px;
    margin: 0 16px 24px 0;
}

.btn-blu:hover,
.btn-verde:hover{
    color: #fff !important;
    background-color: #004D99 !important;
    border: 1px solid #004D99 !important;
}

.bg-oro {
    background-color: #E18946 !important;
}
.unilav-contact-card .wpcf7 .wpcf7-submit{
    border-radius: 4px;
    box-shadow: none;
    background: #0066cc;
}
.unilav-contact-card .wpcf7 .wpcf7-submit:hover, .unilav-contact-card .wpcf7 .wpcf7-submit:focus{
    box-shadow: none;
    background-color: #004D99 !important;
    transform: unset;
}
.navbar .dropdown-menu .menu-item h5 a, .navbar .dropdown-menu .menu-item ul li a {
    font-size: 1rem !important;
}

section .pagination .page-item .page-link:hover, section .pagination .page-item .page-numbers:hover{
    background: #0066cc !important;
}
section .pagination .page-item .page-link[aria-current], section .pagination .page-item .page-numbers.current{
    border: 1.5px solid #0066cc;
}