/* maseratifilm.com · small UX layer (2026-11-01): back button, Plan Pro in the phone header, clean portfolio tiles */
/* Portfolio tiles: just the picture — no coloured overlay, title, buttons or counter */
#grid .item .ov,#grid .item .n{display:none!important}
#grid .item{cursor:pointer}

/* Plan Pro in the phone header (home) */
.tools .ux-pp{display:none}
@media (max-width:1000px){
 .tools .ux-pp{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:38px;padding:0 4px;color:#fff;text-decoration:none;font-family:Poppins,system-ui,sans-serif;font-size:9px;letter-spacing:.03em;line-height:1;white-space:nowrap;transition:color .2s}
 .tools .ux-pp:hover{color:var(--accent,#08c1b8)}
 .hdr.filled .tools .ux-pp{color:var(--ink,#111)}
 .tools .ux-pp .pp-release-mark{display:inline-grid;width:16px;height:16px}
 .tools .ux-pp .pp-release-mark img{width:16px;height:16px;display:block;grid-area:1/1}
 .tools .ux-pp .on-light{display:none}
 .hdr.filled .tools .ux-pp .on-dark{display:none}
 .hdr.filled .tools .ux-pp .on-light{display:block}
}
@media (max-width:420px){.hdr .tools{margin-inline:0 8px;gap:2px}}

/* Plan Pro in the phone header (inner pages) */
.ux-pp-astro{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:36px;padding:0 3px;color:inherit;text-decoration:none;font-size:9px;font-weight:600;line-height:1;white-space:nowrap;opacity:.9}
.ux-pp-astro img{width:16px;height:16px;border-radius:4px}
@media (max-width:440px){#site-header .gap-2{gap:4px}}
@media (min-width:768px){.ux-pp-astro{display:none}}

/* Back */
.ux-back{position:fixed;z-index:60;bottom:calc(18px + env(safe-area-inset-bottom,0px));inset-inline-start:16px;display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px 0 12px;border-radius:999px;background:rgba(17,19,21,.78);color:#fff;text-decoration:none;font-size:13px;line-height:1;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 6px 18px rgba(0,0,0,.22);transition:background .2s,transform .2s}
.ux-back:hover{background:rgba(17,19,21,.92)}
.ux-back:active{transform:scale(.96)}
.ux-back svg{width:16px;height:16px;flex:none}
@media (max-width:760px){.ux-back{width:42px;height:42px;padding:0;justify-content:center}.ux-back span{display:none}}
[dir="rtl"] .ux-back svg{transform:scaleX(-1)}
@media print{.ux-back,.ux-pp,.ux-pp-astro{display:none!important}}
@media (max-width:400px){#theme-switcher-container #theme-btn-auto{display:none}.ux-pp-astro{padding:0}}


/* Product shortcut shares the header's scale; its position never mirrors by language. */
.hdr .ux-pp:focus-visible,.pp-team-jump:focus-visible{outline:2px solid var(--accent,#08c1b8);outline-offset:4px}
@media(max-width:1000px){
 #hdr .wrap{position:relative}#hdr .hdr-end,#hdr .tools{position:static}
 #hdr .tools .ux-pp{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 12px;font-size:14px;line-height:1.3;font-weight:500;border:1px solid currentColor;border-radius:4px;letter-spacing:0;white-space:nowrap}
 #hdr .tools .ux-pp .pp-release-mark,#hdr .tools .ux-pp .pp-release-mark img{width:20px;height:20px}
 #hdr .tools .ux-pp:active{opacity:.75}
}
@media(max-width:600px){
 #hdr .wrap{width:calc(100% - 24px)}#hdr .logo{flex:0 0 34px;gap:0}#hdr .logo>span{display:none}#hdr .logo .mark{width:32px;height:32px}
 #hdr .hdr-end{flex:1;gap:8px;justify-content:flex-end}#hdr .tools{display:flex;gap:4px;margin:0}#hdr .tools>#searchBtn{width:28px;min-width:28px;height:44px;display:grid;place-items:center;padding:0}
 #hdr .tools>.lang{width:32px;min-width:32px;height:32px;padding:0;font-size:11px}
 #hdr .burger{width:28px;height:44px;flex:none}#hdr .burger::before{top:12px}#hdr .burger i{top:21px}#hdr .burger::after{bottom:12px}
 #hdr .tools .ux-pp{font-size:13px;gap:6px;padding:0 9px}
}
.pp-team-lead{font-size:17px;line-height:2;max-width:620px;margin:18px 0}.pp-team-jump{display:inline-flex;align-items:center;min-height:44px;margin:4px 0 12px;color:var(--accent,#08c1b8);font-size:15px;text-underline-offset:5px;text-decoration:underline}
.pp-team-section{scroll-margin-top:86px;padding-block:64px}.pp-team-flow{list-style:none;margin-top:26px;display:grid;gap:0;padding:0}.pp-team-flow li{display:grid;grid-template-columns:42px minmax(140px,.8fr) minmax(0,2fr);align-items:start;gap:24px;padding:24px 0;border-top:1px solid #ffffff1a}.pp-team-flow h3{font-size:19px;line-height:1.7;margin:0;color:inherit}.pp-team-flow p{font-size:16px;line-height:1.95;margin:0}.pp-team-no{font-family:Poppins,sans-serif;color:var(--accent,#08c1b8);direction:ltr;unicode-bidi:isolate;font-size:13px;padding-top:5px}.pp-team-note{font-size:14px;line-height:1.9;margin:20px 0 0;opacity:.8}.pp-team-section .pt,.pp-team-section .ps{max-width:850px}
@media(max-width:700px){.pp-team-section{padding-block:42px}.pp-team-flow li{grid-template-columns:30px minmax(0,1fr);gap:10px 14px;padding:22px 0}.pp-team-flow p{grid-column:2;font-size:16px}.pp-team-flow h3{font-size:19px}.pp-team-no{padding-top:4px}.pp-team-lead{font-size:16px}}

@media(max-width:360px){#hdr .tools .ux-pp{font-size:12px;padding:0 6px;gap:4px}#hdr .tools .ux-pp .pp-release-mark,#hdr .tools .ux-pp .pp-release-mark img{width:18px;height:18px}}
@media(min-width:1001px){#hdr .nav{grid-template-columns:repeat(4,minmax(0,1fr)) minmax(92px,1.3fr) repeat(3,minmax(0,1fr))}}
