/* =========================================================================
   Casa di Grazia · sistema condiviso da tutte le pagine
   Token, barra di navigazione, pulsanti, footer, sezioni della home e
   delle pagine interne. L'engine (scrollcraft.css/js) non va toccato.
   ========================================================================= */

:root {
  /* Lago al mattino: nebbia chiara, inchiostro blu lago, accento ambra-sole */
  --paper:          #EDF0EE;
  --paper-2:        #F7F8F6;
  --night:          #0F1517;
  --night-2:        #182024;

  --sc-canvas:      #EDF0EE;
  --sc-surface:     #F7F8F6;
  --sc-ink:         #142127;
  --sc-ink-soft:    #46565D;
  --sc-accent:      #A44D1A;
  --sc-accent-ink:  #FFF8F1;

  --sc-font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --sc-font-mono:    "Geist Mono", ui-monospace, monospace;

  --sc-shadow-color: 200 30% 12%;
  --bar-h: 4.25rem;
  --radius: 10px;
}

.on-dark {
  --sc-ink: #F1EEE8;
  --sc-ink-soft: #AEB6B4;
  --sc-accent: #F0A867;
  --sc-accent-ink: #1A1410;
  --sc-hairline: color-mix(in oklab, #F1EEE8 14%, transparent);
  color: var(--sc-ink);
}

body { background: var(--paper); }
body.page-home { background: var(--sc-canvas); }

.sc-display { font-weight: 600; font-variation-settings: "opsz" 96; }
.sc-label { font-family: var(--sc-font-text); font-weight: 500; letter-spacing: 0.12em; }

/* ------------------------------------------------------------ skip link */
.skip {
  position: fixed; left: var(--sc-4); top: var(--sc-4); z-index: 200;
  padding: var(--sc-3) var(--sc-4); background: var(--sc-ink); color: var(--paper);
  border-radius: var(--radius); transform: translateY(-200%);
  transition: transform var(--sc-d-fast) var(--sc-ease-out);
}
.skip:focus-visible { transform: none; }

/* ------------------------------------------------------------- top bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  height: var(--bar-h);
  display: flex; align-items: center; gap: var(--sc-5);
  padding-inline: var(--sc-gutter);
  color: var(--sc-ink);
  background: color-mix(in oklab, var(--paper) 0%, transparent);
  border-bottom: 1px solid transparent;
  transition: background-color var(--sc-d-base) var(--sc-ease-out),
              border-color var(--sc-d-base) var(--sc-ease-out);
}
.bar.is-solid, .bar--solid {
  background: var(--paper);
  border-bottom-color: color-mix(in oklab, #142127 10%, transparent);
}
.bar__brand {
  display: inline-flex; align-items: center; gap: var(--sc-3);
  text-decoration: none; margin-right: auto; min-height: 44px;
}
.bar__brand img { width: 2.1rem; height: auto; }
.bar__brand span {
  font-family: var(--sc-font-display); font-weight: 600; font-size: 1.12rem;
  letter-spacing: var(--sc-track-snug); white-space: nowrap;
}
.bar__nav ul { display: flex; gap: clamp(0.6rem, 1.4vw, 1.6rem); list-style: none; margin: 0; padding: 0; }
.bar__nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--sc-ink-soft);
  transition: color var(--sc-d-fast) var(--sc-ease-out);
}
.bar__nav a[aria-current="page"] { color: var(--sc-ink); text-decoration: underline; text-decoration-color: var(--sc-accent); text-decoration-thickness: 2px; text-underline-offset: 0.5em; }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover { color: var(--sc-ink); } }

.social { display: flex; gap: var(--sc-1); list-style: none; margin: 0; padding: 0; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--sc-ink-soft); transition: color var(--sc-d-fast) var(--sc-ease-out), background-color var(--sc-d-fast) var(--sc-ease-out);
}
.social svg { width: 1.2rem; height: 1.2rem; }
@media (hover: hover) and (pointer: fine) {
  .social a:hover { color: var(--sc-ink); background: color-mix(in oklab, var(--sc-ink) 8%, transparent); }
}

.bar__menu {
  display: none; min-height: 44px; padding: 0 var(--sc-4);
  border: 1px solid color-mix(in oklab, var(--sc-ink) 24%, transparent); border-radius: 999px;
  background: transparent; cursor: pointer;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}
.bar__menu:active { transform: scale(0.97); }

@media (max-width: 1080px) {
  .bar__nav, .bar > .social { display: none; }
  .bar__menu { display: inline-flex; align-items: center; }
}

/* full-screen menu for phones */
.drawer {
  position: fixed; inset: 0; z-index: 120; background: var(--paper); color: #142127;
  display: flex; flex-direction: column; padding: var(--sc-4) var(--sc-gutter) var(--sc-7);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--sc-d-base) var(--sc-ease-out), transform var(--sc-d-base) var(--sc-ease-out), visibility 0s linear var(--sc-d-base);
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; min-height: calc(var(--bar-h) - var(--sc-4)); }
.drawer ul.drawer__links { list-style: none; margin: var(--sc-6) 0 auto; padding: 0; }
.drawer__links a {
  display: block; padding: var(--sc-3) 0; text-decoration: none;
  font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1.9rem, 8vw, 2.6rem);
  letter-spacing: var(--sc-track-tight); line-height: 1.1;
}
.drawer__links a[aria-current="page"] { color: var(--sc-accent); }
.drawer__foot { display: grid; gap: var(--sc-3); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.drawer__foot a { color: #142127; }
@media (prefers-reduced-motion: reduce) { .drawer { transform: none; } }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sc-2);
  min-height: 48px; padding: 0 var(--sc-5);
  border-radius: 999px; border: 1px solid transparent;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--sc-e1);
  transition: transform 140ms var(--sc-ease-out), background-color var(--sc-d-fast) var(--sc-ease-out), box-shadow var(--sc-d-fast) var(--sc-ease-out);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 1rem; height: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: color-mix(in oklab, var(--sc-accent) 86%, #000); box-shadow: var(--sc-e2); }
  .btn--quiet:hover { background: color-mix(in oklab, var(--sc-ink) 8%, transparent); }
}
.btn--quiet { background: transparent; color: var(--sc-ink); border-color: color-mix(in oklab, var(--sc-ink) 30%, transparent); box-shadow: none; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sc-2); min-height: 44px;
  font-weight: 600; color: var(--sc-ink); text-decoration: underline;
  text-decoration-color: var(--sc-accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em;
}
.link-arrow::after { content: "→"; transition: transform var(--sc-d-fast) var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover::after { transform: translateX(3px); } }

/* =======================================================================
   HOME
   ======================================================================= */

/* --- 1 · Lago: piani indipendenti ------------------------------------- */
.hero .sc-stage, .hero [data-sc-stage] { background: #DCE4E4; }
.hero__plate, .hero__plate img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none;
}
.hero__plate {
  transform-origin: 28% 12%;
  transform: scale(calc(1.1 + var(--sc-p, 0) * 0.07)) translate3d(0, calc(var(--sc-p, 0) * 2.5vh), 0);
}
.hero__plate img { object-position: 40% 50%; }
.hero__sun {
  position: absolute; left: 24%; top: 36%; width: 70vmax; height: 70vmax; translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(255 236 200 / 0.55), rgb(255 226 180 / 0.18) 45%, transparent 72%);
  transform: scale(calc(0.9 + var(--sc-p, 0) * 0.25));
  pointer-events: none;
}
.hero__mist {
  position: absolute; inset: auto 0 0 0; height: 62%;
  background: linear-gradient(to top, rgb(236 238 232 / 0.55), rgb(236 238 232 / 0.18) 45%, transparent);
  transform: translate3d(0, calc(var(--sc-p, 0) * -5vh), 0);
  pointer-events: none;
}
.hero__copy {
  position: absolute; z-index: 5;
  left: var(--sc-gutter); right: var(--sc-gutter); top: calc(var(--bar-h) + 5vh);
  max-width: 64rem; margin-inline: auto; text-align: center;
}
.hero__wash {
  position: absolute; z-index: 4; left: 10vw; top: 0; width: 80vw; height: 70vh; pointer-events: none;
  background: radial-gradient(closest-side, rgb(236 239 234 / 0.72), rgb(236 239 234 / 0.38) 55%, transparent 100%);
  opacity: calc(1 - var(--sc-p, 0) * 1.6);
}
.hero__copy-inner { transform: translate3d(0, calc(var(--sc-p, 0) * -8vh), 0); }
.hero__eyebrow { color: #1B2A31; margin: 0 0 var(--sc-4); text-wrap: balance; }
.hero h1 {
  font-size: clamp(4.2rem, 1.6rem + 8.6vw, 10.5rem); line-height: 0.95;
  color: #10202A; margin: 0; white-space: nowrap;
}
.hero__lede { margin: var(--sc-5) 0 var(--sc-6); font-size: var(--sc-t-lg); color: #22343C; max-width: 30ch; line-height: 1.45; margin-inline: auto; text-wrap: balance; }
.hero__reeds {
  position: absolute; z-index: 6; left: 50%; top: 48vh;
  width: max(100vw, 1180px); max-width: none; height: auto;
  transform-origin: 50% 100%;
  transform: translate3d(-50%, calc(var(--sc-p, 0) * 30vh), 0) scale(calc(1 + var(--sc-p, 0) * 0.55));
  pointer-events: none;
}
.hero__reeds img { width: 100%; height: auto; max-width: none; }
.hero__haze {
  position: absolute; inset: 0; z-index: 7; pointer-events: none;
  background: radial-gradient(60% 40% at 22% 38%, rgb(255 240 214 / 0.28), transparent 70%);
  opacity: calc(1 - var(--sc-p, 0) * 0.7);
}
.hero__floor {
  position: absolute; inset: auto 0 0 0; height: 16vh; z-index: 8; pointer-events: none;
  background: linear-gradient(to top, var(--paper), transparent);
}

@media (max-width: 860px) {
  .hero__copy { top: calc(var(--bar-h) + 4vh); }
  .hero h1 { font-size: clamp(3.2rem, 16.5vw, 5.4rem); white-space: normal; line-height: 0.95; }
  .hero__wash { left: -20vw; width: 140vw; height: 62svh; }
  .hero__lede { font-size: 1.08rem; margin-block: var(--sc-4) var(--sc-5); margin-inline: auto; }
  .hero__reeds { top: 50svh; width: 230vw; }
  .hero__sun { left: 50%; top: 40%; }
}

/* --- 2 · I nostri incontri (centrati, domenica e giovedì in linea) ---- */
.meet { background: var(--paper); position: relative; z-index: 2; padding-block: var(--sc-8) var(--sc-7); }
.meet__grid { display: grid; justify-items: center; text-align: center; gap: var(--sc-7); }
.meet h2 { font-size: var(--sc-t-3xl); }
.meet__intro { margin-top: var(--sc-4); margin-inline: auto; }
.meet__grid > div { width: 100%; }
.times {
  list-style: none; margin: 0 auto; padding: 0; max-width: 52rem;
  display: grid; grid-template-columns: 1fr 1fr;
}
.times li {
  display: flex; flex-direction: column; align-items: center; gap: var(--sc-2);
  padding: var(--sc-5) var(--sc-5);
}
.times li + li { border-left: 1px solid color-mix(in oklab, var(--sc-ink) 16%, transparent); }
.times__day { font-size: var(--sc-t-lg); font-weight: 500; }
.times__what { display: block; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); letter-spacing: 0.08em; text-transform: uppercase; }
.times__hour {
  font-family: var(--sc-font-display); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(3rem, 2rem + 4.5vw, 6rem); line-height: 0.9; letter-spacing: var(--sc-track-tight); color: var(--sc-ink);
}
.meet__where { margin-top: var(--sc-6); display: flex; justify-content: center; font-size: var(--sc-t-base); }
.meet__where a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 560px) {
  .times li { padding-inline: var(--sc-2); }
  .times__hour { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .times__what { font-size: 0.72rem; letter-spacing: 0.06em; }
}

/* silenzio voluto prima delle porte: dal chiaro della sala d'ingresso al
   buio, passando per un crepuscolo caldo, con passaggi addolciti */
.hush {
  height: 85vh;
  background: linear-gradient(to bottom,
    #EDF0EE 0%, #ECEDE9 8%, #E8E6DF 16%, #E2DBCF 24%, #D9CDBC 32%, #CDBCA6 40%,
    #BCA78E 48%, #A89277 56%, #937D63 64%, #7D6952 72%, #6A5844 80%, #5B4B3A 88%, #534432 100%);
}
@media (max-width: 860px) { .hush { height: 65vh; } }
/* la porta nasce dal colore della fascia sopra: nessun bordo netto */
.threshold__fade {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(to bottom, #534432 0%, rgb(83 68 50 / 0.85) 12%, rgb(83 68 50 / 0.5) 28%, rgb(83 68 50 / 0.18) 44%, transparent 60%);
  opacity: clamp(0, 1 - var(--open) * 2.2, 1);
}

/* --- 3 · La soglia (picco) -------------------------------------------- */
.threshold { --open: clamp(0, (var(--sc-p, 0) - 0.06) / 0.36, 1); }
.threshold [data-sc-stage] { background: var(--night); }
.threshold__hall {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none;
  transform: scale(calc(1.16 - var(--open) * 0.16));
  filter: brightness(calc(0.55 + var(--open) * 0.45));
}
.threshold__door {
  position: absolute; inset: 0; z-index: 2;
  background: url("assets/img/porte.jpg") center / cover no-repeat;
}
.threshold__door--l { clip-path: inset(0 50% 0 0); transform: translate3d(calc(var(--open) * -62%), 0, 0) scale(calc(1 + var(--open) * 0.12)); transform-origin: 0% 50%; }
.threshold__door--r { clip-path: inset(0 0 0 50%); transform: translate3d(calc(var(--open) * 62%), 0, 0) scale(calc(1 + var(--open) * 0.12)); transform-origin: 100% 50%; }
.threshold__beam {
  position: absolute; z-index: 3; inset: 0; pointer-events: none;
  background: radial-gradient(28% 70% at 50% 50%, rgb(255 214 150 / 0.55), transparent 70%);
  opacity: calc(var(--open) * (1 - var(--open)) * 3.2);
}
.threshold__copy { z-index: 10; }
.threshold__copy h2 { font-size: var(--sc-t-3xl); margin: 0; }
.threshold__copy .sc-lede { margin-top: var(--sc-4); }
.threshold__copy .btn { margin-top: var(--sc-6); }
.threshold__first p {
  margin: 0; font-family: var(--sc-font-display); font-weight: 600;
  font-size: var(--sc-t-3xl); line-height: 1; letter-spacing: var(--sc-track-tight);
}

/* the signature move: your seat */
.seat {
  position: absolute; z-index: 6; left: 0; top: 0; width: 0; height: 0;
  --lit: 0;
  pointer-events: none;
}
.seat__glow {
  position: absolute; left: 0; top: 0; width: 46vmin; height: 46vmin; translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(255 206 140 / 0.62), rgb(255 190 120 / 0.22) 52%, transparent 74%);
  mix-blend-mode: screen;
  opacity: var(--lit);
  transform: scale(calc(0.7 + var(--lit) * 0.3));
}
.seat__ring {
  position: absolute; left: 0; top: 0; width: 15vmin; height: 15vmin; translate: -50% -50%;
  border: 1.5px solid rgb(255 220 170 / 0.85); border-radius: 50%;
  opacity: var(--lit);
  transform: scale(calc(1.25 - var(--lit) * 0.25));
}
.seat__tag {
  position: absolute; left: 0; bottom: calc(7.5vmin + 0.5rem);
  translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: var(--sc-2);
  opacity: var(--lit);
  pointer-events: auto;
}
.seat__tag a {
  display: inline-flex; align-items: center; gap: var(--sc-2); min-height: 44px; padding: 0 var(--sc-4);
  background: #F1EEE8; color: #142127; border-radius: 999px; white-space: nowrap;
  font-weight: 600; font-size: 0.9rem; text-decoration: none; box-shadow: var(--sc-e2);
}
.seat__tag a span { font-variant-numeric: tabular-nums; color: #A44D1A; }
.seat__tag::after { content: ""; width: 1px; height: 4.5vmin; background: rgb(241 238 232 / 0.8); }
.seat[data-off] .seat__tag { pointer-events: none; }

@media (max-width: 860px) {
  .threshold__copy h2 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .seat__tag a { font-size: 0.82rem; }
}

/* --- 4 · Small groups -------------------------------------------------- */
.groups { position: relative; z-index: 2; padding-block: var(--sc-9); }
.groups__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--sc-8); align-items: center; }
.groups h2 { font-size: var(--sc-t-3xl); }
.groups__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3.2; box-shadow: var(--sc-e3); }
.groups__media img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; max-width: none; }
.groups .link-arrow { margin-top: var(--sc-5); }
@media (max-width: 860px) { .groups__grid { grid-template-columns: 1fr; gap: var(--sc-6); } .groups__media { order: -1; } }

/* --- 5 · I nostri valori (rail) --------------------------------------- */
.values [data-sc-stage] { background: var(--paper); display: flex; align-items: center; }
.values__rail { gap: clamp(1.25rem, 3vw, 3rem); padding-inline: var(--sc-gutter); align-items: stretch; }
.values__lead { flex: 0 0 clamp(17rem, 30vw, 26rem); align-self: center; }
.values__lead h2 { font-size: var(--sc-t-3xl); }
.value {
  flex: 0 0 clamp(17rem, 30vw, 25rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--sc-6);
  min-height: min(62vh, 30rem);
  padding: var(--sc-6) var(--sc-5) var(--sc-5);
  border-top: 2px solid var(--sc-ink);
}
.value__n { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); line-height: 0.9; color: var(--sc-accent); letter-spacing: var(--sc-track-tight); }
.value h3 { font-family: var(--sc-font-display); font-size: var(--sc-t-xl); font-weight: 600; line-height: 1.05; letter-spacing: var(--sc-track-snug); margin: 0 0 var(--sc-4); text-transform: uppercase; }
.value blockquote { margin: 0; font-size: var(--sc-t-lg); line-height: 1.4; }
.value blockquote + p { margin: var(--sc-3) 0 0; color: var(--sc-ink-soft); }
.values__end { flex: 0 0 clamp(16rem, 26vw, 22rem); align-self: center; }
.values__end p { font-size: var(--sc-t-lg); line-height: 1.4; margin: 0 0 var(--sc-4); }
@media (prefers-reduced-motion: no-preference) {
  .value { opacity: clamp(0.55, (var(--sc-p, 0) * 9 - var(--i, 0) * 1.1) + 0.6, 1); }
}
@media (max-width: 860px) {
  .value { flex-basis: 78vw; min-height: 56svh; }
  .values__lead, .values__end { flex-basis: 78vw; }
}

/* --- 6 · Il team -------------------------------------------------------- */
.team { background: var(--paper); position: relative; z-index: 2; padding-block: var(--sc-9) var(--sc-8); }
.team__head { display: flex; justify-content: space-between; align-items: end; gap: var(--sc-5); flex-wrap: wrap; margin-bottom: var(--sc-7); }
.team__head h2 { font-size: var(--sc-t-3xl); }
.team__strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(0.5rem, 1.2vw, 1.25rem); }
.team__strip figure { margin: 0; }
.team__strip figure:nth-child(even) { margin-top: var(--sc-7); }
.team__photo { overflow: hidden; border-radius: var(--radius); aspect-ratio: 2 / 3; background: #d9dcd8; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__strip figcaption { margin-top: var(--sc-3); }
.team__strip strong { display: block; font-weight: 600; font-size: var(--sc-t-sm); line-height: 1.3; }
.team__strip span { display: block; color: var(--sc-ink-soft); font-size: var(--sc-t-xs); line-height: 1.35; margin-top: 2px; }
@media (max-width: 960px) {
  .team__strip { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--sc-6); }
  .team__strip figure:nth-child(even) { margin-top: 0; }
}
@media (max-width: 560px) { .team__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- 7 · Chiusura ------------------------------------------------------ */
.close [data-sc-stage] { background: var(--night); display: flex; flex-direction: column; }
.close__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.close__img img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.close__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(15 21 23 / 0.9) 0%, rgb(15 21 23 / 0.72) 24%, rgb(15 21 23 / 0.3) 44%, transparent 60%);
}
.close__inner { position: relative; z-index: 3; margin-top: auto; padding: 0 var(--sc-gutter) var(--sc-8); display: grid; grid-template-columns: minmax(0, 1.2fr) auto; align-items: end; gap: var(--sc-6); }
.close h2 { font-size: var(--sc-t-4xl); margin: 0; }
@media (max-width: 860px) {
  .close__inner { grid-template-columns: 1fr; }
  .close h2 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
}

/* =======================================================================
   FOOTER (tutte le pagine)
   ======================================================================= */
.foot { position: relative; z-index: 3; background: var(--night); color: #F1EEE8; padding: var(--sc-7) var(--sc-gutter) var(--sc-6); }
.foot--in-stage { background: rgb(15 21 23 / 0.94); padding-block: var(--sc-5); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sc-4) var(--sc-6); }
.foot__brand { display: flex; align-items: center; gap: var(--sc-3); }
.foot__brand img { width: 2rem; height: auto; }
.foot__brand strong { font-family: var(--sc-font-display); font-weight: 600; font-size: 1.05rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0 var(--sc-5); list-style: none; padding: 0; margin: 0; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: #C9CFCD; }
.foot .social a { color: #C9CFCD; }
@media (hover: hover) and (pointer: fine) { .foot__nav a:hover, .foot .social a:hover { color: #fff; } .foot .social a:hover { background: rgb(255 255 255 / 0.08); } }
.foot__legal { margin: var(--sc-5) 0 0; padding-top: var(--sc-4); border-top: 1px solid rgb(241 238 232 / 0.14); font-size: var(--sc-t-xs); color: #B9C0BE; line-height: 1.7; }
.foot__legal a { color: inherit; }

/* =======================================================================
   PAGINE INTERNE
   ======================================================================= */
.page main { padding-top: var(--bar-h); }
.phead { padding-block: var(--sc-9) var(--sc-7); }
.phead h1 { font-size: var(--sc-t-4xl); }
.phead .sc-lede { margin-top: var(--sc-5); }
.phead__eyebrow { margin: 0 0 var(--sc-4); }

.band { padding-block: var(--sc-8); }
.band--night { background: var(--night); }
.band + .band { padding-top: 0; }
.band--night + .band, .band + .band--night { padding-top: var(--sc-8); }

/* chi siamo */
.creed { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sc-7); align-items: end; }
.creed blockquote { margin: 0; }
.creed__big { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-4xl); line-height: 0.98; letter-spacing: var(--sc-track-tight); margin: 0; text-wrap: balance; }
.creed__small { font-size: var(--sc-t-xl); line-height: 1.3; margin: 0; text-wrap: pretty; }
@media (max-width: 860px) { .creed { grid-template-columns: 1fr; } .creed__big { font-size: clamp(2.6rem, 11vw, 3.6rem); } }

.people { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sc-7) clamp(0.75rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.people li { grid-column: span 2; }
.people li:nth-child(1), .people li:nth-child(2) { grid-column: span 6; }
.people li:nth-child(1) .people__photo, .people li:nth-child(2) .people__photo { aspect-ratio: 4 / 5; }
.people__photo { overflow: hidden; border-radius: var(--radius); aspect-ratio: 2 / 3; background: #d9dcd8; }
.people__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.people h3 { margin: var(--sc-4) 0 0; font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-xl); letter-spacing: var(--sc-track-snug); line-height: 1.1; }
.people p { margin: var(--sc-1) 0 0; color: var(--sc-ink-soft); }
.people li:nth-child(n+3) h3 { font-size: var(--sc-t-lg); }
@media (max-width: 860px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people li, .people li:nth-child(1), .people li:nth-child(2) { grid-column: span 1; }
  .people li:nth-child(1) .people__photo, .people li:nth-child(2) .people__photo { aspect-ratio: 2 / 3; }
}

/* la prima volta */
.visit-hero { position: relative; min-height: min(78vh, 46rem); display: flex; align-items: flex-end; overflow: hidden; background: var(--night); }
.visit-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.visit-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgb(15 21 23 / 0.9), rgb(15 21 23 / 0.45) 38%, transparent 70%); }
.visit-hero .sc-wrap { position: relative; z-index: 2; padding-bottom: var(--sc-8); }
.visit-hero h1 { font-size: var(--sc-t-4xl); }
.visit-hero .sc-lede { margin-top: var(--sc-4); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sc-8); margin: 0; }
.facts div { padding: var(--sc-6) 0; border-top: 1px solid color-mix(in oklab, var(--sc-ink) 16%, transparent); }
.facts dt { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-xl); letter-spacing: var(--sc-track-snug); line-height: 1.15; }
.facts dd { margin: var(--sc-3) 0 0; color: var(--sc-ink-soft); max-width: 46ch; }
.facts dd strong { color: var(--sc-ink); font-weight: 600; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

.map { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sc-7); align-items: stretch; }
.map__frame { border-radius: var(--radius); overflow: hidden; min-height: 22rem; background: #d9dcd8; box-shadow: var(--sc-e2); }
.map__frame iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; display: block; }
.map address { font-style: normal; font-size: var(--sc-t-lg); line-height: 1.5; }
.map h2 { font-size: var(--sc-t-2xl); margin-bottom: var(--sc-4); }
.map .sc-stack .btn { margin-top: var(--sc-5); }
@media (max-width: 860px) { .map { grid-template-columns: 1fr; } }

/* eventi */
/* eventi: vedi in fondo */

/* donazioni */
.give { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--sc-8); align-items: start; }
.give h2 { font-size: var(--sc-t-3xl); }
.bank { margin: 0; background: var(--paper-2); border-radius: var(--radius); box-shadow: var(--sc-e2), var(--sc-edge); padding: var(--sc-3) var(--sc-6); }
.bank div { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; align-items: center; gap: var(--sc-4); padding: var(--sc-4) 0; border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 12%, transparent); }
.bank div:last-child { border-bottom: 0; }
.bank dt { font-size: var(--sc-t-xs); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-ink-soft); }
.bank dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.bank dd.mono { font-family: var(--sc-font-mono); font-size: 0.98rem; letter-spacing: 0.02em; }
.copy {
  min-height: 44px; padding: 0 var(--sc-4); border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in oklab, var(--sc-ink) 26%, transparent); background: transparent; color: var(--sc-ink);
  font-size: var(--sc-t-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  transition: background-color var(--sc-d-fast) var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.copy:active { transform: scale(0.97); }
.copy.is-done { background: var(--sc-ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .copy:hover { background: color-mix(in oklab, var(--sc-ink) 8%, transparent); } .copy.is-done:hover { background: var(--sc-ink); } }
.bank div.no-copy { grid-template-columns: 9rem minmax(0, 1fr); }
.give__dona { margin-top: var(--sc-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-4); }
.give__note { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
@media (max-width: 860px) {
  .give { grid-template-columns: 1fr; gap: var(--sc-6); }
  .bank { padding-inline: var(--sc-4); }
  .bank div { grid-template-columns: 1fr auto; }
  .bank div.no-copy { grid-template-columns: 1fr; }
  .bank dt { grid-column: 1 / -1; }
}

/* contatti */
.reach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sc-8); align-items: start; }
.reach__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in oklab, var(--sc-ink) 16%, transparent); }
.reach__list li { border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 16%, transparent); }
.reach__list a, .reach__list .reach__static {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--sc-4); align-items: baseline;
  padding: var(--sc-5) 0; text-decoration: none; min-height: 44px;
}
.reach__list small { font-size: var(--sc-t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-ink-soft); }
.reach__list span { font-size: var(--sc-t-lg); font-weight: 500; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .reach__list a:hover span { text-decoration: underline; text-decoration-color: var(--sc-accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; } }
.reach__social { display: flex; flex-wrap: wrap; gap: var(--sc-3); margin-top: var(--sc-6); }
.reach__social a { display: inline-flex; align-items: center; gap: var(--sc-2); }
@media (max-width: 860px) { .reach { grid-template-columns: 1fr; gap: var(--sc-6); } .reach__list a, .reach__list .reach__static { grid-template-columns: 1fr; gap: var(--sc-1); } }

.cta-band { background: var(--night); padding-block: var(--sc-8); }
.cta-band__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sc-5); }
.cta-band h2 { font-size: var(--sc-t-2xl); max-width: 22ch; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 860px) { .threshold__hall { object-position: 36% 50%; } }

/* soglia: scrim mirati (sibling, non figli del testo) */
.threshold__shade {
  position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: linear-gradient(to top, rgb(15 21 23 / 0.94) 0%, rgb(15 21 23 / 0.78) 22%, rgb(15 21 23 / 0.3) 40%, transparent 55%);
  opacity: clamp(0, (0.4 - var(--sc-p, 0)) / 0.08, 1);
}
.threshold__col {
  position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: linear-gradient(to left, rgb(15 21 23 / 0.95) 0%, rgb(15 21 23 / 0.86) 30%, rgb(15 21 23 / 0.45) 46%, transparent 60%);
  opacity: clamp(0, (var(--sc-p, 0) - 0.5) / 0.14, 1);
}
.threshold__last { top: 50%; bottom: auto; translate: 0 -50%; max-width: min(34rem, 40vw); }
@media (max-width: 860px) {
  .threshold__col { background: linear-gradient(to bottom, rgb(15 21 23 / 0.95) 0%, rgb(15 21 23 / 0.86) 34%, rgb(15 21 23 / 0.4) 50%, transparent 60%); }
  .threshold__last { top: calc(var(--bar-h) + 1.5rem); translate: none; max-width: none; }
  .threshold__last .sc-lede { font-size: 1.05rem; }
}

/* ------------------------------------------------ meno movimento ------
   Niente posizioni che cambiano: la hero resta ferma, la sala è già aperta
   (le porte non ci sono), i valori diventano una griglia da leggere. */
@media (prefers-reduced-motion: reduce) {
  .hero__plate, .hero__mist, .hero__copy-inner, .hero__sun { transform: none !important; }
  .hero__reeds { transform: translate3d(-50%, 0, 0) !important; }
  .threshold__door, .threshold__beam, .threshold__fade { display: none; }
  .threshold__hall { transform: none; filter: none; }
  .values { height: auto !important; }
  .values [data-sc-stage] { position: relative; height: auto; overflow: visible; display: block; padding-block: var(--sc-9); }
  .values__rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--sc-6); transform: none !important; }
  .value, .values__lead, .values__end { min-height: 0; flex-basis: auto; }
}

.hero__br { display: none; }
@media (max-width: 860px) { .hero__sep { display: none; } .hero__br { display: inline; } }

/* apertura essenziale: solo nome e invito */
.hero__copy-inner .btn { margin-top: var(--sc-6); }
@media (max-width: 860px) { .hero__copy-inner .btn { margin-top: var(--sc-5); } }

/* soglia: resta solo la frase sul culto */
.threshold__last .sc-lede { margin-top: var(--sc-5); font-size: clamp(1.35rem, 1rem + 1.1vw, 1.9rem); line-height: 1.4; text-wrap: pretty; }
@media (max-width: 860px) { .threshold__last .sc-lede { font-size: 1.2rem; } }
.threshold__last { text-align: left; }
@media (max-width: 560px) {
  .meet__where .link-arrow { display: inline-block; text-align: center; text-wrap: balance; max-width: 18rem; line-height: 1.6; padding-block: 0.4rem; }
  .meet__where .link-arrow::after { display: inline-block; margin-left: 0.35em; }
}
@media (prefers-reduced-motion: reduce) { .hero__wash { opacity: 1 !important; } }


/* ------------------------------------------------------------- EVENTI --
   Il prossimo incontro (dal vivo), la settimana, i social sul tramonto. */
.next { padding-bottom: var(--sc-8); }
.next h1 { margin: 0; }
.next__card {
  margin-top: var(--sc-7); position: relative; overflow: hidden;
  border-radius: calc(var(--radius) * 2);
  background: linear-gradient(135deg, #FBF7F0 0%, #F3E7D6 100%);
  box-shadow: var(--sc-e2), inset 0 0 0 1px rgb(164 77 26 / 0.12);
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  display: grid; gap: var(--sc-2);
}
.next__card::after {
  content: ""; position: absolute; right: -12%; top: -40%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(240 168 103 / 0.45), transparent);
  pointer-events: none;
}
.next__card > * { position: relative; z-index: 1; margin: 0; }
.next__rel {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--sc-t-sm); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #8A3E12;
}
.next__rel::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: currentColor; }
.next__card.is-live .next__rel::before { animation: pulse 1.6s var(--sc-ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(164 77 26 / 0.5); } 100% { box-shadow: 0 0 0 0.7em rgb(164 77 26 / 0); } }
.next__date {
  font-family: var(--sc-font-display); font-weight: 600; letter-spacing: var(--sc-track-tight);
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4.4rem); line-height: 1.02; text-wrap: balance; color: #10202A;
}
.next__what { font-size: var(--sc-t-lg); color: #3A4B52; }
.next__actions { margin-top: var(--sc-5) !important; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-3) var(--sc-6); }

.week-band { padding-top: var(--sc-6); }
.week-band h2 { margin: 0 0 var(--sc-6); }
.week {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sc-2);
}
.week__day {
  min-height: 15rem; border-radius: var(--radius); padding: var(--sc-4);
  display: flex; flex-direction: column; gap: var(--sc-2);
  background: color-mix(in oklab, var(--sc-ink) 4%, transparent);
  color: var(--sc-ink-soft);
}
.week__name abbr { text-decoration: none; font-size: var(--sc-t-sm); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.week__day.is-on { background: var(--night); color: #F1EEE8; grid-column: span 1; }
.week__day.is-next { background: #A44D1A; }
.week__day.is-on .week__name abbr { color: #F0A867; }
.week__day.is-next .week__name abbr { color: #FFE2C7; }
.week__time { margin-top: auto; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1.6rem, 0.9rem + 1.6vw, 2.6rem); line-height: 1; letter-spacing: var(--sc-track-tight); font-variant-numeric: tabular-nums; }
.week__what { font-size: var(--sc-t-sm); line-height: 1.35; }
.week__add {
  margin-top: var(--sc-3); align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; gap: 0.4em;
  color: inherit; font-size: 0.8rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.3em;
  text-decoration-color: rgb(241 238 232 / 0.45);
}
.week__add svg { width: 1.1rem; height: 1.1rem; flex: none; }
.week__groups {
  margin: var(--sc-5) 0 0; padding: var(--sc-4) var(--sc-5); border-radius: var(--radius);
  border: 1px dashed color-mix(in oklab, var(--sc-ink) 28%, transparent);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-2) var(--sc-4);
}
.week__groups .link-arrow { margin-left: auto; }
@media (max-width: 860px) {
  .week { grid-template-columns: 1fr; gap: 6px; }
  .week__day { min-height: 0; padding: 0.55rem var(--sc-4); flex-direction: row; align-items: center; }
  .week__day.is-on { flex-wrap: wrap; gap: var(--sc-1) var(--sc-4); padding: var(--sc-4); }
  .week__day.is-on .week__name { flex-basis: 100%; }
  .week__day.is-on .week__time { margin-top: 0; }
  .week__day.is-on .week__what { flex: 1 1 8rem; }
  .week__day.is-on .week__add { margin-top: 0; }
  .week__groups .link-arrow { margin-left: 0; }
}

.social-band { position: relative; overflow: hidden; background: var(--night); padding-block: clamp(5rem, 3rem + 8vw, 10rem); }
.social-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.social-band__scrim { position: absolute; inset: 0; background: linear-gradient(to right, rgb(15 21 23 / 0.88), rgb(15 21 23 / 0.62) 55%, rgb(15 21 23 / 0.4)); }
.social-band__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--sc-7); align-items: center; }
.social-band h2 { font-size: var(--sc-t-3xl); }
.social-band .sc-lede { margin-top: var(--sc-3); }
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sc-3); }
.channels a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sc-4);
  min-height: 5rem; padding: var(--sc-4) var(--sc-5); border-radius: calc(var(--radius) * 1.5);
  background: rgb(241 238 232 / 0.1); border: 1px solid rgb(241 238 232 / 0.22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #F1EEE8; text-decoration: none;
  transition: background-color var(--sc-d-fast) var(--sc-ease-out), transform 140ms var(--sc-ease-out);
}
.channels a:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .channels a:hover { background: rgb(241 238 232 / 0.18); } }
.channels svg { width: 1.8rem; height: 1.8rem; }
.channels__name { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-xl); letter-spacing: var(--sc-track-tight); }
.channels__handle { color: #CBD2D0; font-size: var(--sc-t-sm); }
.channels a::after { content: "→"; grid-column: 3; display: none; }
@media (max-width: 860px) {
  .social-band__inner { grid-template-columns: 1fr; }
  .social-band__scrim { background: rgb(15 21 23 / 0.72); }
  .channels a { grid-template-columns: auto 1fr; }
  .channels a { row-gap: 0.15rem; }
  .channels__handle { grid-column: 2; }
}
.week__what { min-height: 2.7em; }
@media (min-width: 861px) { .week__day { min-height: 12.5rem; } }
@media (max-width: 860px) { .week__what { min-height: 0; } }
