/*
 * perfil_custom.css — Grupo Perfil Link Tree
 * Inclui: Link da Bio (todas as marcas) + Front Page (home do grupo)
 */

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-body:    'Open Sans', sans-serif;
  --color-text:   #111;
  --color-muted:  #666;
  --color-border: #e8e8e8;
  --color-hover:  #c0392b;
  --radius-card:  4px;
  --radius-btn:   10px;
  --gap:          3px;
  --transition:   0.25s ease;
  --max-width:    800px;
}

body {
  font-family: var(--font-body);
  background: #f5f5f3;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; }

/* ════════════════════════════════════════════════════════
   LINK DA BIO — páginas individuais de cada marca
   ════════════════════════════════════════════════════════ */

.lp-page {
  min-height: 100dvh;
  padding-bottom: 48px;
}

.lp-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 14px;
}

/* ── Header ───────────────────────────────────────────── */
.lp-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 0 8px;
  gap: 8px;
}

.lp-logo {
  height: 60px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.lp-handle {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--color-muted);
  transition: color var(--transition);
}

.lp-handle:hover { color: var(--color-hover); }

/* ── Social ───────────────────────────────────────────── */
.lp-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}

.lp-social__link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-size: 1rem;
  text-decoration: none;
  background: #fff;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.lp-social__link:hover {
  border-color: #111;
  color: #111;
  transform: translateY(-2px);
}

.lp-social__tiktok {
  width: 1rem;
  height: 1rem;
}

/* ── Botão site ───────────────────────────────────────── */
.lp-site-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 4px auto 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: box-shadow var(--transition), transform var(--transition);
}

.lp-site-btn:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  transform: translateY(-1px);
}

.lp-site-btn--pulse {
  animation: lp-pulse 1.4s ease-in-out infinite alternate;
}

@keyframes lp-pulse {
  from { transform: scale(1); }
  to   { transform: scale(1.025); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
}

.lp-site-btn__text {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
  flex: 1;
}

.lp-site-btn__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.lp-site-btn__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Label divisor ────────────────────────────────────── */
.lp-cards-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ccc;
  margin-top: 32px;
  margin-bottom: 10px;
}

.lp-cards-label::before,
.lp-cards-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ── Grid 3 colunas ───────────────────────────────────── */
.lp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* ── Card ─────────────────────────────────────────────── */
.lp-col { display: contents; }

.lp-card {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  background: #ddd;
}

.lp-card__thumb {
  position: absolute;
  inset: 0;
}

.lp-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.lp-card:hover .lp-card__thumb img {
  transform: scale(1.05);
}

.lp-card__no-image {
  width: 100%;
  height: 100%;
  background: #e0e0e0;
}

.lp-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.35) 50%,
    rgba(0,0,0,0)   100%
  );
  padding: 44px 8px 9px;
}

.lp-card__title {
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

@media (min-width: 480px) {
  .lp-card__title { font-size: 0.7rem; }
}

/* ── Aventuras na História ────────────────────────────── */
.logo_header_ah {
  fill: #fc0;
  width: 50px !important;
  height: 50px !important;
}

svg { overflow: hidden; vertical-align: middle; }


/* ════════════════════════════════════════════════════════
   FRONT PAGE — Home do Grupo Perfil
   ════════════════════════════════════════════════════════ */

.fp-page {
  min-height: 100dvh;
  background: #f5f5f3;
  padding-bottom: 56px;
}

/* ── Hero ─────────────────────────────────────────────── */
.fp-hero {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  padding: 36px 16px 28px;
  text-align: center;
}

.fp-hero__inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fp-hero__logo-wrap {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.fp-hero__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fp-hero__title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
}

.fp-hero__sub {
  font-size: 0.72rem;
  color: #aaa;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.fp-hero__social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.fp-hero__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 0.9rem;
  text-decoration: none;
  background: #fff;
  transition: border-color var(--transition), color var(--transition);
}

.fp-hero__social a:hover {
  border-color: #111;
  color: #111;
}

/* ── Container ────────────────────────────────────────── */
.fp-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ── Divisor ──────────────────────────────────────────── */
.fp-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 14px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ccc;
}

.fp-divider::before,
.fp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ── Grid editorial ───────────────────────────────────── */
.fp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* ── Card editorial ───────────────────────────────────── */
.fp-card {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 4 / 3;
  background: #ddd;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}

.fp-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}

/* Card destaque — ocupa as 2 colunas */
.fp-card--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 7;
}

.fp-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.fp-card__bg--empty {
  position: absolute;
  inset: 0;
}

.fp-card:hover .fp-card__bg {
  transform: scale(1.04);
}

.fp-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.45) 40%,
    rgba(0,0,0,.05) 100%
  );
}

/* Logo da marca no topo */
.fp-card__logo {
  position: absolute;
  top: 10px;
  left: 12px;
  height: 20px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.fp-card--wide .fp-card__logo {
  height: 26px;
}

/* Conteúdo inferior */
.fp-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fp-card__tag {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

.fp-card__title {
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.fp-card--wide .fp-card__title {
  font-size: 0.88rem;
  -webkit-line-clamp: 2;
}

/* Barra colorida da marca */
.fp-card__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}

/* ── Rodapé ───────────────────────────────────────────── */
.fp-footer {
  text-align: center;
  font-size: 0.62rem;
  color: #ccc;
  margin-top: 36px;
  letter-spacing: 0.04em;
}

/* ── Responsivo ───────────────────────────────────────── */
@media (max-width: 480px) {
  .fp-card__title    { font-size: 0.6rem; }
  .fp-card--wide .fp-card__title { font-size: 0.72rem; }
  .fp-card__logo     { height: 16px; }
  .fp-card--wide .fp-card__logo  { height: 20px; }
}


/* ════════════════════════════════════════════════════════
   FRONT PAGE — Home do Grupo Perfil
   ════════════════════════════════════════════════════════ */

.fp-page { min-height: 100dvh; background: #f5f5f3; padding-bottom: 48px; }

.fp-hero { background: #fff; border-bottom: 1px solid #ebebeb; padding: 36px 16px 28px; text-align: center; }
.fp-hero__inner { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fp-hero__logo-wrap { width: 68px; height: 68px; border-radius: 16px; border: 1px solid #e8e8e8; background: #fff; display: flex; align-items: center; justify-content: center; padding: 8px; }
.fp-hero__logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.fp-hero__title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; color: #111; }
.fp-hero__sub { font-size: 0.72rem; color: #aaa; font-weight: 600; letter-spacing: 0.06em; }

.fp-container { max-width: 480px; margin: 0 auto; padding: 24px 16px 0; }

.fp-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.fp-btn {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; background: #fff;
    border: 1px solid #e8e8e8; border-radius: 12px;
    text-decoration: none; color: #111;
    position: relative; overflow: hidden;
    transition: box-shadow 0.22s, transform 0.22s;
}
.fp-btn:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-1px); }

.fp-btn__bar {
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    transform: scaleY(0); transform-origin: center;
    transition: transform 0.22s;
}
.fp-btn:hover .fp-btn__bar { transform: scaleY(1); }

.fp-btn__icon {
    flex-shrink: 0; width: 48px; height: 48px;
    border-radius: 10px; border: 1px solid;
    display: flex; align-items: center; justify-content: center;
}
.fp-btn__icon img { width: 36px; height: 36px; object-fit: contain; }

.fp-btn__name { font-size: 0.88rem; font-weight: 800; color: #111; flex: 1; }

.fp-footer { text-align: center; font-size: 0.62rem; color: #ccc; margin-top: 32px; letter-spacing: 0.04em; }