/* Montascale Facile – Casa Facile S.r.l. – stile statico, nessuna dipendenza esterna */
:root{
  --blue:#0b63a8; --blue-d:#084a7e; --blue-l:#e6f1fa;
  --ink:#1c2733; --muted:#46566a; --line:#d7e1ea; --bg:#f4f8fb; --white:#fff;
  --accent:#f5a30a; --accent-d:#d98c00; --accent-ink:#2a1c00;
  --ok:#17794a; --err:#b3261e;
  --r:14px; --shadow:0 6px 22px rgba(11,60,100,.10);
  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font:18px/1.65 var(--font);color:var(--ink);background:var(--white)}
img{max-width:100%;height:auto;display:block}
a{color:var(--blue)}
a:hover{color:var(--blue-d)}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:4px}
h1,h2,h3{line-height:1.2;color:var(--ink);margin:0 0 .5em}
h1{font-size:clamp(1.9rem,4.6vw,3rem);letter-spacing:-.01em}
h2{font-size:clamp(1.5rem,3.2vw,2.1rem)}
h3{font-size:1.25rem}
p{margin:0 0 1em}
.wrap{width:min(1180px,100% - 2rem);margin-inline:auto}
.narrow{width:min(820px,100% - 2rem);margin-inline:auto}
.skip{position:absolute;left:-999px;top:0;background:var(--accent);color:var(--accent-ink);padding:.6rem 1rem;z-index:100}
.skip:focus{left:8px;top:8px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Header */
.hd{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(6px)}
.hd-in{display:flex;align-items:center;gap:1rem;min-height:72px}
.brand img{height:58px;width:auto}
.nav{margin-left:auto}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:.25rem;align-items:center}
.nav a,.nav .sub-btn{display:block;padding:.55rem .8rem;color:var(--ink);text-decoration:none;font-weight:600;font-size:.98rem;border-radius:8px;background:none;border:0;font-family:inherit;cursor:pointer}
.nav a:hover,.nav a[aria-current="page"],.nav .sub-btn:hover{background:var(--blue-l);color:var(--blue-d)}
.has-sub{position:relative}
.sub{display:none;position:absolute;left:0;top:100%;min-width:290px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:.4rem;flex-direction:column;align-items:stretch}
.has-sub:hover>.sub,.has-sub:focus-within>.sub,.has-sub.open>.sub{display:flex}
.sub a{font-weight:500}
.hd-tel{white-space:nowrap;font-weight:800;text-decoration:none;color:var(--accent-ink);background:var(--accent);padding:.6rem 1rem;border-radius:999px;font-size:1rem}
.hd-tel:hover{background:var(--accent-d);color:var(--accent-ink)}
.nav-toggle{display:none;margin-left:auto;font:600 1rem var(--font);background:var(--blue);color:#fff;border:0;border-radius:10px;padding:.6rem 1rem;cursor:pointer}

/* Bottoni */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font:700 1.05rem var(--font);text-decoration:none;padding:.9rem 1.5rem;border-radius:999px;border:2px solid transparent;cursor:pointer;line-height:1.2;transition:background .15s,transform .15s}
.btn-primary{background:var(--accent);color:var(--accent-ink)}
.btn-primary:hover{background:var(--accent-d);color:var(--accent-ink);transform:translateY(-1px)}
.btn-ghost{background:rgba(255,255,255,.12);color:#fff;border-color:#fff}
.btn-ghost:hover{background:#fff;color:var(--blue-d)}
.btn-blue{background:var(--blue);color:#fff}
.btn-blue:hover{background:var(--blue-d);color:#fff}
.btn-line{border-color:var(--blue);color:var(--blue);background:#fff}
.btn-line:hover{background:var(--blue);color:#fff}
.btn-row{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.4rem}

/* Hero */
.hero{position:relative;color:#fff;background:#0a3a5f;overflow:hidden}
.hero>picture{position:absolute;inset:0;display:block}
.hero>picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% 40%}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,38,64,.92) 0%,rgba(6,38,64,.72) 45%,rgba(6,38,64,.15) 100%)}
.hero .wrap{position:relative;z-index:2;padding:clamp(3rem,9vw,6.5rem) 0}
.hero h1{color:#fff;max-width:17em}
.hero p{max-width:34em;font-size:1.2rem;color:#e8f1f8}
.eyebrow{display:inline-block;font-weight:700;font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:.6rem}
.page-hero{background:linear-gradient(135deg,var(--blue-d),var(--blue));color:#fff;padding:clamp(2rem,5vw,3.5rem) 0}
.page-hero h1{color:#fff;margin:0}
.page-hero p{color:#dbeaf6;margin:.8rem 0 0;max-width:44em;font-size:1.1rem}
.crumbs{font-size:.9rem;margin-bottom:.8rem;color:#bcd6ea}
.crumbs a{color:#fff}

/* Sezioni */
section{padding:clamp(2.5rem,6vw,4.5rem) 0}
.alt{background:var(--bg)}
.lead{font-size:1.15rem;color:var(--muted);max-width:46em}
.center{text-align:center}
.center .lead{margin-inline:auto}
.sec-head{margin-bottom:2rem}

/* Griglie e card */
.grid{display:grid;gap:1.4rem}
.g2{grid-template-columns:repeat(2,1fr)}
.g3{grid-template-columns:repeat(3,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;text-decoration:none;color:inherit;transition:transform .18s,box-shadow .18s}
a.card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(11,60,100,.18);color:inherit}
.card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.card .body{padding:1.2rem 1.3rem 1.4rem;display:flex;flex-direction:column;flex:1}
.card h3{margin-bottom:.4rem;color:var(--blue-d)}
.card p{color:var(--muted);margin-bottom:1rem}
.card .more{margin-top:auto;font-weight:700;color:var(--blue)}
.card .more::after{content:" →"}
.feature{display:grid;grid-template-columns:1.1fr 1fr;gap:0;align-items:stretch}
.feature img{aspect-ratio:auto;height:100%;min-height:260px}
.feature .body{padding:1.8rem}
.feature .badge{align-self:flex-start;background:var(--accent);color:var(--accent-ink);font-weight:800;font-size:.8rem;padding:.25rem .7rem;border-radius:999px;margin-bottom:.8rem;text-transform:uppercase;letter-spacing:.05em}

.why{list-style:none;margin:0;padding:0}
.why li{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:1.4rem;height:100%}
.why strong{display:block;font-size:1.15rem;color:var(--blue-d);margin-bottom:.3rem}
.why .ic{width:46px;height:46px;border-radius:12px;background:var(--blue-l);color:var(--blue);display:grid;place-items:center;margin-bottom:.8rem}
.why svg{width:26px;height:26px}

.chips{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.6rem}
.chips a{display:inline-block;padding:.5rem 1rem;border:1px solid var(--line);border-radius:999px;background:#fff;text-decoration:none;font-weight:600;font-size:.97rem;color:var(--blue-d)}
.chips a:hover{background:var(--blue);color:#fff;border-color:var(--blue)}

/* Contenuti di pagina */
.split{display:grid;grid-template-columns:1.15fr 1fr;gap:2.5rem;align-items:start}
.split.rev{grid-template-columns:1fr 1.15fr}
.split img{border-radius:var(--r);box-shadow:var(--shadow);width:100%}
.ticks{list-style:none;padding:0;margin:0 0 1.2rem}
.ticks li{position:relative;padding-left:2rem;margin-bottom:.6rem}
.ticks li::before{content:"";position:absolute;left:0;top:.35em;width:1.15rem;height:1.15rem;border-radius:50%;background:var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat}
.note{background:var(--blue-l);border-left:5px solid var(--blue);border-radius:10px;padding:1rem 1.2rem;margin:1.4rem 0}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:.9rem}
.gallery a{display:block;border-radius:12px;overflow:hidden;box-shadow:var(--shadow);background:#eef3f7}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .25s}
.gallery a:hover img{transform:scale(1.04)}
.prose h2{margin-top:2rem}
.prose h3{margin-top:1.6rem}
.prose ul:not(.ticks){padding-left:1.2rem}
.prose li{margin-bottom:.4rem}

.example{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:2rem;padding:2.2rem 0;border-bottom:1px solid var(--line);align-items:start}
.example:last-child{border-bottom:0}
.example .ph{display:grid;gap:.6rem}
.example .ph.multi{grid-template-columns:repeat(2,1fr)}
.example .ph.multi a:first-child{grid-column:1/-1}
.example .ph a{display:block;border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}
.example .ph img{width:100%;object-fit:cover}
.example .place{display:inline-block;font-weight:700;color:var(--blue);font-size:.9rem;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.3rem}

.team{display:flex;flex-wrap:wrap;gap:1.4rem}
.person{text-align:center;width:190px}
.person img{width:190px;height:210px;object-fit:cover;border-radius:var(--r);box-shadow:var(--shadow);margin-bottom:.6rem}
.person b{display:block}

/* CTA band */
.cta{background:linear-gradient(135deg,var(--blue-d),var(--blue));color:#fff;text-align:center;padding:clamp(2.2rem,5vw,3.4rem) 0}
.cta h2{color:#fff}
.cta p{color:#dbeaf6;max-width:38em;margin-inline:auto}
.cta .btn-row{justify-content:center}

/* Form */
.contact-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:2.5rem;align-items:start}
form.contact{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:1.6rem;box-shadow:var(--shadow)}
.f-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.f{margin-bottom:1rem}
.f label{display:block;font-weight:700;margin-bottom:.3rem;font-size:.97rem}
.f input,.f select,.f textarea{width:100%;font:inherit;padding:.75rem .9rem;border:2px solid #b9c8d6;border-radius:10px;background:#fff;color:var(--ink)}
.f input:focus,.f select:focus,.f textarea:focus{border-color:var(--blue);outline:none;box-shadow:0 0 0 3px rgba(11,99,168,.2)}
.f textarea{min-height:140px;resize:vertical}
.f .hint{font-size:.88rem;color:var(--muted);margin-top:.25rem}
.f-check{display:flex;gap:.7rem;align-items:flex-start;margin-bottom:1.2rem;font-size:.95rem}
.f-check input{width:22px;height:22px;margin-top:.2rem;flex:none}
.hp{position:absolute!important;left:-5000px;width:1px;height:1px;overflow:hidden}
.msg{margin-top:1rem;padding:.9rem 1.1rem;border-radius:10px;font-weight:600;display:none}
.msg.ok{display:block;background:#e5f6ec;color:#0f5a36;border:1px solid #a8dcc0}
.msg.err{display:block;background:#fdeceb;color:#7d1a14;border:1px solid #f2b8b4}
.info-box{background:var(--bg);border:1px solid var(--line);border-radius:var(--r);padding:1.5rem}
.info-box h3{margin-top:0}
.info-box p{margin-bottom:.8rem}
.big-tel{display:inline-block;font-size:1.7rem;font-weight:800;text-decoration:none;color:var(--blue-d)}
.map-box{position:relative;min-height:340px;border-radius:var(--r);overflow:hidden;background:#dbe7f1 center/cover;display:grid;place-items:center;text-align:center;padding:1.5rem;border:1px solid var(--line)}
.map-box iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.map-box p{max-width:28em;font-size:.95rem;color:var(--muted)}

/* Footer */
.ft{background:#0d2a43;color:#c9d9e8;padding:3rem 0 5rem;font-size:.97rem}
.ft a{color:#fff;text-decoration:none}
.ft a:hover{text-decoration:underline;color:#fff}
.ft h4{color:#fff;margin:0 0 .8rem;font-size:1.05rem}
.ft ul{list-style:none;margin:0;padding:0}
.ft li{margin-bottom:.4rem}
.ft-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.3fr;gap:2rem}
.ft .legal{border-top:1px solid #254560;margin-top:2rem;padding-top:1.2rem;font-size:.9rem;color:#9db6cc}
.ft .partner{background:#fff;padding:.5rem .8rem;border-radius:10px;display:inline-block;margin-top:.6rem}
.ft .partner img{height:44px;width:auto}

/* Barra mobile */
.callbar{display:none}

/* Lightbox */
dialog.lb{border:0;background:rgba(5,15,25,.94);padding:0;max-width:100vw;max-height:100vh;width:100vw;height:100vh;color:#fff}
dialog.lb::backdrop{background:rgba(5,15,25,.94)}
.lb-in{height:100%;display:grid;grid-template-rows:1fr auto;place-items:center;padding:1rem}
.lb img{max-width:96vw;max-height:80vh;object-fit:contain;border-radius:8px}
.lb figcaption{padding:.8rem;text-align:center;font-size:.95rem;min-height:2.2em}
.lb button{position:absolute;background:rgba(255,255,255,.15);border:0;color:#fff;font-size:2rem;width:52px;height:52px;border-radius:50%;cursor:pointer}
.lb button:hover{background:rgba(255,255,255,.3)}
.lb .x{top:14px;right:14px}.lb .p{left:14px;top:50%}.lb .n{right:14px;top:50%}

.err404{padding:5rem 0;text-align:center}

@media (max-width:980px){
  .g4{grid-template-columns:repeat(2,1fr)}
  .g3{grid-template-columns:repeat(2,1fr)}
  .feature,.split,.split.rev,.contact-grid,.example{grid-template-columns:1fr}
  .ft-grid{grid-template-columns:1fr 1fr}
  .nav-toggle{display:block}
  .hd-tel{display:none}
  .nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);box-shadow:var(--shadow);max-height:calc(100vh - 72px);overflow:auto;margin:0}
  .nav.open{display:block}
  .nav ul{flex-direction:column;align-items:stretch;padding:.6rem 1rem 1rem}
  .nav a,.nav .sub-btn{padding:.85rem .8rem;text-align:left;width:100%;font-size:1.05rem}
  .sub{display:flex;position:static;border:0;box-shadow:none;padding:0 0 0 1rem;min-width:0}
  .has-sub>.sub-btn::after{content:""}
  .callbar{display:grid;grid-template-columns:1fr 1fr;position:fixed;left:0;right:0;bottom:0;z-index:60;box-shadow:0 -4px 16px rgba(0,0,0,.18)}
  .callbar a{padding:.95rem .5rem;text-align:center;text-decoration:none;font-weight:800;font-size:1.05rem}
  .callbar .c1{background:var(--accent);color:var(--accent-ink)}
  .callbar .c2{background:var(--blue);color:#fff}
  .hero::after{background:linear-gradient(180deg,rgba(6,38,64,.85) 0%,rgba(6,38,64,.75) 100%)}
}
@media (max-width:640px){
  body{font-size:17px}
  .g2,.g3,.g4,.f-row{grid-template-columns:1fr}
  .ft-grid{grid-template-columns:1fr}
  .btn{width:100%}
  .person{width:150px}.person img{width:150px;height:170px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.hd,.callbar,.cta,.ft{display:none}}
