/*
Theme Name: DVIDEO Cinema
Theme URI: https://dvideo.biz/
Author: DVIDEO
Description: Tema WordPress DVIDEO Cinema con pagine Home, Matrimoni, Eventi, Riprese Aeree, Chi siamo e Contatti.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dvideo-cinema
*/
:root{--bg:#0b0b0d;--fg:#f5f3ed;--muted:#b5b0ab;--accent:#d7ad78}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--fg);font-family:Arial,Helvetica,sans-serif;line-height:1.6}a{color:inherit;text-decoration:none}img,video{max-width:100%;height:auto}button,input,textarea{font:inherit}button{cursor:pointer}h1,h2,h3{line-height:1.12}h1{font-size:clamp(2.7rem,7vw,6rem)}h2{font-size:clamp(2rem,4vw,3.5rem)}p{color:var(--muted)}.wrap{width:min(1160px,92%);margin:auto}.center{text-align:center}.eyebrow,small{letter-spacing:.16em;text-transform:uppercase;color:var(--accent)}header{position:relative;z-index:10}nav,.preview-nav{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;flex-wrap:wrap;padding:1rem 4%;background:#101013}nav a,.preview-nav a{font-size:.9rem}nav a:hover,.preview-nav a:hover{color:var(--accent)}.menu-toggle{background:transparent;color:white;border:1px solid #777;padding:.5rem}main section{padding:clamp(3rem,7vw,7rem) 0}.hero{position:relative;min-height:65vh;display:flex;align-items:center;overflow:hidden}.hero-video,.hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.48}.hero .wrap,.hero-content{position:relative;z-index:2}.services,.projects,.portfolio-grid,.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.service,.project{background:#18181b;overflow:hidden;border-radius:4px}.service img,.project img{width:100%;aspect-ratio:16/10;object-fit:cover}.service-content,.project-content{padding:1.3rem}.outline,.btn,.button{display:inline-block;border:1px solid var(--accent);padding:.8rem 1.5rem;color:var(--fg);background:transparent}.contact-form{display:grid;gap:1rem;width:min(650px,100%);margin:2rem auto}.contact-form input,.contact-form textarea{width:100%;padding:1rem;background:#18181b;color:white;border:1px solid #555}.contact-form button{padding:1rem;background:var(--accent);color:#151515;border:0}.about{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:3rem;align-items:center}footer{padding:3rem 4%;background:#101013}footer a{color:var(--fg)}.cinema-intro{position:relative}.cinema-poster{max-width:100%}[hidden]{display:none!important}@media(max-width:700px){nav{gap:.75rem}.services,.projects{grid-template-columns:1fr}.hero{min-height:55vh}}
/* DVIDEO 1.1: separate, responsive cinematic entrance */
html,body{width:100%;max-width:100%;overflow-x:hidden}
body{background:#080809}
.dvideo-landing{min-height:100svh;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px 12px 32px;background:radial-gradient(ellipse at 50% 42%,#26190d 0%,#09090a 70%);gap:18px}
.dvideo-landing-art{display:block;width:min(100%,1120px);margin:auto;line-height:0;cursor:pointer}
.dvideo-landing-art img{display:block;width:100%;height:auto;max-height:calc(100svh - 110px);object-fit:contain}
.dvideo-enter{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:11px 26px;border:1px solid #d9a24e;background:#160e08;color:#f4d49b;letter-spacing:.16em;font-size:13px;font-weight:700;text-align:center;box-shadow:0 0 22px #bc7c2740}
.dvideo-enter:hover,.dvideo-enter:focus-visible{background:#9e6a2c;color:white}
.dvideo-site-page{width:100%;max-width:100%;overflow:hidden}
.dvideo-site-page img,.dvideo-site-page video{max-width:100%;height:auto}
.dvideo-site-page header{width:100%;max-width:100%}
@media(max-width:700px){.dvideo-landing{padding:12px 8px 30px;gap:16px}.dvideo-landing-art img{max-height:calc(100svh - 110px)}.dvideo-enter{font-size:12px}.dvideo-site-page{width:100%}}

/* DVIDEO: subtle animated gold sparkles on the entrance only */
.dvideo-landing{isolation:isolate;position:relative}
.dvideo-sparkles{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1}
.dvideo-sparkles span{position:absolute;left:var(--x);top:var(--y);width:3px;height:3px;border-radius:50%;background:#ffe0a0;box-shadow:0 0 7px 2px #f6b95e,0 0 17px 3px #bb7a27;animation:dvideo-twinkle var(--dur) ease-in-out var(--delay) infinite alternate;opacity:.2}
.dvideo-sparkles span:nth-child(4n){width:5px;height:5px}
@keyframes dvideo-twinkle{0%,100%{opacity:.12;transform:scale(.5)}50%{opacity:1;transform:scale(1.5)}}
.dvideo-landing-art,.dvideo-enter{position:relative;z-index:2}
@media(prefers-reduced-motion:reduce){.dvideo-sparkles span{animation:none;opacity:.45}}
/* Consistent dark-gold controls across the internal pages */
.dvideo-site-page button:not(.menu-toggle),.dvideo-site-page .outline,.dvideo-site-page .btn,.dvideo-site-page .button{background:#151210!important;color:#e9c28a!important;border:1px solid #c59a5b!important;border-radius:5px;box-shadow:none}
.dvideo-site-page button:hover,.dvideo-site-page .outline:hover{background:#382719!important;color:#fff0d4!important}
.dvideo-site-page .menu-toggle{background:#151210;color:#e9c28a;border-color:#c59a5b}

/* Footer: un solo logo discreto su tutte le pagine interne */
.dvideo-site-page > footer .logo img {display:block!important;width:150px!important;max-width:45vw!important;height:auto!important;max-height:95px!important;object-fit:contain!important;object-position:left center!important;}
.dvideo-site-page > footer .logo {display:inline-block!important;width:auto!important;max-width:160px!important;}
@media(max-width:600px){.dvideo-site-page > footer .logo img{width:110px!important;max-height:75px!important;}}

/* DVIDEO 1.5 — footer logos at approximately half previous size */
.dvideo-site-page > footer .logo,.dvideo-site-page > footer .logo img{width:75px!important;max-width:75px!important;max-height:50px!important;height:auto!important;object-fit:contain!important}
.dvideo-brand-footer img{display:block!important;width:75px!important;max-width:75px!important;max-height:75px!important;height:auto!important;object-fit:contain!important;margin-left:auto!important;margin-right:auto!important}
@media(max-width:600px){.dvideo-site-page > footer .logo,.dvideo-site-page > footer .logo img{width:55px!important;max-width:55px!important;max-height:40px!important}.dvideo-brand-footer img{width:55px!important;max-width:55px!important;max-height:55px!important}}
/* Decorative gold twinkles on internal pages, with no clicks intercepted */
body:not(.home) .dvideo-page-sparkles, .dvideo-page-sparkles{position:fixed;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.dvideo-page-sparkles i{position:absolute;left:var(--x);top:var(--y);width:3px;height:3px;border-radius:50%;background:#ffdda0;box-shadow:0 0 8px 2px #b98a4d;opacity:0;animation:dvideo-page-twinkle var(--dur) ease-in-out var(--delay) infinite}
@keyframes dvideo-page-twinkle{0%,100%{opacity:0;transform:scale(.4)}45%{opacity:.75;transform:scale(1.2)}65%{opacity:.2;transform:scale(.65)}}
@media(prefers-reduced-motion:reduce){.dvideo-page-sparkles i{animation:none;opacity:.2}}

/* DVIDEO 1.7: cinematic welcome fills the entire visible screen. */
body.home:has(.dvideo-landing){margin:0!important;min-height:100svh}
.dvideo-landing{height:100svh;min-height:100svh;width:100%;max-width:100vw;box-sizing:border-box;padding:0!important;gap:0!important;display:block;overflow:hidden;position:relative;background:#080809}
.dvideo-landing-art{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#26190d 0%,#080809 75%)}
.dvideo-landing-art img{width:100%;height:100%;max-height:none!important;object-fit:contain;object-position:center center}
.dvideo-enter{position:absolute;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:4;white-space:nowrap;max-width:calc(100% - 24px);box-sizing:border-box}
.dvideo-sparkles{z-index:3}
@media(max-width:700px){.dvideo-landing{height:100svh;min-height:100svh}.dvideo-enter{bottom:max(18px,env(safe-area-inset-bottom));padding:11px 20px}}

/* DVIDEO 1.8: force a genuinely compact footer logo on every internal page */
footer.dvideo-brand-footer > img, footer.dvideo-brand-footer img[alt*="logo"], .dvideo-site-page footer a.logo img, footer a.logo img {width:75px!important;min-width:0!important;max-width:75px!important;height:auto!important;max-height:52px!important;object-fit:contain!important;transform:none!important;flex:none!important;}
@media(max-width:600px){footer.dvideo-brand-footer > img,footer.dvideo-brand-footer img[alt*="logo"],.dvideo-site-page footer a.logo img,footer a.logo img{width:55px!important;max-width:55px!important;max-height:40px!important;}}

/* DVIDEO 1.9 — logo del footer leggermente più grande, senza cambiare la copertina */
.dvideo-site-page > footer .logo, .dvideo-site-page > footer .logo img,
footer.dvideo-brand-footer > img, footer.dvideo-brand-footer img,
.dvideo-site-page footer a.logo img, footer a.logo img {
  width:100px!important; max-width:100px!important; max-height:72px!important;
  height:auto!important; object-fit:contain!important;
}
@media(max-width:600px){
  .dvideo-site-page > footer .logo, .dvideo-site-page > footer .logo img,
  footer.dvideo-brand-footer > img, footer.dvideo-brand-footer img,
  .dvideo-site-page footer a.logo img, footer a.logo img {
    width:75px!important; max-width:75px!important; max-height:55px!important;
  }
}


/* D.VIDEO 2.0 — logo più grande su tutte le pagine interne, non sulla copertina */
.dvideo-site-page footer a.logo,.dvideo-site-page footer a.logo img,
footer.dvideo-brand-footer > img,footer.dvideo-brand-footer img[alt*="logo"]{
 width:140px!important;max-width:140px!important;min-width:0!important;
 max-height:110px!important;height:auto!important;object-fit:contain!important;
 transform:none!important;
}
@media(max-width:600px){
 .dvideo-site-page footer a.logo,.dvideo-site-page footer a.logo img,
 footer.dvideo-brand-footer > img,footer.dvideo-brand-footer img[alt*="logo"]{
 width:105px!important;max-width:105px!important;max-height:85px!important;
 }
}
/* Luccichio discreto sul nero, dietro i contenuti: nessuna interferenza con i click */
.dvideo-page-sparkles{position:fixed!important;inset:0!important;z-index:0!important;pointer-events:none!important;overflow:hidden!important}
.dvideo-page-sparkles i{width:2px;height:2px;background:#ffe2a5;box-shadow:0 0 6px 2px rgba(235,176,73,.75),0 0 15px rgba(231,170,65,.35)}
.dvideo-page-sparkles i:nth-child(7n){width:4px;height:4px}
body:not(.home){background:#0b0b0d}
body:not(.home) main,body:not(.home) header,body:not(.home) footer,
.dvideo-site-page > main,.dvideo-site-page > header,.dvideo-site-page > footer{
 position:relative;z-index:1;
}
/* Keep section surfaces clear so gold sparkles show in black negative space */
body:not(.home) main section{background-color:transparent}
@media(prefers-reduced-motion:reduce){.dvideo-page-sparkles i{animation:none!important;opacity:.22!important}}
