/* ==========================================================================
   AsaSi – foglio di stile del sito pubblico
   ========================================================================== */

/* ===== Design tokens ===== */
:root {
  --brand: #e5500f;          /* arancio del logo, per superfici e dettagli */
  --accent: #c1440e;         /* arancio scurito: testo e pulsanti (contrasto AA su bianco) */
  --accent-dark: #973308;
  --accent-soft: #fbeee6;
  --ink: #241f1a;
  --ink-soft: #5a5349;
  --ink-muted: #7a7266;
  --paper: #fdfbf7;
  --paper-alt: #f4eee4;
  --white: #fff;
  --line: #e4dccd;
  --ok: #1d6b3f;
  --ok-bg: #e5f2e9;
  --err: #a8231b;
  --err-bg: #fbeceb;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px -18px rgba(36, 31, 26, .4);
  --header-h: 72px;
  --container: 1160px;
  --gutter: 24px;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 1rem; line-height: 1.65;
  color: var(--ink); background: var(--paper); overflow-x: clip;
}
body.nav-open { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--accent); color: #fff;
  padding: 10px 16px; z-index: 300; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin-bottom: .6em;
}
.eyebrow--light { color: #ffd9c6; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: "→"; display: inline-block; margin-left: .3em; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--back::after { content: none; }
.link-arrow--back::before { content: "← "; }
.note { font-size: .92rem; background: var(--paper-alt); padding: 12px 16px; border-radius: var(--radius-sm); }
.optional { font-weight: 400; color: var(--ink-muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; text-decoration: none; font-family: inherit;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--light-solid { background: #fff; color: var(--accent-dark); }
.btn--light-solid:hover { background: var(--paper-alt); color: var(--accent-dark); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Header / navigazione ===== */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  /* Sfondo pieno, senza backdrop-filter: il filtro renderebbe l'header il riferimento
     del menu mobile in position: fixed, schiacciandolo dentro l'header. */
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand__logo { width: 44px; height: 44px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__mark { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.brand__tagline { font-size: .68rem; color: var(--ink-muted); line-height: 1.3; margin-top: 3px; }

.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav__list { display: flex; align-items: center; }
.primary-nav__list > li { position: relative; }
.primary-nav__list > li > a {
  display: block; padding: 10px 12px; color: var(--ink); font-weight: 600; font-size: .9rem;
  border-radius: 999px; white-space: nowrap; text-decoration: none;
}
.primary-nav__list > li > a:hover,
.primary-nav__list > li > a.is-active { background: var(--paper-alt); color: var(--accent-dark); }
.nav-cta { margin-left: 8px; flex-shrink: 0; }

/* Il pannello del sottomenu parte subito sotto la voce (padding-top come "ponte"):
   così non sparisce mentre il mouse ci si sposta sopra. */
.has-children > .submenu {
  position: absolute; top: 100%; left: -8px; min-width: 250px; padding-top: 8px;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.has-children:hover > .submenu,
.has-children:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s;
}
.submenu::before {
  content: ""; position: absolute; inset: 8px 0 0; z-index: -1;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.submenu li a {
  display: block; margin: 0 6px; padding: 9px 12px; border-radius: 6px; color: var(--ink-soft);
  font-size: .92rem; text-decoration: none;
}
.submenu li:first-child a { margin-top: 6px; }
.submenu li:last-child a { margin-bottom: 6px; }
.submenu li a:hover { background: var(--paper-alt); color: var(--accent-dark); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; padding: 0;
}
.nav-toggle__bar { display: block; height: 2px; width: 20px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  /* Menu a tutto schermo: chiuso è invisibile e non occupa spazio fuori viewport
     (niente translateX, che creava lo scroll orizzontale della pagina). */
  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 8px var(--gutter) 32px; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transition: opacity .2s; }
  .primary-nav__list { flex-direction: column; align-items: stretch; }
  .primary-nav__list > li { border-bottom: 1px solid var(--line); }
  .primary-nav__list > li > a { padding: 16px 4px; border-radius: 0; font-size: 1.05rem; }
  .primary-nav__list > li > a:hover, .primary-nav__list > li > a.is-active { background: none; }
  .has-children > .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 10px 12px; min-width: 0; transition: none;
  }
  .submenu::before { content: none; }
  .submenu li a { margin: 0; padding: 8px 4px; }
  .submenu li:first-child a, .submenu li:last-child a { margin: 0; }
  .nav-cta { margin: 24px 0 0; align-self: stretch; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .brand__tagline { display: none; }
  .brand__logo { width: 40px; height: 40px; }
}

/* ===== Hero homepage =====
   Livelli: immagine (0) → velatura (1) → contenuto (2). Prima la velatura era un
   ::after senza z-index disegnato SOPRA il testo: testo spento e pulsanti non cliccabili. */
.hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  min-height: min(720px, calc(100svh - var(--header-h)));
  display: flex; align-items: center; padding: 72px 0;
  background: #2a211a;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(20,14,10,.86) 0%, rgba(20,14,10,.66) 45%, rgba(20,14,10,.35) 100%),
    linear-gradient(0deg, rgba(20,14,10,.5), transparent 40%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr); gap: 48px; align-items: center;
}
.hero__eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffd2bd; margin-bottom: 1em; }
.hero h1 { color: #fff; margin-bottom: .45em; max-width: 16ch; }
.hero__lead { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 58ch; }
.hero .btn-row { margin-top: 28px; }
.hero .social { margin-top: 28px; }

.hero-event {
  background: rgba(253, 251, 247, .97); color: var(--ink); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 24px 48px -24px rgba(0,0,0,.6);
}
.hero-event__label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero-event__head { display: flex; gap: 16px; align-items: flex-start; }
.hero-event__title { font-size: 1.25rem; margin: 0; }
.hero-event__title a { color: var(--ink); text-decoration: none; }
.hero-event__title a:hover { color: var(--accent); }
.hero-event__meta { font-size: .92rem; margin: 14px 0 18px; }
.hero-event__actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero { min-height: 0; padding: 56px 0 40px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__shade { background: linear-gradient(180deg, rgba(20,14,10,.78), rgba(20,14,10,.7) 60%, rgba(20,14,10,.85)); }
  .hero__lead { font-size: 1.02rem; }
}

/* ===== Page hero (pagine interne) ===== */
.page-hero { padding: 64px 0 44px; background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.page-hero .lead, .page-hero .lead p { font-size: 1.08rem; max-width: 64ch; }
.page-hero .btn-row { margin-top: 20px; }

.page-hero--photo { position: relative; isolation: isolate; overflow: hidden; background: #2a211a; border-bottom: 0; padding: 88px 0 56px; }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,14,10,.84), rgba(20,14,10,.5)); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero--photo h1 { color: #fff; }
.page-hero--photo .lead { color: rgba(255,255,255,.9); }

.breadcrumb { font-size: .88rem; margin-bottom: 18px; color: var(--ink-muted); }
.breadcrumb a { color: var(--ink-soft); }

/* ===== Sezioni ===== */
.section { padding: 72px 0; }
.section--alt { background: var(--paper-alt); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.section-head--row h2 { margin-bottom: 0; }
.subhead { margin: 48px 0 20px; font-size: 1.35rem; }

.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { display: grid; gap: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-2--form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 860px) {
  .grid-3, .grid-2, .grid-2--form { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}

/* Intro homepage */
.intro__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.intro__text p { font-size: 1.08rem; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts strong { font-family: var(--font-serif); font-size: 1.9rem; color: var(--accent); line-height: 1; white-space: nowrap; }
.facts span { color: var(--ink-soft); font-size: .95rem; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.pillar { padding-top: 20px; border-top: 3px solid var(--brand); }
.pillar h3 { margin-bottom: .4em; }
.pillar p { margin: 0; }
@media (max-width: 860px) {
  .intro__grid, .pillars { grid-template-columns: 1fr; gap: 32px; }
  .pillars { margin-top: 40px; }
}

/* ===== Eventi ===== */
.date-tile {
  flex-shrink: 0; width: 64px; padding: 8px 0 7px; text-align: center; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; line-height: 1; display: flex; flex-direction: column; gap: 3px;
}
.date-tile__day { font-family: var(--font-serif); font-size: 1.65rem; font-weight: 700; }
.date-tile__month { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.date-tile__year { font-size: .7rem; opacity: .85; }
.date-tile--past { background: var(--paper-alt); color: var(--ink); border: 1px solid var(--line); }
.date-tile--past .date-tile__month { color: var(--accent-dark); }
.date-tile--lg { width: 84px; padding: 12px 0 10px; }
.date-tile--lg .date-tile__day { font-size: 2.2rem; }

.event-list { display: grid; gap: 16px; }
.event {
  position: relative; display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: border-color .15s, box-shadow .15s;
}
.event:hover { border-color: #d6c9b4; box-shadow: var(--shadow); }
.event__body { min-width: 0; flex: 1; }
.event .meta { font-size: .85rem; color: var(--accent-dark); font-weight: 600; margin-bottom: 4px; }
.event__title { font-size: 1.2rem; margin: 0 0 .35em; }
.event__title a { color: var(--ink); text-decoration: none; }
.event__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* tutta la scheda è cliccabile */
.event__title a:hover { color: var(--accent); }
.event__text { margin: 0; font-size: .95rem; }
.event__actions { margin: 14px 0 0; position: relative; z-index: 1; }
.event__media { flex: 0 0 200px; align-self: stretch; margin: -20px 0 -20px -20px; border-radius: var(--radius) 0 0 var(--radius); overflow: hidden; }
.event__media img { width: 100%; height: 100%; object-fit: cover; }
.event--has-img .date-tile { display: none; }

.event--compact { flex-direction: column; gap: 14px; height: 100%; }
.event--compact .event__media { flex: none; width: auto; margin: -20px -20px 0; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16 / 10; }
.event--compact.event--has-img .date-tile { display: none; }
.event--compact .event__title { font-size: 1.1rem; }

@media (max-width: 640px) {
  .event { padding: 16px; gap: 14px; }
  .event__media { display: none; }
  .event--has-img .date-tile { display: flex; }
  .date-tile { width: 54px; }
  .date-tile__day { font-size: 1.4rem; }
}

.tab-row { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.tab-row a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft); font-weight: 600; font-size: .92rem; text-decoration: none; background: var(--white);
}
.tab-row a:hover { border-color: var(--accent); color: var(--accent); }
.tab-row a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab-count { font-size: .75rem; background: rgba(0,0,0,.07); padding: 1px 8px; border-radius: 999px; }
.tab-row a.is-active .tab-count { background: rgba(255,255,255,.22); }

.year-index { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -12px 0 28px; font-size: .92rem; }
.year-index a { font-weight: 600; text-decoration: none; }
.year-group + .year-group { margin-top: 44px; }
.year-group__title { display: flex; align-items: baseline; gap: 12px; font-size: 1.6rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.year-group__title span { font-family: var(--font-sans); font-size: .85rem; font-weight: 500; color: var(--ink-muted); }

.empty-state { color: var(--ink-soft); padding: 32px 24px; text-align: center; border: 1px dashed #d4c8b4; border-radius: var(--radius); background: var(--white); }
.empty-state p:last-child { margin-bottom: 0; }

/* Dettaglio evento */
.event-hero { display: flex; gap: 24px; align-items: flex-start; }
.event-hero h1 { margin-bottom: .3em; }
.event-hero .lead { margin: 0; font-weight: 600; color: var(--accent-dark); }
.event-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 48px; align-items: start; }
.event-detail__img { border-radius: var(--radius); margin-bottom: 24px; width: 100%; }
.event-detail__side { position: sticky; top: calc(var(--header-h) + 20px); }
.event-facts { display: grid; gap: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.event-facts div { display: grid; grid-template-columns: 6rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.event-facts dt { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); padding-top: 2px; }
.event-facts dd { margin: 0; }
@media (max-width: 860px) {
  .event-detail { grid-template-columns: 1fr; gap: 32px; }
  .event-detail__side { position: static; }
  .event-hero { gap: 16px; }
  .date-tile--lg { width: 64px; }
  .date-tile--lg .date-tile__day { font-size: 1.65rem; }
}

/* ===== Testo lungo ===== */
.prose { max-width: 68ch; }
.prose p, .prose li { font-size: 1.04rem; }
.prose-list { list-style: none; margin: 0 0 1.2em; padding: 0; }
.prose-list li { position: relative; padding-left: 22px; margin-bottom: .45em; color: var(--ink-soft); }
.prose-list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 2px; background: var(--brand); }

/* Pagina con indice laterale */
.with-aside { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 56px; padding-bottom: 72px; }
.page-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.page-toc__title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); margin-bottom: 10px; }
.page-toc li a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.page-toc li a:hover { border-left-color: var(--accent); color: var(--accent); }
.doc-section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.doc-section:last-child { border-bottom: 0; margin-bottom: 0; }
@media (max-width: 860px) {
  .with-aside { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .page-toc { position: static; }
  .page-toc ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .page-toc li a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: var(--white); font-size: .88rem; }
}

.resource-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 20px; }
.resource { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.resource__title { font-weight: 700; font-family: var(--font-serif); font-size: 1.05rem; text-decoration: none; }
.resource a.resource__title::after { content: " ↗"; font-family: var(--font-sans); font-size: .85em; }
.resource p { margin: 6px 0 0; font-size: .9rem; }

/* ===== Persone ===== */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.people-grid--wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.person { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.avatar {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; font-size: 1rem;
}
.avatar--photo { object-fit: cover; }
.person__text { display: flex; flex-direction: column; min-width: 0; }
.person__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.person__role { font-size: .84rem; color: var(--ink-soft); line-height: 1.4; }
.person--honor { background: var(--paper); }
.person--honor .avatar { background: var(--ink); color: #fff; }
@media (max-width: 520px) { .people-grid--wide { grid-template-columns: 1fr; } }

/* ===== Rassegna stampa ===== */
.press-list { margin-top: 24px; border-top: 1px solid var(--line); }
.press-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.press-item .meta { font-size: .78rem; color: var(--accent-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.press-item h3 { margin: 0 0 6px; font-size: 1.15rem; }
.press-item h3 a { color: var(--ink); text-decoration: none; }
.press-item h3 a::after { content: " ↗"; font-family: var(--font-sans); font-size: .8em; color: var(--accent); }
.press-item h3 a:hover { color: var(--accent); }
.press-item p:last-child { margin: 0; }

/* ===== Adesione ===== */
.join-band { background: var(--accent); color: #fff; padding: 56px 0; }
.join-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.join-band h2 { color: #fff; margin-bottom: .3em; }
.join-band p { color: rgba(255,255,255,.92); max-width: 60ch; margin: 0; }
.join-band .btn--light:hover { color: var(--accent-dark); }

.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.quote-card h3 { margin-bottom: .2em; }
.quote-card__who { font-size: .9rem; margin-bottom: 16px; }
.quote-card dl { margin: 0; }
.quote-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.quote-card dt { color: var(--ink-soft); }
.quote-card dd { margin: 0; font-weight: 600; white-space: nowrap; }
.quote-card .is-main dt { color: var(--ink); font-weight: 600; }
.quote-card .is-main dd { font-family: var(--font-serif); font-size: 1.3rem; color: var(--accent); }

.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; margin: 0 0 28px; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; color: var(--ink-soft); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
}
.steps strong { color: var(--ink); }
.twint { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.twint h3 { font-size: 1.1rem; }
.twint__body { display: flex; gap: 20px; align-items: flex-start; }
.twint__body p:last-child { margin-bottom: 0; }
.twint__qr { width: 160px; height: 160px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-sm); flex-shrink: 0; background: #fff; }
@media (max-width: 520px) { .twint__body { flex-direction: column; } }

/* ===== Contatti ===== */
.contact-info { display: grid; gap: 28px; }
.contact-info h2 { font-size: .8rem; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); margin-bottom: 8px; }
.contact-big { font-family: var(--font-serif); font-size: 1.6rem; }
.contact-info address { margin-bottom: 8px; color: var(--ink-soft); }

/* ===== Social ===== */
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; background: var(--white);
}
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social--light a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: #fff; }
.social--light a:hover { background: #fff; color: var(--ink); }

/* ===== Moduli ===== */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.45rem; }
.form-grid { display: grid; gap: 16px; }
label, legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid #d7ccba; border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(229, 80, 15, .35); outline-offset: 0; border-color: var(--accent); }
.field-note { font-size: .85rem; color: var(--ink-muted); margin: 0; }
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choice__opt {
  display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 0; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
}
.choice__opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice__opt input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .95rem; }
.alert--ok { background: var(--ok-bg); color: var(--ok); }
.alert--err { background: var(--err-bg); color: var(--err); }
[data-only][hidden] { display: none; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #d8d1c5; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.footer-tagline { font-size: .88rem; color: #b6ad9d; }
.footer-title { color: #fff; font-family: var(--font-sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer p, .site-footer address { color: #c9c0b0; font-size: .9rem; }
.site-footer address { margin-bottom: 18px; }
.site-footer a { color: #e9e2d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links li { margin-bottom: 8px; font-size: .9rem; }
.footer-arrow { font-weight: 600; }
.site-footer .social a { background: transparent; border-color: #4a4238; color: #e9e2d6; text-decoration: none; }
.site-footer .social a:hover { border-color: #fff; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #3a342c; padding-top: 18px; padding-bottom: 18px; font-size: .8rem; }
.footer-bottom p { margin: 0; color: #9c9384; font-size: .8rem; }
.footer-bottom a { color: #9c9384; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

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

@media print {
  .site-header, .site-footer, .nav-toggle, .hero__img, .page-hero__img, .btn { display: none !important; }
  .hero, .page-hero--photo { color: #000; background: none; }
  .hero h1, .page-hero--photo h1 { color: #000; }
}
