/* =====================================================================
   CLT - Sociedade de Advogados — folha de estilos única
   (substitui o style.css antigo + os <style> repetidos em cada página)
   ===================================================================== */

:root {
  --clt-blue: #017f92;
  --clt-blue-dark: #143d4f;
  --clt-ink: #0b2a30;
  --clt-dark: #1a2b2d;
  --clt-teal: #0b5366;
  --clt-footer: #adc6d9;
  --text: #333;
  --text-soft: #666;
  --line: #eee;
  --bg: #fff;
  --bg-soft: #f4f7f9;
  --header-h: 67px;
  --radius: 4px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }
h1, h2, h3 { margin-bottom: 1rem; font-weight: 600; line-height: 1.25; }
h2 { color: var(--clt-blue); }
p { margin-bottom: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 20000; }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 2px solid var(--clt-blue); outline-offset: 2px; }

.container { width: 100%; max-width: 1920px; margin: 0 auto; padding: 0 5%; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* Alinhamentos do editor (conteúdo vindo do BackOffice) */
.ql-align-justify { text-align: justify; }
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.rich p:last-child { margin-bottom: 0; }
.rich ul, .rich ol { padding-left: 1.4em; margin-bottom: 1rem; }
.rich a { color: var(--clt-blue); }

/* ---------------------------------------------------------------- HEADER */
.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-flex { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo, .social-icons { flex: 1; }
.logo img { height: 35px; width: auto; }
.main-nav ul { list-style: none; display: flex; gap: 25px; justify-content: center; align-items: center; }
.main-nav a {
  text-decoration: none;
  color: var(--clt-blue-dark);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding-bottom: 5px;
  white-space: nowrap;
  transition: color .3s;
}
.main-nav a::after { content: ""; position: absolute; width: 0; height: 2px; background: var(--clt-blue); bottom: 0; left: 0; transition: width .3s; }
.main-nav a:hover, .main-nav a.active { color: var(--clt-blue); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a[aria-disabled="true"] { cursor: default; }
.main-nav a[aria-disabled="true"]:hover { color: var(--clt-blue-dark); }
.main-nav a[aria-disabled="true"]::after { display: none; }

.social-icons { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.social-icons a {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; font-size: .9rem; transition: transform .3s, opacity .3s, box-shadow .3s;
}
.social-icons a.facebook { background: #1877F2; }
.social-icons a.instagram { background: #E4405F; }
.social-icons a.linkedin { background: #0077B5; }
.social-icons a:hover { transform: translateY(-2px); opacity: .85; box-shadow: 0 4px 8px rgba(0, 0, 0, .15); }

.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.hamburger span { width: 27px; height: 3px; background: var(--clt-teal); border-radius: 2px; transition: .3s; display: block; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1100px) { .main-nav ul { gap: 16px; } .main-nav a { font-size: .85rem; } }
@media (max-width: 960px) {
  .logo { flex: 0 0 auto; }
  .logo img { height: 28px; }
  .social-icons { display: none; }
  .hamburger { display: flex; }
  .main-nav { position: static; }
  .main-nav ul {
    display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
    background: #fff; padding: 20px 0; border-top: 1px solid #ddd; box-shadow: 0 10px 20px rgba(0,0,0,.08);
    gap: 18px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav ul.active { display: flex; animation: slideDown .3s ease forwards; }
  .main-nav a { font-size: 1rem; }
  .mobile-social { display: flex !important; gap: 14px; padding-top: 6px; }
}
.mobile-social { display: none !important; }
.mobile-social a { width: 36px; height: 36px; padding: 0; }
.mobile-social a::after { display: none; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- COOKIES */
#cookie-banner {
  display: none; position: fixed; bottom: 0; left: 0; width: 100%;
  background: #f1f1f1; color: #000; padding: 15px; text-align: center;
  border-top: 1px solid #ccc; z-index: 10000; font-size: 14px;
}
#cookie-banner.show { display: block; }
#cookie-banner p { display: inline; margin: 0; padding-right: 10px; }
#cookie-banner a { color: var(--clt-blue); text-decoration: underline; }
#cookie-banner button { background: var(--clt-blue); color: #fff; border: 0; padding: 8px 15px; cursor: pointer; border-radius: 4px; font-size: 14px; }
#cookie-banner button:hover { background: var(--clt-blue-dark); }

/* ---------------------------------------------------------------- FOOTER */
.ultra-slim-footer { background: var(--clt-footer); padding: 10px 0; color: #0b1e21; border-top: 1px solid rgba(0,0,0,.05); flex-shrink: 0; }
.footer-linear-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-item { font-size: .7rem; line-height: 1.5; flex-shrink: 0; }
.item-logo img { height: 25px; width: auto; filter: brightness(.9); }
.line-bold { font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.line-sub, .legal-links { color: #445866; }
.footer-item a { color: inherit; text-decoration: none; transition: opacity .3s; }
.footer-item a:hover { opacity: .7; }
.copyright { font-weight: 700; text-align: right; }
@media (max-width: 992px) {
  .footer-linear-container { flex-direction: column; text-align: center; gap: 15px; padding: 20px; }
  .copyright { text-align: center; }
}

/* ---------------------------------------------------------------- COMUNS */
.btn { display: inline-block; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: 500; transition: all .3s; }
.primary-btn-v2 { background: transparent; color: #fff; border: 2px solid #fff; padding: 15px 40px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: background .3s; }
.primary-btn-v2:hover { background: rgba(255,255,255,.12); }

.page-hero {
  position: relative; background-size: cover; background-position: center; background-color: var(--clt-ink);
  padding: 100px 0; text-align: center; color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.page-hero picture, .page-hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero .hero-bg { object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(11,42,48,.6), rgba(11,42,48,.85)); z-index: 1; }
.page-hero .container { position: relative; z-index: 2; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 15px; letter-spacing: 1.5px; color: #fff; }
.page-subtitle { font-size: clamp(.9rem, 2.5vw, 1.1rem); font-weight: 300; max-width: 800px; margin: 0 auto; opacity: .95; color: #fff; }
@media (max-width: 768px) { .page-hero { padding: 80px 0; } }

/* Tabs partilhadas (Sobre / Competências) */
.comp-tabs { display: flex; border-bottom: 2px solid #e8e8e8; margin-bottom: 50px; }
.comp-tab {
  flex: 1; padding: 18px 30px; background: none; border: 2px solid #e8e8e8; border-bottom: none; cursor: pointer;
  font-size: .95rem; font-weight: 700; color: var(--text-soft); letter-spacing: .5px; transition: all .3s;
}
.comp-tab + .comp-tab { border-left: none; }
.comp-tab.active { background: var(--clt-blue); color: #fff; border-color: var(--clt-blue); }
.comp-tab:not(.active):hover { background: #f0f8fa; color: var(--clt-blue); }
.tab-pane[hidden] { display: none !important; }
@media (max-width: 768px) { .comp-tab { padding: 14px 12px; font-size: .85rem; } }
@media (max-width: 560px) {
  .comp-tabs.stack { flex-direction: column; }
  .comp-tabs.stack .comp-tab { border: 2px solid #e8e8e8; border-top: none; }
  .comp-tabs.stack .comp-tab:first-child { border-top: 2px solid #e8e8e8; }
}

.section-subtitle {
  font-size: 2rem; color: var(--clt-ink); border-bottom: 2px solid var(--clt-blue);
  display: inline-block; padding-bottom: 4px; margin: 40px 0 24px; line-height: 1.2;
}

/* ---------------------------------------------------------------- HOME */
.hero-video-container { position: relative; width: 100%; height: calc(100vh - var(--header-h)); min-height: 480px; overflow: hidden; background: var(--clt-ink); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); z-index: 2; }
.hero-text-container { position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 100%; padding: 20px; }
.hero-subtitle { font-size: clamp(1rem, 3vw, 1.25rem); font-weight: 300; color: #fff; margin-bottom: 30px; }
.hero-partner-wrapper { position: absolute; top: 30px; right: 60px; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.partner-label { font-size: 11px; text-transform: uppercase; font-weight: 700; color: #fff; letter-spacing: 1.5px; text-shadow: 0 2px 4px rgba(0,0,0,.3); }
.hero-partner-badge { background: #fff; padding: 10px 30px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.1); transition: transform .3s, box-shadow .3s; display: flex; }
.hero-partner-badge:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,.15); }
.hero-partner-badge img { height: 75px; width: auto; }
@media (max-width: 768px) {
  .hero-partner-wrapper { top: 20px; right: 20px; }
  .partner-label { font-size: 9px; }
  .hero-partner-badge { padding: 8px 15px; }
  .hero-partner-badge img { height: 30px; }
}

.slideshow-section { padding: clamp(40px, 8vh, 100px) 0; }
.carousel-container { position: relative; padding: 0 40px; overflow: hidden; }
@media (min-width: 768px) { .carousel-container { padding: 0 60px; } }
.carousel-track { display: flex; will-change: transform; touch-action: pan-y; }
.carousel-item { flex: 0 0 calc(100% / 3); padding: 10px; }
.carousel-item img { width: 100%; height: 460px; object-fit: cover; filter: grayscale(100%); border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.5); color: #fff; border: 0;
  font-size: 32px; line-height: 1; padding: 12px 18px; cursor: pointer; border-radius: 4px; z-index: 20;
}
.carousel-btn:hover { background: rgba(0,0,0,.8); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
@media (max-width: 900px) { .carousel-item { flex-basis: 50%; } .carousel-item img { height: 380px; } }
@media (max-width: 600px) { .carousel-item { flex-basis: 100%; } .carousel-item img { height: 320px; } .carousel-btn { font-size: 24px; padding: 8px 12px; } }

/* ---------------------------------------------------------------- SOBRE */
.sobre-content { padding: 40px 0 80px; max-width: 1400px; margin: 0 auto; }
.editorial-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: stretch; }
.text-section { margin-bottom: 40px; }
.text-section h3 { color: var(--clt-blue); font-size: 1rem; font-weight: 800; margin-bottom: 15px; text-transform: uppercase; }
.text-section p { line-height: 1.8; color: #444; text-align: justify; font-size: .9rem; }
.editorial-image { display: flex; }
.editorial-image img { width: 100%; height: 100%; object-fit: cover; object-position: right; border-radius: 4px; box-shadow: 0 15px 40px rgba(0,0,0,.1); }
.valores-grid-v4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.valor-item { padding: 30px; background: #fff; border: 1px solid #f0f0f0; text-align: center; transition: transform .3s, border-color .3s, box-shadow .3s; }
.valor-item:hover { transform: translateY(-5px); border-color: var(--clt-blue); box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.valor-icon-box { font-size: 2.2rem; color: var(--clt-blue); margin-bottom: 20px; }
.valor-item h4 { color: var(--clt-ink); font-weight: 800; margin-bottom: 15px; text-transform: uppercase; font-size: 1.1rem; }
.valor-item p { font-size: .9rem; color: var(--text-soft); margin: 0; }
.equipa-stats-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.stats-headline { margin-bottom: 40px; }
.stats-label { color: var(--clt-blue); text-transform: uppercase; font-weight: 700; letter-spacing: 2px; font-size: .8rem; }
.stats-headline h2 { font-size: 1.6rem; font-weight: 800; color: var(--clt-ink); margin: 10px 0; }
.stats-headline p { color: #888; font-size: .85rem; }
.charts-compact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.chart-item h5, .age-chart-section h5 { font-size: .8rem; text-transform: uppercase; color: var(--text-soft); margin-bottom: 15px; text-align: center; }
.age-chart-section h5 { text-align: left; }
.canvas-wrapper { height: 200px; position: relative; }
.bar-wrapper { height: 220px; position: relative; }
.stats-footer-quotes { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.stats-footer-quotes p { font-size: .85rem; font-style: italic; color: #777; margin-bottom: 10px; }
.stats-image-side img { width: 100%; border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,.1); }
@media (max-width: 991px) {
  .editorial-grid, .equipa-stats-layout { grid-template-columns: 1fr; gap: 30px; }
  .valores-grid-v4 { grid-template-columns: 1fr 1fr; }
  .editorial-image, .stats-image-side { order: -1; }
  .stats-headline, .stats-footer-quotes { text-align: center; }
  .charts-compact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) { .valores-grid-v4 { grid-template-columns: 1fr; } .canvas-wrapper { height: 220px; } .bar-wrapper { height: 250px; } }

/* ---------------------------------------------------------------- EQUIPA (grelha) */
.equipa-page > .container { max-width: 1300px; padding-top: 40px; padding-bottom: 60px; }
.equipa-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.membro-link { display: block; text-decoration: none; color: inherit; }
.membro-card { position: relative; overflow: hidden; aspect-ratio: 2 / 3; background: #e9eef0; }
.membro-card .membro-foto {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  /* sem translateZ/will-change: camadas GPU reamostram a imagem e acentuam o moiré */
  filter: grayscale(100%); transition: filter .5s ease;
}
.membro-link:hover .membro-foto, .membro-link:focus-visible .membro-foto { filter: none; }
.membro-link:hover .membro-card { box-shadow: 0 20px 40px rgba(0,0,0,.15); }
.membro-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,.8); color: #fff; padding: 20px;
  transition: opacity .3s, transform .3s; opacity: 0; transform: translateY(100%);
}
.membro-link:hover .membro-overlay, .membro-link:focus-visible .membro-overlay { opacity: 1; transform: none; }
.overlay-nome { font-size: 1rem; font-weight: 700; margin-bottom: 5px; text-transform: uppercase; color: #fff; line-height: 1.25; }
.overlay-cargo { font-size: .75rem; color: #2fb4c7; font-weight: 600; text-transform: uppercase; margin: 0; line-height: 1.4; }
.membro-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 800; color: #9fb3ba; }
@media (max-width: 1200px) { .equipa-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 960px) { .equipa-grid { grid-template-columns: repeat(3, 1fr); } }
/* Ecrãs táteis: não há hover — nome e cargo sempre visíveis e foto a cores */
@media (hover: none), (max-width: 650px) {
  .membro-card .membro-foto { filter: none; }
  .membro-overlay { opacity: 1; transform: none; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.35) 80%, transparent); padding: 28px 12px 12px; }
}
@media (max-width: 650px) {
  .equipa-grid { grid-template-columns: repeat(2, 1fr); }
  .overlay-nome { font-size: .85rem; }
  .overlay-cargo { font-size: .68rem; }
  .section-subtitle { font-size: 1.4rem; }
}

/* ---------------------------------------------------------------- ADVOGADO */
.advogado-v3 { background: #f2f2f2; }
.adv-main-container { display: flex; align-items: stretch; max-width: 1600px; margin: 0 auto; }
.adv-left-col { flex: 1.5; padding: 60px 80px 40px 10%; display: flex; flex-direction: column; min-width: 0; }
.adv-header-v3 { margin-bottom: 50px; }
.adv-breadcrumbs { font-size: 10px; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 30px; font-weight: 700; display: flex; gap: 5px; flex-wrap: wrap; }
.adv-breadcrumbs a { color: #999; text-decoration: none; }
.adv-breadcrumbs a:hover { color: var(--clt-blue); }
.adv-breadcrumbs span[aria-current] { color: var(--clt-dark); }
.adv-name { font-size: 2.5rem; font-weight: 800; color: var(--clt-dark); margin: 0 0 5px; letter-spacing: -.5px; text-transform: uppercase; line-height: 1.1; }
.adv-position { font-size: 1.05rem; color: var(--clt-blue); font-weight: 600; letter-spacing: 1.5px; margin-bottom: 20px; text-transform: uppercase; }
.adv-mini-bio { font-size: .85rem; line-height: 1.5; color: var(--text-soft); margin-bottom: 25px; max-width: 600px; }
.contacto-icons { display: flex; gap: 12px; flex-wrap: wrap; }
.contacto-btn-small {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--clt-blue); color: var(--clt-blue);
  display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: .95rem; transition: all .3s;
}
.contacto-btn-small:hover { background: var(--clt-blue); color: #fff; transform: translateY(-2px); }
.adv-tabs { display: flex; gap: 40px; border-bottom: 2px solid #ddd; margin-bottom: 45px; }
.tab-btn-link { padding: 0 0 12px; font-size: 11px; font-weight: 800; color: #777; text-decoration: none; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: -2px; border-bottom: 3px solid transparent; transition: color .3s; }
.tab-btn-link.active { color: var(--clt-dark); border-bottom-color: var(--clt-dark); }
.tab-btn-link:hover { color: var(--clt-blue); }
.adv-bio { font-size: .95rem; line-height: 1.7; color: #444; margin-bottom: 40px; max-width: 800px; }
.adv-bio p { margin-bottom: 15px; }
.adv-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 80px; margin: 20px 0 40px; max-width: 900px; }
.info-item h3 { font-size: 12px; font-weight: 800; color: #000; margin-bottom: 16px; letter-spacing: 1.6px; text-transform: uppercase; }
.info-item .rich { font-size: .95rem; line-height: 1.6; color: #444; }
.info-item .rich p { margin-bottom: 4px; }
.adv-right-col { flex: 1; position: relative; min-width: 0; }
.adv-image-container { position: sticky; top: calc(var(--header-h) + 30px); height: calc(100vh - var(--header-h) - 60px); max-height: 1000px; overflow: hidden; }
.adv-image-container img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.adv-relacionado-v3 { background: #f9f9f9; padding: 60px 15%; }
.titulo-seccao-v3 { font-size: 1.1rem; font-weight: 700; color: var(--clt-blue); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 40px; text-align: center; }
@media (max-width: 991px) {
  .adv-main-container { flex-direction: column; }
  .adv-left-col { padding: 40px 20px; }
  .adv-image-container { position: relative; top: 0; height: auto; aspect-ratio: 2 / 3; max-height: 80vh; }
  .adv-name { font-size: 2rem; }
  .adv-info-grid { grid-template-columns: 1fr; gap: 30px; }
  .adv-relacionado-v3 { padding: 40px 20px; }
}

/* ---------------------------------------------------------------- COMPETÊNCIAS */
.competencias-content { padding: 80px 0 60px; max-width: 1500px; margin: 0 auto; }
.competencias-content .comp-tabs { margin-bottom: 25px; }
.comp-search-wrapper { position: relative; margin-bottom: 40px; }
.comp-search { width: 100%; padding: 16px 50px 16px 20px; border: 2px solid #e8e8e8; font-size: .95rem; color: #333; outline: none; transition: border-color .3s; font-family: inherit; }
.comp-search:focus { border-color: var(--clt-ink); }
.comp-search-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #888; pointer-events: none; }
.comp-grid-text, .comp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.comp-text-card {
  display: flex; align-items: center; justify-content: center; background: var(--clt-blue);
  border: 2px solid var(--clt-blue); /* borda fixa: sem "salto" no hover */
  border-radius: 8px; padding: 25px 15px; text-align: center; min-height: 90px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05); transition: background .3s, transform .3s, box-shadow .3s;
}
.comp-text-card h3 { margin: 0; font-size: .95rem; font-weight: 700; color: #fff; line-height: 1.4; transition: color .3s; }
.comp-text-card:hover { background: #fff; transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.comp-text-card:hover h3 { color: var(--clt-blue); }
.comp-card { position: relative; height: 250px; overflow: hidden; border-radius: 4px; background: #c5cdd3; }
.comp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.165,.84,.44,1); }
.comp-card:hover img { transform: scale(1.04); }
.comp-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 50%, transparent 100%); }
.comp-card-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 25px; margin: 0; color: #fff; font-size: 1.1rem; font-weight: 700; line-height: 1.3; z-index: 2; }
.comp-no-results { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: #888; }
@media (max-width: 1024px) { .comp-grid { grid-template-columns: repeat(2, 1fr); } .comp-grid-text { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .comp-grid { grid-template-columns: 1fr; }
  .comp-grid-text { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .comp-text-card { padding: 20px 12px; min-height: 80px; }
  .comp-text-card h3 { font-size: .85rem; }
  .comp-card { height: 220px; }
}

/* ---------------------------------------------------------------- NOTÍCIAS (cartão único) */
.noticias-section { padding: 80px 0; }
.noticias-grid { max-width: 1350px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.noticias-grid.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.noticia-item {
  display: flex; flex-direction: column; border: 1px solid #f0f0f0; background: #fff; text-decoration: none; color: inherit;
  transition: box-shadow .4s cubic-bezier(.165,.84,.44,1), border-color .4s; position: relative; z-index: 1;
}
.noticia-item:hover { z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,.08); border-color: var(--clt-blue); }
.noticia-img-wrapper { width: 100%; aspect-ratio: 4 / 3; max-height: 240px; overflow: hidden; background: #e9eef0; }
.noticia-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.noticia-item:hover .noticia-img-wrapper img { transform: scale(1.06); }
.noticia-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--clt-blue-dark), var(--clt-blue)); }
.noticia-img-placeholder img { width: 45% !important; height: auto !important; object-fit: contain !important; filter: brightness(0) invert(1); opacity: .85; transform: none !important; }
.noticia-content-inner { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.noticia-data { font-size: .7rem; color: var(--clt-blue); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; display: block; }
.noticia-titulo-modern {
  font-weight: 700; font-size: .9rem; line-height: 1.4; color: var(--clt-ink); margin: 0 0 15px; min-height: 2.8em;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.noticia-resumo-modern {
  font-size: .78rem; color: var(--text-soft); line-height: 1.6; margin-bottom: 25px; flex-grow: 1;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.noticia-footer-modern { display: flex; justify-content: flex-end; padding-top: 15px; border-top: 1px solid #f5f5f5; }
.read-more-indicator { font-size: .7rem; font-weight: 800; color: var(--clt-blue); letter-spacing: 1px; display: flex; align-items: center; gap: 5px; transition: transform .3s; }
.noticia-item:hover .read-more-indicator { transform: translateX(5px); }
.btn-load-more-container { border-top: 2px solid #000; margin: 40px auto 0; max-width: 1350px; }
.btn-ver-mais { background: none; border: 0; padding-top: 15px; font-weight: 800; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; gap: 8px; letter-spacing: .5px; text-transform: uppercase; color: #000; }
.btn-ver-mais:hover { color: var(--text-soft); }
.btn-ver-mais[disabled] { opacity: .5; cursor: wait; }
.empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 20px; color: #888; background: #fafafa; border: 1px dashed #ddd; border-radius: 6px; text-align: center; }
.empty-state i { font-size: 2rem; color: #bbb; }
@media (max-width: 1024px) { .noticias-grid, .noticias-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .noticias-grid, .noticias-grid.cols-3 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- NOTÍCIA (detalhe) */
.noticia-detalhe-page { padding-top: 30px; }
.noticia-detalhe-page .container { max-width: 1300px; padding: 0 20px; }
.breadcrumbs { font-size: .8rem; color: #888; margin-bottom: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumbs a { color: #888; text-decoration: none; }
.breadcrumbs a:hover { color: var(--clt-blue); }
.breadcrumbs-sep { margin: 0 8px; color: #ccc; }
.breadcrumbs [aria-current] { color: var(--clt-blue); font-weight: 600; }
.noticia-hero { padding: 20px 0 30px; }
.noticia-header-flex { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.noticia-titulo-full { font-size: 1.8rem; font-weight: 800; color: var(--clt-ink); line-height: 1.2; margin-bottom: 20px; max-width: 850px; }
.noticia-meta-full { display: flex; flex-wrap: wrap; gap: 8px 25px; color: var(--text-soft); font-size: .9rem; }
.meta-item { display: flex; align-items: center; gap: 8px; }
.meta-item i { color: var(--clt-blue); }
.share-section { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.share-label { font-size: .7rem; color: #888; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.share-links-mini { display: flex; gap: 10px; }
.share-links-mini a, .share-links-mini button { width: 36px; height: 36px; border-radius: 50%; color: #fff; border: 0; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: .9rem; transition: opacity .3s, transform .3s; cursor: pointer; }
.share-links-mini .facebook { background: #1877F2; }
.share-links-mini .x-twitter { background: #000; }
.share-links-mini .linkedin { background: #0077B5; }
.share-links-mini .copy { background: #6b7c80; }
.share-links-mini a:hover, .share-links-mini button:hover { opacity: .8; transform: translateY(-3px); }
.noticia-corpo { padding: 30px 0; }
.noticia-intro-flex { display: flex; gap: 30px; margin-bottom: 30px; align-items: flex-start; }
.noticia-intro-img { flex: 0 0 400px; max-width: 400px; }
.noticia-intro-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.noticia-resumo-lead { flex: 1; font-size: 1rem; color: #444; line-height: 1.8; }
.noticia-conteudo-principal { font-size: .95rem; line-height: 1.75; color: #444; max-width: 900px; }
.noticia-conteudo-principal p { margin-bottom: 20px; }
.noticia-documentos { margin: 30px 0; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-download-full { display: inline-flex; align-items: center; gap: 10px; background: var(--clt-blue); color: #fff; text-decoration: none; padding: 12px 18px; border-radius: 6px; font-weight: 600; transition: background .3s; }
.btn-download-full:hover { background: var(--clt-blue-dark); }
.noticia-galeria { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.noticia-galeria h3 { font-size: 1.1rem; color: var(--clt-ink); }
.galeria-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.galeria-item { display: block; border-radius: 6px; overflow: hidden; cursor: zoom-in; border: 0; padding: 0; background: none; }
.galeria-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.galeria-item:hover img { transform: scale(1.04); }
.equipa-relacionada-noticia { padding: 30px 0 50px; border-top: 1px solid var(--line); }
.equipa-relacionada-noticia h2 { font-size: 1.1rem; font-weight: 700; color: var(--clt-dark); margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.equipa-relacionada-noticia h2::after { content: ""; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--clt-blue); }
.equipa-grid-small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.membro-card-small { display: flex; align-items: center; gap: 15px; background: #fdfdfd; padding: 15px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; transition: all .3s; }
.membro-card-small:hover { border-color: var(--clt-blue); box-shadow: 0 5px 15px rgba(0,0,0,.05); transform: translateY(-2px); }
.membro-avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #e9eef0; }
.membro-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.membro-info h5 { margin: 0; font-size: 1rem; color: var(--clt-ink); }
.membro-info span { font-size: .8rem; color: #888; }
@media (max-width: 991px) {
  .noticia-header-flex, .noticia-intro-flex { flex-direction: column; align-items: stretch; }
  .share-section { align-items: flex-start; }
  .noticia-intro-img { flex: none; max-width: 100%; }
  .noticia-titulo-full { font-size: 1.4rem; }
  .equipa-grid-small { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) { .galeria-grid { grid-template-columns: repeat(2, 1fr); } .equipa-grid-small { grid-template-columns: 1fr; } }

/* Lightbox (galeria) */
.lightbox { position: fixed; inset: 0; background: rgba(5,15,18,.94); z-index: 20000; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #ccc; font-size: .85rem; }

/* ---------------------------------------------------------------- PARCERIAS */
.parcerias-page { background: #fcfcfc; }
.parcerias-content { padding: 80px 0; max-width: 1400px; margin: 0 auto; }
.parcerias-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.parceiro-card {
  background: #fff; border: 1px solid var(--line); padding: 30px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  cursor: pointer; transition: all .3s; box-shadow: 0 4px 10px rgba(0,0,0,.02); text-align: left; font-size: inherit; color: inherit; width: 100%;
}
.parceiro-card:hover { border-color: var(--clt-blue); transform: translateY(-3px); }
.parceiro-card.active { background: var(--clt-blue); color: #fff; border-color: var(--clt-blue); }
.parceiro-card i { transition: transform .3s; }
.parceiro-card.active i { transform: rotate(180deg); }
.parceiro-name { font-weight: 700; text-transform: uppercase; font-size: .9rem; letter-spacing: .5px; }
.detail-content { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 50px; margin-top: 20px; box-shadow: 0 20px 40px rgba(0,0,0,.05); animation: fadeIn .4s ease-out; }
.detail-flex { display: flex; gap: 50px; align-items: center; }
.detail-logo { flex: 0 0 200px; display: flex; justify-content: center; }
.detail-logo img { max-width: 180px; max-height: 120px; width: auto; height: auto; object-fit: contain; }
.detail-info { flex: 1; }
.detail-info h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--clt-dark); }
.detail-info .rich p { font-size: 1rem; line-height: 1.8; color: var(--text-soft); text-align: justify; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn-ver-noticias {
  background: transparent; border: 2px solid var(--clt-blue); color: var(--clt-blue); padding: 12px 24px; font-size: .85rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all .3s; display: inline-flex; align-items: center; gap: 10px; border-radius: 4px; text-decoration: none;
}
.btn-ver-noticias:hover { background: var(--clt-blue); color: #fff; }
.btn-ver-noticias.active { background: var(--clt-ink); border-color: var(--clt-ink); color: #fff; }
.noticias-relacionadas-wrapper { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.noticias-relacionadas-title { font-size: 1.3rem; font-weight: 700; color: var(--clt-ink); margin-bottom: 25px; padding-left: 15px; border-left: 4px solid var(--clt-blue); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 991px) {
  .parcerias-grid { grid-template-columns: 1fr; }
  .detail-content { padding: 30px 20px; }
  .detail-flex { flex-direction: column; text-align: center; gap: 30px; }
  .detail-info .rich p { text-align: left; }
  .detail-actions { justify-content: center; }
}

/* ---------------------------------------------------------------- CONTACTOS */
.contact-wrapper { padding: 80px 0 40px; }
.contact-flex { display: flex; gap: 40px; max-width: 1600px; margin: 0 auto; }
.contact-info, .contact-form { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,.08); }
.contact-info { flex: 0 0 38%; }
.contact-form { flex: 1; }
.contact-info h3, .contact-form h3, .contact-map-section h3 { font-size: 1.25rem; color: var(--clt-ink); display: flex; align-items: center; gap: 10px; }
.contact-info h3 i, .contact-form h3 i, .contact-map-section h3 i { color: var(--clt-blue); }
.contact-info address { font-style: normal; }
.contact-info p { margin-bottom: 18px; }
.contact-info strong i { color: var(--clt-blue); width: 18px; }
.contact-info a { color: #2b2b2b; text-decoration: none; }
.contact-info a:hover { color: var(--clt-blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { font-weight: 600; margin-bottom: 6px; display: block; font-size: .9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-family: inherit; font-size: 1rem; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--clt-blue); outline: none; box-shadow: 0 0 0 3px rgba(1,127,146,.12); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: #555; margin: 5px 0 20px; }
.form-check input { margin-top: 4px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--clt-blue); }
.form-check a { color: var(--clt-blue); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.btn-enviar { padding: 13px 28px; background: #003049; color: #fff; border: 0; border-radius: 6px; cursor: pointer; font-size: 1rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.btn-enviar:hover { background: #022535; }
.btn-enviar[disabled] { opacity: .6; cursor: wait; }
.contact-map-section { padding: 40px 0 80px; }
.map-container { width: 100%; height: 480px; border-radius: 10px; overflow: hidden; background: #e9eef0; }
.map-container iframe { width: 100%; height: 100%; border: 0; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 15px 20px; border-radius: 8px; margin-bottom: 25px; font-size: .9rem; animation: fadeIn .4s ease; }
.alert-success { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.alert-danger { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.alert ul { margin: 0; padding-left: 18px; }
@media (max-width: 900px) {
  .contact-flex { flex-direction: column; }
  .contact-info { flex: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .map-container { height: 360px; }
}

/* ---------------------------------------------------------------- LEGAL / 404 */
.legal-hero { background: #003049; color: #fff; text-align: center; padding: 60px 20px; }
.legal-hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 10px; }
.legal-hero p { font-size: 1.1rem; margin: 0; opacity: .9; }
.legal-content { padding: 40px 20px 70px; max-width: 1100px; margin: 0 auto; }
.legal-content h2 { margin-top: 30px; color: #003049; font-size: 1.3rem; }
.legal-content p, .legal-content ul { margin-bottom: 20px; line-height: 1.7; }
.legal-content ul { padding-left: 22px; }
.legal-updated { color: #888; font-size: .85rem; }
.error-page { padding: 120px 20px; text-align: center; }
.error-page .code { font-size: 6rem; font-weight: 900; color: var(--clt-blue); line-height: 1; margin-bottom: 10px; }
.error-page a.btn { background: var(--clt-blue); color: #fff; margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
