﻿:root {
    --bg: #f7f8f5;
    --surface: #ffffff;
    --text: #1d2420;
    --muted: #5b6962;
    --brand: #2f7d46;
    --brand-dark: #1f3d36;
    --accent: #dff3e5;
    --warning: #fff2d8;
    --border: #dfe7e1;
    --shadow: 0 20px 50px rgba(18,37,28,.08);
    --radius: 24px;
    --max: 1180px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    font-size: 18px;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #444;
    color: #fff;
    padding: 15px 20px;
    z-index: 9999;
    display: none;
    font-size: 14px;
}

.cookie-text a {
    color: #4da3ff;
    text-decoration: underline;
}

.cookie-options {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

    .cookie-options label {
        cursor: pointer;
        font-size: 13px;
    }

    .cookie-options input {
        margin-right: 5px;
        width: auto !important
    }

.cookie-buttons {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.success {
    display: none; /* rimuovi se il messaggio deve essere visibile subito */
    padding: 15px 20px;
    margin-top: 15px;
    border: 1px solid #28a745;
    border-radius: 6px;
    background-color: #d4edda;
    color: #155724;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

a {
    color: var(--brand-dark);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px
}

    a:focus, button:focus, input:focus, textarea:focus {
        outline: 4px solid #95d5a7;
        outline-offset: 3px
    }

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    background: #fff;
    color: #000;
    padding: 12px 16px;
    border-radius: 12px;
    z-index: 999
}

    .skip-link:focus {
        left: 12px
    }

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247,248,245,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border)
}

.nav {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 22px
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--brand-dark);
    text-decoration: none
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg,var(--brand),var(--brand-dark));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900
}

nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    font-size: 16px
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700
}

.cta-small {
    background: var(--brand-dark);
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none
}

main {
    overflow: hidden
}

.hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 78px 22px 46px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: var(--brand-dark);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800
}

h1, h2, h3 {
    line-height: 1.12;
    margin: 0 0 18px;
    color: var(--brand-dark)
}

h1 {
    font-size: clamp(42px,6vw,76px);
    letter-spacing: -2.5px;
    margin-top: 20px
}

h2 {
    font-size: clamp(32px,4vw,48px);
    letter-spacing: -1.4px
}

h3 {
    font-size: 24px
}

p {
    margin: 0 0 18px
}

.lead {
    font-size: 22px;
    color: var(--muted);
    max-width: 700px
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 15px 22px;
    font-weight: 800;
    text-decoration: none;
    border: 2px solid var(--brand-dark)
}

    .button.primary {
        background: var(--brand-dark);
        color: #fff
    }

    .button.secondary {
        background: transparent;
        color: var(--brand-dark)
    }

.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    position: relative
}

.score {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
    margin-top: 24px
}

    .score div, .mini {
        background: #f4f8f5;
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 18px
    }

    .score strong {
        display: block;
        font-size: 34px;
        color: var(--brand)
    }

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 64px 22px
}

.grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px
}

    .grid.two {
        grid-template-columns: repeat(2,1fr)
    }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 10px 35px rgba(18,37,28,.05)
}

.icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: var(--accent);
    display: grid;
    place-items: center;
    font-size: 28px;
    margin-bottom: 18px
}

.band {
    background: var(--brand-dark);
    color: #fff
}

    .band .section {
        padding-top: 76px;
        padding-bottom: 76px
    }

    .band h2, .band h3 {
        color: #fff
    }

    .band p {
        color: #e8f4ed
    }

    .band .card {
        background: rgba(255,255,255,.08);
        border-color: rgba(255,255,255,.18);
        box-shadow: none
    }

    .band .icon {
        background: rgba(255,255,255,.12)
    }

.list {
    display: grid;
    gap: 14px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none
}

    .list li {
        display: flex;
        gap: 12px;
        align-items: flex-start
    }

.check {
    color: var(--brand);
    font-weight: 900
}

.band .check {
    color: #aef0bf
}

.notice {
    background: var(--warning);
    border: 1px solid #f2d496;
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 24px
}

.process {
    counter-reset: step
}

    .process .card {
        position: relative
    }

        .process .card:before {
            counter-increment: step;
            content: counter(step);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--brand);
            color: #fff;
            display: grid;
            place-items: center;
            font-weight: 900;
            margin-bottom: 18px
        }

.contact {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 28px;
    align-items: start
}

.form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow)
}

label {
    display: block;
    font-weight: 800;
    margin: 16px 0 6px
}

input, textarea {
    width: 100%;
    font: inherit;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 13px 14px;
    background: #fff;
    color: var(--text)
}

textarea {
    min-height: 130px;
    resize: vertical
}

.privacy {
    font-size: 14px;
    color: var(--muted);
    margin-top: 12px
}

footer {
    border-top: 1px solid var(--border);
    padding: 28px 22px;
    color: var(--muted);
    font-size: 15px
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap
}

@media (max-width:900px) {
    nav ul {
        display: none
    }

    .hero, .contact {
        grid-template-columns: 1fr
    }

    .hero {
        padding-top: 52px
    }

    .grid, .grid.two, .score {
        grid-template-columns: 1fr
    }

    body {
        font-size: 17px
    }

    .lead {
        font-size: 20px
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    * {
        transition: none !important;
        animation: none !important
    }
}
