/* ===== Fontes alojadas localmente (sem chamadas a servidores externos) ===== */
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display SC';
  src: url('../fonts/playfair-display.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ===== Atelogia, pagina inicial ===== */
.at-home {
  --serif: 'Playfair Display SC','Playfair Display',Georgia,serif;
  --play: 'Playfair Display',Georgia,serif;
  --sans: Inter,system-ui,-apple-system,sans-serif;
  --at-bg: #2C2C2C;
  --at-accent: #2C5A8C;
  position: relative;
  background: #FFFFFF;
  color: #2B2F33;
  font-family: var(--sans);
  line-height: 1.5;
}
.at-home *, .at-home *::before, .at-home *::after { box-sizing: border-box; }
.at-home p { margin: 0; }

/* Nav */
.at-nav {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; z-index: 5;
}
.at-nav-logo { display: inline-flex; align-items: center; text-decoration: none; }
.at-nav-lockup { height: 26px; width: auto; display: block; }
.at-nav-link { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #CFD3D6; text-decoration: none; }
.at-nav-link:hover { color: #fff; }

/* Hero */
.at-hero { background: var(--at-bg); color: #EDEDED; padding: 150px 26px 112px; text-align: center; }
.at-hero-lockup { display: block; width: min(78vw, 560px); height: auto; margin: 0 auto; }
.at-hero-pontos { display: flex; gap: 8px; justify-content: center; margin: 22px auto 30px; }
.at-hero-pontos span { width: 6px; height: 6px; border-radius: 50%; background: var(--at-accent); display: block; }
.at-hero-tag { max-width: 520px; margin: 0 auto; font-size: 15px; line-height: 1.7; color: #A9AFB4; }

/* Etiquetas de seccao */
.at-etiqueta { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #A6ADB3; margin-bottom: 14px; }

/* Sobre */
.at-sobre { background: #FFFFFF; padding: 76px 26px 64px; }
.at-sobre-wrap { max-width: 640px; margin: 0 auto; text-align: center; }
.at-sobre-texto { font-family: var(--play); font-weight: 400; font-size: 23px; line-height: 1.55; color: #1C1F22; }

/* Plataformas */
.at-plats { background: #FBFBFC; padding: 64px 24px; border-top: 1px solid #EEF0F2; }
.at-plats-wrap { max-width: 880px; margin: 0 auto; }
.at-plats-head { text-align: center; margin-bottom: 48px; }
.at-plats-head .at-etiqueta { margin-bottom: 10px; }
.at-plats-titulo { font-family: var(--play); font-weight: 500; font-size: 26px; color: #161616; margin: 0; }
.at-grupo { margin-bottom: 42px; }
.at-grupo:last-child { margin-bottom: 0; }
.at-grupo-nome { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: #878E95; text-transform: uppercase; text-align: center; margin-bottom: 18px; }
.at-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 148px)); gap: 18px; justify-content: center; }

.at-plat { text-decoration: none; display: block; color: inherit; }
.at-svg { width: 100%; display: block; }
.at-plat-card { border-radius: 8px; transition: transform .22s ease, box-shadow .22s ease; }
.at-plat-ativa { cursor: pointer; }
.at-plat-ativa:hover { transform: translateY(-4px); box-shadow: 0 14px 34px -16px var(--mc); }
.at-plat-abaixo { text-align: center; margin-top: 9px; min-height: 14px; }
.at-plat-link { font-size: 11.5px; }
.at-plat-breve { font-family: var(--serif); font-size: 11.5px; letter-spacing: 0.04em; color: #A6ADB3; }

/* Destaque */
.at-destaque { background: #FFFFFF; padding: 72px 26px; border-top: 1px solid #EEF0F2; }
.at-destaque-wrap { max-width: 720px; margin: 0 auto; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; justify-content: center; }
.at-destaque-sim { width: 150px; flex-shrink: 0; }
.at-destaque-txt { flex: 1 1 280px; }
.at-destaque-eti { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px; }
.at-destaque-titulo { font-family: var(--play); font-weight: 500; font-size: 24px; color: #161616; margin: 0 0 12px; }
.at-destaque-p { font-size: 14.5px; line-height: 1.65; color: #52585E; margin: 0 0 20px; }
.at-destaque-btn { display: inline-block; font-size: 13px; letter-spacing: 0.04em; color: #fff; padding: 12px 22px; border-radius: 9px; text-decoration: none; transition: transform .18s ease; }
.at-destaque-btn:hover { transform: translateX(3px); }

/* Contacto */
.at-contacto { background: #FBFBFC; padding: 72px 24px; border-top: 1px solid #EEF0F2; }
.at-contacto-wrap { max-width: 520px; margin: 0 auto; }
.at-contacto-head { text-align: center; margin-bottom: 34px; }
.at-contacto-head .at-etiqueta { margin-bottom: 10px; }
.at-contacto-titulo { font-family: var(--play); font-weight: 500; font-size: 25px; color: #161616; margin: 0; }

/* Footer */
.at-footer { background: var(--at-bg); color: #7B8186; padding: 46px 24px 38px; text-align: center; }
.at-footer-lockup { height: 22px; width: auto; display: block; margin: 0 auto; }
.at-footer-texto { font-size: 12px; color: #6A7075; margin: 12px auto 0; max-width: 440px; line-height: 1.6; }
.at-footer-copy { font-size: 11px; color: #4F555A; margin-top: 20px; }

/* ===== Formulario (partilhado pela homepage e pelo shortcode) ===== */
.atelogia-form-container { font-family: Inter,system-ui,-apple-system,sans-serif; }
.atelogia-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.atelogia-form-group { margin-bottom: 16px; }
.atelogia-input, .atelogia-textarea {
  width: 100%; padding: 13px 15px; font-size: 14.5px; font-family: inherit;
  color: #1C1F22; background: #fff; border: 1px solid #D9DEE2; border-radius: 9px;
  outline: none; transition: border-color .18s ease, box-shadow .18s ease; box-sizing: border-box;
}
.atelogia-input::placeholder, .atelogia-textarea::placeholder { color: #A7ADB3; }
.atelogia-input:focus, .atelogia-textarea:focus { border-color: var(--at-accent); box-shadow: 0 0 0 3px rgba(44,90,140,.18); }
.atelogia-textarea { resize: vertical; min-height: 110px; }
.atelogia-input.error, .atelogia-textarea.error { border-color: #DD6666; box-shadow: 0 0 0 3px rgba(221,102,102,.15); }
.atelogia-submit {
  width: 100%; padding: 14px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: #161616; border: none; border-radius: 9px; cursor: pointer;
  font-family: Inter,system-ui,-apple-system,sans-serif; transition: background .18s ease;
}
.atelogia-submit:hover { background: #000; }
.atelogia-submit.loading { opacity: .6; cursor: wait; }
.atelogia-msg { margin-top: 14px; padding: 12px 15px; border-radius: 9px; font-size: 13.5px; line-height: 1.5; }
.atelogia-msg-success { background: rgba(44,90,140,.10); color: #2C5A8C; border: 1px solid rgba(44,90,140,.35); }
.atelogia-msg-error { background: #fdecec; color: #c0392b; border: 1px solid #f3c5c5; }

/* Reforco de alinhamento central (vence o alinhamento de paragrafos imposto pelo tema activo) */
.at-home .at-hero .at-hero-tag,
.at-home .at-sobre .at-sobre-texto,
.at-home .at-footer .at-footer-texto,
.at-home .at-footer .at-footer-legal,
.at-home .at-footer .at-footer-copy { text-align: center !important; }

/* Apenas para leitores de ecra (etiquetas de formulario visualmente escondidas) */
.at-sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Ligacoes e identificacao legal no rodape */
.at-footer-links {
  margin: 18px auto 0; max-width: 620px;
  display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center;
}
.at-footer-links a { font-size: 11.5px; color: #8B9196; text-decoration: none; transition: color .18s ease; }
.at-footer-links a:hover { color: #C9CDD0; }
.at-footer-sep { font-size: 11.5px; color: #4F555A; }
.at-footer-legal { font-size: 11px; color: #565C61; margin: 14px auto 0; max-width: 560px; line-height: 1.6; }

/* ===== Paginas legais ===== */
.at-legal {
  background: #FFFFFF; color: #2B2F33;
  font-family: Inter,system-ui,-apple-system,sans-serif;
  padding: 64px 24px 84px; line-height: 1.7;
}
.at-legal-wrap { max-width: 720px; margin: 0 auto; }
.at-legal-back { display: inline-block; font-size: 13px; color: #6A7075; text-decoration: none; margin-bottom: 28px; transition: color .18s ease; }
.at-legal-back:hover { color: #161616; }
.at-legal-titulo { font-family: 'Playfair Display',Georgia,serif; font-weight: 500; font-size: clamp(28px,5vw,38px); color: #141414; margin: 0 0 8px; line-height: 1.2; }
.at-legal-data { font-size: 12.5px; letter-spacing: 0.02em; color: #9098A0; margin: 0 0 40px; }
.at-legal-body h2 { font-family: 'Playfair Display',Georgia,serif; font-weight: 500; font-size: 20px; color: #1C1F22; margin: 40px 0 12px; }
.at-legal-body p { font-size: 15px; color: #3F454B; margin: 0 0 14px; }
.at-legal-body ul { margin: 0 0 14px; padding-left: 22px; }
.at-legal-body li { font-size: 15px; color: #3F454B; margin-bottom: 8px; }
.at-legal-body a { color: var(--at-accent, #2C5A8C); text-decoration: underline; }
.at-legal-body a:hover { opacity: .8; }
.at-legal-body strong { color: #1C1F22; }

@media (max-width: 560px) {
  .at-hero { padding: 120px 22px 84px; }
  .at-sobre-texto { font-size: 20px; }
  .at-destaque-wrap { gap: 24px; }
}

/* ===== Template limpo do plugin (body.at-blank) ===== */
body.at-blank { margin: 0 !important; padding: 0 !important; background: var(--at-bg, #2C2C2C); }
body.at-blank .at-home, body.at-blank .at-legal { min-height: 100vh; }
body.at-blank #wpadminbar { position: fixed; }

/* ===== Logo ElevenLabs Grants no rodape (condicao do grant, 12 meses) ===== */
.at-footer-grants { margin: 20px auto 6px; }
.at-footer-grants img { width: 190px; height: auto; opacity: .78; transition: opacity .18s ease; }
.at-footer-grants a:hover img { opacity: 1; }
