/* Impostazioni generali */
:root {
    --ink: #253e35;
    --paper: #ffffff;
    --muted: #52675e;
    --accent: #2e6250;
    --line: #dce9e1;
    --wash: #eaf5ed;
    --panel: linear-gradient(145deg, #ffffff, #eff8f0);
    --panel-line: #e4eee6;
    --header-line: #e4eee6;
    --radius: 8px;
    --button-radius: 6px;
    --button-surface: #ffffff;
    --heading-font: inherit;
    --heading-weight: 400;
    --heading-spacing: -3px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

p {
    line-height: 1.85;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    padding: 12px 18px;
    background: var(--accent);
    color: white;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Logo e navigazione */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1160px;
    min-height: 92px;
    margin: auto;
    padding: 20px 5%;
    border-bottom: 1px solid var(--header-line);
}

.brand {
    display: inline-flex;
    color: var(--ink);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -1px;
    transition: transform 220ms ease;
}

.brand:hover {
    transform: scale(1.02);
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    font-size: 13px;
}

nav a,
nav .pill {
    min-height: auto;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: inherit;
}

nav a:hover,
nav .pill:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 6px;
    transform: none;
}

.review-note {
    margin: 0;
    padding: 9px 6%;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

/* Apertura */
.hero {
    max-width: 1160px;
    margin: 16px auto 0;
    padding: 78px 6% 75px;
    border: 1px solid var(--panel-line);
    border-radius: var(--radius);
    background: var(--panel);
}

.eyebrow {
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.hero-top {
    padding-top: 26px;
}

h1 {
    margin: 0;
    font-family: var(--heading-font);
    font-size: clamp(52px, 6.5vw, 84px);
    font-weight: var(--heading-weight);
    letter-spacing: var(--heading-spacing);
    line-height: 1.08;
}

h1 em {
    color: var(--accent);
    font-style: normal;
}

.intro {
    max-width: 490px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.intro .pill {
    margin-top: 25px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 13px 20px;
    border: 1px solid var(--line);
    border-radius: var(--button-radius);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.pill:hover {
    border-color: var(--accent);
    background: var(--wash);
}

.pill.dark {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.pill.dark:hover {
    border-color: var(--ink);
    background: var(--ink);
}

/* L’impresa e i servizi */
.section {
    max-width: 1160px;
    margin: auto;
    padding: 78px 6%;
}

.about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.about > div,
.contact > div {
    min-width: 0;
}

h2 {
    margin: 0 0 22px;
    font-size: clamp(28px, 2.8vw, 36px);
    font-weight: 450;
    letter-spacing: -1px;
    line-height: 1.25;
}

.copy {
    max-width: 560px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.95;
}

.services {
    padding-top: 25px;
}

.section-title {
    margin-bottom: 28px;
}

.section-title h2 {
    margin-top: 14px;
}

.service {
    display: grid;
    grid-template-columns: 1fr 1.2fr 44px;
    align-items: center;
    gap: 30px;
    padding: 27px 0;
    border-top: 1px solid var(--line);
}

.service:last-child {
    border-bottom: 1px solid var(--line);
}

.service h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 450;
    letter-spacing: -0.4px;
}

.service p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    border-radius: 50%;
    color: var(--accent);
    font-size: 22px;
    transition: background-color 180ms ease;
}

.arrow:hover {
    background: var(--wash);
}

/* Contatti */
.contact {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 64px;
    max-width: 1020px;
    margin: 12px auto 70px;
    padding: 52px;
    border: 1px solid var(--panel-line);
    border-radius: var(--radius);
    background: var(--panel);
}

.contact h2 {
    margin-top: 21px;
    font-size: clamp(34px, 3.8vw, 46px);
    font-weight: 450;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.contact p {
    color: var(--muted);
    font-size: 13px;
}

.contact strong {
    color: var(--ink);
    font-weight: 550;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-actions .pill {
    justify-content: flex-start;
    width: 100%;
    padding: 15px 18px;
    text-align: left;
}

.contact-actions .pill:not(.dark) {
    background: var(--button-surface);
}

.contact-actions .pill:not(.dark):hover {
    background: var(--wash);
}

.email-link,
.contact-actions .note,
footer p {
    overflow-wrap: anywhere;
}

.contact-actions .note {
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.contact-actions .note a,
.legal a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Piè di pagina */
footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    max-width: 1160px;
    margin: auto;
    padding: 26px 5% 30px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

footer .brand {
    font-size: 22px;
}

footer p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
}

.footer-links a {
    padding: 8px 0;
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Pagine informative */
.legal {
    max-width: 850px;
    margin: auto;
    padding: 55px 6% 75px;
}

.legal h1 {
    margin: 24px 0;
    font-size: 42px;
    letter-spacing: -1.3px;
    overflow-wrap: anywhere;
}

.legal h2 {
    margin: 30px 0 12px;
    font-size: 23px;
}

.legal p,
.legal li {
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.legal .draft {
    padding: 18px;
    border: 1px solid var(--panel-line);
    border-radius: var(--radius);
    background: var(--panel);
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    line-height: 1.7;
}

.legal caption {
    margin-bottom: 10px;
    font-weight: 600;
    text-align: left;
}

.legal td,
.legal th {
    padding: 12px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

/* Tablet e telefoni */
@media (max-width: 700px) {
    header {
        min-height: 80px;
        padding: 18px 6%;
        gap: 16px;
    }

    .brand {
        font-size: 24px;
    }

    nav {
        gap: 20px;
        font-size: 13px;
    }

    .hero {
        margin: 10px 4% 0;
        padding: 46px 6% 50px;
    }

    h1 {
        font-size: clamp(39px, 8.4vw, 58px);
        letter-spacing: -2px;
    }

    .intro {
        margin-top: 24px;
        font-size: 14px;
    }

    .section {
        padding: 52px 6%;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    h2 {
        font-size: 28px;
    }

    .services {
        padding-top: 15px;
    }

    .service {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 10px;
        padding: 23px 0;
    }

    .service h3 {
        font-size: 21px;
    }

    .service p {
        grid-column: 1;
        grid-row: 2;
    }

    .service .arrow {
        grid-column: 2;
        grid-row: 1;
    }

    .contact {
        grid-template-columns: 1fr;
        margin: 12px 4% 45px;
        padding: 32px 6%;
        gap: 25px;
    }

    .contact h2 {
        font-size: 37px;
        letter-spacing: -1px;
    }

    .contact-actions .pill {
        min-height: 52px;
    }

    footer {
        display: block;
        margin: 0 6%;
        padding: 24px 0 30px;
    }

    .footer-links {
        margin-top: 20px;
    }

    .legal {
        padding: 36px 6% 55px;
    }

    .legal h1 {
        font-size: 34px;
    }
}

@media (max-width: 420px) {
    header {
        flex-wrap: wrap;
        gap: 4px;
    }

    nav {
        justify-content: space-between;
        width: 100%;
    }

    .contact h2 {
        font-size: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .brand,
    .pill,
    .arrow {
        transition: none;
    }

    .brand:hover,
    .skip-link {
        transform: none;
    }

    .skip-link:not(:focus) {
        transform: translateY(-180%);
    }
}
