/* =========================================================
   SUCESU AGENDA HOME — CARROSSEL FRONT-END | v1.4.1
   Desktop amplo: 2 cards ativos + 3º em blur + recorte do 4º.
   A trilha ocupa até a extremidade direita real da tela.
   Etiqueta sobreposta entre a imagem e o corpo do card.
========================================================= */

.sah-agenda {
  --sah-card-width: 17.375rem;
  --sah-card-height: 23.4375rem;
  --sah-media-ratio: 17.375 / 9.125;
  --sah-gap: 1rem;
  --sah-blue: #0088ff;
  --sah-title: #364061;
  --sah-green: #34c759;

  position: relative;
  width: var(--sah-edge-width, 100%) !important;
  max-width: none !important;
  min-width: 0;
  overflow: visible !important;
  font-family: "Montserrat", Arial, sans-serif;
  box-sizing: border-box;
}

/*
  O root é estendido pelo JS até a borda direita da janela.
  A janela do carrossel usa toda essa extensão: o próximo card
  continua aparecendo por baixo da seta, sem faixa branca vazia.
*/
.sah-viewport {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;
}

.sah-track {
  display: flex;
  align-items: stretch;
  gap: var(--sah-gap);
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 0;
  scroll-behavior: smooth;
  scroll-snap-type: none;
  scrollbar-width: none;
  box-sizing: border-box;
}

.sah-track::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   CARD
========================================================= */

.sah-card {
  position: relative;
  flex: 0 0 var(--sah-card-width);
  width: var(--sah-card-width);
  min-height: var(--sah-card-height);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid rgba(109, 117, 143, .40);
  border-radius: .625rem;
  box-sizing: border-box;

  opacity: .38;
  filter: blur(2.5px);
  transform: scale(.988);
  transform-origin: center center;
  pointer-events: none;
  transition: opacity .26s ease, filter .26s ease, transform .26s ease;
}

.sah-card.is-active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  pointer-events: auto;
}

.sah-card.is-blurred {
  opacity: .52;
  filter: blur(2.4px);
}

.sah-card.is-peek {
  opacity: .34;
  filter: blur(3px);
}

/*
  A imagem não depende mais de altura fixa reduzida:
  conserva a proporção original mesmo em viewport menor.
*/
.sah-card-media {
  position: relative;
  display: block !important;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: var(--sah-media-ratio);
  min-height: 0;
  overflow: visible;
  background: #edf1f7;
}

.sah-card-image,
.sah-card-placeholder {
  position: absolute;
  inset: 0;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
}

.sah-card-placeholder {
  background: linear-gradient(135deg, #132843 0%, #101010 100%);
}

.sah-card-tag {
  position: absolute;
  left: 1.25rem;
  bottom: -.72rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 .75rem;
  border-radius: .3125rem;
  background: #ffffff;
  color: var(--sah-green);
  font-size: .625rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  box-sizing: border-box;
}

.sah-card-body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 2.1rem 1.25rem 1.3rem;
  box-sizing: border-box;
}

.sah-card-title {
  width: 100%;
  margin: 0 0 1.15rem;
  color: var(--sah-title);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.0375rem;
}

.sah-card-description {
  width: 100%;
  margin: 0;
  color: #000000;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.5;
}

.sah-card-button {
  align-self: flex-end;
  margin: auto 0 0;
  min-width: 6.8125rem;
  height: 2.3125rem;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .3125rem;
  background: var(--sah-blue);
  color: #ffffff !important;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: filter .2s ease, transform .2s ease;
}

.sah-card-button:hover,
.sah-card-button:focus-visible {
  filter: brightness(.92);
  transform: translateY(-1px);
}

.sah-card-button:focus-visible,
.sah-next:focus-visible {
  outline: 2px solid #164d8a;
  outline-offset: 2px;
}

/* =========================================================
   NAVEGAÇÃO — EXTREMA DIREITA DA ÁREA VISÍVEL
========================================================= */

.sah-next {
  position: absolute;
  top: 50%;
  right: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 0;
  border-radius: .3125rem;
  background: var(--sah-blue);
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 6px 14px rgba(11, 71, 140, .16);
}

.sah-next svg {
  display: block;
  width: .86rem;
  height: .86rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   MODO COMPACTO — DESKTOP MENOR / TABLET HORIZONTAL
   Ativado por JavaScript conforme espaço real do componente.
========================================================= */

.sah-agenda.is-compact {
  --sah-card-width: min(17.375rem, calc(100vw - 8rem));
  --sah-card-height: 22.25rem;
  --sah-gap: .9rem;
}

.sah-agenda.is-compact .sah-viewport {
  width: 100%;
  max-width: none;
}

.sah-agenda.is-compact .sah-card-body {
  padding: 1.9rem 1.1rem 1.1rem;
}

.sah-agenda.is-compact .sah-card-title {
  margin-bottom: .9rem;
  font-size: 1.1rem;
  line-height: 1.2;
}

.sah-agenda.is-compact .sah-card-description {
  font-size: .7rem;
  line-height: 1.48;
}

.sah-agenda.is-compact .sah-card-button {
  min-width: 6rem;
  height: 2.1rem;
  padding: 0 .9rem;
  font-size: .7rem;
}

.sah-agenda.is-compact .sah-next {
  right: .7rem;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  .sah-agenda,
  .sah-agenda.is-compact {
    --sah-card-width: min(17.375rem, calc(100vw - 4.75rem));
    --sah-card-height: auto;
    --sah-gap: .85rem;
    width: 100% !important;
  }

  .sah-viewport,
  .sah-agenda.is-compact .sah-viewport {
    width: 100%;
    max-width: 100%;
  }

  .sah-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .sah-card {
    min-height: 21rem;
  }

  .sah-card-body,
  .sah-agenda.is-compact .sah-card-body {
    padding: 1.85rem 1.05rem 1rem;
  }

  .sah-card-title,
  .sah-agenda.is-compact .sah-card-title {
    margin-bottom: .9rem;
    font-size: 1.05rem;
    letter-spacing: -.03rem;
  }

  .sah-card-description,
  .sah-agenda.is-compact .sah-card-description {
    font-size: .72rem;
    line-height: 1.48;
  }

  .sah-card-button,
  .sah-agenda.is-compact .sah-card-button {
    min-width: 6rem;
    height: 2.2rem;
    padding: 0 .95rem;
    font-size: .7rem;
  }

  .sah-next,
  .sah-agenda.is-compact .sah-next {
    right: .3rem;
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* Clones visuais gerados pelo carrossel circular. */
.sah-card[data-sah-clone="true"] {
  user-select: none;
}


/* O container do shortcode não pode cortar a extensão lateral do carrossel. */
.agenda-carousel-wrap,
.agenda-carousel-wrap > .e-con-inner,
.agenda-carousel-wrap .elementor-widget-shortcode,
.agenda-carousel-wrap .elementor-widget-shortcode .elementor-widget-container {
  overflow: visible !important;
}

/* A seta fica sobre a prévia lateral, junto à borda direita. */
@media (min-width: 768px) {
  .sah-next {
    right: .875rem;
  }
}


/* Etiqueta deve atravessar a divisão entre imagem e conteúdo. */
.sah-card-media .sah-card-tag {
  transform: translateZ(0);
  white-space: nowrap;
}

/* =========================================================
   SUCESU AGENDA — LISTAGEM DA PÁGINA AGENDA | v2.0.0
   Shortcode: [sucesu_agenda_lista]
========================================================= */

.sal-agenda-list {
  --sal-blue: #07569b;
  --sal-blue-dark: #123d70;
  --sal-blue-deep: #0b2f57;
  --sal-bright: #0088ff;
  --sal-green: #34c759;
  --sal-text: #33445b;
  --sal-muted: #64768b;
  --sal-border: rgba(7, 86, 155, .14);
  --sal-shadow: 0 12px 32px rgba(18, 61, 101, .07);

  width: 100%;
  max-width: none;
  font-family: "Montserrat", Arial, sans-serif;
  box-sizing: border-box;
}

.sal-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  box-sizing: border-box;
}

.sal-card {
  position: relative;
  min-width: 0;
  min-height: 30.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sal-border);
  border-radius: .8rem;
  box-shadow: var(--sal-shadow);
  box-sizing: border-box;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 86, 155, .22);
  box-shadow: 0 18px 38px rgba(18, 61, 101, .11);
}

.sal-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 17.375 / 9.125;
  flex: 0 0 auto;
  overflow: visible;
  background: #edf1f7;
}

.sal-card-image,
.sal-card-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
}

.sal-card-placeholder {
  background: linear-gradient(135deg, #183452 0%, #101820 100%);
}

.sal-card-tag {
  position: absolute;
  left: 1.15rem;
  bottom: -.7rem;
  z-index: 2;
  min-height: 1.45rem;
  padding: 0 .7rem;
  display: inline-flex;
  align-items: center;
  border-radius: .3rem;
  background: #fff;
  color: var(--sal-green);
  font-size: .61rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  box-sizing: border-box;
}

.sal-card-body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 2rem 1.15rem 1.2rem;
  box-sizing: border-box;
}

.sal-card-head {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin: 0 0 1rem;
}

.sal-card-date {
  flex: 0 0 3.15rem;
  min-height: 3.4rem;
  padding: .44rem .25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .1rem;
  background: #eff7ff;
  border: 1px solid rgba(7, 86, 155, .10);
  border-radius: .55rem;
  box-sizing: border-box;
}

.sal-card-date strong {
  margin: 0;
  color: var(--sal-blue);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1;
}

.sal-card-date span {
  color: var(--sal-blue-dark);
  font-size: .59rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .06em;
}

.sal-card-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.sal-card-type {
  display: inline-flex;
  min-height: 1.2rem;
  align-items: center;
  padding: 0 .5rem;
  margin: 0 0 .42rem;
  border-radius: 999px;
  background: #eef7ff;
  color: var(--sal-blue);
  font-size: .57rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.sal-card-title {
  margin: 0;
  color: var(--sal-blue-dark);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.27;
  letter-spacing: -.03rem;
}

.sal-card-description {
  margin: 0 0 1.05rem;
  color: var(--sal-text);
  font-size: .76rem;
  font-weight: 400;
  line-height: 1.58;
}

.sal-card-meta {
  margin: auto 0 1.15rem;
  padding-top: .95rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  border-top: 1px solid rgba(7, 86, 155, .08);
}

.sal-meta-item {
  position: relative;
  padding-left: 1.1rem;
  color: var(--sal-muted);
  font-size: .68rem;
  font-weight: 500;
  line-height: 1.45;
}

.sal-meta-item::before {
  content: "";
  position: absolute;
  top: .2rem;
  left: 0;
  width: .7rem;
  height: .7rem;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.sal-meta-time::before {
  border: 1.4px solid var(--sal-blue);
  border-radius: 50%;
}

.sal-meta-time::after {
  content: "";
  position: absolute;
  top: .38rem;
  left: .31rem;
  width: .26rem;
  height: 1px;
  background: var(--sal-blue);
  transform-origin: left center;
  transform: rotate(25deg);
}

.sal-meta-location::before {
  border: 1.35px solid var(--sal-blue);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) scale(.72);
}

.sal-card-button {
  align-self: flex-end;
  min-width: 6.9rem;
  min-height: 2.35rem;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .34rem;
  background: var(--sal-bright);
  color: #fff !important;
  font-size: .73rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  transition: filter .2s ease, transform .2s ease;
}

.sal-card-button:hover,
.sal-card-button:focus-visible {
  filter: brightness(.92);
  transform: translateY(-1px);
}

.sal-card-button:focus-visible {
  outline: 2px solid var(--sal-blue);
  outline-offset: 2px;
}

.sal-empty {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid rgba(7, 86, 155, .12);
  border-radius: .7rem;
  background: #fff;
  color: var(--sal-text);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: .88rem;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .sal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 767px) {
  .sal-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sal-card {
    min-height: 0;
  }

  .sal-card-body {
    padding: 1.85rem 1rem 1rem;
  }

  .sal-card-title {
    font-size: 1.02rem;
  }

  .sal-card-description {
    font-size: .73rem;
  }

  .sal-card-meta {
    margin-top: .2rem;
  }
}

/* =========================================================
   Shortcode: [sucesu_agenda_pagina]
   Apenas comportamento estrutural obrigatório.
   O design deve ser aplicado no Custom CSS do Elementor.
========================================================= */

.sap-panel[hidden] {
  display: none !important;
}
