/* Tierno HUB Manager 1.1.1 | Estilos isolados para Elementor/WordPress */
.thub, .thub * { box-sizing: border-box; }
.thub { --th-figo: #532B2F; --th-marfim: #DCCBB4; --th-oliva: #4A5330; --th-terra: #843E2D; --th-acafrao: #B97132; --th-paper: #F7F2EB; --th-ink: #38272A; color: var(--th-ink); font-family: 'Montserrat', sans-serif; width: 100%; }
.thub [hidden], .thub-modal[hidden], .thub-modal [hidden] { display: none !important; }
.thub__heading { max-width: 790px; margin: 0 0 32px; }
.thub__eyebrow { display: block; color: var(--th-terra); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.thub .thub__title { color: var(--th-figo); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(30px, 4vw, 48px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 12px; }
.thub .thub__subtitle { margin: 0; color: #66565A; font-size: 15px; line-height: 1.75; }
.thub__filters { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: end; gap: 18px 28px; margin-bottom: 17px; }
.thub__categories { display: flex; flex-wrap: wrap; gap: 8px; }
.thub .thub__filter { padding: 10px 16px; appearance: none; border: 1px solid #d9ccc1; border-radius: 100px; background: transparent; color: var(--th-figo); font: 600 12px/1.4 'Montserrat', sans-serif; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.thub .thub__filter:hover, .thub .thub__filter:focus-visible, .thub .thub__filter.is-active { background: var(--th-figo); color: var(--th-paper); border-color: var(--th-figo); }
.thub__search-wrap { display: block; min-width: 260px; flex: 0 1 310px; }
.thub__search-label { display: block; font-size: 11px; font-weight: 600; color: var(--th-figo); margin-bottom: 6px; }
.thub input.thub__search { display: block; width: 100%; min-height: 43px; background: #fff; border: 1px solid #d8c8c0; border-radius: 6px; color: var(--th-ink); font: 13px 'Montserrat', sans-serif; padding: 10px 13px; outline-offset: 3px; box-shadow: none; }
.thub input.thub__search:focus { border-color: var(--th-figo); }
.thub__count { font-size: 12px; color: #796c6d; margin: 0 0 20px; }
.thub__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.thub-card { overflow: hidden; min-width: 0; background: #fff; border: 1px solid #e5dcd4; border-radius: 9px; box-shadow: 0 7px 27px rgba(45,28,29,.035); transition: transform .25s ease, box-shadow .25s ease; }
.thub-card[hidden] { display: none !important; }
.thub-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(45,28,29,.1); }
.thub .thub-card__button { appearance: none; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.thub .thub-card__button:focus-visible { outline: 3px solid var(--th-acafrao); outline-offset: -3px; }
.thub-card__visual { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #eee5da; }
.thub-card__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.thub-card:hover .thub-card__image { transform: scale(1.045); }
.thub-card__content { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 22px 22px 20px; flex: 1; }
.thub-card__category { display: block; color: var(--th-terra); font-size: 10px; line-height: 1.5; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 8px; }
.thub-card__name { display: block; color: var(--th-figo); font: 500 clamp(21px, 2.1vw, 27px)/1.22 'Playfair Display', Georgia, serif; margin-bottom: 10px; }
.thub-card__description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: #6b5d5c; font-size: 12px; line-height: 1.7; margin-bottom: 15px; }
.thub-card__action { margin-top: auto; padding-top: 12px; color: var(--th-figo); font-weight: 700; font-size: 11px; letter-spacing: .025em; border-top: 1px solid #eee2da; align-self: stretch; display: flex; justify-content: space-between; align-items: center; }
.thub-card__action span { font-size: 18px; line-height: 1; }
.thub__empty-static, .thub__no-results { background: var(--th-paper); border-radius: 8px; padding: 26px; color: var(--th-figo); line-height: 1.6; }
.thub__no-results { margin-top: 22px; }
.thub-modal-open { overflow: hidden !important; }
.thub-modal { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: center; justify-content: center; padding: 22px; font-family: 'Montserrat', sans-serif; color: #38272A; }
.thub-modal__backdrop { position: absolute; inset: 0; background: rgba(23,16,18,.76); backdrop-filter: blur(5px); cursor: pointer; }
.thub-modal__panel { position: relative; z-index: 1; width: min(100%, 820px); max-height: min(90vh, 870px); overflow: auto; overscroll-behavior: contain; background: #F7F2EB; border-radius: 10px; box-shadow: 0 24px 90px rgba(0,0,0,.34); padding: clamp(24px, 4vw, 46px); }
.thub-modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 35px; height: 35px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #d9c7bc; background: #fff; color: #532B2F; font: 29px/1 Arial,sans-serif; cursor: pointer; }
.thub-modal__close:hover { background: #532B2F; color: #fff; }
.thub-modal__intro { display: grid; grid-template-columns: minmax(0, 230px) 1fr; gap: clamp(20px, 3vw, 38px); align-items: center; }
.thub-modal__photo-wrap { aspect-ratio: 4 / 5; overflow: hidden; background: #E8D8C9; border-radius: 6px; }
.thub-modal__photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.thub-modal__eyebrow { display: block; color: #843E2D; font-size: 10px; font-weight: 700; letter-spacing: .13em; margin-bottom: 19px; }
.thub-modal__category { display: block; color: #6b5d5c; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.thub-modal .thub-modal__title { font: 500 clamp(30px, 4vw, 44px)/1.16 'Playfair Display', Georgia, serif; color: #532B2F; margin: 0 0 15px; }
.thub-modal__short { font-size: 14px; line-height: 1.75; color: #6b5d5c; margin: 0; }
.thub-modal__section { border-top: 1px solid #dfd1c5; padding-top: 23px; margin-top: 26px; }
.thub-modal .thub-modal__section h4 { font: 600 13px/1.5 'Montserrat',sans-serif; text-transform: uppercase; letter-spacing: .07em; color: #532B2F; margin: 0 0 11px; }
.thub-modal__bio { white-space: pre-line; color: #5b5050; font-size: 13px; line-height: 1.85; margin: 0; }
.thub-modal__topics { display: flex; flex-wrap: wrap; gap: 8px; }
.thub-modal__topic { padding: 8px 12px; background: #E8DDCE; border-radius: 30px; color: #532B2F; font-size: 12px; line-height: 1.5; }
.thub-modal__footer { margin-top: 30px; }
.thub-modal .thub-modal__whatsapp { display: inline-flex; justify-content: center; align-items: center; gap: 25px; border: 1px solid #532B2F; border-radius: 5px; background: #532B2F; color: #F7F2EB; padding: 14px 22px; min-height: 48px; text-decoration: none; text-align: center; font: 700 12px/1.5 'Montserrat',sans-serif; transition: background .2s; }
.thub-modal .thub-modal__whatsapp:hover { background: #843E2D; border-color: #843E2D; color: #fff; }
.thub-modal__footer p { margin: 12px 0 0; font-size: 11px; color: #746766; }
@media (max-width: 900px) { .thub__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; } }
@media (max-width: 600px) { .thub__grid { grid-template-columns: 1fr; gap: 17px; } .thub__filters { flex-direction: column; align-items: stretch; } .thub__search-wrap { min-width: 0; flex: 1 1 auto; width: 100%; } .thub-card__content { padding: 18px; } .thub-card__name { font-size: 25px; } .thub-modal { padding: 10px; align-items: center; } .thub-modal__panel { padding: 45px 19px 24px; max-height: 94vh; } .thub-modal__intro { grid-template-columns: minmax(0, 95px) minmax(0,1fr); gap: 15px; align-items: start; } .thub-modal__photo-wrap { aspect-ratio: 3 / 4; } .thub-modal__eyebrow { margin-bottom: 10px; font-size: 9px; } .thub-modal .thub-modal__title { font-size: 27px; } .thub-modal__category { font-size: 11px; } .thub-modal__short { font-size: 12px; } .thub-modal .thub-modal__whatsapp { display: flex; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .thub-card, .thub-card__image, .thub .thub__filter, .thub-modal .thub-modal__whatsapp { transition: none !important; } }


/* ===========================================================
   Tierno HUB 1.1.1 — Compatibilidade com estilos do Elementor
   Os estilos globais do tema nao devem recolorir botao/card.
   =========================================================== */
.thub .thub-card,
.thub .thub-card:hover,
.thub .thub-card:focus-within {
  background: #ffffff !important;
}
.thub .thub-card:hover,
.thub .thub-card:focus-within {
  border-color: #DCCBB4 !important;
}
.thub .thub-card__button,
.thub .thub-card__button:hover,
.thub .thub-card__button:focus,
.thub .thub-card__button:active {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  text-decoration: none !important;
  transform: none !important;
}
/* Retratos: proporcao quadrada mostra mais do rosto e ombros. */
.thub .thub-card__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eee5da;
}
.thub .thub-card__visual img.thub-card__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center 35% !important;
}
/* Pop-up movido para document.body: regras fora de .thub. */
.thub-modal .thub-modal__close,
.thub-modal .thub-modal__close:focus {
  background: #532B2F !important;
  background-color: #532B2F !important;
  border-color: #532B2F !important;
  color: #F7F2EB !important;
  box-shadow: none !important;
}
.thub-modal .thub-modal__close:hover,
.thub-modal .thub-modal__close:active {
  background: #843E2D !important;
  background-color: #843E2D !important;
  border-color: #843E2D !important;
  color: #ffffff !important;
}
.thub-modal a.thub-modal__whatsapp,
.thub-modal a.thub-modal__whatsapp:link,
.thub-modal a.thub-modal__whatsapp:visited,
.thub-modal a.thub-modal__whatsapp:focus {
  background: #532B2F !important;
  background-color: #532B2F !important;
  border-color: #532B2F !important;
  color: #F7F2EB !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.thub-modal a.thub-modal__whatsapp:hover,
.thub-modal a.thub-modal__whatsapp:active {
  background: #843E2D !important;
  background-color: #843E2D !important;
  border-color: #843E2D !important;
  color: #ffffff !important;
}
.thub-modal img.thub-modal__photo {
  object-fit: cover !important;
  object-position: center center !important;
}
