:root {
    --ink: #252525;
    --red: #d71920;
    --paper: #f3f2ef;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font: 17px/1.65 Arial,Helvetica,sans-serif;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,summary:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 5px;
}

.wrap {
    max-width: 1260px;
    margin: auto;
    padding: 0 56px;
}

header {
    border-bottom: 1px solid #e4e3df;
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
    gap: 32px;
}

header img {
    width: 290px;
    max-width: 100%;
    height: auto;
}

nav {
    display: flex;
    gap: 30px;
    font-size: 14px;
}

nav a:hover,a.link:hover {
    color: var(--red);
}

.hero {
    padding: 105px 0 90px;
}

.eyebrow {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #686868;
}

h1,h2,h3,p {
    margin: 0;
}

h1 {
    font-size: clamp(42px,5.7vw,80px);
    letter-spacing: -.055em;
    line-height: 1.04;
    font-weight: 600;
    max-width: 1060px;
    margin: 25px 0 32px;
}

h1 span {
    display: block;
    color: var(--red);
}

.intro {
    max-width: 650px;
    font-size: 21px;
    line-height: 1.5;
    color: #525252;
}

.link {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid var(--red);
    padding-bottom: 6px;
    margin-top: 27px;
}

.feature {
    background: var(--paper);
    padding: 75px 0;
}

.feature .wrap {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: 80px;
}

h2 {
    font-size: clamp(34px,4vw,54px);
    line-height: 1.1;
    letter-spacing: -.045em;
    font-weight: 600;
    margin: 18px 0 22px;
}

.visual {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    border: 1px solid #d5d3cf;
    background: #e8e5df;
}

.visual strong {
    font-size: clamp(64px,9vw,130px);
    letter-spacing: -.075em;
    line-height: 1;
    font-weight: 600;
}

.visual span {
    font-size: 13px;
    letter-spacing: 1.4px;
    margin-top: 20px;
}

.visual small {
    margin-top: 42px;
    color: #666;
    font-size: 11px;
}

.projects {
    padding: 90px 0;
}

.sectionhead {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 32px;
}

.sectionhead h2 {
    margin-bottom: 0;
}

.project {
    display: grid;
    grid-template-columns: 60px 1fr 1.1fr;
    gap: 28px;
    border-top: 1px solid #d9d9d9;
    padding: 30px 0;
    align-items: start;
}

.project:last-child {
    border-bottom: 1px solid #d9d9d9;
}

.num {
    font-size: 12px;
    color: #777;
}

.project h3 {
    font-size: 29px;
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1.2;
}

.project p {
    color: #555;
    font-size: 16px;
}

.status {
    display: block;
    color: #777;
    font-size: 12px;
    margin-top: 9px;
}

.about {
    background: var(--paper);
    padding: 80px 0;
}

.about .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.about p {
    max-width: 580px;
    margin-top: 12px;
}

.contact {
    background: #252525;
    color: white;
    padding: 75px 0 35px;
}

.contact h2 {
    max-width: 720px;
}

.contact a.email {
    font-size: clamp(20px,3vw,34px);
    border-bottom: 1px solid #d71920;
    overflow-wrap: anywhere;
}

.foot {
    margin-top: 75px;
    padding-top: 25px;
    border-top: 1px solid #555;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    font-size: 12px;
    color: #ccc;
}

.foot img {
    width: 250px;
    height: auto;
    max-width: 100%;
}

.foot p {
    max-width: 490px;
}

.draft {
    font-size: 12px;
    color: #777;
    padding: 12px 0;
    border-top: 1px solid #e4e3df;
}

@media (max-width:760px) {
    .wrap {
        padding: 0 24px;
    }

    header .wrap {
        min-height: 0;
        padding-top: 22px;
        padding-bottom: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    header img {
        width: 245px;
    }

    nav {
        gap: 25px;
    }

    .hero {
        padding: 64px 0;
    }

    .intro {
        font-size: 18px;
    }

    .feature,.projects,.about,.contact {
        padding: 50px 0;
    }

    .feature .wrap,.about .wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .visual {
        min-height: 240px;
        padding: 24px;
    }

    .project {
        grid-template-columns: 30px 1fr;
        gap: 8px 14px;
        padding: 24px 0;
    }

    .project>div:last-child {
        grid-column: 2;
    }

    .sectionhead,.foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .foot {
        margin-top: 45px;
    }

    .sectionhead {
        gap: 4px;
    }
}

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

.features {
    padding-left: 18px;
    margin: 20px 0 0;
    font-size: 15px;
    line-height: 1.75;
    color: #444;
}

.features li::marker {
    color: var(--red);
}

.project p {
    max-width: 65ch;
}

.event-showcase {
    background: #fff;
    padding: 20px;
    border: 1px solid #d5d3cf;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-showcase img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 640px;
}

.event-logo-inline {
    display: block;
    width: 170px;
    max-width: 100%;
    height: auto;
    margin-top: 22px;
}

.product-logo {
    display: block;
    height: auto;
    max-width: 100%;
    margin: 0 0 16px;
}

.buddy-logo {
    width: 205px;
}

.isolanie-logo {
    width: 124px;
}

.project>div {
    min-width: 0;
}

@media (max-width:760px) {
    .event-showcase {
        min-height: 180px;
        padding: 12px;
    }

    .event-logo-inline {
        width: 150px;
    }

    .buddy-logo {
        width: 180px;
    }
}

/* Loghi dei progetti: proporzioni originali e dimensioni equilibrate. */
.event-logo,
.alma-logo,
.menu-plus-logo,
.giuditta-logo {
    width: 240px;
}

.prenota-logo {
    width: 220px;
}

.isolanie-logo {
    width: 180px;
}

.product-logo {
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 760px) {
    .event-logo,
    .alma-logo,
    .menu-plus-logo,
    .giuditta-logo,
    .prenota-logo {
        width: 200px;
    }
}
