:root{color-scheme:dark;--bg:#090909;--fg:#e9e9e9;--muted:#888888;--line:#292929}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--bg);color:var(--fg);font-family:'DM Sans',sans-serif}body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:10;opacity:.035;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}a{color:inherit;text-decoration:none}a:focus-visible{outline:2px solid #e0e0e0;outline-offset:7px}.skip{position:fixed;top:-80px;padding:15px;background:white;color:black;z-index:30}.skip:focus{top:10px}.header{height:100px;margin:0 6%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.wordmark{font-family:Manrope,sans-serif;font-weight:800;font-size:40px;letter-spacing:-5px}.wordmark span{color:#929292}nav{display:flex;gap:40px;font-size:13px}nav a{color:#b8b8b8;transition:color .25s}nav a:hover{color:white}nav span{margin-left:10px}.hero{min-height:calc(100svh - 100px);padding:42px 6% 22px;display:flex;flex-direction:column;overflow:hidden}.hero-top,.hero-foot{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1.5px}.eyebrow{display:flex;align-items:center;gap:10px}.eyebrow i{width:6px;height:6px;background:#cecece;border-radius:50%;box-shadow:0 0 12px #cecece44}.edition,.hero-foot{color:var(--muted)}.hero-title{position:relative;flex:1;display:flex;align-items:center;min-height:330px}h1{position:relative;z-index:1;margin:0;font-family:Manrope,sans-serif;font-size:clamp(100px,20vw,300px);line-height:1.25;letter-spacing:-.085em;font-weight:500}h1>span{font:16px 'DM Sans',sans-serif;position:absolute;top:24%;right:-30px;letter-spacing:0}.orbit{position:absolute;width:340px;height:340px;right:0;top:50%;transform:translateY(-50%) translate3d(var(--orbit-x,0px),var(--orbit-y,0px),0);opacity:.8;perspective:700px;transition:filter .5s}.orbit:hover{filter:brightness(1.7)}.ring{position:absolute;inset:12%;border:1px solid #767676;border-radius:50%;box-shadow:inset 0 0 22px #ffffff08,0 0 20px #ffffff05;animation:orbit 24s linear infinite}.two{inset:4%;animation-delay:-8s;animation-direction:reverse}.three{inset:20%;animation-delay:-16s}.core{position:absolute;inset:37%;border-radius:50%;background:radial-gradient(circle at 30% 25%,#c1c1c1,#505050 25%,#151515 65%);box-shadow:0 0 60px #97979718}.hero-bottom{display:flex;align-items:center;justify-content:space-between;padding:10px 0 65px}.hero-bottom p{font-size:21px;line-height:1.5;margin:0}.hero-bottom p span{color:var(--muted)}.round-link{width:56px;height:56px;border:1px solid #454545;border-radius:50%;display:grid;place-items:center;font-size:23px;transition:background .3s,transform .3s}.round-link:hover{background:var(--fg);color:var(--bg);transform:translateY(5px)}.small-note{color:var(--muted);font-size:10px;line-height:1.8;letter-spacing:1.3px}.hero-foot{border-top:1px solid var(--line);padding-top:20px}.section{margin:0 6%;padding:45px 0 95px;border-bottom:1px solid var(--line)}.section-label{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1.4px;color:var(--muted);margin-bottom:65px}.section-label span:first-child{color:#c2c2c2}h2{font-family:Manrope,sans-serif;font-weight:500;font-size:clamp(42px,5.4vw,80px);line-height:1.12;letter-spacing:-.055em;margin:0}em{font-style:normal;color:var(--muted)}.about-grid,.interest-row{display:grid;grid-template-columns:1fr 1fr;gap:10%}.about-copy{max-width:490px;padding-top:5px}.about-copy p{font-size:16px;color:var(--muted);line-height:1.9}.about-copy .lead{font-size:24px;line-height:1.5;color:var(--fg);margin-top:0}dl{margin:35px 0 0}dl>div{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:18px 0;gap:20px}dt{font-size:10px;letter-spacing:1px}dd{font-size:13px;margin:0;color:var(--muted)}.interest-note{position:relative;padding:0 70px 0 0;max-width:490px}.interest-note p{color:var(--muted);line-height:1.9;font-size:17px}.asterisk{display:block;font-size:65px;line-height:1;transform-origin:30px 30px;transition:transform 1s}.interest-note:hover .asterisk{transform:rotate(180deg)}.tag{font-size:9px;letter-spacing:1px;color:#989898;border:1px solid #333333;border-radius:20px;padding:8px 12px;display:inline-block}.learning-heading{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:55px}.learning-heading p{color:var(--muted);font-size:14px;line-height:1.8}.language-placeholder{padding:32px 0;display:flex;align-items:center;gap:30px;border-top:1px solid var(--line)}.code-symbol{font-family:monospace;font-size:38px;color:#c3c3c3}.language-placeholder h3{font-size:18px;font-weight:400;margin:0 0 8px}.language-placeholder p{font-size:13px;color:var(--muted);margin:0}.language-placeholder .tag{margin-left:auto}.contact{padding-bottom:70px}.contact h2{font-size:clamp(60px,8vw,120px);position:relative}.contact-star{position:absolute;right:5%;top:0;font-weight:400;color:#bbbbbb}.contact-intro{font-size:14px;color:var(--muted);margin:35px 0 50px;line-height:1.8}.contact-item{border-top:1px solid var(--line);padding:25px 10px;display:flex;align-items:center;gap:30px;transition:background .3s,padding .3s}.contact-item:hover{background:#141414;padding-left:22px}.contact-item>span:first-child{font-size:10px;color:var(--muted)}.contact-item h3{font-family:Manrope,sans-serif;font-size:28px;font-weight:400;margin:0}.contact-value{margin-left:auto;color:var(--muted);font-size:12px}footer{margin:0 6%;padding:35px 0;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted)}.footer-logo{font-family:Manrope,sans-serif;font-size:24px;color:var(--fg);letter-spacing:-1.5px}footer>span{font-size:9px;letter-spacing:1px}::selection{background:#d8d8d8;color:#111111}@keyframes orbit{0%{transform:rotateZ(0deg) rotateY(65deg) rotateX(30deg)}100%{transform:rotateZ(360deg) rotateY(65deg) rotateX(30deg)}}@media(min-width:1500px){.orbit{right:6%;width:420px;height:420px}}@media(max-width:700px){.header{height:80px}nav{gap:20px;font-size:11px}.hero{min-height:calc(90svh - 80px);padding-top:30px}.edition{display:none}.hero-title{min-height:300px;align-items:center}h1{font-size:23vw}h1>span{font-size:11px;right:-18px}.orbit{width:220px;height:220px;right:-65px;top:52%;opacity:.45}.hero-bottom{padding-bottom:45px}.hero-bottom p{font-size:17px}.small-note{display:none}.round-link{width:45px;height:45px}.hero-foot{font-size:8px}.section{padding:30px 0 60px}.section-label{margin-bottom:40px;font-size:9px}.section-label>span:last-child{display:none}.about-grid,.interest-row{grid-template-columns:1fr;gap:35px}.about-copy .lead{font-size:21px}.about-copy p{font-size:15px}.interest-note{padding-right:0}.learning-heading{display:block;margin-bottom:35px}.learning-heading p{margin-top:25px}.language-placeholder{gap:18px;flex-wrap:wrap}.language-placeholder .tag{margin-left:0}.language-placeholder p{line-height:1.6}.code-symbol{font-size:28px}.contact-star{right:0;font-size:60px}.contact-intro{max-width:290px}.contact-item{gap:16px;flex-wrap:wrap}.contact-item h3{font-size:24px}.contact-value{font-size:10px}footer>span{display:none}}
/* Portfolio / creative developer */
:root{--accent:#e5e5e5}.hero{background:radial-gradient(ellipse at 82% 42%,#d4d4d40c,transparent 48%)}.eyebrow i{background:var(--accent)}.primary-cta{display:inline-flex;align-items:center;gap:35px;background:var(--fg);color:#111111;padding:15px 21px;border-radius:5px;font-size:13px;margin-top:25px;transition:background .25s,transform .25s}.primary-cta:hover{background:var(--accent);transform:translateY(-3px)}.hero-bottom{padding-bottom:40px}.about-grid{grid-template-columns:1fr 1.15fr;gap:8%;align-items:center}.about-copy h2{margin-bottom:30px}.about-copy .lead{margin-bottom:15px}.code-card{min-width:0;border:1px solid #3f3f3f;border-radius:12px;background:linear-gradient(130deg,#1c1c1c,#111111 60%);box-shadow:0 35px 100px #00000099,0 0 65px #d3d3d307;transform:perspective(1100px) rotateY(-5deg) rotateX(3deg);transition:transform .3s,border-color .3s;overflow:hidden}.code-card:hover{border-color:#8d8d8d}.editor-bar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ffffff0e;padding:17px 20px;color:#9d9d9d;font:11px Consolas,monospace}.window-dots{display:flex;gap:6px}.window-dots i{width:8px;height:8px;background:#5a5a5a;border-radius:50%}.window-dots i:first-child{background:#bebebe}.editor-code{padding:25px 25px 30px;overflow-x:auto}.editor-code pre{font:13px/1.85 Consolas,'Courier New',monospace;margin:0;color:#dddddd;tab-size:2}.syntax-comment{color:#777777}.syntax-purple{color:#afafaf}.syntax-green{color:#d5d5d5}.syntax-blue{color:#cacaca}.syntax-orange{color:#b9b9b9}.editor-status{display:flex;justify-content:space-between;padding:12px 20px;background:#ffffff04;border-top:1px solid #ffffff0a;font:10px Consolas,monospace;color:#969696}.editor-status i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--accent);margin-right:6px}.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.service-card{position:relative;overflow:hidden;border:1px solid #313131;background:linear-gradient(150deg,#1a1a1a,#0f0f0f);border-radius:9px;min-height:340px;padding:30px;display:flex;flex-direction:column;transition:transform .3s,border-color .3s,box-shadow .3s}.service-card:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at var(--mx,50%) var(--my,0%),#e5e5e517,transparent 65%);opacity:0;transition:opacity .3s;pointer-events:none}.service-card:hover{transform:translateY(-8px);border-color:#6f6f6f;box-shadow:0 20px 45px #00000055}.service-card:hover:before{opacity:1}.service-icon{font:36px Consolas,monospace;color:var(--accent);height:75px;transition:transform .3s}.service-card:hover .service-icon{transform:translateX(7px)}.service-number{font-size:9px;letter-spacing:1.6px;color:#919191}.service-card h3{font-family:Manrope,sans-serif;font-size:24px;letter-spacing:-1px;font-weight:500;margin:19px 0 10px}.service-card p{font-size:14px;line-height:1.8;color:#9c9c9c;margin:0 0 25px}.service-action{margin-top:auto;font-size:11px;color:#cfcfcf}.contact-intro{max-width:530px}.contact-item:hover h3{color:var(--accent)}.language-placeholder:hover{background:linear-gradient(90deg,#e5e5e508,transparent)}.orbit .ring{border-color:#8d8d8d}.hero-foot{margin-top:10px}@media(max-width:900px){.service-grid{grid-template-columns:1fr}.service-card{min-height:240px}.service-icon{height:60px}.about-grid{gap:35px;grid-template-columns:1fr}.code-card{width:100%;max-width:620px;transform:none}.learning-heading{align-items:start}.learning-heading h2{font-size:clamp(38px,5.4vw,75px)}}@media(max-width:700px){nav{gap:15px;font-size:10px}.hero-top{font-size:9px}.hero-title{min-height:250px}.primary-cta{font-size:12px;gap:20px}.hero-bottom{gap:15px}.editor-code{padding:20px 15px}.editor-code pre{font-size:12px}.editor-bar,.editor-status{padding-left:15px;padding-right:15px}.service-card{padding:25px}.contact-star{opacity:.5}}
/* Language cards: staggered entrance and quiet continuous movement. */
#learning .language-placeholder{position:relative;isolation:isolate;overflow:hidden;padding:28px 20px;border:1px solid #333333;border-radius:8px;margin-top:12px;background:#111111;transition:transform .35s,border-color .35s,box-shadow .35s}
#learning .language-placeholder:before{content:'';position:absolute;inset:0;z-index:-1;opacity:0;background:radial-gradient(280px circle at var(--mx,50%) var(--my,50%),#e5e5e51c,transparent 75%);transition:opacity .35s}
#learning .language-placeholder:hover{transform:translateX(7px);border-color:#7e7e7e;box-shadow:0 10px 35px #00000044}
#learning .language-placeholder:hover:before{opacity:1}
#learning .code-symbol{display:grid;place-items:center;flex:0 0 58px;height:58px;border-radius:12px;background:#e5e5e509;color:var(--accent);border:1px solid #e5e5e518;animation:code-float 5s ease-in-out infinite}
#learning .language-placeholder:nth-of-type(4) .code-symbol{animation-delay:-1.6s}
#learning .language-placeholder:nth-of-type(5) .code-symbol{animation-delay:-3.2s}
#learning .tag{position:relative;padding-left:24px}
#learning .tag:before{content:'';position:absolute;left:11px;top:50%;width:5px;height:5px;margin-top:-2.5px;background:var(--accent);border-radius:50%;animation:learning-pulse 2.8s ease-in-out infinite}






@keyframes code-float{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-5px) rotate(3deg)}}
@keyframes learning-pulse{0%,100%{box-shadow:0 0 0 0 #e5e5e500;opacity:.6}50%{box-shadow:0 0 0 5px #e5e5e512;opacity:1}}
@media(max-width:700px){#learning .language-placeholder{padding:22px 16px}#learning .language-placeholder:hover{transform:translateY(-3px)}#learning .code-symbol{flex-basis:45px;height:45px}#learning .language-placeholder>div{flex:1;min-width:180px}}

/* Keep brace glyphs on one line, including Java's floating icon. */
#learning .code-symbol{font-size:27px;white-space:pre;line-height:1;letter-spacing:-2px;min-width:0}
#learning .language-placeholder{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:25px}
#learning .language-placeholder>div{min-width:0}
#learning .tag{white-space:nowrap;margin-left:0}
/* Reveal each row as it enters view instead of timing it from the section. */



.hero{position:relative;isolation:isolate;background:radial-gradient(ellipse at 78% 40%,#d4d4d412,transparent 55%)}
.hero:before{content:'';position:absolute;inset:0;z-index:-1;background-image:linear-gradient(#cacaca07 1px,transparent 1px),linear-gradient(90deg,#cacaca07 1px,transparent 1px);background-size:65px 65px;mask-image:radial-gradient(ellipse at 75% 45%,#000000,transparent 70%);pointer-events:none}
.hero-name{position:relative;z-index:1;padding:40px 0}
.hero-kicker{display:block;font:12px Consolas,monospace;letter-spacing:1px;color:#959595;animation:hero-arrive .9s both}
.hero-kicker.closing{margin-left:5px;color:#5f5f5f;animation-delay:.3s}
/* Leave room for the final glyph when painting gradient text with negative tracking. */
.hero h1{font-size:clamp(100px,18vw,270px);padding-inline-end:.14em;background:linear-gradient(115deg,#ffffff 15%,#dddddd 45%,#858585 100%);background-clip:text;-webkit-text-fill-color:transparent;animation:hero-arrive 1s .1s both}
.hero h1>span{-webkit-text-fill-color:var(--accent)}
.orbit-label{position:absolute;font:9px Consolas,monospace;letter-spacing:3px;color:#b8b8b8;border:1px solid #aaaaaa33;border-radius:20px;padding:9px 13px;background:#0f0f0fec;white-space:nowrap}
.label-top{top:12%;right:0;animation:code-float 6s ease-in-out infinite}.label-bottom{bottom:8%;left:0;animation:code-float 7s -3s ease-in-out infinite}
.hero .core{background:radial-gradient(circle at 32% 25%,#e3e3e3,#6e6e6e 26%,#181818 65%);box-shadow:0 0 70px #cccccc22}
.mini-terminal{font:11px Consolas,monospace;letter-spacing:0;display:flex;gap:12px;align-items:center}.mini-terminal>span:first-child{color:#7a7a7a}.terminal-command{color:#bdbdbd}.mini-terminal i{width:6px;height:12px;background:var(--accent);animation:cursor-blink 1.2s steps(1) infinite}
@keyframes hero-arrive{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@keyframes cursor-blink{50%{opacity:0}}
@media(max-width:700px){#learning .language-placeholder{grid-template-columns:45px minmax(0,1fr);gap:16px}#learning .language-placeholder>div{min-width:0}#learning .tag{grid-column:2;justify-self:start}#learning .code-symbol{font-size:23px}.hero-name{padding:38px 0}.hero h1{font-size:22vw}.hero-kicker{font-size:10px}.mini-terminal{display:none}.orbit-label{font-size:8px;letter-spacing:1px}.label-top{right:50px}.label-bottom{left:5px}.hero .orbit{opacity:.55}}


/* Consistent vector icons across platforms; no system emoji fonts. */
.icon{display:block;width:1em;height:1em;flex-shrink:0;overflow:visible}
.service-icon{display:flex;align-items:flex-start;font-size:36px}
.service-icon .icon{width:38px;height:38px}
#learning .code-symbol{font-size:27px;letter-spacing:0}
#learning .code-symbol .icon{width:29px;height:29px}
.contact-item>.contact-platform-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border:1px solid #383838;border-radius:12px;background:#e5e5e506;color:#b4b4b4;transition:color .3s,border-color .3s,background .3s}
.contact-platform-icon .icon{width:23px;height:23px}
.contact-item:hover .contact-platform-icon{color:var(--accent);border-color:#7c7c7c;background:#e5e5e50b}
.contact-item>.contact-value{font-size:12px;color:var(--muted);margin-left:auto}
.round-link .icon{width:21px;height:21px}
@media(max-width:700px){.contact-item>.contact-platform-icon{width:34px;height:34px;flex-basis:34px;border-radius:9px}.contact-platform-icon .icon{width:20px;height:20px}.contact-item>.contact-value{font-size:10px}#learning .code-symbol .icon{width:25px;height:25px}}



/* Motion is progressive enhancement; a script/network failure never hides content. */
.reveal-pending{opacity:0;transform:translate3d(0,24px,0)}
.section.reveal,#learning .section-label,#learning .learning-heading,#learning .language-placeholder{
transition:opacity .7s ease var(--reveal-delay,0ms),transform .7s cubic-bezier(.2,.65,.3,1) var(--reveal-delay,0ms),border-color .3s,box-shadow .3s}
.revealed{opacity:1;transform:translate3d(0,0,0)}
.orbit{will-change:transform}
.brand-icon{display:block;flex:none}
.brand-github path{fill:currentColor}
.brand-discord{color:#afafaf}
.service-icon{height:76px;align-items:flex-start}
.service-icon .line-icon{width:44px;height:44px;stroke-width:1.65}
#learning .code-symbol{width:62px;height:62px;border-radius:16px;background:linear-gradient(145deg,#ffffff0d,#ffffff03);border:1px solid #ffffff14;box-shadow:inset 0 1px #ffffff09}
#learning .code-symbol .brand-icon{width:37px;height:37px}
#learning .brand-java{height:43px!important}
#learning .language-placeholder{grid-template-columns:62px minmax(0,1fr) auto;gap:25px}
.contact-item>.contact-platform-icon{width:44px;height:44px;flex-basis:44px;border-radius:13px}
.contact-platform-icon .brand-icon,.contact-platform-icon .line-icon{width:24px;height:24px}
.footer-controls{display:flex;gap:24px;align-items:center}
.motion-toggle{appearance:none;-webkit-appearance:none;border:1px solid #414141;border-radius:30px;padding:9px 13px;background:#e5e5e507;color:#c6c6c6;font:inherit;cursor:pointer;transition:background .2s,border-color .2s}
.motion-toggle:hover{border-color:#8b8b8b;background:#e5e5e511}
.motion-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.motion-toggle[hidden]{display:none}
html[data-motion="reduced"]{scroll-behavior:auto}
html[data-motion="reduced"] *,html[data-motion="reduced"] *:before,html[data-motion="reduced"] *:after{animation:none!important;transition:none!important}
html[data-motion="reduced"] .reveal-pending{opacity:1;transform:none}
html[data-motion="reduced"] .code-card,html[data-motion="reduced"] .service-card:hover,html[data-motion="reduced"] #learning .language-placeholder:hover{transform:none}
@media(prefers-reduced-motion:reduce){
html:not([data-motion="full"]){scroll-behavior:auto}
html:not([data-motion="full"]) *,html:not([data-motion="full"]) *:before,html:not([data-motion="full"]) *:after{animation:none!important;transition:none!important}
html:not([data-motion="full"]) .reveal-pending{opacity:1;transform:none}}
@media(hover:none){.service-card:hover,#learning .language-placeholder:hover{transform:none}}
@media(max-width:700px){
#learning .code-symbol{width:50px;height:50px;border-radius:13px}
#learning .code-symbol .brand-icon{width:31px;height:31px}
#learning .brand-java{height:36px!important}
#learning .language-placeholder{grid-template-columns:50px minmax(0,1fr);gap:16px}
.footer-controls{gap:12px;flex-wrap:wrap;justify-content:flex-end}
.motion-toggle{padding:8px 10px;font-size:10px}
.contact-item>.contact-platform-icon{width:38px;height:38px;flex-basis:38px}
.contact-platform-icon .brand-icon,.contact-platform-icon .line-icon{width:22px;height:22px}}


/* Progetti e timeline */
.project-featured{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:6%;align-items:center;border:1px solid #333;border-radius:14px;padding:clamp(24px,4vw,48px);background:linear-gradient(150deg,#181818,#0e0e0e);position:relative;overflow:hidden}
.project-featured:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 85% 10%,#e5e5e50e,transparent 55%);pointer-events:none}
.project-copy{position:relative;z-index:1}
.project-meta{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}
.project-title{display:flex;align-items:center;gap:18px}
.project-title img{border-radius:14px;display:block}
.project-title h3{font-family:Manrope,sans-serif;font-weight:500;font-size:clamp(40px,5vw,64px);letter-spacing:-.06em;margin:0}
.project-lead{font-size:20px;line-height:1.5;margin:20px 0 10px;color:var(--fg)}
.project-copy p{color:#9c9c9c;font-size:15px;line-height:1.85}
.project-points{list-style:none;padding:0;margin:18px 0;display:grid;gap:10px}
.project-points li{position:relative;padding-left:22px;color:#c4c4c4;font-size:14px;line-height:1.6}
.project-points li:before{content:'';position:absolute;left:2px;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.project-stack{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 4px}
.project-stack span{font:11px Consolas,monospace;color:#b4b4b4;border:1px solid #363636;border-radius:7px;padding:6px 10px;background:#ffffff05}
.project-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:22px}
.project-actions .primary-cta{margin-top:0}
.ghost-cta{display:inline-flex;align-items:center;border:1px solid #484848;border-radius:5px;padding:15px 20px;font-size:13px;color:#d6d6d6;transition:background .25s,border-color .25s,transform .25s}
.ghost-cta:hover{background:#ffffff0c;border-color:#8a8a8a;transform:translateY(-3px)}
.project-note{font-size:12px!important;color:#7d7d7d!important;margin:18px 0 0}
.project-shots{margin:0;position:relative;z-index:1;padding:0 0 70px}
.project-shots img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid #3a3a3a;box-shadow:0 30px 80px #000000aa}
.project-shots .shot-side{position:absolute;width:62%;right:-4%;bottom:12px;box-shadow:0 25px 60px #000000cc;transition:transform .4s}
.project-shots:hover .shot-side{transform:translate(-8px,-8px)}
.project-shots figcaption{position:absolute;left:0;bottom:0;font-size:11px;color:#7d7d7d;max-width:36%}
.project-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin-top:15px}
.project-card{display:flex;flex-direction:column;border:1px solid #313131;border-radius:12px;padding:30px;background:linear-gradient(150deg,#1a1a1a,#0f0f0f);transition:transform .3s,border-color .3s,box-shadow .3s}
.project-card:hover{transform:translateY(-6px);border-color:#6f6f6f;box-shadow:0 20px 45px #00000055}
.project-card h3{font-family:Manrope,sans-serif;font-size:26px;font-weight:500;letter-spacing:-1px;margin:16px 0 10px}
.project-card p{font-size:14px;line-height:1.8;color:#9c9c9c;margin:0 0 18px}
.project-card .service-action{margin-top:auto;padding-top:18px}
.timeline{list-style:none;margin:0;padding:0;position:relative}
.timeline:before{content:'';position:absolute;left:158px;top:8px;bottom:8px;width:1px;background:linear-gradient(#444,#2a2a2a)}
.t-item{display:grid;grid-template-columns:140px minmax(0,1fr);gap:46px;padding:0 0 42px;position:relative}
.t-item:last-child{padding-bottom:0}
.t-item time{font:11px Consolas,monospace;letter-spacing:1.4px;color:#8c8c8c;padding-top:5px;text-align:right}
.t-item:before{content:'';position:absolute;left:153px;top:8px;width:11px;height:11px;border-radius:50%;background:#090909;border:2px solid #777;box-sizing:border-box;transition:border-color .3s,box-shadow .3s}
.t-item:hover:before{border-color:var(--accent)}
.t-item.current:before{background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 6px #e5e5e51a}
.t-item h3{font-family:Manrope,sans-serif;font-weight:500;font-size:22px;letter-spacing:-.7px;margin:0 0 8px}
.t-item p{margin:0 0 12px;color:#9c9c9c;font-size:14px;line-height:1.8;max-width:620px}
.t-item.current h3{color:#fff}
@media(max-width:900px){.project-featured{grid-template-columns:1fr;gap:30px}.project-grid{grid-template-columns:1fr}.project-shots{padding-bottom:60px}}
@media(max-width:700px){.timeline:before{left:5px}.t-item{grid-template-columns:1fr;gap:6px;padding-left:30px}.t-item time{text-align:left;padding-top:0}.t-item:before{left:0;top:3px}.project-actions a{flex:1 1 100%;justify-content:center}.project-shots .shot-side{width:70%}}
html[data-motion="reduced"] .project-card:hover,html[data-motion="reduced"] .project-shots:hover .shot-side{transform:none}
@media(hover:none){.project-card:hover{transform:none}}
@media(max-width:700px){nav a[href="#interests"]{display:none}}

/* Domande frequenti e leggibilita' */
.faq{margin-top:50px;border-top:1px solid var(--line);padding-top:34px}
.faq-title{font-family:Manrope,sans-serif;font-weight:500;font-size:26px;letter-spacing:-1px;margin:0 0 22px}
.faq details{border:1px solid #2f2f2f;border-radius:10px;margin-bottom:10px;background:#101010;transition:border-color .25s,background .25s}
.faq details[open]{border-color:#555;background:#141414}
.faq summary{cursor:pointer;list-style:none;padding:18px 22px;font-size:15px;color:#e0e0e0;display:flex;justify-content:space-between;gap:18px;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary:after{content:'+';font:22px Consolas,monospace;color:#9a9a9a;transition:transform .25s}
.faq details[open] summary:after{transform:rotate(45deg)}
.faq summary:focus-visible{outline:2px solid #e0e0e0;outline-offset:-2px;border-radius:10px}
.faq details p{margin:0;padding:0 22px 20px;font-size:14px;line-height:1.85;color:#a8a8a8;max-width:760px}
.faq code{font:12px Consolas,monospace;background:#ffffff0d;border:1px solid #383838;border-radius:5px;padding:2px 6px;color:#d0d0d0}
.faq a{text-decoration:underline;text-underline-offset:3px}
.project-note,.project-shots figcaption{color:#9a9a9a!important}
.t-item time{color:#a3a3a3}
.service-number,.section-label,.hero-foot,.small-note{color:#9a9a9a}
.section-label span:first-child{color:#d0d0d0}
footer{color:#9a9a9a}
.project-shots .shot-side{width:60%}

/* Timeline: schede e punti luminosi */
.timeline:before{left:158px;width:2px;border-radius:2px;background:linear-gradient(#5a5a5a,#2c2c2c 85%,transparent)}
.t-item{padding-bottom:26px}
.t-item>div{border:1px solid #2e2e2e;border-radius:14px;padding:22px 26px;background:linear-gradient(150deg,#161616,#0e0e0e);transition:transform .3s,border-color .3s,box-shadow .3s}
.t-item:hover>div{transform:translateX(6px);border-color:#5e5e5e;box-shadow:0 14px 36px #00000055}
.t-item:before{top:26px;left:152px;width:14px;height:14px;background:#0c0c0c;border:2px solid #8a8a8a}
.t-item time{padding-top:22px}
.t-item.current>div{border-color:#6a6a6a;background:linear-gradient(150deg,#1f1f1f,#111);box-shadow:0 0 0 1px #e5e5e510,0 18px 50px #00000066}
.t-item.current:before{box-shadow:0 0 0 6px #e5e5e51a,0 0 22px #e5e5e544}
.t-item p{max-width:none}
.t-item .tag{margin-top:2px}
.timeline-tip{display:grid;grid-template-columns:auto minmax(0,1fr);gap:28px;align-items:center;margin-top:34px;padding:30px;border:1px dashed #4a4a4a;border-radius:16px;background:radial-gradient(ellipse at 0% 0%,#e5e5e510,transparent 60%),#101010}
.tip-icons{display:flex;align-items:center;gap:14px;color:#9a9a9a;font-size:22px}
.tip-icons img{border-radius:12px;display:block}
.tip-widget{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;border:1px solid #444;background:#ffffff08;color:#d6d6d6;font-size:22px}
.timeline-tip h3{font-family:Manrope,sans-serif;font-weight:500;font-size:22px;letter-spacing:-.7px;margin:12px 0 8px}
.timeline-tip p{margin:0;color:#a8a8a8;font-size:14px;line-height:1.85;max-width:720px}
.timeline-tip .project-actions{margin-top:20px}
.timeline-tip .primary-cta{padding:13px 19px}
.timeline-tip .ghost-cta{padding:13px 19px}
@media(max-width:700px){.timeline:before{left:5px}.t-item>div{padding:18px}.t-item:before{left:-1px;top:6px}.t-item time{padding-top:0}.timeline-tip{grid-template-columns:1fr;padding:22px}.t-item:hover>div{transform:none}}
html[data-motion="reduced"] .t-item:hover>div{transform:none}
@media(hover:none){.t-item:hover>div{transform:none}}

/* Galleria */
.gallery{margin-top:50px;border-top:1px solid var(--line);padding-top:34px}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.gallery-item{position:relative;display:block;overflow:hidden;border:1px solid #303030;border-radius:12px;background:#0f0f0f;transition:transform .3s,border-color .3s,box-shadow .3s}
.gallery-item img{display:block;width:100%;height:auto;transition:transform .5s}
.gallery-item span{position:absolute;left:12px;bottom:12px;font-size:11px;letter-spacing:.5px;color:#f0f0f0;background:#000000b3;border:1px solid #ffffff1c;border-radius:20px;padding:6px 11px}
.gallery-item:hover{transform:translateY(-5px);border-color:#777;box-shadow:0 18px 40px #00000066}
.gallery-item:hover img{transform:scale(1.03)}
.gallery-item:focus-visible{outline:2px solid #e0e0e0;outline-offset:4px}
@media(max-width:900px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.gallery-grid{grid-template-columns:1fr}}
html[data-motion="reduced"] .gallery-item:hover,html[data-motion="reduced"] .gallery-item:hover img{transform:none}
@media(hover:none){.gallery-item:hover,.gallery-item:hover img{transform:none}}
