/* Aggiunte al foglio di stile originale (sito statico senza React) */
html{scroll-behavior:smooth}
section[id]{scroll-margin-top:84px}
[hidden]{display:none!important}

/* Menu mobile */
.ma-mobile-menu{background:#000;border-top:1px solid #262626}
.ma-mobile-menu ul{list-style:none;margin:0;padding:1rem 0;display:flex;flex-direction:column}
.ma-mobile-menu a{display:block;padding:.75rem 1.5rem;color:#fff;font-size:.875rem;letter-spacing:.2em;text-transform:uppercase;font-weight:600;text-decoration:none}
.ma-mobile-menu a:hover{background:#171717}
@media (min-width:1024px){.ma-mobile-menu{display:none!important}}

/* Scelta lingua */
.ma-lang-menu{position:absolute;right:0;top:100%;margin-top:.25rem;background:#000;border:1px solid #262626;border-radius:.25rem;box-shadow:0 10px 25px rgba(0,0,0,.4);overflow:hidden;z-index:50}
.ma-lang-menu a{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;color:#fff;text-decoration:none;white-space:nowrap}
.ma-lang-menu a:hover{background:#171717}
.ma-lang-menu .flag{font-size:1.5rem;line-height:1}
.ma-lang-menu .code{font-size:.75rem;text-transform:uppercase;letter-spacing:.1em}
.ma-lang-open svg{transform:rotate(180deg)}

/* Video */
.ma-videos{position:relative;background:#000}
.ma-track{display:grid;grid-template-columns:1fr;gap:0}
.ma-tile{position:relative;display:block;aspect-ratio:16/9;background:#171717;overflow:hidden;color:#fff;text-decoration:none}
.ma-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.ma-tile::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,0);transition:background .3s}
.ma-tile:hover::after,.ma-tile:focus-visible::after{background:rgba(0,0,0,.2)}
.ma-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:1}
.ma-play span{width:4rem;height:4rem;border-radius:9999px;background:rgba(255,255,255,.3);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,.4);display:flex;align-items:center;justify-content:center;transition:all .3s}
.ma-play svg{width:1.5rem;height:1.5rem;margin-left:.2rem;fill:#fff;transition:fill .3s}
.ma-tile:hover .ma-play span,.ma-tile:focus-visible .ma-play span{background:rgba(255,255,255,.9);transform:scale(1.1)}
.ma-tile:hover .ma-play svg,.ma-tile:focus-visible .ma-play svg{fill:#000}
.ma-title{position:absolute;left:0;right:0;bottom:0;z-index:1;padding:.75rem;font-size:.875rem;font-weight:500;line-height:1.3;background:linear-gradient(to top,rgba(0,0,0,.75),transparent)}
.ma-arrow{display:none}
@media (hover:hover){.ma-title{opacity:0;transition:opacity .3s}.ma-tile:hover .ma-title,.ma-tile:focus-visible .ma-title{opacity:1}}
@media (min-width:640px){
  .ma-track{display:flex;gap:4px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none}
  .ma-track::-webkit-scrollbar{display:none}
  .ma-tile{flex:0 0 calc((100% - 16px)/5);aspect-ratio:9/16;scroll-snap-align:start}
  .ma-play span{width:5rem;height:5rem}
  .ma-play svg{width:2rem;height:2rem}
  .ma-arrow{display:flex;position:absolute;top:50%;transform:translateY(-50%);width:3rem;height:3rem;align-items:center;justify-content:center;background:rgba(0,0,0,.4);color:#fff;border:0;cursor:pointer;z-index:2;transition:opacity .3s,background .3s}
  .ma-arrow:hover{background:rgba(0,0,0,.7)}
  .ma-arrow svg{width:1.75rem;height:1.75rem}
  .ma-prev{left:.5rem}.ma-next{right:.5rem}
}
@media (min-width:768px){.ma-arrow{opacity:0}.ma-videos:hover .ma-arrow,.ma-arrow:focus-visible{opacity:1}}
@media (min-width:640px) and (max-width:1023px){.ma-tile{flex-basis:calc((100% - 8px)/3)}}

/* Modulo contatti */
.ma-form-note{font-size:.75rem;color:#525252;line-height:1.5}
.ma-form-note a{text-decoration:underline}
.ma-form-note a:hover{color:#000}
.ma-form-error{font-size:.85rem;color:#b91c1c;text-align:center}
.ma-sent{text-align:center;max-width:36rem;margin:0 auto;padding:2rem 0}
.ma-sent h3{font-size:1.5rem;font-weight:800;margin-bottom:.5rem}
.ma-sent p{color:#525252;font-size:.9rem}
.ma-sent button{margin-top:1.5rem;background:#000;color:#fff;border:0;padding:.75rem 2rem;font-size:.85rem;letter-spacing:.05em;cursor:pointer}
.ma-sent button:hover{background:#262626}

/* Pagine legali */
.legal h2{font-size:1.25rem;font-weight:800;margin:2.25rem 0 .75rem;line-height:1.3}
.legal h3{font-size:1.05rem;font-weight:700;margin:1.5rem 0 .5rem}
.legal p{margin:0 0 1rem}
.legal ul{list-style:disc;padding-left:1.4rem;margin:0 0 1rem}
.legal li{margin:.35rem 0}
.legal a{text-decoration:underline}
.legal a:hover{color:#000}
.legal .legal-updated{font-size:.85rem;color:#737373}
.legal .legal-note{font-size:.85rem;color:#525252;background:#f5f5f5;padding:.75rem 1rem}

/* Pagina 404 */
.ma-404{min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8rem 1.5rem 4rem}
.ma-404 h1{font-size:clamp(3rem,10vw,6rem);font-weight:800;line-height:1}
.ma-404 p{margin:1rem 0 2rem;color:#525252}
.ma-404 a{background:#000;color:#fff;padding:.75rem 2rem;font-size:.85rem;letter-spacing:.05em;text-decoration:none}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Galleria privata clienti */
.ma-gallery{padding:7.5rem 1rem 4rem;max-width:1600px;margin:0 auto}
.ma-g-loading,.ma-g-error{min-height:50vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#525252;gap:.75rem}
.ma-g-error h1{font-size:1.75rem;font-weight:800;color:#000}
.ma-g-error a{margin-top:1rem;background:#000;color:#fff;padding:.75rem 2rem;font-size:.85rem;text-decoration:none}
.ma-spinner{width:2rem;height:2rem;border:2px solid #e5e5e5;border-top-color:#000;border-radius:50%;animation:ma-spin 1s linear infinite}
@keyframes ma-spin{to{transform:rotate(360deg)}}
.ma-g-head{text-align:center;margin-bottom:2.5rem}
.ma-g-label{font-size:.7rem;letter-spacing:.25em;text-transform:uppercase;font-weight:700;color:#737373}
.ma-g-title{font-size:clamp(2rem,6vw,3.75rem);font-weight:800;line-height:1.1;margin:.5rem 0}
.ma-g-sub{color:#525252;font-size:.9rem}
.ma-g-all{display:inline-flex;align-items:center;gap:.5rem;margin-top:1.5rem;background:#000;color:#fff;padding:.75rem 1.75rem;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;text-decoration:none}
.ma-g-all:hover{background:#262626}
.ma-g-all svg{width:1rem;height:1rem}
.ma-g-grid{display:flex;flex-wrap:wrap;gap:4px 0}
.ma-g-item{display:block;margin-right:4px;background:#f5f5f5;overflow:hidden;cursor:zoom-in}
.ma-g-item img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .3s,transform .4s}
.ma-g-item:hover img{transform:scale(1.02)}
.ma-g-cta{text-align:center;padding:4rem 1rem 1rem}
.ma-g-cta .eyebrow{font-size:.7rem;letter-spacing:.25em;text-transform:uppercase;font-weight:700;color:#737373}
.ma-g-cta h2{font-size:2.25rem;font-weight:800;margin:.5rem 0}
.ma-g-cta p{color:#525252;font-size:.9rem;margin-bottom:1.5rem}
.ma-g-cta a{background:#000;color:#fff;padding:.75rem 2rem;font-size:.85rem;text-decoration:none}
.ma-lb{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.95);display:flex;flex-direction:column}
.ma-lb-bar{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;color:#fff;font-size:.8rem;letter-spacing:.1em}
.ma-lb-bar a,.ma-lb-bar button{color:#fff;background:none;border:0;cursor:pointer;padding:.5rem;display:inline-flex;align-items:center;gap:.4rem;text-decoration:none;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase}
.ma-lb-bar svg{width:1.4rem;height:1.4rem}
.ma-lb-stage{flex:1;display:flex;align-items:center;justify-content:center;position:relative;min-height:0;padding:0 .5rem 1rem}
.ma-lb-stage img{max-width:100%;max-height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.ma-lb-prev,.ma-lb-next{position:absolute;top:50%;transform:translateY(-50%);width:3rem;height:3rem;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.08);color:#fff;border:0;cursor:pointer}
.ma-lb-prev:hover,.ma-lb-next:hover{background:rgba(255,255,255,.2)}
.ma-lb-prev{left:.75rem}.ma-lb-next{right:.75rem}
.ma-lb-prev svg,.ma-lb-next svg{width:1.75rem;height:1.75rem}
@media (max-width:639px){.ma-lb-prev,.ma-lb-next{display:none}.ma-gallery{padding-top:6.5rem}}

/* Video a schermo intero dentro il sito */
.ma-vlb{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center;padding:4rem 1rem 2rem}
.ma-vlb-box{width:min(1100px,100%,calc((100vh - 8rem) * 16 / 9))}
.ma-vlb-frame{position:relative;aspect-ratio:16/9;background:#000}
.ma-vlb-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.ma-vlb-title{color:#d4d4d4;font-size:.85rem;margin-top:.75rem;text-align:center}
.ma-vlb-x{position:absolute;top:.75rem;right:.75rem;width:3rem;height:3rem;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.1);border:0;border-radius:9999px;color:#fff;cursor:pointer}
.ma-vlb-x:hover{background:rgba(255,255,255,.25)}
.ma-vlb-x svg{width:1.6rem;height:1.6rem}
.ma-vlb-ask{position:absolute;inset:0;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;text-align:center}
.ma-vlb-ask::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.55)}
.ma-vlb-ask>div{position:relative;max-width:30rem;padding:1rem;color:#fff}
.ma-vlb-play{display:inline-flex;align-items:center;gap:.6rem;background:#fff;color:#000;border:0;padding:.85rem 1.6rem;font-size:.9rem;font-weight:700;letter-spacing:.05em;cursor:pointer}
.ma-vlb-play svg{width:1.1rem;height:1.1rem;fill:#000}
.ma-vlb-play:hover{background:#e5e5e5}
.ma-vlb-ask p{font-size:.75rem;line-height:1.5;margin-top:1rem;color:#e5e5e5}
.ma-vlb-ask a{text-decoration:underline;color:#fff}

/* ---- Versione 2: servizi, titolo video, clienti, pagina servizio ---- */
.ma-wrap{max-width:72rem;margin:0 auto;padding:0 1.5rem}
.ma-eyebrow{font-size:.7rem;letter-spacing:.25em;text-transform:uppercase;font-weight:700;color:#737373}
.ma-lead{color:#525252;font-size:1rem;line-height:1.7;max-width:44rem}
.ma-btn{display:inline-block;background:#000;color:#fff;padding:.8rem 2rem;font-size:.85rem;letter-spacing:.08em;text-decoration:none}
.ma-btn:hover{background:#262626}

.ma-services{background:#fff;padding:0 0 4rem}
.ma-services h2,.ma-sv h2{font-size:clamp(1.75rem,4vw,2.5rem);font-weight:800;letter-spacing:.01em;margin-bottom:.75rem}
.ma-services .ma-lead{margin-bottom:2.5rem}
.ma-svc-grid{display:grid;grid-template-columns:1fr;gap:2rem}
@media (min-width:640px){.ma-svc-grid{grid-template-columns:1fr 1fr}}
@media (min-width:1024px){.ma-svc-grid{grid-template-columns:repeat(4,1fr)}}
.ma-svc{border-top:2px solid #000;padding-top:1.25rem;scroll-margin-top:96px}
.ma-svc h3{font-size:1rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.6rem}
.ma-svc p{color:#525252;font-size:.9rem;line-height:1.65;margin-bottom:.9rem}
.ma-svc a{font-size:.8rem;font-weight:700;letter-spacing:.05em;text-decoration:none;border-bottom:1px solid #000;padding-bottom:2px}
.ma-svc a:hover{color:#525252;border-color:#525252}
.ma-svc:target{background:#fafafa}

.ma-clients{background:#fafafa;border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;padding:1.75rem 0;text-align:center}
.ma-clients-list{margin-top:.6rem;color:#404040;font-size:.95rem;font-weight:600;line-height:2}
.ma-clients-list span[aria-hidden]{color:#a3a3a3;margin:0 .35rem}

.ma-vhead{color:#fff;text-align:center;padding:3rem 1.5rem 2rem}
.ma-vhead h2{font-size:clamp(1.75rem,4vw,2.5rem);font-weight:800}
.ma-vhead p{color:#a3a3a3;font-size:.95rem;margin-top:.4rem}
.ma-copy{font-size:.75rem;color:#737373;text-align:center}

/* Pagina servizio */
.ma-sv{padding-top:6rem}
.ma-sv-hero{padding:3.5rem 0 3rem;border-bottom:1px solid #e5e5e5}
.ma-sv-hero h1{font-size:clamp(2.1rem,6vw,3.75rem);font-weight:800;line-height:1.08;margin:.6rem 0 1.25rem;max-width:52rem}
.ma-sv-hero .ma-lead{margin-bottom:2rem}
.ma-sv-block{padding:3.5rem 0}
.ma-two{display:grid;grid-template-columns:1fr;gap:3rem}
@media (min-width:900px){.ma-two{grid-template-columns:1fr 1fr}}
.ma-list{list-style:none;padding:0;margin:0}
.ma-list li{padding:.7rem 0;border-bottom:1px solid #e5e5e5;color:#404040}
.ma-list a{text-decoration:underline}
.ma-steps{counter-reset:s;list-style:none;padding:0;margin:0}
.ma-steps li{counter-increment:s;position:relative;padding:0 0 1.1rem 2.75rem;color:#404040;line-height:1.6}
.ma-steps li::before{content:counter(s);position:absolute;left:0;top:-.1rem;width:1.9rem;height:1.9rem;border-radius:50%;background:#000;color:#fff;font-weight:800;font-size:.85rem;display:flex;align-items:center;justify-content:center}
.ma-sv-videos{background:#000;color:#fff;padding:3.5rem 0 0}
.ma-sv-videos .ma-wrap{margin-bottom:1.75rem}
.ma-sv-videos .ma-wrap p{color:#a3a3a3}
.ma-vgrid{display:grid;grid-template-columns:1fr;gap:4px}
@media (min-width:640px){.ma-vgrid{grid-template-columns:1fr 1fr}}
@media (min-width:1024px){.ma-vgrid{grid-template-columns:repeat(3,1fr)}}
.ma-vgrid .ma-tile{aspect-ratio:16/9!important;flex:none!important}
.ma-faq details{border-bottom:1px solid #e5e5e5;padding:1rem 0}
.ma-faq summary{cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:1rem}
.ma-faq summary::-webkit-details-marker{display:none}
.ma-faq summary::after{content:"+";font-weight:400;font-size:1.4rem;line-height:1}
.ma-faq details[open] summary::after{content:"–"}
.ma-faq details p{color:#525252;margin-top:.75rem;line-height:1.7;max-width:48rem}

.ma-icon-desc{display:block;max-width:12rem;margin-top:-.25rem;text-align:center;color:#737373;font-size:.75rem;line-height:1.4;font-weight:400}
@media (max-width:639px){.ma-icon-desc{max-width:16rem}}

/* Crea galleria */
.ma-crea{max-width:42rem;margin:0 auto;padding:8rem 1.5rem 5rem}
.ma-crea h1{font-size:clamp(2rem,6vw,3rem);font-weight:800;margin:.4rem 0 1.5rem}
.ma-crea-steps{padding-left:1.2rem;color:#525252;line-height:1.8;margin-bottom:1.75rem;list-style:decimal}
#ma-crea{display:flex;flex-direction:column;gap:.75rem}
@media (min-width:640px){#ma-crea{flex-direction:row}}
#ma-crea input{flex:1;border:1px solid #a3a3a3;padding:.8rem 1rem;font-size:.9rem}
#ma-crea input:focus{outline:none;border-color:#000}
#ma-crea button,.ma-crea-btns button,.ma-crea-btns a{background:#000;color:#fff;border:0;padding:.8rem 1.6rem;font-size:.85rem;letter-spacing:.05em;cursor:pointer;text-decoration:none;display:inline-block}
.ma-crea-btns a{background:#fff;color:#000;border:1px solid #000}
.ma-crea-msg{margin-top:1rem;color:#b91c1c;font-size:.9rem;min-height:1.2rem}
.ma-crea-out{margin-top:1.5rem;border:1px solid #e5e5e5;background:#fafafa;padding:1.25rem}
.ma-crea-info{font-weight:700;margin-bottom:.4rem}
.ma-crea-link{font-family:ui-monospace,Menlo,monospace;font-size:.9rem;word-break:break-all;margin-bottom:1rem}
.ma-crea-btns{display:flex;gap:.5rem;flex-wrap:wrap}
.ma-crea-note{margin-top:1rem;font-size:.8rem;color:#737373;line-height:1.5}

/* Area riservata */
.ma-admin{max-width:56rem;margin:0 auto;padding:7.5rem 1.5rem 5rem}
.ma-admin h1{font-size:clamp(2rem,5vw,2.75rem);font-weight:800;margin:.35rem 0 1.5rem}
.ma-admin form label{display:block;font-size:.8rem;font-weight:700;letter-spacing:.03em;margin-bottom:1rem}
.ma-admin input{display:block;width:100%;margin-top:.35rem;border:1px solid #a3a3a3;padding:.75rem .9rem;font-size:.95rem;font-weight:400;background:#fff}
.ma-admin input:focus{outline:none;border-color:#000}
.ma-admin form button,.ma-a-actions button,.ma-a-actions a{background:#000;color:#fff;border:0;padding:.7rem 1.4rem;font-size:.82rem;letter-spacing:.04em;cursor:pointer;text-decoration:none;display:inline-block}
.ma-admin form button:disabled{opacity:.5}
#ma-a-login,#ma-a-password{max-width:24rem;margin:0 auto}
.ma-a-msg{min-height:1.3rem;margin:1rem 0;font-size:.9rem;color:#b91c1c}
.ma-a-msg.ok{color:#15803d}
.ma-a-link{background:none;border:0;padding:0;font-size:.85rem;text-decoration:underline;cursor:pointer;color:#525252}
.ma-a-top{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
.ma-a-card{border:1px solid #e5e5e5;background:#fafafa;padding:1.5rem}
.ma-a-card h2,.ma-a-h2{font-size:1.15rem;font-weight:800;margin-bottom:.5rem}
.ma-a-h2{margin-top:2rem}
.ma-a-help{font-size:.85rem;color:#525252;margin-bottom:1.25rem}
.ma-a-row{display:flex;flex-direction:column;gap:.75rem;border-bottom:1px solid #e5e5e5;padding:1rem 0}
@media (min-width:768px){.ma-a-row{flex-direction:row;justify-content:space-between;align-items:center}}
.ma-a-title{font-weight:800}
.ma-a-meta{font-size:.8rem;color:#737373}
.ma-a-url{font-family:ui-monospace,Menlo,monospace;font-size:.78rem;color:#404040;word-break:break-all}
.ma-a-actions{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.ma-a-actions button,.ma-a-actions a{padding:.5rem .9rem;font-size:.75rem}
.ma-a-actions a{background:#fff;color:#000;border:1px solid #000}
.ma-a-actions .ma-a-del{background:#fff;color:#b91c1c;border:1px solid #b91c1c}
.ma-a-badge{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;padding:.3rem .6rem}
.ma-a-badge.on{background:#dcfce7;color:#166534}
.ma-a-badge.off{background:#f5f5f5;color:#737373}
.ma-a-empty{color:#737373;font-size:.9rem;padding:1rem 0}
