/**
 * Theme Name: Flip Jornal Impresso (NSC Total)
 * Author: Berwanger Digital
 * Author URI: https://berwanger.digital
 * Description: Template para a página de edições do Jornal Impresso da NSC Total.
 * Version: 1.0.1
 * Text Domain: nsc-total
 */

 *, *::before, *::after {    
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

.site-header {
    z-index: 10000;
    background-color: var(--wp--preset--color--white);
    width: 100%;
    transition: .45s;
    display: block;
    margin-bottom: 1rem;
}

.top-header {
    z-index: 1000;
    background-color: var(--wp--preset--color--white);
    border-bottom: 1px solid var(--wp--preset--color--light-grey);
    padding-bottom: 20px;
    padding-top: 20px;
    box-shadow: 0 17px 20px -20px rgba(0, 0, 0, .1);
}

.site-header, .top-header, .site-branding, .top-header__top-info--container, .main-navigation, .main-navigation__list, .main-navigation__list--item {
    position: relative;
}

.top-header__container {
    grid-column-gap: 30px;
    grid-row-gap: 30px;
    justify-content: center;
    align-items: stretch;
    display: flex;
    position: relative;
}

.top-header__column {
    align-self: flex-start;
    width: 100%;
    position: relative;
}

.top-header__top-info--container {
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0;
    padding-top: 0;
    display: flex;
}

.menu-sidebar__menu-button {
    text-align: left;
    flex: 0 auto;
    padding: 0;
    line-height: 24px;
    transition: .2s;
    overflow: hidden;
    opacity: .9;
    cursor: pointer;
}

.top-header__sidebar {
    flex: none;
    justify-content: flex-start;
    align-items: center;
    width: 270px;
    display: flex;
}

.menu-icon-2 {
    width: 34px;
    height: 100%;
    display: block;
}

.site-branding {
    flex: none;
    text-align: center;
}

.site-branding__logo {
    grid-column-gap: 16px;
    grid-row-gap: 16px;
    flex: 1;
    width: auto;
    height: 40px;
    transition: .15s;
    display: block;
    transform: none;
    text-align: center;
    align-self: center;
}

.img-logo {
    width: 100%;
    height: 100%;
    display: inline-block;
    border: none;
    vertical-align: middle;
}

.top-header__search {
    flex: none;
    justify-content: flex-end;
    align-items: center;
    display: flex;
    width: 270px;
}

.top-header__search-button {
    float: left;
    flex: none;
    order: 1;
    justify-content: flex-end;
    align-items: center;
    display: flex;
}

.main-navigation {
    background: var(--wp--preset--color--white);
    padding: 10px 50px 10px 0;
    border-bottom: 1px solid var(--wp--preset--color--grey);
    overflow-x: auto;
    max-width: 100%;
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    height: auto;
    justify-content: center;
}

/* .main-navigation::after {
    content: "";
    z-index: 9;
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 20%, rgb(255, 255, 255) 100%);
} */

.main-navigation__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 15px;
}
.main-navigation__list > li {
    width: auto;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}
.main-navigation__list--item a {
    color: var(--wp--preset--color--dark-grey);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 5px 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-wrap-mode: nowrap;
}
.main-navigation__list--item a:hover {
    color: var(--wp--preset--color--primary);
}
.main-navigation__list--item.active a {
    color: var(--wp--preset--color--primary);
}

.top-header__container, .site-content {
    width: var(--wp--style--global--wide-size);
    margin-left: auto;
    margin-right: auto;
}

.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form textarea {
    width: 100%;
    font-size: 1rem;
    padding: 10px 14px;
    background: var(--pl-color-input-bg);
    border: 2px solid var(--pl-color-input-border);
    border-radius: 12px;
    color: var(--pl-color-text);
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

.wpcf7-form input[type="submit"] {
    width: 100%;
    margin-top: 5px;
    padding: 12px 0;
    border-radius: 12px;
    border: none;
    font-size: 1.08rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    display: block;
    text-align: center;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

@media screen and (max-width: 991px) {
    .top-header {
        margin-bottom: 0;
        padding: 20px 25px;
    }
    .top-header__container, .site-content {
        width: 100%;
        display: block;
    }
    .top-header__column {
        padding-left: 0;
        padding-right: 0;
    }
    .top-header__top-info--container {
        justify-content: space-between;
        align-items: center;
        padding-bottom: 0;
        padding-top: 0;
        display: flex;
    }
    .top-header__sidebar,
    .top-header__search {
        width: 10%;
    }
    .site-branding {
        flex: 1;
    }
    .site-branding__logo {
        width: auto;
        margin-right: auto;
    }
    .img-logo {
        max-height: 40px;
    }
    .site-content {
        padding: 0 20px;
    }
}

@media screen and (max-width: 767px) {
    .top-header__column {
        padding-left: 0;
        padding-right: 0;
    }

    .top-header__top-info--container {
        grid-column-gap: 20px;
        grid-row-gap: 20px;
    }

    .top-header__sidebar {
        width: auto;
    }

    .img-logo {
        max-width: 80px;
        max-height: 33px;
    }
}

@media screen and (max-width: 479px) {
    .top-header {
        padding: 10px 10px;
    }

    .top-header__top-info--container {
        grid-column-gap: 20px;
        grid-row-gap: 0px;
    }

    .icone-menu-2 {
        width: 24px;
    }

    .top-header__sidebar {
        flex: 0 auto;
    }

    .site-branding__logo {
        height: auto;
    }

    .img-logo {
        max-width: 100px;
        max-height: 40px;
    }

    .top-header__search {
        width: auto;
    }
}

/*footer*/
footer {
    border-top: 1px solid #e1e4e8;
    margin-top: 3rem;
    padding: 2rem 0;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#menu-footer, #social-icons {
    list-style-type: none;
}

#menu-footer {
    margin-block-start: 0 !important;
}

#menu-footer li>a {
    text-decoration: none;
    color: #242424;
    display: block;
    width: 100%;
    line-height: 1.5rem;
    margin-bottom: 5px;
}

#social-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#social-icons a {
    min-width: 50px;
    min-height: 31px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
}

@media screen and (max-width: 479px) {
    .container {
        max-width: 480px;
    }
    #social-icons {
        padding-top: 2rem;
    }
    #menu-footer {
        text-align: center;
        padding: 0;
        padding-top: 3rem;
    }
}
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

/* override plugin jornal-impresso */
.jn-veiculos-grid {
    max-width: 1000px !important;
}

.jn-edition-item-redirect {
    border-radius: 7px;
    max-width: 200px !important;
}

.jn-edition-thumbnail {
    height: auto !important;
}

.jn-edition-btn {
    background-color: var(--wp--preset--color--primary);
}

/* Padrão: Desktop */
.hide-mobile {
    display: block;
}
.hide-desktop {
    display: none !important;
}

/* Mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    .hide-desktop {
        display: block !important;
    }
}

/* Custom slider */
.jn-latest-editions-wrapper {
    min-height: 380px !important;
}

.jn-today-badge span {
    background: var(--wp--preset--color--primary) !important;
}

.swiper-slide {
    width: 154px !important;
    height: 265px !important;
}

.swiper-slide img {
    max-height: 430px;
}

.swiper-slide.swiper-slide-active {
    height: 370px !important; /* Slide central maior */
}

.jn-today-edition .jn-edition-btn {
    background: var(--wp--preset--color--primary) !important;
}

@media (min-width: 995px) {
    .swiper {
        min-height: 400px !important;
    }
}