/* ==========================================================================
   Fiori di Luce ODV — design system
   Obiettivo: leggerezza, leggibilità, coerenza col marchio (prugna + crema)
   Nessuna dipendenza esterna. Font self-hosted. ~1 file CSS.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --plum: #681050;
  --plum-700: #530c40;
  --plum-900: #2c0721;
  --plum-100: #f4e6ee;
  --plum-050: #faf2f6;
  --cream: #fbf8f5;
  --sand: #f1e8e0;
  --white: #fff;
  --ink: #241a20;
  --muted: #6b5c66;
  --line: rgba(104, 16, 80, 0.14);
  --sage: #6f8e7c;
  --gold: #b8893f;

  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1180px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(44, 7, 33, 0.05), 0 8px 24px -16px rgba(44, 7, 33, 0.25);
  --shadow-md: 0 2px 6px rgba(44, 7, 33, 0.06), 0 24px 48px -28px rgba(44, 7, 33, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--plum-700); }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--plum-900);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 4.4vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
strong { font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--plum);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Barra anteprima (solo build di prova) ---------- */
.preview-bar {
  background: var(--plum-900);
  color: #f7e9f1;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.45rem 1rem;
  letter-spacing: 0.01em;
}
.preview-bar strong { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251, 248, 245, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -24px rgba(44, 7, 33, 0.6);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: 78px;
}
.brand { order: 1; }
.nav { order: 2; margin-left: auto; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand__mark-wrap { display: block; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; }
.brand__mark { width: 46px; height: 46px; }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.42rem; color: var(--plum-900); letter-spacing: -0.01em; }
.brand__tag { font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-top: 0.32rem; }
.footer__logo { width: 168px; height: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.4rem 0;
}
.nav__list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--plum);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__list a:hover::after,
.nav__list a[aria-current='page']::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 22px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--plum-900);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Musica di sottofondo ---------- */
.music-toggle {
  order: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.music-toggle:hover { background: var(--plum-050); color: var(--plum); }
.music-toggle:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.music-toggle.is-on { color: var(--plum); border-color: rgba(104, 16, 80, 0.32); background: var(--plum-050); }
.music-toggle__icon { display: inline-flex; }
.music-toggle__ico--on { display: none; }
.music-toggle.is-on .music-toggle__ico--on { display: block; animation: fdl-musica-respiro 3.6s ease-in-out infinite; }
.music-toggle.is-on .music-toggle__ico--off { display: none; }
.nav-toggle { order: 4; }

@keyframes fdl-musica-respiro {
  0%, 100% { opacity: 0.65; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* ---------- Bottoni ---------- */
.btn {
  --btn-bg: var(--plum);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  box-shadow: 0 10px 24px -16px rgba(104, 16, 80, 0.8);
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); box-shadow: 0 16px 30px -18px rgba(104, 16, 80, 0.9); }
.btn--primary { background: linear-gradient(135deg, #7a1459 0%, var(--plum) 55%, #4c0b3a 100%); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--plum-900);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--plum-050); }
.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--plum);
}
.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.86rem; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--plum);
}
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Tipografia di sezione ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--sand { background: var(--sand); }
.section--plum050 { background: var(--plum-050); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head p { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.6rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem);
  background:
    radial-gradient(60% 70% at 88% 12%, rgba(104, 16, 80, 0.10), transparent 70%),
    radial-gradient(50% 60% at 4% 88%, rgba(184, 137, 63, 0.12), transparent 72%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.hero__title { margin-bottom: 1rem; }
.hero__title em {
  font-style: normal;
  color: var(--plum);
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: '';
  position: absolute;
  left: 0.02em; right: 0.02em; bottom: 0.06em;
  height: 0.28em;
  background: rgba(184, 137, 63, 0.28);
  border-radius: 4px;
  z-index: -1;
}
.hero__text { font-size: clamp(1.05rem, 1.45vw, 1.18rem); color: #4b3d46; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.87rem;
  color: var(--muted);
}
.hero__trust li { display: flex; align-items: center; gap: 0.45rem; list-style: none; }
.hero__trust ul { display: contents; }
.hero__trust svg { color: var(--sage); flex: none; }

.hero__visual { position: relative; }
.hero__media {
  position: relative;
  border-radius: 260px 260px 26px 26px;
  overflow: hidden;
  aspect-ratio: 5 / 5.6;
  box-shadow: var(--shadow-md);
  background: var(--sand);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44, 7, 33, 0) 45%, rgba(44, 7, 33, 0.5) 100%);
}
.hero__badge {
  position: absolute;
  top: 1.4rem;
  left: -0.6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--plum-900);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero__badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.hero__next {
  text-decoration: none;
  position: absolute;
  right: -0.8rem;
  bottom: 1.6rem;
  z-index: 2;
  width: min(280px, 82%);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-md);
}
.hero__next-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.hero__next-title { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.25; color: var(--plum-900); margin: 0 0 0.35rem; }
.hero__next-meta { margin: 0; font-size: 0.8rem; color: var(--muted); display: flex; gap: 0.5rem; align-items: center; }
.hero__next a { text-decoration: none; }
.hero__next a:hover .hero__next-title { text-decoration: underline; }
.hero__dots {
  position: absolute;
  left: -3rem;
  bottom: 2rem;
  width: 150px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.hero__arc {
  position: absolute;
  inset: -1.2rem -1.2rem auto auto;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(104, 16, 80, 0.22);
  border-radius: 50%;
  z-index: 0;
}

/* ---------- Numeri ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2.4rem);
}
.number-card {
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}
.number-card__value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.6vw, 3.6rem);
  line-height: 1;
  color: var(--plum);
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.number-card__label {
  display: block;
  font-weight: 600;
  color: var(--plum-900);
  margin-bottom: 0.45rem;
}
.number-card__text { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- Sedi ---------- */
.sedi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.sede-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sede-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--plum), rgba(104, 16, 80, 0.15));
}
.sede-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sede-card__region {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.sede-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0.3rem 0 0.6rem; }
.sede-card p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 1.1rem 0 1.4rem; }
.tags li {
  font-size: 0.78rem;
  background: var(--plum-050);
  color: var(--plum);
  border: 1px solid var(--plum-100);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

/* ---------- Staff ---------- */
.staff { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2rem); }
.staff-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 1.4rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.staff-card__photo {
  border-radius: 120px 120px 18px 18px;
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
  background: var(--sand);
}
.staff-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.staff-card__role {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.staff-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.staff-card p { font-size: 0.92rem; color: var(--muted); }
.staff-card .link-arrow { font-size: 0.85rem; margin-top: 0.3rem; }

/* ---------- Eventi ---------- */
.events-list { display: grid; gap: 0.9rem; }
.event-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 1.4rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.event-row:hover { border-color: rgba(104, 16, 80, 0.3); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.event-date {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 1rem;
}
.event-date__day { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--plum); }
.event-date__month { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem; }
.event-row__title { margin: 0 0 0.2rem; font-size: 1.08rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; color: var(--plum-900); }
.event-row__meta { margin: 0; font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; }
.event-row__meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.event-row__cta { white-space: nowrap; }
.event-placeholder {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}
.event-placeholder strong { display: block; color: var(--plum-900); font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.4rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.7rem; max-width: 860px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.3rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq details[open] { border-color: rgba(104, 16, 80, 0.3); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.4rem 1.15rem 0;
  font-weight: 600;
  color: var(--plum-900);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 0.2rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--plum);
  border-bottom: 2px solid var(--plum);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding-bottom: 1.2rem; color: var(--muted); margin: 0; }

/* ---------- Banda CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #3a0a2c 0%, var(--plum) 48%, #7c155c 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.6rem);
}
.cta-band::before,
.cta-band::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-band::before {
  width: 380px; height: 380px;
  right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
}
.cta-band::after {
  width: 260px; height: 260px;
  left: -80px; bottom: -120px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.cta-band__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr auto; gap: 2rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 56ch; margin-bottom: 0; }
.cta-band__actions { display: flex; flex-direction: column; gap: 0.7rem; }

/* ---------- Page hero (pagine interne) ---------- */
.page-hero {
  padding-block: clamp(2.4rem, 5vw, 4rem) clamp(1.6rem, 3vw, 2.4rem);
  background:
    radial-gradient(55% 80% at 90% 0%, rgba(104, 16, 80, 0.09), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 0.7rem; }
.page-hero p { color: var(--muted); max-width: 66ch; font-size: 1.08rem; margin: 0; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: 0.4rem; color: rgba(104, 16, 80, 0.35); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--plum); text-decoration: underline; }

/* ---------- Prosa / documenti legali ---------- */
.prose { max-width: 78ch; }
.prose h2 { font-size: clamp(1.45rem, 2.3vw, 1.85rem); margin-top: 2.4rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.prose p, .prose li { color: #3d323a; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: 0.4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.9rem; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--plum-050); color: var(--plum-900); font-weight: 600; }
.prose .note {
  background: var(--plum-050);
  border-left: 3px solid var(--plum);
  padding: 1rem 1.2rem;
  border-radius: 0 12px 12px 0;
  font-size: 0.94rem;
}
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.toc {
  position: sticky;
  top: 110px;
  font-size: 0.86rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.toc h2 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; font-weight: 600; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin-bottom: 0.45rem; }
.toc a { color: var(--muted); text-decoration: none; display: block; padding-left: 0; }
.toc a:hover { color: var(--plum); text-decoration: underline; }
.legal-meta { font-size: 0.84rem; color: var(--muted); margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }

/* ---------- Form ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--plum-900); }
.field .req { color: var(--plum); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
  width: 100%;
  min-height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--plum);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(104, 16, 80, 0.09);
}
.field__hint { font-size: 0.78rem; color: var(--muted); }
.field--error input, .field--error select, .field--error textarea { border-color: #b3261e; }
.field__error { font-size: 0.8rem; color: #b3261e; min-height: 0; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.86rem; color: #3d323a; }
.check input { width: 18px; height: 18px; min-height: 0; margin-top: 0.2rem; accent-color: var(--plum); flex: none; }
.check a { color: var(--plum); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.form-actions .btn { min-width: 220px; }
.form-status { margin-top: 1rem; font-size: 0.9rem; }
.form-status[data-state='error'] { color: #b3261e; }
.form-status[data-state='success'] { color: #2c6b4f; }
.success-card {
  background: #fff;
  border: 1px solid rgba(44, 107, 79, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}
.success-card__icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(44, 107, 79, 0.12); display: grid; place-items: center; color: #2c6b4f; margin-bottom: 1rem; }
.success-card h2 { font-size: 1.7rem; }
.rif { font-family: var(--font-body); font-size: 0.9rem; background: var(--plum-050); border: 1px dashed rgba(104, 16, 80, 0.3); border-radius: 10px; padding: 0.6rem 0.9rem; display: inline-block; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.info-card h2 { font-size: 1.4rem; }
.info-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1.1rem; }
.info-list li { display: grid; grid-template-columns: 40px 1fr; gap: 0.9rem; align-items: start; }
.info-list__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--plum-050); color: var(--plum); display: grid; place-items: center; }
.info-list dt, .info-list__label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 0.1rem; }
.info-list a { text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

/* ---------- Mappa (link, non iframe: 0 cookie, 0 peso) ---------- */
.map-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(120deg, rgba(104, 16, 80, 0.06), rgba(184, 137, 63, 0.08));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  text-decoration: none;
  color: var(--plum-900);
  font-weight: 600;
  margin-top: 1.4rem;
}
.map-link:hover { border-color: rgba(104, 16, 80, 0.3); }

/* ---------- Calendario ---------- */
.calendar-widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 1.6rem);
  box-shadow: var(--shadow-sm);
}
.calendar__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.calendar__month { font-family: var(--font-display); font-size: 1.35rem; color: var(--plum-900); margin: 0; text-transform: capitalize; }
.calendar__nav { display: flex; gap: 0.4rem; }
.calendar__nav button {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--plum);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.calendar__nav button:hover { background: var(--plum-050); border-color: rgba(104, 16, 80, 0.3); }
.calendar__nav button:disabled { opacity: 0.35; cursor: default; }
.calendar__weekdays, .calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar__weekdays { margin-bottom: 0.4rem; }
.calendar__weekdays span {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 0.3rem 0;
}
.calendar__day {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: background 0.2s, border-color 0.2s;
}
.calendar__day.is-outside { color: rgba(36, 26, 32, 0.25); }
.calendar__day.has-event { cursor: pointer; font-weight: 600; background: var(--plum-050); color: var(--plum-900); }
.calendar__day.has-event:hover { background: var(--plum-100); }
.calendar__day.is-today { border-color: var(--gold); }
.calendar__day.is-selected { background: var(--plum); color: #fff; }
.calendar__day.is-selected::after { background: #fff; }
.calendar__day::after {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--plum);
  opacity: 0;
}
.calendar__day.has-event::after { opacity: 1; }
.calendar__legend { display: flex; gap: 1rem; margin-top: 0.9rem; font-size: 0.76rem; color: var(--muted); flex-wrap: wrap; }
.calendar__legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.calendar__legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--plum-050); border: 1px solid var(--plum-100); display: inline-block; }
.calendar__legend i.today { border-color: var(--gold); background: #fff; }

/* Toolbar eventi */
.events-toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: rgba(104, 16, 80, 0.3); color: var(--plum); }
.chip[aria-pressed='true'] { background: var(--plum); border-color: var(--plum); color: #fff; }

/* ---------- Prenotazione ---------- */
.booking-layout { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: clamp(1.6rem, 4vw, 2.6rem); align-items: start; }
.booking-aside { display: grid; gap: 1rem; position: sticky; top: 100px; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); }
.aside-card h2 { font-size: 1.1rem; margin-bottom: 0.7rem; }
.aside-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.aside-card li { display: flex; gap: 0.5rem; font-size: 0.88rem; color: var(--muted); }
.aside-card li svg { color: var(--sage); flex: none; margin-top: 0.2rem; }
.aside-card--accent { background: var(--plum-050); border-color: var(--plum-100); }
.aside-card--accent p { font-size: 0.88rem; color: #4b3d46; }
.booking-event { display: flex; gap: 0.9rem; align-items: center; padding: 0.7rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.booking-event:hover { border-color: rgba(104, 16, 80, 0.3); }
.booking-event__date { text-align: center; min-width: 52px; }
.booking-event__date strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--plum); line-height: 1; }
.booking-event__date span { font-size: 0.65rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.08em; }
.booking-event__title { font-size: 0.88rem; font-weight: 600; color: var(--plum-900); line-height: 1.3; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--plum-900);
  color: rgba(255, 255, 255, 0.72);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.9rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); padding-bottom: 2.5rem; }
.footer__logo { width: 176px; background: #fff; padding: 0.7rem 0.9rem; border-radius: 12px; }
.footer__claim { margin: 1rem 0 1.1rem; color: rgba(255, 255, 255, 0.66); max-width: 30ch; }
.footer__social { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: #fff; }
.footer__title { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); font-weight: 600; margin-bottom: 1rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer__address { font-style: normal; line-height: 1.8; }
.footer__vat { margin-top: 0.9rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
.footer__cookiebtn {
  margin-top: 1rem;
  background: none;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.counter { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.12); display: grid; gap: 0.15rem; }
.counter__label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.counter__numbers { font-size: 0.84rem; color: rgba(255, 255, 255, 0.85); }
.counter__numbers strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; color: #fff; }
.counter__note { font-size: 0.7rem; color: rgba(255, 255, 255, 0.45); text-decoration: none; }
.counter__note:hover { color: rgba(255, 255, 255, 0.75); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer__bottom p { margin: 0; }
.footer__disclaimer { max-width: 62ch; }
.footer__credit {
  flex: 1 1 100%;
  display: grid;
  gap: 0.25rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 96ch;
}
.footer__credit a { color: rgba(255, 255, 255, 0.7); text-decoration: underline; text-underline-offset: 2px; }
.footer__credit a:hover { color: #fff; }

/* ---------- Banner cookie ---------- */
.cookie-banner {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) translateY(140%);
  width: min(880px, calc(100% - 2rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 70px -30px rgba(44, 7, 33, 0.55);
  padding: 1.3rem 1.4rem;
  transition: transform 0.45s var(--ease);
  visibility: hidden;
}
.cookie-banner.is-open { transform: translateX(-50%) translateY(0); visibility: visible; }
.cookie-banner__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
}
.cookie-banner__close:hover { background: var(--plum-050); color: var(--plum); }
.cookie-banner { padding-right: 3rem; }
.cookie-banner__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 1.6rem; align-items: center; }
.cookie-banner__inner > * { min-width: 0; }
.cookie-banner h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--plum-900); }
.cookie-banner p { font-size: 0.83rem; color: var(--muted); margin: 0; max-width: 68ch; }
.cookie-banner a { color: var(--plum); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.cookie-banner__prefs { display: none; grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 0.4rem; }
.cookie-banner.is-prefs .cookie-banner__prefs { display: block; }
.cookie-banner.is-prefs .cookie-banner__inner { grid-template-columns: 1fr; }
.cookie-banner.is-prefs .cookie-banner__actions { justify-content: flex-start; }
.pref-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; padding: 0.6rem 0; }
.pref-row + .pref-row { border-top: 1px solid var(--line); }
.pref-row__text strong { display: block; font-size: 0.9rem; color: var(--plum-900); }
.pref-row__text span { font-size: 0.8rem; color: var(--muted); }
.switch { position: relative; flex: none; width: 46px; height: 26px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: #d9cdd4; border-radius: 999px; transition: background 0.2s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 0.2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--plum); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.switch input:disabled + span { opacity: 0.6; }

/* ---------- Pilastri (prevenzione / formazione / sostegno) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; }
.pillar h3 { margin: 1.2rem 1.4rem 0.5rem; font-size: 1.3rem; }
.pillar p { margin: 0 1.4rem 1.5rem; font-size: 0.92rem; color: var(--muted); }

/* ---------- Blocchi editoriali ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; }
.split__media { background: var(--plum-050); border: 1px solid var(--plum-100); border-radius: 60% 60% 24px 24px / 40% 40% 24px 24px; padding: clamp(1rem, 3vw, 2rem); }
.split__media img { width: 100%; height: auto; }
.info-split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; align-items: start; }
.note-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  max-width: 880px;
  box-shadow: var(--shadow-sm);
}
.note-panel h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.note-panel p { color: var(--muted); }

/* ---------- Layout eventi ---------- */
.events-layout { display: grid; grid-template-columns: 380px 1fr; gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start; }
.events-main__title { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 400; color: var(--plum-900); margin: 0 0 1rem; }
.events-main__note { font-size: 0.9rem; color: var(--muted); margin: 0 0 1.1rem; }
.event-row__past { display: inline-flex; align-items: center; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--sand, #f5f0e9); color: var(--muted); font-size: 0.78rem; }
.events-layout .calendar-widget { position: sticky; top: 100px; }

/* ---------- Passaggi ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.step__num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--plum-050);
  border: 1px solid var(--plum-100);
  color: var(--plum);
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Archivio eventi ---------- */
.archive { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.archive summary { cursor: pointer; font-weight: 600; color: var(--plum-900); }
.archive__list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; font-size: 0.9rem; }
.archive__list li { display: grid; grid-template-columns: 120px 1fr auto; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.archive__list time { color: var(--plum); font-weight: 600; font-variant-numeric: tabular-nums; }
.archive__list em { color: var(--muted); font-style: normal; font-size: 0.82rem; text-align: right; }

/* ---------- Dialog evento ---------- */
.dialog {
  border: none;
  padding: 0;
  border-radius: 20px;
  width: calc(100% - 2rem);
  max-width: 560px;
  box-shadow: 0 40px 100px -40px rgba(44, 7, 33, 0.7);
  color: var(--ink);
  background: var(--cream);
}
.dialog::backdrop { background: rgba(44, 7, 33, 0.55); backdrop-filter: blur(3px); }
.dialog__body { padding: clamp(1.4rem, 4vw, 2.2rem); }
.dialog__body h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.dialog__body p { font-size: 0.94rem; color: #3d323a; }
.dialog__place { font-weight: 600; color: var(--plum-900) !important; margin-bottom: 0.4rem; }
.dialog__cost { color: var(--plum) !important; font-weight: 600; }
.dialog__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }

/* ---------- Riepilogo evento nel form ---------- */
.summary {
  grid-column: 1 / -1;
  background: var(--plum-050);
  border: 1px dashed rgba(104, 16, 80, 0.28);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  display: grid;
  gap: 0.15rem;
  font-size: 0.92rem;
}
.summary__label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.summary__meta { color: var(--muted); font-size: 0.84rem; }

/* ---------- Ancora con offset header ---------- */
section[id], [id^="titolare"] { scroll-margin-top: 110px; }

/* ---------- Animazioni leggere ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__list { gap: 1.1rem; }
  .nav__actions .btn--ghost { display: none; }
  .staff { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; position: relative; z-index: 100; }
  .music-toggle { margin-left: auto; }
  .music-toggle__label { display: none; }
  /* Senza backdrop-filter il pannello fixed resta ancorato al viewport */
  .site-header { backdrop-filter: none; background: var(--cream); }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 88vw);
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 5.5rem 1.6rem 2rem;
    gap: 1.5rem;
    transform: translateX(105%);
    transition: transform 0.35s var(--ease);
    box-shadow: -20px 0 60px -30px rgba(44, 7, 33, 0.5);
    overflow-y: auto;
    z-index: 95;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a { display: block; padding: 0.9rem 0; font-size: 1.05rem; }
  .nav__actions { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .nav__actions .btn--ghost { display: inline-flex; }
  .nav__actions .btn { width: 100%; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 460px; margin-inline: auto; }
  .hero__media { aspect-ratio: 5 / 4.6; border-radius: 180px 180px 22px 22px; }
  .hero__next { right: 0.6rem; bottom: 0.8rem; }
  .hero__badge { left: 0.6rem; }

  .numbers { grid-template-columns: 1fr; gap: 1.4rem; }
  .sedi { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .events-layout { grid-template-columns: 1fr; }
  .events-layout .calendar-widget { position: static; max-width: 440px; }
  .split { grid-template-columns: 1fr; }
  .split__media { max-width: 460px; margin-inline: auto; }
  .info-split { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .archive__list li { grid-template-columns: 100px 1fr; }
  .archive__list em { grid-column: 2; text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col:last-child { grid-column: auto; }
  .cookie-banner__inner { grid-template-columns: minmax(0, 1fr); }
  .cookie-banner__actions { justify-content: flex-start; }
  .event-row { grid-template-columns: 68px 1fr; }
  .event-row__cta { grid-column: 2; }
  .event-row__cta .btn { width: 100%; }
}

@media (max-width: 1180px) {
  .music-toggle__label { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .music-toggle { padding: 0.42rem; }
  .brand__logo { width: 126px; }
  .header__inner { min-height: 68px; }
  .staff-card { grid-template-columns: 1fr; }
  .staff-card__photo { max-width: 200px; }
  .booking-aside { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .calendar__day { font-size: 0.78rem; }
  .calendar__weekdays span { font-size: 0.6rem; }
  .hero__trust { font-size: 0.8rem; gap: 0.4rem 0.9rem; }
  .cookie-banner { bottom: 0.5rem; width: calc(100% - 1rem); border-radius: 16px; padding-right: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .preview-bar, .hero__visual, .breadcrumb { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.4rem; }
.mt-3 { margin-top: 1.6rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: clamp(2rem, 4vw, 3rem); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 1.4rem; }
.text-center { text-align: center; }
.center-col { max-width: 640px; margin-inline: auto; }
.section--center { min-height: 52vh; display: grid; place-items: center; }
.eyebrow--center { justify-content: center; }
.lead--center { margin-inline: auto; }
.address { font-style: normal; line-height: 1.9; }
.stack-sm { display: grid; gap: 0.6rem; }
.h2-inline { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0.3rem 0 0.6rem; }
.form-card > h2 { font-size: 1.5rem; }

.prefs-note { margin: 0.8rem 0 0; }
.prefs-save { margin-top: 0.9rem; }

.noscript-note {
  background: #fff4e5;
  border-bottom: 1px solid #f0d9b5;
  color: #5a3a12;
  font-size: 0.88rem;
  padding: 0.7rem 1rem;
  text-align: center;
}

/* ---------- Staff: nome come titolo di card ---------- */
.staff-card__name { font-size: 1.35rem; margin-bottom: 0.5rem; }

/* ---------- Archivio eventi passati ---------- */
.past-events { display: grid; gap: 0.6rem; max-width: 900px; }
.past-event {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
  box-shadow: var(--shadow-sm);
}
.past-event summary {
  cursor: pointer;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
  list-style: none;
}
.past-event summary::-webkit-details-marker { display: none; }
.past-event summary::after {
  content: "+";
  margin-left: auto;
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
}
.past-event[open] summary::after { content: "−"; }
.past-event__date {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--plum);
  min-width: 8.5rem;
  font-variant-numeric: tabular-nums;
}
.past-event__title { font-weight: 600; }
.past-event__body { padding-top: 0.75rem; border-top: 1px solid var(--line); margin-top: 0.75rem; }
.past-event__body p { margin-bottom: 0.5rem; font-size: 0.94rem; }

/* ---------- Articoli e pagine di archivio ---------- */
.container--narrow { max-width: 820px; }
.post-list { display: grid; gap: 1.2rem; }
.post-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.post-card__meta {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.post-card h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.post-card h2 a { text-decoration: none; color: inherit; }
.post-card h2 a:hover { color: var(--plum); }
.post-card p { font-size: 0.92rem; color: var(--muted); }
.entry-header h1 { margin-bottom: 1rem; }
.entry-media { margin: 0 0 1.8rem; }
.entry-media img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; font-size: 0.9rem; }

.pagination { margin-top: 2rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
}
.pagination .current { background: var(--plum); color: #fff; border-color: var(--plum); }

@media (max-width: 780px) {
  .post-card { grid-template-columns: 1fr; }
  .past-event__date { min-width: 0; }
}

/* ---------- Allineamenti per paragrafi e liste di WordPress ---------- */
.prose > *:first-child { margin-top: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 1.4rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--plum-050); }
.prose blockquote {
  margin: 1.6rem 0;
  padding: 0.9rem 1.3rem;
  border-left: 3px solid var(--gold);
  background: var(--plum-050);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* L'attributo hidden deve vincere sui display dei componenti */
[hidden] { display: none !important; }

/* ---------- Scheda evento (The Events Calendar) ---------- */
.event-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  align-items: center;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.event-single__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.event-single__meta svg { color: var(--plum); flex: none; }

/* ---------- Contenitore del plugin eventi ---------- */
#tribe-events-pg-template,
#tribe-events-pg-template.tribe-events-pg-template {
  background: none;
  border: 0;
  margin: 0;
  max-width: none;
  padding: 0;
  box-shadow: none;
}
.tribe-events-before-html,
.tribe-events-ajax-loading { display: none; }
