/* Evoluzione Azienda -- stylesheet
   Palette: warm paper + deep ledger-green primary + terracotta accent -- light, confident,
   distinct from the rest of the Revera family (graphite/copper, dark lime, navy/teal). */

:root {
    --ink: #10201c;
    --ink-soft: #2c3b35;
    --ink-muted: #5f6d65;
    --paper: #f8f6f1;
    --surface: #eef0e7;
    --line: #dde2d5;
    --line-dark: #234238;
    --primary: #0f6e5c;
    --primary-deep: #0a4f42;
    --primary-soft: #d9ece6;
    --accent: #e8794a;
    --accent-deep: #c85f34;
    --white: #ffffff;

    --font-display: "Sora", "Segoe UI", sans-serif;
    --font-body: "Public Sans", "Segoe UI", sans-serif;
    --font-mono: "Space Mono", Consolas, monospace;

    --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    font-size: 17px;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent-deep);
    outline-offset: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    text-wrap: balance;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
    color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); max-width: 65ch; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--primary-deep); margin-bottom: 0.9em;
}
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--accent); }

/* --- Header --- */

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand .dot { color: var(--accent); }
.brand img { height: 32px; width: auto; display: block; }

.nav-collapse { display: flex; align-items: center; gap: 30px; }
nav.primary-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
nav.primary-nav a { color: var(--ink-muted); text-decoration: none; font-size: 0.94rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
nav.primary-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 40px; height: 40px; padding: 0; background: transparent; border: 1px solid var(--line);
    border-radius: 4px; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav-collapse {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: flex-start; gap: 20px;
        background: var(--white); border-top: 1px solid var(--line); padding: 22px 28px 26px;
    }
    .nav-collapse.is-open { display: flex; }
    nav.primary-nav { width: 100%; }
    nav.primary-nav ul { flex-direction: column; gap: 14px; }
}

/* --- Hero --- */

.hero { padding: 76px 0 84px; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 17ch; }
.hero .lede { font-size: 1.15rem; max-width: 56ch; margin-bottom: 1.6em; color: var(--ink-soft); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.platform-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--white); border: 1px solid var(--line); border-radius: 999px;
    padding: 6px 14px; font-size: 0.85rem; color: var(--ink-soft);
}

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: 0.96rem;
    padding: 13px 26px; border-radius: 5px; text-decoration: none;
    border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-deep); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Sections --- */

section { padding: 76px 0; }
.section-tight { padding: 52px 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark p { color: #b9c4bd; }
.section-dark .eyebrow { color: var(--accent); }
.section-head { max-width: 720px; margin-bottom: 44px; }

/* --- Value grid --- */

.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.value-item { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 26px 24px; }
.value-item h3 { font-size: 1.08rem; margin-bottom: 0.4em; }
.value-item p { font-size: 0.94rem; margin-bottom: 0; }
.value-item .ico { width: 36px; height: 36px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; }

/* --- Feature groups (module list) --- */

.module-group { border-top: 1px solid var(--line); padding: 34px 0; display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.module-group:first-of-type { border-top: none; padding-top: 0; }
.module-group h3 { margin-bottom: 4px; }
.module-group .group-sub { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 0; }
.module-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 24px; }
.module-list li { font-size: 0.94rem; color: var(--ink-soft); padding-left: 20px; position: relative; }
.module-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 760px) { .module-group { grid-template-columns: 1fr; gap: 12px; } }

/* --- Evolution / roadmap list (no dates) --- */

.evo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.evo-list li { display: flex; gap: 18px; align-items: flex-start; }
.evo-list .evo-mark { font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; flex-shrink: 0; padding-top: 3px; }
.evo-list p { margin: 0; color: #cfd8d2; }
.evo-list strong { color: var(--paper); }

/* --- FAQ --- */

.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.faq-item p { font-size: 0.95rem; margin-bottom: 0; }

/* --- Contact --- */

.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px;
    font-family: var(--font-body); font-size: 0.98rem; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--primary-deep); outline-offset: 1px; border-color: var(--primary-deep); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.recaptcha-note { font-size: 0.78rem; color: var(--ink-muted); margin-top: 10px; }

/* --- CTA band --- */

.cta-band { background: var(--primary); color: var(--white); }
.cta-band .wrap { padding: 52px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 4px; }
.cta-band p { color: #cfe8e1; margin-bottom: 0; }

/* --- Footer --- */

.site-footer { background: var(--ink); color: #a9b6ae; padding-top: 52px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.site-footer h4 { color: var(--paper); font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #a9b6ae; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--paper); }
.site-footer p { color: #a9b6ae; font-size: 0.9rem; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.footer-legal { border-top: 1px solid var(--line-dark); padding: 16px 0; }
.footer-legal .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; padding-bottom: 0; }
.footer-legal a { color: #a9b6ae; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
