
:root{
  --cream:#fff8df; --cream2:#fff1b8; --blue:#111bdf; --red:#ed1c24;
  --ink:#18263a; --muted:#617184; --white:#fff; --line:#e8e0c7;
  --shadow:0 18px 48px rgba(18,35,55,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fffdf7}
img{max-width:100%;display:block}
a{color:inherit}
.wrap{max-width:1180px;margin:0 auto;padding:0 26px}
.top{position:sticky;top:0;z-index:20;background:rgba(255,248,223,.97);backdrop-filter:blur(10px);border-bottom:1px solid #eee2b9}
.nav{height:86px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.logo img{width:255px;height:auto;max-height:64px;object-fit:contain}
.links{display:flex;align-items:center;gap:23px;font-size:14px;font-weight:700}
.links a{text-decoration:none}
.links a:hover{color:var(--blue)}
.links .contact{background:var(--red);color:white;padding:12px 18px;border-radius:999px}
.hero{background:linear-gradient(115deg,var(--cream) 0%,#fffdf7 54%,#eef1ff 100%);padding:58px 0 56px}
.hero-grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:48px;align-items:center}
.eyebrow{color:var(--red);font-weight:800;text-transform:uppercase;letter-spacing:.14em;font-size:13px}
h1{font-size:56px;line-height:1.01;letter-spacing:-.04em;margin:14px 0 22px}
h1 span{color:var(--blue)}
.hero p{font-size:19px;line-height:1.65;color:#52677a;max-width:620px}
.btns{display:flex;flex-wrap:wrap;gap:13px;margin-top:28px}
.btn{display:inline-block;padding:14px 20px;border-radius:999px;text-decoration:none;font-weight:800}
.btn.primary{background:var(--blue);color:white}
.btn.secondary{background:white;color:var(--blue);border:1px solid #d7dcfb}
.hero-photo{height:430px;border-radius:28px;overflow:hidden;box-shadow:var(--shadow);background:#101828}
.hero-photo img{width:100%;height:100%;object-fit:cover}
.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:-20px;position:relative;z-index:2}
.fact{background:white;border:1px solid #eee4c7;border-radius:19px;padding:22px 24px;box-shadow:0 9px 26px rgba(24,39,56,.08)}
.fact b{display:block;color:var(--blue);font-size:25px;margin-bottom:3px}
.fact span{color:var(--muted);font-size:14px}
section{padding:76px 0}
.head{max-width:760px;margin-bottom:34px}
.head small{color:var(--red);text-transform:uppercase;letter-spacing:.13em;font-weight:800}
.head h2{font-size:40px;letter-spacing:-.03em;margin:8px 0 12px}
.head p{font-size:18px;line-height:1.62;color:var(--muted)}
.about-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:34px;align-items:stretch}
.about-copy{font-size:17px;line-height:1.8;color:#4e6275}
.about-image{border-radius:22px;overflow:hidden;min-height:360px;box-shadow:var(--shadow)}
.about-image img{width:100%;height:100%;object-fit:cover}
.services{background:#f7f9ff}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:white;border:1px solid #dde2fb;border-radius:20px;padding:25px;min-height:188px}
.icon{width:44px;height:44px;border-radius:14px;background:var(--cream2);display:grid;place-items:center;color:var(--red);font-weight:900;margin-bottom:17px}
.card h3{margin:0 0 8px;font-size:19px}
.card p{margin:0;color:var(--muted);line-height:1.55}
.gallery{display:grid;grid-template-columns:1.45fr 1fr 1fr;grid-template-rows:250px 250px;gap:15px}
.gallery figure{margin:0;overflow:hidden;border-radius:18px;position:relative;background:#ddd}
.gallery figure:first-child{grid-row:1/3}
.gallery img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.gallery figure:hover img{transform:scale(1.025)}
.gallery figcaption{position:absolute;left:0;right:0;bottom:0;padding:28px 16px 12px;color:white;font-weight:700;background:linear-gradient(transparent,rgba(0,0,0,.62))}
.projects{background:var(--cream)}
.project-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.project{background:white;border:1px solid #eadfae;border-radius:22px;padding:30px}
.project h3{font-size:27px;margin:0 0 9px;color:var(--blue)}
.project p{color:var(--muted);line-height:1.6}
.project a{color:var(--red);font-weight:800;text-decoration:none}
.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:24px}
.contact-card,.map-card{border:1px solid #dde4ec;background:white;border-radius:22px;overflow:hidden}
.contact-card{padding:29px}
.contact-card h3{margin-top:0;font-size:23px}
.data{line-height:1.8;color:#506579}
.social{display:flex;gap:11px;margin-top:22px}
.social a{padding:11px 16px;border-radius:999px;text-decoration:none;font-weight:800}
.fb{background:#edf3ff;color:#1768b2}
.map-wrap{height:365px;background:#edf2f4}
.map-wrap iframe{width:100%;height:100%;border:0}
.map-actions{padding:17px 20px;display:flex;justify-content:space-between;gap:14px;align-items:center}
.map-actions span{color:var(--muted);font-size:14px}
.map-actions a{background:var(--blue);color:#fff;text-decoration:none;padding:11px 15px;border-radius:999px;font-weight:800;white-space:nowrap}
.contact-form{margin-top:26px}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.contact-form label{display:block;font-weight:700;font-size:14px;margin-bottom:6px}
.contact-form input,.contact-form textarea{width:100%;padding:12px 13px;border:1px solid #d7dee6;border-radius:12px;font:inherit;background:#fff}
.contact-form textarea{min-height:120px;resize:vertical}
.contact-form .full{grid-column:1/-1}
.check{display:flex;align-items:flex-start;gap:9px;font-size:13px;color:#607080}
.check input{width:auto;margin-top:3px}
.submit{border:0;background:var(--red);color:white;padding:13px 18px;border-radius:999px;font-weight:800;cursor:pointer}
.footer{background:#101f33;color:#d8e1eb;padding:42px 0 24px}
.footer-grid{display:grid;grid-template-columns:1.55fr 1fr 1fr;gap:30px}
.footer img{width:205px;background:white;border-radius:12px;padding:8px;margin-bottom:14px}
.footer a{color:white;text-decoration:none}
.footer p{line-height:1.75;color:#b8c6d3}
.fine{border-top:1px solid rgba(255,255,255,.14);margin-top:28px;padding-top:18px;color:#91a7b8;font-size:13px}
.page{padding:58px 0}
.page h1{font-size:42px}
.page h2{margin-top:34px;font-size:25px}
.page p,.page li{line-height:1.7;color:#4f6173}
.cookie-banner{position:fixed;left:18px;right:18px;bottom:18px;z-index:50;background:#fff;color:#223246;border:1px solid #dfe5eb;box-shadow:0 18px 45px rgba(0,0,0,.18);border-radius:18px;padding:18px 20px;display:none}
.cookie-inner{max-width:1160px;margin:0 auto;display:flex;gap:18px;align-items:center;justify-content:space-between}
.cookie-text{font-size:14px;line-height:1.55;color:#58697a}
.cookie-actions{display:flex;gap:10px;flex-wrap:wrap}
.cookie-actions button,.cookie-actions a{border:0;border-radius:999px;padding:10px 15px;font-weight:800;text-decoration:none;cursor:pointer}
.cookie-actions .ok{background:var(--blue);color:#fff}
.cookie-actions .info{background:#eef2f6;color:#23364c}
.notice{padding:12px 14px;border-radius:12px;background:#eef8ee;color:#2d6c36;margin-bottom:20px}
.notice.err{background:#fff0ef;color:#a13b31}
@media(max-width:900px){
  .links{display:none}
  .hero-grid,.about-grid,.contact-grid{grid-template-columns:1fr}
  h1{font-size:44px}
  .hero-photo{height:350px}
  .facts,.cards,.project-grid,.footer-grid{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr 1fr;grid-template-rows:none}
  .gallery figure,.gallery figure:first-child{height:230px;grid-row:auto}
  .cookie-inner{flex-direction:column;align-items:flex-start}
}
@media(max-width:560px){
  .wrap{padding:0 18px}
  .logo img{width:210px}
  .hero{padding-top:42px}
  h1{font-size:38px}
  .gallery{grid-template-columns:1fr}
  .map-actions{align-items:flex-start;flex-direction:column}
  .field-grid{grid-template-columns:1fr}
}


/* Servizi V4 — struttura editoriale senza box numerati */
.services-v4{background:#f7f9ff}
.service-feature{display:grid;grid-template-columns:.9fr 1.1fr;background:#fff;border:1px solid #dde2fb;border-radius:26px;overflow:hidden;box-shadow:0 12px 34px rgba(25,42,74,.07);margin-bottom:24px}
.service-photo{min-height:380px}
.service-photo img{width:100%;height:100%;object-fit:cover}
.service-main{padding:42px;display:flex;flex-direction:column;justify-content:center}
.service-kicker{color:var(--red);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}
.service-main h3{font-size:31px;line-height:1.15;margin:10px 0 15px;color:var(--blue)}
.service-main p{font-size:17px;line-height:1.7;color:var(--muted);margin:0}
.service-tags{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}
.service-tags span{background:var(--cream);border:1px solid #eee1b6;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:700;color:#42566a}
.service-list{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.service-list article{display:flex;gap:17px;padding:25px 20px;border-top:3px solid var(--blue);background:transparent}
.service-symbol{flex:0 0 42px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--cream2);color:var(--red);font-size:19px;font-weight:900}
.service-list h3{font-size:19px;line-height:1.25;margin:2px 0 8px}
.service-list p{font-size:15px;line-height:1.6;color:var(--muted);margin:0}
@media(max-width:900px){
 .service-feature{grid-template-columns:1fr}
 .service-photo{min-height:310px}
 .service-list{grid-template-columns:1fr}
 .service-list article{padding-left:0;padding-right:0}
}
@media(max-width:560px){
 .service-main{padding:28px 22px}
 .service-main h3{font-size:26px}
}

.wa-business{background:#edf9ef;color:#1f7a45!important}
.wa-business:hover{background:#dff3e4}

/* WhatsApp V7 */
.wa-business{display:inline-flex!important;flex-direction:column;align-items:center;justify-content:center;line-height:1.05}
.wa-phone{font-weight:800}
.wa-label{font-size:10px;font-weight:700;letter-spacing:.04em;margin-top:4px;opacity:.78}
.footer-wa{position:fixed;right:24px;bottom:20px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#17385f!important;font-size:22px;text-decoration:none;box-shadow:0 5px 18px rgba(0,0,0,.2);z-index:50}
.footer-wa:hover{transform:translateY(-2px)}
@media(max-width:600px){.footer-wa{right:14px;bottom:14px;width:42px;height:42px}}

/* Correzioni WhatsApp V8 */
.wa-business{
  background:#e5f6e9!important;
  color:#176b3a!important;
  padding:9px 15px!important;
  border-radius:12px!important;
}
.wa-business .wa-phone{
  font-size:14px!important;
  font-weight:750!important;
  line-height:1.1!important;
}
.wa-business .wa-label{
  font-size:9px!important;
  margin-top:3px!important;
  text-transform:none!important;
}
.footer-wa{
  position:static!important;
  display:inline-grid!important;
  width:32px!important;
  height:32px!important;
  margin-left:10px!important;
  border-radius:50%!important;
  place-items:center!important;
  background:#e5f6e9!important;
  color:#176b3a!important;
  font-size:15px!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:none!important;
  vertical-align:middle!important;
}
.footer-wa:hover{transform:none!important;background:#d7f0dd!important}

/* V10 — pulsante WhatsApp come nella schermata approvata */
.social .wa-business{
  display:inline-flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:152px!important;
  padding:10px 16px 8px!important;
  border-radius:14px!important;
  background:#e2f5e6!important;
  color:#16723b!important;
  text-decoration:none!important;
  box-shadow:none!important;
}
.social .wa-business .wa-phone{
  display:block!important;
  font-size:14px!important;
  line-height:1.05!important;
  font-weight:800!important;
  color:#16723b!important;
}
.social .wa-business .wa-label{
  display:block!important;
  margin-top:3px!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:700!important;
  color:#27834a!important;
}
