@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

.sc-clean-energy {
  --paper: #f3f6f1; --white: #fff; --ink: #0e2a1f; --muted: #587063; --lime: #c6f24e; --lime-d: #a9d62d; --deep: #0f3526; --line: rgba(14,42,31,.12); --focus: #2c7a4b;
  color: var(--ink); background: var(--paper); font-family: "Inter Tight", system-ui, sans-serif;
}
.sc-clean-energy h1, .sc-clean-energy h2, .sc-clean-energy h3 { letter-spacing: -.035em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.eyebrow span { width: 22px; height: 2px; background: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: 99px; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; background: transparent; transition: background .25s, transform .25s, box-shadow .25s; }
.btn--lime { border-color: var(--lime); background: var(--lime); }
.btn--lime:hover { background: var(--lime-d); border-color: var(--lime-d); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(169,214,45,.35); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 14px max(20px, calc((100vw - 1320px) / 2)); transition: background .35s, box-shadow .35s; }
.nav.is-scrolled { background: rgba(243,246,241,.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.brand svg { width: 34px; height: 34px; }
.brand small { display: block; margin-top: -2px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 15px; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s; }
.menu a:not(.btn):hover { background-size: 100% 1.5px; }
.nav-cta { min-height: 44px; }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; min-height: max(680px, calc(100vh - 34px)); margin-top: -76px; padding: 150px max(20px, calc((100vw - 1320px) / 2)) 90px; overflow: hidden; isolation: isolate; }
.scene { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.scene [data-depth] { will-change: transform; }
.tower { fill: #f5f8f6; } .far .tower, .far .blade, .far .nacelle, .far .hub { fill: #e6efea; }
.nacelle, .hub { fill: #fff; } .blade { fill: #fff; filter: drop-shadow(0 1px 1px rgba(14,42,31,.12)); }
.mid .tower { fill: #f9fbfa; }
.birds path { fill: none; stroke: #43625a; stroke-width: 2; stroke-linecap: round; opacity: .5; }
.hero-copy { position: relative; max-width: 780px; }
.hero h1 { margin: 18px 0 22px; font-size: clamp(48px, 7vw, 112px); line-height: .94; font-weight: 650; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 60ms + 150ms); }
.split.is-in .w > span { transform: none; }
.lead { max-width: 520px; margin: 0 0 30px; color: #2f4a3e; font-size: 19px; line-height: 1.5; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card { position: absolute; right: max(20px, calc((100vw - 1320px) / 2)); bottom: 70px; width: 290px; padding: 20px; border: 1px solid rgba(255,255,255,.7); border-radius: 24px; background: rgba(255,255,255,.55); backdrop-filter: blur(16px); box-shadow: 0 20px 50px rgba(14,42,31,.12); }
.hc-k { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.hc-v { margin: 6px 0 10px; font-size: 15px; } .hc-v b { font-size: 34px; letter-spacing: -.04em; }
.spark { width: 100%; height: 50px; }
.spark path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.hc-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.scroll-cue { position: absolute; left: max(20px, calc((100vw - 1320px) / 2)); bottom: 30px; display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.scroll-cue span { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 99px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(10px); opacity: 0; } }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 60px max(20px, calc((100vw - 1320px) / 2)) 30px; background: var(--deep); color: #fff; }
.numbers div { padding: 10px 24px; border-left: 1px solid rgba(255,255,255,.14); }
.numbers b { display: block; font-size: clamp(34px, 4.4vw, 64px); font-weight: 650; letter-spacing: -.05em; color: var(--lime); font-variant-numeric: tabular-nums; }
.numbers span { color: #b8cfc3; font-size: 14px; }
.numbers p { grid-column: 1 / -1; margin: 30px 0 0; color: #8fb09f; font-size: 12px; }

/* Sezioni comuni */
.solutions, .sim, .projects, .method, .contact, .flows { padding: 120px max(20px, calc((100vw - 1320px) / 2)); }
.sec-head { margin-bottom: 50px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.sec-head h2, .contact h2 { margin: 14px 0 0; font-size: clamp(38px, 5vw, 72px); line-height: .98; font-weight: 650; }
.sec-copy { max-width: 520px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.fine { margin: 18px 0 0; color: var(--muted); font-size: 12px; }

.sol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sol { padding: 30px; border-radius: 28px; background: var(--white); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, background .4s; }
.sol:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(14,42,31,.1); background: var(--lime); }
.sol svg { width: 64px; height: 64px; margin-bottom: 30px; }
.draw path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.8s cubic-bezier(.6,0,.2,1) .2s; }
.sol.is-in .draw path { stroke-dashoffset: 0; }
.sol h3 { margin: 0 0 10px; font-size: 28px; font-weight: 650; }
.sol p { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.sol:hover p { color: var(--ink); }
.sol ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.sol li::before { content: "↗ "; }

/* Flussi */
.flows { background: #0f3526; color: #fff; transition: background 1s; }
.flows[data-mode="nuvoloso"] { background: #2d4a44; }
.flows[data-mode="notte"] { background: #081a14; }
.sec-head.light .eyebrow, .sec-head.light .sec-copy { color: #a9c7b8; }
.mode-switch { display: inline-flex; gap: 6px; padding: 6px; margin-bottom: 30px; border-radius: 99px; background: rgba(255,255,255,.08); }
.mode-switch button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 99px; background: transparent; color: #cfe2d8; font-weight: 700; transition: background .3s, color .3s; }
.mode-switch button[aria-checked="true"] { background: var(--lime); color: var(--ink); }
.flow-wrap { border-radius: 32px; padding: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.flow { width: 100%; height: auto; }
.link { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 3; transition: stroke .5s, opacity .5s; }
.link.on { stroke: var(--lime); stroke-dasharray: 2 14; stroke-linecap: round; stroke-width: 5; animation: flow 1s linear infinite; }
.link.on.rev { animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -16; } }
.node circle { fill: #143f2e; stroke: rgba(255,255,255,.18); stroke-width: 1.5; transition: fill .5s, stroke .5s; }
.node.on circle { fill: #1b5a40; stroke: var(--lime); }
.node .ic { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.node text { fill: #d8e9df; font: 600 15px "Inter Tight"; text-anchor: middle; }
.node .val { fill: var(--lime); font-size: 17px; font-weight: 750; }

/* Simulatore */
.sim-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; }
.sim-form, .sim-out { padding: 30px; border-radius: 28px; background: var(--white); }
.sim-form { display: grid; gap: 24px; align-content: start; }
.seg { display: flex; gap: 8px; margin: 0; padding: 0; border: 0; }
.seg legend { margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.seg label { flex: 1; }
.seg input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: grid; place-items: center; min-height: 48px; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 700; cursor: pointer; transition: .2s; }
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg input:focus-visible + span, .check input:focus-visible + span::before { outline: 3px solid var(--focus); outline-offset: 2px; }
.range span, .field span { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.range output { color: var(--deep); font-variant-numeric: tabular-nums; }
.range input { width: 100%; accent-color: var(--deep); }
.field select { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); }
.check span { display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }
.check span::before { content: ""; width: 24px; height: 24px; border: 1.5px solid var(--ink); border-radius: 7px; transition: .2s; }
.check input:checked + span::before { background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-9' fill='none' stroke='%230e2a1f' stroke-width='3'/%3E%3C/svg%3E") center/18px no-repeat; }
.sim-out { background: var(--deep); color: #fff; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kpis div { padding: 18px; border-radius: 20px; background: rgba(255,255,255,.06); }
.kpis span { color: #a9c7b8; font-size: 13px; font-weight: 600; }
.kpis b { display: block; margin-top: 6px; font-size: clamp(24px, 2.6vw, 36px); font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 6px; height: 160px; margin: 28px 0 8px; }
.months span { position: relative; display: block; height: var(--h, 0%); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--lime), #6fae3a); transition: height .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 35ms); }
.months span::after { content: attr(data-m); position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); color: #a9c7b8; font-size: 11px; font-weight: 600; }
.sim-save { margin: 34px 0 0; font-size: 17px; } .sim-save b { color: var(--lime); font-size: 24px; }
.sim-out .fine { color: #8fb09f; }

/* Progetti */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 99px; background: var(--white); font-weight: 700; transition: .2s; }
.chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.proj { overflow: hidden; border-radius: 28px; background: var(--white); }
.proj figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.proj figure svg { width: 100%; height: 100%; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.proj:hover figure svg { transform: scale(1.06); }
.proj .tag { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.85); font-size: 12px; font-weight: 700; text-transform: capitalize; }
.proj-body { padding: 22px; }
.proj h3 { margin: 0 0 6px; font-size: 22px; font-weight: 650; }
.proj p { margin: 0; color: var(--muted); font-size: 14px; }
.proj dl { display: flex; gap: 24px; margin: 18px 0 0; }
.proj dt { color: var(--muted); font-size: 12px; } .proj dd { margin: 2px 0 0; font-weight: 750; font-size: 18px; }

/* Metodo */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 40px 0 0; list-style: none; }
.tl-line { position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--line); }
.tl-line i { position: absolute; inset: 0; border-radius: inherit; background: var(--deep); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; top: -48px; left: 0; width: 18px; height: 18px; border: 3px solid var(--paper); border-radius: 50%; background: var(--deep); box-shadow: 0 0 0 2px var(--deep); }
.timeline b { color: var(--muted); font-size: 14px; }
.timeline h3 { margin: 8px 0; font-size: 24px; font-weight: 650; }
.timeline p { margin: 0; color: var(--muted); line-height: 1.5; }

/* Contatti */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 0 max(12px, calc((100vw - 1400px) / 2)) 40px; border-radius: 40px; background: var(--lime); }
.contact p { max-width: 440px; font-size: 18px; line-height: 1.5; }
.con-form { display: grid; gap: 14px; align-content: start; }
.con-form label span { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.con-form input { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid rgba(14,42,31,.25); border-radius: 14px; background: rgba(255,255,255,.6); }
.con-form input:focus { outline: 0; border-color: var(--ink); background: #fff; }
.con-form .btn { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.form-msg { min-height: 1.4em; margin: 0; font-weight: 600; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 0 max(20px, calc((100vw - 1320px) / 2)) 40px; color: var(--muted); font-size: 13px; }
.foot a { color: var(--ink); font-weight: 700; }

@media (max-width: 980px) {
  .sol-grid, .proj-grid { grid-template-columns: 1fr 1fr; }
  .sim-grid, .contact { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 60px; }
  .timeline .tl-line { display: none; }
}
@media (max-width: 899px) {
  .nav-toggle { display: inline-grid; place-content: center; gap: 6px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); }
  .nav-toggle i { display: block; width: 18px; height: 2px; background: #fff; transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .menu { position: fixed; inset: 0 0 auto; top: 0; z-index: -1; flex-direction: column; align-items: stretch; gap: 0; padding: 100px 24px 30px; background: var(--paper); box-shadow: 0 30px 60px rgba(14,42,31,.15); clip-path: inset(0 0 100% 0); transition: clip-path .5s cubic-bezier(.7,0,.2,1); }
  .menu.is-open { clip-path: inset(0 0 0 0); }
  .menu a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 22px; }
  .nav-cta { margin-top: 20px; }
  .hero { padding-top: 130px; padding-bottom: 240px; }
  .hero-card { left: 20px; right: 20px; bottom: 40px; width: auto; }
  .scroll-cue { display: none; }
  .numbers { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .solutions, .sim, .projects, .method, .contact, .flows { padding-top: 80px; padding-bottom: 80px; }
}
@media (max-width: 600px) {
  .sol-grid, .proj-grid, .timeline, .kpis { grid-template-columns: 1fr; }
  .contact { border-radius: 28px; padding-left: 22px; padding-right: 22px; }
  .node text { font-size: 20px; } .node .val { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .split .w > span { transform: none; } .link.on { animation: none; stroke-dasharray: none; } }

/* fx · ondata 5-6 */

.w6-zoom { --fx-zi: 22%; --fx-zx: 30%; }
.w6-zoom-t { position: absolute; inset: auto var(--k-pad, 24px) 9vh; display: grid; gap: 4px; margin: 0; color: #fff; font-size: clamp(46px, 7vw, 124px); line-height: .92; text-shadow: 0 10px 40px rgba(0,0,0,.45); opacity: clamp(0, calc((var(--p, 0) - .5) * 3), 1); }
.w6-zoom-t em, .w6-zoom-t b { font-style: normal; }
.w6-h { --fx-h-gap: 20px; }
.w6-h-head { flex: none; width: min(420px, 74vw); align-self: center; }
.w6-h-head h2 { margin: 0 0 12px; font-size: clamp(48px, 6vw, 100px); line-height: .92; }
.w6-hc { flex: none; width: clamp(280px, 27vw, 420px); overflow: hidden; border-radius: 22px; background: rgba(255,255,255,.06); }
.w6-hc .fx-ph { aspect-ratio: 4 / 4.4; } .w6-hc .fx-ph img { transition: transform 1.1s cubic-bezier(.16,1,.3,1); } .w6-hc:hover .fx-ph img { transform: scale(1.06); }
.w6-hc > div { display: grid; gap: 2px; padding: 16px 20px 20px; } .w6-hc span { font-size: 12px; font-weight: 700; letter-spacing: .16em; opacity: .6; } .w6-hc b { font-size: 26px; line-height: 1.05; } .w6-hc p { margin: 0; opacity: .7; font-size: 15px; }
@media (max-width: 760px) { .w6-hc { width: 76vw; } }
@media (prefers-reduced-motion: reduce) { .w6-zoom-t { opacity: 1; } }

.ce-zoom .fx-z-media { clip-path: inset(calc((1 - var(--p, 0)) * 22%) calc((1 - var(--p, 0)) * 30%) round calc((1 - var(--p, 0)) * 30px)); }
.ce-t { font-family: inherit; } .ce-t span { font-size: 16px; letter-spacing: .2em; text-transform: uppercase; } .ce-t b { color: #c9ff56; } .ce-t small { font-size: 13px; opacity: .7; }
.ce-gal { padding: 60px max(24px, calc((100vw - 1240px) / 2)) 100px; }
.ce-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ce-g figure { position: relative; aspect-ratio: 3 / 4; border-radius: 24px; }
.ce-g figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: 99px; background: rgba(255,255,255,.88); font-weight: 700; font-size: 14px; }
@media (max-width: 760px) { .ce-g { grid-template-columns: 1fr 1fr; } }
