/* =====================================================================
   CAPA ESPECTACULAR · v4 — polit visual per a mòbil i escriptori
   (es carrega després de site.css)
   ===================================================================== */

:root {
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --header-h: 68px;
}
::selection { background: var(--terra); color: #FAF6EE; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
body.no-scroll { overflow: hidden; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Capçalera ---------- */
.site-header { transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(11, 59, 43, 0.08);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
}
.brand-mark { transition: transform .35s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.main-nav a { position: relative; }
@media (min-width: 981px) {
  .main-nav a.active { background: transparent; color: var(--ink); }
  .main-nav a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
    background: var(--terra); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
  }
  .main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
  .main-nav a:hover { background: transparent; color: var(--ink); }
}
.icon-btn.icon-only { width: 42px; height: 42px; min-width: 42px; padding: 0; }
.burger { position: relative; width: 18px; height: 14px; display: block; }
.burger i {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease-out), opacity .2s ease, top .3s var(--ease-out);
}
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; }
.burger i:nth-child(3) { top: 12px; }
.menu-open .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }


/* ---------- Botons ---------- */
.btn { transition: transform .2s var(--ease-out), box-shadow .25s ease, background-color .2s, border-color .2s, color .2s; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { box-shadow: 0 6px 16px rgba(19, 93, 67, 0.18); }
.btn-ghost-light { background: transparent; color: #FAF6EE; border-color: rgba(250, 246, 238, 0.32); }
.btn-ghost-light:hover { background: rgba(250, 246, 238, 0.1); border-color: #FAF6EE; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(28px, 5vw, 76px); padding-bottom: clamp(44px, 5.5vw, 84px); }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0;
  animation: blobFloat 18s ease-in-out infinite alternate;
}
.hero::before { width: 420px; height: 420px; right: -120px; top: -140px; background: color-mix(in srgb, var(--green) 22%, transparent); }
.hero::after { width: 360px; height: 360px; left: -140px; bottom: -160px; background: color-mix(in srgb, var(--gold) 24%, transparent); animation-delay: -6s; }
@keyframes blobFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(30px, 24px) scale(1.12); } }
.hero-grid { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.45rem, 5.4vw, 4.3rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 em.hl {
  background-image: linear-gradient(transparent 62%, color-mix(in srgb, var(--gold) 38%, transparent) 62%, color-mix(in srgb, var(--gold) 38%, transparent) 92%, transparent 92%);
  background-repeat: no-repeat; background-size: 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: hlGrow 1.1s .6s var(--ease-out) forwards;
}
@keyframes hlGrow { to { background-size: 100% 100%; } }
.hero-avatar { transition: transform .4s var(--ease-out); }
.hero-author:hover .hero-avatar { transform: rotate(-4deg) scale(1.05); }
.hero-grid > div:first-child > * { animation: riseIn .8s var(--ease-out) both; }
.hero-grid > div:first-child > *:nth-child(2) { animation-delay: .08s; }
.hero-grid > div:first-child > *:nth-child(3) { animation-delay: .16s; }
.hero-grid > div:first-child > *:nth-child(4) { animation-delay: .24s; }
.hero-grid > div:first-child > *:nth-child(5) { animation-delay: .32s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.featured-stack { position: relative; overflow: visible; animation: riseIn .9s .25s var(--ease-out) both; }
.featured-stack .featured-cover-box { border-radius: var(--radius) var(--radius) 0 0; }
.featured-stack .featured-body { background: var(--card); border-radius: 0 0 var(--radius) var(--radius); }
@media (min-width: 901px) {
  .featured-stack::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    border-radius: var(--radius); background: var(--terra);
    transform: rotate(3deg) translate(10px, 8px); opacity: .92;
    transition: transform .45s var(--ease-out);
  }
  .featured-stack:hover::before { transform: rotate(4.4deg) translate(14px, 10px); }
}
.featured-badge-float { box-shadow: 0 6px 16px rgba(0,0,0,.2); }

@media (max-width: 900px) { .hero-grid { gap: 34px; } }
@media (max-width: 560px) {
  .hero-author { gap: 12px; margin-bottom: 16px; }
  .hero-avatar { width: 50px; height: 50px; }
  .hero-kicker { font-size: 0.66rem; }
  .hero-role { font-size: 0.8rem; line-height: 1.35; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 2.9rem); }
  .hero-lead { font-size: 1.1rem; margin-bottom: 22px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; min-height: 52px; font-size: 1rem; }
  .hero-quote { font-size: 1rem; }
  .featured-body { padding: 20px; }
  .featured-foot { gap: 10px; }
}

/* ---------- Ticker ---------- */
.editorial-ticker { position: relative; padding: 14px 0; }
.editorial-ticker::before, .editorial-ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 1; pointer-events: none;
}
.editorial-ticker::before { left: 0; background: linear-gradient(90deg, var(--pine), transparent); }
.editorial-ticker::after { right: 0; background: linear-gradient(-90deg, var(--pine), transparent); }

/* ---------- Seccions ---------- */
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
.section-kicker { display: inline-flex; align-items: center; gap: 10px; }
.section-kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
@media (max-width: 640px) { .section-head { margin-bottom: 22px; } }

/* ---------- Targetes d'article ---------- */
.post-card { border-radius: 18px; }
.post-card > a:first-child { display: block; overflow: hidden; }
.post-card-cover, .post-art-cover { transition: transform .6s var(--ease-out); }
.post-card:hover .post-card-cover, .post-card:hover .post-art-cover { transform: scale(1.045); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--green) 50%, var(--line)); }
.post-card h3 a {
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px;
  background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease-out), color .2s;
}
.post-card:hover h3 a { background-size: 100% 1.5px; color: var(--green-deep); }
.post-card p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-foot a { display: inline-flex; gap: 6px; transition: gap .25s var(--ease-out); }
.post-card:hover .post-card-foot a { gap: 10px; }

/* Graella revista: primera peça a tota l'amplada, la resta en 3 columnes */
@media (min-width: 960px) {
  .posts-grid--magazine { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .posts-grid--magazine .post-card:first-child { grid-column: 1 / -1; flex-direction: row; }
  .posts-grid--magazine .post-card:first-child > a:first-child { width: 58%; flex: none; display: block; }
  .posts-grid--magazine .post-card:first-child .post-card-cover,
  .posts-grid--magazine .post-card:first-child .post-art-cover { height: 100%; aspect-ratio: auto; min-height: 380px; }
  .posts-grid--magazine .post-card:first-child .post-card-in { padding: 36px 38px; justify-content: center; gap: 14px; }
  .posts-grid--magazine .post-card:first-child h3 { font-size: clamp(1.8rem, 2.6vw, 2.35rem); line-height: 1.12; }
  .posts-grid--magazine .post-card:first-child p { font-size: 1.12rem; -webkit-line-clamp: 5; flex: 0 1 auto; }
}

/* Carrusel horitzontal en mòbil */
@media (max-width: 720px) {
  .carousel-m {
    display: grid; grid-auto-flow: column; grid-template-columns: none;
    grid-auto-columns: 84%; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    margin-inline: -16px; padding: 4px 16px 18px;
    scrollbar-width: none;
  }
  .carousel-m::-webkit-scrollbar { display: none; }
  .carousel-m > * { scroll-snap-align: start; }
  .carousel-m .reveal { opacity: 1; transform: none; }
  .spotlight-grid.carousel-m { grid-auto-columns: 78%; }
  .carousel-m .post-card h3 { font-size: 1.2rem; }
  .carousel-m .post-card p { -webkit-line-clamp: 3; font-size: 0.98rem; }
  .carousel-hint {
    display: flex; align-items: center; gap: 8px; margin-top: -4px;
    font-size: 0.74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft);
  }
}
@media (min-width: 721px) { .carousel-hint { display: none; } }

/* Llistat compacte en mòbil (arxiu del blog) */
@media (max-width: 640px) {
  .posts-grid--list-m { grid-template-columns: 1fr; gap: 12px; }
  .posts-grid--list-m .post-card { flex-direction: row; align-items: stretch; border-radius: 16px; }
  .posts-grid--list-m .post-card > a:first-child { width: 36%; flex: none; }
  .posts-grid--list-m .post-card-cover,
  .posts-grid--list-m .post-art-cover { height: 100%; aspect-ratio: auto; min-height: 132px; }
  .posts-grid--list-m .post-art-cover { padding: 10px; }
  .posts-grid--list-m .post-art-title { font-size: 0.86rem; -webkit-line-clamp: 4; }
  .posts-grid--list-m .post-art-top span:last-child { display: none; }
  .posts-grid--list-m .post-art-cover::after { font-size: 3.4rem; }
  .posts-grid--list-m .post-card-in { padding: 12px 14px; gap: 6px; justify-content: center; }
  .posts-grid--list-m .post-card-meta { font-size: 0.7rem; gap: 6px; }
  .posts-grid--list-m .post-card-meta .pill { padding: 3px 8px; font-size: 0.6rem; }
  .posts-grid--list-m .post-card h3 { font-size: 1.04rem; line-height: 1.22; }
  .posts-grid--list-m .post-card p, .posts-grid--list-m .post-card-foot { display: none; }
}

/* Xips amb scroll horitzontal en mòbil */
@media (max-width: 720px) {
  .chip-scroll {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: -16px; padding: 2px 16px 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
  }
  .chip-scroll::-webkit-scrollbar { display: none; }
  .chip-scroll .chip { flex: none; white-space: nowrap; }
  .filter-bar { padding: 14px 16px; overflow: hidden; }
  .filter-controls { grid-template-columns: 1fr auto; }
  .filter-controls input { grid-column: 1 / -1; }
  .aprenent-controls { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .aprenent-controls > * { min-width: 0; max-width: 100%; }
  .aprenent-controls .input { max-width: none !important; }
}

/* ---------- Banda manifest ---------- */
.manifesto-band {
  background:
    radial-gradient(ellipse 50% 80% at 90% 0%, rgba(232, 176, 90, 0.16), transparent 60%),
    radial-gradient(ellipse 40% 70% at 0% 100%, rgba(184, 74, 46, 0.24), transparent 60%),
    var(--pine);
}
.mstat { transition: transform .3s var(--ease-out), background-color .3s; }
.mstat:hover { transform: translateY(-3px); background: rgba(255,255,255,0.08); }
.mstat strong { font-size: clamp(2rem, 3.4vw, 2.7rem); margin-bottom: 6px; }
@media (max-width: 560px) {
  .manifesto-quote { font-size: 1.55rem; }
  .manifesto-band .btn { flex: 1 1 100%; }
  .mstat { padding: 14px; }
}

/* ---------- Spotlight referents ---------- */
.spotlight-grid .info-card { border-radius: 18px; transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s; }
.spotlight-grid .info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.spotlight-grid .info-card h3 { font-size: 1.4rem; }

/* ---------- Brúixola ---------- */
.compass-card { position: relative; overflow: hidden; border-radius: 18px; padding: 26px 24px; }
.compass-card::before {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 180px; height: 180px; border-radius: 50%;
  background: var(--terra-soft); transform: scale(.4); opacity: 0; transition: transform .5s var(--ease-out), opacity .4s;
}
.compass-card:hover::before { transform: scale(1.6); opacity: 1; }
.compass-card > * { position: relative; }
@media (max-width: 580px) {
  .compass-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .compass-card { padding: 18px 16px; gap: 6px; }
  .compass-card h3 { font-size: 1.12rem; }
  .compass-card p { display: none; }
  .compass-card .num { font-size: 0.62rem; }
  .compass-card .go { font-size: 0.78rem; }
}

/* ---------- Arxiu i subscripció ---------- */
.sub-card { position: relative; overflow: hidden; border-radius: 22px; }
.sub-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--green), var(--gold), var(--terra)); }
@media (max-width: 560px) { #home-search-form .btn { width: 100%; } }

/* ---------- Capçaleres de pàgina ---------- */
.page-hero { position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: color-mix(in srgb, var(--terra) 12%, transparent); filter: blur(50px); pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.aprenent-hero { position: relative; overflow: hidden; padding-bottom: clamp(64px, 8vw, 104px); }
.aprenent-hero::after {
  content: "«»"; position: absolute; right: 3%; bottom: -0.28em; pointer-events: none;
  font-family: var(--font-display); font-style: italic; font-size: clamp(9rem, 20vw, 17rem); line-height: 1;
  color: rgba(250, 246, 238, 0.06);
}
.prologue-card { width: min(760px, 100%); margin: -48px auto 34px; position: relative; z-index: 2; border-radius: 18px; }
@media (max-width: 640px) {
  .prologue-card { margin-top: -40px; padding: 20px 18px; }
  .prologue-card .prose { font-size: 1.02rem; line-height: 1.65; }
}
.ref-card { border-radius: 22px; }
.ref-monogram { box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--line); }

/* ---------- Article ---------- */
.article-title { font-size: clamp(2.15rem, 5.2vw, 3.6rem); line-height: 1.06; }
.article-cover-wrap { width: min(1040px, calc(100% - 32px)); }
.article-cover { max-height: 600px; border-radius: 22px; box-shadow: var(--shadow-lg); }
.prose blockquote { font-family: var(--font-display); font-size: 1.1em; line-height: 1.5; border-left-width: 3px; }
@media (max-width: 760px) {
  .read-tools-grp { display: none; }
  .read-tools { justify-content: flex-start; }
  .article-cover-wrap { width: 100%; margin-top: 22px; }
  .article-cover { border-radius: 0; border-inline: 0; max-height: 380px; box-shadow: none; }
  body[data-page="post"] .site-footer { padding-bottom: 100px; }
  .prose { padding: 26px 0; line-height: 1.72; }
  .prose--article > p:first-of-type::first-letter { font-size: 3.1em; padding-right: 10px; }
  .share-box { padding: 18px; }
  .share-actions .share-btn { flex: 1 1 calc(50% - 8px); }
  .mobile-read-dock { bottom: max(14px, env(safe-area-inset-bottom)); padding: 6px; }
  .mobile-read-dock button { padding: 9px 15px; font-size: 0.86rem; }
}

/* ---------- Peu de pàgina fosc ---------- */
.site-footer {
  background: var(--pine); color: rgba(250, 246, 238, 0.82); border-top: 0;
  margin-top: 0; padding: clamp(48px, 7vw, 88px) 0 28px; position: relative; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: rgba(232, 176, 90, 0.10); filter: blur(60px); pointer-events: none;
}
.footer-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-bottom: clamp(32px, 5vw, 52px); margin-bottom: clamp(32px, 5vw, 48px);
  border-bottom: 1px solid rgba(250, 246, 238, 0.14);
}
.footer-big {
  font-family: var(--font-display); font-weight: 600; color: #FAF6EE; margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em;
}
.footer-big em { color: #E8B05A; font-weight: 400; }
.footer-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.site-footer .footer-grid h4 { color: #FAF6EE; }
.site-footer .footer-grid p, .site-footer .footer-links a { color: rgba(250, 246, 238, 0.72); }
.site-footer .footer-links a:hover { color: #E8B05A; }
.site-footer .footer-bottom { border-top-color: rgba(250, 246, 238, 0.14); color: rgba(250, 246, 238, 0.6); }
@media (max-width: 560px) {
  .footer-hero-cta { width: 100%; }
  .footer-hero-cta .btn { flex: 1; }
}

/* ---------- Detalls generals ---------- */
.reveal { transform: translateY(22px); transition: opacity .7s ease, transform .8s var(--ease-out); }
.posts-grid .reveal:nth-child(3n+2) { transition-delay: .06s; }
.posts-grid .reveal:nth-child(3n+3) { transition-delay: .12s; }
.chip { transition: border-color .16s, background-color .16s, transform .16s; }
.chip:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero-grid > div:first-child > *, .featured-stack { animation: none !important; }
  .hero h1 em.hl { animation: none; background-size: 100% 100%; }
  .main-nav a { transition: none !important; }
}


/* ---------- Marca: petjades «passet a passet» ---------- */
.logo-mark { display: block; flex: none; transition: transform .45s var(--ease-out); }
.logo-mark-bg { fill: var(--pine); }
.logo-foot-l { fill: #FAF6EE; }
.logo-foot-r { fill: #E8B05A; }
@media (prefers-color-scheme: dark) { .logo-mark-bg { fill: #1F4D3B; } }
.brand { gap: 12px; }
.brand .logo-mark { filter: drop-shadow(0 4px 10px rgba(11, 59, 43, 0.2)); }
.brand:hover .logo-mark { transform: rotate(-4deg); }
.brand-text strong { font-size: 1.26rem; letter-spacing: -0.025em; }
.brand-text span {
  text-transform: none; letter-spacing: 0; font-size: 0.92rem; margin-top: 0;
  font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--terra);
}
.brand-text span em { font-style: italic; }

.top-motto { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 0.84rem; letter-spacing: 0.01em; }
.top-motto b { color: #E8B05A; font-weight: 600; }
.top-ribbon-links { gap: 16px; }

.header-cta { min-height: 40px; padding: 8px 18px; }
@media (min-width: 981px) {
  .menu-toggle { display: none !important; }
  .mnav { display: none !important; }
}
@media (max-width: 1100px) and (min-width: 981px) {
  .main-nav a { padding: 8px 9px; font-size: 0.84rem; }
}
@media (max-width: 980px) {
  .main-nav { display: none !important; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.menu-open { backdrop-filter: none; background: var(--paper); box-shadow: none; }
}
@media (max-width: 520px) {
  :root { --header-h: 62px; }
  .header-inner { min-height: 62px; padding-block: 6px; }
  .brand { gap: 10px; }
  .brand .logo-mark { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1.14rem; }
  .brand-text span { font-size: 0.86rem; }
  .header-actions { gap: 6px; }
}

/* ---------- Menú mòbil ric ---------- */
.mnav {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 119;
  height: calc(100dvh - var(--header-h));
  background:
    radial-gradient(ellipse 70% 40% at 100% 0%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 100%, color-mix(in srgb, var(--green) 14%, transparent), transparent 70%),
    var(--paper);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .3s ease, transform .4s var(--ease-out);
}
.mnav.open { opacity: 1; transform: none; }
.mnav-in { width: min(640px, 100%); margin: 0 auto; padding: 18px 18px calc(32px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.mnav-links, .mnav-latest, .mnav-topics { min-width: 0; }
.mnav-search {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 50px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); box-shadow: var(--shadow);
}
.mnav-search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 1rem; min-width: 0; color: var(--ink); }
.mnav-search:focus-within { border-color: var(--green); }
.mnav-links { display: grid; }
.mnav-links a {
  display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 10px;
  padding: 13px 2px; text-decoration: none; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(12px);
  transition: opacity .45s ease, transform .5s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms + 60ms);
}
.mnav.open .mnav-links a { opacity: 1; transform: none; }
.mnav-num { font-size: 0.7rem; font-weight: 800; letter-spacing: .08em; color: var(--terra); }
.mnav-txt { display: grid; gap: 1px; min-width: 0; }
.mnav-txt strong { font-family: var(--font-display); font-weight: 600; font-size: 1.62rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.mnav-txt small { font-size: 0.82rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mnav-go {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-soft); transition: all .25s var(--ease-out);
}
.mnav-links a:hover .mnav-go, .mnav-links a.active .mnav-go { background: var(--green); border-color: var(--green); color: #FAF6EE; }
.mnav-links a.active strong { color: var(--green-deep); }
.mnav-label { margin: 0 0 10px; font-size: 0.7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.mnav-card {
  display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center;
  padding: 10px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  text-decoration: none; box-shadow: var(--shadow);
}
.mnav-card img, .mnav-card-ph { width: 92px; height: 72px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: var(--pine); }
.mnav-card small { display: block; font-size: 0.74rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 3px; }
.mnav-card strong { font-family: var(--font-display); font-size: 1.06rem; line-height: 1.22; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mnav-topics .chip-scroll { margin-inline: -18px; padding-inline: 18px; }
.mnav-quote {
  margin: 0; display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: 20px; background: var(--pine); color: #FAF6EE;
}
.mnav-quote .logo-mark-bg { fill: rgba(250, 246, 238, 0.1); }
.mnav-quote blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.12rem; line-height: 1.3; }
.mnav-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mnav-foot .btn { width: 100%; }
.mnav-social { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding-top: 8px; }
.mnav-social a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 700; color: var(--ink-soft); text-decoration: none; }
.mnav-social a:hover { color: var(--terra); }
@media (max-width: 360px) {
  .mnav-txt strong { font-size: 1.4rem; }
  .mnav-foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mnav, .mnav-links a { transition: none !important; }
}

/* ---------- Peu: marca ---------- */
.footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 14px; }
.footer-brand .logo-mark-bg { fill: rgba(250, 246, 238, 0.1); }
.footer-brand span { display: grid; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.3rem; color: #FAF6EE; line-height: 1.1; }
.footer-brand em { font-family: var(--font-display); color: #E8B05A; font-size: 0.95rem; }

/* ---------- Ideari ---------- */
.ideari-head { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; align-items: end; margin-bottom: 34px; }
.ideari-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.95rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; margin: 8px 0 0; }
.ideari-head .section-sub { font-family: var(--font-serif); font-size: 1.14rem; line-height: 1.55; margin: 0; }
.ideari-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.ideari-item {
  position: relative; padding: 30px 28px 32px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .3s ease;
}
.ideari-item::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--terra));
  transition: width .5s var(--ease-out);
}
.ideari-item:hover { background: var(--card); }
.ideari-item:hover::before { width: 100%; }
.ideari-num {
  display: block; font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 2.6rem; line-height: 1; color: var(--terra); margin-bottom: 16px;
}
.ideari-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.38rem; line-height: 1.18; margin: 0 0 10px; letter-spacing: -0.015em; }
.ideari-item p { font-family: var(--font-serif); font-size: 1.04rem; line-height: 1.58; color: var(--ink-soft); margin: 0; }
.ideari-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
@media (max-width: 900px) {
  .ideari-head { grid-template-columns: 1fr; }
  .ideari-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ideari-grid { grid-template-columns: 1fr; border-left: 0; }
  .ideari-item { display: grid; grid-template-columns: 50px 1fr; column-gap: 8px; padding: 20px 0; border-right: 0; }
  .ideari-num { grid-row: span 2; font-size: 2rem; margin: 0; }
  .ideari-item h3 { font-size: 1.22rem; margin-bottom: 6px; }
  .ideari-item p { font-size: 1rem; }
  .ideari-item:hover { background: transparent; }
  .ideari-cta .btn { flex: 1 1 100%; }
}

/* ---------- Qui soc ---------- */
.about-hero { padding-block: clamp(36px, 6vw, 80px); }
.about-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.about-photo { position: relative; width: clamp(150px, 22vw, 260px); }
.about-photo::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--green), var(--gold), var(--terra), var(--green));
  transform: translate(10px, 10px); opacity: .85;
}
.about-photo img { position: relative; display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 5px solid var(--paper); }
.about-hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); margin: 14px 0 10px; }
.about-facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, auto); gap: 12px; justify-content: start; }
.about-facts li { padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.about-facts strong { display: block; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.1; }
.about-facts span { font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 860px) {
  .about-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .about-grid { grid-template-columns: 1fr; justify-items: start; }
  .about-photo { width: 150px; }
  .about-hero p { font-size: 1.1rem; }
}
