/* ===================================================================
   Escola de Condução Olhanense — folha de estilos partilhada
   Paleta: Atlântico + sal marinho + ocre das telhas do Algarve
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Alfa+Slab+One&display=swap');

:root {
  --bg: #f7f5f3;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --navy: #c0232e;
  --navy-deep: #141414;
  --ochre: #c0232e;
  --ochre-deep: #8f1a22;
  --teal: #2f6f66;
  --line: #dcd5d3;
  --line-soft: #e8e2e0;
  --shadow-soft: 0 10px 24px -14px rgba(20,20,20,0.28);
  --ease: 180ms ease;

  --font-display: 'Poppins', -apple-system, sans-serif;
  --font-body: 'Poppins', -apple-system, sans-serif;

  --measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-deep);
  line-height: 1.18;
  margin: 0 0 0.5em 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transform: scaleY(1.18);
  transform-origin: left top;
  margin-bottom: 0.75em;
}
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { max-width: var(--measure); }

a { color: var(--teal); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--navy-deep);
  color: #cfcac8;
  font-size: 0.82rem;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  gap: 16px;
  flex-wrap: wrap;
}
.utility-bar a { color: #f0ecea; text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; }
.utility-links { display: flex; gap: 22px; flex-wrap: wrap; }
.utility-hours { color: #a8a4a2; }
@media (max-width: 700px) { .utility-hours { display: none; } }
.utility-bar { position: relative; z-index: 0; }
.utility-mark {
  position: absolute;
  z-index: -1;
  top: -46px;
  left: 58%;
  transform: translateX(-50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--navy);
  pointer-events: none;
}
@media (max-width: 700px) {
  .utility-mark { width: 60px; height: 60px; top: -30px; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 28px;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy-deep);
}
.brand-logo {
  height: 108px;
  width: auto;
  display: block;
}
@media (max-width: 700px) {
  .brand-logo { height: 64px; }
}
.nav-main {
  border-top: 1px solid var(--line-soft);
  overflow-x: auto;
}
@media (max-width: 700px) {
  .nav-main { mask-image: linear-gradient(90deg, #000 90%, transparent 100%); }
}
.nav-main-inner {
  display: flex;
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.nav-links a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding: 15px 0 13px;
  transition: color var(--ease), border-color var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--navy);
  color: var(--navy-deep);
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff !important;
  padding: 11px 20px;
  border-radius: 3px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background var(--ease), transform var(--ease);
}
.btn-whatsapp:hover { background: #255851; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(180deg, #fbf9f8 0%, var(--bg) 100%);
  position: relative;
  z-index: 0;
}
.hero-decor-left {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: -150px;
  transform: translateY(-50%);
  width: 248px;
  height: 248px;
  border-radius: 50%;
  background: var(--navy);
  pointer-events: none;
}
.hero-decor-circle {
  position: absolute;
  z-index: -1;
  top: 70px;
  right: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.45;
  pointer-events: none;
}
@media (max-width: 700px) {
  .hero-decor-left { width: 160px; height: 160px; left: -100px; }
  .hero-decor-circle { width: 74px; height: 74px; top: 50px; right: -18px; }
}
.section-decor-circle {
  position: absolute;
  z-index: -1;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.45;
  pointer-events: none;
}
.archive-photo {
  margin: 0 0 40px 0;
}
.archive-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
}
.archive-photo figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ochre-deep);
  font-weight: 600;
  margin: 0 0 18px 0;
  letter-spacing: 0.01em;
}
.hero-eyebrow::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--ochre-deep);
  display: inline-block;
  border-radius: 50%;
}
.hero p.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 14px 26px;
  text-decoration: none;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-secondary {
  display: inline-block;
  border: 1.5px solid var(--navy);
  color: var(--navy-deep);
  padding: 12.5px 24px;
  text-decoration: none;
  border-radius: 3px;
  font-weight: 600;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.btn-secondary:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }
.route-graphic { width: 100%; height: auto; }

/* ---------- Hero visual: L-plate + heritage seal (specific to a driving school) ---------- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.hero-visual .lplate-wrap {
  position: relative;
  width: 300px;
  transform: rotate(-4deg);
  z-index: 1;
}
.hero-visual .lplate-wrap svg.lplate-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(20,20,20,0.25)); }
.hero-visual .heritage-seal {
  position: absolute;
  width: 112px;
  height: 112px;
  top: -30px;
  right: -40px;
  z-index: 1;
}
@media (max-width: 700px) {
  .hero-visual { min-height: 260px; max-width: 320px; margin: 0 auto; }
  .hero-visual .lplate-wrap { width: 200px; }
  .hero-visual .heritage-seal { width: 78px; height: 78px; top: -16px; right: -24px; }
}

/* ---------- License-style category badge chart ---------- */
.license-card {
  background: linear-gradient(155deg, #f4e6ea 0%, #ede0e4 100%);
  border: 1px solid #dcc7cd;
  border-radius: 10px;
  padding: 26px 28px;
  box-shadow: var(--shadow-soft);
}
.license-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #7a4550;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.license-card-header .eu-badge {
  width: 20px; height: 14px;
  background: #1450a3;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffd94a;
  font-size: 7px;
}
.license-cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.license-cat {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.license-cat.active { background: var(--navy); color: #fff; }
.license-cat.inactive {
  border: 1.5px dashed #c9b3ba;
  color: #c9b3ba;
  background: transparent;
}
.license-card-foot {
  margin-top: 16px;
  font-size: 0.82rem;
  color: #7a4550;
}

/* ---------- Vehicle pictograms (used instead of plain letters) ---------- */
.veh-icon { width: 46px; height: 30px; color: var(--navy-deep); }
.cat-card:hover .veh-icon,
.service-row:hover .veh-icon { color: var(--navy); }

/* ---------- News highlight (home) ---------- */
.news-highlight-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.news-feature {
  background: var(--navy-deep);
  color: #f1eeed;
  padding: 36px 38px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-feature::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 150px; height: 150px;
  background: var(--navy);
  opacity: 0.9;
  border-radius: 50%;
}
.news-feature .news-flag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.news-feature .news-date { color: #c9c2c0; font-size: 0.82rem; font-weight: 600; }
.news-feature h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}
.news-feature p {
  color: #d8d3d1;
  max-width: 52ch;
  position: relative;
  z-index: 1;
}
.news-feature .cta {
  color: #fff;
  font-weight: 600;
  display: inline-block;
  margin-top: 8px;
  border-bottom: 1.5px solid var(--navy);
  position: relative;
  z-index: 1;
}
.news-side-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.news-side-item {
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.news-side-item:last-child { border-bottom: 1px solid var(--line-soft); }
.news-side-item .news-date { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }
.news-side-item h3 { font-size: 1rem; margin: 4px 0 0; }
@media (max-width: 780px) {
  .news-highlight-grid { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
section.block {
  padding: 56px 0;
  border-bottom: 1px solid var(--line-soft);
}
section.block.tinted { background: var(--surface); }
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.section-head .tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ochre-deep);
  padding-top: 6px;
}
@media (max-width: 700px) {
  .section-head { grid-template-columns: 1fr; gap: 6px; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- License category chart ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.cat-card {
  border-right: 1px solid var(--ink);
  border-bottom: 4px solid var(--navy);
  padding: 24px 20px;
  background: var(--surface);
  transition: background var(--ease), transform var(--ease);
}
.cat-card:hover {
  background: #fbf5f5;
  transform: translateY(-2px);
}
.cat-card .code {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-top: 12px;
}
.cat-card h3 { margin-top: 2px; font-size: 1.02rem; }
.cat-card p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

/* ---------- Two-col list (services) ---------- */
.service-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 28px 24px;
  margin: 0 -24px;
  border-top: 1px solid var(--line-soft);
  border-radius: 4px;
  transition: background var(--ease);
}
.service-row.with-photo { grid-template-columns: 280px 1fr; align-items: center; }
.service-row .veh-photo-wrap { position: relative; }
.service-row .veh-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
.service-row .code-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 3px 12px;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .service-row.with-photo { grid-template-columns: 1fr; }
}
.service-row:hover { background: var(--bg); }
.service-row:last-child { border-bottom: 1px solid var(--line-soft); }
.service-row h3 { margin: 0; }
.service-row .cta {
  margin-top: 12px;
  display: inline-block;
  font-weight: 600;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--ease);
}
.service-row .cta:hover { border-color: var(--teal); }
@media (max-width: 700px) {
  .service-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Schedule table ---------- */
table.schedule {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}
table.schedule th, table.schedule td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  font-size: 0.95rem;
}
table.schedule th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.schedule-grid th, .schedule-grid td { text-align: center; }
.schedule-grid thead th:first-child { background: var(--navy-deep); }
.schedule-grid tbody th { background: var(--navy-deep); color: #fff; font-weight: 600; }
.schedule-grid td.yes { color: var(--teal); font-weight: 700; font-size: 1.15rem; }
.schedule-grid td.no { color: #cbc4c2; font-weight: 700; font-size: 1.15rem; }
.schedule-note {
  background: #f7e9ea;
  border-left: 4px solid var(--ochre);
  padding: 14px 18px;
  margin-top: 20px;
  font-size: 0.94rem;
}

/* ---------- News ---------- */
.news-item {
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
}
.news-item:last-child { border-bottom: 1px solid var(--line-soft); }
.news-date {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.news-item h3 { margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 14px;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.contact-list .label {
  font-weight: 600;
  color: var(--navy-deep);
  min-width: 110px;
}
.map-frame {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 1px solid var(--line);
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #d6d2d0;
  padding: 40px 0 28px;
  font-size: 0.9rem;
}
.site-footer a { color: #f0ecea; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-grid strong { color: #fff; }
.social-links {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  color: #f0ecea !important;
}
.social-links a:hover { border-color: var(--navy); background: var(--navy); }
.social-links svg { width: 16px; height: 16px; }
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #3a3a3a;
  font-size: 0.8rem;
  color: #a8a4a2;
}

/* ---------- Horário em formato cartaz (baseado no cartaz das redes sociais) ---------- */
.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  gap: 48px;
  align-items: start;
}
.poster-wrap { width: 100%; }
.poster {
  container-type: inline-size;
  --p: calc(100cqw / 1080);
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}
.poster > * { position: absolute; }
.poster .p-ring { left: calc(var(--p) * 205); top: calc(var(--p) * -268); width: calc(var(--p) * 430); height: calc(var(--p) * 430); border: calc(var(--p) * 95) solid #b40001; border-radius: 50%; box-sizing: border-box; }
.poster .p-pill { left: calc(var(--p) * -80); top: calc(var(--p) * 70); width: calc(var(--p) * 228); height: calc(var(--p) * 150); background: #b80003; border-radius: calc(var(--p) * 75); }
.poster .p-dot { left: calc(var(--p) * -38); top: calc(var(--p) * 220); width: calc(var(--p) * 76); height: calc(var(--p) * 76); background: #000; border-radius: 50%; }
.poster .p-arch { left: calc(var(--p) * 743); top: calc(var(--p) * -60); width: calc(var(--p) * 305); height: calc(var(--p) * 560); background: #f8fad3; border-radius: 0 0 calc(var(--p) * 152) calc(var(--p) * 152); }
.poster .p-clock { left: calc(var(--p) * 785); top: calc(var(--p) * 245); width: calc(var(--p) * 175); height: calc(var(--p) * 175); }
.poster .p-dot2 { left: calc(var(--p) * 970); top: calc(var(--p) * 1154); width: calc(var(--p) * 36); height: calc(var(--p) * 36); background: #fafbd3; border-radius: 50%; }
.poster .p-red-edge { left: calc(var(--p) * 1025); top: calc(var(--p) * 1100); width: calc(var(--p) * 145); height: calc(var(--p) * 145); background: #b40001; border-radius: 50%; }
.poster .p-black-corner { left: calc(var(--p) * 950); top: calc(var(--p) * 1245); width: calc(var(--p) * 260); height: calc(var(--p) * 260); background: #000; border-radius: 50%; }
.poster .p-bar { left: calc(var(--p) * 490); top: calc(var(--p) * 1290); width: calc(var(--p) * 252); height: calc(var(--p) * 16); background: #fafad4; border-radius: calc(var(--p) * 8); }
.poster .p-logo { left: calc(var(--p) * 45); top: calc(var(--p) * 1193); width: calc(var(--p) * 417); height: auto; }
.poster .poster-date {
  left: calc(var(--p) * 690); top: calc(var(--p) * 40); width: calc(var(--p) * 385); margin: 0;
  text-align: center; color: #b40703;
  font-family: 'Alfa Slab One', 'Rockwell', Georgia, serif; font-weight: 400; font-size: calc(var(--p) * 50); line-height: calc(var(--p) * 72); white-space: nowrap;
}
.poster .poster-date span { display: block; }
.poster .poster-title {
  left: calc(var(--p) * 125); top: calc(var(--p) * 292); margin: 0; color: #b40703;
  font-family: 'Alfa Slab One', 'Rockwell', Georgia, serif; font-weight: 400; font-size: calc(var(--p) * 98); line-height: 1; letter-spacing: 0; text-transform: uppercase; white-space: nowrap;
}
.poster .poster-sub {
  left: calc(var(--p) * 125); top: calc(var(--p) * 414); margin: 0; color: #b40703; max-width: none;
  font-family: var(--font-body); font-weight: 400; font-size: calc(var(--p) * 46); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.01em;
}
.poster .poster-grid {
  left: calc(var(--p) * 15); top: calc(var(--p) * 520); width: calc(var(--p) * 1040);
  table-layout: fixed; border-collapse: separate; border-spacing: calc(var(--p) * 9) 0; background: transparent;
}
.poster-grid th, .poster-grid td { border: 0; padding: 0; text-align: center; background: transparent; }
.poster-grid thead th:first-child { width: calc(var(--p) * 150); }
.poster-grid thead th {
  height: calc(var(--p) * 165); background: #d9d9d9; color: #b40703;
  font-family: var(--font-body); font-weight: 500; font-size: calc(var(--p) * 32);
  border: calc(var(--p) * 2) solid #f3ebbd; vertical-align: middle;
}
.poster-grid thead th:first-child { background: transparent; border: 0; }
.poster-grid thead th:nth-child(2) { border-radius: 17% 20% 18% 15% / 16% 14% 19% 17%; }
.poster-grid thead th:nth-child(3) { border-radius: 19% 15% 17% 20% / 14% 18% 16% 15%; }
.poster-grid thead th:nth-child(4) { border-radius: 15% 18% 20% 16% / 18% 15% 14% 19%; }
.poster-grid thead th:nth-child(5) { border-radius: 20% 16% 15% 18% / 16% 19% 15% 14%; }
.poster-grid thead th:nth-child(6) { border-radius: 16% 19% 16% 20% / 15% 16% 19% 15%; }
.poster-grid tbody tr { height: calc(var(--p) * 110); }
.poster-grid tbody th {
  background: #b80003; color: #fff; background-clip: padding-box;
  border-top: calc(var(--p) * 6) solid transparent; border-bottom: calc(var(--p) * 6) solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: calc(var(--p) * 44);
  clip-path: polygon(1% 10%, 25% 3%, 55% 8%, 99% 2%, 100% 42%, 97% 100%, 62% 95%, 30% 100%, 2% 93%, 4% 55%);
}
.poster-grid td { vertical-align: middle; }
.poster-grid .mark { width: calc(var(--p) * 72); height: calc(var(--p) * 58); display: inline-block; vertical-align: middle; }
.schedule-side h2 { margin-bottom: 0.6em; }
.schedule-side p { color: var(--ink-soft); }
.schedule-legend { display: flex; gap: 18px; align-items: center; font-size: 0.92rem; margin: 18px 0 24px; }
.schedule-legend svg { width: 22px; height: 18px; vertical-align: -3px; margin-right: 6px; }
@media (max-width: 860px) {
  .schedule-layout { grid-template-columns: 1fr; gap: 32px; }
  .poster-wrap { max-width: 620px; margin: 0 auto; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Notícias (artigos e arquivo) ---------- */
.news-year { font-size: 1.05rem; letter-spacing: 0.08em; color: var(--ochre-deep); margin: 40px 0 6px; }
.news-year:first-child { margin-top: 0; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-card { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line-soft); }
.news-card:last-child { border-bottom: 1px solid var(--line-soft); }
.news-card.has-img { grid-template-columns: 260px 1fr; align-items: center; }
.news-card-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow-soft); display: block; }
.news-card h3 { margin: 6px 0 8px; font-size: 1.25rem; }
.news-card h3 a { color: var(--navy-deep); text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--navy); text-underline-offset: 4px; }
.news-card p { color: var(--ink-soft); margin: 0 0 10px; }
.news-card .news-date { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; }
.news-card .cta { font-weight: 600; }
.news-feature h3 a { color: inherit; text-decoration: none; }
.news-feature h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.news-side-item h3 a { color: var(--navy-deep); text-decoration: none; }
.news-side-item h3 a:hover { text-decoration: underline; text-decoration-color: var(--navy); text-underline-offset: 4px; }
@media (max-width: 700px) { .news-card.has-img { grid-template-columns: 1fr; } }

.article-wrap { max-width: 820px; }
.article-title { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.article-cover, .article-figure { margin: 0 0 28px; }
.article-figure { margin: 32px 0; }
.article-cover img, .article-figure img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: var(--shadow-soft); }
.article-cover figcaption, .article-figure figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }
.article-body { font-size: 1.06rem; line-height: 1.8; }
.article-body p { max-width: 68ch; margin: 0 0 1.2em; }
.article-body h2 { font-size: 1.45rem; margin: 1.8em 0 0.5em; }
.article-body ul { padding-left: 1.2em; max-width: 68ch; margin: 0 0 1.2em; }
.article-body li { margin-bottom: 0.4em; }
.share-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 28px; }
.share-label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 3px; border: 1.5px solid var(--navy-deep); background: transparent; color: var(--navy-deep); font: inherit; font-size: 0.88rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background var(--ease), color var(--ease); }
.share-btn:hover { background: var(--navy-deep); color: #fff; }
.share-btn[hidden] { display: none; }
.share-btn.share-wa { background: var(--teal); border-color: var(--teal); color: #fff; }
.share-btn.share-wa:hover { background: #255851; border-color: #255851; }
.share-hint { font-size: 0.82rem; color: var(--ink-soft); margin: -14px 0 28px; }
.article-cta { margin: 44px 0 0; padding: 26px 28px; background: var(--bg); border-left: 4px solid var(--navy); }
.article-cta h2 { font-size: 1.3rem; margin-bottom: 0.4em; }
.article-cta p { margin: 0 0 12px; }
.more-news h2 { font-size: 1.2rem; margin: 48px 0 12px; }
