/* Ajustes visuais da Azores X sobre o CSS original do Webflow (carregado em todas as páginas).
   Alterar aqui em vez de mexer em azx2.shared...css. */

/* 1. Capas dos projectos (homepage, «Selected Projects» dos departamentos e «Recent Project» nas páginas de projecto):
   todas do mesmo tamanho, 16:9. A animação original alargava cada capa durante o scroll e deixava-as com tamanhos diferentes. */
.grid-project .project-item,
.grid-project .project-image-wrap,
.project-grid-box .project-item,
.project-grid-box .project-image-wrap { width: 100% !important; max-width: none !important; }
.grid-project .project-image-wrap,
.project-grid-box .project-image-wrap { aspect-ratio: 16 / 9; height: auto !important; }
.grid-project .project-image,
.project-grid-box .project-image { width: 100% !important; height: 100% !important; aspect-ratio: auto; object-fit: cover; }

/* 2. «Our Collective Experience»: logótipos em slider contínuo */
.logos-marquee { overflow: hidden; flex: 1; min-width: 0; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos-track { display: flex; align-items: center; gap: 80px; width: max-content; animation: azx-logos 30s linear infinite; }
.logos-track .client-image { flex: none; width: 130px; height: 50px; max-width: none; object-fit: contain; }
.logos-marquee:hover .logos-track { animation-play-state: paused; }
@keyframes azx-logos { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 40px)); } }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; } }
@media screen and (max-width: 767px) { .logos-track { gap: 48px; } .logos-track .client-image { width: 100px; height: 40px; } }

/* 3. Página Sobre: fotografia de capa com a largura das restantes páginas (como as capas dos departamentos) */
.about-hero-section .about-item { width: 100%; max-width: none; display: flex; justify-content: center; }
.about-hero-section .image-about { width: 90%; max-width: none; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
@media screen and (max-width: 767px) { .about-hero-section .image-about { width: 100%; aspect-ratio: 4 / 3; } }

/* 4. Título principal (H1) com o aspecto de um H2 — usado na página de recrutamento */
h1.titulo-h2 { font-family: var(--font-family--heading); color: var(--color--primary); margin-top: 0; margin-bottom: 10px; font-size: 55px; font-weight: 500; line-height: 1.2em; }
@media screen and (max-width: 991px) { h1.titulo-h2 { font-size: 64px; } }
@media screen and (max-width: 767px) { h1.titulo-h2 { font-size: 36px; } }

/* 5. Banner e preferências de cookies (assets/js/cookies.js) */
.azx-cookies { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 99999; display: flex; justify-content: center; pointer-events: none; font-family: var(--font-family--body, inherit); }
.azx-cookies--modal { inset: 0; align-items: center; background: rgba(26, 26, 26, .55); padding: 20px; }
.azx-cookies__caixa { pointer-events: auto; max-width: 760px; width: 100%; background: #fff; color: #3f3e3e; border-radius: 20px; padding: 24px 28px; box-shadow: 0 10px 40px rgba(0, 0, 0, .18); }
.azx-cookies--modal .azx-cookies__caixa { max-width: 560px; max-height: 90vh; overflow: auto; }
.azx-cookies__topo { display: flex; justify-content: space-between; align-items: center; }
.azx-cookies__titulo { font-family: var(--font-family--heading, inherit); color: #1a1a1a; font-size: 20px; font-weight: 500; margin: 0 0 8px; }
.azx-cookies__texto { font-size: 15px; line-height: 1.5; margin: 0 0 16px; }
.azx-cookies__texto a { color: #1a1a1a; text-decoration: underline; }
.azx-cookies__botoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.azx-cookies__botoes button { font: inherit; font-size: 15px; cursor: pointer; border-radius: 100px; padding: 10px 20px; border: 1px solid #1a1a1a; background: #fff; color: #1a1a1a; }
.azx-cookies__botoes button.azx-cookies__principal, .azx-cookies__botoes button:hover { background: #1a1a1a; color: #fff; }
.azx-cookies__x { font-size: 28px; line-height: 1; background: none; border: 0; cursor: pointer; color: #1a1a1a; }
.azx-cookies__cat { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid #e4e4e4; cursor: default; }
.azx-cookies__cat p { font-size: 14px; margin: 4px 0 0; line-height: 1.45; }
.azx-cookies__cat strong { color: #1a1a1a; font-weight: 500; }
.azx-cookies__sempre { font-size: 13px; white-space: nowrap; color: #6b6b6b; }
.azx-cookies__toggle { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 26px; border-radius: 26px; background: #d1d1d1; position: relative; cursor: pointer; transition: background .2s; }
.azx-cookies__toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.azx-cookies__toggle:checked { background: #1a1a1a; }
.azx-cookies__toggle:checked::after { transform: translateX(20px); }
.azx-cookies--modal .azx-cookies__botoes { margin-top: 12px; }
@media screen and (max-width: 767px) { .azx-cookies { left: 10px; right: 10px; bottom: 10px; } .azx-cookies__caixa { padding: 20px; } .azx-cookies__botoes button { flex: 1 1 auto; } }

/* 6. Tabela de cookies na Política de Privacidade */
.tabela-cookies { overflow-x: auto; margin: 10px 0 20px; }
.tabela-cookies table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.tabela-cookies th, .tabela-cookies td { border: 1px solid #d1d1d1; padding: 10px 12px; text-align: left; vertical-align: top; }
.tabela-cookies th { background: #f4f4f4; color: #1a1a1a; font-weight: 500; }
.tabela-cookies code { font-size: 13px; background: #f4f4f4; padding: 1px 4px; border-radius: 4px; }
@media screen and (max-width: 767px) {
  .tabela-cookies thead { display: none; }
  .tabela-cookies table, .tabela-cookies tbody, .tabela-cookies tr, .tabela-cookies td { display: block; width: 100%; }
  .tabela-cookies tr { border: 1px solid #d1d1d1; border-radius: 12px; margin-bottom: 12px; padding: 6px 0; }
  .tabela-cookies td { border: 0; padding: 6px 14px; }
  .tabela-cookies td::before { content: attr(data-label); display: block; font-size: 12px; color: #6b6b6b; text-transform: uppercase; letter-spacing: .04em; }
}
