/* =========================================================================
   Suore Benedettine di Carità — Design system (v2, "heritage editoriale")
   Vedi DESIGN.md. Palette liturgica, tipografia ampia, molto respiro,
   sfondi a profondità (mai piatti), hero cinematografico a livelli.
   Pensato anche per anziani: testo grande, alto contrasto, focus visibile.
   ========================================================================= */

:root {
  /* ---- Colori (chiaro) ---- */
  --parchment:   #f6f1e6;
  --parchment-2: #efe7d5;
  --cream:       #fffdf7;
  --ink:         #26332b;
  --ink-soft:    #4c584f;
  --gold:        #b08d57;
  --gold-deep:   #8a6c3e;
  --gold-light:  #d8bd85;
  --green:       #3c5646;
  --green-deep:  #223528;
  --green-mid:   #2c4133;
  --line:        rgba(138,108,62,.32);
  --card:        #fffdf7;
  --on-dark:     #f3ecdb;   /* testo su verde profondo */
  --on-dark-soft:#c9c3ad;
  --shadow:      34,45,37;

  /* ---- Tipografia ---- */
  --font-title: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:  "EB Garamond", Georgia, "Times New Roman", serif;
  --font-ui:    "Google Sans", "Product Sans", "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-base:    clamp(1.2rem, 1.02rem + 0.7vw, 1.46rem);
  --lh-base:    1.8;

  /* ---- Layout ---- */
  --container: 1280px;
  --container-wide: 1440px;
  --container-narrow: 780px;
  --section-y: clamp(5rem, 11vw, 10rem);
  --radius: 6px;
  --arch: 46% 46% 8px 8px / 62% 62% 8px 8px;  /* arco liturgico per le foto */
  --header-h: 76px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --parchment:   #14160f;
    --parchment-2: #191c14;
    --cream:       #20241b;
    --ink:         #efe7d5;
    --ink-soft:    #b3ad9c;
    --gold:        #c9a86b;
    --gold-deep:   #d8bd85;
    --gold-light:  #e6d3a6;
    --green:       #9fbfa6;
    --green-deep:  #0e120d;
    --green-mid:   #16201a;
    --line:        rgba(201,168,107,.26);
    --card:        #23281e;
    --on-dark:     #eee7d6;
    --on-dark-soft:#b8b19c;
    --shadow:      0,0,0;
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

/* =========================================================================
   Reset & base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink);
  background: linear-gradient(180deg, var(--parchment), var(--parchment-2));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip invece di hidden: non rompe position: sticky (sezione valori) */
}

/* Trama di carta discreta, fissa, non sugli elementi che scorrono */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) { body::before { mix-blend-mode: screen; opacity: .05; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-deep); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 50%; top: .6rem; transform: translateX(-50%) translateY(-160%);
  z-index: 1000; background: var(--green); color: #fff; padding: .7rem 1.3rem; border-radius: var(--radius);
  transition: transform .2s;
}
.skip-link:focus { transform: translateX(-50%) translateY(0); color: #fff; }

/* =========================================================================
   Tipografia
   ========================================================================= */
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: .005em; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 500; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p  { max-width: 66ch; }

/* FIX SISTEMICO ALLINEAMENTI — i <p> hanno un max-width (66ch): dentro un
   contenitore centrato il BOX del paragrafo resterebbe ancorato a sinistra
   (il testo si centra dentro un box fuori asse → titoletti "storti").
   Regola: OGNI contenitore centrato (inline style o le classi qui sotto)
   centra anche il box dei propri paragrafi. Se crei una nuova sezione
   centrata, usa style="text-align:center" e sei coperto in automatico. */
[style*="text-align:center"] p, [style*="text-align: center"] p,
[style*="text-align:center"] blockquote, [style*="text-align: center"] blockquote,
p[style*="text-align:center"], p[style*="text-align: center"],
.page-head p, .section-head p,
.preghiera p, .preghiera blockquote, .parola-card p {
  margin-inline: auto;
}
strong { color: var(--green); font-weight: 600; }
/* grassetti su sfondo scuro: chiari, mai scuri su scuro */
.hero strong, .band-dark strong, .section--image strong { color: var(--gold-light); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.3rem, 5vw, 3rem); }
.container.wide { max-width: var(--container-wide); }
.container.narrow { max-width: var(--container-narrow); }

.eyebrow {
  font-family: var(--font-title); font-style: italic; color: var(--gold-deep);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem); letter-spacing: .05em; margin-bottom: .5rem;
}
.rule { width: min(220px, 55%); height: 1px; margin: 1.6rem auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); position: relative; }
.rule::after { content: "✦"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: var(--gold); font-size: .85rem; background: var(--parchment); padding: 0 .7rem; }
.rule.left { margin-inline: 0; }
.rule.left::after { left: 34px; }
@media (prefers-color-scheme: dark) { .rule::after { background: var(--parchment-2); } }

/* =========================================================================
   Sezioni + profondità (mai piatte)
   ========================================================================= */
.section { position: relative; z-index: 1; padding-block: var(--section-y); }
.section-head { max-width: 54rem; margin-inline: auto; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.section-head > * { margin-inline: auto; }
.section-head .subtitle { color: var(--ink-soft); font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); margin-top: .8rem; font-style: italic; }

/* Varianti di sfondo — si alternano per dare ritmo */
.section--cream {
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(176,141,87,.10), transparent 60%),
    linear-gradient(180deg, var(--cream), color-mix(in srgb, var(--cream) 88%, var(--parchment)));
  border-block: 1px solid var(--line);
}
.section--tint {
  background:
    radial-gradient(100% 80% at 50% 120%, rgba(60,86,70,.10), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--green) 6%, var(--parchment)), var(--parchment));
}

/* Fascia immersiva verde profondo (un solo "color block" nel corpo) */
.band-dark {
  position: relative; z-index: 1;
  background: radial-gradient(120% 130% at 50% 0%, var(--green-mid), var(--green-deep));
  color: var(--on-dark); padding-block: clamp(5rem, 12vw, 9rem); overflow: hidden;
}
.band-dark::before {
  content: "\201C"; position: absolute; top: -.2em; left: 50%; transform: translateX(-50%);
  font-family: var(--font-title); font-size: clamp(12rem, 28vw, 22rem); line-height: 1;
  color: var(--gold); opacity: .12; pointer-events: none;
}
.band-dark .quote-lg {
  font-family: var(--font-title); font-style: italic; font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.3; text-align: center;
  max-width: 22ch; margin: 0 auto; color: var(--on-dark); position: relative;
}
.band-dark cite { display: block; font-style: normal; font-family: var(--font-ui); font-weight: 600;
  font-size: clamp(.9rem, .85rem + .2vw, 1.05rem); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); margin-top: 1.6rem; }
.band-dark .rule::after { background: var(--green-mid); color: var(--gold-light); }

/* =========================================================================
   Bottoni
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-ui);
  font-size: clamp(1rem, .95rem + .25vw, 1.12rem); font-weight: 500; letter-spacing: .02em; padding: .95rem 2rem;
  border-radius: var(--radius); border: 1px solid var(--green); background: var(--green); color: #fff;
  cursor: pointer; transition: transform .15s, box-shadow .25s, background .2s, color .2s; white-space: nowrap;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(var(--shadow),.7); }
.btn:active { transform: translateY(0) scale(.985); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #2a2113; }
.btn--gold:hover { background: var(--gold-light); color: #2a2113; }
.btn--on-dark { background: transparent; border-color: rgba(243,236,219,.5); color: var(--on-dark); }
.btn--on-dark:hover { background: var(--on-dark); color: var(--green-deep); border-color: var(--on-dark); }
@media (prefers-color-scheme: dark) { .btn { color: #10140e; } .btn--ghost { color: var(--green); } .btn--ghost:hover { color: #10140e; } }

/* =========================================================================
   Header / navigazione (trasparente sull'hero, solido dopo)
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100; min-height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--parchment) 90%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background .35s, border-color .35s, color .35s;
}
/* Il blur sta su uno pseudo-elemento, NON sull'header: backdrop-filter su un
   elemento lo rende "containing block" dei discendenti position:fixed, e il
   pannello mobile .main-nav (fixed, fuori schermo a destra) finirebbe ancorato
   all'header → alto quanto l'header e sporgente oltre il bordo pagina =
   scroll orizzontale su mobile. Bug reale, non teorico: NON rimettere il
   backdrop-filter sull'header. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-header.over-hero::before { backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.brand { display: flex; align-items: center; gap: .85rem; }
.brand img { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: 0 0 0 4px rgba(176,141,87,.10); transition: box-shadow .35s; }
.brand .brand-name { font-family: var(--font-title); font-weight: 600; font-size: 1.4rem; line-height: 1.02; color: var(--ink); transition: color .35s; }
.brand .brand-name span { display: block; font-size: .82rem; font-style: italic; color: var(--gold-deep); letter-spacing: .05em; font-weight: 400; transition: color .35s; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem .7rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; display: block; }
.nav-close { display: none; }

.main-nav ul { list-style: none; display: flex; gap: clamp(.5rem, 1.8vw, 1.5rem); align-items: center; }
.main-nav a { font-family: var(--font-title); font-size: 1.18rem; font-weight: 600; color: var(--ink); padding: .4rem .2rem; position: relative; white-space: nowrap; transition: color .35s; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--gold-deep); }

/* Stato trasparente sopra l'hero scuro (solo homepage) */
.site-header.over-hero { background: transparent; border-color: transparent; }
.site-header.over-hero .brand-name, .site-header.over-hero .main-nav a { color: var(--on-dark); }
.site-header.over-hero .brand-name span { color: var(--gold-light); }
.site-header.over-hero .nav-toggle { color: var(--on-dark); border-color: rgba(243,236,219,.4); }
.site-header.over-hero .brand img { box-shadow: 0 0 0 4px rgba(243,236,219,.14); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  /* Pannello chiuso: anche visibility hidden, così i link non sono raggiungibili
     con Tab e il pannello non può mai allargare la pagina (scroll orizzontale). */
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: var(--parchment); border-left: 1px solid var(--line); transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; padding: 5.5rem 1.6rem 2rem; box-shadow: -20px 0 50px -30px rgba(var(--shadow),.8); }
  .main-nav.open { transform: translateX(0); visibility: visible; transition: transform .3s ease; }
  /* X di chiusura in alto a destra del pannello (tap target ≥48px) */
  .nav-close {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; top: 1.05rem; right: 1.2rem; width: 48px; height: 48px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--ink); cursor: pointer;
  }
  .nav-close svg { width: 26px; height: 26px; }
  /* Righe del menu: TUTTA la riga è cliccabile (align-items stretch + li a
     larghezza piena), non solo la scritta — tap comodi col pollice. */
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a, .site-header.over-hero .main-nav a { font-size: 1.45rem; padding: .95rem .35rem; display: block; width: 100%; color: var(--ink); }
  .main-nav a::after { content: none; }
  .main-nav a[aria-current="page"] { border-left: 3px solid var(--gold); padding-left: .75rem; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }
}

/* =========================================================================
   HERO — cover cinematografica a livelli
   ========================================================================= */
.hero {
  position: relative; z-index: 1; min-height: 100dvh; display: flex; align-items: center;
  margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h);
  color: var(--on-dark);
  background: radial-gradient(130% 120% at 15% 0%, var(--green-mid), var(--green-deep) 70%);
  overflow: hidden;
}
.hero::after { /* velo di texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
/* Riserva sotto il contenuto dell'hero: le stampe della fotostriscia si
   sovrappongono al verde (margine negativo) senza mai coprire i bottoni. */
@media (min-width: 861px) { .hero .hero-grid { padding-bottom: clamp(8.5rem, 12vw, 11rem); } }
.hero-copy { max-width: 34rem; }
.hero-crest { width: 92px; height: 92px; border-radius: 50%; border: 1px solid rgba(243,236,219,.35); background: #fff; box-shadow: 0 0 0 6px rgba(243,236,219,.08); margin-bottom: 1.6rem; }
.hero .eyebrow { color: var(--gold-light); }
.hero .hero-motto { font-style: normal; text-transform: uppercase; letter-spacing: .3em; font-size: clamp(.95rem, .9rem + .25vw, 1.1rem); font-family: var(--font-ui); font-weight: 600; }
/* Il titolo hero è una frase lunga: corpo un gradino sotto l'h1 standard */
.hero h1 { color: var(--on-dark); margin-bottom: .2rem; font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.12; }
.hero-lead { color: var(--on-dark-soft); font-size: clamp(1.1rem, 1rem + .45vw, 1.34rem); max-width: 34rem; }
.hero-lead strong { color: var(--gold-light); }
.hero .rule.left { margin-block: 1.5rem; }
.hero .rule.left::after { background: transparent; color: var(--gold-light); }
.hero-quote { font-family: var(--font-title); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.35; color: var(--on-dark); max-width: 30ch; }
.hero-quote cite { display: block; font-style: normal; font-family: var(--font-ui); font-weight: 600; font-size: clamp(.85rem, .8rem + .2vw, .98rem); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-top: 1rem; }
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Ritratto ad arco che sfora, con velatura di raccordo */
.hero-media { position: relative; justify-self: center; width: 100%; max-width: 680px; }
.hero-portrait { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.7); border: 1px solid rgba(243,236,219,.22); }
.hero-portrait img { width: 100%; height: auto; display: block; }
.hero-media .medallion { /* stemma sovrapposto sul bordo inferiore */
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%);
  width: 76px; height: 76px; border-radius: 50%; background: var(--green-deep); padding: 8px;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.8);
}
.medallion img { width: 100%; height: 100%; border-radius: 50%; }

@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2rem); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding-bottom: 4rem; }
  .hero-copy { max-width: none; margin-inline: auto; }
  .hero .rule.left { margin-inline: auto; }
  .hero .rule.left::after { left: 50%; }
  .hero-quote { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-media { order: -1; max-width: 300px; margin-bottom: 1rem; }
}

/* =========================================================================
   Striscia di foto dopo l'hero: un collage che scorre (marquee).
   Stampe leggermente ruotate in modo alternato, didascalia breve + luogo.
   Il click apre il lightbox (data-lb="collage"). Contenuto duplicato in
   home.php per il loop continuo: translateX(-50%) = esattamente un set.
   ========================================================================= */
.fotostriscia {
  position: relative; z-index: 2; overflow: hidden;
  /* Sfondo trasparente = stessa pergamena della sezione successiva.
     Margine negativo: le stampe si sovrappongono al verde dell'hero. */
  margin-top: clamp(-6.5rem, -8vw, -3.5rem);
  padding: .8rem 0 clamp(2.4rem, 5vw, 3.6rem);
}
@media (max-width: 860px) { .fotostriscia { margin-top: -1.6rem; } }
.fs-track { display: flex; width: max-content; animation: fs-scroll 75s linear infinite; }
.fs-set { display: flex; }
.fs-item {
  display: flex; flex-direction: column; flex: none;
  margin-right: clamp(1.1rem, 2.5vw, 1.9rem);
  background: #fffdf9; border: 1px solid var(--line); border-radius: 4px;
  padding: .55rem .55rem .5rem; box-shadow: 0 16px 34px -22px rgba(var(--shadow),.55);
  transition: transform .35s ease, box-shadow .35s;
}
.fs-item img { height: clamp(150px, 22vw, 215px); width: auto; max-width: min(340px, 74vw); object-fit: cover; border-radius: 2px; display: block; }
.fs-cap { font-family: var(--font-ui); font-size: .88rem; font-weight: 600; color: var(--ink); padding: .5rem .15rem .1rem; line-height: 1.25; }
.fs-cap small { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-soft); letter-spacing: .02em; }
/* Rotazioni alternate, da collage (pattern pseudo-casuale su 5) */
.fs-item:nth-child(5n+1) { transform: rotate(-2.1deg) translateY(4px); }
.fs-item:nth-child(5n+2) { transform: rotate(1.6deg)  translateY(-3px); }
.fs-item:nth-child(5n+3) { transform: rotate(-1.1deg) translateY(2px); }
.fs-item:nth-child(5n+4) { transform: rotate(2.3deg)  translateY(-4px); }
.fs-item:nth-child(5n)   { transform: rotate(-1.7deg) translateY(0); }
.fs-item:hover { transform: rotate(0) translateY(-4px) scale(1.03); box-shadow: 0 24px 48px -24px rgba(var(--shadow),.65); z-index: 2; }
@keyframes fs-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .fs-track { animation: none; }
  .fotostriscia { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.shot .fs-track { animation: none; }

/* =========================================================================
   Split testo + immagine (asimmetrico, con overlap)
   ========================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.text-wide { grid-template-columns: 1.15fr .85fr; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 34px 70px -40px rgba(var(--shadow),.6); }
.split-media.arch img { border-radius: var(--radius); }  /* niente più arco: foto intere */
.split-media .caption { margin-top: .8rem; font-size: clamp(1rem, .95rem + .25vw, 1.15rem); font-style: italic; color: var(--ink-soft); text-align: center; }
.split-body p + p { margin-top: 1.1rem; }
.split-body .btn { margin-top: 1.8rem; }
@media (max-width: 820px) {
  .split, .split.text-wide { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* =========================================================================
   Griglie / card
   ========================================================================= */
.grid { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.3rem); box-shadow: 0 20px 46px -36px rgba(var(--shadow),.55); }
.card h3 { color: var(--green-mid); margin-bottom: .7rem; }

/* Sezione valori: parola grande sticky a sinistra, testo + preghiera a destra */
.verbi { margin-top: clamp(2rem, 5vw, 4rem); }
.verbo { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.verbo + .verbo { border-top: 1px solid var(--line); }
.verbo-word { position: sticky; top: calc(var(--header-h) + 2rem); }
/* Parola-verbo: display forte ma SOTTO l'H1 dell'hero (max ~72px < 80px),
   così la gerarchia resta: titolo hero > parole-display > H2 > citazione > H3. */
.verbo-word span { display: block; font-family: var(--font-title); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: .98; color: var(--gold-deep); }
/* Corpo Valori allineato al corpo base (un'unica misura di "testo normale" sul sito) */
.verbo-body p { font-size: clamp(1.2rem, 1.02rem + .5vw, 1.5rem); max-width: 36ch; }
.verbo-prayer { margin-top: clamp(1.4rem, 3vw, 2.2rem); font-family: var(--font-title); font-style: italic; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.32; color: var(--green-mid); border-left: 3px solid var(--gold); padding-left: clamp(1rem, 2vw, 1.6rem); max-width: 28ch; }
@media (max-width: 760px) {
  .verbo { grid-template-columns: 1fr; gap: 1rem; padding-block: clamp(2rem, 8vw, 3rem); }
  .verbo-word { position: static; }
}

/* Card opera con foto */
.opera-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.opera-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(var(--shadow),.6); }
.opera-card .opera-photo { aspect-ratio: 4/3; overflow: hidden; background: var(--parchment-2); }
.opera-card .opera-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.opera-card:hover .opera-photo img { transform: scale(1.05); }
.opera-card .opera-body { padding: 1.6rem 1.7rem 1.9rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.opera-card .opera-tag { font-family: var(--font-ui); font-size: clamp(.8rem, .75rem + .2vw, .92rem); font-weight: 600; color: var(--gold-deep); text-transform: uppercase; letter-spacing: .1em; }
.opera-card h3 { color: var(--green-mid); }

/* Griglia opere: 5 schede di PARI importanza, tutte della stessa dimensione.
   Trucco: griglia a 6 colonne, ogni scheda occupa 2 → 3 per riga; l'ultima riga
   (le 2 rimanenti) viene centrata, così lo spazio vuoto è simmetrico e voluto,
   non un buco a destra. Nessuna scheda "più grande" delle altre. */
.opere-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.4rem, 3vw, 2.2rem);
  align-items: stretch;
}
.opere-grid > * { grid-column: span 2; }                 /* 3 per riga */
.opere-grid > :nth-child(4) { grid-column: 2 / span 2; } /* centra le due finali */
.opere-grid > :nth-child(5) { grid-column: 4 / span 2; }

@media (max-width: 980px) {                               /* tablet: 2 per riga, 5ª centrata */
  .opere-grid { grid-template-columns: repeat(4, 1fr); }
  .opere-grid > *,
  .opere-grid > :nth-child(4) { grid-column: span 2; }    /* annulla il centraggio desktop */
  .opere-grid > :nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 620px) {                               /* mobile: colonna unica */
  .opere-grid { grid-template-columns: 1fr; }
  .opere-grid > *,
  .opere-grid > :nth-child(4),
  .opere-grid > :nth-child(5) { grid-column: 1 / -1; }
}

/* --- Archivio opere: griglia fluida (numero variabile di schede) --- */
.opere-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.4rem, 3vw, 2.2rem);
  align-items: stretch;
}
.opera-card .opera-loc {
  font-family: var(--font-ui); font-size: clamp(.85rem, .8rem + .2vw, .96rem);
  color: var(--ink-soft); letter-spacing: .01em; margin-top: -.15rem;
}
.opera-card .opera-loc::before { content: "◈ "; color: var(--gold); }

/* --- Barra filtri categorie --- */
.filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .6rem .7rem; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.filter {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-ui); font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
  color: var(--ink); background: var(--cream);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .55rem 1.15rem; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .12s;
}
.filter:hover { color: var(--ink); border-color: var(--gold); transform: translateY(-1px); }
.filter.is-active { background: var(--green); color: #fff; border-color: var(--green); }
.filter.is-active .filter-dot { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.filter-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
@media (prefers-color-scheme: dark) { .filter.is-active { color: #10140e; } }

.empty-note { text-align: center; color: var(--ink-soft); font-style: italic; }

/* --- Pagina singola opera: box sede/posizione --- */
.opera-sede { margin-top: 2.2rem; }
.opera-sede h3 { color: var(--green-mid); margin-bottom: .6rem; }
.opera-sede-addr { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.opera-sede-contatti { margin-top: .8rem; color: var(--ink-soft); }
.opera-sede .btn { margin-top: 1.3rem; }

/* Intestazione pagine interne (senza hero scuro).
   NB: i <p> hanno max-width; senza margin auto un blocco più stretto del
   contenitore resta ancorato a sinistra anche con text-align:center. */
.page-head { padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)); }
.page-head p { margin-inline: auto; }

/* Motto Pax·Ora·Labora — fascia verde immersiva */
.motto-section { text-align: center; }
.motto-section::before { content: none; }
.motto-intro, .motto-outro { color: var(--on-dark-soft); max-width: 44rem; margin-inline: auto; }
.motto-words { font-family: var(--font-title); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: .14em; color: var(--gold-light); margin: 1.3rem auto; }
.motto-section .rule::after { background: transparent; color: var(--gold-light); }

/* =========================================================================
   Timeline (carosello Swiper: l'anno è un "punto" sulla linea).
   La linea è disegnata PER SLIDE (::before del marker, esteso di mezzo gap
   oltre i bordi): così resta SEMPRE allineata ai puntini, qualunque sia
   l'altezza dell'anno. Il gap orizzontale è fisso: 24px (vedi main.js).
   ========================================================================= */
.timeline-swiper { position: relative; padding: 1rem clamp(2.8rem, 6vw, 4.5rem) 1.5rem; }
.tl-slide { height: auto; display: flex; flex-direction: column; }
.tl-year { text-align: center; font-family: var(--font-title); font-weight: 700; font-size: clamp(2.3rem, 4.2vw, 3.3rem); line-height: 1.15; color: var(--gold-deep); padding-bottom: .5rem; }
.tl-marker { height: 2.4rem; display: flex; align-items: center; justify-content: center; position: relative; }
.tl-marker::before { content: ""; position: absolute; top: 50%; transform: translateY(-50%); left: -12px; right: -12px; height: 2px; background: var(--gold); opacity: .55; }
.tl-slide:first-child .tl-marker::before { left: 50%; }
.tl-slide:last-child .tl-marker::before { right: 50%; }
.tl-dot { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--parchment), 0 0 0 6px rgba(176,141,87,.5); }
.tl-card { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.7rem, 3vw, 2.4rem); margin-top: 1.3rem; box-shadow: 0 22px 48px -36px rgba(var(--shadow),.55); }
.tl-card h3 { font-family: var(--font-title); font-size: clamp(1.45rem, 1.3rem + .5vw, 1.85rem); line-height: 1.25; color: var(--green-mid); margin-bottom: .7rem; }
.tl-card p { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); line-height: 1.7; color: var(--ink-soft); }
.tl-nav { color: var(--green); background: var(--cream); border: 1px solid var(--line); border-radius: 50%; width: 48px; height: 48px; margin-top: 0; box-shadow: 0 12px 26px -16px rgba(var(--shadow),.7); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .15s; }
.timeline-swiper .tl-nav { top: 50%; transform: translateY(-50%); }
/* Freccia: SVG nostro (elegante, spesso), non il glifo di default di Swiper */
.tl-nav::after { content: none; }
.tl-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tl-nav:hover { background: var(--green); border-color: var(--green); color: var(--cream); }
.timeline-swiper .tl-nav:hover { transform: translateY(-50%) scale(1.05); }
.timeline-swiper .swiper-button-prev.tl-nav { left: 0; }
.timeline-swiper .swiper-button-next.tl-nav { right: 0; }
.tl-nav.swiper-button-disabled { opacity: .3; pointer-events: none; }

/* =========================================================================
   Gallery
   ========================================================================= */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery a:hover img { transform: scale(1.06); }

/* Sezione con foto a tutta larghezza + velatura */
.section--image { position: relative; color: var(--on-dark); background: var(--green-deep); }
.section--image .bg { position: absolute; inset: 0; z-index: 0; }
.section--image .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.section--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,18,.7), rgba(20,26,18,.82)); z-index: 1; }
.section--image .container { position: relative; z-index: 2; }
.section--image h2 { color: var(--on-dark); }
.section--image .eyebrow { color: var(--gold-light); }
.section--image p { color: var(--on-dark-soft); }
.section--image .rule::after { background: transparent; color: var(--gold-light); }

/* =========================================================================
   Contatti
   ========================================================================= */
/* Mappa delle sedi (Leaflet + tile CARTO Voyager) */
.map-wrap { position: relative; }
#mappa-sedi {
  height: clamp(380px, 58vh, 560px); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: 0 30px 70px -44px rgba(var(--shadow),.6);
  z-index: 1; background: var(--parchment-2);
}
/* Legenda della mappa: grande e leggibile */
.map-legend {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: .9rem clamp(1.4rem, 4vw, 2.8rem); margin-top: clamp(1.2rem, 3vw, 1.8rem);
}
.map-legend li {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-ui); font-weight: 500;
  font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); color: var(--ink);
}
.legend-dot {
  width: 18px; height: 18px; flex: none; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.sede-marker { display: block; width: 100%; height: 100%; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.leaflet-popup-content-wrapper { border-radius: var(--radius); font-family: var(--font-body); color: #26332b; }
.leaflet-popup-content { font-size: 1rem; line-height: 1.5; margin: 14px 18px; }
.leaflet-popup-content h4 { font-family: var(--font-title); font-size: 1.15rem; margin-bottom: .25rem; color: #2c4133; }
.leaflet-popup-content a { color: #3c5646; font-weight: 600; }
.leaflet-container { font-family: var(--font-ui); }
@media (prefers-color-scheme: dark) {
  #mappa-sedi .leaflet-tile-pane { filter: brightness(.9) saturate(.9); }
}

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px), 1fr)); gap: clamp(1.4rem,3vw,2rem); align-items: stretch; }
/* Le card devono potersi restringere: senza min-width:0 le foto a dimensione
   naturale (prima dell'init di Swiper) gonfiano la min-content della griglia
   e Swiper misura un contenitore esploso (slide da migliaia di px). */
.contact-grid > * { min-width: 0; }

/* --- Card sede (includes/sede-card.php): gerarchia titolo → luogo →
       dati con icone → azioni ancorate in fondo. Niente foto nelle card:
       le immagini vivono nei popup della mappa e nelle pagine opera. --- */
.sede-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }

.sede-body { display: flex; flex-direction: column; flex: 1; padding: 1.7rem 1.7rem 1.8rem; }
.sede-body h3 { color: var(--green-mid); font-size: clamp(1.35rem, 1.25rem + .35vw, 1.6rem); line-height: 1.25; margin-bottom: .35rem; }
.sede-luogo {
  font-family: var(--font-ui); font-size: .82rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 1.2rem;
}
.sede-dati { list-style: none; display: grid; gap: .7rem; margin-bottom: 1.5rem; }
.sede-dati li { display: flex; gap: .7rem; align-items: flex-start; font-size: clamp(1rem, .96rem + .25vw, 1.14rem); line-height: 1.5; overflow-wrap: anywhere; }
.sede-dati .ico { flex: none; margin-top: .28em; color: var(--gold-deep); }
.sede-dati a { border-bottom: 1px solid var(--line); }
.sede-dati a:hover { border-color: var(--gold); }

.sede-azioni { margin-top: auto; padding-top: .3rem; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.sede-azioni a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-ui); font-weight: 600; font-size: .98rem; color: var(--green);
}
.sede-azioni a:hover { color: var(--gold-deep); }
.sede-azioni .ico { color: currentColor; }

/* Popup Leaflet: foto in testa + link interno */
.leaflet-popup-content .popup-foto { width: calc(100% + 2px); aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; margin-bottom: .6rem; display: block; }
.leaflet-popup-content .popup-link { font-weight: 700; }

/* =========================================================================
   Footer (verde profondo, chiude ad anello con l'hero) — 4 colonne
   ========================================================================= */
.site-footer { position: relative; z-index: 1; background: radial-gradient(120% 130% at 50% 0%, var(--green-mid), var(--green-deep)); color: var(--on-dark-soft); padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(1.8rem, 4vw, 2.5rem); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.15fr 1.25fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.foot-brand .foot-crest { width: 62px; height: 62px; border-radius: 50%; background: #fff; padding: 4px; margin-bottom: 1rem; }
.foot-brand .foot-name { font-family: var(--font-title); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--on-dark); }
.site-footer .pax { font-family: var(--font-title); letter-spacing: .42em; text-transform: uppercase; font-size: .88rem; color: var(--gold-light); margin: .5rem 0 1rem; }
.foot-desc { font-size: 1.02rem; line-height: 1.65; max-width: 30ch; }
.foot-title { font-family: var(--font-ui); font-weight: 600; font-size: .88rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1rem; }
.foot-col ul { list-style: none; display: grid; gap: .45rem; }
.foot-col li { font-size: 1.05rem; line-height: 1.5; }
.foot-col a { color: var(--on-dark); }
.foot-col a:hover { color: var(--gold-light); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(243,236,219,.16); margin-top: clamp(2.5rem, 6vw, 3.5rem); padding-top: 1.5rem; }
.site-footer .copy { font-size: .98rem; opacity: .85; }
.site-footer .legal-links a { color: var(--on-dark-soft); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .legal-links a:hover { color: var(--gold-light); }
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; text-align: center; }
  .foot-brand .foot-crest { margin-inline: auto; }
  .foot-desc { margin-inline: auto; }
  .foot-bottom { justify-content: center; text-align: center; }
}

/* Pagine legali: l'embed iubenda eredita una tipografia leggibile */
.legal-embed { font-family: var(--font-ui); font-size: 1.02rem; line-height: 1.65; }
.legal-embed h1, .legal-embed h2, .legal-embed h3 { font-family: var(--font-title); }

/* =========================================================================
   Archivio opere per categoria
   ========================================================================= */
.opere-group + .opere-group { margin-top: clamp(3.5rem, 8vw, 6rem); }
.opere-group-head { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: center; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.opere-group-head .filter-dot { width: 16px; height: 16px; }
.opere-group-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.opere-group-head p { grid-column: 2; color: var(--ink-soft); font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem); max-width: 62ch; }

/* Card opera senza foto propria: variante testuale con il colore della categoria */
.opera-card.no-photo { border-top: 4px solid var(--cat, var(--gold)); padding: 0; }
.opera-card.no-photo .opera-body { padding-top: 2rem; }
.opera-card.no-photo h3::after { content: ""; display: block; width: 52px; height: 1px; background: var(--line); margin-top: .8rem; }

/* =========================================================================
   Pagina singola opera: cover grande + carosello galleria
   ========================================================================= */
.opera-cover { position: relative; }
.opera-cover img { width: 100%; max-height: min(74vh, 720px); object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 40px 80px -46px rgba(var(--shadow),.65); }
.opera-cover .caption { margin-top: .8rem; font-size: clamp(1rem, .95rem + .25vw, 1.15rem); font-style: italic; color: var(--ink-soft); text-align: center; }

.gallery-swiper { position: relative; padding: 0 clamp(2.5rem, 6vw, 4rem) 3rem; }
.gal-slide { width: auto; max-width: min(86vw, 900px); }
.gal-slide a { display: block; height: clamp(300px, 52vh, 560px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 26px 60px -40px rgba(var(--shadow),.6); }
.gal-slide img { height: 100%; width: auto; max-width: none; display: block; transition: transform .6s; }
.gal-slide a:hover img { transform: scale(1.03); }
.gallery-swiper .gal-nav { top: 50%; transform: translateY(-70%); }
.gallery-swiper .swiper-button-prev.gal-nav { left: 0; }
.gallery-swiper .swiper-button-next.gal-nav { right: 0; }
.gal-pagination.swiper-pagination { position: absolute; bottom: .4rem; left: 0; right: 0; }
.gal-pagination .swiper-pagination-bullet { background: var(--gold); opacity: .35; width: 9px; height: 9px; }
.gal-pagination .swiper-pagination-bullet-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .gal-slide a:hover img { transform: none; } }

/* =========================================================================
   Timeline verticale (pagina La Storia): anno in oro su colonna sinistra,
   linea continua con punti, schede testo a destra.
   ========================================================================= */
.tl-vert { list-style: none; max-width: 60rem; margin-inline: auto; position: relative; }
.tl-vert::before { content: ""; position: absolute; top: .6rem; bottom: .6rem; left: clamp(5.2rem, 12vw, 8.2rem); width: 2px; background: linear-gradient(180deg, transparent, var(--gold) 4%, var(--gold) 96%, transparent); }
.tl-vert-item { position: relative; display: grid; grid-template-columns: clamp(4rem, 10vw, 6.5rem) 1fr; gap: clamp(2.2rem, 6vw, 3.6rem); padding-block: clamp(1.2rem, 3vw, 1.9rem); }
.tl-vert-item::before { content: ""; position: absolute; left: clamp(5.2rem, 12vw, 8.2rem); top: calc(clamp(1.2rem, 3vw, 1.9rem) + .95em); transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px rgba(176,141,87,.45); }
.tl-vert-year { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--gold-deep); line-height: 1.2; text-align: right; }
.tl-vert-body h3 { font-size: clamp(1.3rem, 1.2rem + .4vw, 1.6rem); color: var(--green-mid); margin-bottom: .35rem; }
.tl-vert-body p { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--ink-soft); }
@media (max-width: 620px) {
  .tl-vert::before { left: 1rem; }
  .tl-vert-item { grid-template-columns: 1fr; gap: .3rem; padding-left: 2.6rem; }
  .tl-vert-item::before { left: 1rem; top: 1.35rem; }
  .tl-vert-year { text-align: left; }
}

/* =========================================================================
   Preghiere (pagina Preghiere): strofe grandi, centrate, da libro liturgico
   ========================================================================= */
.preghiera { text-align: center; padding-block: clamp(2rem, 5vw, 3.2rem); }
.preghiera blockquote { font-family: var(--font-title); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.45; color: var(--green-mid); }
.preghiera blockquote p { max-width: none; }
.preghiera blockquote p + p { margin-top: 1.2rem; }
.preghiera cite { display: block; font-style: normal; font-family: var(--font-ui); font-weight: 600; font-size: clamp(.85rem, .8rem + .2vw, .98rem); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin-top: 1.4rem; }

/* Orazioni con approvazione ecclesiastica (Triduo/Novena, Orazione, Intercessione):
   sono prosa lunga, non pensieri brevi. Centrate e a 2.1rem come le altre
   diventerebbero un muro di corsivo: qui vanno a bandiera con corpo minore e
   misura di riga leggibile. Titolo e firma restano centrati. */
.preghiera--orazione { text-align: left; }
.preghiera--orazione > h3, .preghiera--orazione cite { text-align: center; }
/* Il titolo dell'orazione deve dominare la scheda: la nota di approvazione, in
   maiuscoletto oro spaziato, pesava di più e ribaltava la gerarchia. */
/* Corpo cresciuto → il titolo va alzato di conseguenza, altrimenti la scala di
   h3 (max 2rem) finisce alla pari col testo e la gerarchia si appiattisce.
   Resta comunque sotto l'h2 del sito (max 3.4rem). */
.preghiera--orazione > h3 {
  font-size: clamp(1.9rem, 1.6rem + 1.3vw, 2.6rem);
  margin-bottom: clamp(1.1rem, 2.5vw, 1.6rem);
}
/* «Con approvazione ecclesiastica»: postilla editoriale, non firma d'autore. */
.preghiera--orazione .nota-eccl {
  margin-top: clamp(1.4rem, 3vw, 2rem); text-align: center;
  font-family: var(--font-ui); font-style: italic; font-weight: 400;
  font-size: .8rem; letter-spacing: .01em; text-transform: none;
  color: var(--ink-soft); opacity: .8;
}
/* Corpo quasi pari a quello dei pensieri brevi (che arrivano a 2.1rem): sono
   preghiere, si leggono ad alta voce, e da mobile il corpo piccolo non teneva.
   Resta a bandiera, non centrato, perché è prosa lunga. */
.preghiera--orazione blockquote { font-size: clamp(1.45rem, 1.25rem + .9vw, 1.95rem); line-height: 1.5; }
.preghiera--orazione blockquote p { max-width: 60ch; margin-inline: auto; }
.preghiera--orazione blockquote p + p { margin-top: 1rem; }
/* Risposta del fedele: staccata e in corpo minore, come sul santino */
.preghiera--orazione blockquote p.risposta { font-size: .84em; color: var(--gold-deep); margin-top: 1.3rem; }
.preghiera--orazione blockquote p.risposta + p { margin-top: 1.6rem; }

/* Card citazione (pagina Madre Colomba, "Le sue parole") */
.parola-card { text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.parola-card p { font-family: var(--font-title); font-style: italic; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.7rem); line-height: 1.45; color: var(--green-mid); max-width: none; }
.parola-card cite { font-style: normal; font-family: var(--font-ui); font-weight: 600; font-size: clamp(.8rem, .75rem + .2vw, .92rem); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }

/* =========================================================================
   Lightbox (gallerie): overlay scuro, foto grande, frecce, contatore.
   Creato da main.js; nessuna dipendenza esterna.
   ========================================================================= */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s ease; }
/* NB: display:flex qui sopra vincerebbe sull'attributo hidden (gli stili
   dell'autore battono il foglio del browser): senza questa riga l'overlay
   invisibile coprirebbe la pagina bloccando ogni click. Non rimuoverla. */
.lightbox[hidden] { display: none; }
.lightbox.in { opacity: 1; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(14, 18, 13, .93); }
.lb-stage { position: relative; z-index: 1; max-width: min(92vw, 1400px); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lb-stage img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 40px 120px -30px rgba(0,0,0,.9); background: #111; }
.lb-caption { font-family: var(--font-title); font-style: italic; font-size: clamp(1.05rem, 1rem + .3vw, 1.3rem); color: var(--on-dark); text-align: center; }
.lb-btn { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(243,236,219,.1); border: 1px solid rgba(243,236,219,.35); color: var(--on-dark); cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.lb-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--green-deep); }
.lb-close { top: max(1.2rem, env(safe-area-inset-top)); right: max(1.2rem, env(safe-area-inset-right)); }
.lb-prev { left: max(1rem, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(1rem, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; z-index: 2; bottom: max(1.1rem, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font-family: var(--font-ui); font-size: .95rem; letter-spacing: .08em; color: var(--on-dark-soft); }
@media (max-width: 640px) {
  .lb-btn { width: 44px; height: 44px; }
  .lb-prev { left: .5rem; } .lb-next { right: .5rem; }
  .lb-stage { max-width: 96vw; }
  .lb-stage img { max-height: 74vh; }
}
@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } }

/* =========================================================================
   Comparse allo scroll
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .opera-card:hover .opera-photo img, .gallery a:hover img { transform: none; }
}

/* Modalità screenshot (?shot=1): niente animazioni, hero ad altezza naturale */
.shot .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.shot .hero { min-height: auto !important; }
