/* QuercusTech V1.8 — layout based on the user-approved enterprise design reference. */
:root{--bg:#021a16;--bg2:#04241d;--bg3:#063328;--mint:#80f7c3;--mint2:#14c88c;--text:#f5fff9;--muted:#b7d2c7;--line:rgba(121,241,193,.20);--edge:rgba(77,224,165,.28);--shadow:0 26px 70px rgba(0,0,0,.19)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.11;letter-spacing:-.035em}h1{font-size:clamp(42px,4.55vw,66px);font-weight:780}h2{font-size:clamp(27px,2.65vw,38px);font-weight:760}h3{font-size:19px;font-weight:760}em{color:var(--mint);font-style:normal}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--mint);outline-offset:4px}.wrap{width:min(100% - 100px,1280px);margin-inline:auto}.skip-link{position:absolute;left:16px;top:-80px;z-index:99;background:#fff;color:#023024;padding:10px}.skip-link:focus{top:12px}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.site-header{position:relative;z-index:11;background:rgba(1,24,21,.96);border-bottom:1px solid var(--line)}.nav-shell{min-height:75px;display:flex;align-items:center;justify-content:space-between;gap:30px}.brand{display:flex;align-items:center;gap:8px;flex-shrink:0}.brand-icon{width:56px;height:auto;object-fit:contain}.brand-type{width:185px;height:auto;object-fit:contain}.site-nav{display:flex;align-items:center;gap:clamp(14px,1.9vw,28px);font-weight:620;font-size:14px}.site-nav>a:not(.nav-primary){white-space:nowrap;transition:color .18s}.site-nav>a:not(.nav-primary):hover,.site-nav a[aria-current=page]{color:var(--mint)}.nav-chevron{font-size:17px}.nav-primary{border-left:1px solid var(--line);padding-left:24px;display:flex;gap:11px;align-items:center;white-space:nowrap}.nav-primary{color:#062c22}.nav-primary{position:relative}.nav-primary:before{content:"";position:absolute;inset:0 0 0 24px;border-radius:40px;background:var(--mint);z-index:-1}.nav-primary{padding:12px 16px 12px 39px;font-size:13px;font-weight:800}.nav-primary:hover:before{background:#b4ffdd}.menu-toggle{display:none;background:none;border:0;padding:10px;width:46px;cursor:pointer}.menu-toggle span{display:block;height:2px;background:var(--mint);margin:5px 0}
.hero{position:relative;overflow:hidden;border-bottom:1px solid var(--line);background-color:#011916;background-image:url("assets/hero-reference-clean-v112.webp");background-size:100% 100%;background-repeat:no-repeat;background-position:center center}.hero-shell{min-height:400px;display:grid;grid-template-columns:51% 49%;align-items:center;position:relative}.hero-copy{z-index:2;position:relative;padding:48px 0 52px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.145em;display:flex;gap:14px;align-items:center;margin:0 0 17px;color:#eafbf3}.eyebrow-dash{display:block;width:30px;height:2px;background:var(--mint)}.hero h1{max-width:750px;line-height:1.04}.hero-copy>p:not(.eyebrow){margin-top:18px;color:#e3f4ed;max-width:520px;font-size:18px;line-height:1.46}.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:22px}.button{display:inline-flex;align-items:center;justify-content:center;gap:15px;border-radius:40px;padding:13px 22px;font-size:14px;font-weight:800;min-height:46px;cursor:pointer;transition:transform .18s,background .18s;border:1px solid transparent;white-space:nowrap}.button:hover{transform:translateY(-2px)}.button-green{background:var(--mint);color:#073124}.button-green:hover{background:#b1ffdd}.button-outline{background:rgba(0,0,0,.22);border-color:var(--mint);color:var(--text)}.button-outline:hover{background:rgba(128,247,195,.10)}.hero-art{display:none}.hero-art img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center}.hero-art:before{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,#021a16 0%,rgba(2,26,22,.16) 19%,transparent 40%)}
.expertise-bar{border-bottom:1px solid var(--line);background:linear-gradient(180deg,#021b17,#02251e)}.expertise-inner{min-height:84px;display:grid;grid-template-columns:repeat(4,1fr)}.expertise-inner>a{display:flex;align-items:center;gap:19px;padding:10px 20px;color:#f1fff9;font-weight:760;font-size:15px;position:relative}.expertise-inner>a:first-child{padding-left:0}.expertise-inner>a:not(:first-child):before{content:"";height:34px;width:1px;background:var(--edge);position:absolute;left:0}.expertise-inner>a:hover span{color:var(--mint)}.line-icon{width:39px;height:39px;color:var(--mint);flex:0 0 auto}
.striped-section{position:relative;border-bottom:1px solid var(--line);overflow:hidden}.services-section{padding:45px 0 38px;background:radial-gradient(ellipse at 75% 20%,rgba(14,102,68,.35),transparent 60%),linear-gradient(180deg,#031e19,#03231c)}.section-lead{margin-bottom:22px}.lead-grid{display:grid;grid-template-columns:35% 1fr;gap:36px;align-items:start}.lead-grid>p{border-left:1px solid var(--mint);padding-left:36px;max-width:700px;color:#e3f3eb;line-height:1.45;font-size:16px}.service-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:19px}.service-card{min-height:264px;padding:24px;position:relative;border:1px solid var(--edge);border-radius:15px;background:linear-gradient(145deg,#0b4133a3,#02251e 70%);box-shadow:inset 0 1px 0 rgba(133,253,208,.08);overflow:hidden;display:flex;flex-direction:column}.service-card:after{content:"";position:absolute;inset:auto -25% -65% 30%;height:135px;transform:rotate(-19deg);border:1px solid rgba(112,255,191,.18);border-radius:50%;box-shadow:0 -18px 34px rgba(37,200,139,.16),0 -8px 0 rgba(91,231,175,.12);pointer-events:none}.service-badge{display:grid;place-items:center;align-self:start;width:52px;height:52px;border-radius:12px;background:linear-gradient(135deg,#16664c,#0a4938);margin-bottom:15px}.service-badge .line-icon{width:34px;height:34px}.service-card h3{font-size:19px;margin-bottom:9px}.service-card p{font-size:14px;line-height:1.43;color:#e4f3ea;max-width:240px;position:relative;z-index:1}.round-link{display:grid;place-items:center;border:1px solid var(--mint);color:var(--mint);border-radius:50px;width:43px;height:29px;margin-top:auto;position:relative;z-index:2;font-size:18px}.round-link:hover{color:var(--bg);background:var(--mint)}
.benefits-section{background:radial-gradient(650px 250px at 100% 50%,rgba(21,152,99,.34),transparent 67%),#021b17}.benefits-section:after,.about-section:after{content:"";position:absolute;right:-40px;top:-20px;width:47%;height:calc(100% + 40px);background:url(assets/circuit-pattern.svg) center/cover no-repeat;opacity:.37;pointer-events:none}.benefits-grid{display:grid;grid-template-columns:40% 60%;padding-block:37px;position:relative;z-index:1}.benefits-grid>div:first-child{border-right:1px solid var(--mint);padding-right:25px}.benefits-list{padding-left:50px;display:grid;gap:12px}.benefit{display:flex;align-items:start;gap:23px}.benefit .line-icon{width:30px;height:30px}.benefit h3{font-size:16px;letter-spacing:-.015em;margin-bottom:3px}.benefit p{font-size:13px;color:#d5eadd;line-height:1.38}
.method-section{background:#022119}.method-grid{display:grid;grid-template-columns:29% 1fr;align-items:center;gap:26px;padding-block:37px}.method-intro h2{font-size:clamp(26px,2.25vw,34px)}.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.step{position:relative;text-align:center;border:1px solid var(--edge);border-radius:12px;background:linear-gradient(145deg,#0b4535cc,#03231b);padding:16px 14px 19px;min-height:174px}.step:not(:last-child):after{content:"→";position:absolute;right:-19px;top:45%;z-index:2;color:#cefbea;font-size:23px}.step-number{position:absolute;top:12px;left:14px;color:var(--mint);font-size:11px;font-weight:800}.step .line-icon{width:32px;height:32px;margin-top:9px}.step h3{font-size:16px;margin:7px 0}.step p{font-size:12px;color:#e2f4ea;line-height:1.36}
.about-section{background:radial-gradient(ellipse at 100% 5%,rgba(14,98,68,.18),transparent 60%),#021e19}.about-grid{display:grid;grid-template-columns:32% 1fr;gap:40px;padding-block:39px;position:relative;z-index:1}.about-body{padding-left:42px;border-left:1px solid var(--mint);max-width:740px}.about-body p{font-size:15px;color:#e4f4eb;margin:0 0 13px}.inline-link{font-weight:800;font-size:14px;color:var(--mint);display:inline-flex;gap:12px;margin-top:4px}.inline-link:hover{text-decoration:underline}.cta-section{padding:16px 0 26px;background:#021d18}.cta-band{position:relative;overflow:hidden;display:grid;grid-template-columns:40% 1fr auto;gap:26px;align-items:center;min-height:118px;padding:19px 31px;border:1px solid var(--edge);border-radius:20px;background:radial-gradient(ellipse at 20% 100%,rgba(31,185,125,.39),transparent 55%),linear-gradient(115deg,#0d503d,#053227 55%,#06352a)}.cta-band:before{content:"";position:absolute;width:55%;height:180px;left:-30px;bottom:-152px;border:2px solid rgba(103,250,188,.17);border-radius:50%;box-shadow:0 -15px 45px rgba(19,211,151,.13)}.cta-band h2{font-size:clamp(24px,2.2vw,34px)}.cta-band>p{border-left:1px solid var(--mint);padding-left:24px;font-size:14px;color:#e3f5eb}.cta-band .button{font-size:13px}
.site-footer{background:#011712;border-top:1px solid var(--line)}.footer-grid{display:grid;grid-template-columns:33% 19% 19% 1fr;gap:22px;padding:27px 0 23px}.footer-brand{display:flex;align-items:center;gap:9px;align-self:start;justify-self:start}.footer-brand>img{width:63px;height:auto}.footer-brand span{display:grid;gap:5px}.footer-brand span img{width:191px;max-width:100%;height:auto}.footer-brand small{font-size:10px;color:#b4d3c5;letter-spacing:.08em; text-align: center}.footer-grid>div{padding-left:20px;border-left:1px solid var(--line);display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}.footer-grid h3{font-size:14px;letter-spacing:0;margin-bottom:5px}.footer-grid a:not(.footer-brand){font-size:13px;color:#d8ebe0;overflow-wrap:anywhere}.footer-grid a:hover{color:var(--mint)}.footer-note{font-size:11px;line-height:1.35;color:#a2bdb0}.footer-bottom{padding:15px 0 21px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;color:#a4c5b4;font-size:11px}.footer-bottom a{text-decoration:underline}
/* Inner pages */
.inner-hero{min-height:300px;display:flex;align-items:center;background:radial-gradient(ellipse at 80% 80%,rgba(15,150,92,.18),transparent 58%),#021d18;border-bottom:1px solid var(--line);position:relative;overflow:hidden}.inner-hero:after{content:"";background:url(assets/circuit-pattern.svg) right center/contain no-repeat;position:absolute;right:0;top:0;width:55%;height:100%;opacity:.27;pointer-events:none}.inner-hero-grid{display:grid;grid-template-columns:65% 1fr;align-items:center;gap:20px;padding:40px 0;position:relative;z-index:1}.inner-hero h1{font-size:clamp(35px,4.0vw,56px)}.inner-hero p:not(.eyebrow){max-width:660px;color:#dcf0e5;margin-top:15px;font-size:17px}.inner-tree{width:min(300px,100%);height:auto;justify-self:center;filter:drop-shadow(0 0 30px rgba(20,199,139,.15))}
.projects-section{padding:44px 0 65px;background:radial-gradient(circle at 20% 16%,rgba(9,96,63,.22),transparent 40%),#022119}.projects-filter{display:flex;gap:10px;flex-wrap:wrap;margin:26px 0 25px}.filter-button{border:1px solid var(--edge);background:rgba(13,65,48,.55);border-radius:40px;padding:10px 17px;font-size:13px;color:#e5f6ea;font-weight:680;cursor:pointer}.filter-button.is-active,.filter-button:hover{background:var(--mint);color:#04251b}.filter-button span{opacity:.65}.projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.project-card{display:flex;flex-direction:column;min-width:0;min-height:325px;padding:24px;border:1px solid var(--edge);border-radius:15px;background:linear-gradient(153deg,#0b3f31,#06271f 65%,#042119);box-shadow:0 10px 28px rgba(0,0,0,.10)}.project-card[hidden]{display:none!important}.project-card-head{display:flex;align-items:start;justify-content:space-between}.project-index{font-size:12px;font-weight:750;color:var(--mint)}.project-icon{width:48px;height:48px;border-radius:10px;display:grid;place-items:center;background:rgba(111,239,175,.10);color:var(--mint)}.project-icon svg{width:34px;height:34px}.project-card-body{margin-top:18px}.project-area{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--mint);font-weight:800;margin-bottom:11px}.project-card h2{font-size:22px;margin-bottom:10px}.project-description{font-size:14px;color:#dfefe5;line-height:1.55}.project-card-footer{display:flex;flex-direction:column;gap:12px;margin-top:auto;padding-top:20px}.project-tags{display:flex;gap:5px;flex-wrap:wrap}.project-tags span{font-size:11px;padding:4px 7px;border:1px solid rgba(128,247,195,.23);border-radius:5px;color:#c9ebd8}.project-outlink{font-size:13px;font-weight:760;color:var(--mint);align-self:start}.project-bottom{margin-top:36px;display:flex;flex-wrap:wrap;align-items:center;gap:16px;justify-content:space-between;border:1px solid var(--edge);padding:20px 24px;border-radius:14px;background:#0a4937}.project-bottom h2{font-size:25px}.project-bottom p{font-size:14px;color:#d9f1e4;flex:1 1 320px}
.contact-section{padding:55px 0 70px;background:#022119}.contact-layout{display:grid;grid-template-columns:44% 1fr;gap:50px;align-items:start}.contact-aside h2{margin-bottom:20px}.contact-aside>p{font-size:16px;max-width:480px;color:#d7ece0}.contact-note{border-left:2px solid var(--mint);background:rgba(15,80,55,.45);padding:18px;margin:28px 0;max-width:470px}.contact-note strong{font-size:14px}.contact-note p{font-size:13px;color:#cde6d8;margin-top:6px}.contact-address{font-size:14px!important}.contact-address a{color:var(--mint);text-decoration:underline}.contact-panel{padding:30px;border:1px solid var(--edge);border-radius:19px;background:linear-gradient(140deg,rgba(18,78,57,.90),rgba(3,42,32,.95))}.form-head h2{font-size:25px}.form-head p{font-size:14px;margin:8px 0 22px;color:#d0ecdb}.field{margin-bottom:17px}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field label{font-size:13px;font-weight:760;display:block;margin-bottom:7px}.field label span{color:var(--mint)}.field input,.field select,.field textarea{width:100%;min-width:0;border:1px solid #3c795d;border-radius:9px;background:#f5fff9;color:#08241a;padding:12px 13px;display:block;font-size:14px}.field textarea{resize:vertical;min-height:130px}.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.form-feedback{min-height:22px;font-size:13px;color:var(--mint);margin-top:14px}.form-feedback.error{color:#ffb6a9}.privacy-note{color:#c7dfd1;font-size:12px;line-height:1.5;border-top:1px solid var(--line);padding-top:13px;margin-top:12px}
@media(max-width:1150px){.wrap{width:min(100% - 60px,1280px)}.site-nav{gap:13px}.nav-primary{font-size:12px}.brand-type{width:155px}.hero-art{width:61%}.hero-shell{min-height:360px}.hero h1{font-size:clamp(37px,4.6vw,52px)}.hero-copy>p:not(.eyebrow){font-size:16px}.expertise-inner>a{font-size:13px;gap:10px}.expertise-inner>a .line-icon{width:31px;height:31px}.service-card{padding:17px}.cta-band{grid-template-columns:38% 1fr auto;gap:14px;padding-inline:22px}.cta-band .button{padding-inline:13px}}
@media(max-width:850px){.wrap{width:min(100% - 38px,1280px)}.nav-shell{min-height:68px}.menu-toggle{display:block}.site-nav{display:none;position:absolute;left:0;right:0;top:100%;padding:14px 20px 20px;border-top:1px solid var(--line);background:#05251d;box-shadow:0 25px 35px #0007;flex-direction:column;align-items:stretch;gap:2px}.site-nav.is-open{display:flex}.site-nav>a:not(.nav-primary){padding:11px 8px}.site-nav>.nav-primary{margin-top:8px;align-self:start;border:0;padding-left:17px;background:var(--mint);border-radius:40px}.site-nav>.nav-primary:before{display:none}.hero-shell{min-height:430px;grid-template-columns:60% 40%}.hero-art{width:63%;opacity:.78}.hero-art:before{background:linear-gradient(90deg,#021a16 0%,rgba(2,26,22,.72) 20%,transparent 70%)}.hero h1{font-size:clamp(36px,5.1vw,52px)}.expertise-inner{grid-template-columns:repeat(2,1fr)}.expertise-inner>a{min-height:64px}.expertise-inner>a:nth-child(3):before{display:none}.expertise-inner>a:first-child{padding-left:20px}.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.service-card{min-height:242px;padding:21px}.lead-grid{grid-template-columns:1fr;gap:14px}.lead-grid>p{padding-left:0;border-left:0}.benefits-grid{grid-template-columns:1fr;gap:22px}.benefits-grid>div:first-child{border:0;padding:0}.benefits-list{padding-left:0;grid-template-columns:1fr 1fr;gap:19px}.method-grid{grid-template-columns:1fr;gap:22px}.steps{grid-template-columns:repeat(4,1fr)}.step{padding:14px 8px}.step p{font-size:11px}.about-grid{grid-template-columns:1fr;gap:20px}.about-body{padding-left:0;border:0}.cta-band{grid-template-columns:1fr 1fr;gap:12px}.cta-band h2{grid-column:1 / -1}.cta-band>p{border:0;padding:0}.cta-band .button{justify-self:end}.footer-grid{grid-template-columns:repeat(2,1fr);row-gap:24px}.footer-brand{grid-column:1 / -1}.footer-grid>div:nth-child(2){border:0;padding:0}.inner-hero-grid{grid-template-columns:70% 30%}.projects-grid{grid-template-columns:repeat(2,1fr)}.contact-layout{grid-template-columns:1fr;gap:25px}}
@media(max-width:590px){.wrap{width:min(100% - 32px,1280px)}.brand-type{width:157px}.brand-icon{width:40px}.hero-shell{min-height:645px;align-items:start;display:block}.hero-copy{padding:40px 0 10px}.hero h1{font-size:clamp(36px,8.1vw,48px);max-width:520px}.hero-copy>p:not(.eyebrow){max-width:480px;font-size:15px}.hero-actions{gap:9px}.hero-actions .button{font-size:12px;padding-inline:14px}.hero-art{top:auto;bottom:-15px;right:-40px;width:calc(100% + 40px);height:285px;opacity:.85}.hero-art img{object-fit:contain;object-position:center right}.hero-art:before{background:linear-gradient(180deg,#021a16,transparent 44%)}.expertise-inner>a{font-size:12px;padding:10px 7px!important;gap:8px}.expertise-inner>a .line-icon{width:28px;height:28px}.services-section{padding:32px 0 28px}.eyebrow{font-size:10px}.section-lead h2{font-size:clamp(29px,7.2vw,38px)}.service-grid{gap:11px}.service-card{min-height:246px;padding:15px}.service-card h3{font-size:16px}.service-card p{font-size:12px}.service-badge{width:45px;height:45px;margin-bottom:11px}.service-badge .line-icon{width:29px;height:29px}.round-link{width:39px;height:29px}.benefits-grid{padding-block:30px}.benefits-grid h2{font-size:28px}.benefits-list{grid-template-columns:1fr}.method-grid{padding-block:30px}.steps{grid-template-columns:repeat(2,1fr);gap:13px}.step{min-height:155px;padding:15px 11px}.step:not(:last-child):after{display:none}.about-grid{padding-block:32px}.about-body p{font-size:14px}.cta-band{grid-template-columns:1fr;padding:21px}.cta-band h2{grid-column:auto;font-size:27px}.cta-band .button{justify-self:start}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div:nth-child(4){grid-column:1 / -1}.footer-bottom{flex-direction:column}.inner-hero-grid{grid-template-columns:1fr;position:relative}.inner-hero h1{font-size:36px}.inner-hero p:not(.eyebrow){font-size:15px}.inner-tree{position:absolute;width:65%;right:-18%;bottom:-36px;opacity:.28}.projects-section{padding-top:30px}.projects-grid{grid-template-columns:1fr}.project-card{min-height:290px}.project-bottom{display:block}.project-bottom>*{margin:0 0 15px}.contact-section{padding:35px 0}.contact-panel{padding:19px}.form-row{grid-template-columns:1fr;gap:0}.button{white-space:normal}.form-actions .button{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Override per il pulsante CTA di navigazione: sfondo visibile anche con stacking contestuale. */
.site-nav .nav-primary{background:var(--mint);color:#052c20;border:0;border-radius:40px;padding:12px 17px;font-weight:800}.site-nav .nav-primary:before{content:none;display:none}.site-nav .nav-primary:hover{background:#b7ffdc;color:#052c20}

/* Full-width hero art (2026-11-10): a single backdrop, no separate right panel. */
@media(max-width:590px){.hero{background-image:linear-gradient(180deg,#011916 0%,rgba(1,25,22,.98) 39%,rgba(1,25,22,.58) 60%,rgba(1,25,22,0) 83%),url("assets/hero-reference-clean-v112.webp");background-size:100% 100%,auto 285px;background-position:center center,70% bottom;background-repeat:no-repeat}}

/* Tablet: keep the entire digital oak visible without resizing typography or changing the grid. */
@media (min-width:591px) and (max-width:850px){.hero{background-size:100% 100%;background-position:center center}}

/* QuercusTech V1.12 — Hero faithfully grounded in the approved original reference.
   Only changes the hero. No split image, overlay card or left/right artificial seam. */
@media (min-width: 851px) {
  .hero {
    background-color:#011b16;
    background-image:url("assets/hero-reference-clean-v112.webp");
    background-size:100% 100%;
    background-position:center center;
    background-repeat:no-repeat;
  }
  .hero-shell {
    min-height:clamp(282px, 26vw, 540px);
    grid-template-columns:58% 42%;
  }
  .hero-copy {
    margin-left:52px;
    padding:18px 0;
  }
  .hero .eyebrow { margin-bottom:11px; }
  .hero h1 {
    font-size:clamp(42px,4vw,58px);
    line-height:1.035;
    max-width:650px;
  }
  .hero-copy>p:not(.eyebrow) {
    margin-top:11px;
    max-width:520px;
    font-size:clamp(15px,1.35vw,18px);
    line-height:1.37;
  }
  .hero-actions { margin-top:14px; }
  .hero .button { min-height:clamp(37px,3.3vw,46px); padding:10px 20px; }
}
@media (max-width:850px) {
  .hero {
    background-color:#011b16;
    background-image:linear-gradient(180deg,#011916 0%,rgba(1,25,22,.98) 39%,rgba(1,25,22,.50) 60%,rgba(1,25,22,0) 86%),url("assets/hero-reference-clean-v112.webp");
    background-size:100% 100%,auto 285px;
    background-position:center center,70% bottom;
    background-repeat:no-repeat;
  }
}


/* V1.13 - Rende nitido esclusivamente il codice decorativo già presente nella grafica hero. */
.hero-code-enhanced{display:none}
@media (min-width:851px){
  .hero-code-enhanced{
    display:block;position:absolute;left:79%;top:7%;z-index:1;
    width:19%;pointer-events:none;user-select:none;
    color:#95fbd1;font-family:Consolas,"Liberation Mono","DejaVu Sans Mono",monospace;
    font-size:clamp(10px,.93vw,17px);font-weight:600;line-height:1.62;
    text-shadow:0 0 6px rgba(56,255,180,.32);
  }
  .hero-code-enhanced::before{
    content:"";position:absolute;inset:-8% -4% -6% -2%;z-index:-1;
    background:radial-gradient(ellipse 90% 95% at 43% 42%,rgba(1,29,23,.91) 0%,rgba(1,29,23,.85) 55%,rgba(1,29,23,.43) 78%,transparent 100%);
  }
  .hero-code-enhanced pre{margin:0;font:inherit;white-space:pre}
  .hero-code-enhanced .hero-code-comment{color:#45edba}
}



/* SOLO TABLET - Desktop e smartphone invariati */
@media (min-width: 591px) and (max-width: 850px) {

    /* 1. Testo hero più in alto */
    .hero-copy {
        transform: translateY(-60px);
    }

}

/* SOLO TABLET - Desktop e mobile invariati */
@media (min-width: 591px) and (max-width: 850px) {

    /* 1. Posizione testo hero invariata */
    .hero-copy {
        transform: translateY(-60px);
    }

    /* 2. Logo QuercusTech centrato */
    .footer-brand {
        grid-column: 1 / -1;
        justify-self: center;
        align-items: center;
    }

    .footer-brand span {
        justify-items: center;
        text-align: center;
    }

    /* 3. Centra le colonne Servizi ed Esplora */
    .footer-grid > div:nth-child(2),
    .footer-grid > div:nth-child(3) {
        justify-self: center;
        align-items: flex-start;
        text-align: left;
        border-left: 1px solid var(--line);
        padding-left: 14px;
        max-width: 100%;
    }

    /* 4. Contatti centrato, senza linea */
    .footer-grid > div:nth-child(4) {
        grid-column: 1 / -1;
        justify-self: center;
        align-items: center;
        text-align: center;
        border-left: none;
        padding-left: 0;
        display: flex;
        flex-direction: column;
        width: max-content;
        max-width: 100%;
    }
}


/* SOLO MOBILE - Quercia della pagina Progetti meno invadente */
@media (max-width: 590px) {
    .inner-tree {
        opacity: 0.14;
    }
}


/* SOLO MOBILE - Migliora la leggibilità del modulo */
@media (max-width: 590px) {
    .field input,
    .field select,
    .field textarea {
        font-size: 16px;
    }
}






/* TABLET - Sposta la grafica della quercia a destra */
@media (min-width: 591px) and (max-width: 850px) {
    .hero {
        background-position: center center, calc(70% + 80px) bottom;
    }
}




/* SOLO MOBILE - Centra la quercia */
@media (max-width: 590px) {
    .hero {
        background-position: center center, 78% bottom;
    }
}


/* SOLO MOBILE - Testi delle schede servizi */
@media (max-width: 590px) {
    .service-card p {
        font-size: 13px;
        line-height: 1.45;
    }
}

/* SOLO MOBILE - Testi del metodo */
@media (max-width: 590px) {
    .step p {
        font-size: 12px;
        line-height: 1.45;
    }
}


/* SOLO MOBILE - Footer definitivo */
@media (max-width: 590px) {

    /* 1. Logo QuercusTech centrato */
    .footer-brand {
        grid-column: 1 / -1;
        justify-self: center;
        align-items: center;
    }

    .footer-brand span {
        justify-items: center;
        text-align: center;
    }

    /* 2. Servizi ed Esplora:
       colonne centrate, testi allineati a sinistra */
    .footer-grid > div:nth-child(2),
    .footer-grid > div:nth-child(3) {
        justify-self: center;
        align-items: flex-start;
        text-align: left;
        border-left: 1px solid var(--line);
        padding-left: 14px;
        max-width: 100%;
    }

    /* 3. Contatti:
       blocco e testi centrati, senza linea verticale */
    .footer-grid > div:nth-child(4) {
        grid-column: 1 / -1;
        justify-self: center;
        align-items: center;
        text-align: center;
        border-left: none;
        padding-left: 0;
        width: max-content;
        max-width: 100%;
    }
}





/* QuercusTech Web V0.2 — collegamenti social, senza alterare il layout originale. */
.footer-socials{display:flex;flex-wrap:nowrap;gap:4px;margin-top:10px}
.footer-grid .footer-socials a{display:inline-flex;align-items:center;flex:0 0 auto;gap:4px;padding:6px;border:1px solid rgba(156,222,190,.24);border-radius:8px;text-decoration:none;line-height:1.3;font-size:11px;color:#d8ebe0;white-space:nowrap;overflow-wrap:normal}
.footer-socials a:hover,.footer-socials a:focus-visible{border-color:var(--mint);color:var(--mint)}
.footer-socials svg,.contact-socials svg{flex:none}
.contact-socials{margin-top:22px;display:grid;gap:9px}
.contact-socials>span{font-size:13px;font-weight:700;color:#e3f5eb}
.contact-social-links{display:flex;flex-wrap:wrap;gap:10px}
.contact-social-links a{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid rgba(156,222,190,.28);border-radius:10px;text-decoration:none;color:#d8ebe0;font-size:13px}
.contact-social-links a:hover,.contact-social-links a:focus-visible{border-color:var(--mint);color:var(--mint)}

/* QuercusTech Web V0.3: solo modulo/Privacy; layout approvato invariato. */
.qt-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important}
.contact-privacy-check{margin:10px 0 16px;font-size:13px;color:#e4f3ea;line-height:1.6}
.contact-privacy-check label{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
.contact-privacy-check input{width:18px;height:18px;accent-color:var(--mint);flex:0 0 18px;margin-top:3px}
.contact-privacy-check a,.privacy-note a,.qt-policy a:not(.button){color:var(--mint);text-decoration:underline;text-underline-offset:3px}
.qt-policy{max-width:950px;margin-inline:auto;padding-block:15px 50px}
.qt-policy h2{font-size:clamp(21px,2vw,28px);margin:32px 0 11px}
.qt-policy p{font-size:15px;line-height:1.75;color:#d7eae0;margin:11px 0}
.qt-policy-updated{font-size:13px!important;color:var(--mint)!important}
.qt-policy-end{margin-top:35px!important}
.form-actions button[disabled]{opacity:.65;cursor:wait}

/* QT Web V0.5: keep all three footer links in one row at medium desktop widths. */
@media (min-width:851px) and (max-width:1150px){.footer-grid{grid-template-columns:29% 17% 17% minmax(0,1fr);gap:16px}.footer-grid>div:nth-child(4){padding-left:8px}}

/* QUERCUSTECH MOBILE - CORREZIONE HERO E FOOTER V3 */
@media (max-width: 590px) {

    /* HERO: ritorna alla centratura originale,
       leggermente più in basso */
    .hero {
        background-size: 100% 100%, auto 285px;
        background-position:
            center center,
            78% calc(100% );
    }

    /* FOOTER: più spazio alla colonna Servizi */
    .footer-grid {
        grid-template-columns:
            minmax(0, 1.2fr)
            minmax(0, 0.8fr);
        column-gap: 12px;
    }

    /* Servizi: allineamento con la quercia del logo */
    .footer-grid > div:nth-child(2) {
        padding-left: 38px;
        padding-right: 0;
        border-left: none;
        align-items: flex-start;
        text-align: left;
    }

    /* Esplora: mantiene la linea verticale */
    .footer-grid > div:nth-child(3) {
        padding-left: 12px;
        border-left: 1px solid var(--line);
        align-items: flex-start;
        text-align: left;
    }
}

/* Evita che "Automazioni e integrazioni" vada a capo
   sugli smartphone con larghezza sufficiente */
@media (min-width: 390px) and (max-width: 590px) {
    .footer-grid > div:nth-child(2) a:nth-of-type(3) {
        font-size: 12px;
        white-space: nowrap;
    }
}

/* SOLO MOBILE - Ultime 3 rifiniture footer */
@media (max-width: 590px) {

    /* 1. Centra © 2026 QuercusTech e la riga Privacy */
    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .footer-bottom > span {
        width: 100%;
        text-align: center;
    }

    /* 2. Ripristina la linea a sinistra di Servizi */
    .footer-grid > div:nth-child(2) {
        border-left: 1px solid var(--line);
    }
}


/* SOLO MOBILE - Rifinitura finale footer */
@media (max-width: 590px) {

    /* 1. Avvicina la linea verticale al testo Servizi */
    .footer-grid > div:nth-child(2) {
        border-left: none;
        position: relative;
    }

    .footer-grid > div:nth-child(2)::before {
        content: "";
        position: absolute;
        left: 30px;
        top: 0;
        bottom: 0;
        width: 1px;
        background: var(--line);
        pointer-events: none;
    }
}


/* QUERCUSTECH - CONTATTI MOBILE */
@media (max-width: 590px) {

    /* 1. Corregge l'allineamento del testo Privacy */
    .contact-privacy-check label {
        display: block;
        line-height: 1.6;
    }

    .contact-privacy-check input {
        float: left;
        margin: 5px 12px 0 0;
    }

    .contact-privacy-check label::after {
        content: "";
        display: block;
        clear: both;
    }

    /* 2. Instagram, LinkedIn e Facebook sulla stessa riga */
    .contact-social-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
    }

    .contact-social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        padding: 9px 4px;
        gap: 4px;
        font-size: clamp(10px, 2.6vw, 12px);
        white-space: nowrap;
        overflow-wrap: normal;
    }

    .contact-social-links a svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }
}

/* QUERCUSTECH HOME FEATURED PORTFOLIO V055 - solo nuova sezione homepage */
.qt-featured {
  padding: 45px 0 47px;
  background: radial-gradient(ellipse at 12% 0%, rgba(20, 116, 79, .23), transparent 58%), #021b17;
}
.qt-featured-intro { margin-bottom: 23px; }
.qt-featured-heading { display: grid; grid-template-columns: 42% 1fr; gap: 24px; align-items: start; }
.qt-featured-heading p { color: #d7ece0; font-size: 16px; line-height: 1.5; max-width: 640px; border-left: 1px solid var(--mint); padding-left: 24px; }
.qt-featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.qt-featured-card { min-width: 0; display: flex; flex-direction: column; padding: 24px; gap: 11px;
  background: linear-gradient(145deg, rgba(15, 76, 55, .82), #042a21);
  border: 1px solid var(--edge); border-radius: 15px; }
.qt-featured-category { color: var(--mint); font-size: 11px; letter-spacing: .095em; font-weight: 800; }
.qt-featured-card h3 { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.2; }
.qt-featured-card p { font-size: 14px; color: #deefe5; line-height: 1.55; }
.qt-featured-card p strong { color: #f5fff9; }
.qt-featured-problem { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.qt-featured-tags { margin-top: auto; padding-top: 8px; color: var(--mint); font-size: 12px; font-weight: 650; }
.qt-featured-action { display: flex; justify-content: center; margin-top: 24px; }
.qt-featured-action .button { border-color: var(--mint); }
@media (max-width: 850px) {
  .qt-featured-heading { grid-template-columns: 1fr; gap: 12px; }
  .qt-featured-heading p { border-left: 0; padding-left: 0; }
  .qt-featured-grid { grid-template-columns: 1fr; gap: 12px; }
  .qt-featured-card { gap: 9px; padding: 20px; }
}
@media (max-width: 590px) {
  .qt-featured { padding: 34px 0 36px; }
  .qt-featured-heading p { font-size: 14px; }
  .qt-featured-card h3 { font-size: 19px; }
  .qt-featured-card p { font-size: 13px; line-height: 1.5; }
  .qt-featured-action .button { width: 100%; text-align: center; }
}

/* QUERCUSTECH PROGETTI - RIFINITURE V2 CSS ESTERNO */
/* Solo desktop, sezione Portfolio della pagina Progetti. */
@media (min-width: 851px) {
  .projects-section .lead-grid {
    align-items: center;
  }
  .projects-section .lead-grid > h2,
  .projects-section .lead-grid > p {
    margin-top: 0;
    margin-bottom: 0;
  }
}
/* Solo tablet, quando il filtro Tutti e' attivo e sono presenti 9 schede. */
@media (min-width: 591px) and (max-width: 850px) {
  .projects-section:has(.projects-filter .filter-button[data-filter="all"].is-active)
  .projects-grid > #progetto-09:not([hidden]) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 18px) / 2);
  }
}


/* QT PROGETTI ALLINEAMENTO DESKTOP V3 */
@media (min-width: 851px) {
    .projects-section .lead-grid {
        align-items: start;
    }
}


/* QT PROGETTI ALLINEAMENTO DESKTOP V4 */
@media (min-width: 851px) {
    .projects-section .lead-grid > p {
        transform: translateY(15px);
    }
}
