/* Avanzar: two-tier header. Layout is managed by Helix3 Layout Builder. */
#sp-top-bar.avanzar-contact-bar,
#sp-top-bar {
    background: #f9f9f9;
    border-bottom: 1px solid #ededed;
}

#sp-top-bar .container>.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#sp-top-bar #sp-top2 {
    text-align: left;
}

#sp-top-bar #sp-top1 {
    text-align: right;
}

#sp-top-bar .sp-contact-info,
#sp-top-bar .sp-social {
    margin: 0;
    padding: 0;
}

#sp-top-bar .sp-contact-info li {
    display: inline-block;
    margin: 0 18px 0 0;
}

#sp-top-bar .sp-contact-info a,
#sp-top-bar .sp-contact-info i {
    color: #171717;
    transition: color .2s ease;
}

#sp-top-bar .sp-contact-info a:hover,
#sp-top-bar .sp-contact-info a:focus,
#sp-top-bar .sp-contact-info li:hover i,
#sp-top-bar .sp-social a:hover,
#sp-top-bar .sp-social a:focus {
    color: #e32929;
    text-decoration: underline;
}

#sp-top-bar .sp-social a {
    transition: color .2s ease;
}

#sp-header.avanzar-main-header,
#sp-header {
    background: #fff;
}

#sp-header .container>.row {
    display: flex;
    align-items: center;
}

#sp-header #sp-logo .logo img,
#sp-header #sp-logo img {
    width: 75%;
    max-width: 100%;
    height: auto;
}

#sp-header #sp-position1 .fsi {
    width: 100%;
    margin: 0;
}

#sp-header #sp-position1 .fsi td {
    text-align: center;
    vertical-align: middle;
}

#sp-header #sp-position1 .fsi img {
    width: 60px;
    max-width: 100%;
    height: auto;
}

#sp-header #sp-menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {

    #sp-top-bar .container>.row,
    #sp-header .container>.row {
        flex-wrap: wrap;
    }

    #sp-top-bar .sp-contact-info li {
        margin-right: 8px;
    }

    #sp-header #sp-menu {
        justify-content: center;
    }

    #sp-header #sp-logo img {
        width: 75%;
    }
}

/* Explicitly separate top utility bar and main navigation into two full-width rows. */
#sp-top-bar.avanzar-contact-bar {
    display: block;
    position: relative;
    width: 100%;
    min-height: 34px;
    padding: 5px 0;
    background-color: #f9f9f9;
    clear: both;
}

#sp-top-bar #sp-top2 .sp-contact-info {
    float: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px 16px;
}

#sp-top-bar #sp-top2 .sp-contact-info li {
    margin: 0;
}

#sp-top-bar #sp-top1 ul.social-icons {
    float: none;
    margin: 0;
}

#sp-top-bar #sp-top1 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#sp-top-bar #sp-top1 ul.social-icons>li {
    margin: 0 5px;
}

#sp-header.avanzar-main-header {
    display: block;
    position: relative;
    clear: both;
    width: 100%;
    height: auto;
    min-height: 90px;
    background-color: #fff;
}

#sp-header.avanzar-main-header>.container>.row {
    min-height: 90px;
}

#sp-header #sp-position1 .fsi,
#sp-header #sp-position1 .fsi tbody,
#sp-header #sp-position1 .fsi tr {
    border: 0;
    background: transparent;
}

#sp-header #sp-position1 .fsi td {
    border: 0;
    padding: 0 3px;
}

.sp-megamenu-parent>li>a,
.sp-megamenu-parent>li>span {
    padding: 0 15px;
}

#sp-main-text-01,
#sp-main-text-02,
#sp-main-text-03,
#sp-main-text-04,
#sp-main-text-05,
#sp-main-text-06 {
    padding: 60px 0;
}

#sp-main-text-01 .mod-custom p:last-child,
#sp-main-text-02 .mod-custom p:last-child,
#sp-main-text-03 .mod-custom p:last-child,
#sp-main-text-04 .mod-custom p:last-child,
#sp-main-text-05 .mod-custom p:last-child,
#sp-main-text-06 .mod-custom p:last-child {
    margin-bottom: 0;
}

#sp-main-text-01 .mod-custom h1,
#sp-main-text-02 .mod-custom h2,
#sp-main-text-03 .mod-custom h2,
#sp-main-text-04 .mod-custom h2,
#sp-main-text-05 .mod-custom h2,
#sp-main-text-06 .mod-custom h2 {
    font-weight: 600;
}

#sp-main-text-01 .mod-custom img,
#sp-main-text-02 .mod-custom img,
#sp-main-text-03 .mod-custom img,
#sp-main-text-04 .mod-custom img,
#sp-main-text-05 .mod-custom img,
#sp-main-text-06 .mod-custom img {
    border-radius: 20px;
}

#sp-main-body img {
    border-radius: 20px;
}

#sp-main-body {
    padding: 0px 0 50px 0;
}

.itemid-101 #sp-main-body {
    padding: 60px 0 50px 0;
}

#sp-component article.item {
    margin-bottom: 10px;
}

.main-material+.sp-contact-info {
    float: left;
}

.entry-header {
    margin-bottom: 8px;
}

.entry-image,
.entry-gallery,
.entry-video,
.entry-audio,
.entry-link {
    margin-bottom: 16px;
}

.entry-image.pull-left {
    margin-right: 0 !important;
}

.entry-header h2 {
    margin: 0px 0 0;
}

.field-value.is-girl {
    color: #e91e83;
}

.field-value.is-boy {
    color: #2196f3;
}

#sp-breadcrumbs {
    margin: 32px 0 32px 0 !important;
}

.breadcrumb {
    margin-bottom: 0;
}

.pagination-wrapper {
    margin-top: 1rem;
}

.sp-megamenu-parent>li.active>a,
.sp-megamenu-parent>li:hover>a {
    color: red;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.article-list .entry-header h2 a {
    color: red;
}

.article-list .entry-header h2 a:hover {
    text-decoration: underline;
}

.tf-gallery-wrapper .gallery-items .item a {
    border-radius: 20px;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: red;
    border-color: red;
}

.pagination>.active>a:hover,
.pagination>.active>a:focus,
.pagination>.active>span:hover,
.pagination>.active>span:focus {
    border-color: red;
    background-color: red;
}

.footer-sitemap {
    display: block;
}

@media (max-width: 1199px) {

    .sp-megamenu-parent>li>a,
    .sp-megamenu-parent>li>span {
        padding: 0px 9px;
    }
}

@media (max-width: 767px) {
    #sp-top-bar #sp-top2 .sp-contact-info {
        gap: 4px 8px;
        font-size: 11px;
    }

    #sp-header.avanzar-main-header>.container>.row {
        min-height: 75px;
    }

    .main-material+.sp-contact-info {
        display: flex;
        float: left;
    }
}

/* Header: compact certification logos column (150px), flexible navigation. */
@media (min-width: 992px) {
    #sp-header.avanzar-main-header>.container>.row>#sp-position1 {
        flex: 0 0 150px;
        width: 150px;
        max-width: 150px;
    }

    #sp-header.avanzar-main-header>.container>.row>#sp-menu {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        min-width: 0;
    }
}

/* Avanzar mobile header: logo | two-line contacts | hamburger, fixed. */
@media (max-width: 991px) {
    body.site {
        padding-top: 60px;
    }

    #sp-main-text-01 .mod-custom h1,
    #sp-main-text-02 .mod-custom h2,
    #sp-main-text-03 .mod-custom h2,
    #sp-main-text-04 .mod-custom h2,
    #sp-main-text-05 .mod-custom h2,
    #sp-main-text-06 .mod-custom h2 {
        margin-top: 1rem;
    }

    #sp-main-text-02 .row {
        display: flex;
    }

    #sp-main-text-02 .row #sp-2-text {
        order: 2;
    }

    #sp-main-text-02 .row #sp-2-img {
        order: 1;
    }

    #sp-main-text-04 .row {
        display: flex;
    }

    #sp-main-text-04 .row #sp-4-text {
        order: 2;
    }

    #sp-main-text-04 .row #sp-4-img {
        order: 1;
    }

    #sp-header.avanzar-main-header {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        z-index: 1000;
        height: 60px;
        min-height: 60px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    }

    #sp-header.avanzar-main-header>.container>.row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        min-height: 60px;
        height: 60px;
    }

    #sp-header.avanzar-main-header #sp-logo {
        flex: 0 0 29%;
        max-width: 29%;
        width: 29%;
    }

    #sp-header.avanzar-main-header #sp-logo .logo {
        height: 60px;
    }

    #sp-header.avanzar-main-header #sp-logo img {
        width: auto;
        max-width: 100%;
        max-height: 52px;
        object-fit: contain;
    }

    #sp-header.avanzar-main-header #sp-menu {
        flex: 0 0 17%;
        max-width: 17%;
        width: 17%;
        margin-left: auto;
        justify-content: flex-end;
        z-index: 2;
    }

    #sp-header.avanzar-main-header #sp-position1 {
        display: none !important;
    }

    #sp-header #offcanvas-toggler {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        height: 60px;
        margin: 0;
        line-height: 1;
        font-size: 25px;
    }

    #sp-top-bar.avanzar-contact-bar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        height: 0;
        min-height: 0;
        padding: 0;
        border: 0;
        background: transparent;
        pointer-events: none;
    }

    #sp-top-bar.avanzar-contact-bar>.container {
        position: relative;
    }

    #sp-top-bar.avanzar-contact-bar>.container>.row {
        display: block;
    }

    #sp-top-bar.avanzar-contact-bar #sp-top1 {
        display: none !important;
    }

    #sp-top-bar.avanzar-contact-bar #sp-top2 {
        position: absolute;
        top: 10px;
        left: 29%;
        width: 54%;
        max-width: 54%;
        padding: 0 3px;
        text-align: center;
        pointer-events: auto;
    }

    #sp-top-bar.avanzar-contact-bar #sp-top2 .sp-contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 3px;
        padding: 0;
        margin: 0;
        font-size: 12px;
        line-height: 1.35;
    }

    #sp-top-bar.avanzar-contact-bar #sp-top2 .sp-contact-info li {
        display: block;
        margin: 0;
        white-space: nowrap;
        font-size: 14px;
    }

    #sp-right .class2 {
        display: none;
    }
}

@media (max-width: 575px) {
    .pagination-wrapper .page-link {
        padding: 2px 7px;
    }
}




@media (max-width: 459px) {
    #sp-top-bar.avanzar-contact-bar #sp-top2 {
        display: none !important;
    }

    #sp-header.avanzar-main-header #sp-logo {
        flex-basis: 70%;
        width: 70%;
        max-width: 70%;
    }

    #sp-header.avanzar-main-header #sp-menu {
        flex-basis: 30%;
        width: 30%;
        max-width: 30%;
    }

    .offcanvas-menu .avanzar-offcanvas-contacts {
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid rgba(0, 0, 0, .15);
    }

    .offcanvas-menu .avanzar-offcanvas-contacts .sp-contact-info {
        float: none;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .offcanvas-menu .avanzar-offcanvas-contacts .sp-contact-info li {
        display: block;
        margin: 0;
        font-size: 16px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .offcanvas-menu .avanzar-offcanvas-contacts a {
        color: inherit;
    }

    .offcanvas-menu .avanzar-offcanvas-contacts a:hover {
        color: #e32929;
    }

    .offcanvas-menu .avanzar-offcanvas-contacts i {
        margin-right: 7px;
    }

    .offcanvas-inner .avanzar-offcanvas-contacts {
        padding: 0 20px;
        margin-top: 0;
    }
}

@media (max-width: 390px) {
    #sp-top-bar.avanzar-contact-bar #sp-top2 .sp-contact-info {
        font-size: 10px;
    }

    #sp-top-bar.avanzar-contact-bar #sp-top2 .sp-contact-info i {
        margin-right: 1px;
    }
}