/* =========================================================
   CUORE COMICO APS — Design System
   Style: Bold / immersive dark · Brand: Italian red/green/white
   Fonts: Righteous (display) + Poppins (body) — self-hosted, see fonts/
   ========================================================= */

/* =========================================================
   SELF-HOSTED FONTS — Poppins + Righteous (Google Fonts, local)
   Subsets: latin + latin-ext · font-display: swap
   ========================================================= */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/poppins-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/poppins-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Righteous';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/righteous-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Righteous';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/righteous-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- Brand ---- */
  --red: #E4141B;
  --red-bright: #FF2E36;
  --red-soft: #ff6b70;
  --green: #17A24A;
  --green-bright: #2FD46E;
  --white: #ffffff;

  /* ---- Surfaces (warm near-black) ---- */
  --bg: #0B0708;
  --bg-2: #100B0C;
  --surface: #17100F;
  --surface-2: #1F1615;
  --surface-3: #2A1D1C;

  /* ---- Text ---- */
  --text: #F6EEEC;
  --text-muted: rgba(246, 238, 236, 0.72);
  --text-dim: rgba(246, 238, 236, 0.6);

  /* ---- Lines ---- */
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* ---- Effects ---- */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-red: 0 18px 46px rgba(228, 20, 27, 0.35);

  --grad-red: linear-gradient(135deg, #E4141B 0%, #B10E14 100%);

  /* ---- Layout ---- */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { display: block; }

/* stroke-style icons */
.icon,
.svc__icon svg,
.event__loc .icon,
.cta__meta-item .icon {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 2000;
  background: var(--red); color: #fff; padding: 10px 18px;
  border-radius: 0 0 12px 12px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red-soft);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-bright); box-shadow: 0 0 14px var(--red-bright);
}

.h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.05; letter-spacing: -0.5px; margin-top: .4em;
}
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__lead { color: var(--text-muted); font-size: 1.075rem; margin-top: 16px; max-width: 60ch; }
.section__head--center .section__lead { margin-inline: auto; }

.grad {
  background: var(--grad-red);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px; --pad-x: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; position: relative;
  transition: transform .2s var(--ease-out), box-shadow .25s var(--ease-out),
              background .25s var(--ease-out), border-color .25s var(--ease-out), color .2s;
  white-space: nowrap;
}
.btn .icon { width: 1.15rem; height: 1.15rem; transition: transform .25s var(--ease-out); }
.btn--sm { --pad-y: 10px; --pad-x: 20px; font-size: .9rem; }
.btn--lg { --pad-y: 17px; --pad-x: 34px; font-size: 1.05rem; }

.btn--primary { background: var(--grad-red); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 24px 54px rgba(228, 20, 27, 0.5); }
.btn--primary:hover .icon { transform: translateX(4px); }
.btn--primary:active { transform: translateY(-1px); }

.btn--ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--white); transform: translateY(-3px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background .3s var(--ease-out), backdrop-filter .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 18px; transition: padding .3s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(11, 7, 8, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav.is-scrolled .nav__inner { padding-block: 11px; }

.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { width: 40px; aspect-ratio: 100/86; object-fit: cover; object-position: top center; filter: drop-shadow(0 4px 10px rgba(228,20,27,.4)); transition: transform .3s var(--ease-out); }
.nav__brand:hover .nav__logo { transform: rotate(-6deg) scale(1.06); }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav__brand-text strong { font-family: var(--font-display); font-weight: 400; font-size: 1.18rem; }
.nav__brand-text em { font-style: normal; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-weight: 500; font-size: .95rem; color: var(--text-muted);
  position: relative; padding: 4px 0; transition: color .2s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--grad-red); border-radius: 2px; transition: width .28s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }

.nav__burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.04); border-radius: 12px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(11, 7, 8, 0.97); backdrop-filter: blur(10px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 22px; text-align: center; }
.mobile-menu__links a { font-family: var(--font-display); font-size: 1.7rem; color: var(--text); }
.mobile-menu__links a.btn { font-family: var(--font-body); font-size: 1rem; margin-top: 10px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 60px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(228,20,27,.16), transparent 55%),
    radial-gradient(90% 80% at 0% 110%, rgba(23,162,74,.10), transparent 55%),
    var(--bg);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow--red { width: 42vw; height: 42vw; background: var(--red); top: -12%; right: -8%; }
.glow--green { width: 34vw; height: 34vw; background: var(--green); bottom: -14%; left: -10%; opacity: .32; }
.floaters { position: absolute; inset: 0; }
.floater {
  position: absolute; color: var(--red);
  opacity: .10; will-change: transform;
  filter: drop-shadow(0 6px 14px rgba(228,20,27,.4));
}

.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(30px, 5vw, 70px);
}

.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -1px;
  margin: 20px 0 22px; max-width: 15ch;
}
.hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 52ch; }
.hero__sub strong { color: var(--text); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(2, auto); justify-content: start;
  gap: clamp(20px, 3vw, 44px);
  margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--border);
}
.stat__num { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; color: #fff; }
.stat dd { font-size: .82rem; color: var(--text-dim); margin-top: 6px; letter-spacing: .01em; }

/* Hero visual */
.hero__visual { position: relative; display: grid; place-items: center; }
/* Source logo has "Associazione Culturale" baked at the bottom — crop it out */
.hero__mascot { width: min(100%, 400px); aspect-ratio: 100/91; object-fit: cover; object-position: top center; will-change: transform; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
.hero__mascot-glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(228,20,27,.5), transparent 65%);
  filter: blur(40px); z-index: -1;
}
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 999px;
  display: grid; justify-items: center; padding-top: 8px;
}
.hero__scroll span { width: 4px; height: 8px; background: var(--red-soft); border-radius: 4px; animation: scrollDot 1.6s var(--ease-out) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* =========================================================
   CHI SIAMO
   ========================================================= */
.about { background: var(--bg-2); }
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about__body p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 18px; }
.about__body strong { color: var(--text); font-weight: 600; }
.about__signature { margin-top: 26px; padding-left: 18px; border-left: 3px solid var(--red); }
.about__sig-name {
  display: inline-flex; position: relative;
  font-family: var(--font-display); font-size: 1.15rem;
  color: var(--text); transition: color .25s;
}
.about__sig-name::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--grad-red); border-radius: 2px; transition: width .28s var(--ease-out);
}
.about__sig-name:hover, .about__sig-name:focus-visible { color: var(--red-soft); }
.about__sig-name:hover::after, .about__sig-name:focus-visible::after { width: 100%; }
.about__sig-role { display: block; font-size: .85rem; color: var(--text-dim); }

.about__photo {
  position: relative; margin-top: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
}
.about__photo:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.about__photo img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: center 38%; display: block;
  transition: transform .6s var(--ease-out);
}
.about__photo:hover img { transform: scale(1.045); }
.about__photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(11,7,8,.88) 0%, rgba(11,7,8,.15) 32%, transparent 55%);
}
.about__photo figcaption {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .9rem; color: #fff;
}
.about__photo figcaption .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-bright); box-shadow: 0 0 12px var(--red-bright); flex-shrink: 0;
}

/* =========================================================
   EVENTI
   ========================================================= */
.events__grid { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 30px); }
.events__rest { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 26px); }

.event {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s;
}
.event:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }

/* Featured event: full-width horizontal layout */
.event--feature { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
.event--feature .event__media { height: 100%; }
.event--feature .event__media img { height: 100%; aspect-ratio: auto; }

.event__media { position: relative; overflow: hidden; background: #000; }
.event__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform .6s var(--ease-out); }
.event:hover .event__media img { transform: scale(1.045); }
.event__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,16,15,.9), transparent 42%); }
.event__date {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--grad-red); color: #fff; font-weight: 600; font-size: .82rem;
  padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-red);
}

.event__content { padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.event__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1; }
.event__title span { color: var(--text-dim); font-size: .7em; }
.event__loc { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--green-bright); font-weight: 500; }
.event__loc .icon { color: var(--green-bright); flex-shrink: 0; }
.event__desc { color: var(--text-muted); font-size: .98rem; }
.event__desc em { color: var(--text); font-style: normal; font-weight: 500; }

.event__schedule { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; border-top: 1px dashed var(--border); padding-top: 14px; }
.event__schedule li { display: flex; gap: 12px; font-size: .92rem; color: var(--text-muted); padding: 7px 0; border-bottom: 1px solid var(--border); }
.event__schedule li:last-child { border-bottom: 0; }
.event__schedule .day { flex-shrink: 0; width: 54px; font-weight: 600; color: var(--red-soft); }

/* =========================================================
   COSA FACCIAMO
   ========================================================= */
.services { background: var(--bg-2); }
.services__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 2.4vw, 24px); }
.services__grid .svc { flex: 1 1 300px; max-width: 350px; }
.svc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); transition: transform .3s var(--ease-out), border-color .3s, background .3s;
  position: relative; overflow: hidden;
}
.svc::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.svc:hover { transform: translateY(-5px); border-color: var(--border-strong); background: var(--surface-2); }
.svc:hover::before { transform: scaleX(1); }
.svc__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: rgba(228,20,27,.12); color: var(--red-soft); margin-bottom: 18px;
  transition: transform .3s var(--ease-out);
}
.svc__icon svg { width: 28px; height: 28px; }
.svc:hover .svc__icon { transform: scale(1.08) rotate(-4deg); }
.svc h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.svc p { color: var(--text-muted); font-size: .95rem; }

/* Contact CTA at the end of the "cosa facciamo" section */
.svc-cta {
  position: relative; overflow: hidden;
  margin-top: clamp(28px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(120deg, rgba(228, 20, 27, 0.14), var(--surface) 70%);
}
.svc-cta__glow { position: absolute; width: 45%; height: 180%; top: -40%; right: -8%; background: radial-gradient(circle, rgba(228,20,27,.3), transparent 62%); filter: blur(38px); pointer-events: none; }
.svc-cta__text { position: relative; z-index: 1; max-width: 48ch; }
.svc-cta__text h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 2.6vw, 1.95rem); line-height: 1.1; }
.svc-cta__text p { color: var(--text-muted); font-size: 1.02rem; margin-top: 10px; }
.svc-cta__btn { position: relative; z-index: 1; flex-shrink: 0; }

/* =========================================================
   TEAM
   ========================================================= */
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 22px); }
.member {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.member img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.member:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); border-color: var(--border-strong); }
/* The polaroid images already carry the name + role, so the caption is
   kept for screen readers / SEO only, not shown visually. */
.member figcaption {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.member--join {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 10px; padding: 24px; aspect-ratio: 4/5;
  background: var(--grad-red); border: 1px solid rgba(255,255,255,.22);
  box-shadow: var(--shadow-red);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.member--join::before {
  /* dot-grid texture, echoing the corner decoration on the polaroid photos */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background-image: radial-gradient(rgba(255,255,255,.9) 1.4px, transparent 1.4px);
  background-size: 15px 15px;
}
.member--join:hover { transform: translateY(-6px); box-shadow: 0 24px 54px rgba(228,20,27,.5); }
.member__plus {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.28);
  animation: joinPulse 2.6s ease-in-out infinite;
}
.member__plus svg { width: 26px; height: 26px; fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; }
.member--join strong { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: #fff; }
.member--join span { position: relative; z-index: 1; font-size: .85rem; color: rgba(255,255,255,.85); }

@keyframes joinPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

/* =========================================================
   PARTNER
   ========================================================= */
.partner { padding-bottom: clamp(64px, 9vw, 120px); }
.marquee { margin-top: 20px; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 20px); width: max-content; padding-block: 4px; }

/* Dark card behind every sponsor logo, matching the site's existing card
   language (.svc / .event / .carousel__item): most logos carry white text,
   which needs a dark surface — not a light one — to stay legible. */
.marquee__logo {
  position: relative;
  flex: 0 0 auto; overflow: hidden;
  width: clamp(132px, 14vw, 176px); height: 92px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s, background .3s;
}
.marquee__logo:hover, .marquee__logo:focus-visible {
  transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); background: var(--surface-2);
}
/* Absolute-fill + padding-on-the-replaced-element is the reliable way to
   contain an image inside a fixed box: it sidesteps percentage-height
   quirks that grid/flex auto-sizing has with <picture> wrapping an <img>. */
.marquee__logo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 14px 20px;
  object-fit: contain;
}

/* =========================================================
   ARCHIVIO EVENTI — carousel
   ========================================================= */
.archive { padding-bottom: clamp(64px, 9vw, 120px); }

.carousel { position: relative; padding-inline: var(--gutter); margin-top: 12px; }

.carousel__track {
  display: flex; gap: clamp(14px, 2vw, 22px);
  list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 6px 2px 10px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__item {
  position: relative; flex: 0 0 auto;
  width: clamp(150px, 20vw, 230px);
  border-radius: var(--radius); overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s;
}
.carousel__item:hover, .carousel__item:focus-within {
  transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow);
}
.carousel__item img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block;
  transition: transform .5s var(--ease-out);
}
.carousel__item:hover img, .carousel__item:focus-within img { transform: scale(1.05); }

.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: rgba(23,16,15,.85); border: 1px solid var(--border-strong);
  color: var(--text); backdrop-filter: blur(6px);
  cursor: pointer; transition: background .25s var(--ease-out), transform .25s var(--ease-out), border-color .25s;
}
.carousel__arrow:hover { background: var(--grad-red); border-color: transparent; transform: translateY(-50%) scale(1.07); }
.carousel__arrow .icon { width: 22px; height: 22px; }
.carousel__arrow--prev { left: 6px; }
.carousel__arrow--next { right: 6px; }

/* =========================================================
   CTA
   ========================================================= */
.cta__panel {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 72px);
  background: linear-gradient(135deg, #1c1211, #241413);
  border: 1px solid var(--border-strong);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta__glow { position: absolute; width: 60%; height: 160%; top: -30%; right: -10%; background: radial-gradient(circle, rgba(228,20,27,.32), transparent 60%); filter: blur(40px); }
.cta__text { position: relative; z-index: 2; }
.cta__text h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.04; }
.cta__text p { color: var(--text-muted); margin-top: 16px; font-size: 1.08rem; max-width: 46ch; }
.cta__meta { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 24px; }
.cta__meta-item { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .95rem; color: var(--text); }
.cta__meta-item .icon { color: var(--red-soft); }

.cta__socials { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; }
.social {
  display: flex; align-items: center; gap: 14px; padding: 16px 22px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border-strong); border-radius: var(--radius);
  font-weight: 600; transition: transform .25s var(--ease-out), background .25s, border-color .25s;
}
.social svg { width: 24px; height: 24px; fill: currentColor; }
.social:hover { transform: translateX(6px); background: var(--grad-red); border-color: transparent; color: #fff; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 56px; padding-bottom: 28px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 44px; aspect-ratio: 100/86; object-fit: cover; object-position: top center; }
.footer__brand strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; }
.footer__brand span { font-size: .78rem; color: var(--text-dim); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__nav a { color: var(--text-muted); font-size: .92rem; transition: color .2s; }
.footer__nav a:hover { color: var(--text); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--border); transition: background .25s, transform .25s, color .2s; }
.footer__social a svg { width: 20px; height: 20px; fill: currentColor; }
.footer__social a:hover { background: var(--grad-red); color: #fff; transform: translateY(-3px); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding-top: 22px; font-size: .82rem; color: var(--text-dim); }
.footer__made .heart { color: var(--red); }
.footer__legal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.footer__legal a { color: var(--text-muted); transition: color .2s; }
.footer__legal a:hover { color: var(--text); }

/* =========================================================
   LEGAL PAGES — Privacy Policy / Termini e Condizioni
   ========================================================= */
.legal-nav { border-bottom: 1px solid var(--border); background: rgba(11,7,8,.85); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 100; }
.legal-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.legal-nav .nav__logo { width: 38px; }

.legal { padding-block: clamp(48px, 8vw, 90px); }
.legal__wrap { max-width: 760px; margin-inline: auto; }
.legal__wrap .eyebrow { margin-bottom: 14px; }
.legal__wrap h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -0.5px; }
.legal__updated { color: var(--text-dim); font-size: .9rem; margin-top: 12px; }
.legal__intro { color: var(--text-muted); font-size: 1.08rem; margin-top: 20px; }

.legal section { margin-top: clamp(28px, 4vw, 40px); }
.legal h2 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); font-weight: 600; margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
.legal h2::before { content: counter(legal-counter); counter-increment: legal-counter; font-family: var(--font-display); font-size: .85em; color: var(--red-soft); flex-shrink: 0; }
.legal__wrap { counter-reset: legal-counter; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin: 20px 0 8px; }
.legal p { color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.legal p:last-child { margin-bottom: 0; }
.legal a { color: var(--red-soft); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.legal a:hover { color: var(--text); }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.legal li::marker { color: var(--red-soft); }
.legal strong { color: var(--text); font-weight: 600; }

.legal__box { margin-top: 18px; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.legal__box p { margin-bottom: 6px; }

/* highlighted placeholder for data still to be provided by the client */
.legal__todo { background: rgba(228,20,27,.18); color: var(--red-soft); border: 1px dashed rgba(255,110,115,.55); border-radius: 6px; padding: 1px 7px; font-weight: 600; font-size: .92em; }

/* =========================================================
   REVEAL ANIMATIONS (JS-driven, with no-JS fallback)
   ========================================================= */
.js [data-reveal], .js [data-split] .word { opacity: 0; }
.js [data-reveal] { transform: translateY(24px); }
.hero__title .word { display: inline-block; will-change: transform, opacity; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .team__grid { grid-template-columns: repeat(3, 1fr); }
  .events__rest { grid-template-columns: repeat(2, 1fr); }
  .cta__panel { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero { padding-top: 110px; text-align: center; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__content { order: 2; }
  .hero__visual { order: 1; margin-bottom: 10px; }
  .hero__mascot { width: min(64%, 280px); }
  .eyebrow, .hero__actions, .hero__stats { justify-content: center; }
  .hero__title { margin-inline: auto; }
  .hero__sub { margin-inline: auto; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }

  .about__grid { grid-template-columns: 1fr; }
  .event--feature { grid-template-columns: 1fr; }
  .event--feature .event__media img { aspect-ratio: 4/5; height: auto; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .services__grid .svc { flex-basis: 100%; max-width: none; }
  .svc-cta__btn { width: 100%; }
  .events__rest { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { gap: 16px 12px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .btn--lg { --pad-x: 26px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .carousel__arrow { width: 44px; height: 44px; }
  .carousel__arrow .icon { width: 20px; height: 20px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js [data-split] .word { opacity: 1 !important; transform: none !important; }
  .hero__scroll span { animation: none; }
  .floater { display: none; }
}
