/* Dr. R. Renée Fabbiocchi · stile chiesto da Renée e Davide (bozza 14/11/2026):
   elegante e pulito, fondo crema perché le opere sono già molto colorate, tipografia Palatino. */
:root {
  --crema: #faf6ee;
  --crema2: #f3ecdf;
  --carta: #fffdf8;
  --inchiostro: #1d2747;
  --testo: #3a4157;
  --tenue: #6b6f7d;
  --oro: #b08a3e;
  --oro-l: #d9bf86;
  --linea: rgba(29,39,71,.14);
  --ff: "Palatino Linotype", Palatino, "Palatino LT STD", "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --ff-ui: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --pad: clamp(18px, 5vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--crema); color: var(--testo); font-family: var(--ff); font-size: 18px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--inchiostro); text-decoration-color: var(--oro-l); text-underline-offset: 3px; }
a:hover { color: var(--oro); }
h1, h2, h3 { font-family: var(--ff); font-weight: 400; color: var(--inchiostro); line-height: 1.15; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--oro); }
mark { background: linear-gradient(transparent 62%, rgba(217,191,134,.5) 62%); color: inherit; padding: 0 .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }

/* Due lingue: ogni testo ha la sua coppia .it / .en */
html[lang="it"] .en, html[lang="en"] .it { display: none !important; }

.sec { padding: clamp(80px, 11vw, 150px) var(--pad); }
.occhiello { font-family: var(--ff-ui); font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--oro); margin: 0 0 26px; text-align: center; }
.occhiello::after { content: ''; display: block; width: 40px; height: 1px; background: var(--oro-l); margin: 14px auto 0; }

/* Pulsanti sottili, come nei loro riferimenti */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; font-family: var(--ff-ui); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: background .3s, color .3s, border-color .3s; cursor: pointer; }
.btn-linea { border: 1px solid var(--inchiostro); color: var(--inchiostro); background: transparent; }
.btn-linea:hover { background: var(--inchiostro); color: var(--crema); }
.btn-pieno { background: var(--inchiostro); color: var(--crema); border: 1px solid var(--inchiostro); }
.btn-pieno:hover { background: var(--oro); border-color: var(--oro); color: #fff; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ===== Apertura: clessidra d'oro su crema, poi il nome ===== */
.intro { display: none; }
.intro-on .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: radial-gradient(ellipse 60% 55% at 50% 45%, #fffdf7 0%, var(--crema) 55%, #efe6d3 100%); animation: introVia 1s var(--ease) 2.5s forwards; }
.intro-on:not(.intro-done) body { overflow: hidden; }
.intro-mark { display: flex; flex-direction: column; align-items: center; text-align: center; animation: introSale 1.1s var(--ease) 2.35s forwards; }
.intro-glass { width: 58px; height: auto; overflow: visible; }
.ig-line { fill: none; stroke: var(--oro); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: traccia 1.3s var(--ease) .1s forwards; }
.ig-sole { fill: var(--oro); opacity: 0; transform-origin: 60px 90px; animation: sole 1s var(--ease) 1.1s forwards; }
.intro-nome { margin: 22px 0 6px; font-family: var(--ff); font-style: italic; font-size: clamp(2.8rem, 8vw, 4.6rem); line-height: 1; color: var(--inchiostro); opacity: 0; filter: blur(10px); animation: nitido 1.2s var(--ease) .9s forwards; }
.intro-sub { margin: 0; font-family: var(--ff-ui); font-size: 11px; letter-spacing: .5em; text-transform: uppercase; color: var(--oro); opacity: 0; animation: stringe 1.3s var(--ease) 1.3s forwards; }
@keyframes traccia { to { stroke-dashoffset: 0; } }
@keyframes sole { 0% { opacity: 0; transform: scale(.2); } 60% { opacity: 1; transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }
@keyframes nitido { to { opacity: 1; filter: none; } }
@keyframes stringe { from { opacity: 0; letter-spacing: .9em; } to { opacity: 1; letter-spacing: .32em; } }
@keyframes introSale { to { opacity: 0; transform: translateY(-30px) scale(1.06); filter: blur(4px); } }
@keyframes introVia { to { opacity: 0; visibility: hidden; } }

/* ===== Menu ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px var(--pad); background: rgba(250,246,238,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); transition: transform .45s var(--ease); }
.nav.hide { transform: translateY(-100%); }
.nav-logo { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; line-height: 1.35; }
.nav-logo span { font-family: var(--ff); font-size: 1.2rem; color: var(--inchiostro); }
.nav-logo small { font-family: var(--ff); font-style: italic; font-size: .82rem; color: var(--tenue); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-family: var(--ff-ui); font-size: 13px; letter-spacing: .04em; color: var(--testo); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.nav-links a:hover { color: var(--inchiostro); border-color: var(--oro); }
.lingue { display: flex; border: 1px solid var(--linea); border-radius: 2px; }
.lingue button, .lingue a { border: 0; background: none; padding: 6px 10px; font-family: var(--ff-ui); font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--tenue); cursor: pointer; }
html[lang="it"] .lingue [data-lang="it"], html[lang="en"] .lingue [data-lang="en"] { background: var(--inchiostro); color: var(--crema); }
.nav-menu { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-menu i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--inchiostro); transition: transform .3s, top .3s; }
.nav-menu i:first-of-type { top: 15px; } .nav-menu i:last-of-type { top: 24px; }
.nav-menu[aria-expanded="true"] i:first-of-type { top: 19.5px; transform: rotate(45deg); }
.nav-menu[aria-expanded="true"] i:last-of-type { top: 19.5px; transform: rotate(-45deg); }

/* ===== Apertura: anello delle Veneri + motto ===== */
.hero { overflow: clip; padding: 120px var(--pad) clamp(70px, 9vw, 120px); text-align: center; background: radial-gradient(ellipse 70% 50% at 50% 30%, #fffdf8, var(--crema) 70%); }
.anello-scena { --w: clamp(150px, 17vw, 210px); height: calc(var(--w) * 2.1 + 40px); perspective: 1400px; perspective-origin: 50% 32%; display: grid; place-items: center; }
.anello { position: relative; width: var(--w); height: calc(var(--w) * 1.3); transform-style: preserve-3d; transform: rotateX(-5deg) rotateY(var(--rot, 0deg)); transition: transform 1s var(--ease); touch-action: pan-y; }
.anello.trascina { transition: none; }
.venere { position: absolute; inset: 0; padding: 0; border: 0; background: #fff; cursor: zoom-in; transform: rotateY(calc(var(--i) * var(--passo, 40deg))) translateZ(var(--r, 330px)); box-shadow: 0 0 0 7px #fff, 0 22px 40px rgba(29,39,71,.16); -webkit-box-reflect: below 14px linear-gradient(transparent 72%, rgba(255,255,255,.28)); filter: saturate(.85) brightness(.97); transition: filter .6s, box-shadow .6s; -webkit-tap-highlight-color: transparent; }
.venere img { width: 100%; height: 100%; object-fit: cover; }
.venere.fronte { filter: none; box-shadow: 0 0 0 7px #fff, 0 0 0 8px var(--oro-l), 0 28px 50px rgba(29,39,71,.22); }
.anello-ctrl, .car-ctrl { display: flex; align-items: center; justify-content: center; gap: 20px; }
.hero .anello-ctrl { position: relative; z-index: 2; margin-top: calc(var(--w, 180px) * .12 + 24px); }
.hero { --w: clamp(150px, 17vw, 210px); }
.anello-nome { margin: 0; min-width: 14ch; font-size: 1.15rem; color: var(--inchiostro); }
.giro { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--linea); border-radius: 50%; background: var(--carta); color: var(--inchiostro); cursor: pointer; transition: border-color .3s, background .3s; }
.giro:hover { border-color: var(--oro); background: #fff; }
.motto { margin: 0 auto; max-width: 980px; }
.motto-grande { font-style: italic; font-size: clamp(2.2rem, 5.6vw, 4.6rem); line-height: 1.12; color: var(--inchiostro); margin: 0; }
.motto-grande span { display: block; }
.motto-grande .m1 { text-align: left; }
.motto-grande .m2 { text-align: right; }
.motto-grande b { font-weight: 400; color: var(--oro); font-style: normal; }
.motto-en { margin: 22px 0 0; font-size: 1rem; color: var(--tenue); }
.filetto { display: block; width: 46px; height: 1px; background: var(--oro-l); margin: 34px auto; }
.motto-vita { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.45; color: var(--inchiostro); margin: 0; }

/* ===== Il mondo delle I.Dee ===== */
.idee { text-align: center; padding-top: clamp(40px, 6vw, 80px); }
.idee > h2 { font-style: italic; margin-bottom: clamp(30px, 4vw, 50px); }
.idee .motto-vita { max-width: 760px; margin: 0 auto; }
.idee .motto { margin-top: 0; }
.idee-testo { max-width: 760px; margin: clamp(60px, 8vw, 100px) auto 0; text-align: left; }
.idee-perche { font-style: italic; text-align: center; margin-bottom: 28px; }
.idee-foto { margin: clamp(50px, 7vw, 90px) auto 0; max-width: 380px; }
.idee-foto img { width: 100%; box-shadow: 0 0 0 10px var(--carta), 0 30px 60px rgba(29,39,71,.14); }
.idee-foto figcaption { margin-top: 20px; font-style: italic; font-size: .98rem; color: var(--tenue); }
.idee-lista { list-style: none; margin: 0; padding: 0; }
.idee-lista li { position: relative; padding: 0 0 22px 30px; }
.idee-lista li::before { content: ''; position: absolute; left: 4px; top: .8em; width: 7px; height: 7px; border-radius: 50%; background: var(--oro); }

/* ===== Philosophy ===== */
.filosofia { background: var(--carta); border-top: 1px solid var(--linea); padding-bottom: 50px; }
.filo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 80px); max-width: 1180px; margin: 0 auto; align-items: center; }
.capitoli h2 { margin-bottom: 20px; }
.capitoli ol { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: cap; }
.capitoli li { counter-increment: cap; border-top: 1px solid var(--linea); }
.capitoli li:last-child { border-bottom: 1px solid var(--linea); }
.capitoli button { width: 100%; display: grid; grid-template-columns: 30px 1fr auto; align-items: baseline; gap: 8px; padding: 12px 0; border: 0; background: none; text-align: left; color: var(--inchiostro); cursor: pointer; font-size: 1.05rem; transition: color .3s; }
.capitoli button::before { content: counter(cap) "."; color: var(--tenue); }
.capitoli button:hover { color: var(--oro); }
.capitoli time { font-family: var(--ff-ui); font-size: 11px; color: var(--tenue); }
.video { position: relative; aspect-ratio: 16 / 9; background: #e9e1d2; overflow: hidden; border-radius: 3px; box-shadow: 0 30px 60px rgba(29,39,71,.16); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.video-play img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.video-play:hover img { transform: scale(1.03); }
.play { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,253,248,.92); color: var(--inchiostro); box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: transform .4s var(--ease); }
.play svg { margin-left: 3px; }
a:hover .play, .video-play:hover .play { transform: scale(1.08); }
.nota-video { margin: 12px 0 0; font-family: var(--ff-ui); font-size: 12px; color: var(--tenue); }
.simboli-intro { max-width: 640px; margin: clamp(80px, 10vw, 130px) auto 0; text-align: center; }
.simboli-intro h3 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-style: italic; margin-bottom: 12px; }
.simboli-intro p { color: var(--tenue); margin: 0; }

/* ===== I quattro simboli: galleria orizzontale ===== */
.sala { position: relative; background: var(--carta); }
.sala-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; background: linear-gradient(180deg, var(--carta) 0%, var(--carta) 72%, var(--crema2) 72%, var(--crema) 100%); }
.sala-track { display: flex; align-items: center; gap: clamp(50px, 6vw, 96px); padding: 0 clamp(24px, 9vw, 140px); height: 100%; will-change: transform; }
.stanza-targa { flex: 0 0 280px; padding: 24px 0 24px 24px; border-left: 1px solid var(--oro-l); }
.stanza-targa h3 { font-style: italic; font-size: 2rem; margin-bottom: 12px; }
.stanza-targa p { font-size: .98rem; line-height: 1.65; margin: 0; }
.opera { --lit: 0; flex: 0 0 auto; position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; text-align: left; -webkit-tap-highlight-color: transparent; }
.opera::before { content: ''; position: absolute; left: 50%; bottom: 30%; width: 170%; height: 150%; transform: translateX(-50%); background: radial-gradient(ellipse 36% 52% at 50% 0%, rgba(255,226,160,.42), transparent 72%); opacity: var(--lit); pointer-events: none; transition: opacity .2s linear; }
.opera img { position: relative; height: var(--h); width: auto; max-width: none; box-shadow: 0 0 0 9px #fff, 0 24px 50px rgba(29,39,71,calc(.08 + var(--lit) * .14)); filter: saturate(calc(.7 + var(--lit) * .3)); transition: filter .2s linear, transform .6s var(--ease); }
.opera:hover img { transform: translateY(-4px); }
.s-s { --h: clamp(220px, 34vh, 340px); }
.s-m { --h: clamp(260px, 44vh, 440px); }
.s-l { --h: clamp(300px, 54vh, 540px); }
.h-hi { margin-bottom: 9vh; } .h-lo { margin-top: 9vh; }
.cartellino { display: block; position: static; margin-top: 18px; width: auto; font-family: var(--ff-ui); font-size: 12px; line-height: 1.45; color: var(--tenue); }
.cartellino b { display: block; font-family: var(--ff); font-style: italic; font-weight: 400; font-size: 15px; color: var(--inchiostro); margin-bottom: 2px; }
.opera + .opera { margin-left: 30px; }
.sala-fine { flex: 0 0 8vw; }

/* ===== Life ===== */
.vita-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 7vw, 100px); max-width: 1160px; margin: 0 auto; align-items: start; }
.libro { margin: 0; position: sticky; top: 110px; }
.libro img { width: 100%; max-width: 360px; filter: drop-shadow(0 24px 30px rgba(29,39,71,.18)); }
.libro figcaption { margin-top: 26px; font-size: .95rem; color: var(--tenue); max-width: 34ch; }
.libro figcaption a { display: inline-block; margin-top: 8px; font-family: var(--ff-ui); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.auto-citazione { margin: 0; padding: 0 0 0 clamp(20px, 3vw, 40px); border-left: 1px solid var(--oro-l); font-style: italic; font-size: 1.12rem; color: var(--inchiostro); }
.auto-citazione cite { display: block; margin-top: 8px; font-family: var(--ff-ui); font-style: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); }
.obe { max-width: 760px; margin: clamp(80px, 10vw, 130px) auto 0; text-align: center; }
.obe h3 { font-style: italic; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 20px; }
.obe-testo { margin-top: 26px; text-align: left; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.obe-testo summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-family: var(--ff-ui); font-size: 13px; letter-spacing: .04em; color: var(--inchiostro); text-align: center; }
.obe-testo summary::-webkit-details-marker { display: none; }
.obe-testo summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font-family: var(--ff); font-size: 1.6rem; color: var(--oro); transition: transform .3s; }
.obe-testo[open] summary::after { transform: rotate(45deg); }
.obe-testo > div { padding: 10px 0 30px; }
.firma-renee { font-style: italic; color: var(--inchiostro); text-align: right; }

/* Caroselli orizzontali (foto, referenze) */
.carosello { margin: clamp(70px, 9vw, 110px) calc(var(--pad) * -1) 0; }
.car-track, .ref-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 10px var(--pad) 30px; scrollbar-width: none; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar, .ref-track::-webkit-scrollbar { display: none; }
.car-track figure { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.car-track img { height: clamp(260px, 42vh, 420px); width: auto; max-width: none; box-shadow: 0 0 0 8px #fff, 0 20px 40px rgba(29,39,71,.14); }
.carosello .car-ctrl { margin-top: 8px; }

/* ===== Il curriculum nella clessidra ===== */
.percorso { background: var(--carta); border-top: 1px solid var(--linea); }
.perc-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 90px); }
.perc-side { position: sticky; top: 110px; align-self: start; }
.perc-side h2 { margin-bottom: 18px; }
.perc-side h2 em { display: block; font-style: italic; }
.perc-side p { max-width: 34ch; margin-bottom: 26px; }
.clessidra { display: block; width: clamp(100px, 11vw, 140px); height: auto; margin-top: 34px; overflow: visible; }
.clessidra .vetro { fill: none; stroke: var(--inchiostro); stroke-width: 1.6; stroke-linecap: round; }
.sabbia-top { fill: var(--inchiostro); transform: translateY(calc(var(--p, 0) * 82px)); }
.sabbia-bot { fill: #5b6fa3; transform: translateY(calc(var(--p, 0) * -82px)); }
.filo { stroke: var(--oro); stroke-width: 1.2; stroke-dasharray: 2 5; animation: filo .6s linear infinite; opacity: calc(1 - var(--p, 0) * var(--p, 0)); }
@keyframes filo { to { stroke-dashoffset: -7; } }
.tappe { list-style: none; margin: 0; padding: 0; position: relative; }
.tappe::before { content: ''; position: absolute; left: 76px; top: 10px; bottom: 10px; width: 1px; background: var(--oro-l); }
.tappe li { display: grid; grid-template-columns: 62px 1fr; column-gap: 44px; padding: 0 0 32px; position: relative; }
.tappe li::after { content: ''; position: absolute; left: 72px; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--carta); box-shadow: inset 0 0 0 1.5px var(--oro); }
.anno { font-family: var(--ff-ui); font-size: 13px; font-weight: 500; color: var(--oro); padding-top: 4px; text-align: right; }
.tappe h3 { font-size: 1.25rem; margin: 0 0 4px; }
.tappe p { margin: 0; max-width: 56ch; font-size: 1rem; }
.cv-prima { margin-top: 6px; border-top: 1px solid var(--linea); }
.cv-prima summary { cursor: pointer; padding: 18px 0; font-family: var(--ff-ui); font-size: 13px; letter-spacing: .04em; color: var(--inchiostro); }
.cv-prima .tappe { margin-top: 20px; }

/* ===== Stellina ===== */
.stel-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 100px); max-width: 1080px; margin: 0 auto; align-items: center; }
.video-fb, .video-reel { position: relative; display: block; border-radius: 3px; overflow: hidden; box-shadow: 0 30px 60px rgba(29,39,71,.18); text-decoration: none; }
.video-fb img, .video-reel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.video-reel img { aspect-ratio: 9 / 14; }
.video-fb:hover img, .video-reel:hover img { transform: scale(1.03); }
.video-fb::after, .video-reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(20,24,44,.7)); }
.video-lab { position: absolute; left: 22px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; font-family: var(--ff-ui); font-size: 12px; color: rgba(255,255,255,.85); }
.video-lab b { font-family: var(--ff); font-weight: 400; font-size: 1.5rem; color: #fff; }
.stel-testo h2 { letter-spacing: .12em; margin-bottom: 22px; }
.stel-lead { font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--inchiostro); }
.stel-testo .btn { margin-top: 12px; text-transform: none; letter-spacing: .03em; font-size: 14px; }

/* ===== Opera Omnia: proiezione in dissolvenza ===== */
.omnia { background: var(--carta); border-top: 1px solid var(--linea); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.omnia-testo { max-width: 460px; justify-self: end; }
.omnia-sub { font-style: italic; font-size: 1.25rem; line-height: 1.45; color: var(--inchiostro); margin: 14px 0 24px; }
.omnia-testo .btn { margin-top: 10px; }
.proiezione { max-width: 640px; }
.pr-schermo { position: relative; aspect-ratio: 1 / 1.08; }
.pr-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; pointer-events: none; }
.pr-slide.on { opacity: 1; pointer-events: auto; }
.pr-slide { transition: opacity 1.8s ease; }
.pr-a { position: absolute; left: 0; right: 0; top: 0; bottom: 74px; margin: auto; width: auto; height: auto; max-width: 100%; max-height: calc(100% - 74px); box-shadow: 0 0 0 8px #fff, 0 22px 40px rgba(29,39,71,.16); cursor: zoom-in; transform: scale(.95); filter: blur(5px); transition: transform 6.5s cubic-bezier(.2,.7,.2,1), filter 1.8s ease; }
.pr-slide.on .pr-a { transform: scale(1); filter: blur(0); }
.pr-slide figcaption { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; }
.pr-slide figcaption b { font-weight: 400; font-style: italic; font-size: 1.3rem; color: var(--inchiostro); }
.pr-slide figcaption span { font-family: var(--ff-ui); font-size: 12px; color: var(--tenue); }
.pr-slide figcaption::after { content: ''; width: 30px; height: 1px; background: var(--oro-l); margin-top: 10px; }
.pr-punti { display: flex; gap: 10px; margin-top: 24px; }
.pr-punti button { width: 26px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.pr-punti button::after { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 1.5px; background: var(--linea); transition: background .3s; }
.pr-punti button.on::after { background: var(--oro); }

/* ===== Offers ===== */
.offerte h2 { text-align: center; margin-bottom: clamp(40px, 6vw, 70px); }
.offerte-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); max-width: 1160px; margin: 0 auto; }
.offerta figure { margin: 0 0 24px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--crema2); }
.offerta figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.offerta:hover figure img { transform: scale(1.04); }
.offerta h3 { font-style: italic; margin-bottom: 10px; }
.offerta p { font-size: 1rem; }
.offerta a { font-family: var(--ff-ui); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }

/* ===== References ===== */
.referenze { background: var(--carta); border-top: 1px solid var(--linea); padding-left: 0; padding-right: 0; }
.ref-testa { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 0 var(--pad); max-width: 1300px; margin: 0 auto 36px; }
.ref { flex: 0 0 clamp(260px, 30vw, 380px); scroll-snap-align: start; padding: 30px 30px 26px; background: var(--crema); border-top: 1px solid var(--oro-l); display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; }
.ref-cit p { font-style: italic; font-size: 1.12rem; line-height: 1.55; color: var(--inchiostro); }
.ref-cit > span { font-family: var(--ff-ui); font-size: 12px; color: var(--tenue); }
.ref-mostra { justify-content: flex-end; }
.ref-anno { font-family: var(--ff-ui); font-size: 12px; letter-spacing: .14em; color: var(--oro); margin-bottom: auto; }
.ref-mostra h3 { font-size: 1.5rem; margin: 30px 0 6px; }
.ref-mostra p { margin: 0; color: var(--tenue); font-size: 1rem; }

/* ===== Latest ===== */
.evento { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 160px 1fr; gap: clamp(24px, 5vw, 60px); padding: clamp(30px, 5vw, 50px); background: var(--carta); border: 1px solid var(--linea); }
.evento time { display: flex; flex-direction: column; border-right: 1px solid var(--oro-l); padding-right: 20px; font-family: var(--ff-ui); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--oro); }
.evento time b { font-family: var(--ff); font-weight: 400; font-size: 3rem; line-height: 1; letter-spacing: 0; color: var(--inchiostro); margin-bottom: 8px; }
.evento h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.evento-tipo { font-style: italic; color: var(--oro); }

/* ===== Call to action ===== */
.sostieni { padding: clamp(90px, 12vw, 160px) var(--pad); background: var(--inchiostro); color: rgba(250,246,238,.86); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.aristotele { margin: 0; max-width: 560px; justify-self: end; }
.aristotele p { font-style: italic; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.3; color: var(--crema); margin: 0 0 20px; }
.aristotele cite { font-family: var(--ff-ui); font-style: normal; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--oro-l); }
.sost-testo { max-width: 520px; font-size: 1.02rem; }
.missione { margin: 0 0 30px; padding-left: 1.2em; }
.missione li { margin-bottom: 6px; color: var(--crema); }
.sostieni .btn-pieno { background: var(--crema); color: var(--inchiostro); border-color: var(--crema); }
.sostieni .btn-pieno:hover { background: var(--oro-l); border-color: var(--oro-l); }

/* ===== Contact ===== */
.contatti-lead { max-width: 640px; margin: 0 auto clamp(50px, 7vw, 90px); text-align: center; font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.45; color: var(--inchiostro); }
.luogo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: clamp(36px, 6vw, 90px); max-width: 1100px; margin: 0 auto; align-items: center; }
.luogo + .luogo { margin-top: clamp(80px, 10vw, 130px); padding-top: clamp(80px, 10vw, 130px); border-top: 1px solid var(--linea); }
.luogo-b { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.luogo-testo h3 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.luogo-sub { font-style: italic; font-size: 1.2rem; color: var(--tenue); }
.luogo-cit { margin: 26px 0; padding-left: 20px; border-left: 1px solid var(--oro-l); }
.luogo-cit p { font-style: italic; color: var(--inchiostro); margin: 0 0 4px; }
.luogo-cit cite { font-family: var(--ff-ui); font-style: normal; font-size: 12px; color: var(--tenue); }
.indirizzo { font-size: 1.35rem; line-height: 1.35; color: var(--inchiostro); margin-bottom: 6px; }
.nota { font-family: var(--ff-ui); font-size: 13px; color: var(--tenue); }
.luogo-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 22px; }
.link-mappa { border: 0; background: none; padding: 0; font-family: var(--ff-ui); font-size: 13px; color: var(--inchiostro); text-decoration: underline; text-decoration-color: var(--oro-l); text-underline-offset: 3px; cursor: pointer; }
.map-note { display: block; margin-top: 12px; font-family: var(--ff-ui); font-size: 12px; color: var(--tenue); }
.mappa { margin-top: 20px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; }
.mappa iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-reel { max-width: 360px; justify-self: center; }
.luogo-foto { margin: 0; }
.luogo-foto img { width: 100%; box-shadow: 0 0 0 10px var(--carta), 0 30px 60px rgba(29,39,71,.16); }

/* ===== Footer ===== */
.piede { padding: 70px var(--pad) 110px; text-align: center; border-top: 1px solid var(--linea); font-family: var(--ff-ui); font-size: 13px; color: var(--tenue); }
.piede p { margin: 0 0 8px; }
.piede-nome { font-family: var(--ff); font-size: 1.5rem; color: var(--inchiostro); }
.piede-sub { font-family: var(--ff); font-style: italic; font-size: 1rem; margin-bottom: 22px !important; }
.piede a { color: var(--testo); }
.firma { margin-top: 18px !important; }

/* ===== Visore ===== */
.visore { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; background: rgba(250,246,238,.97); opacity: 0; transition: opacity .4s; }
.visore[hidden] { display: none; }
.visore.aperto { opacity: 1; }
.v-quadro { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; max-height: 100svh; padding: 60px 0 30px; }
.v-cornice { overflow: hidden; cursor: zoom-in; box-shadow: 0 0 0 10px #fff, 0 30px 70px rgba(29,39,71,.25); max-width: 100%; }
.v-cornice img { max-height: calc(100svh - 170px); max-width: min(100%, 1100px); width: auto; transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform .5s var(--ease); animation: vEntra .7s var(--ease); }
.v-cornice.zoom { cursor: zoom-out; }
.v-cornice.zoom img { transform: scale(2.4); }
@keyframes vEntra { from { opacity: 0; transform: scale(.97); } }
.v-quadro figcaption { text-align: center; font-family: var(--ff-ui); font-size: 13px; color: var(--tenue); display: flex; flex-direction: column; gap: 4px; }
.v-desc { font-family: var(--ff); font-style: italic; font-size: 1.2rem; color: var(--inchiostro); }
.v-aiuto { color: var(--oro); }
.v-chiudi, .v-freccia { border: 0; background: none; color: var(--inchiostro); cursor: pointer; display: grid; place-items: center; width: 54px; height: 54px; }
.v-chiudi { position: absolute; top: 14px; right: 14px; z-index: 2; }

/* ===== WhatsApp ===== */
.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.18); -webkit-tap-highlight-color: transparent; transition: transform .3s; }
.wa-fab:hover { transform: scale(1.06); color: #fff; }

/* ===== Schermi medi e telefono ===== */
@media (max-width: 1080px) {
  .nav-links { gap: 16px; }
}
@media (max-width: 960px) {
  .nav { gap: 12px; }
  .nav-menu { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--pad) 18px; background: var(--crema); border-bottom: 1px solid var(--linea); display: none; }
  .nav-links.aperto { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--linea); }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .filo-grid, .vita-grid, .perc-grid, .stel-grid, .omnia, .sostieni, .luogo, .luogo-b { grid-template-columns: 1fr; }
  .libro { position: static; text-align: center; }
  .libro img { margin: 0 auto; max-width: 260px; }
  .libro figcaption { margin: 22px auto 0; }
  .perc-side { position: relative; top: 0; padding-right: 110px; }
  .clessidra { position: absolute; right: 0; top: 0; margin: 0; width: 84px; }
  .omnia-testo, .aristotele { justify-self: start; }
  .luogo-b .luogo-foto { order: 2; }
  .video-reel { max-width: 300px; }
  .offerte-grid { grid-template-columns: 1fr; max-width: 460px; }
  /* La sala diventa una striscia da scorrere col dito */
  .sala-pin { position: relative; height: auto; padding: 30px 0 60px; background: var(--carta); }
  .sala-track { overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px var(--pad) 30px; scrollbar-width: none; }
  .sala-track::-webkit-scrollbar { display: none; }
  .stanza-targa { flex-basis: 76vw; scroll-snap-align: start; }
  .opera { scroll-snap-align: center; }
  .h-hi, .h-lo { margin: 0; }
  .opera + .opera { margin-left: 0; }
  .cartellino { position: static; width: auto; margin-top: 18px; }
  .s-s, .s-m, .s-l { --h: 46vh; }
  .opera img { max-width: 78vw; height: auto; max-height: var(--h); }
}
@media (max-width: 560px) {
  .nav-logo span { font-size: 1.02rem; }
  .nav-logo small { font-size: .74rem; }
  .motto-grande .m1, .motto-grande .m2 { text-align: center; }
  .tappe::before { left: 56px; }
  .tappe li { grid-template-columns: 46px 1fr; column-gap: 30px; }
  .tappe li::after { left: 52px; }
  .anno { font-size: 12px; }
  .evento { grid-template-columns: 1fr; }
  .evento time { border-right: 0; border-bottom: 1px solid var(--oro-l); padding: 0 0 14px; }
  .ref-testa { flex-direction: column; align-items: start; }
  .ref { flex-basis: 80vw; }
  .visore { grid-template-columns: 44px 1fr 44px; }
  .wa-fab { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
/* Opera Omnia: descrizione "Enciclopedia dell'Anima" (16/11) */
.omnia-enc { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 760px; margin-top: 10px; }
.omnia-enc p { font-size: .95rem; line-height: 1.7; margin: 0 0 12px; }
.omnia-enc h3.enc-tit { font-family: var(--ff-ui); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); margin: 26px 0 10px; font-weight: 600; }
.omnia-enc .enc-domanda { font-style: italic; font-size: 1.15rem; color: var(--inchiostro); text-align: center; margin: 22px 0; }
.omnia-enc .enc-chiusa { font-family: var(--ff-ui); font-size: 12px; letter-spacing: .06em; text-align: center; color: var(--inchiostro); margin-top: 20px; }

/* ===== Correzioni del 17/11 ===== */
/* Simboli: titolo più vicino alle sue opere, più aria prima del simbolo successivo */
.stanza-targa { margin-right: calc(clamp(50px, 6vw, 96px) * -.5); }
.stanza-targa ~ .stanza-targa { margin-left: clamp(70px, 9vw, 150px); }
/* Life: anello delle foto */
.vita { overflow-x: clip; }
.anello-vita { margin-top: clamp(70px, 9vw, 110px); }
.anello-vita .anello-scena { --w: clamp(140px, 15vw, 190px); }
.anello-vita .venere { background: var(--crema2); }
.anello-vita .anello-ctrl { position: relative; z-index: 2; margin-top: clamp(40px, 8.5vw, 120px); }
/* Mostre: foto in testa alla scheda */
.ref-con-foto { justify-content: flex-start; }
.ref-foto { display: block; width: calc(100% + 60px); max-width: none; height: 190px; object-fit: cover; margin: -30px -30px 22px; }
.ref-con-foto .ref-anno { margin-bottom: 0; }
.ref-con-foto h3 { margin-top: 12px; }
/* Cosa offre Renée: tre schede di solo testo */
.offerta { border-top: 1px solid var(--oro-l); padding-top: 26px; }
.off-num { display: block; font-size: 2.6rem; line-height: 1; color: var(--oro); margin-bottom: 16px; }
.offerta .off-pdf { font-family: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; text-decoration: underline; text-decoration-color: var(--oro-l); text-underline-offset: 3px; }
/* Donate */
.sost-azioni { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-dona { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--oro-l); color: #fff; background: transparent; }
.btn-dona:hover { background: rgba(217,191,134,.14); }
.dona-nota { margin-top: 14px; font-family: var(--ff-ui); font-size: 12px; opacity: 1; }

/* ===== Correzioni parte 2 (19/11/2026) ===== */
/* Curriculum: a sinistra solo titolo e bottone */
.perc-side h2 { margin-bottom: 26px; }
@media (max-width: 860px) { .perc-side { padding-right: 0; } }

/* Mostre: foto New York e Sanremo intere, senza ritaglio */
.ref-foto { height: auto; object-fit: contain; background: var(--crema2); }
.ref-tutte { text-align: center; margin-top: 18px; padding: 0 var(--pad); }

/* Video Facebook e Instagram dentro il sito */
.video-avvia { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; position: relative; text-align: left; }
.video-incorporato.attivo { aspect-ratio: 9 / 16; width: min(100%, 380px); max-height: 82vh; margin: 0 auto; background: #000; }
.video-incorporato.attivo::after { display: none; }
.video-incorporato iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-reel.attivo { aspect-ratio: 9 / 15.5; background: #fff; }
.video-fuori { display: block; margin-top: 12px; text-align: center; font-family: var(--ff-ui); font-size: 12px; color: var(--tenue); }
.luogo .video-fuori { grid-column: 2; }
@media (max-width: 860px) { .luogo .video-fuori { grid-column: auto; } }

/* STELLINA ©, Leggi + */
.stel-c { font-size: .5em; vertical-align: super; letter-spacing: 0; color: var(--oro); }
.stel-leggi { max-width: 760px; margin: clamp(40px, 6vw, 70px) auto 0; }
.stel-leggi p { font-size: 1rem; line-height: 1.75; }
.stel-tit { font-size: clamp(1.5rem, 3vw, 2rem); margin: 16px 0 6px; }
.stel-occh { font-style: italic; color: var(--tenue); margin-bottom: 24px; }
.stel-sub { font-family: var(--ff-ui); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--oro); margin: 30px 0 10px; line-height: 1.5; }

/* Opera Omnia: due bottoni e i sostenitori */
.omnia-arch { margin: 26px 0 14px; }
.omnia-testo .btn { margin-top: 0; }
.pr-punti { flex-wrap: wrap; gap: 6px 8px; }
.pr-punti button { width: 20px; }
.sostenitori { grid-column: 1 / -1; width: 100%; max-width: 1000px; justify-self: center; text-align: center; margin-top: clamp(30px, 5vw, 60px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--linea); }
.sostenitori h3 { font-family: var(--ff-ui); font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--oro); margin-bottom: 30px; }
.loghi { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 64px); }
.loghi img { height: clamp(44px, 5vw, 60px); width: auto; filter: grayscale(1); opacity: .78; transition: filter .4s, opacity .4s; }
.loghi img.logo-alto { height: clamp(58px, 6.6vw, 80px); }
.loghi li:hover img { filter: none; opacity: 1; }
@media (max-width: 560px) { .loghi { gap: 26px 34px; } .loghi img { height: 40px; } .loghi img.logo-alto { height: 56px; } }

/* Ringraziamenti: rullino fotografico orizzontale */
.grazie { padding-left: 0; padding-right: 0; }
.rullino { position: relative; background: #1a1d2b; padding: 26px 0; }
.rullino::before, .rullino::after { content: ''; position: absolute; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(250,246,238,.75) 14px 26px, transparent 26px 40px); }
.rullino::before { top: 8px; }
.rullino::after { bottom: 8px; }
.rullino-track { list-style: none; margin: 0; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 12px var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
.rullino-track::-webkit-scrollbar { display: none; }
.rullino-track li { flex: 0 0 clamp(230px, 22vw, 270px); scroll-snap-align: start; }
.rullino-track figure { margin: 0; }
.rullino-track img { width: 100%; height: 190px; object-fit: contain; background: #0f111a; }
.rullino-track figcaption { margin-top: 14px; font-size: .92rem; line-height: 1.55; font-style: italic; color: rgba(250,246,238,.88); }
.rullino-track figcaption a { color: var(--oro-l); }

/* Motto finale */
.motto-finale { padding: clamp(80px, 11vw, 150px) var(--pad); text-align: center; background: var(--carta); border-top: 1px solid var(--linea); }
.motto-finale::before { content: ''; display: block; width: 40px; height: 1px; background: var(--oro); margin: 0 auto 40px; }
.mf-it { font-size: clamp(1.7rem, 4.6vw, 3.6rem); line-height: 1.2; letter-spacing: .06em; color: var(--inchiostro); margin: 0; }
.mf-en { font-style: italic; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--tenue); margin: 26px auto 0; max-width: 40ch; }
.stel-leggi summary::after { display: none; }
.stel-leggi summary { padding-right: 0; }
.video-fb::after, .video-reel::after { pointer-events: none; }
.video-avvia img { display: block; }

/* Correzioni parte seconda: icone social nel piede */
.piede-social { list-style: none; display: flex; justify-content: center; gap: 14px; margin: 0 0 26px; padding: 0; }
.piede-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--linea); color: var(--testo); transition: color .25s, border-color .25s, transform .25s; }
.piede-social a:hover, .piede-social a:focus-visible { color: var(--oro); border-color: var(--oro); transform: translateY(-2px); }
.lingue a { text-decoration: none; }
#videoTaha video { display: block; width: 100%; height: 100%; background: #000; }
