/* =========================================================
   ASSIWE — foglio di stile
   ========================================================= */
:root {
  --green-900: #12301c;
  --green-800: #1d4a2a;   /* verde scuro del logo */
  --green-700: #26603a;
  --green-500: #6aa336;   /* verde "WE" */
  --green-300: #a6d26b;
  --green-100: #e8f2dc;
  --orange: #c96a24;       /* arancione di contrasto (tono bruciato) */
  --orange-ink: #a9530f;   /* arancione per testi su chiaro */
  --orange-soft: #e0a066;  /* arancione su scuro */
  --bg: #f6f8f3;
  --surface: #ffffff;
  --ink: #142519;
  --muted: #4d5f52;
  --line: #dde5d8;
  --radius: 18px;
  --shadow: 0 18px 50px -24px rgba(18, 48, 28, .28);
  --shadow-sm: 0 6px 20px -12px rgba(18, 48, 28, .25);
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--green-800); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green-800); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--orange-ink);
  margin-bottom: 14px;
}
.eyebrow.center { display: flex; justify-content: center; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(201,106,36,.2); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(201,106,36,0); } }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-weight: 600; font-size: .95rem;
  padding: 15px 26px; border-radius: 12px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s, background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover .ic { transform: translateX(4px); }
.btn-primary { background: var(--green-800); color: #fff; box-shadow: 0 10px 24px -12px rgba(29,74,42,.7); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--green-800); border-color: #c5d3bf; }
.btn-ghost:hover { border-color: var(--green-800); background: #fff; }
.btn-light { background: #fff; color: var(--green-800); }
.btn-light:hover { background: var(--green-100); transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; font-size: .88rem; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -22px rgba(0,0,0,.3); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-800); }
.brand-mark { width: 50px; height: 41px; color: var(--green-800); }
.brand-word { font-family: var(--head); font-weight: 600; font-size: 1.45rem; letter-spacing: .12em; }
.brand-word b { color: var(--green-500); font-weight: 600; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
.main-nav a { position: relative; text-decoration: none; font-weight: 500; color: var(--ink); font-size: .96rem; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--orange); border-radius: 2px; transform: scaleX(0); transition: transform .3s; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; }
.lang-switch { display: flex; align-items: center; gap: 6px; font: 600 .82rem var(--head); letter-spacing: .08em; color: #b7c3b2; }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 6px 2px; transition: color .2s; }
.lang-switch a:hover { color: var(--orange); }
.lang-switch a.is-current { color: var(--green-800); }

/* Hero con fili ad arco */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 40px); overflow: hidden;
  background: radial-gradient(120% 90% at 85% 0%, #ffffff 0%, var(--bg) 62%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(62% 58% at 12% 88%, rgba(246,248,243,.94) 0%, rgba(246,248,243,.6) 45%, transparent 75%);
}
.threads { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner, .hero-foot { position: relative; z-index: 1; }
.hero-inner { padding-bottom: 3vh; }
.display { font-size: clamp(2.9rem, 7.2vw, 6.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; margin-bottom: .35em; }
.green { color: var(--green-500); }
.accent { position: relative; color: var(--green-500); white-space: nowrap; }
.accent::after {
  content: ""; position: absolute; left: -.04em; right: .15em; bottom: -.12em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 15 C80 2 200 -1 297 11' fill='none' stroke='%23c96a24' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform-origin: left; transform: scaleX(0); animation: grow 1s cubic-bezier(.3,.8,.2,1) .7s forwards;
}
@keyframes grow { to { transform: scaleX(1); } }
.hero .lead { max-width: 52ch; }
.hero-in { opacity: 0; transform: translateY(18px); animation: fadeUp 1s cubic-bezier(.2,.8,.2,1) .15s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.hero-foot { display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding-bottom: 18px; }
.scroll-hint {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--head); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.scroll-hint svg { width: 18px; height: 18px; fill: none; stroke: var(--orange); stroke-width: 2; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* Un unico riferimento: cerchio con le orbite */
.squad { padding: 64px 0 100px; background: linear-gradient(180deg, var(--bg), #fff); overflow: hidden; }
.squad-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.squad-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; }
.note { font-size: .88rem; color: var(--muted); }
.squad-visual { display: grid; place-items: center; }
.orb { position: relative; width: min(440px, 86vw); aspect-ratio: 1; }
.orb-arcs { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite; }
.orb-arcs circle { fill: none; stroke: #c9d8c0; stroke-width: 1.2; stroke-dasharray: 3 9; }
.orb-arcs circle:nth-child(2) { stroke: #b2cb9f; stroke-dasharray: 60 14; }
.orb-arcs circle:nth-child(3) { stroke: var(--green-300); stroke-dasharray: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb-core { position: absolute; inset: 31%; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow), 0 0 0 14px rgba(166,210,107,.14); }
.orb-core svg { width: 62%; height: 62%; color: var(--green-800); }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px 9px 12px;
  font-family: var(--head); font-weight: 600; font-size: .85rem; color: var(--green-800);
  box-shadow: var(--shadow-sm); animation: float 6s ease-in-out infinite;
}
.chip .ic { width: 18px; height: 18px; color: var(--green-500); }
.c1 { top: 6%; left: 8%; }
.c2 { top: 22%; right: -4%; animation-delay: -1.5s; }
.c3 { bottom: 14%; left: -6%; animation-delay: -3s; }
.c4 { bottom: 4%; right: 10%; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Pilastri */
.pillars { background: #fff; padding: 0 0 90px; }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 34px 26px 0; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; }
.pnum { display: block; font-family: var(--head); font-weight: 700; font-size: 2.2rem; color: var(--green-800); }
.plabel { color: var(--muted); font-size: .95rem; }

/* Chi siamo */
.about { padding: 110px 0; position: relative; }
.we-statement { text-align: center; margin-bottom: 60px; }
.we-big { font-size: clamp(4rem, 13vw, 10rem); font-weight: 500; letter-spacing: .1em; line-height: 1; margin: 0; padding-left: .1em; color: var(--green-800); }
.we-big span { color: var(--green-500); position: relative; }

.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-bottom: 72px; }
.about-title { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 700; letter-spacing: -.02em; margin: 0; max-width: 16ch; }
.about-copy { padding-top: 34px; }
.about-copy p { color: var(--muted); font-size: 1.08rem; }
.about-copy p:last-child { margin-bottom: 0; }
.values { list-style: none; padding: 0; margin: 0 0 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.values li { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.values li::before { content: ""; position: absolute; left: 0; top: -1px; width: 44px; height: 2px; background: var(--orange); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.values li:hover::before { width: 100%; }
.vnum { display: block; font: 700 2.6rem/1 var(--head); color: var(--green-300); letter-spacing: -.02em; margin-bottom: 16px; }
.values h3 { font-size: 1.3rem; }
.values p { color: var(--muted); margin: 0; }
.about-quote { position: relative; max-width: 820px; margin: 0 auto; padding: 0 20px; text-align: center; }
.about-quote::before { content: "\201C"; display: block; font: 5.5rem/.7 Georgia, serif; color: var(--orange); margin-bottom: 14px; }
.about-quote p { margin: 0; font: 500 clamp(1.15rem, 1.9vw, 1.5rem)/1.55 var(--head); color: var(--green-800); }
.about-quote strong { color: var(--green-500); font-weight: 600; }

.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 80px; }
.aud-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 42px; overflow: hidden; transition: transform .35s, box-shadow .35s; }
.aud-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.aud-card::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid var(--green-100); }
.aud-card > * { position: relative; z-index: 1; }
.aud-card h3 { font-size: 1.7rem; }
.aud-card p { color: var(--muted); max-width: 40ch; }
.aud-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); margin-bottom: 22px; }
.aud-icon .ic { width: 26px; height: 26px; }
.aud-card.dark { background: var(--green-800); border-color: var(--green-800); }
.aud-card.dark::after { border-color: rgba(255,255,255,.06); }
.aud-card.dark h3 { color: #fff; }
.aud-card.dark p { color: #cfdcc8; }
.aud-card.dark .aud-icon { background: rgba(255,255,255,.1); color: var(--green-300); }
.aud-card .eyebrow { color: var(--orange-ink); margin-bottom: 14px; }
.aud-card.dark .eyebrow { color: var(--orange-soft); }
.aud-card.dark .link { color: #fff; }
.link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; color: var(--green-800); text-decoration: none; margin-top: 8px; }
.link .ic { width: 18px; height: 18px; color: var(--orange); transition: transform .25s; }
.link:hover .ic { transform: translateX(5px); }

/* Soluzioni */
.section-head { max-width: 760px; margin-bottom: 40px; }
.solutions { padding: 110px 0; background: #fff; }
.sol-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px 40px; margin-bottom: 44px; }
.sol-head h2 { max-width: 17ch; margin: 0; }
.filters { display: inline-flex; gap: 6px; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.filter { font: 600 .92rem var(--head); border: 0; background: transparent; color: var(--muted); padding: 10px 22px; border-radius: 10px; cursor: pointer; transition: background .25s, color .25s; }
.filter:hover { color: var(--green-800); }
.filter.is-active { background: var(--green-800); color: #fff; }

.sol-explorer { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.sol-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sol-row { border-bottom: 1px solid var(--line); }
.sol-row.is-hidden { display: none; }
.sol-item {
  position: relative; width: 100%; display: flex; align-items: center; gap: 20px; padding: 16px 6px;
  background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: var(--ink);
}
.sol-item::before { content: ""; position: absolute; left: -14px; top: 50%; width: 3px; height: 0; border-radius: 2px; background: var(--orange); transform: translateY(-50%); transition: height .3s; }
.sol-num { width: 26px; flex: none; font: 600 .78rem var(--head); letter-spacing: .05em; color: #9aa59c; transition: color .3s; }
.sol-name { flex: 1; font: 600 clamp(1.02rem, 1.45vw, 1.2rem)/1.3 var(--head); color: var(--green-800); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.sol-arrow { width: 20px; height: 20px; color: #b7c3b2; transition: transform .3s, color .3s; }
.sol-item:hover .sol-name, .sol-row.is-active .sol-name { transform: translateX(8px); }
.sol-item:hover .sol-arrow, .sol-row.is-active .sol-arrow { color: var(--orange); transform: translateX(4px); }
.sol-row.is-active .sol-item::before { height: 56%; }
.sol-row.is-active .sol-num { color: var(--green-500); }
.sol-desc { display: none; }

.sol-panel {
  position: sticky; top: calc(var(--header-h) + 24px); overflow: hidden; min-height: 460px;
  display: flex; flex-direction: column; padding: 44px 40px; border-radius: 26px; color: #fff;
  background: linear-gradient(150deg, var(--green-800), var(--green-700)); box-shadow: var(--shadow);
}
.sol-panel > * { position: relative; z-index: 1; }
.sol-panel-tag { position: absolute !important; top: 30px; right: 30px; font: 700 .66rem var(--head); letter-spacing: .16em; text-transform: uppercase; background: var(--orange); color: #fff; padding: 6px 10px; border-radius: 999px; }
.sol-panel-tag[hidden] { display: none; }
.sol-panel-icon { width: 64px; height: 64px; padding: 15px; border-radius: 18px; background: rgba(255,255,255,.1); color: var(--green-300); margin-bottom: 28px; }
.sol-panel-num { font: 600 .76rem var(--head); letter-spacing: .2em; color: rgba(255,255,255,.55); margin-bottom: 10px; }
.sol-panel-title { color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.sol-panel-desc { color: #d6e3cf; font-size: 1.05rem; max-width: 40ch; }
.sol-panel-for { margin-top: auto; font-size: .82rem; letter-spacing: .04em; color: rgba(255,255,255,.6); }
.sol-panel-cta { align-self: flex-start; margin-top: 6px; }
.sol-panel-arcs { position: absolute !important; right: 0; bottom: 0; width: 300px; height: 300px; z-index: 0 !important; pointer-events: none; }
.sol-panel-arcs circle { fill: none; stroke: rgba(166,210,107,.16); stroke-width: 1.5; }
.sol-panel-arcs circle:nth-child(2) { stroke-dasharray: 4 10; }
.sol-panel.swap .sol-panel-icon, .sol-panel.swap .sol-panel-title, .sol-panel.swap .sol-panel-desc { animation: pop .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* Metodo */
.method { padding: 110px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--green-300) 0 8px, transparent 8px 16px); }
.step { position: relative; }
.snum { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--green-500); font: 700 1rem var(--head); color: var(--green-800); margin-bottom: 22px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .97rem; }

/* CTA */
.cta { position: relative; background: var(--green-800); color: #fff; padding: 120px 0; overflow: hidden; text-align: center; }
.cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at 50% 38%, var(--green-800) 35%, rgba(29,74,42,0) 100%); }
.cta .threads { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-inner { position: relative; z-index: 2; max-width: 820px; }
.cta-mark { width: 86px; height: 70px; margin: 0 auto 28px; color: #fff; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); }
.cta h2 span { color: var(--orange-soft); }
.cta p { color: #cfdcc8; font-size: 1.15rem; margin-bottom: 34px; }

/* Contatti */
.contact { padding: 110px 0; background: #fff; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.contact-list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list .ic { width: 46px; height: 46px; padding: 12px; border-radius: 12px; background: var(--green-100); color: var(--green-800); }
.contact-list strong { display: block; font-family: var(--head); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--green-500); }
.contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 38px; display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field span { font-size: .85rem; font-weight: 600; color: var(--green-800); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(106,163,54,.15); }
.field .invalid, .field input.invalid, .field textarea.invalid { border-color: #c0392b; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green-800); flex: none; }
.check.invalid span { color: #c0392b; }
.hp { position: absolute; left: -9999px; }
.contact-form .btn { justify-self: start; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-msg.ok { color: var(--green-700); }
.form-msg.err { color: #c0392b; }

/* Footer */
.site-footer { background: var(--green-900); color: #b9c8b2; padding: 80px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .9fr 1.1fr 1.25fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.f-brand img { width: 240px; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--green-300); }
.footer-legal { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 28px; font-size: .82rem; color: #8ea087; text-align: center; }
.f-bottom { margin-top: 10px !important; }
.credit { display: inline-block; margin-left: 18px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.15); }
.credit a { color: #b9c8b2; }
@media (max-width: 720px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 90px); }
  .hero-inner { padding-bottom: 40px; }
  .hero-foot { display: none; }
  .squad { padding-top: 32px; }
  .values { grid-template-columns: 1fr; gap: 32px; margin-bottom: 60px; }
  .hero::after { background: linear-gradient(to top, rgba(246,248,243,.96) 0%, rgba(246,248,243,.7) 55%, transparent 85%); } .credit { display: block; margin: 8px 0 0; padding: 0; border: 0; } }
.footer-legal p { margin: 0; }
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }
.rui-link { color: var(--orange-soft); font-weight: 600; }

/* Torna su */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-800); color: #fff; box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s, background .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body.cookie-open .to-top { bottom: 96px; }

/* Banner cookie */
.cookie-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; width: min(760px, calc(100% - 32px));
  display: flex; align-items: center; gap: 20px; padding: 16px 20px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .9rem; color: var(--muted);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; }
.cookie-bar a { color: var(--green-800); font-weight: 600; }
.cookie-bar .btn { flex: none; }
@media (max-width: 560px) { .cookie-bar { flex-direction: column; align-items: stretch; text-align: left; } body.cookie-open .to-top { bottom: 150px; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .lang-switch { margin-left: auto; }
  .site-header .nav-toggle { margin-left: 8px; }
  .about-intro { grid-template-columns: 1fr; gap: 16px; margin-bottom: 56px; }
  .about-copy { padding-top: 0; }
  .squad-grid { grid-template-columns: 1fr; gap: 50px; }
  .sol-explorer { grid-template-columns: 1fr; }
  .sol-panel { display: none; }
  .sol-row.is-active .sol-desc { display: block; padding: 0 6px 20px 52px; animation: pop .35s ease both; }
  .sol-desc p { color: var(--muted); margin-bottom: 8px; }
  .sol-row.is-active .sol-arrow { transform: rotate(90deg); }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: grid; gap: 6px; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
  .nav-toggle span { width: 26px; height: 2px; background: var(--green-800); border-radius: 2px; transition: transform .3s; }
  .nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-open .main-nav { display: block; position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); padding: 20px; box-shadow: var(--shadow); }
  .nav-open .main-nav ul { flex-direction: column; gap: 4px; }
  .nav-open .main-nav a { display: block; padding: 12px 4px; font-size: 1.1rem; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar { padding-bottom: 26px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 90px); }
  .hero-inner { padding-bottom: 40px; }
  .hero-foot { display: none; }
  .squad { padding-top: 32px; }
  .hero::after { background: linear-gradient(to top, rgba(246,248,243,.96) 0%, rgba(246,248,243,.7) 55%, transparent 85%); }
  body { font-size: 16px; }
  .audience { grid-template-columns: 1fr; }
  .aud-card { padding: 32px 26px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 20px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .filters { display: flex; width: 100%; }
  .filter { flex: 1; padding: 10px 8px; }
  .chip { font-size: .78rem; padding: 7px 12px 7px 10px; }
  .c2 { right: 0; } .c3 { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
