/*
Theme Name: AFPF Hello
Description: Tema filho do Hello Elementor para o site da AFPF 360º: cabeçalho, rodapé e cores da marca, sem precisar do Elementor Pro.
Template: hello-elementor
Version: 1.0.0
Text Domain: afpf-hello
*/

:root {
  --afpf-tinta: #071729;
  --afpf-azul: #14242f;
  --afpf-dourado: #c9a04a;
  --afpf-dourado-2: #ddb65f;
  --afpf-suave: #c3ccd5;
  --afpf-wa: #1f7a4d;
  --afpf-margem: clamp(1rem, 4vw, 4rem);
}

body { font-family: "Poppins", system-ui, sans-serif; color: var(--afpf-tinta); }
::selection { background: var(--afpf-dourado); color: var(--afpf-tinta); }

/* Cabeçalho */
.afpf-topo { position: sticky; top: 0; z-index: 50; background: #fff; }
.admin-bar .afpf-topo { top: 32px; }
.afpf-barra { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); min-height: 5rem; padding-inline: var(--afpf-margem); }
.afpf-marca { flex: none; }
.afpf-marca img { display: block; width: clamp(8.5rem, 11vw, 10.5rem); height: auto; }
.afpf-nav { margin-inline: auto; }
.afpf-nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); margin: 0; padding: 0; list-style: none; }
.afpf-nav a { position: relative; display: block; padding-block: 0.5rem; color: var(--afpf-tinta); font-weight: 500; text-decoration: none; }
.afpf-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 3px; border-radius: 3px; background: var(--afpf-dourado); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.afpf-nav a:hover::after, .afpf-nav .current-menu-item > a::after, .afpf-nav .current_page_item > a::after { transform: scaleX(1); }
.afpf-acoes { display: flex; align-items: center; gap: 1.25rem; flex: none; }
.afpf-tel { color: var(--afpf-tinta); font-weight: 600; text-decoration: none; white-space: nowrap; }
.afpf-inscrever { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.6rem; border-radius: 999px; background: var(--afpf-dourado); color: var(--afpf-tinta); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 180ms ease; }
.afpf-inscrever:hover { background: var(--afpf-dourado-2); color: var(--afpf-tinta); }
.afpf-menu-botao { display: none; min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--afpf-tinta); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* Rodapé */
.afpf-rodape { background: var(--afpf-tinta); color: #fff; padding-top: clamp(4rem, 7vw, 6rem); }
.afpf-rodape-grelha { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 3rem 2rem; padding-inline: var(--afpf-margem); }
.afpf-rodape img { display: block; width: 11rem; height: auto; }
.afpf-rodape p { margin: 1.25rem 0 0; max-width: 32ch; color: var(--afpf-suave); }
.afpf-rodape h2 { margin: 0 0 1rem; color: var(--afpf-dourado); font-size: 1.05rem; font-weight: 600; }
.afpf-rodape ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.afpf-rodape a { color: var(--afpf-suave); text-decoration: none; transition: color 180ms ease; }
.afpf-rodape a:hover { color: #fff; }
.afpf-rodape address { display: grid; gap: 0.55rem; font-style: normal; color: var(--afpf-suave); }
.afpf-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.afpf-social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: #213a4c; color: #fff; }
.afpf-social a:hover { background: var(--afpf-dourado); color: var(--afpf-tinta); }
.afpf-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: clamp(3.5rem, 6vw, 5rem); padding: 1.5rem var(--afpf-margem); background: #040e1a; color: var(--afpf-suave); font-size: 0.875rem; }

/* Botão flutuante de WhatsApp */
.afpf-wa { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 999px; background: var(--afpf-wa); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); transition: transform 140ms ease; }
.afpf-wa:hover { color: #fff; transform: scale(1.05); }

@media (max-width: 1024px) {
  .afpf-barra { justify-content: space-between; min-height: 4.25rem; }
  .afpf-nav, .afpf-tel, .afpf-inscrever { display: none; }
  .afpf-menu-botao { display: block; }
  .afpf-topo[data-aberto="true"] .afpf-barra { flex-wrap: wrap; }
  .afpf-topo[data-aberto="true"] .afpf-nav { display: block; order: 3; width: 100%; margin: 0; padding-bottom: 1rem; }
  .afpf-topo[data-aberto="true"] .afpf-nav ul { flex-direction: column; gap: 0.25rem; }
  .afpf-rodape-grelha { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) { .admin-bar .afpf-topo { top: 0; } }
@media (max-width: 767px) { .afpf-rodape-grelha { grid-template-columns: 1fr; } }
