/* Paco Simone Art — versione di prova "nuovo": buio, una schermata per opera, tempi lenti.
   Il fondo scuro è la norma; nel pannello "Accessibilità" l'interruttore data-fondo attiva il fondo chiaro. */
@font-face { font-family: "Mulish"; src: url("fonts/mulish-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face{font-family:"Bodoni Moda";src:url("fonts/bodoni-moda-latin-standard-normal.woff2") format("woff2");font-weight:400 900;font-style:normal;font-display:swap}
@font-face{font-family:"Bodoni Moda";src:url("fonts/bodoni-moda-latin-standard-italic.woff2") format("woff2");font-weight:400 900;font-style:italic;font-display:swap}
:root { --fondo: #0A0A0A; --superficie: #151515; --testo: #EFEAE0; --testo-tenue: #B9B3A8; --luce: #22B07D; --bordo: #3A3A3A; --bordo-forte: #EFEAE0; --fuoco: #9CC2FF; --velo: rgba(0,0,0,.55); --lento: 2.8s; --transizione: .2s; color-scheme: dark; }
html[data-fondo="scuro"] { --fondo: #F7F4EE; --superficie: #FFFFFF; --testo: #141414; --testo-tenue: #4F4B45; --luce: #0A6B49; --bordo: #CFC9BE; --bordo-forte: #141414; --fuoco: #0B57D0; --velo: rgba(247,244,238,.72); color-scheme: light; }
html[data-contrasto="alto"] { --fondo: #000000; --superficie: #000000; --testo: #FFFFFF; --testo-tenue: #FFFFFF; --luce: #FFE14D; --bordo: #FFFFFF; --bordo-forte: #FFFFFF; --fuoco: #FFE14D; --velo: rgba(0,0,0,.85); }
html[data-contrasto="alto"][data-fondo="scuro"] { --fondo: #FFFFFF; --superficie: #FFFFFF; --testo: #000000; --testo-tenue: #000000; --luce: #00309C; --bordo: #000000; --bordo-forte: #000000; --fuoco: #00309C; --velo: rgba(255,255,255,.9); }
html[data-testo="grande"] { font-size: 122%; }
html[data-moto="fermo"] { --lento: 0s; --transizione: 0s; }
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html[data-moto="fermo"] { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation: none !important; } }
html[data-moto="fermo"] *, html[data-moto="fermo"] *::before, html[data-moto="fermo"] *::after { transition-duration: 0s !important; animation: none !important; }
body { margin: 0; background: var(--fondo); color: var(--testo-tenue); font-family: "Mulish", "Lucida Sans Unicode", sans-serif; font-size: 1.0625rem; line-height: 1.75; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; color: var(--testo); font-family: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif; font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--testo); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--luce); }
:focus-visible { outline: 2px solid var(--fuoco); outline-offset: 4px; }
[hidden] { display: none !important; }
.solo-lettori { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.salta { position: absolute; left: 1rem; top: -6rem; z-index: 100; background: var(--testo); color: var(--fondo); padding: .8rem 1.2rem; font-weight: 700; }
.salta:focus { top: 0; }

/* ---------- Barra: una riga sottile ---------- */
.barra { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: .25rem; padding: .5rem clamp(1rem, 3vw, 2.5rem); background: linear-gradient(var(--fondo), transparent); }
html[data-contrasto="alto"] .barra { background: var(--fondo); border-bottom: 2px solid var(--bordo); }
.firma { margin-inline-end: auto; display: inline-flex; align-items: center; min-height: 2.75rem; font-family: "Mulish", sans-serif; font-weight: 300; font-size: .9375rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; }
.nav-principale ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-principale a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .8rem; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--testo-tenue); }
.nav-principale a:hover, .nav-principale a:focus-visible, .nav-principale a[aria-current="page"], .firma:hover { color: var(--testo); }
.comando { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--testo); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.comando:hover { color: var(--luce); }
.comando svg { width: 1.4rem; height: 1.4rem; }
#apri-menu { display: none; }
@media (max-width: 52rem) {
  #apri-menu { display: inline-grid; }
  .nav-principale { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--fondo); border-block: 1px solid var(--bordo); padding: .5rem 1rem 1rem; }
  .nav-principale.aperto { display: block; }
  .nav-principale ul { flex-direction: column; }
  .nav-principale a { min-height: 3rem; font-size: 1.125rem; }
}
.pannello-acc { position: fixed; z-index: 60; inset-inline-end: 1rem; top: 4rem; width: min(26rem, 100% - 2rem); max-height: calc(100vh - 5rem); overflow: auto; background: var(--superficie); color: var(--testo); border: 1px solid var(--bordo-forte); padding: 1.25rem; font-size: 1.0625rem; line-height: 1.5; }
.pannello-acc h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.scelta { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: start; font: inherit; color: inherit; cursor: pointer; background: transparent; border: 1px solid var(--bordo); padding: .8rem 1rem; min-height: 4rem; }
.scelta + .scelta { margin-top: .5rem; }
.scelta:hover, .scelta[aria-checked="true"] { border-color: var(--bordo-forte); }
.scelta .testi { flex: 1; }
.scelta .nome { display: block; font-weight: 700; }
.scelta .spiega { display: block; font-size: .9375rem; color: var(--testo-tenue); }
.scelta .leva { flex: none; width: 3.2rem; height: 1.7rem; border-radius: 999px; border: 1px solid var(--bordo-forte); position: relative; }
.scelta .leva::after { content: ""; position: absolute; top: 50%; inset-inline-start: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--bordo-forte); transform: translateY(-50%); transition: inset-inline-start var(--transizione); }
.scelta[aria-checked="true"] .leva { background: var(--bordo-forte); }
.scelta[aria-checked="true"] .leva::after { inset-inline-start: calc(100% - 1.35rem); background: var(--fondo); }
.scelta .stato { font-size: .875rem; font-weight: 700; min-width: 1.8rem; text-align: end; }
.pulsante { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .6rem 1.6rem; font: inherit; color: var(--testo); background: transparent; border: 1px solid var(--bordo-forte); text-decoration: none; cursor: pointer; }
.pulsante:hover { background: var(--testo); color: var(--fondo); }
.pannello-acc .pulsante { width: 100%; margin-top: 1rem; }
.pannello-acc .nota { font-size: .9375rem; color: var(--testo-tenue); margin-top: .8rem; }

/* ---------- Schermate ---------- */
.schermo { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 6rem clamp(1rem, 5vw, 5rem) clamp(2.5rem, 7vh, 5rem); isolation: isolate; overflow: hidden; }
.schermo .sfondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.schermo-opera:not(.senza-immagine)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--fondo) 0%, var(--velo) 45%, rgba(0,0,0,.15) 100%); }
html[data-fondo="scuro"] .schermo-opera:not(.senza-immagine)::before { background: linear-gradient(0deg, var(--fondo) 0%, var(--velo) 55%, rgba(255,255,255,.1) 100%); }
.schermo-motto { justify-content: center; }
.motto-grande { font-size: clamp(2.3rem, 1rem + 6vw, 6.6rem); font-style: italic; max-width: 14em; text-wrap: balance; }
.parola { font-size: clamp(3rem, 1rem + 11vw, 11.5rem); font-weight: 400; line-height: .98; letter-spacing: -.02em; hyphens: auto; }
.parola.lunga { font-size: clamp(2.2rem, 1rem + 6vw, 6.2rem); line-height: 1.02; max-width: 12em; }
.parola a { text-decoration: none; color: var(--testo); }
.parola a::after { content: ""; position: absolute; inset: 0; }
.parola a:hover { color: var(--luce); }
.parola a:focus-visible { outline: none; }
.schermo:focus-within, .voce-opera:focus-within { outline: 2px solid var(--fuoco); outline-offset: -6px; }
.schermo-nota { margin-top: 1.25rem; font-size: 1.0625rem; color: var(--testo-tenue); }
html.anima .schermo [data-entra], html.anima .voce-opera [data-entra], html.anima .testa-pagina [data-entra] { opacity: 0; transform: translateY(2.5rem); transition: opacity var(--lento) ease, transform var(--lento) ease; }
html.anima [data-entra] { opacity: 0; transition: opacity 1.4s ease; }
html.anima [data-entra].dentro { opacity: 1 !important; transform: none !important; }
html[data-moto="fermo"] [data-entra] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { html [data-entra] { opacity: 1 !important; transform: none !important; } }

/* ---------- Pagine interne ---------- */
.testa-pagina { padding: clamp(7rem, 16vh, 11rem) clamp(1rem, 5vw, 5rem) 2rem; }
.testa-pagina h1 { font-size: clamp(2.2rem, 1rem + 5.4vw, 5.6rem); max-width: 14em; text-wrap: balance; }
.testa-pagina .opera-sede { margin-top: 1.25rem; font-size: 1.0625rem; color: var(--testo-tenue); }
.blocco { padding: 2rem clamp(1rem, 5vw, 5rem) 5rem; }
.blocco > * + * { margin-top: 2.5rem; }
.introduzione { font-size: 1.25rem; color: var(--testo); max-width: 40rem; }
.testo { max-width: 40rem; font-size: 1.125rem; }
.testo > * + * { margin-top: 1.25rem; }
.testo h2, .testo h3, .testo h4 { font-size: 1.5rem; margin-top: 3rem; }
.testo ul, .testo ol { padding-inline-start: 1.3rem; }
.testo li + li { margin-top: 1rem; }
.testo a { overflow-wrap: anywhere; }
.azione { margin-top: 2rem; }
.opera-figura { margin: 0; }
.opera-figura img { width: 100%; }
.attesa { display: grid; place-items: center; aspect-ratio: 3 / 2; border: 1px dashed var(--testo-tenue); color: var(--testo-tenue); text-align: center; padding: 1rem; letter-spacing: .12em; text-transform: uppercase; font-size: .875rem; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video iframe { position: absolute; top: -2px; left: -3px; width: calc(100% + 6px); height: calc(100% + 4px); border: 0; }
.opera-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 2rem clamp(1rem, 5vw, 5rem); border-top: 1px solid var(--bordo); }
.opera-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.elenco-opere { padding: 0 clamp(1rem, 5vw, 5rem) 4rem; }
.voce-opera { position: relative; padding-block: clamp(3rem, 9vh, 7rem); border-top: 1px solid var(--bordo); }
.voce-opera img, .voce-opera .attesa { width: 100%; margin-top: 2.5rem; }
.fotografie { list-style: none; margin: 3rem 0 0; padding: 0; columns: 3 16rem; column-gap: 1.5rem; }
.fotografie li { break-inside: avoid; margin-bottom: 1.5rem; }
.fotografie img { width: 100%; }
.sedi { display: grid; gap: 3rem; grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); }
.sede h2 { font-size: 1.6rem; padding-bottom: .75rem; border-bottom: 1px solid var(--luce); }
.sede ul, .legami { list-style: none; margin: 1rem 0 0; padding: 0; }
.sede li a, .legami a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.legami a { font-family: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif; font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); text-decoration: none; }
.bio { display: grid; gap: 3rem; }
.bio > * + * { margin-top: 0; }
@media (min-width: 62rem) { .bio { grid-template-columns: 20rem minmax(0, 1fr); align-items: start; } }
.bio-ritratto .attesa { aspect-ratio: 4 / 5; }
.piede { padding: 3rem clamp(1rem, 5vw, 5rem); font-size: .875rem; border-top: 1px solid var(--bordo); }

/* vapore: al passaggio le lettere evaporano e si ricondensano */
.l { display: inline-block; white-space: pre; }
@keyframes vapore { 0% { opacity: 1; filter: blur(0); transform: none; } 42% { opacity: 0; filter: blur(12px); transform: translate(calc(var(--dx) * 1em), -.55em) scale(1.3) rotate(calc(var(--dx) * 40deg)); } 43% { opacity: 0; filter: blur(9px); transform: translateY(.28em) scale(.92); } 100% { opacity: 1; filter: blur(0); transform: none; } }
a:hover .l, a:focus-visible .l { animation: vapore 1.05s cubic-bezier(.22,.61,.36,1) both; animation-delay: calc(var(--n) * 26ms); }
html[data-moto="fermo"] a:hover .l, html[data-moto="fermo"] a:focus-visible .l { animation: none; }
@media (prefers-reduced-motion: reduce) { a:hover .l, a:focus-visible .l { animation: none; } }

.fotografie figure { margin: 0; }
.fotografie figcaption { font-size: .9375rem; line-height: 1.45; padding-top: .5rem; color: var(--testo-tenue); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; overflow-wrap: anywhere; }
.anni { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.anni a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; font-family: "Bodoni Moda", Georgia, serif; font-size: 1.6rem; text-decoration: none; color: var(--testo-tenue); }
.anni a:hover, .anni a[aria-current="page"] { color: var(--testo); }
.anni a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.anno { margin-top: 4rem; font-size: clamp(2.5rem, 1rem + 5vw, 5rem); }
.anno + .fotografie { margin-top: 1.5rem; }

.video { background-size: cover; background-position: center; }

/* Fotografia: il titolo si compone sopra l'immagine, lettera dopo lettera */
.fotografie li { position: relative; }
.fotografie figure { position: relative; transition: transform 1s cubic-bezier(.22,.61,.36,1); }
.fotografie a { display: block; }
html.titoli .fotografie figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; }
@media (hover: hover) and (pointer: fine) { .fotografie li:hover, .fotografie li:focus-within { z-index: 2; } .fotografie li:hover figure, .fotografie li:focus-within figure { transform: scale(1.045); } }
.tit { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6%; pointer-events: none; overflow: hidden; color: rgba(255,255,255,.8); font-family: "Bodoni Moda", Georgia, serif; font-style: italic; line-height: 1.06; text-shadow: 0 0 .35em rgba(0,0,0,.75), 0 0 .9em rgba(0,0,0,.55); background-color: rgba(0,0,0,0); transition: background-color .45s ease; }
.mostra > figure > .tit, .vela > figure > .tit { background-color: rgba(0,0,0,.36); transition-duration: .7s; }
.tit.densa { font-family: "Mulish", sans-serif; font-style: normal; font-weight: 500; line-height: 1.28; }
.tit .p { display: inline-block; white-space: nowrap; }
.tit .c { display: inline-block; opacity: 0; filter: blur(7px); transform: translateY(-.2em) scale(1.25); transition: opacity .22s ease, filter .22s ease, transform .22s ease; transition-delay: calc(var(--i) * var(--pv)); }
.mostra > figure > .tit .c, .tit .c.on { opacity: 1; filter: blur(0); transform: none; transition-duration: .8s; transition-delay: calc(var(--i) * var(--pl)); }
.tit.scorre .c, .tit.scorre .c.on { transition-delay: 0s; transition-duration: .45s; }

/* Bio: l'immagine si condensa dal nulla, lentamente */
@keyframes condensa { 0% { opacity: 0; filter: blur(34px); transform: scale(1.08); } 55% { opacity: .8; filter: blur(12px); } 100% { opacity: 1; filter: blur(0); transform: none; } }
.bio-ritratto img { animation: condensa 5.5s cubic-bezier(.22,.61,.36,1) .4s both; }
html[data-moto="fermo"] .bio-ritratto img { animation: none; }
@media (prefers-reduced-motion: reduce) { .bio-ritratto img { animation: none; } }
/* Fotografia: firma e condivisione, quando il titolo è composto */
.pf { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: .1rem; padding-left: .6rem; color: rgba(255,255,255,.86); font-family: "Bodoni Moda", Georgia, serif; font-style: italic; line-height: 1; text-shadow: 0 0 .5em rgba(0,0,0,.7); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.fatta > figure > .pf { opacity: 1; transition-duration: .7s; }
.pf button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; filter: drop-shadow(0 0 4px rgba(0,0,0,.7)); }
.fatta > figure > .pf button { pointer-events: auto; }
.pf button:hover { color: #fff; }
.pf svg { width: 1.3rem; height: 1.3rem; }
@media (hover: hover) and (pointer: fine) { .pf button { width: 3.6rem; height: 3.6rem; } .pf svg { width: 2.6rem; height: 2.6rem; } }

/* Trama di fondo delle pagine interne: tono su tono, ruota piano in senso orario e si avvicina, poi svanisce e ricomincia */
.trama { position: fixed; left: 50%; top: 50%; z-index: -1; width: 150vmax; height: 150vmax; width: calc(hypot(100vw, 100vh) * 1.05); height: calc(hypot(100vw, 100vh) * 1.05); margin: 0; translate: -50% -50%; background: url("trama-bluon.webp") center / cover no-repeat; opacity: 0; pointer-events: none; animation: trama 110s linear infinite; will-change: transform, opacity; }
@keyframes trama { 0% { opacity: 0; transform: rotate(0deg) scale(1); } 5% { opacity: .055; } 78% { opacity: .055; transform: rotate(55deg) scale(1.2); } 87% { opacity: 0; transform: rotate(61deg) scale(1.2); } 100% { opacity: 0; transform: rotate(61deg) scale(1.2); } }
html[data-fondo="scuro"] .trama { filter: invert(1); }
html[data-contrasto="alto"] .trama { display: none; }
html[data-moto="fermo"] .trama { animation: none; opacity: .055; }
@media (prefers-reduced-motion: reduce) { .trama { animation: none !important; opacity: .055; } }

/* cuore: il rosso sale dal basso come sangue nei vasi, in un terzo di secondo */
.pf .quanti { font-family: "Mulish", sans-serif; font-style: normal; font-weight: 500; font-size: .9375rem; padding-right: .1rem; min-width: 1ch; text-align: right; }
.pf .cuore .pieno { clip-path: circle(0% at 50% 92%); transition: clip-path .34s cubic-bezier(.3,.7,.3,1); }
.pf .cuore .lume { opacity: 0; transition: opacity .34s ease; }
.pf .cuore .orlo { transition: stroke .34s ease; }
.pf .cuore.acceso .pieno { clip-path: circle(125% at 50% 92%); }
.pf .cuore.acceso .lume { opacity: .32; }
.pf .cuore.acceso .orlo { stroke: #A30E30; }
.fotografie a[role="button"] { cursor: pointer; }

/* le icone restano accese sulle foto a cui si è dato il cuore; al passaggio reagiscono */
.fissa > figure > .pf { opacity: 1; }
.fissa > figure > .pf button { pointer-events: auto; }
.fatta > figure > .pf { transition-duration: .3s; }
.pf button { transition: transform .25s cubic-bezier(.3,.7,.3,1.4), color .25s ease; }
.pf button:hover, .pf button:focus-visible { transform: scale(1.18); }
.pf .cuore:hover .orlo, .pf .cuore:focus-visible .orlo { stroke: #E0234B; }
.pf .manda:hover, .pf .manda:focus-visible { color: var(--luce); }

/* ---------- Schede: il titolo in sovrimpressione sull'immagine o sul video ---------- */
.opera-cima { display: grid; padding: clamp(4.5rem, 10vh, 6.5rem) clamp(1rem, 5vw, 5rem) 0; }
.opera-cima > * { grid-area: 1 / 1; min-width: 0; }
.opera-cima .testa-pagina { z-index: 2; align-self: start; padding: clamp(1rem, 3vw, 2.75rem); pointer-events: none; color: #fff; text-shadow: 0 1px 18px rgba(0,0,0,.55); }
.opera-cima .testa-pagina h1 { font-size: clamp(1.9rem, 1rem + 4.6vw, 5rem); }
.opera-cima .testa-pagina .opera-sede { color: rgba(255,255,255,.82); margin-top: .9rem; }
.opera-media { position: relative; }
.opera-media::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 62%; background: linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,.28) 55%, transparent); pointer-events: none; }
html[data-contrasto="alto"] .opera-cima > * { grid-area: auto; }
html[data-contrasto="alto"] .opera-cima .testa-pagina { color: var(--testo); text-shadow: none; padding-inline: 0; }
html[data-contrasto="alto"] .opera-cima .testa-pagina .opera-sede { color: var(--testo); }
html[data-contrasto="alto"] .opera-media::after { display: none; }
@media (max-width: 40rem) { .opera-cima .testa-pagina h1 { font-size: 1.5rem; line-height: 1.12; } .opera-cima .testa-pagina .opera-sede { font-size: .875rem; margin-top: .5rem; } }

/* fotografie sul telefono: niente sfocatura sulle lettere e un fondo neutro mentre l'immagine arriva */
.fotografie figure { background: #0e0e0e; }
.tit.scorre .c, .tit.scorre .c.on { filter: none; }
