/*
Theme Name: E-Tekne 2026 Updated
Theme URI: https://www.e-tekne.it/
Author: E-Tekne Srl
Description: E-Tekne corporate theme for applied research, technology transfer and digital products.
Version: 2.2.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: e-tekne
*/
:root{--ink:#223124;--muted:#536153;--green:#426b23;--dark:#183b27;--line:#d9e2d5;--paper:#f8faf6;--pale:#edf3e8;--white:#fff;--max:1200px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.58}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:.25em}
:focus-visible{outline:3px solid #668b31;outline-offset:4px}
section[id]{scroll-margin-top:108px}
.wrap{width:min(calc(100% - 3rem),var(--max));margin-inline:auto}
.skip{position:absolute;top:-6rem;left:1rem;z-index:30;background:#fff;padding:.65rem 1rem}
.skip:focus{top:1rem}
.site-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line)}
.header-inner{min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:2rem}
.brand{display:inline-flex;align-items:center;flex:none}
.brand img{display:block;width:188px;height:auto}
.nav{display:flex;gap:clamp(.7rem,1.7vw,1.6rem);align-items:center;font-size:.85rem;font-weight:700;white-space:nowrap}
.nav a:hover{color:var(--green)}
.eyebrow{margin:0 0 1.25rem;color:var(--green);font-size:.72rem;font-weight:800;letter-spacing:.17em;text-transform:uppercase;line-height:1.45}
h1,h2,h3,h4,p{margin-top:0}
h1,h2,h3,h4{line-height:1.12;letter-spacing:-.045em}
h1{font-size:clamp(3.1rem,5.8vw,6.15rem);font-weight:650;max-width:13ch;margin-bottom:1.8rem}
h1 em{font-family:Georgia,serif;font-weight:400;color:var(--green);letter-spacing:-.06em}
h2{font-size:clamp(2.2rem,3.8vw,4.2rem);font-weight:600;margin-bottom:1.4rem}
h3,h4{font-weight:650}
.hero{background:var(--white);border-bottom:1px solid var(--line)}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(245px,.55fr);gap:7vw;align-items:end;padding-block:7.5rem 6.2rem}
.hero-lead{font-size:clamp(1.08rem,1.6vw,1.3rem);line-height:1.55;max-width:43rem;color:#3c4d3d;margin-bottom:2.2rem}
.button{display:inline-flex;align-items:center;gap:1.3rem;background:var(--dark);color:#fff;padding:.9rem 1.2rem;font-weight:700;font-size:.9rem}
.button:hover{background:var(--green);text-decoration:none}
.hero-aside{border-top:3px solid var(--green);background:var(--pale);padding:1.5rem 1.7rem 1.7rem}
.hero-index{font-size:.7rem;letter-spacing:.16em;color:var(--green);font-weight:800}
.hero-aside p{font-size:1.5rem;line-height:1.18;letter-spacing:-.04em;font-weight:650;margin:3rem 0 1rem}
.hero-aside ol{list-style:none;padding:0;margin:0}
.hero-aside li{border-top:1px solid #cbd9c6;padding:.7rem 0;color:#465a45;font-size:.9rem}
.section{padding-block:6.5rem}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:8vw}
.intro{background:#fff}
.intro h2{max-width:14ch}
.prose{font-size:1.12rem;color:#3f5040;line-height:1.7}
.prose p{margin-bottom:1.4rem}
.inline-link{display:inline-block;margin-top:.6rem;color:#315c1e;border-bottom:2px solid var(--green);font-size:.92rem;font-weight:750;padding-bottom:.3rem}
.inline-link:hover{text-decoration:none;color:var(--ink)}
.section-title{margin-bottom:2.8rem}
.section-title h2{margin:0}
.expertise{background:var(--pale);border-block:1px solid var(--line)}
.expertise-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #c9d6c4;border-left:1px solid #c9d6c4}
.expertise-grid article{border-right:1px solid #c9d6c4;border-bottom:1px solid #c9d6c4;padding:1.7rem 1.5rem 2rem;background:rgba(255,255,255,.38);min-height:246px}
.expertise-grid span{display:block;color:var(--green);font-size:.7rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin-bottom:3rem}
.expertise-grid h3{font-size:1.26rem;margin-bottom:.75rem}
.expertise-grid p{font-size:.94rem;color:var(--muted);margin:0;line-height:1.52}
.projects{background:var(--paper)}
.project-heading{display:grid;grid-template-columns:1fr .62fr;gap:3rem;align-items:end}
.project-heading p:last-child{color:var(--muted);margin:0;max-width:34rem}
.featured{display:grid;grid-template-columns:1.2fr .8fr;background:var(--dark);color:#fff;min-height:410px;margin-bottom:5rem}
.feature-copy{padding:3.2rem;display:flex;flex-direction:column;align-items:flex-start}
.feature-label{color:#c5e3a0;font-size:.74rem;letter-spacing:.15em;font-weight:800;text-transform:uppercase;margin-bottom:1.4rem}
.featured h3{font-size:clamp(2.7rem,4vw,4.6rem);margin-bottom:1.1rem}
.feature-copy>p:not(.feature-label){max-width:36rem;font-size:1.08rem;color:#e0e9db;line-height:1.6}
.feature-links{display:flex;gap:1.1rem;flex-wrap:wrap;margin-top:auto;padding-top:1rem}
.feature-links a{color:#dcf2bf;border-bottom:1px solid #9fca75;padding-bottom:.25rem;font-size:.88rem;font-weight:700}
.feature-visual{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:space-between;overflow:hidden;padding:2rem;background:radial-gradient(circle at 50% 50%,#3e6932 0,#284d2a 47%,#1e4228 100%);border-left:1px solid #588055}
.feature-visual:before,.feature-visual:after{content:"";position:absolute;width:340px;height:340px;border:1px solid rgba(219,241,189,.4);border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%)}
.feature-visual:after{width:260px;height:260px;border-color:rgba(219,241,189,.6)}
.feature-cap,.feature-base{font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#dcf2bf;z-index:1;text-align:center}
.feature-base{border-top:1px solid #8bb581;width:100%;padding-top:1rem}
.feature-glyph{font-family:Georgia,serif;font-size:8.4rem;line-height:1;font-weight:400;letter-spacing:-.1em;color:#f6ffe8;z-index:1}
.feature-glyph span{font-family:Arial,sans-serif;font-size:3rem;vertical-align:top;color:#c5e875}
.project-group{display:grid;grid-template-columns:.72fr 1.28fr;gap:7vw;border-top:1px solid var(--line);padding:2rem 0 3.1rem}
.group-number{font-size:.72rem;color:var(--green);letter-spacing:.13em;font-weight:800}
.group-intro h3{font-size:clamp(1.7rem,2.4vw,2.55rem);margin:1rem 0}
.group-intro p{color:var(--muted);max-width:19rem;margin:0}
.project-list article{display:grid;grid-template-columns:8rem 1fr;gap:1.5rem;border-bottom:1px solid var(--line);padding:1.3rem 0}
.project-list article:first-child{padding-top:.2rem}
.project-list h4{font-size:1.25rem;margin:0}
.project-list p{margin:0;color:#445345;font-size:.96rem}
.project-list a{color:#315c1e;text-decoration:underline;text-underline-offset:.2em;white-space:nowrap}
.partner-note{display:grid;grid-template-columns:.45fr 1fr;gap:2rem;background:var(--pale);border-left:4px solid var(--green);padding:1.6rem 2rem;margin-top:1rem}
.partner-note .eyebrow{margin:0}
.partner-note p{margin:0;font-size:1.04rem}
.partner-note a{text-decoration:underline;text-underline-offset:.2em}
.clients{background:#fff;border-block:1px solid var(--line)}
.client-list{display:grid;grid-template-columns:1fr 1fr;gap:0 3rem;border-top:1px solid var(--line)}
.client-list>div{display:grid;grid-template-columns:.82fr 1.18fr;gap:1.1rem;border-bottom:1px solid var(--line);padding:1.25rem 0;align-items:start}
.client-list h3{font-size:1.04rem;margin:0;line-height:1.3}
.client-list p{font-size:.9rem;color:var(--muted);line-height:1.5;margin:0}
.history{background:var(--paper)}
.history h2{margin-bottom:.4rem}
.history .founder-role{color:var(--green);font-size:.8rem;letter-spacing:.11em;text-transform:uppercase;font-weight:800;margin-bottom:1.8rem}
.history .two-col>div:first-child>p:not(.eyebrow):not(.founder-role){font-size:1.09rem;line-height:1.7;color:#435343;max-width:32rem}
.timeline{border-top:1px solid var(--line)}
.timeline>div{display:grid;grid-template-columns:7rem 1fr;gap:1.2rem;border-bottom:1px solid var(--line);padding:1.35rem 0}
.timeline span{font-size:.76rem;font-weight:800;color:var(--green);letter-spacing:.06em}
.timeline h3{font-size:1.15rem;margin-bottom:.4rem}
.timeline p{font-size:.95rem;color:var(--muted);margin:0}
.contact{background:var(--dark);color:#fff}
.contact-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:8vw}
.contact .eyebrow{color:#c5e3a0}
.contact h2{max-width:12ch}
.contact p:not(.eyebrow){color:#e3ebdf;max-width:35rem}
.contact-email{display:inline-block;margin-top:1rem;border-bottom:2px solid #b8d78a;font-size:clamp(1.4rem,2.5vw,2.5rem);font-weight:650;overflow-wrap:anywhere}
.company-details{border-top:1px solid #6e926a;padding-top:1.3rem;align-self:end}
.company-details h3{font-size:1.32rem;margin-bottom:1.5rem}
.company-details dt{font-size:.72rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:#c5e3a0;margin-top:1.2rem}
.company-details dd{margin:.28rem 0 0;color:#e3ebdf}
.company-details a{text-decoration:underline;text-decoration-color:#97b894;text-underline-offset:.2em}
.legal{padding-block:2.3rem;background:#e9f1e3;border-top:1px solid #bacfb3}
.legal-inner{display:grid;grid-template-columns:1fr auto;gap:2rem;align-items:center}
.legal .eyebrow{margin-bottom:.3rem}
.legal h2{font-size:1.65rem;margin-bottom:.4rem}
.legal p:last-child{font-size:.91rem;color:#465747;margin-bottom:0;max-width:44rem}
.legal-link{border:1px solid var(--green);padding:.75rem 1rem;color:#254b18;font-weight:750;font-size:.9rem;white-space:nowrap}
.legal-link:hover{background:var(--green);color:#fff;text-decoration:none}
.footer{background:#122b1c;color:#d6e2d1;padding-block:1.65rem;font-size:.82rem}
.footer-inner{display:flex;justify-content:space-between;gap:2rem}
.footer p{margin:0}
.footer a{text-decoration:underline;text-underline-offset:.2em}
/* Existing WordPress pages continue to use their saved page content. */
.legacy-page{padding-block:5rem 6rem;min-height:55vh}
.legacy-page article{max-width:900px;background:#fff;border:1px solid var(--line);padding:clamp(1.4rem,4vw,3.5rem)}
.legacy-page h1{font-size:clamp(2.5rem,5vw,4.5rem);max-width:none}
.legacy-page h2,.legacy-page h3{line-height:1.2;letter-spacing:-.035em;margin-top:2rem}
.legacy-page p,.legacy-page li{line-height:1.7}
.legacy-page img{max-width:100%;height:auto}
.legacy-page a{color:#315c1e;text-decoration:underline;text-underline-offset:.2em}
.legacy-page table{border-collapse:collapse;display:block;overflow-x:auto;max-width:100%}
.legacy-page th,.legacy-page td{border:1px solid var(--line);padding:.6rem;text-align:left}
@media(max-width:1020px){.nav{gap:.8rem;font-size:.79rem}.brand img{width:160px}.expertise-grid{grid-template-columns:repeat(2,1fr)}.client-list{grid-template-columns:1fr}}
@media(max-width:760px){.wrap{width:min(calc(100% - 2rem),var(--max))}.header-inner{display:block;min-height:0;padding:1rem 0 .7rem}.brand img{width:162px}.nav{overflow-x:auto;gap:1.3rem;padding:.7rem 0 .3rem;margin-right:-1rem;scrollbar-width:thin;font-size:.82rem}.hero-grid,.two-col,.project-heading,.project-group,.contact-grid,.legal-inner{grid-template-columns:1fr;gap:2rem}.hero-grid{padding-block:4.7rem 4rem}.hero-aside{max-width:29rem}.hero-aside p{margin:1.6rem 0 1rem}.section{padding-block:4.5rem}.project-heading{align-items:start}.featured{grid-template-columns:1fr;margin-bottom:3rem}.feature-copy{padding:2.1rem;min-height:360px}.feature-visual{min-height:280px;border-left:0;border-top:1px solid #588055}.feature-glyph{font-size:6rem}.feature-visual:before{width:250px;height:250px}.feature-visual:after{width:190px;height:190px}.project-group{padding-bottom:2.5rem}.group-intro p{max-width:34rem}.partner-note{grid-template-columns:1fr;gap:.6rem}.contact-grid{gap:3rem}.footer-inner{display:block}.footer p+p{margin-top:.7rem}.legal-link{justify-self:start}.legacy-page{padding-block:3rem 4rem}}
@media(max-width:460px){h1{font-size:clamp(2.8rem,12vw,4rem)}.expertise-grid{grid-template-columns:1fr}.expertise-grid article{min-height:0}.expertise-grid span{margin-bottom:1.4rem}.project-list article,.timeline>div,.client-list>div{grid-template-columns:1fr;gap:.35rem}.feature-copy{padding:1.5rem}.feature-visual{padding:1.5rem}.partner-note{padding:1.4rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
