/* ==========================================================================
   Eccellenza Umbra — Design System
   Static landing site (HTML + CSS only, no JavaScript)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colours (from logo + mockup) */
  --green-900: #163d24;
  --green-700: #1f5c37;
  --green-600: #2a7048;
  --green-500: #347a4e;   /* primary brand green */
  --green-400: #4f9269;
  --sage-400:  #9cb380;   /* footer / soft accents */
  --sage-200:  #cdd9bd;
  --sage-100:  #e6edda;
  --brown-600: #7a3d22;   /* terracotta accent */
  --brown-400: #a8633f;
  --gold-400:  #d6a23e;   /* small highlights (arrow, links) */

  /* Neutrals */
  --cream:   #f7f5ef;
  --paper:   #ffffff;
  --ink:     #232a24;
  --ink-soft:#4a544b;
  --line:    #e2e2d8;

  /* Type */
  --font-head: "Georgia", "Times New Roman", serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 8px rgba(22, 61, 36, .07);
  --shadow:    0 10px 30px rgba(22, 61, 36, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brown-600); }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; color: var(--green-900); font-weight: 700; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.bg-paper { background: var(--paper); }
.bg-sage  { background: var(--sage-100); }
.bg-green { background: var(--green-700); color: #eaf2ec; }
.bg-green h1, .bg-green h2, .bg-green h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .74rem;
  color: var(--brown-600);
  margin-bottom: .8rem;
}
.bg-green .eyebrow { color: var(--gold-400); }

.section-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: .6rem; }
.section-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 2.4rem;
}
.bg-green .section-lead { color: #d4e4d8; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--green-600);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--bg);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); color: var(--fg); box-shadow: var(--shadow); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; --fg: var(--green-700); border-color: var(--green-600); box-shadow: none; }
.btn--ghost:hover { background: var(--green-600); --fg: #fff; }
.btn--light { background: #fff; --fg: var(--green-700); border-color: #fff; }
.btn--light:hover { color: var(--green-900); }
.btn--gold { background: var(--gold-400); border-color: var(--gold-400); --fg: #3a2c08; }

/* ==========================================================================
   Header / Navigation  (CSS-only responsive menu via checkbox hack)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 50px; height: 50px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-size: 1.12rem; color: var(--green-900); }
.brand-text span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brown-600); font-weight: 600; }

.nav-toggle { display: none; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nav-menu a {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--green-900);
  padding: .55rem .9rem;
  border-radius: 8px;
  font-size: .97rem;
  position: relative;
}
.nav-menu a:hover { background: var(--sage-100); color: var(--green-700); }
.nav-menu a.active { color: var(--brown-600); }
.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .28rem;
  height: 2px;
  background: var(--brown-400);
  border-radius: 2px;
}
.nav-menu .nav-cta { margin-left: .5rem; }
.nav-menu .nav-cta a {
  background: var(--green-600);
  color: #fff;
  padding: .55rem 1.1rem;
  border-radius: 999px;
}
.nav-menu .nav-cta a:hover { background: var(--green-700); color: #fff; }

.hamburger { display: none; }

@media (max-width: 880px) {
  .hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    padding: 0 11px;
  }
  .hamburger span {
    height: 2.5px;
    background: var(--green-800, var(--green-700));
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .8rem 1.25rem 1.4rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .3s var(--ease), opacity .2s var(--ease);
  }
  .nav-menu a { padding: .8rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-menu a:hover { background: transparent; }
  .nav-menu .nav-cta { margin: .8rem 0 0; }
  .nav-menu .nav-cta a { text-align: center; border-bottom: none; }
  .nav-menu a.active::after { display: none; }

  .nav-toggle:checked ~ .nav-menu {
    max-height: 70vh;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(22,61,36,.72), rgba(22,61,36,.55)),
    radial-gradient(120% 120% at 80% 10%, var(--green-500), var(--green-900));
  overflow: hidden;
}
.hero::after {
  /* subtle topographic line pattern */
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-radial-gradient(circle at 78% 18%, transparent 0 38px, rgba(255,255,255,.05) 38px 39px);
  opacity: .8;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.4rem;
  padding: clamp(3.4rem, 9vw, 7rem) 0;
  max-width: 760px;
}
.hero--home .hero-inner { padding-block: clamp(4rem, 11vw, 8rem); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 6vw, 3.7rem); }
.hero .hero-sub { font-size: clamp(1.05rem, 2.6vw, 1.4rem); color: #e4efe6; max-width: 60ch; }
.hero .hero-kicker {
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  font-size: .78rem; color: var(--gold-400);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .6rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: .4rem .9rem; border-radius: 999px;
  font-size: .82rem; width: fit-content;
}

/* page hero (interior pages) */
.page-hero { padding: clamp(2.6rem, 7vw, 4.6rem) 0; }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.page-hero p { color: #d8e6dc; max-width: 60ch; margin-top: .8rem; font-size: 1.08rem; }
.breadcrumb { font-size: .82rem; color: #bcd2c2; margin-bottom: .8rem; }
.breadcrumb a { color: #d9e7dd; }

/* ==========================================================================
   Generic content blocks
   ========================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--sage-100);
  color: var(--green-600);
  margin-bottom: 1rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card .card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; font-size: .92rem; }

/* Feature row (image + text) */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.feature--reverse .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: clamp(260px, 34vw, 380px);
}
.feature-media img, .news-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.feature-body h2 { margin-bottom: .8rem; }
.feature-body p { color: var(--ink-soft); margin-bottom: 1rem; }

/* Illustration placeholders (no external images needed) */
.illus {
  width: 100%; height: 100%;
  min-height: 300px;
  display: grid; place-items: center;
  color: rgba(255,255,255,.9);
  position: relative;
  overflow: hidden;
}
.illus span {
  position: relative; z-index: 1;
  font-family: var(--font-head);
  font-size: 1.05rem; letter-spacing: .04em;
  background: rgba(0,0,0,.22);
  padding: .4rem 1rem; border-radius: 999px;
  backdrop-filter: blur(2px);
}
.illus::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 14px, transparent 14px 28px);
}
.illus-1 { background: linear-gradient(135deg, var(--green-500), var(--green-900)); }
.illus-2 { background: linear-gradient(135deg, var(--brown-400), var(--brown-600)); }
.illus-3 { background: linear-gradient(135deg, var(--sage-400), var(--green-600)); }
.illus-4 { background: linear-gradient(135deg, #5a7d8c, var(--green-700)); }
.illus-5 { background: linear-gradient(135deg, var(--gold-400), var(--brown-600)); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat .num { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 2.8rem); color: #fff; font-weight: 700; }
.stat .label { font-size: .92rem; color: #cfe1d4; letter-spacing: .02em; }

/* Values list */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.value {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.4rem;
}
.value .icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--sage-100); color: var(--green-600); display: grid; place-items: center; }
.value h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.value p { color: var(--ink-soft); font-size: .94rem; }

/* Timeline (storia) */
.timeline { position: relative; display: grid; gap: 1.6rem; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--sage-200); }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -1.6rem; top: .35rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green-600); border: 3px solid var(--sage-100);
}
.timeline .year { font-family: var(--font-head); font-weight: 700; color: var(--brown-600); }
.timeline p { color: var(--ink-soft); }

/* Team grid */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.6rem 1.3rem; }
.member { text-align: center; }
.member .avatar {
  width: 108px; height: 108px; border-radius: 50%;
  margin: 0 auto .8rem;
  display: grid; place-items: center;
  object-fit: cover; object-position: center top;
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff;
  background: linear-gradient(140deg, var(--green-500), var(--green-700));
  box-shadow: var(--shadow-sm);
  border: 3px solid #fff;
}
.member.alt .avatar { background: linear-gradient(140deg, var(--brown-400), var(--brown-600)); }
.member h4 { font-size: 1.02rem; color: var(--green-900); }
.member span { font-size: .85rem; color: var(--ink-soft); }

/* Activity detail blocks */
.activity { scroll-margin-top: 90px; }
.activity + .activity { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.detail-list { display: grid; gap: .6rem; margin-top: 1rem; }
.detail-list li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); }
.detail-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--green-500); transform: rotate(45deg);
}
.pill {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: var(--green-700); background: var(--sage-100);
  padding: .3rem .8rem; border-radius: 999px; margin-bottom: .8rem;
}

/* Anchor chips (sub navigation) */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.4rem; }
.chips a {
  font-size: .9rem; font-weight: 600;
  padding: .45rem 1rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--green-800, var(--green-700));
}
.chips a:hover { background: var(--green-600); color: #fff; border-color: var(--green-600); }

/* News cards */
.news-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.news-card .news-media { min-height: 180px; }
.news-card .news-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; gap: .7rem; align-items: center; font-size: .8rem; color: var(--ink-soft); margin-bottom: .6rem; }
.news-tag { font-weight: 700; color: var(--brown-600); text-transform: uppercase; letter-spacing: .05em; }
.news-card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.news-card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.news-card .card-link { margin-top: 1rem; }

.featured-news {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper);
}
.featured-news .news-media { min-height: 300px; }
.featured-news .news-body { padding: clamp(1.6rem, 4vw, 2.6rem); align-self: center; }
.featured-news h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: .4rem 0 .8rem; }

/* Partners */
.partners { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: stretch; }
.partner {
  display: grid; place-items: center; text-align: center;
  min-width: 200px; flex: 1 1 200px; max-width: 260px;
  padding: 1.4rem 1.2rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.partner strong { font-family: var(--font-head); color: var(--green-800, var(--green-700)); font-size: 1.05rem; }
.partner span { font-size: .82rem; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
  color: #fff; border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #d7e6db; max-width: 52ch; }

/* Contact layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.info-list { display: grid; gap: .5rem; grid-auto-rows: 1fr; }
.info-item {
  display: flex; gap: .9rem; align-items: center;
  padding: .7rem .8rem; border-radius: 12px;
}
a.info-item { color: inherit; text-decoration: none; transition: background .2s var(--ease); }
a.info-item:hover { background: var(--sage-100); }
.info-item .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--sage-100); color: var(--green-600); display: grid; place-items: center; }
a.info-item:hover .icon { background: #fff; }
.info-item h4 { font-size: 1rem; margin-bottom: .15rem; }
.info-item p, .info-item a:not(.info-item) { color: var(--ink-soft); font-size: .96rem; }
.info-item p a { color: var(--ink-soft); }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--green-900); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .98rem;
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(52,122,78,.15); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: .4rem; }

/* FAQ / disclosure */
details.faq {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin-bottom: .9rem;
}
details.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--green-900); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--brown-600); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--ink-soft); margin-top: .8rem; font-size: .96rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--green-900); color: #cfe0d4; }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1.2fr; gap: 2rem; padding: clamp(2.6rem, 6vw, 4rem) 0 2.4rem; }
.footer-brand img { width: 56px; height: 56px; margin-bottom: .8rem; filter: drop-shadow(0 0 0 #fff); }
.footer-brand p { color: #a9c2b1; font-size: .92rem; max-width: 34ch; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a { color: #cfe0d4; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
}
.socials a:hover { background: var(--green-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.2rem 0;
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between;
  font-size: .85rem; color: #9fb8a7;
}
.footer-bottom a { color: #9fb8a7; }

/* ==========================================================================
   Events (listing + detail)
   ========================================================================== */
.event-list { display: grid; gap: 1.1rem; }
.event-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.4rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sage-200); color: var(--ink); }
.event-date {
  flex: none;
  display: grid; place-content: center; text-align: center;
  min-width: 78px; min-height: 78px;
  background: var(--sage-100); color: var(--green-700);
  border-radius: 14px; padding: .5rem; line-height: 1.15;
}
.event-date .day { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
.event-date .yr { display: block; font-size: .74rem; color: var(--ink-soft); letter-spacing: .04em; }
.event-info h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.event-info .meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .84rem; color: var(--ink-soft); }
.event-info p { margin-top: .5rem; color: var(--ink-soft); font-size: .95rem; }
.event-cta {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage-100); color: var(--green-600); font-size: 1.15rem;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.event-card:hover .event-cta { background: var(--green-600); color: #fff; transform: translateX(3px); }
.event-card.past .event-date { background: #ecefe7; color: var(--ink-soft); }

/* Event detail page */
.event-detail { display: grid; grid-template-columns: 1fr 320px; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.event-cover { width: 100%; height: clamp(220px, 34vw, 320px); object-fit: cover; display: block; border-radius: var(--radius); margin-bottom: 1.8rem; box-shadow: var(--shadow-sm); }
.event-detail-main h2 { margin: 1.8rem 0 .6rem; font-size: 1.4rem; }
.event-detail-main p { color: var(--ink-soft); margin-bottom: 1rem; }
.event-side { position: sticky; top: 96px; }
.event-side .card h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.meta-rows { display: grid; gap: .85rem; margin-bottom: 1.3rem; }
.meta-row { display: flex; gap: .6rem; font-size: .94rem; }
.meta-row .k { min-width: 62px; font-weight: 700; color: var(--green-900); }
.meta-row .v { color: var(--ink-soft); }
.back-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.6rem; font-weight: 600; }
.status-tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 999px; margin-bottom: .8rem;
}
.status-tag.upcoming { background: var(--sage-100); color: var(--green-700); }
.status-tag.past { background: rgba(255,255,255,.14); color: #d9e7dd; }

/* Empty state (e.g. no events yet) */
.empty-state {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--paper); border: 1px dashed var(--sage-200);
  border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.4rem);
}
.empty-icon {
  width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 16px;
  background: var(--sage-100); color: var(--green-600); display: grid; place-items: center;
}
.empty-icon svg { width: 32px; height: 32px; }
.empty-state h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.empty-state p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 1.6rem; }
.empty-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Form success message (shown in place of the form after AJAX submit) */
.form-success {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-sm); text-align: center;
}
.form-success .ok-icon {
  width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--sage-100); color: var(--green-600); display: grid; place-items: center;
}
.form-success .ok-icon svg { width: 30px; height: 30px; }
.form-success h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.form-success p { color: var(--ink-soft); max-width: 44ch; margin: 0 auto; }
.form-success--ondark { background: transparent; border: none; box-shadow: none; text-align: left; padding: 0; }
.form-success--ondark .ok-icon { margin: 0 0 .8rem; background: rgba(255,255,255,.15); color: #fff; }
.form-success--ondark h3 { color: #fff; }
.form-success--ondark p { color: #d7e6db; margin: 0; }

/* Inline newsletter subscribe form */
.subscribe { display: flex; gap: .6rem; flex-wrap: wrap; }
.subscribe input[type="email"] {
  flex: 1 1 220px; min-width: 0; font: inherit; font-size: 1rem;
  padding: .8rem 1.1rem; border-radius: 999px; border: 2px solid transparent;
  background: #fff; color: var(--ink);
}
.subscribe input[type="email"]:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
.subscribe .btn { flex: none; }

/* Hero community CTA */
.btn--lg { padding: .95rem 1.9rem; font-size: 1.06rem; }
.hero-actions .btn svg { width: 22px; height: 22px; flex: none; }

/* ==========================================================================
   Community page
   ========================================================================== */
.community-hero { display: flex; align-items: center; gap: clamp(1.6rem, 5vw, 4rem); }
.community-hero__body { flex: 1 1 auto; }
.community-hero__art {
  flex: none;
  width: clamp(130px, 19vw, 190px); height: clamp(130px, 19vw, 190px);
  border-radius: 36px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  backdrop-filter: blur(2px);
}
.community-hero__art svg { width: 52%; height: 52%; }

/* Numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); }
.step__num {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: .9rem;
  background: var(--green-600); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.step p { color: var(--ink-soft); font-size: .96rem; }

/* Centered form wrapper (community) */
.form-center { max-width: 680px; margin-inline: auto; }

@media (max-width: 860px) {
  .community-hero { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .community-hero__art { width: 110px; height: 110px; border-radius: 28px; order: -1; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

/* Floating social buttons (all pages) */
.floats {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: .6rem;
}
.float-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 61, 36, .28);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.float-btn:hover { transform: scale(1.08); color: #fff; box-shadow: 0 9px 24px rgba(22, 61, 36, .34); }
.float-btn svg { width: 26px; height: 26px; }
.float-wa {
  width: 56px; height: 56px;
  background: #25D366; box-shadow: 0 8px 24px rgba(18, 140, 126, .45);
}
.float-wa svg { width: 30px; height: 30px; }
.float-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.float-li { background: #0A66C2; }
@media (max-width: 540px) {
  .floats { right: 16px; bottom: 16px; }
  .float-btn { width: 46px; height: 46px; }
  .float-wa { width: 52px; height: 52px; }
}

/* Accessible focus ring */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible,
.hamburger:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .event-detail { grid-template-columns: 1fr; }
  .event-side { position: static; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature-media { order: 0; }
  .featured-news { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; justify-content: center; }
  /* horizontal scroll for section chips */
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; }
  .chips a { white-space: nowrap; flex: none; }
}
@media (max-width: 620px) {
  .event-card { grid-template-columns: auto 1fr; gap: 1rem; padding: 1.1rem 1.2rem; }
  .event-card .event-cta { display: none; }
  .event-date { min-width: 64px; min-height: 64px; }
  .event-date .day { font-size: 1.15rem; }
}
@media (max-width: 540px) {
  .grid-4 { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .brand-text span { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
