:root {
  --accent: #d60024;
  --accent-soft: #fbe6ea;
  --bg: #f5f5f9;
  --card: #ffffff;
  --text: #0f1115;
  --muted: #5f6672;
  --border: #e3e5ec;
  --radius: 25px;
  --shadow-soft: 0 16px 40px rgba(15, 17, 21, 0.08);
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html.no-js .js-only {
  display: none !important;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(214, 0, 36, 0.08), transparent 35%), radial-gradient(circle at 80% 0%, rgba(15, 17, 21, 0.06), transparent 25%), var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  padding: 0 1.25rem 3rem;
}


.page-transition {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(214, 0, 36, 0.18), rgba(15, 17, 21, 0.05));
  opacity: 0;
  pointer-events: none;
  z-index: 50;
}

html[data-gsap="0"] .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html[data-gsap="0"] .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body:not(.user-is-tabbing) a:focus {
  outline: none;
}

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

.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;
}

.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  display: flex;
  justify-content: center;
}

.site-header .pill {
  background: #ffffff;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  width: min(980px, 100%);
  transition: padding 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.site-header.compact .pill {
  padding: 0.5rem 0.8rem;
  box-shadow: 0 6px 20px rgba(15, 17, 21, 0.05);
  transform: translateY(-4px);
}

body.page-home .site-header {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  pointer-events: none;
}

body.page-home .site-header .pill {
  pointer-events: auto;
}

@media (max-width: 640px) {
  body.page-home .site-header {
    left: 1.25rem;
    right: 1.25rem;
  }
}

.brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: clamp(140px, 16vw, 190px);
  height: auto;
  max-height: 56px;
  object-fit: contain;
  display: block;
}

.main-nav {
  display: flex;
  gap: 0.75rem;
  margin: 0 auto;
  align-items: center;
}

.header-cta {
  margin-left: 0.5rem;
  padding: 0.6rem 0.85rem;
}

.main-nav a {
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  background: var(--accent-soft);
}

.main-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(214, 0, 36, 0.12);
}

.nav-toggle {
  display: none;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 21, 0.28);
  backdrop-filter: blur(10px);
  z-index: 19;
}

.mobile-nav .panel {
  margin: 6rem auto 1rem;
  width: min(980px, calc(100% - 2.5rem));
}


main {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

body:not(.page-home) main {
  margin-top: 3.5rem;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

body.page-blog main,
body.page-article main {
  max-width: 1420px;
}

.hero {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 100vh;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.25rem, 5vw, 3rem) clamp(2.6rem, 7vw, 4rem);
  color: #fff;
}

.hero-cinematic {
  isolation: isolate;
  background: #0f1115;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../hero-archery.png') center center / cover no-repeat;
  transform: scale(1.08);
  will-change: transform;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 25%, rgba(214, 0, 36, 0.62), transparent 42%),
  radial-gradient(circle at 85% 10%, rgba(15, 17, 21, 0.55), transparent 38%),
  linear-gradient(180deg, rgba(15, 17, 21, 0.78), rgba(15, 17, 21, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero h1 {
  margin: 0.35rem 0;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.lead {
  margin: 0.75rem 0 1.2rem;
  color: rgba(245, 245, 247, 0.9);
  position: relative;
  z-index: 1;
}

.blog-panel .lead,
.blog-card .lead,
.article-content .lead {
  color: var(--text);
}

.page-blog .lead,
.page-article .lead {
  color: var(--text);
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.badge {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  font-size: 1rem;
  gap: 0.45rem;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: rgba(214, 0, 36, 0.16);
  box-shadow: 0 8px 24px rgba(214, 0, 36, 0.18);
}

.btn.ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.blog-card .btn.ghost {
  border-color: rgba(214, 0, 36, 0.35);
  color: var(--text);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.panel {
  background: var(--card);
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.panel-contrast {
  background: linear-gradient(135deg, rgba(214, 0, 36, 0.06), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(214, 0, 36, 0.18);
}

.blog-panel {
  padding: 2rem;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.filter-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 17, 21, 0.05);
  position: sticky;
  top: 6rem;
}

.filter {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.filter:last-child {
  margin-bottom: 0;
}

.filter-label {
  color: var(--muted);
  font-weight: 600;
}

.filter input,
.filter select,
.filter textarea {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
}

.filter textarea {
  resize: vertical;
}

.login-box {
  max-width: 420px;
  margin: 0 auto;
}

.dash-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.logout-btn {
  gap: 0.35rem;
}

.post-cards {
  display: grid;
  gap: 0.75rem;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 17, 21, 0.05);
  display: grid;
  gap: 0.6rem;
}

.post-card .actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-card .actions .btn {
  white-space: nowrap;
}

.post-card .btn.small {
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
}

.post-card .btn.danger {
  border-color: rgba(214, 0, 36, 0.2);
  color: #b10f28;
}

.edit-panel {
  display: none;
  padding: 0.6rem 0 0;
  border-top: 1px solid var(--border);
}

.edit-panel.open {
  display: block;
}

.blog-card h3 {
  margin-top: 0.2rem;
  color: var(--text);
}

.blog-card p {
  color: var(--text);
}

.blog-card .eyebrow {
  color: var(--accent);
}

.blog-media {
  border-radius: calc(var(--radius) * 0.85);
  overflow: hidden;
  border: 1px solid var(--border);
}

.blog-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gallery-grid {
  column-count: 3;
  column-gap: 1rem;
  margin-top: 1rem;
}

.gallery-grid .gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 17, 21, 0.06);
  background: #fff;
  position: relative;
}

.gallery-grid img {
  width: 100%;
  display: block;
  height: auto;
}

.gallery-grid .skeleton {
  background: linear-gradient(90deg, #f3f4f8, #ffffff, #f3f4f8);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  height: 220px;
}

.section-title-with-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
}

.info-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(214, 0, 36, 0.25);
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(214, 0, 36, 0.12);
}

.info-btn:hover,
.info-btn:focus-visible {
  background: var(--accent-soft);
}

.panel.panel-contrast {
  position: relative;
}

.panel.panel-contrast .info-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: calc(var(--radius) * 1.1);
  padding: 1.6rem;
  max-width: 680px;
  width: calc(100% - 2rem);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.modal-close {
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  border: none;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.1rem;
}

.modal-body ol {
  padding-left: 0;
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.modal-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
}

.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.step-icon svg {
  width: 20px;
  height: 20px;
}

.step-text p {
  margin: 0.2rem 0 0;
  color: var(--text);
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: #fff;
}

.tag-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.tag {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

a.tag {
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(214, 0, 36, 0.16);
}

.article-content p {
  margin-bottom: 0.9rem;
  color: var(--text);
}

.article-content ul,
.article-content ol {
  padding-left: 1.2rem;
  margin-bottom: 0.9rem;
  color: var(--text);
}

.article-content {
  color: var(--text);
}

.article-content li {
  margin-bottom: 0.4rem;
}

.article-content a {
  color: var(--accent);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.admin-shell {
  border-color: rgba(214, 0, 36, 0.18);
}

.admin-shell-login {
  width: min(560px, calc(100% - 2rem));
  margin: 1.25rem auto;
  padding: 1.1rem 1.1rem 1.2rem;
}

.admin-shell-login .section-header h1 {
  margin-bottom: 0.2rem;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  width: min(560px, 100%);
}

.admin-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-stat strong {
  font-size: 1.2rem;
  color: var(--text);
}

.admin-stat span {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.admin-grid {
  align-items: start;
}

.admin-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%);
  border: 1px solid var(--border);
}

.admin-form textarea {
  min-height: 84px;
}

.admin-form.compact textarea[name="content"] {
  min-height: 220px;
}

.admin-login-wrap {
  max-width: 440px;
  margin: 0 auto;
}

.admin-login {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.admin-posts {
  gap: 0.8rem;
}

.post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.post-meta-grid {
  display: grid;
  gap: 0.3rem;
  margin: 0.55rem 0 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.admin-status.published {
  color: #0d6e43;
  background: #e8f8f0;
  border-color: rgba(13, 110, 67, 0.24);
}

.admin-status.scheduled {
  color: #8a5a00;
  background: #fff3db;
  border-color: rgba(138, 90, 0, 0.24);
}

.admin-status.draft {
  color: #6b7280;
  background: #eef1f5;
  border-color: rgba(107, 114, 128, 0.25);
}

.admin-tabs,
.admin-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.admin-tab,
.admin-subtab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-tab.is-active,
.admin-subtab.is-active {
  border-color: rgba(214, 0, 36, 0.3);
  color: var(--accent);
  background: var(--accent-soft);
}

.admin-pane,
.admin-subpane {
  display: none;
}

.admin-pane.is-active,
.admin-subpane.is-active {
  display: block;
}

.admin-list-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.65rem;
}

.view-switch {
  display: inline-flex;
  gap: 0.35rem;
}

.view-switch .btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(214, 0, 36, 0.26);
}

.icon-btn {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

[data-admin-posts][data-view-mode=\"grid\"] {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

[data-admin-posts][data-view-mode=\"list\"] {
  grid-template-columns: 1fr;
}

[data-admin-posts].is-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

[data-admin-posts].is-list {
  grid-template-columns: 1fr;
}

[data-admin-posts].is-grid .post-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

[data-admin-posts].is-grid .post-head {
  display: block;
}

[data-admin-posts].is-grid .post-head .admin-status {
  margin-top: 0.45rem;
}

[data-admin-posts].is-grid .post-meta-grid {
  margin: 0.35rem 0 0.45rem;
}

[data-admin-posts].is-grid .actions {
  margin-top: auto;
}

[data-admin-posts].is-list .post-card {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head head"
    "meta actions";
  gap: 0.35rem 0.8rem;
  padding: 0.7rem 0.8rem;
}

[data-admin-posts].is-list .post-head {
  grid-area: head;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem 0.8rem;
}

[data-admin-posts].is-list .post-meta-grid {
  grid-area: meta;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  font-size: 0.86rem;
}

[data-admin-posts].is-list .actions {
  grid-area: actions;
  justify-content: flex-end;
  align-self: start;
  gap: 0.35rem;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid;
}

.alert.error {
  background: #ffe5e9;
  color: #9c0b25;
  border-color: rgba(156, 11, 37, 0.25);
}

.alert.success {
  background: #e8f8f0;
  color: #1f7a4d;
  border-color: rgba(31, 122, 77, 0.25);
}

.panel .cta-row a.btn {
  margin-right: 0.25rem;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: grid;
  gap: 0.4rem;
}

.post-list li {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.post-list .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.chi-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.chi-carousel {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 0 0 auto;
}

.chi-frame {
  border-radius: calc(var(--radius) * 1.2);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  min-height: 0;
  aspect-ratio: 4 / 3;
  position: relative;
}

.chi-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.chi-frame .chi-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.chi-frame .chi-img.active {
  opacity: 1;
  position: absolute;
}

.chi-dots {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.chi-dots button {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: none;
  background: rgba(214, 0, 36, 0.2);
  cursor: pointer;
}

.chi-dots button.active {
  background: var(--accent);
}

.chi-text p {
  text-align: justify;
}

.inclusive-text {
  margin: 0;
}

.inclusive-text p {
  text-align: justify;
  margin-bottom: 0.9rem;
}

.inclusive-layout {
  overflow: hidden;
}

.inclusive-figure {
  float: right;
  width: min(420px, 55%);
  aspect-ratio: 4 / 3;
  margin: 0 0 1rem 1.5rem;
  border-radius: calc(var(--radius) * 0.9);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 14px 32px rgba(15, 17, 21, 0.12);
}

.inclusive-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inclusive-figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.75rem 1rem;
  background: rgba(245, 245, 249, 0.9);
  text-align: center;
}

@media (max-width: 768px) {
  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-stats {
    width: 100%;
  }
  .chi-layout {
    grid-template-columns: 1fr;
  }
  .chi-carousel {
    margin: 0 auto;
    max-width: 100%;
  }
  .inclusive-figure {
    float: none;
    width: 100%;
    margin: 0 0 1rem 0;
  }
}

.article-content blockquote {
  margin: 0.8rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.page-404 {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem 3rem;
  margin: 0;
  gap: 1.2rem;
  background: radial-gradient(circle at 20% 20%, rgba(214,0,36,0.08), transparent 35%), radial-gradient(circle at 80% 0%, rgba(15,17,21,0.08), transparent 30%), #f5f5f9;
  background-size: cover;
}

.page-404 .bg-lines::before,
.page-404 .bg-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 40% at 10% 20%, rgba(214,0,36,0.08), transparent 60%),
    radial-gradient(100% 50% at 85% 15%, rgba(214,0,36,0.1), transparent 55%),
    radial-gradient(120% 60% at 40% 80%, rgba(214,0,36,0.08), transparent 60%);
  z-index: 0;
  overflow: hidden;
}

.page-404 .bg-lines::after {
  background: none;
}

.page-404::before,
.page-404::after {
  content: "";
  position: absolute;
  width: 180%;
  height: 180%;
  top: -40%;
  left: -40%;
  background: repeating-radial-gradient(circle at 20% 20%, rgba(214,0,36,0.18), rgba(214,0,36,0.18) 1px, transparent 2px, transparent 6px);
  opacity: 0.06;
  animation: swirl 14s linear infinite;
}

.page-404::after {
  animation-direction: reverse;
  opacity: 0.04;
}

@keyframes swirl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.page-404 .target {
  position: relative;
  margin: 0 auto 1.2rem;
}

.page-404 svg {
  width: min(220px, 50vw);
  height: auto;
  filter: drop-shadow(0 14px 40px rgba(0,0,0,0.12));
}

.page-404 .arrow {
  position: absolute;
  width: 70px;
  height: 6px;
  background: #d60024;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(214, 0, 36, 0.25);
  transform-origin: right center;
}

.page-404 .arrow::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -4px;
  border-left: 14px solid #d60024;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.page-404 .arrow.a1 { top: 40%; left: -40px; transform: rotate(12deg); }
.page-404 .arrow.a2 { top: 20%; right: -50px; transform: rotate(-22deg); }
.page-404 .arrow.a3 { bottom: -10px; left: 30%; transform: rotate(8deg); }

.page-404 .text {
  position: relative;
  z-index: 1;
  max-width: 520px;
  background: transparent;
  padding: 1rem 1.2rem;
  border-radius: 0;
}

.page-404 {
  align-content: center;
}

body.page-404 .site-header {
  display: none;
}

.page-404 .cta-row {
  justify-content: center;
}

.page-404 .cta-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.page-404 .cta-link:hover,
.page-404 .cta-link:focus-visible {
  text-decoration: underline;
}

.page-404 .text h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}
.section-header {
  margin-bottom: 0.5rem;
}

.section-header h1,
.section-header h2 {
  margin: 0.25rem 0 0.4rem;
  letter-spacing: -0.01em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(214, 0, 36, 0.78);
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  width: fit-content;
  align-self: flex-start;
}

p {
  margin: 0.25rem 0 0.8rem;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 17, 21, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.grid {
  display: grid;
  gap: 0.75rem;
}

.course-carousel {
  position: relative;
  overflow: hidden;
  padding: 0.25rem 0;
  margin-top: 1rem;
}

.course-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
}

.course-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 17, 21, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.icon-circle {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  aspect-ratio: 1 / 1;
  flex: 0 0 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 0.2rem;
}

.icon-circle svg {
  width: 24px;
  height: 24px;
}

.btn.whatsapp {
  gap: 0.4rem;
  background: #e01f3f;
  border-color: rgba(214, 0, 36, 0.25);
  color: #fff;
}

.site-header .btn.whatsapp {
  background: #f7cfd6;
  color: #c01833;
  border-color: rgba(192, 24, 51, 0.55);
}

input[type="checkbox"] {
  accent-color: var(--accent);
}

.btn svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .mobile-nav {
    display: none;
  }

  .mobile-nav.open {
    display: block;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .filter-box {
    position: static;
  }

  .course-card {
    flex: 0 0 calc((100% - 1rem) / 2);
  }

  #corsi.panel {
    padding: 1.85rem 1.45rem;
  }

  #corsi .course-card {
    padding: 1rem 1rem calc(1.35rem + 15px);
  }

  #corsi .course-card p:last-child {
    margin-bottom: 0;
  }

  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  body {
    padding: 0 1.45rem 3rem;
  }

  body.page-home .site-header {
    left: 1.45rem;
    right: 1.45rem;
  }

  .site-header .pill {
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 65vh;
    padding: 2.2rem 1.2rem 2.8rem;
  }

  .course-card {
    flex: 0 0 100%;
  }

  .gallery-grid {
    column-count: 1;
  }
}
