/*
Theme Name: Loja MERC
Theme URI: https://lojamerc.com.br/
Author: MERC / Toborino
Author URI: https://lojamerc.com.br/
Description: 
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.4
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lojamerc
Tags: Block Editor Patterns, Site Editor

/*  Smoot Scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6em;
}

/*  Reduced motion prefs  */
@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-feature-settings: 'kern' 1;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-kerning: normal;
  font-kerning: normal;
  -ms-font-feature-settings: 'lnum' 1, 'frac' 0, 'liga' 1, 'clig' 1;
  -o-font-feature-settings: 'lnum' 1, 'frac' 0, 'liga' 1, 'clig' 1;
  -webkit-font-feature-settings: 'lnum' 1, 'frac' 0, 'liga' 1, 'clig' 1;
  font-feature-settings: 'lnum' 1, 'frac' 0, 'liga' 1, 'clig' 1;
  position: relative;
  word-wrap: break-word;
}

.editor-visual-editor__post-title-wrapper h1 {
  font-size: var(--wp--preset--font-size--large) !important;
}

.visibility-hidden {
  visibility: hidden;
}

.full_width {
  width: 100%;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border-width: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.desktop {
  display: block;
}

.desktop_flex {
  display: flex;
}

.mobile,
.mobile_flex {
  display: none;
}

a {
  text-underline-offset: 4px;
  color: var(--wp--preset--color--custom-red);
}

a[rel="noreferrer noopener nofollow"]:after {
  content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
  margin: 0 3px 0 8px;
}

.page-top a {
  text-decoration: none;
}

footer a {
  text-decoration: none;
}

/*  Navigation Block Breakpoint. Credit: https://wpdocs.io/ */
body .wp-block-navigation__responsive-container-open:not(.always-shown) {
  display: block !important;
}

body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
  display: none !important;
}

/* Change the width to the breakpoit of the Nav */
@media (min-width: 799px) {
  body .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none !important;
  }

  body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: block !important;
  }
}

/* end nav break point */

.estilos section {
  margin-top: 4rem;
}

.wp-site-blocks {
  padding-top: 100px;
  scroll-padding-top: 12em;
}

.site-header {
  background-color: var(--wp--preset--color--custom-white);
  position: fixed;
  top: 0;
  width: 100% !important;
  z-index: 999;
  transition: ease-in-out .5s;
}

/* .site-header.fade-in {
  color: #fff;
  background: #000;
} */

/* Nicley wrapped headlines */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* I've no idea why when you add a backgroud colour to a column, WP by default adds padding to it... so weird - this get's rid of that */
:where(.wp-block-columns.has-background) {
  padding: initial;
}

/* Pull Quote */
.wp-block-pullquote blockquote {
  display: grid;
  gap: 20px;
}

.wp-block-pullquote cite {
  font-size: 80%;
  font-weight: 600;
}

/* Search Block */
.wp-block-search__input {
  border: 1px solid;
}

.wp-block-search__button {
  box-shadow: none;
  border: 1px solid var(--wp--preset--color--custom-black);
  border-radius: 0;
  color: white;
  padding: 0.4rem 1rem 0.5rem 1rem;
  font-weight: 500;
}

/* Comments */
.comment-form-cookies-consent {
  font-size: 14px;
  line-height: 2;
}

/* Keep our titles link the custom black color*/
.wp-block-post-title :where(a) {
  color: var(--wp--preset--color--custom-black);
}

/* Button hover state  - core button block still does not have this and I can't figure out how to do it in theme.json! */
.wp-block-button__link,
a {
  transition: 0.3s;
}

.wp-block-button.is-style-fill .wp-block-button__link:hover,
#commentform .form-submit.wp-block-button input:hover {
  background: var(--wp--preset--color--custom-white);
  color: var(--wp--preset--color--custom-black);
}

.wp-block-button .wp-block-button__link:hover {
  background: var(--wp--preset--color--custom-custom-white);
  color: var(--wp--preset--color--custom-black);
  border-color: var(--wp--preset--color--custom-black);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--custom-black);
  color: var(--wp--preset--color--custom-white);
  border-color: var(--wp--preset--color--custom-black);
}

a:hover:not(.page-top a, .wp-block-site-title a, .wp-block-button__link.wp-element-button) {
  text-decoration: underline;
}

/* Header */

.redes_sociais_topo {
  padding-bottom: 2px;
}

.redes_sociais_topo img {
  width: 18px !important;
  height: 18px !important;
  vertical-align: middle;
  opacity: .7;
}

.redes_sociais_topo img:hover {
  opacity: 1;
}

.page-top .wp-block-social-links .wp-social-link a {
  padding: .05em;
}

.site-header a:hover {
  color: var(--wp--preset--color--custom-red) !important;
  text-decoration: none !important;
}

/* Home */

.hero_home_text {
  width: 40%;
}

.hero_home_text h1 {
  font-size: var(--wp--preset--font-size--x-large);
  font-weight: 800;
  padding: 0 1rem;
  display: inline-block;
  border-radius: .5rem;
  background-color: var(--wp--preset--color--custom-red);
}

.hero_home_text p {
  margin: 0;
  padding: 1rem 1rem;
}

.deca_head_group {
  width: 50%;
}

.deca_head {
  padding: 0 1rem .5rem;
  border-radius: .5rem;
}

.deca_head strong {
  color: #e5c395;
}

.home_banner_footer h2 {
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 300;
  padding: 0 1rem;
  margin: 0 auto;
  display: table;
  border-radius: .5rem;
  background-color: var(--wp--preset--color--custom-red);
}

.home_banner_footer p {
  margin: 0;
  padding-top: 1rem;
}

.home_banner_footer a {
  margin: 0;
  padding: 1rem 0;
  color: var(--wp--preset--color--custom-white);
  font-weight: 700;
  text-decoration: none;
}

.numeros {
  color: var(--wp--preset--color--custom-red);
}

.numeros strong {
  font-size: var(--wp--preset--font-size--large);
}

/* Estilos gerais */

.hero h2 {
  color: var(--wp--preset--color--custom-white);
  font-size: var(--wp--preset--font-size--x-large) !important;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
  padding: 0 1rem;
  width: fit-content;
  border-radius: .75rem;
  background-color: var(--wp--preset--color--custom-red);
}

.hero a {
  color: var(--wp--preset--color--custom-white);
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
  padding: 0 .25rem;
  border-radius: .25rem;
  text-decoration: none;
  background-color: var(--wp--preset--color--custom-red);
}

.hero.produtos h2 {
  color: var(--wp--preset--color--custom-white);
  font-size: var(--wp--preset--font-size--medium) !important;
  text-transform: unset;
  padding: 0;
  background-color: transparent;
}

.produtos h3 {
  color: var(--wp--preset--color--custom-white);
  font-size: var(--wp--preset--font-size--medium) !important;
  font-weight: 600;
  margin: 0 0 2rem;
  padding: 0 1rem;
  width: fit-content;
  border-radius: .25rem;
  background-color: var(--wp--preset--color--custom-red);
}

.produtos .wp-block-column p:first-of-type {
  font-size: .85rem;
}

.plastfran h3 {
  color: var(--wp--preset--color--custom-white);
  font-size: 24px !important;
  font-weight: 600;
  margin: -.5rem 0 1rem;
  padding: 0 .5rem;
  width: fit-content;
  border-radius: .25rem;
  background-color: var(--wp--preset--color--custom-green);
}

.icone {
  min-height: 120px;
  display: flex;
}

.icone figure {
  display: flex;
  align-items: center;
}

.depoimentos .swiper-pagination {
  position: unset;
}

.depoimentos .swiper-button-next,
.depoimentos .swiper-button-prev {
  top: var(--swiper-navigation-top-offset, 50%);
  width: calc(var(--swiper-navigation-size) / 44 * 27);
  height: 1.5rem;
  color: var(--wp--preset--color--custom-black);
}

.depoimentos .swiper-button-next:after,
.depoimentos .swiper-button-prev:after {
  font-size: var(--wp--preset--font-size--medium);
}

.depoimentos .swiper-pagination-bullet-active {
  background: var(--wp--preset--color--custom-red);
}

.depoimentos .swiper-button-prev {
  left: -3rem;
  right: auto;
}

.depoimentos .swiper-button-next {
  right: -3rem;
  left: auto;
}

.depoimentos h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.depoimentos h3 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
  color: var(--wp--preset--color--custom-red);
}

.swiper_merc,
.trabalhe,
.timeline,
.cases_sucesso {
  max-width: 1060px !important;
}

.clientes_parceiros {
  align-items: center;
  text-align: center;
}

/* Footer */

footer {
  margin-top: 0;
}

.redes_sociais_footer img {
  vertical-align: middle;
  opacity: .7;
}

.redes_sociais_footer img:hover {
  opacity: 1;
}

/* Contact Form 7  */
.wpcf7-text {
  font-size: 1rem;
  padding-right: 2rem;
}

.wpcf7-form-control,
.wpcf7-not-valid-tip {
  font-size: var(--wp--preset--font-size--small);
}

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-file,
.wpcf7-form-control.wpcf7-number.wpcf7-validates-as-number,
.wpcf7-form-control.wpcf7-select {
  background-color: #4e4e4e;
  color: var(--wp--preset--color--white);
  padding: 10px 10px 10px 30px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  width: 100%;
  font-family: inherit;
  box-sizing: border-box;
}

@supports selector(:focus-visible) {
  :focus {
    outline: none;
  }

  :focus-visible {
    outline: 1px solid var(--wp--preset--color--white);
  }
}

.wpcf7-form-control.wpcf7-submit {
  background-color: var(--wp--preset--color--custom-red);
  color: var(--wp--preset--color--white);
  border-radius: 5px;
  border: none;
  padding: 10px;
  width: 100%;
  cursor: pointer;
}

.wpcf7 form .wpcf7-response-output {
  font-family: inherit;
  padding: 1rem;
  text-align: center;
  margin: 2rem 0;
}

.wpcf7-form-control.wpcf7-not-valid {
  border-color: #dc3232;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-color: var(--wp--preset--color--custom-white);
  background: var(--wp--preset--color--custom-orange);
  color: var(--wp--preset--color--white);
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--wp--preset--color--custom-white);
  background: #009900;
  color: var(--wp--preset--color--white);
  /* Green */
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: var(--wp--preset--color--custom-white);
  background: #dc3232;
  color: var(--wp--preset--color--white);
  /* Red */
}

.wpcf7-spinner {
  display: block;
}

input[type=file] {
  color: #777777 !important;
}

/* Details */
summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  padding: 0 0 1.5rem 0;
  border-bottom: 2px solid var(--wp--preset--color--custom-grey);
}

summary::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 10px solid #15171b;
  border-inline: 7px solid transparent;
  transition: 0.2s;
}

details[open]>p:last-child {
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--wp--preset--color--custom-red);
}

details[open]>summary {
  border-bottom: none;
}

details[open]>summary::after {
  transform: rotate(-180deg);
}

summary::-webkit-details-marker {
  display: none;
}

.timeline.depoimentos h2 {
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 3px solid var(--wp--preset--color--custom-red);
  margin: 0;
}

.timeline.depoimentos h3 {
  font-size: var(--wp--preset--font-size--xx-large);
  line-height: 1;
  margin: 0;
  font-weight: 900;
  color: var(--wp--preset--color--custom-black);
}

.timeline.depoimentos p {
  font-size: var(--wp--preset--font-size--small);
  margin-right: 4rem;
}

.slideshow img {
	border-radius: .75rem;
}

.wp-swiper__slide-content .wp-block-image.aligncenter {
	margin: 0 auto;
}

@media screen and (max-width: 767px) {

  .desktop,
  .desktop_flex {
    display: none;
  }

  .mobile {
    display: block;
  }

  .mobile_flex {
    display: flex;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding-top: 0 !important;
  }

  .menu_mobile {
    font-size: 1rem !important;
  }

  .wp-site-blocks {
    padding-top: 60px;
  }

  .page-top {
    display: none;
  }

  .wp-block-navigation.items-justified-space-between {
    justify-content: end !important;
  }

  .hero_home_text {
    width: unset;
  }

  .home_banner_footer {
    align-items: flex-end;
    justify-content: center;
  }

  .home_banner_footer h2 {
    font-size: 1rem;
  }

  .hero h2 {
    font-size: var(--wp--preset--font-size--large) !important;
  }

  .revert {
    flex-direction: column-reverse;
  }

  .bloco_cores .wp-block-column .wp-block-group {
    width: 140px;
    margin: auto;
  }

  .icone {
    min-height: 90px !important;
  }
  
  .wp-swiper__thumbs .wp-swiper__thumb {
	  height: auto !important;
  }
}