/* --- ESTILOS GERAIS --- */
body {margin: 0; background: #fff; color: #000;font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;}
/* Alturas configuráveis */
:root{
  --bannerH-max: 250px;  /* altura inicial do banner-top */
  --bannerH-min: 70px;   /* altura mínima ao encolher */
  --bannerH: var(--bannerH-max);
}
/* Banner do topo encolhível */
.banner-top{
  position: sticky;   /* fica no topo enquanto há scroll por baixo */
  top: 0;
  width: 100%;
  height: var(--bannerH);
  background: url("includes/fundo_menu.png") repeat;
  background-size: auto;
  background-attachment: scroll; /* importante para não “congelar” */
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 4000; /* abaixo do logo e acima do conteúdo */
  transition: height 120ms linear; /* suaviza o encolher */
}
/* LOGO dentro do banner, canto esquerdo */
.banner-logo{position: absolute;top: 50%;left: 35px;transform: translateY(-50%);z-index: 2;}
.banner-logo .logo{height: 70px;width: auto;transition: height .2s linear;}
.banner-top.compact .banner-logo .logo{height: 50px;}
.banner-barra{
  position: absolute;
  top: 50%;
  right: 0;              /* em vez de left:35% */
  width: 65%;            /* mantém ou ajusta conforme o efeito desejado */
  height: 50px;
  background: #fff;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* alinha os links à direita dentro da barra */
  gap: 30px;
  padding-right: 30px;         /* distância da borda direita */
  z-index: 1;
}

/* Botões iguais aos que usas no banner */
.banner-barra a{
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 14px;
  text-decoration: none;
  color: #000;
  line-height: 30px;
  padding: 0 3px;
  border-radius: 4px;
  transition: 0.2s;
}
.banner-barra a:hover{
  background: #E1AD2B;
  color: #fff;
  padding: 0 6px;
}

/* Estado compacto (quando atinge a altura mínima): reduz espaçamento/tipo */
.banner-top.compact .banner-barra{gap: 20px;}
.banner-top.compact .banner-barra a{
  font-size: 12px;
  line-height: 28px;
  padding: 0 4px;
}
.banner-top.compact .banner-barra a:hover{padding: 0 8px;}

/* --- BANNER INFERIOR FIXO (já tinhas base) --- */
.banner-bottom {
    width: 100%;
    height: 250px;
    background: url("includes/fundo_menu.png") repeat;
    background-size: auto;
    background-attachment: fixed;
    z-index: 3;
    box-shadow: 0px -10px 20px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;         /* centra verticalmente o conteúdo */
    justify-content: center;
}
/* ---- GRIDS DE FOTOGRAFIAS ---- */

/* Estilo base para todas as imagens */
.foto-grid-2 .foto,
.foto-grid-3 .foto,
.foto-grid-4 .foto {
    width: 100%;
    aspect-ratio: 1/1;        /* imagens quadradas, podes remover se quiseres */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform .25s ease, box-shadow .25s ease;
}

.foto-grid-2 .foto:hover,
.foto-grid-3 .foto:hover,
.foto-grid-4 .foto:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0,0,0,0.28);
}

/* ---- GRID DE 2 ---- */
.foto-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 40px 0;
}

/* Responsivo 2 */
@media (max-width: 700px) {
    .foto-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ---- GRID DE 3 ---- */
.foto-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 40px 0;
}

/* Responsivo 3 */
@media (max-width: 900px) {
    .foto-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .foto-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ---- GRID DE 4 ---- */
.foto-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 40px 0;
}

/* Responsivo 4 */
@media (max-width: 1100px) {
    .foto-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .foto-grid-4 {
        grid-template-columns: 1fr;
    }
}
/* Imagens no conteúdo */
.conteudo img.foto {
    width: 100%;
    max-width: 680px;   /* evita imagens gigantes */
    border-radius: 10px;
    margin: 25px auto;
    display: block;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    object-fit: cover;
}

.conteudo .foto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

@media (max-width: 700px) {
    .conteudo .foto-grid {
        grid-template-columns: 1fr;
    }
}

.bloco-img-canto {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

/* coluna do texto */
.bloco-img-canto .texto {
  flex: 1;
}

/* imagem encostada ao canto inferior direito visualmente */
.bloco-img-canto img.foto-canto {
  width: 200px;        /* ajusta à tua preferência */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 40px;    /* empurra a imagem para baixo, simulando canto */
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* telemóvel */
@media (max-width: 700px) {
  .bloco-img-canto {
    flex-direction: column;
  }
  .bloco-img-canto img.foto-canto {
    margin: 20px auto 0;
    width: 80%;
  }
}

/* container interno */
.bb-conteudo {
    width: min(1200px, 92%);
    display: flex;
    gap: 40px;
}

/* colunas */
.bb-col { color: #fff; }
.col1 { flex: 1; }             /* mais estreita */
.col2, .col3 { flex: 2; }      /* iguais */

/* títulos e textos */
.bb-titulo {
    margin: 0 0 10px 0;
    font-size: 16px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
/* link que se comporta como texto normal no rodapé */
.bb-texto {
  margin: 0 0 14px 0;
  font-size: 14px;
  opacity: .9;
  color: #fff;                /* mantém cor branca */
}

/* garante que o link herda exatamente o mesmo estilo */
.bb-texto,
.bb-texto a {
  color: inherit;
  text-decoration: none;      /* sem sublinhado */
  font-weight: normal;
}

/* remove qualquer alteração visual no hover */
.bb-texto a:hover {
  color: inherit;
  text-decoration: none;
  font-weight: normal;        /* ou bold, se quiseres destaque */
}

/* botão simples */
.bb-btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 4px;
    background: #E1AD2B;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: transform .15s ease, opacity .15s ease;
}
.bb-btn:hover { transform: translateY(-1px); opacity: .95; }

/* lista de links (col2) */
.bb-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px 22px;
    align-items: start;
}
.bb-links a {
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 13px;
    text-decoration: none;
    color: #fff;
    letter-spacing: .5px;
    transition: .2s;
    padding: 2px 6px;
    border-radius: 4px;
}
.bb-links a:hover {
    background: #E1AD2B;
    color: #fff;
}

/* contactos (col3) */
.bb-contactos {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}
.bb-contactos li { margin: 6px 0; }
.bb-contactos a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,.35);
    padding-bottom: 2px;
}
.bb-contactos a:hover {
    color: #E1AD2B;
    border-bottom-color: #E1AD2B;
}

/* responsivo */
@media (max-width: 900px) {
  .bb-conteudo { gap: 24px; }
  .bb-links { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .bb-conteudo { flex-direction: column; gap: 16px; }
  .col1, .col2, .col3 { flex: none; width: 100%; }
}

/* CONTEÚDO */
.conteudo {margin-left: 50px; padding: 40px;}
.conteudo h1 { margin-top: 40px; margin-bottom: 5px;}
.conteudo h2 {margin-top: 5px; margin-bottom: 30px;}

/* Grelha de 3 colunas */
.blocos3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;              /* espaço entre colunas */
  margin-top: 30px;
  margin-bottom: 30px;
}

/* Colunas individuais */
.coluna {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.coluna h1, 
.coluna h2, 
.coluna h3 {
  margin-top: 0;
}

/* Texto dentro das colunas */
.coluna p, 
.coluna ul {
  font-size: 15px;
  line-height: 1.6;
}

/* Responsivo: passa para 1 ou 2 colunas */
@media (max-width: 1100px) {
  .blocos3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .blocos3 {
    grid-template-columns: 1fr;
  }
}

/* Botão simples dentro do conteúdo */
.btn-link {
  display: inline-block;
  padding: 10px 18px;
  background-color: #E1AD2B;     /* o mesmo dourado do site */
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color .2s ease, transform .15s ease;
  margin: 10px 0;
}
.btn-link:hover {
  background-color: #c89020;     /* tom ligeiramente mais escuro */
  color: #fff;
  transform: translateY(-2px);   /* pequeno efeito de elevação */
}
.btn-link:active {
  transform: translateY(0);
}

/* estilo do link com ícone */
.icon-link{
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  text-decoration: none;
  padding: 0 3px;
  border-radius: 4px;
  transition: 0.2s;
}
.icon-link:hover{
  background: #E1AD2B;
  color: #fff;
}

/* ajusta tamanho para combinar com os outros links */
.icon-link svg{
  width: 25px;
  height: 25px;
  display: block;
}

/* --- RESPONSIVO --- */
.hide-tablet {display: initial; /* visível por padrão */}
.hide-mobile {display: initial; /* visível por padrão */}

/* ✅ Tablet (ecrãs médios)*/
@media (max-width: 1000px){
    .banner-logo {left: 15px;}
    .banner-logo .logo{height: 40px;}
    .banner-top.compact .banner-logo .logo{height: 30px;}
    .banner-barra a {font-size: 10px;}
    .banner-barra{left: 50%; width: 50%; padding-right: 20px;  gap: 20px;}
    .hide-tablet {display: none !important;}
}

/* ✅ No telemóvel (ecrãs pequenos)*/
@media (max-width: 600px){
    .banner-logo {left: 10px;}
    .banner-logo .logo{height: 30px;}
    .banner-top.compact .banner-logo .logo{height: 20px;}
    .banner-top.compact .banner-barra a {font-size: 8px;}
    .banner-barra a {font-size: 10px;}
    .banner-barra{left: 40%; width: 60%; padding-right: 10px; gap:10px;}
    .conteudo {margin-left: 0px;}
    .hide-mobile {display: none !important;}
}

.bouldun-partners {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bouldun-partners-inner h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.bouldun-partners-inner .intro {
    margin-bottom: 30px;
    line-height: 1.6;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.partner-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 18px;
    background: #fafafa;
}

.partner-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.partner-card .tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #222;
    color: #fff;
    padding: 2px 6px;
    border-radius: 999px;
    margin-left: 6px;
}

.partner-card p {
    margin: 0 0 10px;
    line-height: 1.5;
}

.partner-card .details {
    font-size: 0.9rem;
}

.bouldun-partners a {
    text-decoration: none;
}

.bouldun-partners a:hover {
    text-decoration: underline;
}

/* Secção geral */
.bouldun-distributor {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
}

/* Content wrapper */
.bouldun-distributor .inner {
    background: #f7f8fb;
    border-radius: 14px;
    padding: 24px 26px;
    border: 1px solid #e1e4f0;
}

/* Títulos */
.bouldun-distributor h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.bouldun-distributor h2 {
    font-size: 1.35rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Parágrafos e listas */
.bouldun-distributor p {
    line-height: 1.6;
    margin-bottom: 12px;
}

.bouldun-distributor .intro {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.bouldun-distributor ul {margin: 0 0 14px 18px;padding: 0;}
.bouldun-distributor ul li {margin-bottom: 6px;}
/* Lista de benefícios com destaque */
.bouldun-distributor .benefits {list-style: none;margin-left: 0;}
.bouldun-distributor .benefits li::before {content: "✔";margin-right: 8px;font-weight: bold;}
/* Email / contacto em destaque */
.bouldun-distributor .email {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #e9f4ff;
    border: 1px solid #c9e1ff;
    display: inline-block;
}
/* Links */
.bouldun-distributor a {color: #0057b8;text-decoration: none;}
.bouldun-distributor a:hover {text-decoration: underline;}

.legenda-fotos {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    text-align: center;
    max-width: 900px;
    margin: 15px auto 40px;
}

.centrar{text-align: center;}

/* Responsivo para ecrãs pequenos */
@media (max-width: 768px) {
    .bouldun-distributor {
        margin: 20px auto;
        padding: 10px;
    }

    .bouldun-distributor .inner {
        padding: 18px 16px;
    }

    .bouldun-distributor h1 {
        font-size: 1.6rem;
    }

    .bouldun-distributor h2 {
        font-size: 1.2rem;
    }
}