/*
    Theme Name: Ultra Child
    Template: ultra
    Version: 1.8
*/

.main-navigation ul .menu-item-has-children a:after,
.main-navigation ul .page_item_has_children a:after {
    top: 0;
}

/**
 * Site logo
 */

@media (max-width: 1024px) {
    .site-header .site-branding img {
        max-height: 65px;
    }
}

/**
 * Top bar & site header
 */

html {
    --top-bar-height: 38px;
}

#top-bar {
    position: fixed;
    top: 0; right: 0; left: 0;
    height: var(--top-bar-height);
    margin-top: var(--wp-admin--admin-bar--height, 0);
}

#top-bar .top-bar-text span:last-child {
    margin-right: 0;
}

#top-bar .top-bar-text span.fax a:before {
    content: "\f1ac";
}

.site-header {
    margin-top: var(--top-bar-height);
}

@media screen and (max-width: 600px) {
    #top-bar {
        margin-top: 0;
    }

    body.admin-bar .site-header:not(.is-stuck) {
        margin-top: 0;
    }
}

/**
 * Legacy columns
 */

.csColumn img {
    max-width: 100%;
    width: auto;
    height: auto;
}

.csRow {
    clear: both;
}

.csRow:after {
    display: block;
    content: '';
    height: 0;
    clear: both;
    visibility: hidden;
    font-size: 0;
    line-height: 0;
}

/* Fix plugin "Advanced WP Columns" centering text in column on mobile. */
@media screen and (max-width: 1024px) {
    .csRow .csColumn {
        text-align: justify !important;
    }
}

/**
 * Columns
 */

.columns {
    --gutter-x: 30px;
    --gutter-y: 30px;
    display: flex;
    flex-flow: row wrap;
    margin: 0 calc(-.5 *var(--gutter-x));
    row-gap: var(--gutter-y);
}

.columns.center-horizontally {
    justify-content: center;
}

.columns .column {
    padding: 0 calc(.5 * var(--gutter-x));
    flex: 0 0 auto;
    width: 100%;
}

.columns-mobile-1 .column {
    width: 100%;
}

.columns-mobile-2 .column {
    width: 50%;
}

@media (min-width: 992px) {
    .columns .column {
        width: auto;
    }

    .columns-2 .column {
        width: 50%;
    }

    .columns-4 .column {
        width: 25%;
    }
}

/**
 * Homepage
 */

body.home.page .site-content {
    padding-top: 50px;
}

body.home.page .site-content #primary :is(h1, h2) {
    line-height: 1.25;
}

body.home.page .site-content #primary h1 {
    margin-top: 0;
}
 
@media (min-width: 769px) {
    body.home.page .site-content :is(#primary, #secondary) {
        padding-top: 3.57143em;
    }
    
    body.home.page .site-content :is(#primary) h1 {
        position: relative;
        top: -4px;
        margin-bottom: 0.89286em;
    }
}

/**
 * Cards in catalog
 */

 .columns .column > figure {
    width: 100% !important;
    height: 100%;
    margin: 0;
}

.columns .column > figure > figcaption {
    padding: 0;
}

.columns .column > figure > figcaption > a {
    line-height: 1.5;
    padding-top: 15px;
    display: block;
}

/**
 * Privacy policy
 */

.privacy-policy .entry-content :is(ul, ol) {
    margin-top: 0.5;
    margin-bottom: 0.5;
}

.privacy-policy .entry-content li {
    margin: 0.5em 0;
    line-height: 1.5;
}

/**
 * Contact
 */

.contact h2 {
    font-size: 18px;
    line-height: 1.25;
    margin: 0 0 20px 0;
}

.contact .columns-info {
    row-gap: 0;
    margin-top: 30px;
}

.contact .columns-info .column-info {
    margin-bottom: 35px;
    width: auto;
}

.contact .columns-map .column {
    flex-grow: 1;
}

@media (min-width: 992px) {
    .contact>.columns {
        flex-wrap: nowrap;
    }

    .contact>.columns>.column-form {
        width: 470px;
        flex: 0 0 auto;
    }

    .contact .columns-info {
        margin-top: 0;
    }
}

/**
 * Contact Form
 */

.wpcf7 label {
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 10px 0;
}

.wpcf7 p {
    font-weight: 400;
    line-height: 1.25;
    margin: 10px 0;
}

.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    margin: 0 0 20px 0;
}

.wpcf7 .wpcf7-form-control-wrap :is(input, select, textarea) {
    display: block;
    width: 100%;
    background: #f6f6f7;
    border: 1px solid #eaeaeb;
    border-radius: 3px;
    color: #000;
    line-height: normal;
    max-width: 100%;
    padding: 0.6429em 0.7143em;
    transition: 0.3s;
}

.wpcf7 .wpcf7-form-control-wrap select {
    -webkit-appearance: none;
}

.wpcf7 .wpcf7-form-control-wrap textarea {
    resize: vertical;
    transition: height 0s;
}

.wpcf7 .wpcf7-form-control-wrap input[type="checkbox"] {
    position: relative;
    top: 2px;
}

.wpcf7 .wpcf7-form-control-wrap[data-name="your-recipient"] {
    position: relative;
}

.wpcf7 .wpcf7-form-control-wrap[data-name="your-recipient"]:after {
    content: '';
    position: absolute;
    top: 0;
    right: 8px;
    bottom: 0;
    width: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' stroke='currentcolor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M30 12 16 24 2 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.wpcf7 .wpcf7-form-control-wrap[data-name="your-recipient"] select {
    padding-right: 32px;
}

.wpcf7 label[for="acceptance-privacy-policy"] {
    display: flex;
    font-weight: 400;
}

.wpcf7 .wpcf7-form-control-wrap[data-name="acceptance-privacy-policy"] {
    display: inline-block;
    margin: 0 10px 0 0;
}

.wpcf7 .wpcf7-form-control-wrap[data-name="acceptance-privacy-policy"] .wpcf7-list-item {
    margin: 0;
}

.wpcf7 .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    display: block;
    margin: 0;
}

.wpcf7 .submit {
    margin: 15px 0 0 0;
}

.wpcf7 form .wpcf7-response-output {
    margin: 15px 0 0 0;
}

/**
 * Page title
 */

@media (max-width: 768.98px) {
    .resp.single .entry-header h1.entry-title,
    .resp.page .site-content>.entry-header h1.entry-title,
    .resp.blog .page-header h1.page-title,
    .resp.search-results .page-header h1.page-title,
    .resp.search-no-results .page-header h1.page-title,
    .resp.error404 .page-header h1.page-title {
        font-size: 1.4rem;
        line-height: 1.25;
        hyphens: none;
    }
}

/**
 * Page content
 */

body:is(.archive, .page, .single) .entry-content p {
    text-align: justify;
}

/**
 * Search
 */

@media (max-width: 768.98px) {
    body.search-results .page-header .page-title {
        line-height: 1.5;
    }
    body.search-results .page-header .page-title span {
        display: block;
        font-size: 1.5rem;
    }
}

/**
 * Helpers
 */

 .text-center {
    text-align: center !important;
}

.m-0 {
    margin: 0 !important;
}

.my-30 {
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}
