
:root{
  --green:#86c440;
  --green-dark:#5f9826;
  --black:#080808;
  --dark:#151515;
  --soft:#f4f5f2;
  --line:#deded8;
  --text:#202020;
  --muted:#6b6b6b;
  --white:#fff;
  --radius:24px;
  --shadow:0 24px 70px rgba(0,0,0,.16);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Arial,Helvetica,sans-serif;color:var(--text);background:#fff;line-height:1.58}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
.container{width:min(1180px,calc(100% - 40px));margin:0 auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);border-bottom:1px solid rgba(0,0,0,.08)}
.header-inner{height:78px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.brand img{height:48px;width:auto}
.nav{display:flex;gap:20px;align-items:center;font-size:14px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.nav a{text-decoration:none;color:#222}
.nav a:hover{color:var(--green-dark)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 20px;border-radius:999px;border:0;text-decoration:none;font-weight:900;cursor:pointer;transition:.2s;line-height:1}
.btn-primary{background:var(--green);color:#111;box-shadow:0 14px 28px rgba(134,196,64,.35)}
.btn-primary:hover{transform:translateY(-2px);background:#96d94a}
.btn-dark{background:#111;color:#fff}
.btn-light{background:#fff;color:#111;border:1px solid rgba(0,0,0,.1)}
.hero{position:relative;overflow:hidden;background:radial-gradient(circle at 80% 10%,rgba(134,196,64,.28),transparent 38%),linear-gradient(135deg,#f7f8f4 0%,#fff 52%,#e9ece4 100%);padding:78px 0 62px}
.hero:before{content:"";position:absolute;inset:auto -120px -220px auto;width:520px;height:520px;background:var(--green);opacity:.18;border-radius:50%}
.hero-grid{display:grid;grid-template-columns:1.04fr .96fr;gap:42px;align-items:center}
.eyebrow{display:inline-flex;gap:10px;align-items:center;background:#fff;border:1px solid rgba(0,0,0,.08);padding:8px 13px;border-radius:999px;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#222}
.eyebrow:before{content:"";width:10px;height:10px;border-radius:50%;background:var(--green)}
h1{font-size:clamp(42px,6vw,78px);line-height:.96;margin:22px 0 20px;letter-spacing:-.06em;color:#090909}
.hero p{font-size:20px;color:#3d3d3d;margin:0 0 28px;max-width:720px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin:28px 0}
.hero-points{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:28px}
.point{background:rgba(255,255,255,.76);border:1px solid rgba(0,0,0,.08);border-radius:18px;padding:14px;font-weight:850;font-size:14px}
.hero-card{position:relative;background:#111;border-radius:36px;padding:28px;box-shadow:var(--shadow);min-height:520px;overflow:hidden;color:#fff}
.hero-card:before{content:"";position:absolute;inset:-70px -90px auto auto;width:300px;height:300px;background:var(--green);border-radius:50%;opacity:.95}
.hero-card .diamond{position:absolute;right:42px;top:62px;width:170px;height:170px;border:1px solid rgba(255,255,255,.5);transform:rotate(45deg)}
.hero-logo{position:relative;z-index:2;margin:38px auto 28px;max-width:370px;background:#fff;border-radius:22px;padding:20px}
.tech-list{position:relative;z-index:2;display:grid;gap:13px;margin-top:40px}
.tech-list div{display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:15px;font-weight:800}
.tech-list svg{width:24px;height:24px;stroke:var(--green);fill:none;stroke-width:2.3}
.section{padding:82px 0}
.section.alt{background:var(--soft)}
.section.dark{background:#101010;color:#fff}
.section-head{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
  gap:48px;
  align-items:end;
  margin-bottom:34px;
}

.section-head:not(.section-head-stack) > div:first-child{
  min-width:0;
  width:100%;
}

.section-head:not(.section-head-stack) > .lead{
  min-width:0;
  width:100%;
  max-width:none;
  margin:0;
  justify-self:stretch;
}

.section-head > div:only-child{
  grid-column:1 / -1;
}

.section-kicker{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:950;
  color:var(--green-dark);
  margin-bottom:8px;
}

.section.dark .section-kicker{
  color:var(--green);
}

h2{
  font-size:clamp(31px,4vw,54px);
  line-height:1.02;
  margin:0;
  letter-spacing:-.045em;
  color:#111;
}

.section.dark h2{
  color:#fff;
}

.lead{
  font-size:18px;
  color:#555;
  max-width:820px;
  margin:12px 0 0;
}

.section.dark .lead{
  color:#d8d8d8;
}
.anchor-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.anchor-card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:18px;padding:18px;text-decoration:none;font-weight:900;display:flex;justify-content:space-between;align-items:center}
.anchor-card span{color:var(--green-dark)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:var(--radius);padding:24px;box-shadow:0 10px 30px rgba(0,0,0,.04)}
.dark .card{background:#1b1b1b;border-color:rgba(255,255,255,.1)}
.icon{width:52px;height:52px;border-radius:16px;background:rgba(134,196,64,.14);display:grid;place-items:center;margin-bottom:18px}
.icon svg{width:28px;height:28px;stroke:var(--green-dark);fill:none;stroke-width:2.4}
.dark .icon svg{stroke:var(--green)}
.card h3{margin:0 0 10px;font-size:22px;letter-spacing:-.02em}
.card p{margin:0;color:#666}
.dark .card p{color:#d0d0d0}
.tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.tag{padding:8px 12px;border-radius:999px;background:#eef5e7;border:1px solid #d5e8c3;font-weight:800;font-size:13px}
.split{display:grid;grid-template-columns:.9fr 1.1fr;gap:36px;align-items:center}
.panel{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:32px;padding:30px;box-shadow:0 16px 44px rgba(0,0,0,.08)}
.table-like{display:grid;gap:10px}
.row{display:grid;grid-template-columns:190px 1fr;gap:12px;padding:13px;border-bottom:1px solid #e8e8e8}
.row b{color:#111}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.machine{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:22px;overflow:hidden}
.machine img{width:100%;height:230px;object-fit:contain;background:#fff;padding:14px}
.machine div{padding:16px;font-weight:900}
.company-box{
  display:grid;
  grid-template-columns:minmax(280px, 452px) 1fr;
  gap:28px;
  align-items:center;
  background:#fff;
  border-radius:34px;
  padding:24px;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:var(--shadow);
}

.company-photo{
  border-radius:24px;
  overflow:hidden;
}

.company-logo{
  width:min(320px, 70%);
  max-width:320px;
  height:auto;
  margin:0 0 28px;
}
.faq{display:grid;gap:12px}
details{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:18px;padding:18px}
summary{font-weight:950;cursor:pointer}
details p{color:#555;margin:12px 0 0}
.form-wrap{display:grid;grid-template-columns:.82fr 1.18fr;gap:28px}
form{background:#fff;border-radius:30px;padding:26px;border:1px solid rgba(0,0,0,.09);box-shadow:var(--shadow)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-field.full{grid-column:1/-1}
label{display:block;font-weight:900;font-size:13px;margin-bottom:6px}
input,select,textarea{width:100%;border:1px solid #d8d8d8;border-radius:14px;padding:13px 14px;font:inherit;background:#fff}
textarea{min-height:130px;resize:vertical}
small{color:#777}
.footer{background:#0b0b0b;color:#fff;padding:38px 0}
.footer-inner{display:flex;justify-content:space-between;gap:20px;align-items:center}
.footer img{height:46px;background:#fff;border-radius:12px;padding:6px}
@media(max-width:980px){
 .hero-grid,.split,.form-wrap{grid-template-columns:1fr}
 .company-box{
   grid-template-columns:1fr;
   gap:24px;
 }
 .company-logo{
   width:min(240px, 70%);
   max-width:240px;
   margin:0 0 22px;
 }
 .cards,.gallery{grid-template-columns:1fr 1fr}
 .anchor-grid{grid-template-columns:1fr 1fr}
 .hero-card{min-height:auto}

 .nav{
   display:none !important;
 }

 .mobile-menu-toggle{
   display:flex !important;
 }
}

@media(max-width:640px){
 .container{width:min(100% - 26px,1180px)}
 .header-inner{height:68px}
 .brand img{height:38px}
 .hero{padding:48px 0}
 .hero-points,.cards,.gallery,.anchor-grid,.form-grid{grid-template-columns:1fr}
 .section{padding:58px 0}
 .section-head{display:block}
 .footer-inner{display:block}

 .company-box{
   padding:18px;
   border-radius:24px;
 }
 .company-photo{
   border-radius:18px;
 }
 .company-logo{
   width:min(220px, 76%);
   max-width:220px;
   margin:0 0 18px;
 }
 .company-box h2{
   font-size:clamp(32px, 10vw, 46px);
   line-height:1;
 }
}


/* V2 refinement */
.header-inner{height:86px}
.brand{display:flex;align-items:center;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:16px;padding:8px 12px;box-shadow:0 8px 22px rgba(0,0,0,.05)}
.brand img{height:62px;max-width:160px;object-fit:contain}
.nav{background:#f1f4ed;border:1px solid rgba(0,0,0,.08);padding:10px 16px;border-radius:999px;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.nav a{padding:8px 10px;border-radius:999px}
.nav a:hover{background:#fff;color:var(--green-dark)}
.hero{padding:60px 0 44px}
h1{font-size:clamp(40px,5.2vw,70px)}
.hero p{font-size:19px}
.hero-card{min-height:455px;border-radius:32px}
.hero-logo{max-width:255px;padding:16px;border-radius:20px;margin:64px auto 24px}
.tech-list{margin-top:28px}
.section{padding:58px 0}
.section.alt{padding:58px 0}
.section.dark{padding:64px 0}
.section-head{margin-bottom:24px}
.cards{gap:16px}
.card{padding:21px;border-radius:20px}
.card h3{font-size:20px}
.lead{font-size:17px}
.footer img{height:66px}

.quick-section{background:linear-gradient(135deg,#ecf6e2,#ffffff 48%,#eef8e6);padding:44px 0}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.quick-box{position:relative;overflow:hidden;background:rgba(255,255,255,.86);border:1px solid rgba(95,152,38,.22);border-radius:28px;padding:26px;box-shadow:0 20px 60px rgba(95,152,38,.14)}
.quick-box:after{content:"";position:absolute;right:-70px;top:-70px;width:190px;height:190px;background:var(--green);opacity:.16;border-radius:50%}
.quick-box-dark{background:#141414;color:#fff;border-color:rgba(255,255,255,.12)}
.quick-box-dark h2{color:#fff}
.quick-box-dark .lead{color:#d9d9d9}
.quick-icon{width:62px;height:62px;border-radius:20px;background:var(--green);display:grid;place-items:center;margin-bottom:16px;box-shadow:0 18px 32px rgba(134,196,64,.35)}
.quick-icon svg{width:32px;height:32px;stroke:#111;fill:none;stroke-width:2.3}
.quick-box h2{font-size:clamp(25px,2.7vw,36px);margin-bottom:8px}
.mini-form{position:relative;z-index:2;margin-top:18px;background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mini-form select{grid-column:1/-1}
.mini-form button{grid-column:1/-1}
.quick-box-dark input,.quick-box-dark select{border-color:rgba(255,255,255,.2);background:#fff;color:#111}

@media(max-width:980px){
 .brand img{height:50px}
 .quick-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
 .brand{padding:6px 8px}
 .brand img{height:44px}
 .mini-form{grid-template-columns:1fr}
 .hero-logo{max-width:210px}
}


/* V3 refinement */
.site-header{background:linear-gradient(180deg,#fff 0%,#fbfcf8 100%)}
.header-inner{height:72px}
.brand{
  padding:3px 7px;
  min-width:118px;
  height:56px;
  border-radius:12px;
  background:#f2f8ea;
  border-color:#dbeacb;
}
.brand img{height:50px;max-width:108px;width:auto;object-fit:contain}
.nav{padding:8px 14px;background:#f2f4ef}
.nav a{padding:7px 9px}
.btn-ico{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2.2;flex:0 0 auto}

.mobile-menu-toggle{
  display:none !important;
  width:48px;
  height:48px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  background:#fff;
  cursor:pointer;
  padding:0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  flex:0 0 48px;
}

.mobile-menu-toggle span{
  display:block;
  width:22px;
  height:3px;
  border-radius:99px;
  background:#111;
}

.header-inner > .btn{padding:13px 18px}
.hero{padding:44px 0 36px}
.hero-grid{gap:34px}
.hero-card{min-height:405px}
.hero-logo{max-width:215px;margin:58px auto 20px;padding:12px}
.tech-list{gap:10px;margin-top:22px}
.tech-list div{padding:12px}
.section,.section.alt{padding:44px 0}
.section.dark{padding:50px 0}
.quick-section{padding:34px 0}
.quick-section-top{padding-top:32px;padding-bottom:30px}
.quick-single{display:grid;grid-template-columns:.9fr 1.1fr;gap:22px;align-items:center}
.quick-single-zone{grid-template-columns:1.05fr .95fr}
.quick-copy{padding:6px 0}
.quick-box{padding:22px;border-radius:24px}
.quick-box h3{font-size:27px;line-height:1.05;margin:0 0 8px;letter-spacing:-.03em}
.quick-box p{margin:0;color:#555}
.quick-box-dark p{color:#d8d8d8}
.quick-icon{width:54px;height:54px;border-radius:17px;margin-bottom:12px}
.quick-icon svg{width:28px;height:28px}
.mini-form{margin-top:14px}
.footer{
  background:linear-gradient(135deg,#101010 0%,#101010 58%,#203111 100%);
  padding:28px 0;
}
.footer-inner{
  background:#edf8e4;
  color:#111;
  border-radius:22px;
  padding:18px 22px;
  border:1px solid rgba(134,196,64,.35);
}
.footer img{
  height:70px;
  max-width:165px;
  width:auto;
  object-fit:contain;
  background:#fff;
  border-radius:12px;
  padding:4px 8px;
}
.icon svg{stroke-linecap:round;stroke-linejoin:round}
.card:nth-child(2n) .icon{background:rgba(0,0,0,.06)}
.card:nth-child(3n) .icon{background:rgba(134,196,64,.22)}

@media(max-width:980px){
 .quick-single,.quick-single-zone{grid-template-columns:1fr}
 .header-inner{height:auto;padding:10px 0}
}

@media(max-width:640px){
 .brand img{height:58px;max-width:150px}
 .header-inner > .btn{padding:11px 13px;font-size:14px}
 .hero{padding-top:34px}
 .hero-logo{max-width:185px}

 .header-inner{
   gap:10px;
 }

 .header-inner > .btn{
   margin-left:auto;
 }
}

/* Correzione logo header e footer */
.brand{
  position:relative;
  z-index:30;

  display:flex;
  align-items:center;
  justify-content:center;

  margin-top:14px;
  margin-bottom:-34px;

  width:138px;
  height:96px;

  padding:0 !important;

  background:#ffffff !important;

  border:1px solid rgba(134,196,64,.42);

  border-radius:18px !important;

  overflow:hidden;

  box-shadow:
    0 10px 24px rgba(0,0,0,.08),
    0 2px 6px rgba(0,0,0,.04);
}

.brand img{
  height:122px !important;
  max-width:none !important;
  width:auto !important;

  object-fit:contain !important;
  transform:scale(1.42);
  transform-origin:center center;
}

.footer{
  background:#101010 !important;
  padding:0 !important;
}

.footer-inner{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  background:#86c440 !important;
  color:#111 !important;
  border:0 !important;
  border-radius:24px 24px 0 0 !important;
  padding:14px max(40px, calc((100vw - 1180px) / 2)) !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:24px !important;
}

.footer img{
  height:96px !important;
  max-width:260px !important;
  background:transparent !important;
  border-radius:18px !important;
  padding:0 !important;
  object-fit:contain !important;
}

@media(max-width:640px){
  .brand img{
    height:54px !important;
    max-width:145px !important;
  }

  .footer-inner{
    display:grid !important;
    gap:12px !important;
    padding:20px 18px !important;
  }

  .footer img{
    height:64px !important;
    max-width:165px !important;
  }
}


/* Correzioni form e sezioni verticali */
.stacked-block{display:grid;grid-template-columns:1fr;gap:22px}
.section-head-stack{display:grid;grid-template-columns:1fr;align-items:start;margin-bottom:0}
.panel-full{width:100%}
.tags-wide{margin-top:0;align-items:flex-start}
.tags-wide .tag{font-size:14px;padding:9px 14px;line-height:1.25}
.applications-list .row{grid-template-columns:240px 1fr;padding:16px 14px}

.application-list{
  display:grid;
  gap:16px;
}

.application-item{
  display:grid;
  grid-template-columns:92px 250px 1fr;
  gap:22px;
  align-items:center;
  min-height:112px;
  padding:22px 26px;
  border-radius:22px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 14px 34px rgba(0,0,0,.05);
}

.application-icon{
  width:64px;
  height:64px;
  border-radius:20px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.7);
}

.application-icon svg{
  width:36px;
  height:36px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.application-title{
  font-size:20px;
  line-height:1.15;
  font-weight:950;
  color:#101010;
  letter-spacing:-.03em;
}

.application-text{
  position:relative;
  font-size:17px;
  line-height:1.55;
  color:#202020;
  padding-left:24px;
}

.application-text:before{
  content:"";
  position:absolute;
  left:0;
  top:6px;
  bottom:6px;
  width:2px;
  border-radius:99px;
  background:currentColor;
  opacity:.2;
}

.app-green{
  background:linear-gradient(135deg,#f1faea,#ffffff);
  color:#2f7e14;
}

.app-blue{
  background:linear-gradient(135deg,#eef6ff,#ffffff);
  color:#155f9f;
}

.app-orange{
  background:linear-gradient(135deg,#fff4df,#ffffff);
  color:#aa6a00;
}

.app-purple{
  background:linear-gradient(135deg,#f4efff,#ffffff);
  color:#6b48a8;
}

.app-teal{
  background:linear-gradient(135deg,#eaf8f6,#ffffff);
  color:#168078;
}

.form-field label{
  color:#111 !important;
  background:transparent !important;
  display:block !important;
  width:auto !important;
  max-width:100% !important;
  font-weight:950 !important;
  font-size:14px !important;
  line-height:1.2 !important;
  margin:0 0 8px !important;
  padding:0 !important;
  white-space:normal !important;
}
.form-field input,.form-field select,.form-field textarea{min-height:54px}
.form-field input[type="file"]{padding:12px 14px;height:auto;min-height:54px;color:#111;background:#fff}
@media(max-width:640px){
  .applications-list .row{grid-template-columns:1fr;gap:4px}

  .application-item{
    grid-template-columns:64px 1fr;
    gap:14px;
    padding:18px;
    min-height:0;
  }

  .application-icon{
    width:54px;
    height:54px;
    border-radius:17px;
  }

  .application-icon svg{
    width:30px;
    height:30px;
  }

  .application-title{
    font-size:19px;
  }

  .application-text{
    grid-column:1 / -1;
    padding-left:0;
    font-size:16px;
  }

  .application-text:before{
    display:none;
  }
}

/* Messaggi invio form: leggibili e vicini al form corretto */
.form-success{
  display:block;
  width:100%;
  margin:16px 0 14px;
  padding:13px 16px;
  border-radius:16px;
  background:#86c440;
  border:1px solid #6ea92f;
  color:#111 !important;
  font-weight:950;
  line-height:1.35;
  box-shadow:0 12px 28px rgba(134,196,64,.28);
}
.form-success-compact{
  margin:16px 0 14px;
}
.dark .form-success{
  background:#f1fae8;
  border-color:#cfe8bb;
  color:#183b0d !important;
}

/* Burger mobile header */
.mobile-menu-toggle{
  display:none !important;
  width:46px;
  height:46px;
  border:1px solid rgba(0,0,0,.14);
  border-radius:14px;
  background:#fff;
  cursor:pointer;
  padding:0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  flex:0 0 46px;
}

.mobile-menu-toggle span{
  display:block;
  width:22px;
  height:3px;
  border-radius:99px;
  background:#111;
  transition:.2s ease;
}

@media(max-width:980px){
  .site-header{
    z-index:9999;
  }

  .header-inner{
    position:relative;
    gap:10px;
  }

  .header-inner > .btn{
    margin-left:auto;
  }

  .mobile-menu-toggle{
    display:flex !important;
  }

  .nav{
    display:none !important;
  }

  .nav.nav-open{
    display:grid !important;
    position:absolute;
    top:calc(100% + 14px);
    left:0;
    right:0;
    z-index:9999;
    gap:8px;
    padding:16px;
    border-radius:22px;
    background:#fff;
    border:1px solid rgba(0,0,0,.10);
    box-shadow:0 18px 44px rgba(0,0,0,.20);
  }

  .nav.nav-open a{
    display:block;
    padding:13px 14px;
    border-radius:14px;
    background:#f2f4ef;
    text-align:left;
  }

  .mobile-menu-toggle.is-open span:nth-child(1){
    transform:translateY(8px) rotate(45deg);
  }

  .mobile-menu-toggle.is-open span:nth-child(2){
    opacity:0;
  }

  .mobile-menu-toggle.is-open span:nth-child(3){
    transform:translateY(-8px) rotate(-45deg);
  }
}


/* =========================================================
   GALLERY FOTOGRAFICA LAVORAZIONI
   ========================================================= */

.work-gallery-block{
  position:relative;
  margin-top:36px;
  padding:28px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.09);
  border-radius:30px;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(134,196,64,.22),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #f6f9f2 0%,
      #ffffff 55%,
      #f0f4eb 100%
    );
  box-shadow:
    0 20px 55px rgba(0,0,0,.09),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.work-gallery-block:before{
  content:"";
  position:absolute;
  top:-95px;
  right:-75px;
  width:220px;
  height:220px;
  border-radius:50%;
  background:rgba(134,196,64,.14);
  pointer-events:none;
}

.work-gallery-heading{
  position:relative;
  z-index:2;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:22px;
}

.work-gallery-heading > div:first-child{
  min-width:0;
}

.work-gallery-heading h3{
  margin:0;
  color:#111;
  font-size:clamp(27px,3vw,40px);
  line-height:1.05;
  letter-spacing:-.04em;
}

.work-gallery-heading p{
  max-width:760px;
  margin:10px 0 0;
  color:#5e5e5e;
  font-size:16px;
  line-height:1.55;
}

.work-gallery-controls{
  display:flex;
  flex:0 0 auto;
  gap:10px;
}

.work-gallery-arrow{
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  padding:0;
  border:1px solid rgba(0,0,0,.12);
  border-radius:16px;
  cursor:pointer;
  color:#111;
  background:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.09);
  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.work-gallery-arrow:hover{
  transform:translateY(-2px);
  border-color:var(--green);
  background:var(--green);
  box-shadow:0 14px 30px rgba(95,152,38,.25);
}

.work-gallery-arrow:focus-visible{
  outline:3px solid rgba(134,196,64,.45);
  outline-offset:3px;
}

.work-gallery-arrow svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.work-gallery-track{
  position:relative;
  z-index:2;
  display:flex;
  gap:18px;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding:4px 4px 16px;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  overscroll-behavior-inline:contain;
  scrollbar-width:thin;
  scrollbar-color:var(--green) rgba(0,0,0,.08);
}

.work-gallery-track:focus-visible{
  outline:3px solid rgba(134,196,64,.38);
  outline-offset:5px;
  border-radius:20px;
}

.work-gallery-track::-webkit-scrollbar{
  height:9px;
}

.work-gallery-track::-webkit-scrollbar-track{
  border-radius:999px;
  background:rgba(0,0,0,.07);
}

.work-gallery-track::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:var(--green);
}

.work-gallery-track::-webkit-scrollbar-thumb:hover{
  background:var(--green-dark);
}

.work-gallery-item{
  flex:0 0 calc((100% - 36px) / 3);
  min-width:0;
  padding:0;
  overflow:hidden;
  scroll-snap-align:start;
  border:1px solid rgba(0,0,0,.10);
  border-radius:24px;
  cursor:zoom-in;
  color:#111;
  background:#fff;
  box-shadow:
    0 14px 34px rgba(0,0,0,.09),
    inset 0 0 0 5px #fff;
  text-align:left;
  font:inherit;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.work-gallery-item:hover{
  transform:translateY(-5px);
  border-color:rgba(134,196,64,.80);
  box-shadow:
    0 23px 48px rgba(0,0,0,.15),
    0 0 0 4px rgba(134,196,64,.14);
}

.work-gallery-item:focus-visible{
  outline:3px solid var(--green);
  outline-offset:3px;
}

.work-gallery-image{
  position:relative;
  display:block;
  height:245px;
  margin:7px 7px 0;
  overflow:hidden;
  border-radius:18px;
  background:
    linear-gradient(135deg,#eef1ea,#ffffff);
}

.work-gallery-image:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      180deg,
      transparent 48%,
      rgba(0,0,0,.34) 100%
    );
  opacity:.55;
  transition:opacity .25s ease;
}

.work-gallery-item:hover .work-gallery-image:after{
  opacity:.78;
}

.work-gallery-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:
    transform .45s ease,
    filter .3s ease;
}

.work-gallery-item:hover .work-gallery-image img{
  transform:scale(1.06);
  filter:contrast(1.04);
}

.work-gallery-zoom{
  position:absolute;
  right:14px;
  bottom:14px;
  z-index:3;
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border:1px solid rgba(255,255,255,.52);
  border-radius:15px;
  color:#111;
  background:rgba(255,255,255,.94);
  box-shadow:0 10px 28px rgba(0,0,0,.22);
  transition:
    transform .2s ease,
    background .2s ease;
}

.work-gallery-item:hover .work-gallery-zoom{
  transform:scale(1.08);
  background:var(--green);
}

.work-gallery-zoom svg{
  width:25px;
  height:25px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.work-gallery-caption{
  display:block;
  padding:14px 17px 16px;
  color:#171717;
  font-size:15px;
  font-weight:950;
  line-height:1.25;
  letter-spacing:.02em;
}


/* =========================================================
   POPUP INGRANDIMENTO IMMAGINI
   ========================================================= */

body.work-lightbox-open{
  overflow:hidden;
}

.work-lightbox{
  position:fixed;
  inset:0;
  z-index:20000;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  padding:34px 88px;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  background:rgba(5,5,5,.94);
  backdrop-filter:blur(12px);
  transition:
    opacity .25s ease,
    visibility .25s ease;
}

.work-lightbox.is-open{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
}

.work-lightbox-content{
  position:relative;
  display:flex;
  flex-direction:column;
  width:auto;
  max-width:min(1200px,calc(100vw - 230px));
  max-height:calc(100vh - 68px);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.20);
  border-radius:26px;
  background:#111;
  box-shadow:0 34px 100px rgba(0,0,0,.70);
  transform:scale(.96);
  transition:transform .25s ease;
}

.work-lightbox.is-open .work-lightbox-content{
  transform:scale(1);
}

.work-lightbox-image{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:calc(100vh - 145px);
  margin:auto;
  object-fit:contain;
  background:#0d0d0d;
}

.work-lightbox-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:58px;
  padding:13px 18px;
  color:#fff;
  background:#111;
  border-top:1px solid rgba(255,255,255,.10);
}

.work-lightbox-caption{
  font-weight:900;
}

.work-lightbox-counter{
  flex:0 0 auto;
  color:var(--green);
  font-weight:950;
}

.work-lightbox-close{
  position:absolute;
  top:18px;
  right:22px;
  z-index:5;
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  padding:0 0 5px;
  border:1px solid rgba(255,255,255,.30);
  border-radius:16px;
  cursor:pointer;
  color:#fff;
  background:rgba(255,255,255,.12);
  box-shadow:0 12px 30px rgba(0,0,0,.24);
  font-family:Arial,Helvetica,sans-serif;
  font-size:38px;
  line-height:1;
  transition:
    color .2s ease,
    background .2s ease,
    transform .2s ease;
}

.work-lightbox-close:hover{
  transform:rotate(4deg) scale(1.05);
  color:#111;
  background:var(--green);
}

.work-lightbox-close:focus-visible{
  outline:3px solid var(--green);
  outline-offset:3px;
}

.work-lightbox-arrow{
  display:grid;
  place-items:center;
  flex:0 0 58px;
  width:58px;
  height:58px;
  padding:0;
  border:1px solid rgba(255,255,255,.25);
  border-radius:18px;
  cursor:pointer;
  color:#fff;
  background:rgba(255,255,255,.11);
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  transition:
    transform .2s ease,
    background .2s ease,
    color .2s ease;
}

.work-lightbox-arrow:hover{
  transform:scale(1.07);
  color:#111;
  background:var(--green);
}

.work-lightbox-arrow:focus-visible{
  outline:3px solid var(--green);
  outline-offset:3px;
}

.work-lightbox-arrow svg{
  width:26px;
  height:26px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}


/* =========================================================
   RESPONSIVE GALLERY
   ========================================================= */

@media(max-width:980px){
  .work-gallery-item{
    flex-basis:calc((100% - 18px) / 2);
  }

  .work-gallery-image{
    height:230px;
  }

  .work-lightbox{
    gap:12px;
    padding:28px 18px;
  }

  .work-lightbox-content{
    max-width:calc(100vw - 120px);
  }

  .work-lightbox-arrow{
    flex-basis:48px;
    width:48px;
    height:48px;
  }
}

@media(max-width:640px){
  .work-gallery-block{
    margin-top:28px;
    padding:20px 14px 16px;
    border-radius:24px;
  }

  .work-gallery-heading{
    display:block;
  }

  .work-gallery-heading h3{
    font-size:28px;
  }

  .work-gallery-heading p{
    font-size:15px;
  }

  .work-gallery-controls{
    justify-content:flex-end;
    margin-top:18px;
  }

  .work-gallery-arrow{
    width:46px;
    height:46px;
  }

  .work-gallery-track{
    gap:14px;
    padding-bottom:14px;
  }

  .work-gallery-item{
    flex-basis:86%;
    border-radius:20px;
  }

  .work-gallery-image{
    height:220px;
    border-radius:15px;
  }

  .work-gallery-caption{
    padding:13px 15px 15px;
  }

  .work-lightbox{
    display:block;
    padding:70px 12px 18px;
  }

  .work-lightbox-content{
    width:100%;
    max-width:100%;
    max-height:calc(100vh - 100px);
    border-radius:20px;
  }

  .work-lightbox-image{
    max-height:calc(100vh - 175px);
  }

  .work-lightbox-close{
    top:12px;
    right:12px;
    width:46px;
    height:46px;
  }

  .work-lightbox-arrow{
    position:absolute;
    top:50%;
    z-index:6;
    width:46px;
    height:56px;
    transform:translateY(-50%);
    background:rgba(0,0,0,.68);
  }

  .work-lightbox-arrow:hover{
    transform:translateY(-50%) scale(1.04);
  }

  .work-lightbox-prev{
    left:18px;
  }

  .work-lightbox-next{
    right:18px;
  }

  .work-lightbox-footer{
    padding:12px 14px;
    font-size:14px;
  }
}