/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f4f3ee;
    color: #171914;
    line-height: 1.5;
}

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

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --bg: #f4f3ee;
    --paper: #ffffff;
    --ink: #171914;
    --muted: #686b63;

    --accent: #b8e63f;
    --accent-dark: #86ad19;

    --border: #dedfd7;

    --radius: 24px;
    --max-width: 1180px;
}


/* =========================================================
   GLOBAL
========================================================= */

.container {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;

    color: var(--muted);
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-dark);
}

.section {
    padding: 110px 0;
}


/* =========================================================
   HEADER
========================================================= */

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;

    padding: 26px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.logo-mark {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--ink);
    color: var(--accent);

    font-size: 17px;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;

    font-size: 14px;
    font-weight: 600;
}

nav a {
    opacity: .7;
    transition: opacity .2s ease;
}

nav a:hover {
    opacity: 1;
}

.nav-cta {
    padding: 11px 18px;

    background: var(--ink);
    color: white;

    border-radius: 100px;

    opacity: 1;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: .7;
}

.lang-switch strong {
    opacity: 1;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    min-height: 760px;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;

    padding-top: 70px;

    max-width: 670px;
}

h1 {
    margin-top: 22px;

    font-size: clamp(52px, 7vw, 88px);
    line-height: .96;
    letter-spacing: -.065em;

    font-weight: 800;
}

h1 span {
    position: relative;
    display: inline-block;
}

h1 span::after {
    content: "";

    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 4px;

    height: 12px;

    background: var(--accent);

    z-index: -1;

    transform: rotate(-1deg);
}

.hero-text {
    margin-top: 30px;

    max-width: 560px;

    font-size: 20px;
    line-height: 1.55;

    color: var(--muted);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 36px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 15px 23px;

    border-radius: 100px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform .2s ease,
        background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--ink);
    color: white;
}

.button-secondary {
    border: 1px solid var(--border);
    background: rgba(255,255,255,.5);
}


/* =========================================================
   HERO MAP
========================================================= */

.hero-map {
    position: absolute;

    width: 760px;
    height: 760px;

    right: -100px;
    top: 30px;

    opacity: .75;

    transform: rotate(-8deg);
}

.map-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            25deg,
            transparent 47%,
            #d5d6cd 48%,
            transparent 49%
        ),
        linear-gradient(
            110deg,
            transparent 48%,
            #d5d6cd 49%,
            transparent 50%
        );

    background-size: 100px 100px;

    mask-image:
        radial-gradient(
            circle,
            black 20%,
            transparent 70%
        );
}

.road {
    position: absolute;

    width: 700px;
    height: 170px;

    border: 4px solid #c9cbc1;
    border-left: 0;
    border-right: 0;

    border-radius: 50%;

    transform: rotate(-25deg);
}

.road.r1 {
    top: 170px;
    left: -80px;
}

.road.r2 {
    top: 350px;
    left: 50px;

    transform: rotate(25deg);
}

.road.r3 {
    top: 500px;
    left: -80px;

    transform: rotate(-12deg);
}

.map-point {
    position: absolute;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: var(--ink);

    box-shadow:
        0 0 0 8px rgba(184,230,63,.35);
}

.map-point::after {
    content: "⚡";

    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    font-size: 10px;
}

.point-1 {
    top: 260px;
    right: 230px;
}

.point-2 {
    top: 410px;
    right: 360px;
}

.point-3 {
    top: 520px;
    right: 180px;
}


/* =========================================================
   TRUST BAR
========================================================= */

.trust {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    padding: 24px 0;
}

.trust-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.trust p {
    color: var(--muted);
    font-size: 14px;
}

.trust-items {
    display: flex;
    gap: 34px;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    max-width: 800px;
}

.intro h2 {
    margin-top: 20px;

    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -.055em;
}

.intro p {
    margin-top: 25px;

    font-size: 19px;
    color: var(--muted);
}


/* =========================================================
   CARDS
========================================================= */

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

    margin-top: 55px;
}

.card {
    min-height: 300px;

    padding: 30px;

    background: var(--paper);
    border: 1px solid var(--border);

    border-radius: var(--radius);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 50px rgba(20,25,10,.08);
}

.card-icon {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background: var(--accent);

    font-size: 22px;
}

.card h3 {
    margin-top: 35px;

    font-size: 25px;
    letter-spacing: -.035em;
}

.card p {
    margin-top: 10px;

    color: var(--muted);
    font-size: 15px;
}


/* =========================================================
   ABOUT PAGE VISUALS
========================================================= */

.about-feature {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 50px;
}

.about-feature.reverse {
    grid-template-columns: auto 1fr;
}

.about-feature.reverse .about-visual {
    order: -1;
}

.about-visual {
    width: 180px;
    height: 180px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 32px;

    font-size: 72px;
}

.about-visual.light {
    background: var(--accent);
    transform: rotate(-4deg);
}

.about-visual.dark {
    background: #1b1d18;
    transform: rotate(3deg);
}


/* =========================================================
   APP PREVIEW
========================================================= */

.app-section {
    background: #1b1d18;
    color: white;
}

.app-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 100px;
}

.app-copy h2 {
    margin-top: 20px;

    font-size: clamp(42px, 5vw, 68px);
    line-height: .98;

    letter-spacing: -.055em;
}

.app-copy p {
    margin-top: 25px;

    max-width: 480px;

    color: #aeb1a9;

    font-size: 18px;
}

.app-list {
    margin-top: 35px;

    display: grid;
    gap: 14px;
}

.app-list li {
    list-style: none;

    display: flex;
    gap: 12px;

    color: #d8dad3;
}

.app-list li::before {
    content: "✓";

    color: var(--accent);
    font-weight: 800;
}

.phone-wrap {
    display: flex;
    justify-content: center;
}

.phone {
    width: 290px;
    height: 590px;

    padding: 12px;

    background: #090a08;

    border: 7px solid #30332c;

    border-radius: 42px;

    box-shadow:
        0 35px 90px rgba(0,0,0,.4);

    transform: rotate(3deg);
}

.phone-screen {
    height: 100%;

    border-radius: 31px;

    overflow: hidden;

    background: #eceee7;

    color: var(--ink);

    position: relative;
}

.phone-top {
    padding: 25px 18px 15px;

    font-size: 12px;
    font-weight: 700;
}

.mini-map {
    position: absolute;

    inset: 70px 0 0;

    background:
        linear-gradient(35deg,
            transparent 47%,
            #d0d2ca 48%,
            transparent 50%
        ),
        linear-gradient(120deg,
            transparent 47%,
            #d0d2ca 48%,
            transparent 50%
        );

    background-size: 100px 100px;
}

.station {
    position: absolute;

    width: 17px;
    height: 17px;

    background: var(--ink);

    border-radius: 50%;

    box-shadow:
        0 0 0 7px rgba(184,230,63,.5);
}

.station.s1 {
    left: 80px;
    top: 180px;
}

.station.s2 {
    left: 180px;
    top: 280px;
}

.station.s3 {
    left: 110px;
    top: 390px;
}

.phone-card {
    position: absolute;

    left: 14px;
    right: 14px;
    bottom: 15px;

    padding: 17px;

    background: white;

    border-radius: 18px;

    box-shadow: 0 10px 30px rgba(0,0,0,.12);

    font-size: 12px;
}

.phone-card strong {
    display: block;

    font-size: 15px;
}


/* =========================================================
   HOW IT WORKS
========================================================= */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 60px;

    margin-top: 60px;
}

.step-number {
    font-size: 13px;
    font-weight: 800;

    color: var(--accent-dark);
}

.step h3 {
    margin-top: 14px;

    font-size: 27px;
    letter-spacing: -.035em;
}

.step p {
    margin-top: 10px;

    color: var(--muted);
}


/* =========================================================
   BLOG
========================================================= */

.blog {
    background: #e9eae3;
}

.blog-header {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 30px;
}

.blog-header h2 {
    margin-top: 18px;

    font-size: clamp(40px, 5vw, 62px);
    line-height: 1;

    letter-spacing: -.055em;
}

.blog-header > p {
    max-width: 350px;

    color: var(--muted);
}

.articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    margin-top: 55px;
}

.article {
    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    overflow: hidden;

    transition: transform .2s ease;
}

.article:hover {
    transform: translateY(-4px);
}

.article-image {
    height: 190px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #cbd1bc,
            #e8eadf
        );

    font-size: 45px;
}

.article-body {
    padding: 25px;
}

.article-meta {
    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .1em;

    color: var(--muted);
}

.article h3 {
    margin-top: 12px;

    font-size: 23px;
    line-height: 1.15;

    letter-spacing: -.03em;
}

.article p {
    margin-top: 10px;

    color: var(--muted);

    font-size: 14px;
}

.article-link {
    display: inline-block;

    margin-top: 22px;

    font-size: 13px;
    font-weight: 800;
}


/* =========================================================
   CTA
========================================================= */

.cta {
    padding: 100px 0;
}

.cta-box {
    position: relative;
    overflow: hidden;

    padding: 70px;

    border-radius: 32px;

    background: var(--accent);
}

.cta-box h2 {
    max-width: 700px;

    font-size: clamp(42px, 5vw, 68px);

    line-height: .98;

    letter-spacing: -.06em;
}

.cta-box p {
    margin-top: 20px;

    max-width: 550px;

    font-size: 18px;
}

.cta-box .button {
    margin-top: 30px;

    background: var(--ink);
    color: white;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding: 35px 0;

    border-top: 1px solid var(--border);

    font-size: 13px;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    gap: 25px;
}


/* =========================================================
   SIMPLE PAGE HERO (About, Contact)
========================================================= */

.page-hero {
    padding: 160px 0 50px;
}

.page-hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -.05em;
}

.page-hero .hero-text {
    max-width: 640px;
}


/* =========================================================
   FORMS (contact form)
========================================================= */

.form-field {
    display: block;
}

.form-field label {
    display: block;

    font-weight: 600;
    font-size: 14px;

    margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
    width: 100%;

    padding: 12px 16px;

    border: 1px solid var(--border);
    border-radius: 12px;

    font: inherit;
    background: var(--paper);
}

.form-field textarea {
    resize: vertical;
}

/* Honeypot: invisibile per le persone, spesso compilato dai bot */
.form-honeypot {
    position: absolute;
    left: -9999px;
}

.form-status {
    display: none;
    font-size: 14px;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-error {
    color: #b3261e;
}

.form-status.is-success {
    color: var(--accent-dark);
}


/* =========================================================
   BLOG POST / PROSE
========================================================= */

.post-header {
    padding: 160px 0 30px;
}

.post-header h1 {
    margin-top: 14px;

    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.post-date {
    margin-top: 14px;

    color: var(--muted);
    font-size: 14px;
}

.prose {
    max-width: 720px;

    font-size: 18px;
    line-height: 1.7;

    color: #2a2c26;
}

.prose h2 {
    margin-top: 44px;
    margin-bottom: 12px;

    font-size: 28px;
    letter-spacing: -.03em;
}

.prose h3 {
    margin-top: 32px;
    margin-bottom: 10px;

    font-size: 22px;
    letter-spacing: -.02em;
}

.prose p {
    margin-top: 16px;
}

.prose ul,
.prose ol {
    margin-top: 16px;
    padding-left: 22px;
}

.prose li {
    margin-top: 8px;
}

.prose a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose strong {
    font-weight: 700;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}

.back-link:hover {
    color: var(--ink);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .hero {
        min-height: 850px;
    }

    .hero-map {
        opacity: .35;

        right: -330px;
        top: 250px;
    }

    .cards,
    .articles,
    .steps {
        grid-template-columns: 1fr;
    }

    .app-layout {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .phone-wrap {
        order: -1;
    }

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

    .about-feature.reverse .about-visual {
        order: 0;
    }

    .about-visual {
        width: 110px;
        height: 110px;
        font-size: 44px;
        margin: 0 auto;
    }

    .blog-header {
        display: block;
    }

    .blog-header > p {
        margin-top: 20px;
    }

    nav {
        display: none;
    }
}


@media (max-width: 600px) {

    .container {
        width: min(
            var(--max-width),
            calc(100% - 28px)
        );
    }

    .section {
        padding: 80px 0;
    }

    .hero {
        min-height: 760px;
    }

    h1 {
        font-size: 55px;
    }

    .hero-text {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .trust-inner {
        display: block;
    }

    .trust-items {
        margin-top: 15px;

        flex-wrap: wrap;
        gap: 15px;
    }

    .cta-box {
        padding: 40px 25px;
    }

    .footer-inner {
        display: block;
    }

    .footer-links {
        margin-top: 15px;
    }
}


/* =========================================================
   COOKIE BANNER
========================================================= */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 5000;

    max-width: 640px;
    margin: 0 auto;

    padding: 20px 24px;

    background: var(--ink);
    color: white;

    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(20, 25, 10, .25);

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 260px;

    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .85);
}

.cookie-banner a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner button {
    padding: 10px 18px;

    border-radius: 100px;
    border: none;

    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.cookie-decline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, .3) !important;
}

.cookie-accept {
    background: var(--accent);
    color: var(--ink);
}

@media (max-width: 500px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 18px;
    }
}
