:root {
  color-scheme: dark;
  --blue: #00518a;
  --blue-light: #18a0df;
  --red: #cc3817;
  --ink: #071018;
  --panel: #102433;
  --panel-2: #152f42;
  --muted: #a9bdc9;
  --line: rgba(255, 255, 255, 0.14);
  --white: #ffffff;
  --paper: #f6f8f9;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
footer[id] {
  scroll-margin-top: 110px;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

input,
select,
button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 16px 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 70px;
  padding: 0 18px;
  background: rgba(7, 16, 24, 0.56);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
}

.brand img {
  width: 138px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 6px;
  padding: 5px 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.93rem;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1.45rem;
  cursor: pointer;
}

.theme-toggle {
  display: inline-grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.theme-toggle__icon {
  font-size: 1.3rem;
  line-height: 1;
}

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

:focus-visible {
  outline: 3px solid #6bd1ff;
  outline-offset: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.button--red {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 16px 34px rgba(204, 56, 23, 0.34);
}

.button--glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
}

.button--light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero {
  position: relative;
  min-height: clamp(560px, 72svh, 680px);
  overflow: hidden;
  isolation: isolate;
}

.hero__media,
.hero__slide,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 5200ms ease;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.92) 0%, rgba(7, 16, 24, 0.64) 48%, rgba(7, 16, 24, 0.28) 100%),
    linear-gradient(0deg, rgba(7, 16, 24, 0.88) 0%, rgba(7, 16, 24, 0.02) 54%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(330px, 0.56fr);
  gap: 38px;
  align-items: end;
  min-height: clamp(560px, 72svh, 680px);
  padding: 114px 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 7px 11px;
  color: var(--white);
  background: rgba(24, 160, 223, 0.22);
  border: 1px solid rgba(24, 160, 223, 0.36);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow--dark {
  color: #063b5e;
  background: #dff1fb;
  border-color: transparent;
}

.eyebrow--warm {
  background: rgba(204, 56, 23, 0.2);
  border-color: rgba(204, 56, 23, 0.35);
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin: 18px 0;
  font-size: clamp(3.15rem, 6.5vw, 6.4rem);
  line-height: 0.93;
}

.hero__copy p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.1rem, 2vw, 1.34rem);
}

.hero__actions,
.event-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__actions {
  margin-top: 28px;
}

.agenda-panel {
  padding: 15px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.agenda-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.agenda-panel__head strong {
  color: var(--white);
}

.agenda-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 13px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.agenda-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 78px;
  padding: 7px 4px;
  color: #111820;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  line-height: 1;
  text-align: center;
}

.agenda-item .agenda-date__day {
  color: #111820;
  font-size: 1.65rem;
  font-weight: 950;
}

.agenda-item .agenda-date__month {
  margin-top: 3px;
  color: #cf301b;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.agenda-item .agenda-date__year {
  margin-top: 4px;
  color: #111820;
  font-size: 0.68rem;
  font-weight: 750;
}

.agenda-date--pending {
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.2;
}

.agenda-item h2 {
  margin: 0 0 5px;
  font-size: 1rem;
  line-height: 1.2;
}

.agenda-item p {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.agenda-item span {
  color: #ffc8b9;
  font-size: 0.86rem;
  font-weight: 850;
}

.agenda-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.slider-dots button {
  width: 38px;
  height: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  border: 0;
  border-radius: 999px;
}

.slider-dots button.is-active {
  background: var(--red);
}

.quick-search {
  color: var(--ink);
  background: var(--paper);
  padding: 26px 0;
}

.visual-strip {
  position: relative;
  z-index: 3;
  padding: 36px 0 42px;
  background: var(--ink);
}

.visual-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.visual-card {
  overflow: hidden;
  min-height: 252px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.visual-card__media {
  position: relative;
  height: 164px;
  overflow: hidden;
  background: #143043;
}

.visual-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 37, 58, 0.08), rgba(6, 32, 48, 0.32)), rgba(0, 61, 103, 0.1);
  pointer-events: none;
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.76) contrast(1.07);
}

.visual-card__body {
  padding: 14px;
}

.visual-card span {
  display: block;
  margin-bottom: 7px;
  color: #ffc8b9;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.visual-card strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.25;
}

.quick-search__inner {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: var(--white);
  border: 1px solid #d7e1e7;
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(16, 24, 32, 0.09);
}

.quick-search h2 {
  margin: 10px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1;
}

.search-form {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 0.9fr) auto;
  gap: 10px;
}

input,
select {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid #cfd9df;
  border-radius: var(--radius);
  padding: 0 13px;
}

.section {
  padding: 74px 0;
}

.events-section,
.magazine-section {
  background: var(--ink);
}

.events-section {
  padding-top: 54px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-head h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  line-height: 0.98;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.event-card,
.service-card,
.magazine-grid article {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.event-card {
  display: flex;
  flex-direction: column;
  min-height: 372px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-light);
}

.event-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.event-card__top span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 950;
}

.event-card__top span {
  color: #dff1fb;
  background: rgba(24, 160, 223, 0.18);
}

.event-card__top .event-card__mode {
  color: #ffd7cd;
  background: rgba(204, 56, 23, 0.18);
}

.event-card__date {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
  padding: 11px 14px;
  background: rgba(24, 160, 223, 0.11);
  border-left: 3px solid var(--blue-light);
  border-radius: 4px;
}

.event-card__date span,
.event-card__facts span {
  color: #a9c9d9;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.event-card__date strong {
  font-size: 1.25rem;
  line-height: 1.2;
}

.event-card h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  line-height: 1.18;
}

.event-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 13px 0 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.event-card__facts strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.25;
}

.event-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: auto 0 13px;
  padding: 7px 10px;
  color: #ffc8b9;
  background: rgba(204, 56, 23, 0.12);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.event-card__status span {
  width: 7px;
  height: 7px;
  background: #ef8b6d;
  border-radius: 50%;
}

.search-feedback {
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.events-empty {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.events-empty h3 {
  margin: 0 0 6px;
}

.events-empty p {
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

.event-actions .button {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 0.9rem;
}

.interaction-section {
  color: var(--ink);
  background: var(--paper);
}

.interaction-grid,
.sponsor-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 32px;
  align-items: center;
}

.interaction-grid h2,
.sponsor-copy h2 {
  margin: 18px 0;
  font-size: clamp(2rem, 4.4vw, 4.3rem);
  line-height: 0.98;
}

.interaction-grid p,
.sponsor-copy p {
  color: #596d7a;
  font-size: 1.06rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 210px;
  padding: 20px;
  color: var(--white);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.service-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
}

.service-card h3 {
  margin: 0 0 8px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.sponsor-section {
  background: #102433;
}

.sponsor-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sponsor-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.magazine-grid--archive {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.magazine-grid article {
  overflow: hidden;
  min-height: 210px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.magazine-grid .magazine-card--api {
  padding: 0;
}

.magazine-card__media {
  min-height: 120px;
  background: #172f41 center/cover;
}

.magazine-card__body {
  padding: 20px;
}

.magazine-grid span {
  color: #ffc8b9;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.magazine-grid h3 {
  margin: 14px 0 0;
  font-size: 1.28rem;
  line-height: 1.18;
}

.magazine-grid time,
.magazine-grid p {
  display: block;
  margin: 12px 0 0;
  color: var(--muted);
}

.magazine-grid .button {
  margin-top: 16px;
}

.page-main {
  padding-top: 116px;
}

.page-main h1 {
  max-width: 980px;
  margin: 14px 0 18px;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.magazine-archive {
  padding-top: 64px;
}

.archive-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.35fr) auto;
  gap: 12px;
  margin: 26px 0 28px;
}

.archive-filters input {
  min-height: 48px;
  width: 100%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
  color: var(--muted);
}

.empty-state {
  color: var(--muted);
  font-size: 1.08rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: #ffc8b9;
  font-weight: 900;
}

.article-detail {
  padding: 64px 0 80px;
}

.article-detail__header {
  max-width: 900px;
}

.article-detail__header time {
  display: block;
  color: #ffc8b9;
  font-weight: 850;
}

.article-detail__header p {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.24rem);
}

.article-detail__cover {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin: 34px 0;
  border-radius: var(--radius);
}

.article-content {
  max-width: 880px;
  color: #dceaf1;
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content h2,
.article-content h3 {
  margin-top: 34px;
  line-height: 1.16;
}

.article-content p {
  margin: 0 0 20px;
}

.article-content a {
  color: #ffc8b9;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content img {
  height: auto;
  margin: 24px auto;
  border-radius: var(--radius);
}

.article-content figure {
  margin: 28px 0;
}

.wp-block-media-text {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: 34px 0;
}

.wp-block-media-text__content p:last-child {
  margin-bottom: 0;
}

.related-articles {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.footer {
  padding: 44px 0;
  background: #050b11;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer img {
  width: 150px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 6px;
  padding: 5px 8px;
}

.footer p {
  color: var(--muted);
}

.footer h3 {
  margin: 0 0 10px;
}

.footer a {
  display: block;
  margin-bottom: 8px;
  color: #dceaf1;
}

html[data-theme="light"] {
  color-scheme: light;
  --panel: #ffffff;
  --muted: #506a79;
  --line: rgba(16, 57, 80, 0.16);
  --paper: #eaf1f5;
  --shadow: 0 16px 40px rgba(16, 57, 80, 0.12);
}

html[data-theme="light"] body,
html[data-theme="light"] .events-section,
html[data-theme="light"] .visual-strip,
html[data-theme="light"] .magazine-section {
  color: #123346;
  background: #f5f8fa;
}

html[data-theme="light"] .nav-shell {
  background: rgba(255, 255, 255, 0.91);
  border-color: rgba(16, 57, 80, 0.15);
  box-shadow: 0 10px 32px rgba(16, 57, 80, 0.1);
}

html[data-theme="light"] .nav-links,
html[data-theme="light"] .nav-toggle,
html[data-theme="light"] .theme-toggle {
  color: #123346;
}

html[data-theme="light"] .nav-toggle,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .nav-links.is-open {
  background: #ffffff;
  border-color: rgba(16, 57, 80, 0.18);
}

html[data-theme="light"] .hero__overlay {
  background:
    linear-gradient(90deg, rgba(247, 251, 253, 0.97) 0%, rgba(247, 251, 253, 0.78) 48%, rgba(247, 251, 253, 0.34) 100%),
    linear-gradient(0deg, rgba(247, 251, 253, 0.78) 0%, rgba(247, 251, 253, 0.04) 62%);
}

html[data-theme="light"] .hero__copy {
  color: #0d3045;
}

html[data-theme="light"] .hero__copy p,
html[data-theme="light"] .agenda-item p,
html[data-theme="light"] .agenda-panel__head {
  color: #425f70;
}

html[data-theme="light"] .eyebrow {
  color: #07527b;
  background: #dceef7;
  border-color: #c4e1ef;
}

html[data-theme="light"] .eyebrow--warm {
  color: #9b341a;
  background: #fbe5dc;
  border-color: #f3caba;
}

html[data-theme="light"] .agenda-panel {
  color: #123346;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(16, 57, 80, 0.15);
}

html[data-theme="light"] .agenda-panel__head strong,
html[data-theme="light"] .agenda-panel__link {
  color: #123346;
}

html[data-theme="light"] .agenda-item {
  border-color: rgba(16, 57, 80, 0.14);
}

html[data-theme="light"] .agenda-date {
  color: #111820;
  background: #fff;
}

html[data-theme="light"] .agenda-item > div:not(.agenda-date) span,
html[data-theme="light"] .visual-card span,
html[data-theme="light"] .magazine-grid span,
html[data-theme="light"] .article-detail__header time,
html[data-theme="light"] .back-link,
html[data-theme="light"] .article-content a {
  color: #a73b1f;
}

html[data-theme="light"] .slider-dots button {
  background: rgba(16, 57, 80, 0.22);
}

html[data-theme="light"] .slider-dots button.is-active {
  background: var(--red);
}

html[data-theme="light"] .button--glass,
html[data-theme="light"] .button--light {
  color: #123346;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(16, 57, 80, 0.22);
}

html[data-theme="light"] .visual-card,
html[data-theme="light"] .event-card,
html[data-theme="light"] .service-card,
html[data-theme="light"] .magazine-grid article {
  border-color: rgba(16, 57, 80, 0.14);
}

html[data-theme="light"] .visual-card strong,
html[data-theme="light"] .event-card__facts strong,
html[data-theme="light"] .service-card {
  color: #123346;
}

html[data-theme="light"] .event-card {
  border-top-color: #1683b5;
}

html[data-theme="light"] .event-card__top span {
  color: #07527b;
  background: #e4f2f8;
}

html[data-theme="light"] .event-card__top .event-card__mode {
  color: #97371f;
  background: #fbe9e2;
}

html[data-theme="light"] .event-card__date {
  background: #edf7fb;
}

html[data-theme="light"] .event-card__date span,
html[data-theme="light"] .event-card__facts span {
  color: #4a6d7e;
}

html[data-theme="light"] .event-card__status {
  color: #963b24;
  background: #fcebe5;
}

html[data-theme="light"] .interaction-section {
  color: #123346;
  background: #eaf1f5;
}

html[data-theme="light"] .interaction-grid p,
html[data-theme="light"] .sponsor-copy p {
  color: #4c6573;
}

html[data-theme="light"] .sponsor-section {
  color: #123346;
  background: #e0edf3;
}

html[data-theme="light"] .archive-filters input {
  color: #123346;
  background: #ffffff;
}

html[data-theme="light"] .article-content {
  color: #27485a;
}

html[data-theme="light"] .footer {
  color: #ffffff;
  background: #102b3b;
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] .footer p {
  color: #bfd0d9;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    animation: hero-enter 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero__copy > :nth-child(2) { animation-delay: 90ms; }
  .hero__copy > :nth-child(3) { animation-delay: 180ms; }
  .hero__copy > :nth-child(4) { animation-delay: 270ms; }

  .js-motion .reveal-on-scroll {
    opacity: 0;
    translate: 0 22px;
    transition: opacity 650ms ease, translate 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .js-motion .reveal-on-scroll.is-visible {
    opacity: 1;
    translate: 0 0;
  }

  .visual-card,
  .event-card,
  .service-card,
  .magazine-grid article {
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  }

  .visual-card img {
    transition: transform 400ms ease;
  }

  .nav-links.is-open {
    animation: menu-enter 220ms ease both;
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .button:hover {
    transform: translateY(-3px);
  }

  .button--red:hover {
    background: #e14620;
    box-shadow: 0 20px 38px rgba(204, 56, 23, 0.42);
  }

  .visual-card:hover,
  .event-card:hover,
  .service-card:hover,
  .magazine-grid article:hover {
    transform: translateY(-5px);
    border-color: rgba(24, 160, 223, 0.42);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
  }

  .visual-card:hover img {
    transform: scale(1.04);
  }
}

@keyframes hero-enter {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes menu-enter {
  from { opacity: 0; translate: 0 -8px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 980px) {
  .hero,
  .hero__content {
    min-height: 0;
  }

  .hero__content,
  .quick-search__inner,
  .interaction-grid,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .search-form,
  .visual-strip__grid,
  .events-grid,
  .magazine-grid--archive,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }

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

  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #102433;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open a {
    padding: 11px;
  }

  .agenda-item:not(:first-of-type) {
    display: none;
  }
}

@media (max-width: 700px) {
  section[id],
  footer[id] {
    scroll-margin-top: 88px;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 10px 0;
  }

  .section-head,
  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-shell {
    position: relative;
    min-height: 62px;
    padding: 8px 10px;
    gap: 10px;
  }

  .brand img {
    width: 112px;
  }

  .nav-cta {
    display: none;
  }

  .visual-strip {
    margin-top: 0;
  }

  .hero__content {
    gap: 24px;
  }

  .hero__content {
    min-height: 0;
    padding: 100px 0 30px;
  }

  h1 {
    font-size: clamp(2.75rem, 11vw, 4rem);
  }

  .hero {
    min-height: 0;
  }

  .agenda-panel {
    display: none;
  }

  .event-card {
    min-height: 0;
  }

  .section {
    padding: 54px 0;
  }

  .search-form,
  .archive-filters,
  .visual-strip__grid,
  .events-grid,
  .service-grid,
  .magazine-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-main {
    padding-top: 96px;
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .wp-block-media-text {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__slide {
    transition: none;
  }
}

/* Segreterie scientifiche */
.secretariats { padding: 160px 0 100px; }
.secretariats__intro { max-width: 900px; margin-bottom: 48px; }
.secretariats__intro h1 { margin: 12px 0 18px; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -0.04em; }
.secretariats__intro p { max-width: 650px; color: var(--muted); font-size: 1.15rem; }
.society-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.society-nav a { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-width: 135px; padding: 12px 18px; border: 1px solid #6cb9e2; border-radius: 8px; color: #e7f7ff; font-weight: 800; transition: background .2s, color .2s; }
.society-nav a:first-child { background: #12628e; border-color: #12628e; color: #fff; }
.society-nav a:hover { background: #d6edf9; border-color: #d6edf9; color: #082e48; }
.secretariats__list { display: grid; gap: 24px; }
.society-card { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: center; min-height: 220px; padding: 34px 42px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; scroll-margin-top: 120px; }
.society-card__body { padding-right: 35px; }
.society-card__body h2 { margin: 10px 0 4px; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.1; }
.society-card__body p { margin: 0; color: var(--muted); font-size: 1.15rem; font-weight: 600; }
.society-card__logo { display: grid; place-items: center; min-height: 145px; padding: 15px 20px 15px 40px; border-left: 1px solid var(--line); }
.society-card__logo img { object-fit: contain; }
.society-card__logo--sifl { width: 120px; height: 120px; }
.society-card__logo--adoi { width: 190px; max-height: 120px; background: #fff; border-radius: 4px; padding: 8px; }
html[data-theme="light"] .society-nav a { border-color: #00518a; color: #00518a; }
html[data-theme="light"] .society-nav a:first-child { color: #fff; background: #00518a; }
html[data-theme="light"] .society-nav a:hover { color: #fff; background: #003f6a; }
@media (max-width: 700px) {
  .secretariats { padding: 140px 0 70px; }
  .secretariats__intro { margin-bottom: 35px; }
  .society-card { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .society-card__body { padding: 0; }
  .society-card__logo { justify-items: start; min-height: 0; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .society-card__logo--sifl { width: 90px; height: 90px; }
  .society-card__logo--adoi { width: 170px; }
}

.language-switch { display: flex; align-items: center; flex: 0 0 auto; gap: 4px; font-size: .8rem; font-weight: 700; }
.language-switch a { padding: 8px 2px; text-decoration: none; opacity: .72; }
.language-switch a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
