/* =========================================================
   Associazione Sapori Italiani
   ========================================================= */

:root {
  --paper: #f7f1e6;
  --paper-2: #efe5d3;
  --paper-3: #e6d8bf;
  --white: #fffdf8;
  --ink: #1f1a15;
  --ink-2: #3b332b;
  --muted: #6e6357;
  --line: rgba(31, 26, 21, 0.14);
  --rosso: #c62f27;
  --rosso-deep: #8f1f19;
  --basilico: #1f6b3a;
  --basilico-deep: #154a28;
  --oro: #e2a93b;

  --f-display: "Gloock", Georgia, "Times New Roman", serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(31, 26, 21, 0.06), 0 12px 32px -12px rgba(31, 26, 21, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--rosso); color: var(--white); }
:focus-visible { outline: 2px solid var(--rosso); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-optical-sizing: auto;
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
em.it, .it { font-family: var(--f-display); font-weight: 400; color: var(--rosso); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 22px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--basilico) 0 33%, var(--white) 33% 66%, var(--rosso) 66%);
  box-shadow: 0 0 0 1px var(--line);
}
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--rosso); color: var(--white); }
.btn-primary:hover { background: var(--rosso-deep); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); }
/* Botão de ação principal (inscrições) */
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 1.06rem; box-shadow: 0 12px 26px -12px rgba(198,47,39,.75); transition: transform .25s var(--ease), background-color .25s, box-shadow .25s var(--ease); }
.btn-lg:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(198,47,39,.85); }
.btn-lg:active { transform: translateY(0) scale(0.98); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--rosso);
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: border-color .2s;
}
.link-arrow:hover { border-color: currentColor; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- Aviso (announcement bar) ---------- */

.aviso {
  background: var(--rosso); color: var(--white);
  font-size: 0.92rem;
}
.aviso .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.aviso a.aviso-link { color: var(--white); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.aviso-close {
  background: none; border: 0; cursor: pointer; color: var(--white); opacity: .8;
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; flex: none;
}
@media (max-width: 640px) { .aviso { font-size: .84rem; } .aviso .wrap { gap: 8px; justify-content: space-between; text-align: left; } }
.aviso-close:hover { opacity: 1; background: rgba(255,255,255,.12); }
.aviso-close svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 230, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 60px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-item > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 13px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: 0.96rem; color: var(--ink-2);
  background: none; border: 0; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.nav > a:hover, .nav-item > button:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"], .nav-item.active > button { color: var(--rosso); }
.nav-item { position: relative; }
.nav-item > button svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-item.open > button svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  min-width: 270px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.nav-item.open .dropdown, .nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-size: 0.95rem; }
.dropdown a:hover { background: var(--paper); }
.dropdown a small { display: block; color: var(--muted); font-size: 0.82rem; }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 8px; }
.header-cta { flex: none; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; place-items: center; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 78px; left: 0; right: 0; bottom: 0; z-index: 49;
  background: var(--paper); overflow-y: auto;
  padding: 16px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
body.menu-open { overflow: hidden; }
.mobile-menu a { display: block; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 1.6rem; }
.mobile-menu a.sub { font-family: var(--f-body); font-size: 1rem; padding: 10px 0 10px 18px; color: var(--ink-2); }
.mobile-menu a.btn { display: flex; margin-top: 24px; width: 100%; padding: 0 22px; font-family: var(--f-body); font-size: 1rem; border-bottom: 0; }

@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .burger { display: grid; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); flex-wrap: wrap; }
.section-head h2 { margin-top: 14px; max-width: 18ch; }
.section-head .lead { margin: 14px 0 0; }
.bg-paper-2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink .eyebrow { color: rgba(247, 241, 230, .65); }
.bg-ink .lead { color: rgba(247, 241, 230, .8); }

.tovaglia {
  height: 22px;
  background:
    repeating-linear-gradient(90deg, rgba(198,47,39,.85) 0 22px, transparent 22px 44px),
    repeating-linear-gradient(0deg, rgba(198,47,39,.45) 0 11px, transparent 11px 22px),
    var(--white);
  opacity: .9;
}

/* ---------- Hero (home): texto + foto + destaques rotativos ---------- */

.hero { padding: clamp(20px, 3vw, 36px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 14px; height: clamp(600px, calc(100vh - 170px), 760px); }
.hero-text { grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center; padding: clamp(8px, 2vw, 24px) clamp(0px, 3vw, 48px) clamp(8px, 2vw, 24px) 0; }
.hero-text h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); margin: 18px 0 22px; }
.hero-text h1 .it { display: block; }
.hero-text .lead { margin: 0 0 32px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-3); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.1s var(--ease), transform 7s linear; }
.hero-photo img.on { opacity: 1; transform: scale(1); }
.hero-photo-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; display: flex; gap: 4px; padding: 4px 8px; border-radius: 999px; background: rgba(20,16,12,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-photo-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero-photo-dots button i { display: block; width: 20px; height: 7px; background: rgba(255,253,248,.55); clip-path: inset(0 6.5px round 4px); transition: clip-path .3s var(--ease), background-color .3s; }
.hero-photo-dots button.on i { clip-path: inset(0 0 round 4px); background: var(--white); }
@media (prefers-reduced-motion: reduce) { .hero-photo img { transition: opacity .3s; transform: none; } }

.hero-news { position: relative; height: 168px; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: var(--paper); }
.hero-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 168px 1fr; text-decoration: none;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.hero-slide.on { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.hero-slide:hover img { transform: scale(1.03); }
.hero-slide-body { padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
.hero-slide-body small { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); }
.hero-slide-body strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.1; margin-top: 10px; }
.hero-slide-body .go { font-size: .88rem; font-weight: 600; }
.hero-dots { position: absolute; right: clamp(18px, 2vw, 26px); bottom: clamp(14px, 2vw, 22px); z-index: 2; display: flex; gap: 6px; }
.hero-dots button { width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero-dots button i { display: block; width: 18px; height: 3px; border-radius: 2px; background: rgba(247,241,230,.25); overflow: hidden; }
.hero-dots button i::after { content: ""; display: block; height: 100%; background: var(--oro); transform: scaleX(0); transform-origin: left; }
.hero-dots button.on i::after { animation: hero-fill 6s linear forwards; }
.hero-news.paused .hero-dots button.on i::after { animation-play-state: paused; }
@keyframes hero-fill { to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-dots button.on i::after { animation: none; transform: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .hero-text { grid-row: auto; padding: 8px 0 12px; }
  .hero-photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .hero-news { height: 150px; }
  .hero-slide { grid-template-columns: 130px 1fr; }
  .hero-slide-body strong { font-size: 1.15rem; }
  .hero-slide-body small { letter-spacing: .08em; }
  .hero-slide-body .go { display: none; }
}

/* Fundo do hero + notícias: marca d'água "Sapori" + faixa da bandeira italiana */
.hero-zone { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg::before, .hero-bg::after { content: ""; position: absolute; }

/* "Sapori" gigante atrás do título */
.hero-bg::before {
  content: "Sapori"; inset: 0.03em auto auto -0.05em;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(12rem, 27vw, 26rem); line-height: 1; letter-spacing: -0.04em;
  color: var(--paper-3); opacity: .7;
}

/* Faixa tricolor inclinada: atrás da foto e continua pelas notícias abaixo.
   A origem fica a meio do hero para a inclinação lá manter o mesmo sítio. */
.hero-bg::after {
  inset: -90px auto 0 62%; width: 30%;
  transform: skewX(-25deg); transform-origin: 50% 530px;
  background: linear-gradient(90deg, var(--basilico) 0 33.34%, #fffdf8 33.34% 66.67%, var(--rosso) 66.67%);
  opacity: .92;
}
/* O link das notícias pode cair em cima da faixa: fundo próprio para se ler */
.hero-zone .section-head .link-arrow { background: var(--paper); padding: 10px 18px; border-radius: 999px; }

@media (max-width: 900px) {
  .hero-bg::before { font-size: 46vw; inset: 2% auto auto -0.06em; }
  .hero-bg::after {
    inset: 520px -10% auto -10%; width: auto; height: 150px;
    transform: skewY(-10deg);
    background: linear-gradient(180deg, var(--basilico) 0 33.34%, #fffdf8 33.34% 66.67%, var(--rosso) 66.67%);
  }
}

/* ---------- Cards: news ---------- */

.news-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 2.5vw, 32px); }
.news-side { display: grid; gap: clamp(20px, 2.5vw, 32px); align-content: start; }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { margin: 0; color: var(--muted); font-size: .96rem; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--paper-2); color: var(--ink-2);
}
.tag-anuncio { background: var(--rosso); color: var(--white); }
.tag-resultados { background: var(--oro); color: var(--ink); }
.tag-evento { background: var(--basilico); color: var(--white); }
.card-media .tag { position: absolute; left: 14px; top: 14px; }

.card-lg .card-media { aspect-ratio: 5 / 4; }
.card-lg .card-media img { object-position: center 30%; }
.card-lg .card-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.card-row { flex-direction: row; }
.card-row .card-media { width: 42%; aspect-ratio: auto; flex: none; }
.card-row .card-body { padding: 20px 22px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px); }
@media (max-width: 960px) {
  .news-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .card-row { flex-direction: column; }
  .card-row .card-media { width: 100%; aspect-ratio: 4 / 3; }
}

/* ---------- Filters ---------- */

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); font-weight: 500; font-size: .92rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Services / O que fazemos ---------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 34px clamp(18px, 2.4vw, 34px) 10px 0; }
.pillar + .pillar { border-left: 1px solid var(--line); padding-left: clamp(18px, 2.4vw, 34px); }
.pillar .num { font-family: var(--f-display); color: var(--rosso); font-size: 1.1rem; }
.pillar h3 { margin: 14px 0 12px; }
.pillar p { color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
}

/* ---------- Series (our events) ---------- */

.series { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.serie {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: var(--white); background: var(--ink);
}
.serie img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.serie::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,0) 25%, rgba(20,16,12,.55) 55%, rgba(20,16,12,.92) 100%); }
.serie:hover img { transform: scale(1.05); }
.serie-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px; }
.serie-body .it { color: var(--oro); font-size: 1rem; display: block; margin-bottom: 6px; }
.serie-body h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
.serie-body p { margin: 8px 0 0; font-size: .9rem; color: rgba(255,253,248,.82); }
@media (max-width: 1000px) { .series { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .series { grid-template-columns: 1fr; } .serie { aspect-ratio: 4 / 3.4; } }

/* ---------- Photo band with quote ---------- */

.band { position: relative; min-height: 520px; display: grid; align-items: end; color: var(--white); overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,16,12,.88) 0%, rgba(20,16,12,.6) 45%, rgba(20,16,12,.15) 100%), linear-gradient(0deg, rgba(20,16,12,.5) 0%, rgba(20,16,12,0) 50%); }
.band .wrap { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 72px; }
.band blockquote { margin: 0; max-width: 22ch; font-family: var(--f-display); font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; }
.band blockquote .it { color: var(--oro); }
.band cite { display: block; margin-top: 20px; font-style: normal; font-size: .95rem; color: rgba(255,253,248,.8); }

/* ---------- Solidária ---------- */

.solidaria { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.solidaria-card {
  background: var(--rosso); color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden;
}
.solidaria-card .price { font-family: var(--f-display); font-size: clamp(3.4rem, 7vw, 5.4rem); line-height: 1; letter-spacing: -0.03em; }
.solidaria-card .price small { font-size: .4em; letter-spacing: 0; }
.solidaria-card ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.solidaria-card li { display: flex; gap: 12px; align-items: flex-start; }
.solidaria-card li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--oro); flex: none; }
.solidaria-card .cvp { position: absolute; right: 22px; top: 22px; width: 64px; border-radius: 10px; }
@media (max-width: 860px) { .solidaria { grid-template-columns: 1fr; } }
/* Pizza Solidária: foto + logótipo da Cruz Vermelha, com cruz em marca d'água */
.sol-section { position: relative; overflow: hidden; isolation: isolate; }
.sol-section::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: clamp(380px, 38vw, 560px); aspect-ratio: 1; left: 4%; top: 50%; transform: translateY(-50%);
  background:
    linear-gradient(var(--rosso), var(--rosso)) center / 33.3% 100% no-repeat,
    linear-gradient(var(--rosso), var(--rosso)) center / 100% 33.3% no-repeat;
  opacity: .06;
}
.sol-photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 28px 56px -30px rgba(90,40,20,.45); }
.sol-photo > img:first-child { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; display: block; }
.sol-photo-cvp { position: absolute; right: 18px; bottom: 18px; width: 92px; border-radius: 14px; background: var(--white); padding: 6px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
@media (max-width: 860px) { .sol-section::before { width: 90vw; left: auto; right: -20vw; top: 6%; transform: none; } .sol-photo-cvp { width: 74px; right: 12px; bottom: 12px; } }


/* ---------- Membership ---------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.5vw, 28px); }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.plan.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan.featured .muted, .plan.featured li { color: rgba(247,241,230,.82); }
.plan-price { font-family: var(--f-display); font-size: 3.2rem; line-height: 1; letter-spacing: -0.03em; }
.plan-price small { font-family: var(--f-body); font-size: .95rem; letter-spacing: 0; color: var(--muted); }
.plan.featured .plan-price small { color: rgba(247,241,230,.6); }
.plan ul { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 12px; color: var(--ink-2); font-size: .97rem; line-height: 1.45; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--basilico); }
.plan.featured li svg { color: var(--oro); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan .btn-lg { align-self: stretch; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Partners ---------- */

.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.partner { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 3 / 2; overflow: hidden; }
.partner img { position: absolute; inset: 16%; width: 68%; height: 68%; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .78; transition: filter .3s, opacity .3s; }
@media (max-width: 1000px) { .partners { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .partners { grid-template-columns: repeat(2, 1fr); } }
.partner:hover img { filter: none; opacity: 1; }

/* ---------- Page header ---------- */

.page-head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); margin: 16px 0 18px; max-width: 16ch; }
.page-head .lead { margin: 0; }
.crumbs { font-size: .88rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--rosso); }
.crumbs span { margin: 0 8px; opacity: .5; }

.page-hero { position: relative; min-height: clamp(380px, 56vh, 560px); display: grid; align-items: end; color: var(--white); overflow: hidden; background: var(--ink); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.15) 0%, rgba(20,16,12,.82) 100%); z-index: 1; }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 80px; padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero h1 { max-width: 16ch; margin: 14px 0 12px; }
.page-hero .eyebrow, .page-hero .crumbs { color: rgba(255,253,248,.8); }
.page-hero .lead { color: rgba(255,253,248,.85); margin: 0; }
.page-hero .it { color: var(--oro); }

/* ---------- Article / prose ---------- */

.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose { font-size: 1.1rem; line-height: 1.72; max-width: 68ch; }
.prose p:first-of-type::first-letter { font-family: var(--f-display); float: left; font-size: 4.2em; line-height: .82; padding: 6px 10px 0 0; color: var(--rosso); }
.prose.no-drop p:first-of-type::first-letter { all: unset; }
.prose strong { font-weight: 600; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 1.6em 0 .6em; }
.aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.aside-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.aside-box h4 { font-family: var(--f-body); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: .97rem; line-height: 1.45; }
.facts svg { width: 18px; height: 18px; margin-top: 2px; color: var(--rosso); }
.facts small { display: block; color: var(--muted); font-size: .82rem; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; background: var(--paper-3); }
.article-cover img { width: 100%; max-height: 640px; object-fit: contain; background: var(--paper-2); }
.article-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 30px; }
.article-images button { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--white); }
.article-images img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: 4 / 3; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } .aside { position: static; } }

/* ---------- Event list ---------- */

.event-list { display: grid; gap: 16px; }
.event-row {
  display: grid; grid-template-columns: 110px 160px 1fr auto; gap: clamp(16px, 2.4vw, 32px); align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px clamp(16px, 2vw, 24px) 16px 16px;
  text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.event-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.date-tile { text-align: center; border-radius: 14px; background: var(--paper); padding: 14px 6px; line-height: 1; }
.date-tile .d { font-family: var(--f-display); font-size: 2.4rem; letter-spacing: -0.03em; }
.date-tile .m { display: block; margin-top: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rosso); }
.date-tile .y { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); }
.event-thumb { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--paper-3); }
.event-thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-info h3 { margin: 6px 0 6px; }
.event-info p { margin: 0; color: var(--muted); font-size: .95rem; }
.event-go { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .2s, color .2s; }
.event-row:hover .event-go { background: var(--rosso); color: var(--white); border-color: var(--rosso); }
.event-go svg { width: 18px; height: 18px; }
@media (max-width: 820px) {
  .event-row { grid-template-columns: 84px 1fr; }
  .event-thumb, .event-go { display: none; }
  .date-tile .d { font-size: 2rem; }
}

.presto { display: grid; grid-template-columns: 1fr auto; gap: clamp(28px, 5vw, 80px); align-items: center; }
.presto-big { font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: 1; margin: 14px 0 18px; }
.presto-sub { color: var(--ink-2); max-width: 46ch; margin: 0 0 18px; }
.presto-links { display: flex; gap: 28px; flex-wrap: wrap; margin: 0; }
.presto-polaroid { margin: 0; width: clamp(190px, 19vw, 240px); background: var(--white); padding: 12px 12px 0; box-shadow: 0 2px 4px rgba(31,26,21,.08), 0 18px 36px -14px rgba(31,26,21,.35); transform: rotate(3deg); transition: transform .5s var(--ease); }
.presto-polaroid:hover { transform: rotate(1deg) translateY(-4px); }
.presto-polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.presto-polaroid figcaption { font-family: var(--f-display); font-size: 1.15rem; text-align: center; padding: 12px 0 16px; color: var(--ink-2); }
@media (max-width: 720px) { .presto { grid-template-columns: 1fr; } .presto-polaroid { justify-self: center; margin-bottom: 28px; width: 210px; } }

/* ---------- Gallery ---------- */

.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.album { text-decoration: none; display: block; }
.album-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-3); }
.album-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.album:hover .album-media img { transform: scale(1.05); }
.album-count { position: absolute; right: 12px; bottom: 12px; background: rgba(20,16,12,.72); color: var(--white); font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.album h3 { margin-top: 14px; font-size: 1.3rem; }
.album p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 960px) { .albums { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .albums { grid-template-columns: 1fr; } }

.photos { columns: 3 260px; column-gap: 14px; }
.photos button { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--paper-3); break-inside: avoid; }
.photos img { width: 100%; height: auto; transition: transform .6s var(--ease), opacity .3s; }
.photos button:hover img { transform: scale(1.03); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(14, 11, 8, .94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .9rem; }
@media (max-width: 640px) { .lightbox { padding: 64px 10px; } .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } }

/* ---------- Forms ---------- */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--rosso); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--rosso); box-shadow: 0 0 0 4px rgba(198,47,39,.12); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rosso); flex: none; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.4vw, 40px); }
.hidden { display: none !important; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* Confirmação depois de enviar um formulário */
.form-done { text-align: center; padding-block: clamp(36px, 6vw, 64px); outline: none; }
.form-done h3 { margin: 0 0 10px; }
.form-done p { margin: 0 auto; max-width: 42ch; color: var(--muted); }
.done-mark { display: block; width: 88px; height: 88px; margin: 0 auto 24px; overflow: visible; }
.done-ring { fill: none; stroke: var(--basilico); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 164; stroke-dashoffset: 164; transform: rotate(-90deg); transform-origin: center; animation: done-draw .6s var(--ease) forwards; }
.done-disc { fill: var(--basilico); transform: scale(0); transform-origin: center; animation: done-pop .45s var(--ease) .5s forwards; }
.done-check { fill: none; stroke: var(--white); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 32; stroke-dashoffset: 32; animation: done-draw .35s var(--ease) .75s forwards; }
.form-done h3, .form-done p { opacity: 0; transform: translateY(8px); animation: done-up .6s var(--ease) .9s forwards; }
.form-done p { animation-delay: 1s; }
@keyframes done-draw { to { stroke-dashoffset: 0; } }
@keyframes done-pop { 60% { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes done-up { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .form-done *, .done-mark * { animation-delay: 0s !important; } }

.tabs { display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px; background: var(--paper-2); margin-bottom: 26px; }
.tabs button { border: 0; background: none; height: 42px; padding: 0 20px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--muted); transition: background-color .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(31,26,21,.12); }

.declare { background: var(--paper); border-radius: var(--radius); padding: 18px 20px; font-size: .92rem; color: var(--ink-2); }
.declare ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.iban { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; background: var(--white); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }

/* ---------- Two column split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-3); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-media { aspect-ratio: 4 / 3; } }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 20px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline strong { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; line-height: 1.1; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 64px); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--rosso); }
.contact-list svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--rosso); }
.map { margin-top: 26px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: sepia(.15) saturate(.9); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid { align-items: start; }
.contact-list div { min-width: 0; }
.contact-grid .map { aspect-ratio: 16 / 10; }
.ct-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 14px 0 clamp(20px, 2.6vw, 28px); }
.ct-send { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.ct-send .req { color: var(--rosso); }

/* ---------- CTA strip ---------- */

.cta-strip { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; background: var(--basilico); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); }
.cta-strip h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); max-width: 20ch; }
.cta-strip p { margin: 12px 0 0; color: rgba(247,241,230,.85); max-width: 52ch; }
.cta-strip .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-strip .btn-ghost:hover { background: var(--paper); color: var(--basilico-deep); border-color: var(--paper); }
@media (max-width: 760px) { .cta-strip { grid-template-columns: 1fr; } }

/* Sócios: faixa com foto de grupo */
.so-photo { position: relative; display: grid; border-radius: var(--radius-lg); overflow: hidden; min-height: 440px; align-items: end; color: var(--white); background: var(--ink); }
.so-photo > img { position: absolute; top: 0; bottom: 0; right: 0; left: 34%; width: 66%; height: 100%; object-fit: cover; object-position: center 45%; }
.so-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 34%, rgba(31,26,21,.75) 42%, rgba(31,26,21,0) 58%); }
.so-photo-body { position: relative; z-index: 2; padding: clamp(28px, 4vw, 56px); max-width: 520px; align-self: center; }
.so-photo h2 { margin: 14px 0 16px; }
.so-photo .eyebrow { color: rgba(255,253,248,.8); }
.so-photo h2 .it { color: var(--oro); }
.so-photo p { color: rgba(255,253,248,.85); margin: 0; }
.so-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 26px 0 0 !important; }
.so-photo .btn-ghost { color: var(--white); }
.so-photo .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
@media (max-width: 860px) { .so-photo { min-height: 0; } .so-photo > img { position: relative; left: auto; width: 100%; height: auto; aspect-ratio: 16 / 10; } .so-photo::before { inset: auto 0 0 0; height: 100%; background: linear-gradient(180deg, rgba(31,26,21,0) 0%, rgba(31,26,21,0) 30%, var(--ink) 52%); } .so-photo-body { margin-top: -60px; max-width: none; } }

/* ---------- Quem somos ---------- */
.qs-hero { margin: clamp(28px, 4vw, 44px) 0 0; }
.qs-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 40%; border-radius: var(--radius-lg); background: var(--paper-3); }
.qs-hero figcaption, .qs-story-media figcaption { margin-top: 12px; font-size: .88rem; color: var(--muted); }

.qs-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.qs-intro-side { position: sticky; top: 110px; }
.qs-quote { font-family: var(--f-display); font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.12; letter-spacing: -0.025em; margin: 18px 0 clamp(28px, 3.5vw, 44px); text-wrap: balance; }
.qs-stats { margin: 0; display: grid; border-top: 1px solid var(--line); }
.qs-stats div { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.qs-stats dt { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; color: var(--rosso); letter-spacing: -0.03em; }
.qs-stats dd { margin: 0; color: var(--ink-2); font-size: .97rem; }
.qs-intro .prose { font-size: clamp(1.1rem, 1.35vw, 1.2rem); max-width: none; }

.qs-story { align-items: start; }
.qs-story-media { margin: 0; position: sticky; top: 110px; }
.qs-story-title { margin: 14px 0 clamp(28px, 3.5vw, 44px); }
.qs-story .timeline strong small { display: block; margin-top: 4px; font-family: var(--f-body); font-size: .8rem; color: var(--muted); letter-spacing: 0; }
/* Marco da fundação: ponto maior com a tricolore */
.timeline li.key strong::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--basilico) 0 33.4%, var(--white) 33.4% 66.6%, var(--rosso) 66.6%); box-shadow: 0 0 0 1px var(--line); }
.timeline li.key p { color: var(--ink); font-weight: 500; }
.qs-partners { padding-top: 0; }

@media (max-width: 860px) {
  .qs-intro { grid-template-columns: 1fr; }
  .qs-intro-side, .qs-story-media { position: static; }
  .qs-hero img { aspect-ratio: 4 / 3; }
}

/* ---------- Página de notícias ---------- */
.nw-head { padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); }
.nw-head-row { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-top: 18px; }
.nw-head h1 { font-size: clamp(3rem, 8vw, 6.4rem); line-height: .95; }
.nw-head .lead { margin: 0 0 10px; max-width: 46ch; }
@media (max-width: 760px) { .nw-head-row { grid-template-columns: 1fr; gap: 16px; } }

.nw-feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.nw-feat:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.nw-feat-media { background: var(--paper-2); aspect-ratio: 1; overflow: hidden; }
.nw-feat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.nw-feat:hover .nw-feat-media img { transform: scale(1.03); }
.nw-feat-body { padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.nw-feat-body h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.nw-feat-body p { margin: 0; color: var(--ink-2); font-size: 1.08rem; max-width: 46ch; }
.nw-feat-body .btn { margin-top: 10px; }
@media (max-width: 820px) { .nw-feat { grid-template-columns: 1fr; } }

.nw-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: clamp(56px, 7vw, 88px) 0 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.nw-bar-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.nw-bar .filters { margin: 0; }
.chip-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--paper-2); color: var(--muted); font-size: .76rem; font-weight: 600; }
.chip[aria-pressed="true"] .chip-n { background: rgba(247,241,230,.18); color: var(--paper); }

.nw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.nw-card { display: flex; flex-direction: column; text-decoration: none; }
.nw-card-media { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.nw-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.nw-card:hover .nw-card-media img { transform: scale(1.04); }
.nw-card-body { padding: 18px 2px 0; display: flex; flex-direction: column; gap: 10px; }
.nw-card-body h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); transition: color .2s; }
.nw-card:hover h3 { color: var(--rosso); }
.nw-card-body p { margin: 0; color: var(--muted); font-size: .96rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-card-body .link-arrow { margin-top: 2px; align-self: flex-start; }
@media (max-width: 960px) { .nw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .nw-grid { grid-template-columns: 1fr; } }

.nw-follow { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--paper-2); }
.nw-follow h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.nw-follow p { margin: 10px 0 0; color: var(--ink-2); max-width: 52ch; }
@media (max-width: 700px) { .nw-follow { grid-template-columns: 1fr; } }

/* ---------- Página de eventos ---------- */
.date-tile .d-range { font-size: 1.7rem; white-space: nowrap; letter-spacing: -0.04em; }
.ev-jump { display: flex; gap: 8px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 36px); }
.ev-jump a { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-weight: 500; font-size: .92rem; transition: border-color .2s, background-color .2s, color .2s; }
.ev-jump a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ev-year { display: grid; grid-template-columns: 120px 1fr; gap: clamp(16px, 3vw, 40px); align-items: start; }
.ev-year + .ev-year { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.ev-year-label { font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--rosso); position: sticky; top: 100px; }
@media (max-width: 720px) { .ev-year { grid-template-columns: 1fr; gap: 12px; } .ev-year-label { position: static; } }
#proximos, #formatos, #arquivo { scroll-margin-top: 90px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgba(247,241,230,.78); font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: clamp(56px, 7vw, 88px) 0 48px; }
.footer-brand img { height: 74px; width: auto; background: var(--paper); border-radius: 14px; padding: 8px 12px; }
.footer-brand p { margin: 18px 0 0; max-width: 34ch; }
.footer-brand .it { color: var(--oro); }
.site-footer h4 { font-family: var(--f-body); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,241,230,.5); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: rgba(247,241,230,.86); }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(247,241,230,.2); display: grid; place-items: center; }
.footer-social a:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(247,241,230,.12); padding: 22px 0 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: rgba(247,241,230,.55); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Esqueleto das imagens ---------- */

img.img-loading {
  background: linear-gradient(100deg, var(--paper-2) 40%, var(--paper) 50%, var(--paper-2) 60%) 0 0 / 300% 100%;
  animation: skel 1.3s linear infinite;
}
img.img-in { animation: img-in .5s var(--ease); }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* Sem "to": a foto volta à opacidade que já tinha (os slides escondidos continuam escondidos) */
@keyframes img-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { img.img-loading { animation: none; } }

/* ---------- Share ---------- */
.share { display: flex; gap: 10px; }
.share a, .share button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background-color .2s, color .2s, border-color .2s; }
.share a:hover, .share button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.share svg { width: 18px; height: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.grid-2 .card-media { aspect-ratio: 16 / 10; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

/* Gloock: apertar ligeiramente títulos grandes e reforçar texto sobre fotos */
h1, h2 { letter-spacing: -0.015em; }
.serie-body .it, .band blockquote .it, .page-hero .it { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
