﻿:root {
    --forest: #12291b;
    --forest-2: #1f4a2c;
    --forest-line: #2f4f3a;
    --forest-soft: #b7cbb5;
    --cream: #f3f6ea;
    --mist: #f5f3ea;
    --sage: #eae8db;
    --fern: #e3e9d6;
    --lime: #7cb741;
    --lime-hover: #8ec653;
    --ink: #12291b;
    --ink-soft: #38453d;
    --link: #34601a;
    --line: rgba(18, 41, 27, .16);
    --line-strong: rgba(18, 41, 27, .32);
    --header-height: 84px;
    --radius: clamp(24px, 4vw, 48px);
    --ease-out: cubic-bezier(.2, .7, .2, 1);
    --ease-back: cubic-bezier(.3, 1.5, .5, 1);
    interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 8px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--forest);
    color: var(--ink);
    font-family: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img { display: block; max-width: 100%; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }

h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.75rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.1; letter-spacing: -0.03em; }
h2 em { font-style: normal; color: var(--link); }

h3 { font-size: 1.375rem; line-height: 1.25; font-weight: 500; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

sub { font-size: 0.65em; line-height: 0; }

.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--ink-soft); max-width: 36em; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }

/* Sezioni: blocchi colorati con angoli arrotondati che si sovrappongono al precedente */
.section {
    position: relative;
    margin-top: calc(var(--radius) * -1);
    padding-block: clamp(72px, 9vw, 120px) calc(clamp(72px, 9vw, 120px) + var(--radius));
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: clip;
}
.tone-mist { background: var(--mist); }
.tone-sage { background: var(--sage); }
.tone-fern { background: var(--fern); }
.tone-leaf { background: var(--fern); }
.tone-forest { background: var(--forest); color: var(--cream); }
.tone-moss {
    background: var(--forest-2);
    color: var(--cream);
    --ink-soft: var(--forest-soft);
    --link: #b8dc8a;
    --line-strong: rgba(243, 246, 234, .3);
}
.tone-moss a:hover { color: #fff; }

.heading-wide { max-width: 18em; }

/* Bottoni */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .25s var(--ease-out), box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-small { padding: 10px 20px; font-size: 0.9375rem; }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: var(--lime-hover); color: var(--ink); box-shadow: 0 10px 28px rgba(124, 183, 65, .4); }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.btn-arrow { display: inline-block; margin-left: 6px; transition: transform .25s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.link-arrow {
    padding: 0 0 4px;
    border: 0;
    background: linear-gradient(var(--lime), var(--lime)) left bottom / 100% 2px no-repeat;
    color: var(--cream);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-size .3s var(--ease-out), color .2s ease;
}
.link-arrow:hover { background-size: 40% 2px; color: #d8ecae; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--forest);
    color: var(--cream);
    transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .28); }
.scroll-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 24px;
    transition: min-height .25s var(--ease-out);
}
.is-scrolled .site-header-inner { min-height: 66px; }

.logo { display: block; flex: none; }
.logo img { width: auto; height: 60px; transition: height .25s var(--ease-out); }
.is-scrolled .logo img { height: 46px; }

.site-nav { display: flex; align-items: center; gap: 26px; font-size: 0.9375rem; }
.site-nav a:not(.btn) {
    position: relative;
    padding-block: 4px;
    color: var(--cream);
    text-decoration: none;
}
.site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s var(--ease-out);
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
    display: none;
    padding: 8px 18px;
    border: 1px solid rgba(243, 246, 234, .4);
    border-radius: 999px;
    background: none;
    color: var(--cream);
    font: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    overflow: clip;
    background: var(--forest);
    color: var(--cream);
    padding-block: clamp(32px, 5vw, 64px) calc(clamp(56px, 6vw, 88px) + var(--radius));
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: blob-drift 16s ease-in-out infinite alternate;
}
.hero::before {
    top: -25%;
    right: -12%;
    width: 62vw;
    height: 62vw;
    background: radial-gradient(closest-side, rgba(124, 183, 65, .3), transparent);
}
.hero::after {
    bottom: -45%;
    left: -15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(closest-side, rgba(60, 130, 80, .35), transparent);
    animation-duration: 21s;
    animation-direction: alternate-reverse;
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    min-height: min(calc(100vh - var(--header-height) - 180px), 640px);
}
.hero .lead { margin-top: 28px; color: var(--forest-soft); }
.hero h1 strong {
    display: inline-block;
    padding: 0 .16em;
    border-radius: .12em;
    color: var(--ink);
    font-weight: 600;
    background: linear-gradient(var(--lime), var(--lime)) left / 100% 100% no-repeat;
}
.js .hero h1 strong { animation: highlight-sweep .7s var(--ease-out) .55s both; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 36px; }
.hero-news { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--cream); text-decoration: none; }
.hero-news svg { color: var(--lime); }
.hero-news b { color: var(--lime); font-weight: 600; }
.hero-news:hover { color: #fff; text-decoration: underline; }

/* Illustrazione della casa */
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.layer { transition: transform .5s var(--ease-out); }
.layer-far { transform: translate(calc(var(--mx, 0) * -16px), calc(var(--my, 0) * -12px)); }
.layer-mid { transform: translate(calc(var(--mx, 0) * 5px), calc(var(--my, 0) * 3px)); }
.layer-near { transform: translate(calc(var(--mx, 0) * 12px), calc(var(--my, 0) * 8px)); }

.art-float { animation: art-float 7s ease-in-out infinite alternate; }
.art-ground { animation: art-fade .8s ease both .1s; }

.art-sun { animation: art-sun-rise 1.6s var(--ease-out) both .9s; }
.art-sun-rays {
    fill: none;
    stroke: #dcec85;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 1 28.2;
    transform-box: fill-box;
    transform-origin: center;
    animation: art-spin 24s linear infinite;
}

.art-tree { transform-box: fill-box; transform-origin: 50% 100%; animation: art-pop .8s var(--ease-back) both .7s; }
.art-tree-crown { transform-box: fill-box; transform-origin: 50% 100%; animation: art-sway 5s ease-in-out infinite alternate; }

.art-outline {
    fill: none;
    stroke: var(--cream);
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    animation: art-draw 1.2s ease-in-out both .25s;
}
.art-fill { animation: art-fade .6s ease both 1.2s; }
.art-coat { transform-box: fill-box; transform-origin: center; animation: art-coat .7s var(--ease-back) both 1.5s; }

.art-panels rect { fill: #0f2417; stroke: #a9d06a; stroke-width: 1.5; }
.art-panels path { fill: none; stroke: #4f7a3d; stroke-width: 1; }
.art-panels g { animation: art-panel .55s var(--ease-back) both; }
.art-panels g:nth-child(1) { animation-delay: 2.5s; }
.art-panels g:nth-child(2) { animation-delay: 2.65s; }
.art-panels g:nth-child(3) { animation-delay: 2.8s; }

.art-windows rect { fill: #e8f19a; animation: art-window .5s steps(3) both, art-glow 4s ease-in-out infinite alternate; }
.art-windows rect:nth-child(1) { animation-delay: 1.9s, 3s; }
.art-windows rect:nth-child(2) { animation-delay: 2.05s, 3.8s; }
.art-windows rect:nth-child(3) { animation-delay: 2.2s, 3.4s; }
.art-windows rect:nth-child(4) { animation-delay: 2.1s, 4.3s; }
.art-windows rect:nth-child(5) { animation-delay: 2.3s, 3.1s; }
.art-frames { fill: none; stroke: #7cb741; stroke-width: 2; animation: art-fade .4s ease both 1.8s; }

.art-sprout { transform-box: fill-box; transform-origin: 40% 100%; animation: art-grow 1s var(--ease-back) both 3.1s; }
.art-sprout-sway { transform-box: fill-box; transform-origin: 40% 100%; animation: art-sway 3.6s ease-in-out infinite alternate; }

.art-drift { transform-box: fill-box; transform-origin: center; animation: art-drift 9s ease-in-out infinite alternate; }
.art-drift-2 { animation-duration: 12s; animation-delay: -3s; }
.art-drift-3 { animation-duration: 10s; animation-delay: -6s; }

@keyframes art-float { from { transform: translateY(-6px); } to { transform: translateY(8px); } }
@keyframes art-fade { from { opacity: 0; } }
@keyframes art-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes art-spin { to { transform: rotate(360deg); } }
@keyframes art-sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes art-pop { from { opacity: 0; transform: scale(0); } }
@keyframes art-grow { from { transform: scale(0); } }
@keyframes art-coat { from { opacity: 0; transform: scale(.9); } }
@keyframes art-panel { from { opacity: 0; transform: translateY(-46px); } }
@keyframes art-window { from { fill: #33523d; } }
@keyframes art-glow { from { opacity: 1; } to { opacity: .78; } }
@keyframes art-sun-rise { from { opacity: 0; transform: translateY(120px); } }
@keyframes art-drift { from { transform: translate(-10px, -14px) rotate(-14deg); } to { transform: translate(14px, 16px) rotate(18deg); } }
@keyframes blob-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6%, 8%) scale(1.15); } }
@keyframes highlight-sweep { from { background-size: 0 100%; color: var(--cream); } }

/* Comparsa allo scorrimento: attiva solo quando il JS aggiunge la classe js su html */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease-out) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-split]:not(.is-split) { opacity: 0; }
.word { display: inline-block; overflow: clip; overflow-clip-margin: .02em; padding-bottom: .14em; margin-bottom: -.14em; vertical-align: top; }
.word-in { display: inline-block; }
.js [data-split] .word-in {
    transform: translateY(115%);
    transition: transform .85s var(--ease-out) calc(var(--i) * 55ms);
}
.js [data-split].is-in .word-in { transform: none; }
.hero h1 .word { overflow: visible; }
.hero h1 strong .word { overflow: clip; }

/* Come funziona */
.steps {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(32px, 6vw, 88px);
    margin-top: clamp(40px, 5vw, 64px);
}
.steps-list { position: relative; display: flex; flex-direction: column; gap: 6px; align-self: start; }
.steps-indicator {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 14px;
    background: var(--forest);
    transition: transform .45s var(--ease-out), width .45s var(--ease-out), height .45s var(--ease-out);
}
.steps-list button {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border: 0;
    border-radius: 14px;
    background: none;
    color: var(--ink-soft);
    font: inherit;
    font-size: 1.125rem;
    text-align: left;
    cursor: pointer;
    transition: color .25s ease, background-color .2s ease;
}
.steps-list button span { color: var(--link); font-variant-numeric: tabular-nums; transition: color .25s ease; }
.steps-list button:hover { background: rgba(18, 41, 27, .06); color: var(--ink); }
.steps-list button[aria-selected="true"] { color: var(--cream); font-weight: 500; background: none; }
.steps-list button[aria-selected="true"] span { color: var(--lime); }
.steps-panels { max-width: 44em; min-height: 280px; }
.steps-panels [role="tabpanel"] { animation: panel-in .55s var(--ease-out) both; }
.steps-panels h3 { margin-bottom: 20px; font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-weight: 400; letter-spacing: -0.02em; }
.steps-panels p { color: var(--ink-soft); }
.steps-panels [role="tabpanel"]:focus-visible { outline-offset: 12px; }
@keyframes panel-in { from { opacity: 0; transform: translateX(22px); } }

/* Cosa analizza */
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 88px); align-items: end; }
.columns-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.column {
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .6);
    transition: opacity .8s var(--ease-out) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s), background-color .25s ease;
}
.js .column.is-in:hover, .column:hover { background: rgba(255, 255, 255, .9); transform: translateY(-6px); transition-delay: 0s; transition-duration: .3s; }
.column p { margin-top: 10px; color: var(--ink-soft); }
.column-icon { display: block; width: 48px; height: 48px; margin-bottom: 18px; }
.draw {
    fill: none;
    stroke: var(--link);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.5s ease-in-out calc(var(--d, 0s) + .2s);
}
.js .column:not(.is-in) .draw { stroke-dashoffset: 1; }

/* Per le aziende */
.sectors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: clamp(40px, 5vw, 64px) 0 0;
    padding: 0;
    list-style: none;
}
.sectors li {
    padding-block: 18px;
    border-top: 2px solid var(--ink);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.business-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(28px, 4vw, 44px); }
.business-card { background: var(--mist); }
.js .column.business-card.is-in:hover, .column.business-card:hover { background: #fff; }
.business-card-dark { background: var(--forest); color: var(--cream); --link: var(--lime); }
.js .column.business-card-dark.is-in:hover, .column.business-card-dark:hover { background: var(--forest-2); }
.business-list { display: grid; gap: 16px; margin: 22px 0 0; padding: 0; list-style: none; }
.business-list li { display: flex; align-items: center; gap: 14px; line-height: 1.35; }
.business-icon { flex: none; width: 34px; height: 34px; }
.business-cta { margin-top: clamp(28px, 4vw, 44px); }

/* Righe espandibili: vantaggi e domande */
.rows { border-top: 1px solid var(--line); }
#vantaggi .rows { margin-top: clamp(40px, 5vw, 64px); }
.row { border-bottom: 1px solid var(--line); }
.row::details-content {
    block-size: 0;
    opacity: 0;
    overflow: clip;
    transition: block-size .4s var(--ease-out), opacity .4s ease, content-visibility .4s allow-discrete;
}
.row[open]::details-content { block-size: auto; opacity: 1; }
.row summary {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 6px clamp(32px, 6vw, 88px);
    padding: 24px 44px 24px 0;
    list-style: none;
    cursor: pointer;
    transition: padding-left .3s var(--ease-out);
}
.row summary:hover { padding-left: 12px; }
.row summary::-webkit-details-marker { display: none; }
.row summary::after {
    content: "";
    position: absolute;
    top: 30px;
    right: 4px;
    width: 15px;
    height: 15px;
    background:
        linear-gradient(var(--link), var(--link)) center / 100% 2px no-repeat,
        linear-gradient(var(--link), var(--link)) center / 2px 100% no-repeat;
    transition: transform .35s var(--ease-back);
}
.row[open] summary::after { transform: rotate(135deg); }
.row-title { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.row-short { color: var(--ink-soft); }
.row p {
    --row-gap: clamp(32px, 6vw, 88px);
    margin: -4px 0 0;
    padding: 0 44px 28px calc((100% - 44px - var(--row-gap)) / 3 + var(--row-gap));
    color: var(--ink-soft);
}
.row-simple summary { display: block; }
.row-simple p { padding-left: 0; }

/* Prezzi */
.pricing { width: 100%; margin-top: clamp(40px, 5vw, 64px); border-collapse: separate; border-spacing: 0; }
.pricing th, .pricing td { padding: 15px 12px; border-bottom: 1px solid var(--line); text-align: center; transition: background-color .2s ease; }
.pricing tbody th { padding-left: 0; font-weight: 400; line-height: 1.35; text-align: left; }
.pricing thead th { width: 15%; padding-block: 18px 20px; font-size: 1.0625rem; font-weight: 500; vertical-align: bottom; }
.pricing tfoot td { padding-block: 20px; border-bottom: 0; }
.pricing tbody tr:hover th, .pricing tbody tr:hover td:not(.is-pro) { background: rgba(18, 41, 27, .05); }
.pricing .is-pro { background: var(--forest); color: var(--cream); border-bottom-color: var(--forest-line); }
.pricing thead .is-pro { border-radius: 18px 18px 0 0; }
.pricing tfoot .is-pro { border-radius: 0 0 18px 18px; }
.pricing .price {
    display: block;
    margin-top: 2px;
    font-size: clamp(1.25rem, 3vw, 2.25rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.pricing-highlight th { font-weight: 600 !important; }
.pricing .yes span, .pricing .no span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.pricing .yes::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 7px;
    border-bottom: 2px solid var(--link);
    border-left: 2px solid var(--link);
    transform: translateY(-3px) rotate(-45deg);
    transition: transform .45s var(--ease-back) calc(var(--r, 0) * 70ms + .25s);
}
.pricing .yes.is-pro::before { border-color: var(--lime); }
.js .pricing:not(.is-in) .yes::before { transform: translateY(-3px) rotate(-45deg) scale(0); }
.pricing .no::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 2px;
    vertical-align: middle;
    background: var(--line-strong);
}

/* Numeri */
.tone-forest::before {
    content: "";
    position: absolute;
    top: -20%;
    left: 35%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(124, 183, 65, .18), transparent);
    pointer-events: none;
    animation: blob-drift 18s ease-in-out infinite alternate;
}
.tone-forest .container { position: relative; }
.counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 6vw, 88px); }
.counter h2 { font-size: 1.0625rem; font-weight: 400; letter-spacing: 0; line-height: 1.4; color: var(--forest-soft); }
.counter-value {
    margin: 10px 0 0;
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.counter-value small { font-size: 1.125rem; font-weight: 400; letter-spacing: 0; color: var(--lime); }
.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 32px;
    margin: clamp(56px, 7vw, 88px) 0 0;
}
.stats > div {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    padding-block: 24px;
}
.stats > div::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--lime);
    opacity: .55;
    transform-origin: left;
    transition: transform 1.1s var(--ease-out) var(--d, 0s);
}
.js .stats > div:not(.is-in)::before { transform: scaleX(0); }
.stats dt { margin-top: 4px; font-size: 0.9375rem; line-height: 1.4; color: var(--forest-soft); }
.stats dd { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }

/* Domande */
.faq-grid, .about-grid, .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 40px clamp(32px, 6vw, 88px);
    align-items: start;
}

/* Chi siamo */
.about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.about-grid .lead { margin-top: 24px; }
.about-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.about-logos figure { margin: 0; }
.about-logos figcaption { margin-bottom: 14px; font-size: 0.875rem; color: var(--ink-soft); }
.about-logos img { width: auto; max-height: 56px; mix-blend-mode: multiply; transition: transform .3s var(--ease-out); }
.about-logos figure:hover img { transform: scale(1.05); }

/* Contatti */
.contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.contact-data { margin: 36px 0 0; }
.contact-data dt { margin-top: 20px; font-size: 0.875rem; color: var(--ink-soft); }
.contact-data dd { margin: 2px 0 0; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9375rem; font-weight: 500; }
.field input, .field textarea {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fbfdf5;
    color: var(--ink);
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.tone-moss .field input, .tone-moss .field textarea { background: rgba(243, 246, 234, .08); color: var(--cream); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--lime); outline: 0; box-shadow: 0 0 0 3px rgba(124, 183, 65, .35); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-status { margin: 0; font-size: 0.9375rem; animation: panel-in .4s var(--ease-out) both; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--link); }
.form-status.is-error { color: #a52a1e; }
.tone-moss .form-status.is-error { color: #ffc0b4; }

/* Footer */
.site-footer {
    position: relative;
    margin-top: calc(var(--radius) * -1);
    padding-block: 48px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: #0c1e13;
    color: var(--forest-soft);
    font-size: 0.875rem;
    line-height: 1.5;
}
.site-footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.footer-logo { width: 150px; height: auto; }
.footer-legal { flex: 1 1 340px; }
.footer-legal p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--cream); text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: var(--lime); }

/* Banner cookie */
.cookie-banner {
    position: fixed;
    z-index: 40;
    left: 50%;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px 24px;
    width: min(760px, calc(100vw - 32px));
    padding: 18px 22px;
    border-radius: 18px;
    background: var(--forest);
    color: var(--cream);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
    font-size: 0.9375rem;
    line-height: 1.5;
    transform: translateX(-50%);
    animation: cookie-in .5s var(--ease-out) .6s both;
    transition: opacity .3s ease, transform .3s var(--ease-out);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-closing { opacity: 0; transform: translate(-50%, 16px); }
.cookie-banner p { flex: 1 1 auto; margin: 0; }
.cookie-banner a { color: #b8dc8a; }
.cookie-banner a:hover { color: #fff; }
.cookie-banner .btn { flex: none; }
@keyframes cookie-in { from { opacity: 0; transform: translate(-50%, 24px); } }

/* Pagina privacy */
.legal-intro {
    background: var(--forest);
    color: var(--cream);
    padding-block: clamp(24px, 4vw, 48px) calc(clamp(40px, 5vw, 64px) + var(--radius));
}
.legal-intro .lead { margin-top: 12px; color: var(--forest-soft); }
.legal-page {
    position: relative;
    margin-top: calc(var(--radius) * -1);
    padding-block: clamp(40px, 5vw, 72px) calc(clamp(64px, 8vw, 104px) + var(--radius));
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--mist);
}
.legal-text {
    max-width: 760px;
    padding: clamp(24px, 4vw, 48px);
    border-radius: 20px;
    background: #fff;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.7;
}
.legal-text h2 {
    margin: 2em 0 .6em;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.legal-text h2:first-child { margin-top: 0; }
.legal-text p { margin: 0 0 1em; }
.legal-text ol { margin: 0 0 1em; padding-left: 1.4em; }
.legal-text li { margin-bottom: .5em; padding-left: .3em; }
.legal-text li::marker { color: var(--link); font-weight: 600; }

/* Dialog progetto dimostrativo */
.dialog {
    width: min(480px, calc(100vw - 32px));
    padding: 32px;
    border: 0;
    border-radius: 20px;
    background: var(--mist);
    color: var(--ink);
}
.dialog[open] { animation: dialog-in .4s var(--ease-out) both; }
.dialog::backdrop { background: rgba(12, 30, 19, .65); animation: art-fade .3s ease both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(26px) scale(.97); } }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog h2 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.02em; }
.dialog-close { flex: none; width: 36px; height: 36px; margin: -4px -8px 0 0; border: 0; background: none; color: var(--ink); font-size: 1.75rem; line-height: 1; cursor: pointer; transition: transform .3s var(--ease-out); }
.dialog-close:hover { transform: rotate(90deg); }
.form-stack { display: flex; flex-direction: column; gap: 22px; }
.form-stack fieldset { margin: 0; padding: 0; border: 0; }
.form-stack legend { padding: 0; margin-bottom: 8px; font-size: 0.9375rem; font-weight: 500; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding-block: 3px; }
.choice input { flex: none; width: 18px; height: 18px; margin: 4px 0 0; accent-color: #34601a; }

.site-nav a, .site-header .btn { white-space: nowrap; }

@media (max-width: 1120px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 24px;
        background: var(--forest);
        font-size: 1.0625rem;
    }
    .site-nav.is-open { display: flex; animation: panel-down .3s var(--ease-out) both; }
    .site-nav a:not(.btn) { padding-block: 13px; border-bottom: 1px solid var(--forest-line); }
    .site-nav a:not(.btn)::after { display: none; }
    .site-nav .btn { margin-top: 16px; }
}

@media (max-width: 960px) {
    .hero-grid, .steps, .section-intro, .faq-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-grid { min-height: 0; }
    .hero-art { max-width: 520px; margin-inline: auto; width: 100%; }
    .steps-panels { min-height: 0; }

    .steps-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .steps-list button { gap: 10px; padding: 12px 14px; font-size: 1rem; }
}
@keyframes panel-down { from { opacity: 0; transform: translateY(-10px); } }

@media (max-width: 720px) {
    .columns-3, .counters, .business-grid { grid-template-columns: minmax(0, 1fr); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .row summary { grid-template-columns: minmax(0, 1fr); }
    .row p { padding-left: 0; padding-right: 0; }
}

@media (max-width: 560px) {
    :root { --header-height: 72px; }
    body { font-size: 1rem; }
    .container { padding-inline: 16px; }
    .site-nav { padding-inline: 16px; }
    .logo img { height: 50px; }
    .is-scrolled .logo img { height: 42px; }

    .cookie-banner { flex-direction: column; align-items: stretch; bottom: 12px; padding: 16px 18px; }
    .sectors { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .sectors li { padding-block: 12px; border-top-width: 1px; }
    .form { grid-template-columns: minmax(0, 1fr); }
    .form-actions .btn { width: 100%; }
    .hero-actions .btn { width: 100%; }
    .dialog { padding: 24px 20px; }

    .pricing th, .pricing td { padding: 12px 3px; }
    .pricing tbody th { padding-right: 8px; font-size: 0.875rem; }
    .pricing thead th { width: 58px; font-size: 0.875rem; }
    .pricing thead .is-pro { border-radius: 12px 12px 0 0; }
    .pricing tfoot .is-pro { border-radius: 0 0 12px 12px; }
    .pricing .price { font-size: 1rem; letter-spacing: -0.02em; }
    .pricing .btn-small { padding: 8px 2px; width: 100%; font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
