/* ==========================================================================
   PHONE SITE — "Notte". A layout of its own, not the desktop one shrunk.
   Dark, full-screen photos, quiet spaced type; menu "Sipario" (a grid of
   photos, one per section). One grid (24px margins), one type scale.
   Loaded only under 760px. Pages are built by proto/m/build.py.
   ========================================================================== */
:root{--m-bg:#0c0b0a;--m-ink:#efe9e1;--m-soft:rgba(239,233,225,.82);--m-mute:rgba(239,233,225,.52);--m-line:rgba(239,233,225,.14);--m-g:24px}

/* ---- bar on top: clear over the photos, solid once the page scrolls ---- */
html body .top{position:fixed;mix-blend-mode:normal;color:#fff;background:transparent;padding:20px var(--m-g);height:62px;transition:background .4s,opacity .6s}
html body.m-scrolled .top{background:rgba(12,11,10,.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
html body .top .logo{font-size:10.5px;letter-spacing:.3em}
html body .top .menu-btn{font-size:10.5px}
html body::after{display:none!important}

/* ---- menu "Sipario": a grid of photos, one per section ---- */
html body .ov{display:block;background:#0f0e0d;color:var(--m-ink);padding:0}
html body .ov .pics{display:none}
html body .ov nav{position:absolute;left:var(--m-g);right:var(--m-g);top:78px;bottom:calc(64px + env(safe-area-inset-bottom));margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:10px}
html body .ov nav a,html body .ov nav a:nth-child(n){position:relative;display:flex;align-items:flex-end;width:auto;margin:0!important;padding:0 12px 12px;overflow:hidden;font-family:var(--f-ui);font-weight:300;font-size:12.5px;letter-spacing:.3em;line-height:1.3;color:#fff!important;background:#1b1917}
html body .ov nav a::before{content:"";position:absolute;inset:0;background:var(--ph) center/cover no-repeat;filter:brightness(.5) saturate(.9);transform:scale(1.08);transition:transform 1.2s cubic-bezier(.16,1,.3,1),filter .5s}
html body .ov.open nav a::before{transform:scale(1)}
html body .ov nav a::after{content:"";position:absolute;left:12px;bottom:9px;width:0;height:1px;background:#fff;transition:width .5s}
html body .ov nav a.cur::after{width:22px}
html body .ov nav a>*{position:relative}
html body .ov nav a .rl,html body .ov nav a .rl i{height:1.3em}
html body .ov nav a:nth-child(1){--ph:url("img/mal-di-terra-scena-1.jpg")}
html body .ov nav a:nth-child(2){--ph:url("img/lezioni-pianoforte.jpg")}
html body .ov nav a:nth-child(3){--ph:url("img/pioggia.jpg")}
html body .ov nav a:nth-child(4){--ph:url("img/mal-di-terra-applausi.jpg")}
html body .ov nav a:nth-child(5){--ph:url("img/silvio-ritratto.jpg")}
html body .ov nav a:nth-child(6){--ph:url("img/silvio-verde.jpg")}
html body .ov .foot{left:var(--m-g);right:var(--m-g);bottom:calc(22px + env(safe-area-inset-bottom));display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--m-mute);font-size:9px}
html body .ov .foot .ml{display:block}html body .ov .foot .ml a+a{display:none}
html body .ov .foot div:not(.ml){display:flex;gap:16px}
html body .ov .foot a{color:var(--m-soft)}

/* ---- pages that have a phone version: only that version shows ---- */
html.has-m,html.has-m body{height:auto;min-height:100%;overflow:visible!important;background:var(--m-bg)!important;color:var(--m-ink)}
html.has-m body{height:auto!important}
html.has-m body>*:not(.m):not(.top):not(.ov):not(script):not(style){display:none!important}
.m{display:block;font-family:var(--f-ui);color:var(--m-ink);-webkit-font-smoothing:antialiased}
.m a{color:inherit;text-decoration:none}
.m img{display:block;width:100%;height:100%;object-fit:cover}
.m-w{padding-left:var(--m-g);padding-right:var(--m-g)}

/* type scale */
.m-lbl{font-family:var(--f-ui);font-size:9.5px;letter-spacing:.3em;text-transform:uppercase;line-height:1.8;color:var(--m-mute);margin:0}
.m-title{margin:0;font-family:var(--f-ui);font-weight:300;font-size:24px;letter-spacing:.52em;margin-right:-.52em;text-transform:uppercase;line-height:1.2}
.m-h2{font-family:var(--f-serif);font-weight:400;font-size:30px;line-height:1.1;letter-spacing:-.01em;margin:8px 0 0}
.m-h3{font-family:var(--f-serif);font-weight:400;font-size:22px;line-height:1.2;margin:0;display:block}
.m-h3 small{display:block;margin-top:6px;font-family:var(--f-ui);font-size:9.5px;letter-spacing:.26em;text-transform:uppercase;color:var(--m-mute)}
.m-p{font-family:var(--f-serif);font-size:18px;line-height:1.6;margin:16px 0 0;color:var(--m-soft)}
.m-p i,.m-p em{font-style:italic}
.m-meta{display:block;font-family:var(--f-ui);font-size:11px;letter-spacing:.08em;line-height:1.6;color:var(--m-mute);margin:6px 0 0}
.m-meta a{border-bottom:1px solid currentColor}
.m-link{display:inline-block;margin-top:18px;font-family:var(--f-ui);font-size:9.5px;letter-spacing:.28em;text-transform:uppercase;border-bottom:1px solid currentColor;padding-bottom:4px;color:var(--m-ink)}

/* ---- hero: a full-screen photo with the title low and centred (same as the home) ---- */
.m-hero{position:relative;height:100vh;height:100svh;overflow:hidden;background:#111}
.m-hero img{position:absolute;inset:0;filter:brightness(.72);will-change:transform}
.m-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,0) 20%,rgba(0,0,0,0) 48%,rgba(12,11,10,.9) 92%,var(--m-bg))}
.m-hero-t{position:absolute;left:var(--m-g);right:var(--m-g);bottom:calc(70px + env(safe-area-inset-bottom));z-index:2;text-align:center;display:grid;gap:14px;justify-items:center}
.m-hero-t .m-lbl{color:var(--m-soft);max-width:300px}
.m-hero:not(.m-contact) .m-hero-t::after{content:"";width:1px;height:34px;margin-top:10px;background:linear-gradient(var(--m-ink),transparent);animation:m-cue 2.4s ease-in-out infinite}
@keyframes m-zoom{from{transform:scale(1.08)}to{transform:scale(1)}}
@keyframes m-cue{0%,100%{opacity:.2;transform:translateY(-6px)}50%{opacity:.9;transform:none}}
.m-head{padding-top:120px;padding-bottom:10px;text-align:center}

/* ---- body ---- */
.m-body{padding-bottom:20px}
.m-sec{padding-top:72px}
.m-prose{padding-top:40px}
.m-prose .m-p:first-child{margin-top:0}
.m-photo{position:relative;margin:0;overflow:hidden;background:#1a1816}
.m-photo.r45{aspect-ratio:4/5}
.m-bleed{aspect-ratio:4/5;margin-top:56px}
.m-links{display:flex;gap:24px;flex-wrap:wrap;padding-top:48px}

/* rows with thin lines */
.m-rows{margin-top:24px;border-top:1px solid var(--m-line)}
.m-row,.m-ev{display:block;padding:20px var(--m-g) 18px;border-bottom:1px solid var(--m-line)}
.m-row b{display:block;font-family:var(--f-serif);font-weight:400;font-size:21px;line-height:1.25;margin-top:4px}
.m-year{font-family:var(--f-serif);font-weight:400;font-size:46px;line-height:1;letter-spacing:-.01em;margin:0}

/* press clippings under an event */
.m-clip{margin:0 var(--m-g);padding:18px 0 22px 16px;border-left:1px solid var(--m-line);border-bottom:1px solid var(--m-line)}
.m-clip-h{font-family:var(--f-serif);font-size:17px;line-height:1.35;margin:8px 0 0}
.m-clip-p{font-family:var(--f-serif);font-style:italic;font-size:15.5px;line-height:1.55;margin:10px 0 0;color:var(--m-mute)}
.m-clip .m-link{margin-top:14px}

/* lessons */
.m-course{padding-top:64px}
.m-course .m-w{padding-top:22px}
.m-ex{margin-top:16px;color:var(--m-soft)}
.m-quotes{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;margin:24px calc(-1*var(--m-g)) 0;padding:0 var(--m-g) 6px;scrollbar-width:none}
.m-quotes::-webkit-scrollbar{display:none}
.m-quotes figure{flex:0 0 84%;scroll-snap-align:start;margin:0;padding:22px 20px;border:1px solid var(--m-line)}
.m-quotes blockquote{margin:0;font-family:var(--f-serif);font-style:italic;font-size:18px;line-height:1.5}
.m-quotes cite{display:block;margin-top:16px;font-style:normal}
.m-cta{text-align:center}

/* projects */
.m-proj{padding-top:72px}
.m-proj .m-photo{margin:0 var(--m-g) 22px}
.m-gal{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:24px var(--m-g) 0;scrollbar-width:none}
.m-gal::-webkit-scrollbar{display:none}
.m-gal img{flex:0 0 82%;height:auto;aspect-ratio:3/2;scroll-snap-align:center}
.m-credit{padding-top:10px}

/* music: chips, search and the list of works */
.m-tools{position:sticky;top:62px;z-index:3;background:var(--m-bg);padding:14px 0 12px;border-bottom:1px solid var(--m-line)}
.m-chips{display:flex;gap:8px;overflow-x:auto;padding:0 var(--m-g);scrollbar-width:none}
.m-chips::-webkit-scrollbar{display:none}
.m-chips button{flex:none;font:inherit;font-size:9.5px;letter-spacing:.24em;text-transform:uppercase;color:var(--m-soft);background:none;border:1px solid var(--m-line);border-radius:30px;padding:9px 14px}
.m-chips button.on{background:var(--m-ink);color:var(--m-bg);border-color:var(--m-ink)}
.m-sub{margin-top:8px}.m-sub button{padding:7px 12px;font-size:9px}
.m-search{display:block;margin:12px var(--m-g) 0}
.m-search input{width:100%;box-sizing:border-box;font:inherit;font-size:16px;color:var(--m-ink);background:transparent;border:0;border-bottom:1px solid var(--m-line);padding:8px 0;outline:0;border-radius:0;-webkit-appearance:none}
.m-search input::placeholder{color:var(--m-mute);font-size:12px;letter-spacing:.2em;text-transform:uppercase}
.m-works{list-style:none;margin:0;padding:0}
.m-works li{border-bottom:1px solid var(--m-line)}
.m-wk{display:grid;grid-template-columns:56px 1fr 20px;gap:16px;align-items:center;width:100%;padding:14px var(--m-g);background:none;border:0;color:inherit;text-align:left;font:inherit}
.m-cv{width:56px;height:56px;display:grid;place-items:center;overflow:hidden}
.m-cv i{font-family:var(--f-serif);font-style:normal;font-size:20px;color:rgba(255,255,255,.85)}
.m-wt b{display:block;font-family:var(--f-serif);font-weight:400;font-size:19px;line-height:1.25}
.m-wt em{font-style:normal;font-size:9.5px;letter-spacing:.2em;color:var(--m-mute);margin-right:8px}
.m-wt small{display:block;margin-top:4px;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--m-mute)}
.m-pl{font-size:20px;font-weight:300;color:var(--m-mute);transition:transform .3s}
.m-works li.open .m-pl{transform:rotate(45deg)}
.m-wd{display:none;padding:0 var(--m-g) 22px calc(var(--m-g) + 72px)}
.m-works li.open .m-wd{display:block}
.m-wd .m-meta{margin-top:0}.m-wd .m-p{font-size:16px;margin-top:10px}
.m-none{padding-top:32px}

/* contact: the whole page is the photo */
.m-contact .m-hero-t{bottom:calc(90px + env(safe-area-inset-bottom));gap:44px}
.m-mails{display:grid;gap:26px;justify-items:center}
.m-mails a{display:grid;gap:8px;justify-items:center}
.m-addr{font-family:var(--f-serif);font-size:21px;border-bottom:1px solid rgba(239,233,225,.4);padding-bottom:3px}

/* privacy */
.m-legal section{padding-top:36px}
.m-legal h2{font-family:var(--f-serif);font-weight:400;font-size:22px;line-height:1.25;margin:0}
.m-legal p,.m-legal li{font-family:var(--f-serif);font-size:16px;line-height:1.6;color:var(--m-soft)}
.m-legal a{border-bottom:1px solid currentColor}

/* footer, the same on every phone page */
.m-foot{margin-top:80px;padding:30px var(--m-g) calc(30px + env(safe-area-inset-bottom));border-top:1px solid var(--m-line);display:grid;gap:22px;text-align:center}
.m-foot .ml{display:grid;gap:12px}
.m-foot .ml a,.m-foot .so a{font-size:9.5px;letter-spacing:.26em;text-transform:uppercase;color:var(--m-soft)}
.m-foot .so{display:flex;justify-content:center;gap:20px;flex-wrap:wrap}
.m-foot small{font-size:9px;letter-spacing:.24em;text-transform:uppercase;color:var(--m-mute)}
.m:has(.m-home) .m-foot,.m:has(.m-contact) .m-foot{display:none}

/* things that rise in as they come into view */
.m-in{opacity:0;transform:translateY(22px);transition:opacity 1s ease,transform 1s cubic-bezier(.16,1,.3,1)}
.m-in.on{opacity:1;transform:none}

/* ---- home "Notte": photos one after another, name low and centred ---- */
.m-home{position:relative;height:100vh;height:100svh;overflow:hidden;background:#000;color:#f4efe8}
.m-slides img{position:absolute;inset:0;opacity:0;animation:m-slide 20s infinite;filter:brightness(.8)}
.m-slides img:nth-child(1){animation-delay:-1s}.m-slides img:nth-child(2){animation-delay:4s}.m-slides img:nth-child(3){animation-delay:9s}.m-slides img:nth-child(4){animation-delay:14s}
@keyframes m-slide{0%{opacity:0;transform:scale(1.07)}5%{opacity:1}25%{opacity:1}30%{opacity:0;transform:scale(1)}100%{opacity:0}}
.m-home::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,0) 22%,rgba(0,0,0,0) 50%,rgba(0,0,0,.8));pointer-events:none}
.m-bars{position:absolute;left:var(--m-g);right:var(--m-g);top:64px;display:flex;gap:6px;z-index:3}
.m-bars i{flex:1;height:1px;background:rgba(255,255,255,.28);overflow:hidden}
.m-bars b{display:block;height:100%;background:#fff;transform-origin:left;transform:scaleX(0);animation:m-bar 20s linear infinite}
.m-bars i:nth-child(1) b{animation-delay:-1s}.m-bars i:nth-child(2) b{animation-delay:4s}.m-bars i:nth-child(3) b{animation-delay:9s}.m-bars i:nth-child(4) b{animation-delay:14s}
@keyframes m-bar{0%{transform:scaleX(0)}25%{transform:scaleX(1)}25.01%,100%{transform:scaleX(0)}}
.m-hn{position:absolute;left:var(--m-g);right:var(--m-g);bottom:calc(104px + env(safe-area-inset-bottom));z-index:3;text-align:center}
.m-name{margin:0 -.52em 0 0;font-family:var(--f-ui);font-weight:300;font-size:19px;letter-spacing:.52em;text-transform:uppercase;white-space:nowrap}
.m-name span{opacity:.6}
.m-roles{margin-top:12px;color:rgba(244,239,232,.8);font-size:8.5px}
.m-now{position:absolute;left:var(--m-g);right:var(--m-g);bottom:calc(30px + env(safe-area-inset-bottom));z-index:3;display:flex;justify-content:space-between;gap:18px;align-items:baseline;padding-top:14px;border-top:1px solid rgba(255,255,255,.25);font-size:9px;letter-spacing:.22em;text-transform:uppercase;line-height:1.6}
.m-now span{opacity:.85}.m-now u{text-underline-offset:3px;white-space:nowrap}
@media (prefers-reduced-motion:reduce){.m-slides img,.m-bars b,.m-hero img{animation:none}.m-slides img:first-child{opacity:1}}
html body .m .m-wk{text-transform:none;letter-spacing:normal;font-family:var(--f-ui);font-size:14px}
html body .m .m-quotes cite{font-family:var(--f-ui)}
html:not(.has-m) body .top{color:#1b1714}
/* lessons: each course is a full-screen photo with its text on it */
.m-course{position:relative;min-height:100vh;min-height:100svh;padding:0;display:flex;align-items:flex-end;margin-top:2px;overflow:hidden}
.m-course .m-photo{position:absolute;inset:0;aspect-ratio:auto;background:#000}
.m-course .m-photo img{filter:brightness(.62)}
.m-course::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(12,11,10,.2),rgba(12,11,10,0) 30%,rgba(12,11,10,.75) 70%,var(--m-bg));pointer-events:none}
.m-course .m-w{position:relative;z-index:2;padding-top:0;padding-bottom:56px}
.m-course .m-p{color:rgba(239,233,225,.9)}

/* ================= motion ================= */
/* opening: the photo blooms from the centre, the letters rise out of blur */
.m-anim .m-hero img{clip-path:inset(46% 30% 46% 30%);transition:clip-path 1.7s cubic-bezier(.77,0,.18,1)}
.m-anim.m-go .m-hero img{clip-path:inset(0 0 0 0)}
.m-anim .m-slides{clip-path:inset(46% 30% 46% 30%);transition:clip-path 1.8s cubic-bezier(.77,0,.18,1)}
.m-anim.m-go .m-slides{clip-path:inset(0 0 0 0)}
.mc{display:inline-block;opacity:0;transform:translateY(.7em);filter:blur(8px);transition:opacity 1s ease,transform 1.3s cubic-bezier(.16,1,.3,1),filter 1.1s ease}
.m-go .mc{opacity:1;transform:none;filter:none}
.m-name span .mc{opacity:0}.m-go .m-name span .mc{opacity:.6}.m-name span{opacity:1!important}
.m-anim .m-hero-t .m-lbl,.m-anim .m-hero-t::after,.m-anim .m-roles,.m-anim .m-now,.m-anim .m-bars,.m-anim .m-mails{opacity:0;transform:translateY(10px);transition:opacity 1.1s ease 1.5s,transform 1.2s cubic-bezier(.16,1,.3,1) 1.5s}
.m-anim.m-go .m-hero-t .m-lbl,.m-anim.m-go .m-roles,.m-anim.m-go .m-now,.m-anim.m-go .m-bars,.m-anim.m-go .m-mails{opacity:1;transform:none}
.m-anim.m-go .m-hero-t::after{opacity:1;transform:none}
.m-anim.m-go .m-mails{transition-delay:1.3s}
/* scrolling: photos uncover from below, text rises */
.m-unc{clip-path:inset(100% 0 0 0);transition:clip-path 1.4s cubic-bezier(.77,0,.18,1)}
.m-unc.on{clip-path:inset(0 0 0 0)}
.m-photo img,.m-bleed img{transform:scale(1.14);will-change:transform}
.m-in{opacity:0;transform:translateY(26px);transition:opacity 1s ease,transform 1.2s cubic-bezier(.16,1,.3,1)}
.m-in.on{opacity:1;transform:none}
/* lessons: each course stays pinned while the next one slides over it */
.m-course{position:sticky;top:0}
.m-course.m-in{opacity:1;transform:none}
.m-course .m-w>*{opacity:0;transform:translateY(24px);transition:opacity 1s ease,transform 1.2s cubic-bezier(.16,1,.3,1)}
.m-course.on .m-w>*{opacity:1;transform:none}
.m-course.on .m-w>*:nth-child(2){transition-delay:.12s}.m-course.on .m-w>*:nth-child(3){transition-delay:.24s}.m-course.on .m-w>*:nth-child(4){transition-delay:.36s}
/* menu: the photo tiles come in one after another, the photos settle */
html body .ov nav a{opacity:0;transform:translateY(30px) scale(.97);transition:opacity .7s ease,transform 1s cubic-bezier(.16,1,.3,1)}
html body .ov.open nav a{opacity:1;transform:none}
html body .ov.open nav a:nth-child(1){transition-delay:.35s}html body .ov.open nav a:nth-child(2){transition-delay:.43s}html body .ov.open nav a:nth-child(3){transition-delay:.51s}
html body .ov.open nav a:nth-child(4){transition-delay:.59s}html body .ov.open nav a:nth-child(5){transition-delay:.67s}html body .ov.open nav a:nth-child(6){transition-delay:.75s}
.m-still .mc,.m-still .m-in,.m-still .m-unc,.m-still .m-hero img,.m-still .m-slides{opacity:1!important;transform:none!important;filter:none!important;clip-path:none!important;transition:none!important}
/* menu proportions: tiles keep a 4:5 shape, the block sits in the middle, contacts below with room to breathe */
html body .ov nav{top:calc(50% - 22px);bottom:auto;left:50%;right:auto;width:min(calc(100% - 48px),calc((100vh - 230px)*.533 + 12px));width:min(calc(100% - 48px),calc((100svh - 230px)*.533 + 12px));transform:translate(-50%,-50%);grid-auto-rows:auto;gap:12px}
html body .ov nav a,html body .ov nav a:nth-child(n){aspect-ratio:4/5;padding:0 14px 14px;font-size:12px}
html body .ov nav a::after{left:14px;bottom:10px}
html body .ov .foot{flex-direction:column;justify-content:flex-end;align-items:center;gap:12px;bottom:calc(26px + env(safe-area-inset-bottom));text-align:center}
html body .ov .foot div:not(.ml){gap:22px}
html body .ov nav a,html body .ov nav a:nth-child(n){white-space:nowrap}
html body .ov .foot div:not(.ml){flex-wrap:nowrap;gap:18px}
@media (max-height:720px){html body .ov nav{top:calc(50% - 18px);width:min(calc(100% - 48px),calc((100svh - 220px)*.667 + 12px))}
html body .ov nav a,html body .ov nav a:nth-child(n){aspect-ratio:1;font-size:11px;letter-spacing:.24em}
html body .ov .foot{gap:10px;bottom:16px}}
/* ===== photos are never cut: each one is shown whole; where it must fill the screen,
   a blurred, darkened copy of the same photo fills the space around it ===== */
.m .m-blur{position:absolute;inset:-8%;width:116%;height:116%;object-fit:cover;filter:blur(26px) brightness(.32) saturate(.9)!important;transform:none!important}
.m .m-full{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:50% 38%;filter:none}
.m-hero .m-full{filter:brightness(.9)}
.m-hero::after{background:linear-gradient(rgba(0,0,0,.35),rgba(0,0,0,0) 18%,rgba(0,0,0,0) 55%,rgba(12,11,10,.85) 86%,var(--m-bg))}
/* home: each slide is a whole photo on its own blurred backdrop */
.m-slides .m-sl{position:absolute;inset:0;opacity:0;animation:m-slide 20s infinite;overflow:hidden}
.m-slides img{animation:none!important;opacity:1}
.m-slides .m-sl:nth-child(1){animation-delay:-1s}.m-slides .m-sl:nth-child(2){animation-delay:4s}.m-slides .m-sl:nth-child(3){animation-delay:9s}.m-slides .m-sl:nth-child(4){animation-delay:14s}
.m-slides .m-full{object-position:50% 36%}
/* lessons: the whole photo at the top, its blur behind the text */
.m-course .m-photo img.m-full{object-position:50% 14%;filter:brightness(.85)}
.m-course .m-photo img.m-blur{filter:blur(26px) brightness(.3)!important}
.m-course::after{background:linear-gradient(rgba(12,11,10,0) 45%,rgba(12,11,10,.6) 70%,var(--m-bg))}
/* photos inside the text keep their own shape */
.m-nat{aspect-ratio:auto!important}
.m-nat img{height:auto;object-fit:initial;transform:none!important}
.m-bleed.m-nat{margin-left:0;margin-right:0}
/* contact: whole photo, addresses below it */
.m-contact .m-full{object-position:50% 22%}
/* menu: tiles take the shape of the photos (3:2), the name sits under each photo */
html body .ov nav{width:calc(100% - 48px)!important;gap:22px 12px!important}
html body .ov nav a,html body .ov nav a:nth-child(n){aspect-ratio:auto!important;display:block;padding:0!important;background:none;font-size:11px!important;letter-spacing:.26em!important}
html body .ov nav a::before{position:relative;display:block;inset:auto;aspect-ratio:3/2;margin-bottom:12px;filter:brightness(.78) saturate(.9);transform:none!important;background-position:center}
html body .ov nav a::after{left:0;bottom:-8px}
html body .ov nav a:nth-child(3){--ph:url("img/mal-di-terra-scena-2.jpg")}
html body .ov nav a:nth-child(5){--ph:url("img/silvio-ritratto.jpg")}
@media (max-height:720px){html body .ov nav{gap:16px 12px!important}html body .ov nav a::before{margin-bottom:9px}}
.m-slides{position:absolute;inset:0}
.m-contact .m-full{object-position:50% 16%}
.m-contact .m-hero-t{gap:36px}
.m-contact .m-hero-t{top:calc((100vh - 66.7vw)*.16 + 66.7vw + 40px);top:calc((100svh - 66.7vw)*.16 + 66.7vw + 40px);bottom:auto}
html body .m h1.m-title{position:static;inset:auto;transform:none;translate:none;font-size:24px;color:var(--m-ink);mix-blend-mode:normal;opacity:1;z-index:auto;width:auto;height:auto;margin:0 -.52em 0 0}
.m-slides .m-full{object-position:50% 45%}
/* home: the original photos fill the whole screen, framed on Silvio */
.m-slides .m-blur{display:none}
.m-slides .m-full{object-fit:cover;filter:brightness(.85)}
.m-slides .m-sl:nth-child(1) .m-full{object-position:43% 50%}
.m-slides .m-sl:nth-child(2) .m-full{object-position:50% 30%}
.m-slides .m-sl:nth-child(3) .m-full{object-position:42% 40%}
.m-slides .m-sl:nth-child(4) .m-full{object-position:55% 30%}
/* ===== menu: one column of whole photos (3:2) with the name on each; it scrolls ===== */
html body .ov{overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
html body .ov nav,html body .ov nav{position:static!important;transform:none!important;width:auto!important;left:auto;right:auto;top:auto;bottom:auto;margin:0!important;padding:78px var(--m-g) 0!important;display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
html body .ov nav a,html body .ov nav a:nth-child(n){position:relative;display:block;aspect-ratio:3/2!important;padding:0!important;overflow:hidden;font-size:14px!important;letter-spacing:.36em!important;background:#1b1917}
html body .ov nav a::before{position:absolute!important;inset:0!important;aspect-ratio:auto!important;margin:0!important;filter:brightness(.6) saturate(.9)!important;background-size:cover}
html body .ov nav a>*{position:absolute;left:16px;bottom:14px}
html body .ov nav a::after{left:16px!important;bottom:9px!important}
html body .ov nav a:nth-child(3){--ph:url("img/mal-di-terra-scena-2.jpg")}
html body .ov nav a:nth-child(5){--ph:url("img/silvio-ritratto.jpg")}
html body .ov .foot{position:static!important;display:block!important;text-align:center;padding:24px var(--m-g) calc(30px + env(safe-area-inset-bottom))}
html body .ov .foot .ml{margin-bottom:10px}
html body .ov .foot div:not(.ml){display:flex!important;justify-content:center;gap:18px}
html body:has(.ov.open) .top{background:rgba(15,14,13,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
/* HOME v3: whole photo on top (never cut, never under the text), name below on black */
html body .m-home{display:flex;flex-direction:column;justify-content:flex-end;padding:96px 0 calc(28px + env(safe-area-inset-bottom));box-sizing:border-box}
html body .m-home::after{display:none}
html body .m-slides{position:relative;inset:auto;flex:1;min-height:0;margin:0 var(--m-g)}
html body .m-slides .m-sl{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center}
html body .m-slides .m-full{position:static;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;object-position:50% 100%!important;filter:none}
html body .m-hn{position:static;margin:30px var(--m-g) 0}
html body .m-now{position:static;margin:30px var(--m-g) 0}
html body .m-bars{top:70px}
html body .m-slides{margin:0}
html body .m-slides .m-sl{align-items:center}
html body .m-slides .m-full{object-position:50% 50%!important}
html body .ov .foot div:not(.ml){flex-wrap:wrap;justify-content:center;row-gap:10px}
@media (max-width:760px){html body .ov .foot .cp{display:block;margin-top:16px}}
/* 3D on phones: blocks fold up from below as they enter, like a lid closing */
@media (max-width:760px){html.m-anim:not(.m-still) .m-in:not(.m-course){transform:perspective(900px) translateY(26px) rotateX(-38deg);transform-origin:50% 0;transition:opacity 1s ease,transform 1.4s cubic-bezier(.16,1,.3,1)}
html.m-anim:not(.m-still) .m-in.on:not(.m-course){transform:none}}
@media (max-width:760px){html.m-anim .m:has(.m-home) .m-in:not(.on){transform:translateY(26px)!important}html.m-anim .m:has(.m-home) .m-in.on{transform:none!important}}

.m-piva{position:absolute;left:0;right:0;bottom:calc(10px + env(safe-area-inset-bottom));margin:0;text-align:center;font-size:8.5px;letter-spacing:.22em;text-transform:uppercase;color:rgba(242,237,229,.5);z-index:5}
.m-legal h2 small{display:block;margin-bottom:8px;font:300 11px/1 var(--f-ui);letter-spacing:.22em;color:var(--m-soft)}
/* home: 6 slides (2 portraits + 4 Mal di Terra), 5s each, 30s cycle */
html body .m-slides .m-sl,html body .m-bars b{animation-duration:36s}
@keyframes m-slide6{0%{opacity:0;transform:scale(1.07)}2.8%{opacity:1}16.7%{opacity:1}19.4%{opacity:0;transform:scale(1)}100%{opacity:0}}
@keyframes m-bar6{0%{transform:scaleX(0)}16.7%{transform:scaleX(1)}16.71%,100%{transform:scaleX(0)}}
html body .m-slides .m-sl{animation-name:m-slide6}html body .m-bars b{animation-name:m-bar6}
html body .m-slides .m-sl:nth-child(1){animation-delay:-1s}html body .m-slides .m-sl:nth-child(2){animation-delay:5s}html body .m-slides .m-sl:nth-child(3){animation-delay:11s}html body .m-slides .m-sl:nth-child(4){animation-delay:17s}html body .m-slides .m-sl:nth-child(5){animation-delay:23s}html body .m-slides .m-sl:nth-child(6){animation-delay:29s}
html body .m-bars i:nth-child(1) b{animation-delay:-1s}html body .m-bars i:nth-child(2) b{animation-delay:5s}html body .m-bars i:nth-child(3) b{animation-delay:11s}html body .m-bars i:nth-child(4) b{animation-delay:17s}html body .m-bars i:nth-child(5) b{animation-delay:23s}html body .m-bars i:nth-child(6) b{animation-delay:29s}
html body .m-slides .m-cap{position:absolute;left:var(--m-g,20px);right:auto;bottom:6px;text-align:left;font:300 8.5px/1.4 var(--f-ui);letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.7);text-shadow:0 1px 6px rgba(0,0,0,.6)}
/* social row under the roles on the home page (Silvio 26/11) */
.m-hso{display:flex;flex-wrap:wrap;justify-content:center;gap:9px 0;margin:16px auto 0;max-width:330px;font-size:8.5px;letter-spacing:.2em;text-transform:uppercase;color:rgba(242,237,229,.72)}
.m-hso a{color:inherit;text-decoration:none}
.m-hso a+a:before{content:"·";display:inline-block;margin:0 9px;opacity:.5}
.m-hso{gap:10px 20px;max-width:300px;margin-bottom:6px}.m-hso a+a:before{content:none}
.m-hso{font-size:10.5px;gap:12px 22px;max-width:340px;margin-top:20px}
html body .m-slides .m-cap{left:0;right:0;text-align:center}
.m-hml{display:flex;flex-direction:column;align-items:center;gap:8px;margin:18px 0 0;font-size:10px;letter-spacing:.16em;text-transform:uppercase}.m-hml a{color:rgba(242,237,229,.85);text-decoration:none}
.m-hero .m-cap{position:absolute;left:0;right:0;bottom:calc(12px + env(safe-area-inset-bottom));z-index:3;text-align:center;font:300 8px/1.4 var(--f-ui);letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.65);text-shadow:0 1px 6px rgba(0,0,0,.6)}
/* ===== v5 (29/11, Silvio: "deve essere bello come quello desktop"): same look as the computer.
   Photos fill the whole screen (framed on the subject), titles sit on the photo, dark veil at the bottom. ===== */
/* opening of every page */
html body .m .m-hero{height:100vh;height:100svh;min-height:560px;overflow:hidden;background:#000;padding:0}
html body .m .m-hero .m-blur{display:none}
html body .m .m-hero .m-full{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 30%;filter:brightness(.78)}
html body .m .m-hero::after{display:block;content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,0) 22%,rgba(0,0,0,0) 45%,rgba(10,9,8,.82) 78%,var(--m-bg))}
html body .m .m-hero .m-hero-t{position:absolute;left:var(--m-g);right:var(--m-g);top:auto;bottom:calc(64px + env(safe-area-inset-bottom));margin:0;z-index:2}
html body .m .m-hero h1.m-title{font-size:30px;text-shadow:0 2px 24px rgba(0,0,0,.45)}
html body .m .m-contact .m-full{object-position:50% 20%}
html body .m .m-contact .m-hero-t{top:auto;bottom:calc(70px + env(safe-area-inset-bottom));gap:34px}
/* lessons: each course is a full-screen photo with its text on it, like the computer */
html body .m .m-course{position:sticky;top:0;min-height:100vh;min-height:100svh;display:flex;align-items:flex-end;margin:0;padding:0;overflow:hidden;background:#000}
html body .m .m-course .m-photo{position:absolute;inset:0;aspect-ratio:auto;background:#000}
html body .m .m-course .m-photo .m-blur{display:none}
html body .m .m-course .m-photo .m-full{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;filter:brightness(.7)}
html body .m .m-course::after{display:block;content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.35),rgba(0,0,0,0) 25%,rgba(10,9,8,.55) 55%,rgba(10,9,8,.94) 85%)}
html body .m .m-course .m-w{position:relative;z-index:2;padding:0 var(--m-g) calc(54px + env(safe-area-inset-bottom))}
/* home: photos fill the screen, name in the middle on the photo, like the computer */
html body .m-home{display:block;padding:0;height:100vh;height:100svh}
html body .m-home::after{display:block;content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,0) 20%,rgba(0,0,0,.05) 40%,rgba(0,0,0,.35) 62%,rgba(0,0,0,.85))}
html body .m-slides{position:absolute;inset:0;margin:0;height:auto;max-height:none;flex:none}
html body .m-slides .m-sl{position:absolute;inset:0;display:block}
html body .m-slides .m-full{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;filter:brightness(.82)}
html body .m-slides .m-sl:nth-child(1) .m-full{object-position:50% 22%!important}
html body .m-slides .m-sl:nth-child(2) .m-full{object-position:48% 50%!important}
html body .m-slides .m-sl:nth-child(3) .m-full{object-position:44% 30%!important}
html body .m-slides .m-sl:nth-child(n+4) .m-full{object-position:50% 50%!important}
html body .m-slides .m-cap{bottom:auto;top:84px;z-index:2}
html body .m-hn{position:absolute;left:var(--m-g);right:var(--m-g);top:auto;bottom:calc(46px + env(safe-area-inset-bottom));margin:0;z-index:3}
html body .m-home .m-name{text-shadow:0 2px 26px rgba(0,0,0,.5)}
html body .m-home .m-piva{z-index:4;bottom:calc(12px + env(safe-area-inset-bottom))}
/* menu like the computer: names centred, one under the other; behind, the darkened photo of the page you are on */
html body .ov{overflow:hidden}
html body .ov .pics{display:block!important;position:absolute!important;inset:0!important;width:auto!important;height:auto!important;left:0!important;top:0!important;translate:none!important;opacity:1!important;z-index:0}
html body .ov .pics img{filter:brightness(.3) saturate(.85)!important}
html body .ov nav,html body .ov nav{position:absolute!important;inset:0!important;display:flex!important;flex-direction:column!important;align-items:center;justify-content:center;gap:24px!important;padding:0 0 120px!important;margin:0!important;grid-template-columns:none!important;z-index:2}
html body .ov nav a,html body .ov nav a:nth-child(n){position:relative;display:block;aspect-ratio:auto!important;overflow:visible;background:none!important;padding:0 0 7px!important;margin:0 -.42em 0 0!important;font-size:17px!important;letter-spacing:.42em!important;text-transform:uppercase;color:#f1ece4;opacity:.62}
html body .ov nav a::before{display:none!important;content:none!important}
html body .ov nav a>*{position:static!important}
html body .ov nav a::after{left:0!important;right:.42em;bottom:0!important}
html body .ov nav a.on,html body .ov nav a[aria-current]{opacity:1}
html body .ov .foot{position:absolute!important;left:0;right:0;bottom:0;z-index:2;background:none}
html body .ov .pics img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important}
html body .m .m-course .m-photo .m-full{filter:brightness(.88)}
html body .ov .pics{aspect-ratio:auto!important;height:100%!important;bottom:0!important;right:0!important}
html body .ov .pics img,html body .ov .pics img.on,html body .ov .pics img.off{filter:brightness(.32) saturate(.85)!important}
/* 29/11 home come le altre pagine: foto intera, nome e ruoli in basso come i titoli (BIO, LEZIONI); social ed email solo nel menu */
html body .m-home::after{background:linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,0) 22%,rgba(0,0,0,0) 45%,rgba(10,9,8,.82) 78%,var(--m-bg))}
html body .m-home .m-hso,html body .m-home .m-hml,html body .m-home .m-piva{display:none}
html body .m-hn{bottom:calc(64px + env(safe-area-inset-bottom));text-align:center}
html body .m-home .m-name{font-size:19px;letter-spacing:.52em;margin:0 -.52em 0 0;white-space:nowrap}
html body .m-home .m-roles{margin:18px auto 0;max-width:290px;line-height:2}
html body .m-hn::after{content:"";display:block;width:1px;height:34px;margin:22px auto 0;background:rgba(242,237,229,.5)}
html body .m-home .m-bars{z-index:4;bottom:calc(22px + env(safe-area-inset-bottom))}
html body .m-home .m-roles{max-width:none}
/* 29/11 Testimonianze sale sopra Composizione come Teoria su Pianoforte */
html body .m .m-tst{position:relative;z-index:3;min-height:100vh;min-height:100svh;margin:0;padding-top:96px;padding-bottom:64px;background:var(--m-bg);display:flex;flex-direction:column;justify-content:center;box-shadow:0 -30px 60px rgba(0,0,0,.5)}
html body .m-hn::after{display:none}html body .m-hn{bottom:calc(84px + env(safe-area-inset-bottom))}
/* 29/11 menu: la foto riempie anche dietro la barra in alto */
html body:has(.ov.open) .top{background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none!important}
html body:has(.ov.open) .top::before,html body:has(.ov.open) .top::after{display:none!important}
html body .ov{top:0!important;inset:0!important}
html body .ov .foot .ml a+a{display:block}html body .ov .foot .ml a{display:block;margin:0 0 8px}
/* 29/11 icone social nel menu del telefono (disegnate nel sito, nessun caricamento esterno) */
html body .ov .foot a.si .tx{display:none}
html body .ov .foot a.si .ic{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
html body .ov .foot a.si .ic .f{fill:currentColor;stroke:none}
html body .ov .foot a.si{display:inline-flex;padding:4px;opacity:.85}
html body .ov .foot div:not(.ml){gap:14px 22px!important;align-items:center}
html body .ov .foot div:not(.ml) a:not(.si){flex-basis:100%;text-align:center;margin-top:4px}
html body .m-foot .so a.si,html body .m-hso a.si{display:inline-flex;padding:4px;opacity:.85}
html body .m-foot .so a.si .ic,html body .m-hso a.si .ic{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
html body .m-foot .so a.si .ic .f,html body .m-hso a.si .ic .f{fill:currentColor;stroke:none}
html body .m-foot .so a.si:before,html body .m-hso a.si:before{content:none!important}
html body .m-foot .so{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px 22px}
html body .m-foot .so a:not(.si){flex-basis:100%;text-align:center}
/* 29/11 icone social anche in home, sotto i ruoli */
html body .m-home .m-hso{display:flex!important;flex-wrap:nowrap;justify-content:center;gap:0 20px;margin:26px auto 0;max-width:none}
html body .m-home .m-hso a+a:before{content:none}
/* 29/11 meno memoria su iPhone: niente filtri sulle foto della home, velatura col gradiente */
html body .m-home .m-sl img.m-full{filter:none!important}
html body .m-home::after{background:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.18) 22%,rgba(0,0,0,.2) 45%,rgba(10,9,8,.82) 78%,var(--m-bg))}
/* 29/11 menu telefono leggero (crash Safari): una sola foto visibile, niente filtri, velatura sopra */
@media (max-width:760px){
html body .ov .pics img:not(.on){display:none!important}
html body .ov .pics img,html body .ov .pics img.on,html body .ov .pics img.off{filter:none!important;transition:none!important}
html body .ov .pics::after{content:"";position:absolute;inset:0;background:rgba(8,7,6,.68);pointer-events:none;z-index:1}
}
/* musica on the phone: page colour flat behind Safari bars, cover under the search boxes, words centred under the cover */
@media (max-width:760px){
html:has(#smc),html:has(#smc) body{background:#f0f0ee!important}
html:has(#smc) body::before{display:none!important}
html body.Lr .tower,html body.Lr.cat .tower,html body.Lr.hasorg .tower{left:50%!important;top:222px!important;width:min(46vw,25vh)!important;translate:-50% 0!important}
html body.Lr .title,html body.Lr.hasorg .title{left:20px!important;right:20px!important;width:auto!important;max-width:none!important;top:calc(222px + min(46vw,25vh) + 26px)!important;bottom:72px!important;translate:none!important;text-align:center!important;display:flex!important;flex-direction:column;align-items:center!important;justify-content:flex-start!important;max-height:none!important}
html body.Lr .title #tm{align-items:center}
html body.Lr .title .sbs{justify-content:center}
html body.Lr .title .prs{text-align:center;max-width:none}
html body.Lr.p2 .title{bottom:116px!important}
html body.Lr.cat .title,html body.Lr.cat.p2 .title{bottom:24px!important}
html body.Lr .play{left:50%!important;right:auto!important;translate:-50% 0!important}
html body.Lr.p2 .play{translate:calc(-100% - 8px) 0!important}html body.Lr .play2{left:calc(50% + 8px)!important;right:auto!important;bottom:40px!important;translate:none!important}
}
@media (max-width:760px){
html:has(.sub.two.on) #sr{top:166px!important}
html:has(.sub.two.on) #srt{top:204px!important}
html:has(.sub.two.on) body.Lr .tower{top:252px!important;width:min(40vw,22vh)!important}
html:has(.sub.two.on) body.Lr .title{top:calc(252px + min(40vw,22vh) + 24px)!important}
}
/* phone: course photos fill the whole screen, also behind Safari's bars and the top bar; menu dark behind the status bar */
@media (max-width:760px){
html body .m .m-course{min-height:100vh!important;min-height:100lvh!important}
html body.m-onph.m-scrolled .top{background:linear-gradient(rgba(12,11,10,.9),rgba(12,11,10,.7) 55%,rgba(12,11,10,0))!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html:has(.ov.open):not(#_),html:has(.ov.open):not(#_) body{background:#0f0e0d!important}
}
/* phone: photos run on behind Safari's bottom bar (large viewport); the words stay above the bar */
@media (max-width:760px){
:root{--xb:calc(100lvh - 100svh)}
html body .m .m-hero,html body .m-home{height:100vh!important;height:100lvh!important}
html body .m .m-hero .m-hero-t{bottom:calc(64px + var(--xb) + env(safe-area-inset-bottom))!important}
html body .m .m-contact .m-hero-t{bottom:calc(70px + var(--xb) + env(safe-area-inset-bottom))!important}
html body .m-hn{bottom:calc(46px + var(--xb) + env(safe-area-inset-bottom))!important}
html body .m-hero .m-cap{bottom:calc(12px + var(--xb) + env(safe-area-inset-bottom))!important}
html body .m .m-course .m-w{padding-bottom:calc(54px + var(--xb) + env(safe-area-inset-bottom))!important}
html body .ov{top:0!important;bottom:auto!important;height:100vh!important;height:100lvh!important}
html body .ov .foot{bottom:calc(22px + var(--xb) + env(safe-area-inset-bottom))!important}
}
@media (max-width:760px){
html body .sp,html body .lb,html body .curtain,html body #smc{top:0!important;bottom:auto!important;height:100vh!important;height:100lvh!important}
html body .lb .lbc{bottom:calc(52px + var(--xb))!important}
html:has(#gl):not(#_),html:has(#gl):not(#_) body,html:has(#sc):not(#_),html:has(#sc):not(#_) body{background:#141312}
}
