/* ==========================================================================
   OTOVET — Otologia veterinaria · foglio di stile
   Palette e componenti dalla tavola stile (mockup "logo 2b", ottobre 2026)
   Regola: il verde guida, l'azzurro accompagna.
   ========================================================================== */

:root {
  --green: #0C903C;
  --green-dark: #006C30;
  --green-deep: #08331C;
  --green-hi: #0FA646;
  --green-soft: #7FD3A0;
  --blue: #24A8D8;
  --blue-deep: #186CB4;
  --blue-pale: #8ED6F0;
  --green-light: #E6F4EA;
  --blue-light: #E8F5FB;
  --grey-light: #F3F7F4;
  --bg-soft: #F6F9F7;
  --ink: #1F2A24;
  --ink-2: #3B4740;
  --muted: #5C6B62;
  --muted-2: #93A199;
  --muted-3: #A3AFA8;
  --line: #D5DED8;
  --line-2: #CBD6CF;
  --line-light: #E6F4EA;
  --amber-bg: #FFF1D6;
  --amber-fg: #8A5300;
  --closed-bg: #EEF0EF;
  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --gutter: clamp(20px, 4.45vw, 64px);
  --max: 1440px;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; margin: 0; line-height: 1.1; letter-spacing: -.02em; text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
.h1 { font-size: clamp(40px, 5.3vw, 76px); line-height: 1.02; letter-spacing: -.025em; }
.h2 { font-size: clamp(28px, 3vw, 44px); }
.h3 { font-size: 22px; }
.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow--green { color: var(--green); }
.eyebrow--soft { color: var(--green-soft); }
.eyebrow--blue { color: var(--blue-pale); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: var(--ink-2); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 12px; }
.prose { max-width: 720px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(26px, 2.5vw, 36px); margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
.prose p, .prose li { color: var(--ink-2); font-size: 18px; }
.prose strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   Pulsanti, badge, tag
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 26px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-align: center; white-space: nowrap; transition: background .18s, color .18s, border-color .18s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.on-dark .btn-primary:hover { background: var(--green-hi); }
.btn-outline { border-color: var(--blue); color: var(--blue-deep); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.on-dark .btn-outline { color: var(--blue-pale); }
.on-dark .btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 12px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-more { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--green); white-space: nowrap; }
.link-more:hover { color: var(--green-dark); }
.link-more--blue { color: var(--blue-deep); }
.link-more--blue:hover { color: var(--blue); }

.badge { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 999px; line-height: 1.2; white-space: nowrap; }
.badge-open { background: var(--green-light); color: var(--green-dark); }
.badge-last { background: var(--amber-bg); color: var(--amber-fg); }
.badge-closed { background: var(--closed-bg); color: var(--muted); }
.badge-white { background: #fff; color: var(--green-dark); }
.badge-blue { background: var(--blue-light); color: var(--blue-deep); }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px; background: var(--blue-light); color: var(--blue-deep); line-height: 1.3; }
.tag-neutral { background: var(--grey-light); color: var(--ink-2); }
.tag-green { background: var(--green-light); color: var(--green-dark); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line-light); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-left { display: flex; align-items: center; gap: 48px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.brand img { width: 54px; height: 54px; }
.brand-text { display: flex; flex-direction: column; gap: 6px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 26px; line-height: .9; letter-spacing: -.02em; white-space: nowrap; }
.brand-name .oto { color: var(--green-dark); }
.brand-name .vet { color: var(--blue-deep); }
.brand-desc { font-family: var(--font-head); font-weight: 500; font-size: 8px; letter-spacing: .34em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.main-nav { display: flex; gap: 32px; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.main-nav > a { color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav > a:hover { color: var(--green); }
.main-nav > a.is-active { color: var(--green); border-bottom-color: var(--green); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 24px; font-family: var(--font-head); font-size: 14px; font-weight: 600; flex: none; }
.header-link { color: var(--muted); }
.header-link:hover { color: var(--green); }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 5px 11px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; }
.lang-switch a.is-active { background: var(--ink); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--green-deep); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 1px, transparent 1px 14px); pointer-events: none; }
.hero-scope { position: absolute; right: clamp(-120px, 8vw, 120px); top: 90px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, #2c5a3c 0%, #123d24 55%, var(--green-deep) 72%); opacity: .9; pointer-events: none; }
.hero-inner { position: relative; padding: clamp(72px, 9vw, 150px) 0 clamp(56px, 6vw, 88px); max-width: 820px; }
.hero h1 { color: #fff; margin-top: 24px; }
.hero .lead { color: #D7E7DD; margin: 28px 0 40px; max-width: 600px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { position: absolute; right: var(--gutter); top: 24px; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.55); }

/* hero interno (pagine) */
.page-head { padding: clamp(48px, 5vw, 64px) 0 clamp(28px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.page-head h1 { font-size: clamp(38px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -.025em; }
.page-head .lead { max-width: 520px; font-size: 19px; }
.breadcrumb { padding-top: 28px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span:last-child { color: var(--ink); }

/* --------------------------------------------------------------------------
   Sezioni
   -------------------------------------------------------------------------- */
.section { padding: clamp(64px, 7.5vw, 112px) 0; }
.section--tight { padding: clamp(48px, 5.5vw, 80px) 0; }
.section--light { background: var(--green-light); }
.section--blue { background: var(--blue-light); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #fff; }
.section--border { border-top: 1px solid var(--line-light); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head .sub { margin-top: 10px; font-size: 18px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .split > *, .row > *, .program-day > * { min-width: 0; }

/* Numeri */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-light); }
.stat { padding: 48px 32px 44px; border-right: 1px solid var(--line-light); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-n { font-family: var(--font-head); font-weight: 700; font-size: clamp(44px, 4.5vw, 64px); line-height: 1; color: var(--green); letter-spacing: -.03em; }
.stat-l { margin-top: 12px; font-size: 17px; color: var(--muted); }

/* Card evento */
.card-event { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 20px; min-height: 300px; background: #fff; color: var(--ink); transition: box-shadow .2s, transform .2s; }
a.card-event:hover { box-shadow: 0 18px 40px rgba(31,42,36,.10); transform: translateY(-2px); color: var(--ink); }
.card-event-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-event-type { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-event-date { font-family: var(--font-head); font-weight: 700; font-size: 30px; letter-spacing: -.02em; }
.card-event-city { font-size: 18px; margin-top: 4px; }
.card-event-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line-light); padding-top: 16px; }
.card-event-foot .link-more { font-size: 16px; }
.card-event-foot .link-more.is-muted { color: var(--muted); }

/* Lista eventi compatta (mobile e pagine) */
.event-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--ink); background: #fff; }
.event-row:hover { color: var(--ink); border-color: var(--green); }
.event-row-date { text-align: center; background: var(--green-light); border-radius: 8px; padding: 8px 0; }
.event-row-date b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 22px; line-height: 1; color: var(--green); }
.event-row-date span { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--green-dark); margin-top: 3px; }
.event-row-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.event-row-status { font-size: 14px; font-weight: 600; margin-top: 3px; }
.event-row-arrow { font-family: var(--font-head); font-weight: 700; color: var(--green); font-size: 20px; }
.status-open { color: var(--green); }
.status-last { color: var(--amber-fg); }
.status-closed { color: var(--muted); }

/* Pilastri */
.pillar { border-top: 2px solid var(--c, var(--green)); padding-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.pillar-icon { width: 44px; height: 44px; color: var(--c, var(--green)); }
.pillar-icon svg { width: 100%; height: 100%; }
.pillar h3 { font-size: 26px; margin-top: 8px; }
.pillar p { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 360px; }

/* Frame videotoscopico (segnaposto CSS) */
.scope { position: relative; aspect-ratio: 4 / 3; background: #0B0F0D; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.scope::before { content: ""; width: 68%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--tone, #7a4a36) 0%, #4a2a1e 45%, #1a110d 68%, #0B0F0D 72%); }
.scope--square { aspect-ratio: 1; border-radius: 16px; }
.scope--square::before { width: 78%; }
.scope--wide { aspect-ratio: 16 / 10; }
.scope .badge { position: absolute; left: 14px; top: 14px; }
.scope > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-label { position: absolute; left: 14px; bottom: 12px; font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.6); }

/* Card caso clinico */
.card-case { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
a.card-case:hover { box-shadow: 0 18px 40px rgba(31,42,36,.10); transform: translateY(-2px); color: var(--ink); }
.card-case-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.card-case-path { font-size: 14px; color: var(--muted); margin-bottom: -10px; }
.card-case h3 { font-size: 21px; line-height: 1.3; }
.card-case-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; font-size: 14px; color: var(--muted); }

/* Segnaposto fotografici */
.ph { position: relative; border-radius: var(--radius); background: repeating-linear-gradient(135deg, #DCE5DF 0 1px, #EEF3F0 1px 12px); display: flex; align-items: flex-end; padding: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); overflow: hidden; }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 16 / 8; }
.ph--video { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph--dark { background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 12px), #28352D; color: rgba(255,255,255,.55); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.play::after { content: ""; width: 0; height: 0; border-left: 24px solid var(--green); border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 6px; }

/* Fondatori */
.founder h3 { font-size: 22px; margin: 20px 0 4px; }
.founder-role { font-size: 15px; color: var(--green); font-weight: 600; }
.founder p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; background: var(--green-light); color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.avatar--lg { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: var(--radius); font-size: clamp(48px, 6vw, 88px); background: repeating-linear-gradient(135deg, #DCE5DF 0 1px, #EEF3F0 1px 12px); }
.person { display: flex; gap: 14px; align-items: center; }
.person b { font-family: var(--font-head); font-weight: 700; font-size: 17px; display: block; }
.person span { font-size: 14px; color: var(--muted); }

/* YouTube */
.yt { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: center; }
.yt h2 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.15; margin: 16px 0; }
.yt p { font-size: 18px; color: #C3CFC8; margin-bottom: 32px; }

/* Sponsor */
.sponsors { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.sponsors > * { height: 96px; display: flex; align-items: center; justify-content: center; padding: 12px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--muted-3); transition: color .2s; text-align: center; }
.sponsors > *:hover { color: var(--green); }
.sponsors img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .2s, opacity .2s; }
.sponsors > *:hover img { filter: none; opacity: 1; }
.sponsors--compact > * { height: 80px; font-size: 16px; }
.sponsors--five { grid-template-columns: repeat(5, 1fr); }

/* Newsletter / box */
.box { border-radius: 18px; padding: clamp(32px, 4vw, 56px) clamp(24px, 4.4vw, 64px); }
.box--blue { background: var(--blue-light); }
.box--green { background: var(--green-light); }
.box--white { background: #fff; border: 1px solid var(--line); }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.newsletter h2 { font-size: clamp(26px, 2.5vw, 34px); margin-bottom: 10px; }
.newsletter p { font-size: 18px; color: var(--blue-deep); }
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; min-width: 0; height: 56px; }
.inline-form .btn { height: 56px; padding-top: 0; padding-bottom: 0; }

.notice { padding: 20px 24px; border-radius: 12px; background: var(--blue-light); color: var(--blue-deep); font-size: 16px; line-height: 1.5; }
.notice--green { background: var(--green-light); color: var(--green-dark); }
.notice--amber { background: var(--amber-bg); color: var(--amber-fg); }
.notice--beta { font-family: var(--font-mono); font-size: 12px; padding: 10px 24px; border-radius: 0; background: var(--amber-bg); color: var(--amber-fg); text-align: center; }
.cta-strip { padding: 24px; border-radius: 12px; background: var(--blue-light); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-strip span { font-size: 16px; color: var(--blue-deep); line-height: 1.4; }

/* Layout a due colonne con aside */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split--even { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.split--form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.split--narrow { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px rgba(31,42,36,.06); background: #fff; }
.aside-card-head { padding: 28px 28px 24px; background: var(--green-light); }
.aside-card-head .big { margin-top: 18px; font-family: var(--font-head); font-weight: 700; font-size: 34px; letter-spacing: -.02em; line-height: 1.05; }
.aside-card-head .sub { font-size: 17px; color: var(--ink-2); margin-top: 4px; }
.aside-card-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.kv { display: flex; justify-content: space-between; gap: 16px; }
.kv span:first-child { color: var(--muted); }
.kv b { font-family: var(--font-head); font-weight: 700; text-align: right; }
.progress { height: 6px; border-radius: 3px; background: var(--green-light); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green); }
.aside-card .btn { margin-top: 10px; height: 56px; }
.aside-card .fine { font-size: 14px; color: var(--muted); text-align: center; }

/* Programma */
.program { display: flex; flex-direction: column; }
.program-day { display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.program-day:last-child { border-bottom: 1px solid var(--line); }
.program-n { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--green); }
.program-date { font-size: 15px; color: var(--muted); margin-top: 2px; }
.program-day h3 { font-size: 22px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 15px; padding: 6px 12px; border-radius: 6px; background: var(--grey-light); color: var(--ink-2); }

/* Elenchi tappe / timeline */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.row--wide { grid-template-columns: 200px 1fr; }
.row--year { grid-template-columns: 90px 1fr; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row-date { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.row-title { font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.row-sub { font-size: 15px; color: var(--muted); margin-top: 3px; }
.row-right { display: flex; align-items: center; gap: 16px; }

/* Filtri */
.filters { display: flex; flex-direction: column; gap: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--line-light); }
.filter-group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filter-label { width: 96px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.count { padding: 24px 0 0; font-size: 15px; color: var(--muted); }

/* Fatti (dl) e blocchi */
.facts { margin: 36px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: 12px; overflow: hidden; }
.facts > div { background: #fff; padding: 16px 18px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.block { padding: 22px 0; border-top: 1px solid var(--line-light); }
.block h2 { font-size: 19px; color: var(--green); margin-bottom: 8px; }
.block p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.thumbs > * { aspect-ratio: 1; border-radius: 10px; background: #0B0F0D; border: 2px solid transparent; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.55); }
.thumbs > .is-active { border-color: var(--green); }

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field > span, .field > label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field small { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; height: 50px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 14px;
  font-family: var(--font-body); font-size: 16px; color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235C6B62' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
input::placeholder, textarea::placeholder { color: #97A39C; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--green); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-light); }
.form-msg { display: none; padding: 16px 20px; border-radius: 10px; font-size: 16px; }
.form-msg.is-ok { display: block; background: var(--green-light); color: var(--green-dark); }
.form-msg.is-err { display: block; background: var(--amber-bg); color: var(--amber-fg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.file-drop { border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm); padding: 22px; text-align: center; color: var(--muted); font-size: 15px; }
.file-drop input { display: block; margin: 10px auto 0; font-size: 14px; }

/* Panel / card generica */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 3vw, 40px); }
.panel h1, .panel h2 { font-size: 30px; }
.panel .intro { margin: 6px 0 32px; font-size: 16px; color: var(--muted); }

/* Step iscrizione */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step-bar { height: 4px; border-radius: 2px; background: var(--line); }
.step-label { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--muted); }
.step.is-done .step-bar, .step.is-current .step-bar { background: var(--green); }
.step.is-done .step-label, .step.is-current .step-label { color: var(--green); }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-option { border: 1px solid var(--line-2); border-radius: 12px; padding: 22px; cursor: pointer; display: block; }
.pay-option b { font-family: var(--font-head); font-weight: 700; font-size: 18px; display: block; }
.pay-option span { font-size: 15px; color: var(--muted); margin-top: 4px; display: block; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option:has(input:checked) { border: 2px solid var(--green); background: #F4FAF6; padding: 21px; }
.confirm-head { padding: 48px 40px 40px; background: var(--green-light); border-radius: 16px 16px 0 0; }
.check { width: 56px; height: 56px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; }
.check::after { content: ""; width: 20px; height: 10px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(2px, -2px); }

/* Area riservata */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.dash-nav a { padding: 10px 14px; border-radius: 8px; color: var(--ink-2); }
.dash-nav a.is-active, .dash-nav a:hover { background: var(--green-light); color: var(--green-dark); }
.file-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line-light); }
.file-row:last-child { border-bottom: 1px solid var(--line-light); }
.file-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-light); color: var(--blue-deep); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
.file-row b { font-family: var(--font-head); font-weight: 700; display: block; }
.file-row small { color: var(--muted); font-size: 14px; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font-weight: 700; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; color: var(--ink-2); font-size: 17px; max-width: 720px; }

/* Card news */
.card-news { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; color: var(--ink); background: #fff; }
.card-news:hover { color: var(--ink); border-color: var(--green); }
.card-news time { font-size: 14px; color: var(--muted); }
.card-news h3 { font-size: 22px; line-height: 1.25; }
.card-news p { color: var(--ink-2); font-size: 16px; }

/* Partner tiers */
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.tier h3 { font-size: 24px; }
.tier ul { padding-left: 1.1em; color: var(--ink-2); }
.tier li + li { margin-top: 6px; }
.tier--hi { border-color: var(--green); box-shadow: 0 18px 40px rgba(31,42,36,.06); }

/* Contatti */
.contact-list { display: flex; flex-direction: column; gap: 18px; font-size: 17px; }
.contact-list b { font-family: var(--font-head); font-weight: 700; display: block; font-size: 14px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.map { aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--grey-light); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.map iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #C3CFC8; padding: 72px 0 40px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-disc { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.footer-disc img { width: 59px; height: 59px; }
.footer-brand .brand-name { font-size: 34px; }
.footer-brand .oto { color: #5FC27F; }
.footer-brand .vet { color: #5CC3EA; }
.footer-brand .brand-desc { color: #B9C4BE; font-size: 9px; }
.footer-tagline { margin-top: 24px; line-height: 1.5; max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col b { font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer-col a { color: #C3CFC8; }
.footer-col a:hover { color: #fff; }
.footer-col a.is-strong { color: #fff; font-weight: 600; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted-2); }
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: #fff; }

/* CTA sticky mobile */
.sticky-cta { display: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .main-nav { gap: 22px; font-size: 14px; }
  .header-left { gap: 28px; }
  .header-actions { gap: 16px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat { padding: 32px 24px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .split, .split--form, .split--even { grid-template-columns: minmax(0, 1fr); }
  .aside-card { position: static; }
  .yt { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 20px; }
  .brand-desc { display: none; }
  .main-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(31,42,36,.12); padding: 8px var(--gutter) 24px; }
  .main-nav.is-open { display: flex; }
  .main-nav > a { height: 56px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #EEF3F0; font-size: 19px; font-weight: 700; padding: 0; }
  .main-nav > a.is-active { color: var(--green); }
  .main-nav > a::after { content: "→"; color: var(--green); }
  .nav-mobile-extra { display: flex; gap: 10px; margin-top: 20px; }
  .nav-mobile-extra .btn { flex: 1; height: 50px; padding: 0; }
  .header-actions .header-link, .header-actions > .btn { display: none; }
  .header-actions { gap: 12px; }
  .lang-switch a { padding: 4px 9px; font-size: 13px; }
  .nav-toggle { display: flex; }
  .hero-scope { right: -90px; top: -40px; width: 300px; height: 300px; }
  .hero-inner { padding: 56px 0 40px; }
  .hero h1 { font-size: 40px; line-height: 1.05; margin-top: 16px; }
  .hero .lead { font-size: 17px; margin: 18px 0 28px; }
  .hero-note { display: none; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; height: 54px; }
  .section { padding: 40px 0; }
  .section--tight { padding: 36px 0; }
  .section-head { margin-bottom: 20px; }
  .section-head h2 { font-size: 26px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; gap: 10px; }
  .page-head { grid-template-columns: 1fr; gap: 14px; padding: 36px 0 24px; }
  .page-head h1 { font-size: 36px; }
  .page-head .lead { font-size: 17px; }
  .stats { gap: 1px; background: var(--line-light); border: 0; margin-top: 8px; }
  .stat { background: #fff; padding: 18px 16px !important; border: 0; }
  .stat-n { font-size: 38px; }
  .stat-l { font-size: 14px; margin-top: 6px; }
  .pillar h3 { font-size: 19px; }
  .pillar p { font-size: 16px; }
  .founder h3 { font-size: 19px; margin-top: 14px; }
  .sponsors { grid-template-columns: repeat(2, 1fr); }
  .sponsors > * { height: 72px; font-size: 16px; }
  .newsletter { grid-template-columns: 1fr; gap: 20px; }
  .inline-form { flex-direction: column; }
  .inline-form input, .inline-form .btn { height: 52px; }
  .box { border-radius: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .steps { gap: 8px; }
  .step-label { font-size: 12px; }
  .pay-options { grid-template-columns: 1fr; }
  .program-day { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
  .split--narrow { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .row, .row--wide, .row--year { grid-template-columns: 1fr; gap: 8px; }
  .row-right { justify-content: space-between; }
  .sponsors--five { grid-template-columns: repeat(2, 1fr); }
  .filter-label { width: 100%; }
  .facts { grid-template-columns: 1fr; }
  .confirm-head { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 36px 0 28px; }
  .footer-brand .brand-name { font-size: 26px; }
  .footer-disc { width: 56px; height: 56px; }
  .footer-disc img { width: 44px; height: 44px; }
  .footer-bottom { margin-top: 32px; flex-direction: column; gap: 8px; }
  /* casi clinici in scorrimento orizzontale */
  .scroll-x { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: var(--gutter); margin-right: calc(-1 * var(--gutter)); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .scroll-x::-webkit-scrollbar { display: none; }
  .scroll-x > * { flex: 0 0 260px; scroll-snap-align: start; }
  .scroll-x .card-case h3 { font-size: 16px; }
  .scroll-x .card-case-body { padding: 16px; }
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter); background: #fff; border-top: 1px solid var(--line); gap: 10px; align-items: center; justify-content: space-between; }
  .sticky-cta .btn { flex: 1; height: 50px; padding: 0; }
  .sticky-cta small { font-size: 13px; color: var(--muted); white-space: nowrap; }
  body.has-sticky { padding-bottom: 72px; }
}

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

@media print {
  .site-header, .site-footer, .sticky-cta, .nav-toggle { display: none !important; }
}
