/* ==========================================================================
   Art Cercas | Header com megamenu
   ========================================================================== */

.art-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
  border-top: 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 #e7ecf0;
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  transition: box-shadow .25s;
}
.admin-bar .art-header { top: 32px; }
.art-header.is-scrolled { box-shadow: 0 1px 0 #e7ecf0, 0 10px 30px -18px rgba(10, 32, 51, .35); }
.art-header__inner { position: static; max-width: 1240px; height: 76px; gap: 24px; }
.art-header__brand { width: auto; flex: 0 0 auto; padding: 0; }
.art-header__logo img { width: 210px; max-width: 210px; }
.art-nav { width: auto; flex: 1 1 auto; padding: 0; }
.art-header__cta { width: auto; flex: 0 0 auto; padding: 0; }
.art-header__social { display: flex; flex: 0 0 auto; align-items: center; width: auto; order: 3; }
.art-header__cta { order: 4; }
.art-header__ig { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: #1d2733; transition: color .2s, background .2s; }
.art-header__ig:hover, .art-header__ig:focus-visible { color: #0a6eff; background: #eef5ff; }
.art-header__ig svg { width: 18px; height: 18px; }
.art-btn--header { gap: 8px; padding: 12px 22px; font-size: 15px; font-weight: 700; }
.art-btn--header .art-ico { width: 18px; height: 18px; }
.art-btn--sm { gap: 8px; padding: 10px 18px; font-size: 14px; }
.art-btn--sm .art-ico { width: 17px; height: 17px; }

@media (min-width: 1025px) {
  .art-menu { gap: 2px; justify-content: center; height: 76px; }
  .art-menu__item { position: static; display: flex; align-items: center; height: 100%; }
  .art-menu__item.has-drop { position: relative; }
  .art-menu__link { height: 100%; padding: 0 12px; white-space: nowrap; color: #1d2733; font-size: 15px; font-weight: 600; letter-spacing: 0; }
  .art-menu__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 18px; height: 2px; background: #02b1ff; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .art-menu__item { position: relative; }
  .art-menu__item.has-mega { position: static; }
  .art-menu__link { position: relative; }
  .art-menu__item:hover > .art-menu__link::after,
  .art-menu__item:focus-within > .art-menu__link::after,
  .art-menu__item.is-current > .art-menu__link::after { transform: scaleX(1); }
  .art-menu__item.is-current > .art-menu__link,
  .art-menu__item:hover > .art-menu__link,
  .art-menu__item:focus-within > .art-menu__link { color: #0a2033; }
  .art-menu__caret { margin-left: 7px; transition: transform .25s; }
  .art-menu__item:hover > .art-menu__link .art-menu__caret { transform: rotate(180deg); }

  /* painéis */
  .art-mega, .art-drop {
    position: absolute;
    top: 100%;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .art-mega { left: 0; right: 0; background: #fff; border-top: 1px solid #e7ecf0; box-shadow: 0 30px 50px -30px rgba(10, 32, 51, .4); }
  .art-drop { left: 0; min-width: 250px; padding: 10px 0; background: #fff; border: 1px solid #e7ecf0; border-radius: 10px; box-shadow: 0 20px 40px -20px rgba(10, 32, 51, .35); }
  .art-menu__item:hover > .art-mega, .art-menu__item:focus-within > .art-mega,
  .art-menu__item:hover > .art-drop, .art-menu__item:focus-within > .art-drop { opacity: 1; visibility: visible; transform: none; }
  /* ponte invisível para o mouse não perder o painel */
  .art-menu__item.has-sub > .art-menu__link::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }

  .art-mega__in { display: grid; gap: 40px; max-width: 1240px; margin: 0 auto; padding: 34px 20px 30px; }
  .art-mega__in--4 { grid-template-columns: 1fr 1fr 1.2fr 280px; }
  .art-mega__in--cities { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 28px; }
  .art-mega__in--blog { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
  .art-mega__t { margin: 0 0 12px; color: #6b7785; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .art-mega ul, .art-drop__list { margin: 0; padding: 0; list-style: none; }
  .art-mega__col li { margin: 0 0 4px; }
  .art-mega__col a { display: inline-block; padding: 5px 0; color: #1d2733; font-size: 15px; font-weight: 500; line-height: 1.35; }
  .art-mega__col a:hover, .art-mega__col a:focus-visible { color: #0a6eff; }
  .art-mega__card { padding: 0 0 0 30px; border-left: 1px solid #e7ecf0; }
  .art-mega__card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin: 0 0 14px; }
  .art-mega__ct { margin: 0 0 4px; color: #0a2033; font-size: 16px; font-weight: 700; }
  .art-mega__cx { margin: 0 0 14px; color: #4b5663; font-size: 14px; line-height: 1.5; }
  .art-mega__foot { max-width: 1240px; margin: 0 auto; padding: 14px 20px 18px; border-top: 1px solid #eef2f5; }
  .art-mega__foot a { color: #0a6eff; font-size: 14.5px; font-weight: 600; }
  .art-mega__foot a::after { content: " \2192"; }
  .art-mega__post { display: block; color: #1d2733; }
  .art-mega__post img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin: 0 0 12px; }
  .art-mega__pd { display: block; margin: 0 0 4px; color: #6b7785; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
  .art-mega__pt { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.35; }
  .art-mega__post:hover .art-mega__pt { color: #0a6eff; }
  .art-drop__list a { display: block; padding: 10px 20px; color: #1d2733; font-size: 15px; font-weight: 500; }
  .art-drop__list a:hover, .art-drop__list a:focus-visible { background: #f4f8fb; color: #0a6eff; }
}
@media (min-width: 1025px) and (max-width: 1240px) {
  .art-header__logo img { width: 180px; }
  .art-menu__link { padding: 0 7px; font-size: 14px; }
  .art-menu__link::after { left: 7px; right: 7px; }
  .art-header__inner { gap: 12px; }
  .art-btn--header { padding: 11px 16px; }
  .art-mega__in--cities { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .art-mega__in--4 { grid-template-columns: 1fr 1fr 1.2fr 240px; gap: 28px; }
}

/* Celular e tablet: painéis viram listas */
@media (max-width: 1024px) {
  .art-header { padding: 0 12px; }
  .art-header__inner { height: 64px; gap: 10px; }
  .art-header__logo img { width: 180px; }
  .art-header__brand { flex: 1 1 auto; min-width: 0; }
  .art-header__cta { display: block; order: 2; }
  .art-header__social { order: 2; }
  .art-btn--header { padding: 10px 14px; font-size: 14px; }
  .art-nav { order: 3; flex: 0 0 auto; }
  .art-menu { top: 100%; max-height: calc(100vh - 64px); }
  .art-mega, .art-drop { display: none; padding: 4px 0 12px; background: #fafbfc; }
  .art-menu__item.is-open > .art-mega, .art-menu__item.is-open > .art-drop { display: block; }
  .art-mega__in { display: block; padding: 0 20px; }
  .art-mega__t { margin: 14px 0 4px; color: #6b7785; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .art-mega ul, .art-drop__list { margin: 0; padding: 0; list-style: none; }
  .art-mega__col a, .art-drop__list a { display: block; padding: 9px 0; color: #1d2733; font-size: 15px; }
  .art-drop__list a { padding: 11px 20px; }
  .art-mega__card { display: none; }
  .art-mega__in--blog { display: grid; gap: 14px; padding-top: 12px; }
  .art-mega__post { display: grid; grid-template-columns: 90px 1fr; grid-template-rows: auto auto; column-gap: 12px; color: #1d2733; }
  .art-mega__post img { grid-row: 1 / 3; width: 90px; height: 60px; object-fit: cover; border-radius: 6px; }
  .art-mega__pd { font-size: 11.5px; color: #6b7785; text-transform: uppercase; }
  .art-mega__pt { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
  .art-mega__foot { padding: 12px 20px 0; }
  .art-mega__foot a { color: #0a6eff; font-weight: 600; font-size: 14.5px; }
}
@media (max-width: 640px) {
  .art-header { padding: 0 12px; }
  .art-header__inner { height: 60px; gap: 6px; }
  .art-header__brand { flex: 1 1 auto; min-width: 0; width: auto; padding: 0; }
  .art-header__logo img { width: 100%; max-width: 180px; height: auto; }
  .art-header__cta { display: none; }
  .art-header__social { order: 2; display: flex; flex: 0 0 auto; width: auto; justify-content: center; }
  .art-nav { order: 3; flex: 0 0 auto; width: auto; padding: 0; }
  .art-nav__toggle { padding: 10px 8px 10px 12px; }
}
@media (max-width: 782px) { .admin-bar .art-header { top: 0; } }

/* rede de segurança: nada empurra a página para os lados */
body { overflow-x: clip; }

/* Barra flutuante de WhatsApp (Lead Router) no celular: mais compacta */
@media (max-width: 768px) {
  .clr-fab { padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)) !important; }
  .clr-fab .clr-fab-btn { height: 42px !important; }
  .clr-fab .clr-fab-ico { width: 30px !important; height: 30px !important; }
  .clr-fab .clr-fab-wpp .clr-fab-ico svg { width: 19px !important; height: 19px !important; }
  .clr-fab .clr-fab-label { font-size: 14px !important; }
}

/* Selos de confiança das páginas de cidade: 4 colunas iguais e alinhadas */
.art-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 18px 8px; align-items: stretch; }
.art-trust li { justify-content: center; gap: 12px; padding: 2px 14px; border-left: 1px solid #e7ecf0; font-size: 13.5px; line-height: 1.25; color: #4b5663; white-space: nowrap; }
.art-trust li:first-child { border-left: 0; }
.art-trust li span { display: flex; flex-direction: column; }
.art-trust li b { color: #0d1b2a; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.art-trust .art-ico { flex: none; width: 26px; height: 26px; }
@media (max-width: 900px) {
  .art-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .art-trust li:nth-child(3) { border-left: 0; }
  .art-trust li { justify-content: flex-start; padding-left: 18px; }
}
@media (max-width: 380px) {
  .art-trust li { white-space: normal; padding: 2px 10px; gap: 8px; }
}
@media (max-width: 640px) {
  .art-trust { grid-template-columns: 1fr; row-gap: 0; padding: 6px 18px; }
  .art-trust li, .art-trust li:nth-child(3) { justify-content: flex-start; padding: 12px 4px; border-left: 0; border-top: 1px solid #eef2f5; white-space: normal; }
  .art-trust li:first-child { border-top: 0; }
  .art-trust li span { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px; }
  .art-trust li b { font-size: 16px; }
}

/* Megamenu compacto: no máximo 1100px, títulos azuis, links menores com marcador */
@media (min-width: 1025px) {
  .art-mega { left: 50%; right: auto; width: min(1100px, calc(100vw - 40px)); transform: translate(-50%, 8px); border: 1px solid #e7ecf0; border-radius: 0 0 14px 14px; }
  .art-menu__item:hover > .art-mega, .art-menu__item:focus-within > .art-mega { transform: translate(-50%, 0); }
  .art-mega__in { max-width: none; padding: 24px 28px 20px; gap: 28px; }
  .art-mega__in--4 { grid-template-columns: 1fr 1fr 1.25fr 230px; }
  .art-mega__in--cities { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px; }
  .art-mega__in--blog { gap: 22px; }
  .art-mega__t { margin: 0 0 8px; color: #0a6eff; font-size: 11.5px; }
  .art-mega__col li { margin: 0; }
  .art-mega__col a { position: relative; padding: 4px 0 4px 14px; font-size: 14px; }
  .art-mega__col a::before { content: ""; position: absolute; left: 0; top: .95em; width: 5px; height: 5px; border-radius: 50%; background: #02b1ff; }
  .art-mega__col a:hover::before { background: #0a6eff; }
  .art-mega__card { padding-left: 24px; }
  .art-mega__card img { margin-bottom: 10px; }
  .art-mega__ct { font-size: 15px; }
  .art-mega__cx { font-size: 13px; margin-bottom: 12px; }
  .art-mega__foot { max-width: none; padding: 12px 28px 14px; }
  .art-mega__foot a { font-size: 13.5px; }
  .art-mega__pt { font-size: 14.5px; }
  .art-mega__post img { margin-bottom: 8px; }
}
