/* ==========================================================================
   Oratorio San Giorgio — Tema "pulito" (v2)
   Caricato DOPO site.css. Colori neutri chiari, superfici bianche, ombre morbide,
   pillole, header in vetro. Le regole globali (token, header, footer, bottoni,
   card) valgono per tutto il sito; i componenti nuovi della Home sono sotto .home.
   ========================================================================== */

:root {
  --cream: #fbfbfd;
  --cream-2: #f5f5f7;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #86868b;
  --line: #e5e5ea;
  --wine-soft: #eaf1fb;
  --blue-bright: #2f6fc4;
  --orange-ink: #b4570e;      /* arancio leggibile su bianco (AA) */
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px -6px rgba(0,0,0,.08);
  --shadow: 0 2px 6px rgba(0,0,0,.04), 0 24px 48px -20px rgba(0,0,0,.18);
  --shadow-lg: 0 50px 90px -40px rgba(10,20,40,.35);
  --ease-out: cubic-bezier(.2,.8,.2,1);
}

body { background: var(--cream); color: var(--ink); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.025em; color: var(--ink); }

.text-grad {
  background: linear-gradient(100deg, #f0983e 0%, #ef7a6b 42%, #2f6fc4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Bottoni e link ---------- */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: -.005em; }
.btn--primary { background: var(--wine); box-shadow: 0 10px 22px -12px rgba(29,78,137,.8); }
.btn--primary:hover { background: #163f70; }
.btn--ghost { background: #fff; border-color: var(--line); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn--white { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); }
.btn--white:hover { background: #fff; color: var(--wine); transform: translateY(-2px); }
.link--chevron { display: inline-flex; align-items: center; font-weight: 600; color: var(--wine); white-space: nowrap; }
.link--chevron::after { content: "›"; margin-left: .3em; font-size: 1.2em; line-height: 1; transition: transform var(--transition); }
.link--chevron:hover::after { transform: translateX(3px); }
.link--sm { font-size: .9rem; }

/* ---------- Badge, chip e date più morbidi ---------- */
.badge { border-color: transparent; letter-spacing: .02em; }
.chip { border-color: transparent; background: var(--cream-2); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52,199,89,.6); animation: liveDot 1.8s ease-out infinite; flex: none; }
@keyframes liveDot { 0% { box-shadow: 0 0 0 0 rgba(52,199,89,.55); } 100% { box-shadow: 0 0 0 9px rgba(52,199,89,0); } }

/* ---------- Header in vetro ---------- */
.site-header {
  background: rgba(251,251,253,.72);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.site-header__inner { height: 64px; gap: 1rem; }
.brand { font-size: 1rem; letter-spacing: -.01em; }
.brand img { width: 38px; height: 38px; }
.brand small { font-size: .62rem; letter-spacing: .14em; color: var(--ink-faint); }
.site-nav { gap: .15rem; }
.site-nav a { padding: .45rem .75rem; font-size: .88rem; font-weight: 500; color: rgba(29,29,31,.78); background: none; }
.site-nav a:hover { color: var(--ink); background: none; }
.site-nav a.is-active { color: var(--ink); background: none; font-weight: 600; }
.site-nav .btn { margin-left: .6rem; color: #fff; }
.site-nav .btn:hover { color: #fff; }
.site-nav .btn--prenota-live { padding: .5rem 1rem; font-size: .84rem; gap: .45rem; }
.nav-drop__menu { border: 0; border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 20px 40px -12px rgba(0,0,0,.2); background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.nav-toggle { border: 0; background: transparent; width: 42px; height: 42px; }
.nav-toggle span { width: 18px; height: 1.6px; }
@media (max-width: 900px) {
  .site-nav { inset: 64px 0 auto 0; background: rgba(251,251,253,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 30px 40px -30px rgba(0,0,0,.25); border-bottom: 1px solid rgba(0,0,0,.06); max-height: calc(100dvh - 64px); }
  .site-nav a { font-size: 1.15rem; font-weight: 600; color: var(--ink); padding: .9rem .4rem; }
  .site-nav > a + a:not(.nav-lng):not(.btn) { border-top-color: rgba(0,0,0,.07); }
  .site-nav .nav-drop { border-color: rgba(0,0,0,.07); }
  .site-nav .btn { justify-content: center; font-size: 1rem; padding: .9rem 1rem; margin: 1rem 0 0; }
}

/* ---------- Card (tutto il sito) ---------- */
.card {
  border: 0; border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), translate .5s var(--ease-out);
}
.card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); translate: 0 -4px; box-shadow: var(--shadow); }
.card.is-tilting { transition: box-shadow .5s var(--ease-out), translate .5s var(--ease-out); }
.card__media { background: var(--cream-2); }
.card__date { background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 14px; padding: .4rem .65rem; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); }
.card__date strong { color: var(--ink); }
.card__status .badge, .card__multiday { background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; }
.card__body h3 { font-size: 1.3rem; }
.card__foot { gap: 1rem; padding-top: .3rem; }
.window-card, .panel.window-card { border: 0; border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.window-card:hover { box-shadow: var(--shadow); }
.date-chip { background: var(--cream-2); border: 0; border-radius: 14px; }
.notice--empty { border: 0; border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }

/* ---------- Footer chiaro ---------- */
.site-footer { background: var(--cream-2); color: var(--ink-soft); margin-top: clamp(2rem, 6vw, 4rem); border-top: 1px solid rgba(0,0,0,.05); }
.site-footer__inner { padding: 3rem 0 1.8rem; font-size: .9rem; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.site-footer h4 { color: var(--ink); font-size: .82rem; font-weight: 600; letter-spacing: 0; margin-bottom: .7rem; }
.site-footer a { color: #424245; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer ul { font-size: .86rem; gap: .5rem; }
.site-footer .brand, .site-footer .brand span { color: var(--ink); }
.site-footer__about { color: var(--ink-soft); margin-top: 1rem; max-width: 34ch; font-size: .88rem; }
.site-footer__bottom { border-top: 1px solid rgba(0,0,0,.08); color: var(--ink-faint); font-size: .76rem; }
.site-footer .social-row a { color: var(--ink-soft); }

/* ---------- Banner cookie in vetro ---------- */
.cookie-banner__inner { border: 0; border-radius: 20px; background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 30px 60px -20px rgba(0,0,0,.3); }

/* ==========================================================================
   HOME
   ========================================================================== */
.home .section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.home .section--tight { padding: clamp(1.2rem, 3vw, 2rem) 0; }
.home .eyebrow { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; color: var(--orange-ink); margin-bottom: .45rem; }
.home .eyebrow::before { display: none; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); }
.home-head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.035em; line-height: 1.04; margin: 0; }
.home-head .link--chevron { margin-bottom: .45rem; }

/* ---------- Hero 3D centrato ---------- */
.hero3d {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  background:
    radial-gradient(42% 38% at 50% 78%, rgba(191,230,204,.55) 0%, rgba(191,230,204,0) 70%),
    radial-gradient(30% 40% at 22% 70%, rgba(240,152,62,.16) 0%, rgba(240,152,62,0) 70%),
    radial-gradient(30% 40% at 80% 66%, rgba(47,111,196,.14) 0%, rgba(47,111,196,0) 70%),
    linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
}
.hero3d__copy { position: relative; z-index: 2; padding-top: clamp(2.6rem, 5vw, 3.6rem); }
.hero3d__pill {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem;
  padding: .5rem 1rem; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm);
  font-size: .86rem; font-weight: 600; color: var(--ink);
}
a.hero3d__pill:hover { color: var(--ink); box-shadow: var(--shadow); }
.hero3d__pill b { color: var(--wine); font-size: 1.1em; line-height: 1; }
.hero3d__pill--plain { color: var(--ink-soft); }
.hero3d h1 {
  font-size: clamp(2.9rem, 7vw, 5.2rem); line-height: .98; letter-spacing: -.048em;
  margin: 0 auto 1.1rem; max-width: 12ch;
}
.hero3d__cite { margin: -.4rem auto 1rem; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }
.home-verse { text-align: center; max-width: 64ch; margin-inline: auto; }
.home-verse__text { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.7; color: var(--ink-soft); margin: .4rem 0 0; }
.home-verse__text em { font-style: italic; color: var(--ink); font-weight: 600; }
.hero3d__lead { font-size: clamp(1.08rem, 1.7vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); max-width: 46ch; margin: 0 auto 1.6rem; }
.hero3d__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .8rem 1.8rem; }
.hero3d__stage {
  position: relative; z-index: 1;
  height: clamp(380px, 38vw, 560px); margin-top: clamp(-1.5rem, -2vw, -.5rem);
  opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity 1.1s ease, transform 1.4s var(--ease-out);
  touch-action: pan-y;
}
.hero3d__stage.is-ready { opacity: 1; transform: none; }
.hero3d__stage.is-fallback { display: none; }
.hero3d__stage canvas { display: block; width: 100%; height: 100%; cursor: pointer; }

/* ---------- La prossima attività: scheda 3D ---------- */
.next-card {
  display: grid; grid-template-columns: 1fr; background: #fff; border-radius: 36px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 40px 80px -40px rgba(20,30,60,.3); overflow: hidden;
}
@media (min-width: 900px) { .next-card { grid-template-columns: 1.05fr 1fr; } }
.next-card__stage {
  position: relative; display: grid; place-items: center; min-height: 460px;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 5vw, 4rem);
  perspective: 1300px;
  background:
    radial-gradient(55% 45% at 30% 30%, rgba(240,152,62,.22) 0%, rgba(240,152,62,0) 70%),
    radial-gradient(55% 50% at 75% 75%, rgba(47,111,196,.2) 0%, rgba(47,111,196,0) 70%),
    var(--cream-2);
}
.next-card__stage::after { /* ombra a terra */
  content: ""; position: absolute; left: 50%; bottom: 9%; width: min(62%, 300px); height: 34px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20,30,60,.28), rgba(20,30,60,0)); filter: blur(4px);
}
.next-poster {
  position: relative; z-index: 1; display: block; width: min(100%, 320px); aspect-ratio: 4 / 5;
  border-radius: 26px; color: #fff; transform-style: preserve-3d;
  transform: rotateX(calc(5deg + var(--rx, 0deg))) rotateY(calc(-14deg + var(--ry, 0deg)));
  transition: transform .9s var(--ease-out);
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 30px 50px 70px -30px rgba(15,25,50,.55);
  animation: posterFloat 7s ease-in-out infinite;
}
.next-poster.is-tilting { transition: none; }
@keyframes posterFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.next-poster__img { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #dfe3ea; }
.next-poster__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.next-poster__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(10,15,30,.72) 100%); }
.next-poster__shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transform: translateZ(1px);
  background: radial-gradient(circle at var(--mx, 25%) var(--my, 15%), rgba(255,255,255,.42) 0%, rgba(255,255,255,0) 48%);
  mix-blend-mode: soft-light;
}
.next-poster__foot {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; transform: translateZ(45px);
  display: grid; justify-items: start; gap: .55rem;
}
.next-poster__foot .badge { background: rgba(255,255,255,.9); box-shadow: 0 8px 18px -8px rgba(0,0,0,.4); }
.next-poster__title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; line-height: 1.05; letter-spacing: -.02em;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.next-poster__cal { /* calendarietto a strappo, in rilievo */
  position: absolute; top: -26px; right: -30px; width: 108px; border-radius: 22px; overflow: hidden;
  background: #fff; color: var(--ink); text-align: center; transform: translateZ(90px);
  box-shadow:
    0 1px 0 #ececf0, 0 2px 0 #e2e2e7, 0 3px 0 #d8d8de, 0 4px 0 #cfcfd5, 0 5px 0 #c6c6cc,
    0 30px 40px -12px rgba(10,20,40,.45);
}
.next-poster__cal-top { display: block; padding: .38rem 0 .3rem; background: linear-gradient(135deg, #f0983e, #ef7a6b); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .14em; }
.next-poster__cal strong { display: block; font-family: var(--font-display); font-size: 2.9rem; line-height: 1; letter-spacing: -.04em; padding-top: .45rem; }
.next-poster__cal em { display: block; font-style: normal; font-size: .72rem; color: var(--ink-soft); padding: .15rem 0 .65rem; }
.next-card__body { padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.next-card__when { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .8rem; border-radius: 999px; background: #fff4e8; color: var(--orange-ink); font-size: .84rem; font-weight: 700; margin-bottom: 1rem; }
.next-card__body h3 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 1.2rem; }
.next-card__body h3 a { color: inherit; }
.next-card__meta { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .65rem; }
.next-card__meta li { display: flex; align-items: center; gap: .75rem; font-weight: 500; color: var(--ink); }
.next-card__meta svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--cream-2); color: var(--wine); }
.next-card__body > p { color: var(--ink-soft); font-size: 1.05rem; max-width: 46ch; margin: 0 0 1.2rem; }
.next-card__body .card__moduli-chips { margin: 0 0 1.4rem; }
.next-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; }
@media (max-width: 899px) {
  .next-card__stage { min-height: 400px; padding: 3.2rem 2.4rem 2.6rem; }
  .next-poster { width: min(78%, 290px); }
  .next-poster__cal { right: -18px; width: 96px; }
  .next-poster__cal strong { font-size: 2.5rem; }
}

/* ---------- Accessi rapidi (icone tipo app) ---------- */
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; } }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: 1.4rem; border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.tile:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.tile strong { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -.015em; margin-top: .9rem; }
.tile em { font-style: normal; color: var(--ink-soft); font-size: .86rem; line-height: 1.35; }
.tile__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 6px rgba(0,0,0,.08), 0 10px 20px -10px var(--ic-shadow, rgba(0,0,0,.4)); transition: transform .5s var(--ease-out); }
.tile:hover .tile__ic { transform: translateY(-2px) rotate(-4deg) scale(1.04); }
.tile__ic svg { width: 26px; height: 26px; stroke-width: 2; }
.tile__ic--blue { background: linear-gradient(160deg, #5ea4ff, #1f5fc8); --ic-shadow: rgba(31,95,200,.7); }
.tile__ic--orange { background: linear-gradient(160deg, #ffbf6b, #ee7f22); --ic-shadow: rgba(238,127,34,.7); }
.tile__ic--coral { background: linear-gradient(160deg, #ff9a8c, #e5534b); --ic-shadow: rgba(229,83,75,.7); }
.tile__ic--green { background: linear-gradient(160deg, #6fdc8c, #23a55a); --ic-shadow: rgba(35,165,90,.7); }

/* ---------- Tema dell'anno ---------- */
.tema {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr; align-items: center;
  border-radius: 36px; color: #fff; padding: clamp(2.4rem, 6vw, 4.5rem);
  background: linear-gradient(120deg, #f0983e 0%, #ef7a6b 38%, #8b6fd6 72%, #2f6fc4 100%);
  box-shadow: 0 40px 80px -45px rgba(140,70,60,.7);
}
@media (min-width: 900px) { .tema { grid-template-columns: 1.4fr .9fr; } }
.tema__kicker { font-weight: 600; opacity: .9; margin: 0 0 .6rem; }
.tema h2 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: .98; letter-spacing: -.045em; margin: 0 0 1.1rem; }
.tema__p { color: rgba(255,255,255,.9); font-size: 1.06rem; max-width: 54ch; margin: 0 0 1.6rem; }
.tema__visual { position: relative; min-height: 220px; }
.tema__logo { max-width: min(260px, 100%); margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.25)); animation: temaFloat 6s ease-in-out infinite; }
.tema__orb { position: absolute; border-radius: 50%; animation: temaFloat 7s ease-in-out infinite; box-shadow: 0 30px 40px -20px rgba(40,20,60,.45); }
.tema__orb--1 { width: 170px; height: 170px; right: 18%; top: 4%; background: radial-gradient(circle at 32% 28%, #ffffff 0%, #ffe2b8 22%, #f6a24c 62%, #d8741e 100%); }
.tema__orb--2 { width: 96px; height: 96px; right: 2%; top: 52%; background: radial-gradient(circle at 32% 28%, #ffffff 0%, #c9dcff 25%, #4f8de6 65%, #2257a8 100%); animation-delay: -2s; }
.tema__orb--3 { width: 62px; height: 62px; right: 52%; top: 62%; background: radial-gradient(circle at 32% 28%, #ffffff 0%, #fff0b8 25%, #f4c84a 65%, #c99a17 100%); animation-delay: -4s; }
@keyframes temaFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (max-width: 899px) { .tema__visual { min-height: 150px; order: -1; margin: -1rem 0 .5rem; } .tema__orb--1 { width: 120px; height: 120px; right: 30%; } }

/* ---------- Fascia prenotazioni e iscrizioni ---------- */
.band { background: var(--cream-2); }

/* ---------- Annunci ---------- */
.ann-list { background: #fff; border-radius: 28px; box-shadow: var(--shadow-sm); overflow: hidden; }
.ann-row { display: grid; grid-template-columns: 1fr 22px; gap: .4rem 1.4rem; align-items: center; padding: 1.35rem clamp(1.2rem, 3vw, 2rem); color: var(--ink); transition: background .3s ease; }
.ann-row + .ann-row { border-top: 1px solid var(--line); }
.ann-row:hover { background: #fafafc; color: var(--ink); }
.ann-row__meta { display: flex; gap: .6rem; align-items: center; font-size: .8rem; color: var(--ink-faint); grid-column: 1; }
.ann-row__cat { font-weight: 700; color: var(--orange-ink); }
.ann-row__txt { display: grid; gap: .15rem; grid-column: 1; }
.ann-row__txt strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.015em; }
.ann-row__txt span { color: var(--ink-soft); font-size: .94rem; }
.ann-row__go { grid-column: 2; grid-row: 1 / span 2; color: var(--ink-faint); transition: transform .3s ease, color .3s ease; }
.ann-row:hover .ann-row__go { transform: translateX(3px); color: var(--wine); }
@media (min-width: 760px) {
  .ann-row { grid-template-columns: 170px 1fr 22px; }
  .ann-row__meta { flex-direction: column; align-items: flex-start; gap: .15rem; }
  .ann-row__txt { grid-column: 2; grid-row: 1; }
  .ann-row__go { grid-column: 3; grid-row: 1; }
}

/* ---------- Gruppo collegato ---------- */
.group-card {
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
  padding: clamp(1.8rem, 4vw, 2.8rem); border-radius: 32px; color: #fff;
  background: linear-gradient(130deg, var(--wine) 0%, #2f6fc4 100%);
  box-shadow: 0 40px 70px -45px rgba(29,78,137,.9); transition: transform .5s var(--ease-out);
}
.group-card:hover { color: #fff; transform: translateY(-4px); }
.group-card__logo { width: 84px; height: 84px; border-radius: 22px; background: rgba(255,255,255,.14); padding: 8px; object-fit: contain; }
.group-card__txt { flex: 1 1 320px; display: grid; gap: .3rem; }
.group-card__kicker { font-weight: 600; color: #ffd29e; }
.group-card__txt strong { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.03em; line-height: 1.1; }
.group-card__txt span:last-child { color: rgba(255,255,255,.85); max-width: 60ch; }

/* ---------- Galleria ---------- */
.album-tile {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; color: #fff; background: var(--cream-2);
  box-shadow: var(--shadow-sm);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.album-tile.is-tilting { transition: box-shadow .5s var(--ease-out); }
.album-tile:hover { color: #fff; box-shadow: var(--shadow); }
.album-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.album-tile:hover img { transform: scale(1.05); }
.album-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.6) 100%); }
.album-tile__txt { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.1rem; z-index: 1; display: grid; }
.album-tile__txt strong { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.02em; }
.album-tile__txt em { font-style: normal; font-size: .85rem; opacity: .85; }

/* ---------- Invito finale ---------- */
.cta--dark { background: #1d1d1f; border-radius: 36px; padding: clamp(2.6rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; }
.cta--dark h2 { color: #f5f5f7; font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.035em; line-height: 1.05; max-width: 18ch; margin: 0 auto 1rem; }
.cta--dark p { color: #a1a1a6; font-size: 1.08rem; }
.cta__kicker { color: #f5a65b !important; font-weight: 600; margin-bottom: .6rem !important; }
.cta--dark .btn { margin-top: 1.2rem; }

/* ---------- Comparsa allo scorrimento ----------
   Le sezioni della Home hanno [data-reveal] (gestito da site.js): le card al loro
   interno non fanno una seconda animazione e mantengono l'inclinazione 3D. */
.home .reveal { opacity: 1; transform: none; transition-delay: 0s; }
.home .card.reveal { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

@media (prefers-reduced-motion: reduce) {
  .hero3d__stage { transition: opacity .3s ease; transform: none; }
  .next-poster, .tema__logo, .tema__orb { animation: none; }
  .live-dot { animation: none; }
  .card, .album-tile, .tile { transition: none; }
}

/* ==========================================================================
   TUTTE LE PAGINE — intestazioni chiare e componenti coerenti con la Home
   ========================================================================== */
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.02; letter-spacing: -.04em; }
h2 { letter-spacing: -.03em; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; color: var(--orange-ink); margin-bottom: .45rem; }
.eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.05; }
.breadcrumb { font-size: .82rem; color: var(--ink-faint); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--ink); }

/* Fascia di intestazione delle pagine (Appuntamenti, Prenotazioni, Annunci, Galleria…) */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(2.8rem, 6vw, 4.8rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(40% 80% at 88% 10%, rgba(240,152,62,.13) 0%, rgba(240,152,62,0) 70%),
    radial-gradient(35% 70% at 100% 90%, rgba(47,111,196,.11) 0%, rgba(47,111,196,0) 70%),
    linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
}
.page-hero h1 { margin: 0 0 .7rem; max-width: 18ch; }
.page-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--ink-soft); max-width: 58ch; margin: 0; }
.page-hero__lead a { color: var(--wine); text-decoration: underline; }
.page-hero .badge { margin-top: 1.2rem; }

/* Dettaglio appuntamento: intestazione chiara con locandina in rilievo */
.detail-hero {
  background:
    radial-gradient(45% 70% at 85% 30%, rgba(240,152,62,.16) 0%, rgba(240,152,62,0) 70%),
    radial-gradient(40% 60% at 70% 95%, rgba(47,111,196,.12) 0%, rgba(47,111,196,0) 70%),
    linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
  color: var(--ink);
}
.detail-hero h1 { color: var(--ink); }
.detail-hero__meta { color: var(--ink-soft); }
.detail-hero__meta svg { color: var(--wine); }
.detail-hero__cover { border-radius: 28px; background: var(--cream-2); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 50px 80px -40px rgba(15,25,50,.5); transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform .9s var(--ease-out); }
.detail-hero__cover:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.hero-flyer { border-radius: 22px; box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 40px 70px -35px rgba(15,25,50,.5); }
@media (prefers-reduced-motion: reduce) { .detail-hero__cover, .detail-hero__cover:hover { transform: none; } }

/* Pannelli, testi lunghi, moduli */
.panel { border: 0; border-radius: 24px; box-shadow: var(--shadow-sm); }
.panel--accent { background: linear-gradient(150deg, #fff7ee 0%, #ffffff 55%, #eef4fc 100%); }
.prose { color: #424245; font-size: 1.05rem; line-height: 1.7; }
.prose h2, .prose h3 { letter-spacing: -.02em; }
.field input, .field select, .field textarea { border-radius: 12px; border-color: var(--line); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(29,78,137,.12); }
.form-alert { border: 0; border-radius: 14px; }
.form-alert--error { border: 0; }
.form-alert--ok { border: 0; }

/* Annunci (elenco) e organigramma */
.ann-item { background: #fff; border: 0; border-radius: 22px; padding: 1.4rem clamp(1.2rem, 3vw, 1.8rem); margin-bottom: .9rem; box-shadow: var(--shadow-sm); }
.ann-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ann-item__cat { color: var(--orange-ink); letter-spacing: .02em; text-transform: none; font-size: .85rem; }
.ann-item__date { color: var(--ink-soft); font-family: var(--font-text); font-weight: 500; font-size: .85rem; }
.org-group__title { color: var(--ink); border-bottom: 0; font-size: 1.5rem; letter-spacing: -.02em; }
.org-card { border: 0; border-radius: 20px; box-shadow: var(--shadow-sm); padding: 1rem 1.1rem; }

/* Galleria */
.gallery-grid figure { border-radius: 18px; }
.lightbox { background: rgba(10,10,12,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox img { border-radius: 16px; }

/* Finestra di prenotazione */
.bk-modal { background: rgba(20,22,28,.4); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
.bk-dialog { border-radius: 28px; box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 50px 100px -30px rgba(0,0,0,.45); }
.bk-progress span.is-done { background: var(--wine); }

/* Pagina di errore chiara */
.errpage { background: radial-gradient(50% 60% at 50% 20%, rgba(240,152,62,.14) 0%, rgba(240,152,62,0) 70%), linear-gradient(180deg, #fff 0%, var(--cream) 100%); color: var(--ink); }
.errpage__logo { background: #fff; box-shadow: var(--shadow-sm); }
.errpage__code { background: linear-gradient(100deg, #f0983e 0%, #ef7a6b 42%, #2f6fc4 100%); -webkit-background-clip: text; background-clip: text; }
.errpage__title { color: var(--ink); }
.errpage__msg { color: var(--ink-soft); }
.errpage__count { color: var(--ink-faint); }
.errpage__count strong { color: var(--orange-ink); }
.errpage__ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.errpage__ghost:hover { color: var(--wine); background: #fff; border-color: var(--wine); }

/* Credito nel footer chiaro */
.site-footer__credit { color: var(--ink-faint); }
.site-footer__credit a { color: var(--ink-soft); }
.site-footer__credit a:hover { color: var(--ink); }

/* Pagina gruppo (ACR, Adolescenti…): stessa estetica chiara, mantenendo logo e colori del gruppo */
.lng-hero { background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%); padding: clamp(1.6rem, 4vw, 3rem) 0 clamp(2.4rem, 5vw, 4rem); }
.lng-hero__bg { background: radial-gradient(45% 60% at 22% 45%, color-mix(in srgb, var(--lng-teal) 22%, transparent), transparent 70%), radial-gradient(40% 55% at 85% 20%, color-mix(in srgb, var(--lng-yellow) 20%, transparent), transparent 70%); }
.lng-hero__bg[style] { background-color: transparent; opacity: .14; filter: saturate(.8); }
.lng-hero__veil, .lng-brush, .lng-stamp, .lng-tear, .lng-doodle { display: none; }
.lng-hero__logo { transform: none; animation: temaFloat 7s ease-in-out infinite; }
.lng-hero__logo:hover { transform: scale(1.02); }
.lng-hero__logo img { filter: drop-shadow(0 30px 40px rgba(15,25,50,.25)); }
.lng-hero__text { color: var(--ink); }
.lng-crumb { color: var(--ink-faint); }
.lng-crumb a { color: var(--ink-soft); }
.lng-crumb a:hover { color: var(--ink); }
.lng-eyebrow { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; color: var(--orange-ink); }
.lng-eyebrow .ico { display: none; }
.lng-eyebrow--ink { color: var(--orange-ink); }
.lng-title { font-family: var(--font-display); font-weight: 700; text-transform: none; letter-spacing: -.045em; line-height: .98; font-size: clamp(2.8rem, 7vw, 5.2rem); }
.lng-title__l1 { color: var(--ink); text-shadow: none; }
.lng-title__l2 { color: var(--lng-teal); text-shadow: none; }
.lng-sub { color: var(--ink-soft); font-weight: 500; text-shadow: none; }
.lng-btn { border-radius: 999px; text-transform: none; letter-spacing: 0; font-size: .98rem; font-weight: 600; padding: .9rem 1.5rem; }
.lng-btn--solid { background: var(--ink); color: #fff; box-shadow: 0 10px 22px -12px rgba(0,0,0,.6); }
.lng-btn--solid:hover { color: #fff; background: #000; }
.lng-btn--ghost { border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.lng-btn--ghost:hover { background: #fff; color: var(--wine); border-color: var(--wine); }
.lng-social a { background: #fff; color: var(--ink-soft); box-shadow: var(--shadow-sm); border-radius: 50%; }
.lng-social a:hover { background: var(--ink); color: #fff; }
.lng-about { background: transparent; }
.lng-about__text h2 { font-family: var(--font-display); text-transform: none; letter-spacing: -.035em; }
.lng-about__media img { border-radius: 28px; box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .lng-hero__logo { animation: none; } }

/* Livello 3D che accompagna lo scorrimento della Home (assets/js/scroll3d.js):
   sta dietro ai contenuti, le schede bianche ci passano sopra. */
.scroll3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.scroll3d.is-ready { opacity: 1; }
main.home { position: relative; z-index: 1; }
.site-footer { position: relative; z-index: 1; }
.home .band { background: rgba(240,240,244,.7); }
@media (prefers-reduced-motion: reduce) { .scroll3d { display: none; } }

/* Campo Età nei moduli: interruttore data di nascita / anni (assets/js/booking.js) */
.bk-eta__switch { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; margin: .15rem 0 .45rem; border-radius: 999px; background: var(--cream-2); }
.bk-eta__switch button { border: 0; background: transparent; padding: .42rem .95rem; border-radius: 999px; font: 600 .85rem var(--font-text); color: var(--ink-soft); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.bk-eta__switch button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.bk-eta__out { font-weight: 600; color: var(--wine); min-height: 1em; }
.bk-classe-hint { display: block; margin-top: .35rem; }
.bk-eta > span:first-child { font-size: .82rem; font-weight: 600; color: var(--ink); }
