/**
 * ATTAP — layout moderno (grelhas, espaçamento, cabeçalho, secções)
 */

.attap-public .attap-container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ——— Top bar ——— */
.attap-public .fh5co-nav .top.attap-topbar {
  background: var(--attap-green-dark);
  border: none;
  padding: 0;
}

.attap-public .attap-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.5rem 0;
  min-height: 44px;
}

.attap-public .attap-topbar .site {
  float: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  max-width: min(100%, 520px);
}

.attap-public .attap-topbar-aside {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.attap-public .attap-topbar-phone {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  white-space: nowrap;
}

.attap-public .attap-topbar-phone:hover {
  color: var(--attap-yellow) !important;
}

.attap-public .attap-topbar .num {
  display: none;
}

.attap-public .attap-topbar .fh5co-social {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: flex;
  gap: 4px;
}

.attap-public .attap-topbar .fh5co-social li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff !important;
  transition: background 0.2s;
}

.attap-public .attap-topbar .fh5co-social li a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ——— Cabeçalho principal ——— */
.attap-public .fh5co-nav .top-menu.attap-header-main {
  padding: 0;
  background: var(--attap-white);
  border-bottom: 1px solid rgba(0, 69, 48, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1002;
}

.attap-public .attap-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  flex-wrap: nowrap;
}

.attap-public .fh5co-nav #fh5co-logo.attap-logo {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.attap-public .fh5co-nav #fh5co-logo.attap-logo a {
  padding: 0;
  display: block;
  line-height: 0;
}

.attap-public .fh5co-nav #fh5co-logo img {
  max-height: 56px;
  width: auto;
  border-radius: var(--attap-radius-sm);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.attap-public .fh5co-nav .menu-1.attap-main-menu {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.attap-public .fh5co-nav .menu-1.attap-main-menu > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.25rem;
  margin: 0 !important;
}

.attap-public .fh5co-nav .menu-1.attap-main-menu > ul > li {
  display: inline-block;
  margin: 0;
}

.attap-public .fh5co-nav .menu-1.attap-main-menu > ul > li > a {
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: none !important;
  padding: 10px 14px !important;
  color: var(--attap-text) !important;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.attap-public .fh5co-nav .menu-1.attap-main-menu > ul > li > a:hover,
.attap-public .fh5co-nav .menu-1.attap-main-menu > ul > li > a:focus {
  background: var(--attap-green-soft) !important;
  color: var(--attap-green-dark) !important;
}

.attap-public .fh5co-nav ul li.btn-cta a span {
  background: var(--attap-red) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  letter-spacing: 0.03em;
}

.attap-public .fh5co-nav ul li.btn-cta a:hover span {
  background: var(--attap-red-dark) !important;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.35) !important;
  transform: none !important;
}

@media screen and (max-width: 768px) {
  .attap-public .fh5co-nav .menu-1 {
    display: none !important;
  }

  .attap-public .attap-header-row {
    min-height: 64px;
  }
}

/* Menu hamburger — contraste com marca (ícones visíveis no cabeçalho branco) */
.attap-public .fh5co-nav-toggle.fh5co-nav-white > i,
.attap-public .fh5co-nav-toggle.fh5co-nav-white > i::before,
.attap-public .fh5co-nav-toggle.fh5co-nav-white > i::after {
  background: var(--attap-green-dark) !important;
}

/*
 * Mobile: main.js injecta o botão e o painel #fh5co-offcanvas.
 * O z-index baixo (1003) deixava o painel atrás do cabeçalho sticky; position:absolute
 * dentro de #page podia cortar o menu. Corrigimos com fixed + z-index alto.
 */
@media screen and (max-width: 768px) {
  .attap-public .js-fh5co-nav-toggle.fh5co-nav-toggle {
    position: fixed !important;
    top: max(0.65rem, env(safe-area-inset-top, 0px)) !important;
    right: max(0.65rem, env(safe-area-inset-right, 0px)) !important;
    left: auto !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10050 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 45, 32, 0.15) !important;
    border: 1px solid rgba(0, 69, 48, 0.12) !important;
  }

  .attap-public .js-fh5co-nav-toggle.fh5co-nav-toggle i {
    width: 22px !important;
    background: var(--attap-green-dark) !important;
  }

  .attap-public .js-fh5co-nav-toggle.fh5co-nav-toggle i::before,
  .attap-public .js-fh5co-nav-toggle.fh5co-nav-toggle i::after {
    width: 22px !important;
    background: var(--attap-green-dark) !important;
  }

  .attap-public #fh5co-offcanvas {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    width: min(300px, 92vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: max(4.5rem, calc(env(safe-area-inset-top, 0px) + 3rem)) 1.25rem 2rem !important;
    z-index: 10040 !important;
    display: block !important;
    background: linear-gradient(180deg, var(--attap-green-dark) 0%, #002818 100%) !important;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2) !important;
    -webkit-overflow-scrolling: touch;
    /* style.css usa translateX(270px); com painel mais largo ficava um bordo visível — esconder por completo */
    -webkit-transform: translateX(100%) !important;
    -ms-transform: translateX(100%) !important;
    transform: translateX(100%) !important;
  }

  .attap-public.offcanvas #fh5co-offcanvas {
    -webkit-transform: translateX(0) !important;
    -ms-transform: translateX(0) !important;
    transform: translateX(0) !important;
  }

  .attap-public #fh5co-offcanvas ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .attap-public #fh5co-offcanvas ul li a {
    display: block !important;
    padding: 0.85rem 0 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
  }

  .attap-public #fh5co-offcanvas ul li.btn-cta a {
    padding: 0.5rem 0 !important;
    text-align: left !important;
  }

  .attap-public #fh5co-offcanvas ul li.btn-cta a span {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    text-align: left !important;
    padding: 0.65rem 1rem !important;
  }

  .attap-public.offcanvas {
    overflow: hidden !important;
    touch-action: none;
  }
}

/* ——— Hero homepage ——— */
.attap-public #fh5co-hero.attap-hero--home {
  min-height: 0;
  height: auto;
  background: var(--attap-green-dark);
}

.attap-public #fh5co-hero.attap-hero--home .flexslider {
  margin: 0;
}

.attap-public #fh5co-hero.attap-hero--home .flexslider .slides > li {
  min-height: min(88vh, 820px);
  height: min(88vh, 820px);
  background-position: center center;
  background-size: cover;
}

.attap-public #fh5co-hero.attap-hero--home .flexslider .slides > li::after {
  background: linear-gradient(
    105deg,
    rgba(0, 40, 28, 0.82) 0%,
    rgba(0, 40, 28, 0.45) 45%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.attap-public #fh5co-hero.attap-hero--home .overlay-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(200, 16, 46, 0.12) 0%,
    transparent 40%
  );
  opacity: 1;
}

.attap-public #fh5co-hero.attap-hero--home .flexslider .slides > li > .container {
  position: relative;
  z-index: 3;
}

.attap-public #fh5co-hero.attap-hero--home .flexslider .slider-text.attap-hero-slider-text {
  display: flex !important;
  align-items: center;
  min-height: min(88vh, 820px) !important;
  height: min(88vh, 820px) !important;
  padding: 2rem 0;
  /* style.css define opacity:0 no .slider-text para animar com fadeInUp; sem isto o painel fica invisível */
  opacity: 1 !important;
}

.attap-public #fh5co-hero.attap-hero--home .flexslider .slider-text > .slider-text-inner {
  display: block !important;
  vertical-align: middle;
  min-height: 0 !important;
  text-align: left !important;
  max-width: 560px;
}

.attap-public .attap-hero-panel {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--attap-radius);
  padding: 2rem 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  border-left: 4px solid var(--attap-red);
}

@media screen and (max-width: 768px) {
  .attap-public .attap-hero-panel {
    padding: 1.35rem 1.25rem;
  }
}

.attap-public .attap-hero-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--attap-red);
  margin: 0 0 0.75rem;
}

.attap-public #fh5co-hero.attap-hero--home .flexslider .slider-text > .slider-text-inner h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  line-height: 1.28;
  font-weight: 700;
  color: var(--attap-green-dark) !important;
  margin-bottom: 1.25rem;
  text-shadow: none;
}

.attap-public .attap-hero-actions {
  margin: 0;
}

.attap-public #fh5co-hero.attap-hero--home .flexslider .flex-control-nav {
  bottom: 28px;
  z-index: 10;
}

.attap-public #fh5co-hero.attap-hero--home .flexslider .flex-control-nav li a.flex-active {
  background: var(--attap-yellow);
}

/* ——— Secções genéricas ——— */
.attap-public .attap-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.attap-public .attap-section--cream {
  background: var(--attap-cream);
}

.attap-public .attap-section--news {
  background: var(--attap-white);
  border-top: 1px solid rgba(0, 69, 48, 0.06);
}

.attap-public .attap-section-header {
  max-width: 640px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.attap-public .attap-section-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  margin: 0 0 0.75rem;
  position: relative;
  display: inline-block;
}

.attap-public .attap-section-header h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--attap-green), var(--attap-yellow));
  margin: 1rem auto 0;
}

.attap-public .attap-section-header p {
  margin: 0;
  color: var(--attap-text-muted);
  font-size: 1.05rem;
}

/* ——— O que fazemos — grelha ——— */
.attap-public .attap-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media screen and (max-width: 768px) {
  .attap-public .attap-feature-grid {
    grid-template-columns: 1fr;
  }
}

.attap-public .attap-feature-card {
  background: var(--attap-white);
  border-radius: var(--attap-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 45, 32, 0.08);
  border: 1px solid rgba(0, 69, 48, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.attap-public .attap-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 45, 32, 0.12);
}

.attap-public .attap-feature-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8ece9;
}

.attap-public .attap-feature-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.attap-public .attap-feature-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.attap-public .attap-feature-card__body h3 {
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
  color: var(--attap-green-dark);
}

.attap-public .attap-feature-card__body p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--attap-text-muted);
  flex: 1;
}

/* ——— Faixa “Pilares” (ex-testemunhos; mantém #fh5co-testimonial por compat. com o tema) ——— */
.attap-public #fh5co-testimonial {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0;
  background-color: var(--attap-green-dark) !important;
  background-image: linear-gradient(
      135deg,
      rgba(0, 69, 48, 0.94) 0%,
      rgba(0, 104, 71, 0.88) 100%
    ),
    url(../images/img_bg_4.jpg) !important;
  background-size: cover !important;
  background-position: center !important;
}

.attap-public #fh5co-testimonial .overlay {
  background: transparent !important;
}

.attap-public .attap-testimonial-inner.attap-pillars-inner {
  max-width: 1120px;
}

.attap-public .attap-testimonial-inner {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--attap-radius);
  padding: 2rem 1.5rem 2.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  max-width: 920px;
  margin: 0 auto;
}

.attap-public #fh5co-testimonial .fh5co-heading {
  margin-bottom: 1.5rem !important;
}

.attap-public #fh5co-testimonial .fh5co-heading h2,
.attap-public #fh5co-testimonial .fh5co-heading h2 span {
  color: var(--attap-green-dark) !important;
}

.attap-public #fh5co-testimonial .fh5co-heading h2::after {
  display: none !important;
}

.attap-public #fh5co-testimonial .attap-testimonial-inner .fh5co-heading h2 span::before,
.attap-public #fh5co-testimonial .attap-testimonial-inner .fh5co-heading h2 span::after {
  background: var(--attap-green) !important;
  opacity: 0.35;
}

.attap-public .attap-pillars-lead {
  margin: 0.5rem 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--attap-text-muted);
  font-weight: 500;
}

.attap-public .attap-pillar-grid {
  margin-top: 0.5rem;
}

.attap-public .attap-pillar-grid > [class*="col-"] {
  margin-bottom: 1.25rem;
}

.attap-public .attap-pillar-grid > [class*="col-"]:last-child {
  margin-bottom: 0;
}

@media screen and (min-width: 992px) {
  .attap-public .attap-pillar-grid > [class*="col-"] {
    margin-bottom: 0;
  }
}

.attap-public .attap-pillar-card {
  height: 100%;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: var(--attap-radius);
  background: var(--attap-cream);
  border-left: 4px solid var(--attap-red);
  box-shadow: 0 8px 24px rgba(0, 45, 32, 0.06);
}

.attap-public .attap-pillar-card__step {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--attap-red);
  margin-bottom: 0.5rem;
}

.attap-public .attap-pillar-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--attap-green-dark);
}

.attap-public .attap-pillar-card__text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--attap-text-muted);
}

/* ——— Eventos + notícias ——— */
.attap-public .attap-events-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--attap-red);
  margin-bottom: 1rem;
  text-align: center;
}

.attap-public .attap-event-card {
  background: var(--attap-cream);
  border-radius: var(--attap-radius);
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  border: 1px solid rgba(0, 69, 48, 0.08);
  height: 100%;
  transition: box-shadow 0.2s;
}

.attap-public .attap-event-card:hover {
  box-shadow: 0 8px 28px rgba(0, 45, 32, 0.1);
}

.attap-public .fh5co-event {
  position: relative;
  padding-left: 0;
  width: 100%;
  margin: 0;
  float: none;
}

.attap-public .attap-event-card .fh5co-event .date {
  position: static;
  width: auto;
  height: auto;
  border-radius: var(--attap-radius-sm);
  background: var(--attap-white);
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.attap-public .attap-event-card .fh5co-event .date span {
  height: auto;
  width: auto;
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: var(--attap-green-dark);
  font-weight: 700;
}

.attap-public .attap-event-card .fh5co-event h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.attap-public .attap-event-card .fh5co-event h3 a {
  color: var(--attap-green-dark);
}

.attap-public .attap-event-card .fh5co-event p {
  font-size: 0.95rem;
  color: var(--attap-text-muted);
}

.attap-public .attap-event-card .fh5co-event p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--attap-red) !important;
  margin-top: 0.5rem;
}

.attap-public .attap-news-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--attap-green);
  margin: 3rem 0 1rem;
  text-align: center;
}

.attap-public .attap-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media screen and (max-width: 991px) {
  .attap-public .attap-news-grid {
    grid-template-columns: 1fr;
  }
}

.attap-public .attap-news-grid .fh5co-blog {
  border-radius: var(--attap-radius);
  margin: 0;
  float: none;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(0, 69, 48, 0.08);
  box-shadow: 0 4px 18px rgba(0, 45, 32, 0.07);
}

.attap-public .attap-news-grid .fh5co-blog .blog-img-holder {
  height: 200px;
}

.attap-public .attap-news-grid .fh5co-blog .blog-text {
  background: var(--attap-white);
  border: none;
  padding: 1.35rem 1.35rem 1.5rem;
}

.attap-public .attap-news-grid .fh5co-blog .blog-text h3 a {
  color: var(--attap-green-dark);
}

.attap-public .attap-news-grid .fh5co-blog .blog-text .posted_on {
  color: var(--attap-text-muted);
}

.attap-public .attap-news-grid .fh5co-blog .blog-text .btn {
  margin-top: 0.75rem;
}

/* ——— Galeria ——— */
.attap-public #fh5co-gallery.attap-gallery-block {
  background: var(--attap-green-dark) !important;
  padding: clamp(2.5rem, 5vw, 4rem) 0 0;
}

.attap-public #fh5co-gallery.attap-gallery-block .row.text-center {
  margin-bottom: 1.5rem;
}

.attap-public #fh5co-gallery.attap-gallery-block h2 span {
  color: #fff !important;
}

.attap-public #fh5co-gallery.attap-gallery-block h2 span::before,
.attap-public #fh5co-gallery.attap-gallery-block h2 span::after {
  background: var(--attap-yellow) !important;
}

.attap-public .attap-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .attap-public .attap-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.attap-public .attap-gallery-grid .col-padded {
  padding: 0 !important;
  width: 100%;
  float: none;
}

.attap-public .attap-gallery-grid .gallery {
  border-radius: var(--attap-radius-sm);
  min-height: 180px;
  display: block;
  transition: transform 0.3s;
}

.attap-public .attap-gallery-grid .gallery:hover {
  transform: scale(1.02);
}

/* ——— Rodapé ——— */
.attap-public #fh5co-footer.attap-footer-modern {
  background-image: none !important;
  background: linear-gradient(180deg, var(--attap-green-dark) 0%, #002818 100%) !important;
  padding-top: 3.5rem;
}

.attap-public #fh5co-footer.attap-footer-modern .overlay {
  display: none;
}

.attap-public .attap-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
  text-align: left;
}

@media screen and (max-width: 991px) {
  .attap-public .attap-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .attap-public .attap-footer-grid {
    grid-template-columns: 1fr;
  }
}

.attap-public #fh5co-footer.attap-footer-modern .fh5co-widget h3 {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--attap-yellow);
  margin-bottom: 1rem;
}

.attap-public #fh5co-footer.attap-footer-modern .fh5co-widget p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.65;
}

.attap-public #fh5co-footer.attap-footer-modern .fh5co-footer-links a {
  color: rgba(255, 255, 255, 0.82) !important;
}

.attap-public #fh5co-footer.attap-footer-modern .fh5co-footer-links a:hover {
  color: var(--attap-yellow) !important;
}

.attap-public #fh5co-footer.attap-footer-modern .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.attap-public #fh5co-footer.attap-footer-modern .copyright small {
  color: rgba(255, 255, 255, 0.45);
}

.attap-public .gototop a {
  background: var(--attap-yellow) !important;
  color: var(--attap-green-dark) !important;
}

.attap-public .gototop a:hover {
  background: #fff !important;
  color: var(--attap-green-dark) !important;
}

/* Owl carousel (páginas com carrossel genérico) */
.attap-public .owl-theme .owl-dots .owl-dot.active span,
.attap-public .owl-theme .owl-dots .owl-dot:hover span {
  background: var(--attap-red);
}

/* Páginas internas — respiro */
.attap-public #fh5co-contact,
.attap-public #fh5co-about {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Hero interior (uma slide, mais baixo que a home) */
.attap-public #fh5co-hero.attap-hero--page {
  min-height: 0;
  height: auto;
  background: var(--attap-green-dark);
}

.attap-public #fh5co-hero.attap-hero--page .flexslider .slides > li {
  min-height: min(52vh, 460px);
  height: min(52vh, 460px);
}

.attap-public #fh5co-hero.attap-hero--page .flexslider .slides > li::after {
  background: linear-gradient(
    105deg,
    rgba(0, 40, 28, 0.78) 0%,
    rgba(0, 40, 28, 0.4) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.attap-public #fh5co-hero.attap-hero--page .flexslider .slider-text.attap-hero-slider-text {
  min-height: min(52vh, 460px) !important;
  height: min(52vh, 460px) !important;
  padding: 1.5rem 0;
  opacity: 1 !important;
}

.attap-public #fh5co-hero.attap-hero--page .flexslider .flex-control-nav {
  bottom: 18px;
}

/* Hero interior sem FlexSlider — evita clones duplicados (blog, contactos, etc.) */
.attap-public #fh5co-hero.attap-hero--static {
  position: relative;
  min-height: 0 !important;
  height: auto !important;
  background: var(--attap-green-dark) !important;
  background-image: none !important;
  overflow: hidden;
}

.attap-public #fh5co-hero.attap-hero--static .attap-hero-static-inner {
  position: relative;
  min-height: min(52vh, 460px);
  background-image: var(--attap-hero-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.attap-public #fh5co-hero.attap-hero--static .attap-hero-static-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(0, 40, 28, 0.78) 0%,
    rgba(0, 40, 28, 0.4) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.attap-public #fh5co-hero.attap-hero--static .overlay-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(200, 16, 46, 0.12) 0%,
    transparent 40%
  );
}

.attap-public #fh5co-hero.attap-hero--static .container {
  position: relative;
  z-index: 3;
}

.attap-public #fh5co-hero.attap-hero--static .attap-hero-static-panel-wrap {
  display: flex;
  align-items: center;
  min-height: min(52vh, 460px);
  padding: 1.5rem 0;
}

.attap-public #fh5co-hero.attap-hero--static .attap-hero-static-panel-wrap--center {
  justify-content: center;
}

.attap-public #fh5co-hero.attap-hero--static .attap-hero-panel--center {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
  text-align: center;
}

.attap-public #fh5co-hero.attap-hero--static .attap-hero-panel h1,
.attap-public #fh5co-hero.attap-hero--static .attap-hero-panel .heading-section {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.28;
  font-weight: 700;
  color: var(--attap-green-dark) !important;
  margin: 0;
  text-shadow: none;
}

/* ——— Hero dinâmico (páginas interiores; home mantém slider) ——— */
.attap-public #fh5co-hero.attap-hero--dynamic {
  position: relative;
  min-height: min(56vh, 520px);
  overflow: hidden;
  background: var(--attap-green-dark);
}

.attap-public #fh5co-hero.attap-hero--dynamic.attap-hero--dynamic-centered {
  min-height: min(48vh, 440px);
}

.attap-public #fh5co-hero.attap-hero--dynamic .attap-hero-dynamic__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.attap-public #fh5co-hero.attap-hero--dynamic .attap-hero-dynamic__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(0, 28, 20, 0.88) 0%,
    rgba(0, 45, 32, 0.55) 42%,
    rgba(0, 35, 28, 0.35) 100%
  );
}

.attap-public #fh5co-hero.attap-hero--dynamic .attap-hero-dynamic__accent {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
  border: 3px solid rgba(244, 182, 58, 0.35);
  box-shadow: 0 0 0 1px rgba(200, 16, 46, 0.2);
  opacity: 0.9;
}

.attap-public #fh5co-hero.attap-hero--dynamic.attap-hero--dynamic-blog .attap-hero-dynamic__accent {
  opacity: 0.35;
  right: -8%;
}

.attap-public #fh5co-hero.attap-hero--dynamic.attap-hero--dynamic-centered .attap-hero-dynamic__accent {
  opacity: 0.4;
  width: min(55vw, 400px);
  height: min(55vw, 400px);
  right: -10%;
}

.attap-public #fh5co-hero.attap-hero--dynamic .attap-hero-dynamic__container {
  position: relative;
  z-index: 3;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.attap-public #fh5co-hero.attap-hero--dynamic .attap-hero-dynamic__container--center {
  display: flex;
  align-items: center;
  min-height: min(48vh, 440px);
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.attap-public #fh5co-hero.attap-hero--dynamic .attap-hero-dynamic__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.attap-public #fh5co-hero.attap-hero--dynamic .attap-hero-dynamic__copy {
  color: #fff;
}

.attap-public #fh5co-hero.attap-hero--dynamic .attap-hero-dynamic__kicker {
  color: var(--attap-yellow) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px !important;
  font-weight: 700;
  margin-bottom: 0.65rem !important;
}

.attap-public #fh5co-hero.attap-hero--dynamic .attap-hero-dynamic__title {
  color: #fff !important;
  font-size: clamp(1.65rem, 3.8vw, 2.35rem) !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.attap-public #fh5co-hero.attap-hero--dynamic .attap-hero-dynamic__lead {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
}

.attap-public #fh5co-hero.attap-hero--dynamic.attap-hero--dynamic-centered .attap-hero-dynamic__lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 40rem;
}

.attap-public #fh5co-hero.attap-hero--dynamic .attap-hero-dynamic__aside {
  margin-top: 1.5rem;
}

@media screen and (min-width: 992px) {
  .attap-public #fh5co-hero.attap-hero--dynamic .attap-hero-dynamic__aside {
    margin-top: 0;
  }
}

/* Aside blog — mini cartões */
.attap-public .attap-hero-dynamic__cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.attap-public .attap-hero-dynamic-card {
  display: block;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff !important;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.attap-public .attap-hero-dynamic-card:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(244, 182, 58, 0.55);
  transform: translateY(-2px);
  color: #fff !important;
}

.attap-public .attap-hero-dynamic-card__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--attap-yellow);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.attap-public .attap-hero-dynamic-card__date {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.attap-public .attap-hero-dynamic-card__line {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  opacity: 0.95;
}

.attap-public .attap-hero-dynamic-card__cta {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--attap-yellow) !important;
}

.attap-public .attap-hero-dynamic__empty-hint {
  margin: 0;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

/* Aside decorativo (páginas default) */
.attap-public .attap-hero-dynamic__decor {
  position: relative;
  height: 220px;
  margin: 0 auto;
  max-width: 280px;
}

.attap-public .attap-hero-dynamic__ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid rgba(244, 182, 58, 0.45);
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.attap-public .attap-hero-dynamic__ring--2 {
  width: 120px;
  height: 120px;
  right: 2.5rem;
  border-color: rgba(200, 16, 46, 0.4);
}

.attap-public .attap-hero-dynamic__bar {
  position: absolute;
  left: 0;
  bottom: 2rem;
  width: 4px;
  height: 120px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--attap-yellow), var(--attap-red));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Artigos / detalhe — faixa compacta */
.attap-public .attap-page-hero--compact {
  background: linear-gradient(135deg, var(--attap-green-dark) 0%, var(--attap-green) 100%);
  padding: clamp(2rem, 5vw, 3.25rem) 0;
  border-bottom: 4px solid var(--attap-yellow);
}

.attap-public .attap-page-hero--compact .attap-hero-kicker {
  color: var(--attap-yellow);
  margin-bottom: 0.5rem;
}

.attap-public .attap-page-hero--compact h1 {
  color: #fff !important;
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
}

.attap-public .attap-page-hero--compact .attap-page-meta {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

.attap-public .attap-article-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) 20px 4rem;
}

.attap-public .attap-article-shell h1 {
  font-size: 1.75rem;
}

.attap-public .attap-article-shell .author-by {
  color: var(--attap-text-muted);
  margin-bottom: 1.5rem;
}

.attap-public .attap-article-shell .blog-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.attap-public .attap-article-shell figure {
  margin: 1.5rem 0;
  border-radius: var(--attap-radius);
  overflow: hidden;
  box-shadow: var(--attap-shadow);
}

/* Contactos — mensagens pós-envio */
.attap-public .attap-contact-flash {
  margin-bottom: 1.5rem;
  border-radius: var(--attap-radius);
}

/* Contactos — grelha */
.attap-public .attap-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

@media screen and (max-width: 991px) {
  .attap-public .attap-contact-grid {
    grid-template-columns: 1fr;
  }
}

.attap-public .attap-contact-card {
  background: var(--attap-cream);
  border-radius: var(--attap-radius);
  padding: 1.75rem;
  border: 1px solid rgba(0, 69, 48, 0.08);
}

.attap-public .attap-contact-card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

/* Formulário de contactos — hover / foco */
.attap-public .attap-contact-form-shell {
  transition:
    box-shadow 0.28s ease,
    transform 0.28s ease,
    border-color 0.28s ease,
    background-color 0.28s ease;
}

.attap-public .attap-contact-form-shell:hover,
.attap-public .attap-contact-form-shell:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 42px rgba(0, 45, 32, 0.14);
  border-color: rgba(0, 69, 48, 0.2);
  background-color: #fff;
}

.attap-public .attap-contact-form-hint {
  margin: 0 0 0.75rem;
  font-size: 13px;
}

/* Blog / listagens */
.attap-public .attap-blog-page .attap-news-grid {
  margin-bottom: 2rem;
}

.attap-public .attap-doc-grid .fh5co-blog {
  border-radius: var(--attap-radius);
  border: 1px solid rgba(0, 69, 48, 0.08);
  box-shadow: 0 4px 18px rgba(0, 45, 32, 0.07);
  margin-bottom: 0;
}

.attap-public #fh5co-single-content {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* Carregar mais (listagens públicas) */
.attap-public .attap-load-more-wrap {
  margin-bottom: 0.5rem;
}

.attap-public .attap-load-more.btn-default {
  border-color: rgba(0, 69, 48, 0.25);
  color: var(--attap-green-dark);
}

.attap-public .attap-load-more.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

/* Eventos — rolagem horizontal (cartões em fila; ver mais à direita) */
/*
 * style.css: .js .animate-box { opacity: 0 } até main.js Waypoint animar.
 * O Waypoint só reage ao scroll da página (vertical); cartões fora da faixa
 * horizontal nunca recebem .animated-fast e ficam invisíveis mas clicáveis.
 */
.attap-public .attap-events-hscroll .animate-box {
  opacity: 1;
}

.attap-public .attap-events-hscroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem;
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 12px;
  padding-right: 12px;
  scroll-snap-type: x proximity;
}

.attap-public .attap-events-hscroll__track {
  display: flex;
  flex-wrap: nowrap;
  margin-left: 0 !important;
  margin-right: 0 !important;
  gap: 1rem;
}

.attap-public .attap-events-hscroll__track::after {
  content: "";
  flex: 0 0 8px;
}

.attap-public .attap-events-hscroll__track > [class*="col-"] {
  float: none !important;
  flex: 0 0 min(340px, calc(100vw - 56px));
  max-width: min(340px, calc(100vw - 56px));
  width: auto !important;
  scroll-snap-align: start;
}

.attap-public .attap-events-hscroll__track > .col-md-12:only-child {
  flex: 1 1 100%;
  max-width: 100%;
}

/* SweetAlert2 — site público (modal no body; não usar .attap-public no popup) */
.swal2-popup.attap-swal-theme {
  border-radius: var(--attap-radius, 14px) !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}

.swal2-popup.attap-swal-theme .swal2-styled.swal2-confirm {
  background: var(--attap-red, #c8102e) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.5rem 1.25rem !important;
  font-weight: 600 !important;
}

.swal2-popup.attap-swal-theme .swal2-styled.swal2-confirm:focus {
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.35) !important;
}

.swal2-popup.attap-swal-theme .swal2-styled.swal2-cancel {
  border-radius: 999px !important;
  font-weight: 600 !important;
}
