/* EdilMen · strato "futuro" (26/11/2026): portale al neon, vortice animato, vetro e luci.
   Ispirazione: anello luminoso e vortice blu, pulsanti a pillola in vetro. Colori di marca blu #0096D6 → verde #29A04E.
   Tutto si spegne con "riduci movimento". */
:root{--fx-blu:#0096D6;--fx-ciano:#33C6F4;--fx-verde:#29A04E;--fx-notte:#040A18;--fx-notte2:#0A1630}

/* testata in vetro scuro con filo al neon */
.hdr{background:rgba(7,18,38,.96)!important;backdrop-filter:saturate(1.6) blur(16px)!important;-webkit-backdrop-filter:saturate(1.6) blur(16px)!important;border-bottom:1px solid rgba(51,198,244,.18)!important}
.hdr::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,var(--fx-ciano),var(--fx-verde),transparent);opacity:.7}
.hdr nav a{color:#C9D6EE!important}
.hdr nav a:hover{color:#fff!important;background:rgba(255,255,255,.07)!important}
.hdr nav a[aria-current="page"]{color:#fff!important;box-shadow:inset 0 -2px 0 var(--fx-verde)!important}
.hdr nav a[href="/aziende"]{color:var(--fx-ciano)!important}
.hdr .logo-img,.hdr .logo img{content:url(/img/edilmen-logo-bianco.svg)}
.mn-btn{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.18)!important;color:#fff!important}
.hdr.mn-aperto nav{background:#071226!important;border-color:rgba(51,198,244,.2)!important}
.hdr.mn-aperto nav a{color:#E6EEFB!important;border-color:rgba(255,255,255,.08)!important}

/* pulsanti principali: pillola con bagliore e riflesso che scorre */
.btn-go,.btn-blue,.btn-cta,.pick-via,.hdr .btn{position:relative;overflow:hidden;border-radius:999px!important;box-shadow:0 0 0 1px rgba(255,255,255,.12) inset,0 8px 28px -10px rgba(0,150,214,.75),0 0 22px -6px rgba(41,160,78,.6)!important}
.btn-go::after,.btn-blue::after,.btn-cta::after,.pick-via::after,.hdr .btn::after{content:"";position:absolute;top:0;bottom:0;left:-40%;width:30%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);transform:skewX(-18deg);animation:fx-luce 4.5s ease-in-out infinite;pointer-events:none}
@keyframes fx-luce{0%,60%{left:-40%}100%{left:130%}}

/* barra di avanzamento della pagina */
.fx-progress{position:fixed;top:0;left:0;height:2px;width:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,var(--fx-blu),var(--fx-verde));box-shadow:0 0 12px var(--fx-ciano);z-index:2147482500;pointer-events:none}

/* comparsa al passaggio */
.fx-in{opacity:0;transform:translateY(22px) scale(.985);transition:opacity .7s cubic-bezier(.22,1,.36,1),transform .7s cubic-bezier(.22,1,.36,1)}
.fx-in.fx-on{opacity:1;transform:none}

/* schede con luce che segue il puntatore */
.fx-spot{position:relative;isolation:isolate}
.fx-spot::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;opacity:0;transition:opacity .25s;background:radial-gradient(420px circle at var(--mx,50%) var(--my,50%),rgba(51,198,244,.16),rgba(41,160,78,.08) 40%,transparent 65%)}
.fx-spot:hover::before{opacity:1}
.fx-spot:hover{border-color:rgba(0,150,214,.45)!important}

/* ===== HOME: il portale ===== */
.hero.fx-portale{background:radial-gradient(1200px 700px at 72% 45%,#0B2150 0,var(--fx-notte2) 45%,var(--fx-notte) 100%)!important;color:#fff}
.hero.fx-portale .hero-foto{opacity:.16!important;mix-blend-mode:screen;filter:saturate(.6) hue-rotate(10deg)}
.hero.fx-portale .hero-foto::after{display:none!important}
.fx-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.hero.fx-portale .hero-grid{position:relative;z-index:1}
.hero.fx-portale .kick{color:#9FC7E8!important}
.hero.fx-portale h1,.hero.fx-portale h1 .h-blu,.hero.fx-portale h1 .h-ara{color:#fff!important}
.hero.fx-portale h1 .h-blu,.hero.fx-portale h1 .h-blu *{color:#5AD2FF!important;text-shadow:0 0 24px rgba(51,198,244,.55)}
.hero.fx-portale .edm-tratto path{stroke:#4FD88A!important;filter:drop-shadow(0 0 6px #29A04E)}
.hero.fx-portale .punti,.hero.fx-portale .punti li{color:#C9D6EE!important}
.hero.fx-portale .net{color:#C9D6EE!important;border-left-color:var(--fx-verde)!important}
.hero.fx-portale .pick{background:rgba(255,255,255,.96)!important;border:1px solid rgba(51,198,244,.35)!important;box-shadow:0 0 0 1px rgba(255,255,255,.06),0 30px 80px -30px rgba(0,0,0,.8),0 0 60px -10px rgba(0,150,214,.55)!important}
.hero.fx-portale .pick,.hero.fx-portale .pick .pick-t,.hero.fx-portale .pick-cat b,.hero.fx-portale .pick-cat button{color:#10204A!important}
.hero.fx-portale .pick-cat small{color:#5E6782!important}
.hero.fx-portale .pick .pick-via,.hero.fx-portale .pick .pick-via *{color:#fff!important}
.hero.fx-portale .mapsvg .lbl,.hero.fx-portale .mapsvg text{stroke-width:.6px!important;paint-order:stroke}
.hero.fx-portale .mapcard{background:transparent!important;border:0!important;box-shadow:none!important}
.hero.fx-portale .mapsvg{background:transparent!important}
.hero.fx-portale .mapsvg .m-terra,.hero.fx-portale .mapsvg .m-vicina{fill:rgba(255,255,255,.04)!important;stroke:rgba(255,255,255,.08)!important}
.hero.fx-portale .mapsvg .m-mare{fill:rgba(0,150,214,.10)!important}
.hero.fx-portale .mapsvg .reg{fill:rgba(10,30,70,.55)!important;stroke:#5AD2FF!important;stroke-width:1.4!important;filter:drop-shadow(0 0 6px rgba(51,198,244,.55))}
.hero.fx-portale .mapsvg [data-reg]:hover .reg,.hero.fx-portale .mapsvg .reg.on{fill:rgba(41,160,78,.28)!important;stroke:#4FD88A!important}
.hero.fx-portale .mapsvg .lbl{fill:#fff!important;stroke:#071226!important}
.hero.fx-portale .mapsvg .citta circle{fill:#9FE3FF!important}
.hero.fx-portale .mapsvg text{fill:#DCE8FA}
.hero.fx-portale .badge-r{background:rgba(7,18,38,.72)!important;border:1px solid rgba(51,198,244,.35)!important;color:#fff!important;box-shadow:0 0 30px -8px rgba(0,150,214,.6)!important}
.hero.fx-portale .badge-r b{color:#fff!important}

/* scelta iniziale del quotatore: vocale o procedura guidata */
.pick-modo{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:-2px 0 14px}
.pm{display:flex;align-items:center;gap:10px;text-align:left;padding:10px 12px;border-radius:14px;border:1.5px solid #DDE6F2;background:#fff;cursor:pointer;font:inherit;color:#10204A;transition:border-color .16s,box-shadow .16s,transform .16s}
.pm:hover{transform:translateY(-1px);border-color:#0096D6;box-shadow:0 0 0 3px rgba(0,150,214,.12)}
.pm .pm-e{font-size:1.6rem;line-height:1;flex:none}
.pm b{display:block;font-size:.98rem;line-height:1.2}
.pm small{display:block;font-size:.8rem;color:#5E6782;margin-top:2px}
.pm-voc{background:linear-gradient(135deg,#F0FAFF,#F1FBF4)}
.pm-voc small{color:#1E8A43;font-weight:700}
.pm.on{border-color:#1E8A43;box-shadow:0 0 0 3px rgba(41,160,78,.14)}
.pm-voc .pm-e{animation:fx-pulse 2.2s ease-in-out infinite}
@keyframes fx-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.14)}}
.pick-cat.fx-guida button{animation:fx-guida .9s ease-out 1}
@keyframes fx-guida{0%{box-shadow:0 0 0 0 rgba(41,160,78,.5)}100%{box-shadow:0 0 0 12px rgba(41,160,78,0)}}
@media (max-width:420px){.pm{padding:9px}.pm b{font-size:.9rem}.pm small{font-size:.74rem}.pm .pm-e{font-size:1.35rem}}

/* ===== portale anche nelle aperture delle altre pagine ===== */
.fx-apertura{position:relative;background:radial-gradient(900px 500px at 75% 30%,#0B2150 0,var(--fx-notte2) 50%,var(--fx-notte) 100%)!important;color:#fff;overflow:hidden}
.fx-apertura>*:not(.fx-canvas):not(.fx-villa){position:relative;z-index:1}
.fx-apertura h1{color:#fff!important}
.fx-apertura p,.fx-apertura .lead,.fx-apertura .kick{color:#C9D6EE!important}
.fx-apertura a:not(.btn){color:#9FE3FF}

/* piè di pagina con bagliore */
.ftr{position:relative;background:radial-gradient(800px 300px at 20% 0,#0B2150,#040A18 70%)!important}
.ftr::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,transparent,var(--fx-ciano),var(--fx-verde),transparent)}

@media (prefers-reduced-motion:reduce){
  .fx-in{opacity:1!important;transform:none!important;transition:none!important}
  .btn-go::after,.btn-blue::after,.btn-cta::after,.pick-via::after,.hdr .btn::after,.pm-voc .pm-e{animation:none!important}
}

/* ===== HOME v2 (26/11/2026): prima scelta con due soli pulsanti, villa chiara a destra ===== */
.hero.fx-casa .hero-foto{opacity:1!important}
.hero.fx-casa .hero-foto::after{background:linear-gradient(90deg,#F3F7FC 0,rgba(243,247,252,.96) 36%,rgba(243,247,252,.55) 52%,rgba(243,247,252,0) 66%),linear-gradient(0deg,#fff 0,rgba(255,255,255,0) 14%)!important}
@media (min-width:981px){.hero.fx-casa .mapcard{visibility:hidden}.hero.fx-casa{min-height:calc(100svh - 64px)}}
.hero.fx-casa h1{font-size:clamp(2.6rem,4.6vw,4.4rem)!important;line-height:1.02}
.hero.fx-casa h1 .h-blu{color:#0077AA}
/* la prima schermata mostra solo la scelta: vocale o procedura guidata */
#picker:not(.fx-aperto) #pick-t1,#picker:not(.fx-aperto) #pick-cat,#picker:not(.fx-aperto) .pick-via{display:none!important}
#picker:not(.fx-aperto){padding:18px!important}
#picker:not(.fx-aperto) .pick-modo{margin:0;gap:14px}
#picker:not(.fx-aperto) .pm{flex-direction:column;align-items:flex-start;gap:10px;min-height:150px;padding:20px;border-width:2px}
#picker:not(.fx-aperto) .pm .pm-e{font-size:2.6rem}
#picker:not(.fx-aperto) .pm b{font-size:1.25rem}
#picker:not(.fx-aperto) .pm small{font-size:.92rem}
#picker:not(.fx-aperto) .pm-gui{border-color:#DDE6F2;box-shadow:none}
#picker:not(.fx-aperto) .pm-gui small{color:#0077AA;font-weight:700}
#picker.fx-aperto .pick-modo{margin-bottom:14px}
#picker.fx-aperto .pm{min-height:0}
@media (max-width:640px){#picker:not(.fx-aperto) .pm{min-height:128px;padding:14px}#picker:not(.fx-aperto) .pm .pm-e{font-size:2.1rem}#picker:not(.fx-aperto) .pm b{font-size:1.05rem}}

/* tema chiaro sempre: i campi dei moduli non diventano scuri con il tema scuro del dispositivo */
:root{color-scheme:light}
input:not([type=checkbox]):not([type=radio]),textarea,select{background-color:#fff;color:#10204A}
input::placeholder,textarea::placeholder{color:#8a99b8;opacity:1}

/* ===== villa in costruzione nelle aperture (26/11/2026) ===== */
@media (min-width:901px){.fx-cantiere{padding-right:min(44%,460px)}}
.fx-villa{position:absolute;right:2%;top:50%;transform:translateY(-50%);width:min(42%,440px);height:auto;max-height:92%;z-index:0;overflow:visible}
.fx-villa .d{fill:none;stroke:url(#fxg);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;filter:drop-shadow(0 0 4px rgba(51,198,244,.6));animation:fx-disegna 1.4s cubic-bezier(.6,0,.2,1) forwards}
.fx-villa .q{stroke-width:1;opacity:.6}
.fx-villa .d1{animation-delay:.1s}.fx-villa .d2{animation-delay:.6s}.fx-villa .d3{animation-delay:1.1s}.fx-villa .d4{animation-delay:1.7s}.fx-villa .d5{animation-delay:2.3s}.fx-villa .d6{animation-delay:2.8s}
@keyframes fx-disegna{to{stroke-dashoffset:0}}
.fx-villa .t{fill:#9FC7E8;font:600 10px/1 ui-monospace,monospace;opacity:0;animation:fx-appare .6s 1s forwards}
.fx-villa .w{fill:rgba(51,198,244,.06);stroke:rgba(159,227,255,.55);stroke-width:1;opacity:0;animation:fx-appare .5s forwards,fx-luce-finestra 6s ease-in-out infinite}
.fx-villa .w1{animation-delay:3.1s,4s}.fx-villa .w2{animation-delay:3.3s,5.2s}.fx-villa .w3{animation-delay:3.5s,4.6s}.fx-villa .w4{animation-delay:3.7s,5.8s}.fx-villa .w5{animation-delay:3.9s,6.4s}
@keyframes fx-appare{to{opacity:1}}
@keyframes fx-luce-finestra{0%,100%{fill:rgba(51,198,244,.06)}45%,60%{fill:rgba(255,214,120,.55);filter:drop-shadow(0 0 8px rgba(255,200,90,.8))}}
.fx-villa .cw{fill:none;stroke:#4FD88A;stroke-width:1.5}
.fx-villa .gru{transform-origin:370px 30px;animation:fx-gru 7s ease-in-out 1.5s infinite}
@keyframes fx-gru{0%,100%{transform:rotate(0)}50%{transform:rotate(-2.2deg)}}
.fx-villa .cavo{stroke:#9FE3FF;stroke-width:1.2}
.fx-villa .pacco{fill:rgba(79,216,138,.25);stroke:#4FD88A;stroke-width:1.4}
.fx-villa .gancio{animation:fx-gancio 7s ease-in-out 1.5s infinite}
@keyframes fx-gancio{0%,100%{transform:translate(0,0)}40%{transform:translate(-40px,26px)}60%{transform:translate(-40px,26px)}}
@media (max-width:900px){.fx-cantiere{padding-bottom:180px}.fx-villa{top:auto;bottom:8px;transform:none;right:50%;margin-right:-160px;width:320px}}
@media (prefers-reduced-motion:reduce){.fx-villa *{animation:none!important;stroke-dashoffset:0!important;opacity:1!important}}

/* riquadro blu delle aperture: bordi arrotondati, respiro interno, filo luminoso (26/11/2026) */
.fx-apertura{border-radius:24px!important;padding:clamp(26px,3.4vw,44px) clamp(22px,3.4vw,44px)!important;border:1px solid rgba(51,198,244,.28)!important;box-shadow:0 0 0 1px rgba(255,255,255,.03) inset,0 24px 60px -30px rgba(4,10,24,.75),0 0 40px -14px rgba(0,150,214,.45)!important;margin-top:18px}
@media (min-width:901px){.fx-apertura.fx-cantiere{padding-right:min(44%,460px)!important}}
@media (max-width:900px){.fx-apertura.fx-cantiere{padding-bottom:190px!important}}
.fx-apertura li,.fx-apertura span:not([class*=h-]),.fx-apertura small,.fx-apertura div:not(.btn){color:#C9D6EE}
.fx-apertura h1 span[class]{color:inherit}
